1 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3 * python/python-internal.h (gdb_PyObject_GetAttrString)
4 (gdb_PyObject_HasAttrString): New inline function definitions.
5 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6 char * of the second argument to PyObject_GetAttrString.
8 2014-06-10 Joel Brobecker <brobecker@adacore.com>
10 * serial.c (serial_write): Fix index of character to be printed
11 in call to serial_logchar when serial debug traces are enabled.
13 2014-06-10 Joel Brobecker <brobecker@adacore.com>
15 * gdbtypes (resolve_dynamic_range): Add function description.
17 2014-06-09 Gary Benson <gbenson@redhat.com>
19 * common/signals.c (gdb_signal_from_host): Reorder to separate
20 the always-available ANSI-standard signals from the signals that
22 (do_gdb_signal_to_host): Likewise.
23 * proc-events.c (signal_table): Likewise.
25 2014-06-08 Hui Zhu <hui@codesourcery.com>
27 * common/linux-ptrace.c (linux_disable_event_reporting): New
29 * common/linux-ptrace.h (linux_disable_event_reporting): New
31 * linux-nat.c (linux_child_follow_fork): Do a single step before
34 2014-06-07 Keith Seitz <keiths@redhat.com>
38 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
39 from symbol_matches_domain in symtab.c. All local callers
40 of symbol_matches_domain updated.
41 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
43 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
44 independently. standard_lookup will do that automatically.
45 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
46 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
47 (cp_lookup_symbol_in_namespace): Likewise.
48 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
49 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
50 may return a STRUCT_DOMAIN match.
51 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
52 * cp-support.c: Include language.h.
53 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
55 * psymtab.c (match_partial_symbol): Compare the requested
56 domain with the symbol's domain directly.
57 (lookup_partial_symbol): Likewise.
58 * symtab.c (lookup_symbol_in_language): Explain when/why
59 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
60 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
61 appropriate languages.
62 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
63 and moved to ada-lang.c
64 (lookup_block_symbol): Explain that this function only returns
65 symbol matching the requested DOMAIN.
66 Compare the requested domain with the symbol's domain directly.
67 (iterate_over_symbols): Compare the requested domain with the
68 symbol's domain directly.
69 * symtab.h (symbol_matches_domain): Remove.
71 2014-06-06 Doug Evans <xdje42@gmail.com>
73 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
74 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
75 (gdbscm_guile_version_is_at_least): Declare.
76 (gdbscm_scm_string_to_int): Declare.
77 * guile/guile.c (gdbscm_guile_major_version): New global.
78 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
79 (guile_datadir): New static global.
80 (gdbscm_guile_data_directory): New function.
81 (initialize_scheme_side): Update.
82 (misc_guile_functions): Add guile-data-directory.
83 (initialize_gdb_module): Fetch guile version number.
84 * guile/lib/gdb.scm: Remove call to add-to-load-path.
85 * guile/lib/gdb/init.scm (%initialize!): Ditto.
86 * guile/lib/gdb/boot.scm: Use guile-data-directory.
87 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
89 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
90 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
91 * guile/scm-value.c (gdbscm_value_to_string): Only call
92 scm_port_conversion_strategy if Guile version >= 2.0.6.
94 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
96 * main.c (print_gdb_help): Add -q and --silent.
98 2014-06-06 Gary Benson <gbenson@redhat.com>
100 * common/signals.c: Remove preprocessor conditionals for
101 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
103 * proc-events.c: Likewise.
105 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
107 * symfile.c (symfile_free_objfile): Remove restriction to
109 * symfile-mem.c (symbol_file_add_from_memory): Call
110 add_target_sections_of_objfile.
112 2014-06-05 Ludovic Courtès <ludo@gnu.org>
114 * guile/scm-value.c (gdbscm_history_append_x): Use
115 'vlscm_get_value_smob_arg_unsafe' instead of
116 'vlscm_scm_to_value'.
118 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
121 * utils.c (printchar): Don't escape at all if quoter is NUL.
122 Update function documentation to clarify effect of parameter
124 * remote.c (escape_buffer): Pass '\\' as the quoter to
126 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
128 (mi_solib_unloaded): Same.
130 2014-06-05 Joel Brobecker <brobecker@adacore.com>
132 * development.sh: Delete.
133 * Makefile.in (config.status): Adjust dependency on development.sh.
134 * configure.ac: Adjust development.sh source call.
135 * configure: Regenerate.
137 2014-06-04 Doug Evans <xdje42@gmail.com>
139 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
140 is_scheme_bkpt, spec.
141 (bpscm_make_breakpoint_smob): Initialize new members.
142 (gdbscm_create_breakpoint_x): Split into two ...
143 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
144 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
145 (scheme_function breakpoint_functions): Update.
146 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
147 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
148 register-breakpoint!.
150 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
153 * mem-break.c (z_type_supported): Return zero if
154 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
156 2014-06-04 Tom Tromey <tromey@redhat.com>
158 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
159 value_from_contents_and_address_unresolved.
160 (ada_template_to_fixed_record_type_1): Likewise.
161 (ada_which_variant_applies): Likewise.
162 * value.h (value_from_contents_and_address_unresolved): Declare.
163 * value.c (value_from_contents_and_address_unresolved): New
165 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
166 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
167 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
169 2014-06-04 Tom Tromey <tromey@redhat.com>
171 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
173 2014-06-04 Tom Tromey <tromey@redhat.com>
175 * procfs.c (procfs_attach): Make "args" const.
176 * windows-nat.c (windows_attach): Make "args" const.
177 * nto-procfs.c (procfs_attach): Make "args" const.
178 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
179 * go32-nat.c (go32_attach): Make "args" const.
180 * gnu-nat.c (gnu_attach): Make "args" const.
181 * darwin-nat.c (darwin_attach): Make "args" const.
182 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
183 * linux-nat.c (linux_nat_attach): Make "args" const.
184 * remote.c (extended_remote_attach_1, extended_remote_attach):
186 * target.h (struct target_ops) <to_attach>: Make "args" const.
187 (find_default_attach): Likewise.
188 * utils.c (parse_pid_to_attach): Make "args" const.
189 * utils.h (parse_pid_to_attach): Update.
191 2014-06-04 Tom Tromey <tromey@redhat.com>
193 * target-delegates.c: Rebuild.
194 * target.c (default_thread_address_space): New function.
195 (target_thread_address_space): Simplify.
196 * target.h (struct target_ops) <to_thread_address_space>: Add
199 2014-06-04 Doug Evans <xdje42@gmail.com>
201 * guile/scm-type.c (type_smob): Remove duplicate typedef.
203 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
205 * record-btrace.c: Include event-loop.h and inf-loop.h.
206 (record_btrace_resume_exec_dir)
207 (record_btrace_async_inferior_event_handler)
208 (record_btrace_handle_async_inferior_event): New.
209 (record_btrace_open): Create async event handler.
210 (record_btrace_close): Delete async event handler.
211 (record_btrace_resume): Set record_btrace_resume_exec_dir,
212 Mark async event handler.
213 (record_btrace_execution_direction): New.
214 (init_record_btrace_ops): Initialize to_execution_direction.
216 2014-06-03 Doug Evans <xdje42@gmail.com>
218 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
219 (gdbscm_make_parameter): Ditto.
221 2014-06-03 Doug Evans <dje@google.com>
223 * exec.c (exec_close_1): Call clear_section_table instead of
224 resize_section_table.
225 (clear_section_table): New function.
226 (resize_section_table): Make static. Rename arg num_added to
228 * exec.h (clear_section_table): Declare.
229 (resize_section_table): Delete.
230 * progspace.c (release_program_space): Call clear_section_table
231 instead of resize_section_table.
233 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
235 * NEWS (Python Scripting): Add entry about the new xmethods
238 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
240 * python/py-xmethods.c: New file.
241 * python/py-objfile.c (objfile_object): New field 'xmethods'.
242 (objfpy_dealloc): XDECREF on the new xmethods field.
243 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
245 (objfpy_get_xmethods): New function.
246 (objfile_getset): New entry 'xmethods'.
247 * python/py-progspace.c (pspace_object): New field 'xmethods'.
248 (pspy_dealloc): XDECREF on the new xmethods field.
249 (pspy_new, pspace_to_pspace_object): Initialize xmethods
251 (pspy_get_xmethods): New function.
252 (pspace_getset): New entry 'xmethods'.
253 * python/python-internal.h: Add declarations for new functions.
254 * python/python.c (_initialize_python): Invoke
255 gdbpy_initialize_xmethods.
256 * python/lib/gdb/__init__.py (xmethods): New
258 * python/lib/gdb/xmethod.py: New file.
259 * python/lib/gdb/command/xmethods.py: New file.
261 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
263 * eval.c (evaluate_subexp_standard): Call the xmethod if the
264 best match method returned by find_overload_match is an xmethod.
265 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
266 the best matching operator returned by find_overload_match is an
268 * valops.c: #include "extension.h".
269 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
270 Return void. The list of matching source methods is returned in
271 "fn_list" and a vector of matching debug method workers is
272 returned in "xm_worker_vec". Update all callers.
273 (value_find_oload_method_list): Likewise.
274 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
275 non-NULL, then the index of the best matching method in this
276 vector is returned. Update all callers.
277 (find_overload_match): Include xmethods while performing overload
280 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
282 * defs.h (enum lval_type): New enumerator "lval_xcallable".
283 * extension-priv.h (struct extension_language_ops): Add the
285 * extension.c (new_xmethod_worker, clone_xmethod_worker,
286 get_matching_xmethod_workers, get_xmethod_argtypes,
287 invoke_xmethod, free_xmethod_worker,
288 free_xmethod_worker_vec): New functions.
289 * extension.h: #include "common/vec.h".
290 New function declarations.
291 (struct xmethod_worker): New struct.
292 (VEC (xmethod_worker_ptr)): New vector type.
293 (xmethod_worker_ptr): New typedef.
294 (xmethod_worker_vec): Likewise.
295 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
297 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
298 (struct builtin_type): New field "xmethod".
299 * valarith.c (value_ptradd): Assert that the value argument is not
301 * valops.c (value_must_coerce_to_target): Return 0 for
302 lval_xcallable values.
303 * value.c (struct value): New field XM_WORKER in the field
305 (value_address, value_raw_address): Return 0 for lval_xcallable
307 (set_value_address): Assert that the value is not an
309 (value_free): Free the associated xmethod worker when freeing
310 lval_xcallable values.
311 (set_value_component_location): Assert that the WHOLE value is not
313 (value_of_xmethod, call_xmethod): New functions.
314 * value.h: Declare "struct xmethod_worker".
315 Declare new functions value_of_xmethod, call_xmethod.
317 2014-06-03 Joel Brobecker <brobecker@adacore.com>
318 Pedro Alves <palves@redhat.com>
321 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
322 New function, extracted from software_breakpoint_inserted_here_p.
323 (software_breakpoint_inserted_here_p): Replace factored out code
324 by call to find_non_raw_software_breakpoint_inserted_here.
325 (bp_target_info_copy_insertion_state): New function.
326 (bkpt_insert_location): Handle the case of a single-step
327 breakpoint already inserted at the same address.
328 (bkpt_remove_location): Handle the case of a single-step
329 breakpoint still inserted at the same address.
330 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
331 breakpoint already inserted at the same address.
332 (deprecated_remove_raw_breakpoint): Handle the case of a
333 non-raw breakpoint still inserted at the same address.
334 (find_single_step_breakpoint): New function, extracted from
335 single_step_breakpoint_inserted_here_p.
336 (find_single_step_breakpoint): New function,
337 factored out from single_step_breakpoint_inserted_here_p.
338 (single_step_breakpoint_inserted_here_p): Reimplement.
340 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
342 Pushed by Joel Brobecker <brobecker@adacore.com>
343 * source.c (show_substitute_path_command): Fix display of matching
346 2014-06-03 Gary Benson <gbenson@redhat.com>
348 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
350 2014-06-02 Doug Evans <xdje42@gmail.com>
352 Add parameter support for Guile.
353 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
354 (SUBDIR_GUILE_SRCS): Add scm-param.c.
355 (scm-param.o): New rule.
356 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
357 (gdbscm_misc_error): Declare.
358 (gdbscm_canonicalize_command_name): Declare.
359 (gdbscm_scm_to_host_string): Declare.
360 (gdbscm_scm_from_host_string): Declare.
361 (gdbscm_initialize_parameters): Declare.
362 * guile/guile.c (initialize_gdb_module): Call
363 gdbscm_initialize_parameters.
364 * guile/lib/gdb.scm: Export parameter symbols.
365 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
366 cmdscm_canonicalize_name and made public. All callers updated.
367 * guile/scm-exception.c (gdbscm_misc_error): New function.
368 * guile/scm-param.c: New file.
369 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
370 (gdbscm_scm_to_host_string): New function.
371 (gdbscm_scm_from_host_string): New function.
372 * scm-utils.c (gdbscm_gc_dup_argv): New function.
374 2014-06-02 Doug Evans <xdje42@gmail.com>
376 Add command support for Guile.
377 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
378 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
379 (scm-cmd.o): New rule.
380 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
381 (gdbscm_user_error_p): Declare.
382 (gdbscm_parse_command_name): Declare.
383 (gdbscm_valid_command_class_p): Declare.
384 (gdbscm_initialize_commands): Declare.
385 * guile/guile.c (initialize_gdb_module): Call
386 gdbscm_initialize_commands.
387 * guile/lib/gdb.scm: Export command symbols.
388 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
389 (throw-user-error): New function.
390 * guile/scm-cmd.c: New file.
391 * guile/scm-exception.c (user_error_symbol): New static global.
392 (gdbscm_user_error_p): New function.
393 (gdbscm_initialize_exceptions): Set user_error_symbol.
394 * scm-utils.c (gdbscm_gc_xstrdup): New function.
396 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
398 * top.c (command_loop): Handle comments here...
399 (command_line_input): ... not here.
401 2014-06-02 Doug Evans <xdje42@gmail.com>
403 Add progspace support for Guile.
404 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
405 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
406 (scm-progspace.o): New rule.
407 * guile/guile-internal.h (pspace_smob): New typedef.
408 (psscm_pspace_smob_pretty_printers): Declare.
409 (psscm_pspace_smob_from_pspace): Declare.
410 (psscm_scm_from_pspace): Declare.
411 * guile/guile.c (initialize_gdb_module): Call
412 gdbscm_initialize_pspaces.
413 * guile/lib/gdb.scm: Export progspace symbols.
414 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
416 (append-pretty-printer!): Ditto.
417 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
419 * guile/scm-progspace.c: New file.
421 2014-06-03 Alan Modra <amodra@gmail.com>
423 * ppc64-tdep.c (ppc64_standard_linkage8): New.
424 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
426 2014-06-02 Doug Evans <dje@google.com>
428 Add support for skeletonless type units.
429 * dwarf2read.c (struct dwarf2_per_objfile): New member
430 n_allocated_type_units.
431 (struct dwarf2_per_objfile) <tu_stats>: New member
432 nr_all_type_units_reallocs.
433 (create_signatured_type_table_from_index): Initialize
434 n_allocated_type_units
435 (create_all_type_units): Ditto.
436 (add_type_unit): Move up in file. New arg slot.
437 All callers updated. Increase space for all_type_units more
439 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
440 (lookup_dwo_signatured_type): Handle skeletonless TUs.
441 (lookup_dwp_signatured_type): Ditto.
442 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
444 (build_type_psymtabs_1): Leave type_unit_groups as
445 NULL if no TUs present.
446 (print_tu_stats): New function.
447 (process_skeletonless_type_unit): New function.
448 (process_dwo_file_for_skeletonless_type_units): New
450 (process_skeletonless_type_units): New function.
451 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
452 Call print tu_stats if debugging enabled.
454 2014-06-02 Pedro Alves <palves@redhat.com>
456 * breakpoint.c (build_target_command_list): Don't build a command
457 list if we have any duplicate location that isn't a dprintf.
459 2014-06-02 Pedro Alves <palves@redhat.com>
461 * breakpoint.c (dprintf_breakpoint_hit): New function.
462 (initialize_breakpoint_ops): Install it as dprintf's
463 breakpoint_hit method.
465 2014-06-02 Joel Brobecker <brobecker@adacore.com>
467 * source.c (substitute_path_rule_matches): Simplify using
468 filename_ncmp instead of FILENAME_CMP.
470 2014-06-02 Joel Brobecker <brobecker@adacore.com>
472 * source.c (substitute_path_rule_matches): Remove trailing spaces.
474 2014-06-01 Ludovic Courtès <ludo@gnu.org>
476 * configure.ac: When Guile is available, check for the
477 availability of 'scm_new_smob'.
478 * configure, config.h.in: Regenerate.
479 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
482 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
484 * frame.c (struct frame_info): Add stop_string field.
485 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
486 (get_prev_frame_always): Old content moved into
487 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
488 TRY_CATCH, handle MEMORY_ERROR exceptions.
489 (frame_stop_reason_string): New function definition.
490 * frame.h (unwind_stop_reason_to_string): Extend comment to
491 mention frame_stop_reason_string.
492 (frame_stop_reason_string): New function declaration.
493 * stack.c (frame_info): Switch to frame_stop_reason_string.
494 (backtrace_command_1): Switch to frame_stop_reason_string.
495 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
496 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
497 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
499 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
501 * frame.c (frame_stop_reason_string): Rename to ...
502 (unwind_stop_reason_to_string): this.
503 * frame.h (frame_stop_reason_string): Rename to ...
504 (unwind_stop_reason_to_string): this.
505 * stack.c (frame_info): Update call to frame_stop_reason_string.
506 (backtrace_command_1): Likewise.
507 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
508 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
510 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
512 * frame.c (remove_prev_frame): New function.
513 (get_prev_frame_if_no_cycle): Create / discard cleanup using
516 2014-05-29 Pedro Alves <palves@redhat.com>
518 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
519 and make it const. When a single-step decays to a continue,
520 clear 'step', not 'hw_step'. Pass whether the caller wanted
521 to step to user_visible_resume_ptid, not what we ask the
524 2014-05-29 Pedro Alves <palves@redhat.com>
526 * infrun.c (process_event_stop_test, handle_step_into_function)
527 (handle_step_into_function_backward): Adjust.
528 Don't set the even thread's stop_step and call stop_waiting before
529 calling end_stepping_range. Instead do that ...
530 (end_stepping_range): ... here. Take an ecs pointer parameter.
532 2014-05-29 Pedro Alves <palves@redhat.com>
534 * infrun.c (stop_stepping): Rename to ...
535 (stop_waiting): ... this.
536 (proceed): Update comment.
537 (process_event_stop_test, handle_inferior_event)
538 (handle_signal_stop, handle_step_into_function)
539 (handle_step_into_function_backward): Update.
541 2014-05-29 Pedro Alves <palves@redhat.com>
543 * infcall.c (run_inferior_call): Don't check whether the current
544 thread is running after the proceed call.
546 2014-05-29 Pedro Alves <palves@redhat.com>
547 Tom Tromey <tromey@redhat.com>
549 * NEWS: Mention "maint set target-async", "set mi-async", and that
550 background execution commands are now always available.
551 * target.h (target_async_permitted): Update comment.
552 * target.c (target_async_permitted, target_async_permitted_1):
554 (set_target_async_command): Rename to ...
555 (maint_set_target_async_command): ... this.
556 (show_target_async_command): Rename to ...
557 (maint_show_target_async_command): ... this.
558 (_initialize_target): Adjust.
559 * infcmd.c (prepare_execution_command): Make extern.
560 * inferior.h (prepare_execution_command): Declare.
561 * infrun.c (set_observer_mode): Leave target async alone.
562 * mi/mi-interp.c (mi_interpreter_init): Install
563 mi_on_sync_execution_done as sync_execution_done observer.
564 (mi_on_sync_execution_done): New function.
565 (mi_execute_command_input_handler): Don't print the prompt if we
566 just started a synchronous command with an async target.
567 (mi_on_resume): Check sync_execution before printing prompt.
568 * mi/mi-main.h (mi_async_p): Declare.
569 * mi/mi-main.c: Include gdbcmd.h.
570 (mi_async_p): New function.
571 (mi_async, mi_async_1): New globals.
572 (set_mi_async_command, show_mi_async_command, mi_async): New
574 (exec_continue): Call prepare_execution_command.
575 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
576 (mi_execute_async_cli_command): Use mi_async_p.
577 (_initialize_mi_main): Install "set mi-async". Make
578 "target-async" a deprecated alias.
580 2014-05-29 Pedro Alves <palves@redhat.com>
582 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
583 (_initialize_cli_interp): Adjust.
584 * event-loop.c: Include "observer.h".
585 (start_event_loop): Notify 'command_error' observers instead of
586 calling display_gdb_prompt. Remove FIXME comment.
587 * event-top.c (display_gdb_prompt): Remove call into the
589 * inf-loop.c: Include "observer.h".
590 (inferior_event_handler): Notify 'command_error' observers instead
591 of calling display_gdb_prompt.
592 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
593 observers instead of calling display_gdb_prompt.
594 * interps.c (interp_set): Don't call display_gdb_prompt.
595 (current_interp_display_prompt_p): Delete.
596 * interps.h (interp_prompt_p): Delete declaration.
597 (interp_prompt_p_ftype): Delete.
598 (struct interp_procs) <prompt_proc_p>: Delete field.
599 (current_interp_display_prompt_p): Delete declaration.
600 * mi-interp.c (mi_interpreter_prompt_p): Delete.
601 (_initialize_mi_interp): Adjust.
602 * tui-interp.c (tui_init): Install 'sync_execution_done' and
603 'command_error' observers.
604 (tui_on_sync_execution_done, tui_on_command_error): New
606 (tui_display_prompt_p): Delete.
607 (_initialize_tui_interp): Adjust.
609 2014-05-29 Pedro Alves <palves@redhat.com>
612 * cli/cli-interp.c: Include infrun.h and observer.h.
613 (cli_uiout, cli_interp): New globals.
614 (cli_on_signal_received, cli_on_end_stepping_range)
615 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
617 (cli_interpreter_init): Install them as 'end_stepping_range',
618 'signal_received' 'signal_exited', 'exited' and 'no_history'
620 (_initialize_cli_interp): Remove cli_interp local.
621 * infrun.c (handle_inferior_event): Call the several stop reason
622 observers instead of printing the stop reason directly.
623 (end_stepping_range): New function.
624 (print_end_stepping_range_reason, print_signal_exited_reason)
625 (print_exited_reason, print_signal_received_reason)
626 (print_no_history_reason): Make static, and add an uiout
627 parameter. Print to that instead of to CURRENT_UIOUT.
628 * infrun.h (print_end_stepping_range_reason)
629 (print_signal_exited_reason, print_exited_reason)
630 (print_signal_received_reason print_no_history_reason): New
632 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
634 <cli_uiout>: New field.
635 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
636 uiout for CLI output. Install 'signal_received',
637 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
639 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
640 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
641 (mi_on_no_history): New functions.
642 (ui_out_free_cleanup): Delete function.
643 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
644 instead use the one already stored in the MI interpreter data.
646 * tui/tui-interp.c: Include infrun.h and observer.h.
647 (tui_interp): New global.
648 (tui_on_signal_received, tui_on_end_stepping_range)
649 (tui_on_signal_exited, tui_on_exited)
650 (tui_on_no_history): New functions.
651 (tui_init): Install them as 'end_stepping_range',
652 'signal_received' 'signal_exited', 'exited' and 'no_history'
654 (_initialize_tui_interp): Delete tui_interp local.
656 2014-05-29 Pedro Alves <palves@redhat.com>
659 * linux-nat.c (linux_nat_resume_callback): Rename the second
660 parameter to 'except'. Skip LP if it points to EXCEPT.
661 (linux_nat_resume): Don't mark the event lwp as not stopped
662 before resuming sibling lwps. Instead ask
663 linux_nat_resume_callback to skip the event lwp. Mark it as not
664 stopped after actually resuming it.
665 (linux_handle_syscall_trap): Mark the lwp as not stopped after
667 (wait_lwp): Mark the lwp as stopped here.
668 (stop_wait_callback): Mark the lwp as not stopped right after
669 resuming it. Don't mark lwps as stopped here.
670 (linux_nat_filter_event): Mark the lwp as stopped earlier.
671 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
673 2014-05-29 Pedro Alves <palves@redhat.com>
676 * infrun.c (resume): Determine how much to resume depending on
677 whether the caller wanted a step, not whether we can hardware step
678 the target. Mark all threads that we intend to run as running,
679 unless we're calling an inferior function.
680 (normal_stop): If the thread is running an infcall, don't finish
682 * target.c (target_resume): Don't mark threads as running here.
684 2014-05-28 Joel Brobecker <brobecker@adacore.com>
686 * serial.c (_initialize_serial): Remove support for
687 the "set remotebaud" and "show remotebaud" commands.
688 * NEWS: Add entry documenting the removal of that command.
690 2014-05-28 Yao Qi <yao@codesourcery.com>
692 * charset.c: Fix typo in comments.
694 2014-05-27 Gary Benson <gbenson@redhat.com>
696 * utils.c (internal_vproblem): Prompt for a bug report.
698 2014-05-26 Andy Wingo <wingo@igalia.com>
700 * guile/scm-arch.c (arscm_mark_arch_smob):
701 * guile/scm-block.c (bkscm_mark_block_smob)
702 (bkscm_mark_block_syms_progress_smob):
703 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
704 * guile/scm-exception.c (exscm_mark_exception_smob):
705 * guile/scm-frame.c (frscm_mark_frame_smob):
706 * guile/scm-iterator.c (itscm_mark_iterator_smob):
707 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
708 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
709 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
710 (ppscm_mark_pretty_printer_worker_smob):
711 * guile/scm-symbol.c (syscm_mark_symbol_smob):
712 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
713 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
714 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
716 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
719 2014-05-26 Andy Wingo <wingo@igalia.com>
720 Doug Evans <xdje42@gmail.com>
722 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
723 empty_base_class. All uses updated.
724 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
725 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
727 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
728 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
729 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
730 (gdbscm_gsmob_has_property_p, add_property_name)
731 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
732 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
733 (gdb-object-has-property?, gdb-object-properties): Remove.
734 (gdb-object-kind): Renamed from gsmob-kind.
736 2014-05-26 Andy Wingo <wingo@igalia.com>
738 * configure.ac (try_guile_versions): Allow building with guile 2.2.
739 * configure: Regenerate.
741 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
743 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
745 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
747 * record-btrace.c (record_btrace_allow_memory_access): Remove.
748 (replay_memory_access_read_only, replay_memory_access_read_write)
749 (replay_memory_access_types, replay_memory_access)
750 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
751 (cmd_set_record_btrace, cmd_show_record_btrace)
752 (cmd_show_replay_memory_access): New.
753 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
754 (record_btrace_remove_breakpoint): Replace
755 record_btrace_allow_memory_access with replay_memory_access.
756 (_initialize_record_btrace): Add commands.
759 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
761 * aarch64-linux-nat.c (asm/ptrace.h): Include.
763 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
765 * MAINTAINERS (Write After Approval): Move self back from
768 2014-05-22 Pedro Alves <palves@redhat.com>
770 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
771 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
772 (disable_randomization, enum exec_direction_kind)
773 (execution_direction, stop_registers, start_remote)
774 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
775 (wait_for_inferior, normal_stop, get_last_target_status)
776 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
777 (insert_step_resume_breakpoint_at_sal)
778 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
779 (set_step_info, print_stop_event, signal_stop_state)
780 (signal_print_state, signal_pass_state, signal_stop_update)
781 (signal_print_update, signal_pass_update)
782 (update_signals_program_target, clear_exit_convenience_vars)
783 (displaced_step_dump_bytes, update_observer_mode)
784 (signal_catch_update, gdb_signal_from_command): Move
786 * infrun.h: ... to this new file.
787 * amd64-tdep.c: Include infrun.h.
788 * annotate.c: Include infrun.h.
789 * arch-utils.c: Include infrun.h.
790 * arm-linux-tdep.c: Include infrun.h.
791 * arm-tdep.c: Include infrun.h.
792 * break-catch-sig.c: Include infrun.h.
793 * breakpoint.c: Include infrun.h.
794 * common/agent.c: Include infrun.h instead of inferior.h.
795 * corelow.c: Include infrun.h.
796 * event-top.c: Include infrun.h.
797 * go32-nat.c: Include infrun.h.
798 * i386-tdep.c: Include infrun.h.
799 * inf-loop.c: Include infrun.h.
800 * infcall.c: Include infrun.h.
801 * infcmd.c: Include infrun.h.
802 * infrun.c: Include infrun.h.
803 * linux-fork.c: Include infrun.h.
804 * linux-nat.c: Include infrun.h.
805 * linux-thread-db.c: Include infrun.h.
806 * monitor.c: Include infrun.h.
807 * nto-tdep.c: Include infrun.h.
808 * procfs.c: Include infrun.h.
809 * record-btrace.c: Include infrun.h.
810 * record-full.c: Include infrun.h.
811 * remote-m32r-sdi.c: Include infrun.h.
812 * remote-mips.c: Include infrun.h.
813 * remote-notif.c: Include infrun.h.
814 * remote-sim.c: Include infrun.h.
815 * remote.c: Include infrun.h.
816 * reverse.c: Include infrun.h.
817 * rs6000-tdep.c: Include infrun.h.
818 * s390-linux-tdep.c: Include infrun.h.
819 * solib-irix.c: Include infrun.h.
820 * solib-osf.c: Include infrun.h.
821 * solib-svr4.c: Include infrun.h.
822 * target.c: Include infrun.h.
823 * top.c: Include infrun.h.
824 * windows-nat.c: Include infrun.h.
825 * mi/mi-interp.c: Include infrun.h.
826 * mi/mi-main.c: Include infrun.h.
827 * python/py-threadevent.c: Include infrun.h.
829 2014-05-22 Pedro Alves <palves@redhat.com>
831 * infrun.c (handle_inferior_event): Store the exit code for
832 --return-child-result here, instead of ...
833 (print_exited_reason): ... here.
835 2014-05-21 Pedro Alves <palves@redhat.com>
838 * gdbthread.h (struct thread_control_state): New field
840 * infrun.c (follow_fork): Copy the new thread control field to the
842 (clear_proceed_status_thread): Clear the new thread control field.
843 (proceed): Set the new thread control field.
844 * interps.h (command_interp): Declare.
845 * interps.c (command_interpreter): New global.
846 (command_interp): New function.
847 (interp_exec): Set `command_interpreter' while here.
848 * cli-out.c (cli_uiout_dtor): New function.
849 (cli_ui_out_impl): Install it.
850 * mi/mi-interp.c: Include cli-out.h.
851 (mi_cmd_interpreter_exec): Add comment.
852 (restore_current_uiout_cleanup): New function.
853 (ui_out_free_cleanup): New function.
854 (mi_on_normal_stop): If finishing an execution command started by
855 a CLI command, or any kind of breakpoint-like event triggered,
856 print the stop event to the output (CLI) stream.
857 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
859 2014-05-21 Pedro Alves <palves@redhat.com>
861 * cli/cli-cmds.c (list_command): Handle the first "list" after the
862 current source line having changed.
863 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
864 * infrun.c (normal_stop): Adjust call to
865 set_current_sal_from_frame.
866 * source.c (clear_lines_listed_range): New function.
867 (set_current_source_symtab_and_line, identify_source_line): Clear
868 the lines listed range.
869 (line_info): Handle the first "info line" after the current source
871 * stack.c (print_stack_frame): Remove center handling.
872 (set_current_sal_from_frame): Remove 'center' parameter. Don't
875 2014-05-21 Pedro Alves <palves@redhat.com>
877 * inf-child.c (inf_child_mourn_inferior): New function.
878 * inf-child.h (inf_child_mourn_inferior): New declaration.
879 * darwin-nat.c (darwin_mourn_inferior): Use
880 inf_child_mourn_inferior.
881 * gnu-nat.c (gnu_mourn_inferior): Likewise.
882 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
883 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
884 * nto-procfs.c (procfs_mourn_inferior): Likewise.
885 * windows-nat.c (windows_mourn_inferior): Likewise.
887 2014-05-21 Doug Evans <xdje42@gmail.com>
889 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
891 2014-05-21 Doug Evans <xdje42@gmail.com>
893 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
894 (gdbscm_out_of_range_error): Ditto.
895 (gdbscm_memory_error): Ditto.
896 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
897 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
898 (gdbscm_out_of_range_error): Update.
899 (gdbscm_memory_error): Update.
900 (gdbscm_scm_to_target_string_unsafe): Delete.
902 2014-05-21 Pedro Alves <palves@redhat.com>
904 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
906 (inf_child_open_target): New function.
907 (inf_child_open): Use inf_child_open_target to push the target
908 instead of erroring out.
909 (inf_child_disconnect, inf_child_close)
910 (inf_child_maybe_unpush_target): New functions.
911 (inf_child_target): Install inf_child_disconnect and
912 inf_child_close. Store a pointer to the returned object.
913 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
915 * target.c (auto_connect_native_target): New global.
916 (show_default_run_target): New function.
917 (find_default_run_target): Return NULL if automatically connecting
918 to the native target is disabled.
919 (_initialize_target): Install set/show auto-connect-native-target.
920 * NEWS: Mention "set auto-connect-native-target", and "target
922 * linux-nat.c (super_close): New global.
923 (linux_nat_close): Call super_close.
924 (linux_nat_add_target): Store a pointer to the base class's
926 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
927 inf_child_maybe_unpush.
928 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
930 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
931 the inferior. Use inf_child_maybe_unpush_target.
932 (inf_ttrace_attach): Don't push the target if it is already
934 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
935 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
936 after mourning the inferior. Use inf_child_maybe_unpush_target.
937 (darwin_attach_pid): Don't push the target if it is already
939 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
940 mourning the inferior. Use inf_child_maybe_unpush_target.
941 (gnu_detach): Use inf_child_maybe_unpush_target.
942 * go32-nat.c (go32_create_inferior): Don't push the target if it
944 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
945 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
946 (procfs_open): Rename to ...
947 (procfs_open_1): ... this. Add target_ops parameter. Adjust
948 comments. Can target_preopen before changing node. Call
949 inf_child_open_target to push the target explicitly.
950 (procfs_attach): Don't push the target if it is already pushed.
951 (procfs_detach): Use inf_child_maybe_unpush_target.
952 (procfs_create_inferior): Don't push the target if it is already
954 (nto_native_ops): New global.
955 (procfs_open): Reimplement.
956 (procfs_native_open): New function.
957 (init_procfs_targets): Install procfs_native_open as to_open of
958 "target native". Store a pointer to the "native" target in
960 * procfs.c (procfs_attach): Don't push the target if it is already
962 (procfs_detach): Use inf_child_maybe_unpush_target.
963 (procfs_mourn_inferior): Only unpush the target after mourning the
964 inferior. Use inf_child_maybe_unpush_target.
965 (procfs_init_inferior): Don't push the target if it is already
967 * windows-nat.c (do_initial_windows_stuff): Don't push the target
968 if it is already pushed.
970 2014-05-21 Pedro Alves <palves@redhat.com>
972 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
973 and "procfs" targets are now called "native" instead.
975 2014-05-21 Pedro Alves <palves@redhat.com>
977 * go32-nat.c (go32_open): Delete.
978 (go32_target): Don't override the to_open method.
980 2014-05-21 Pedro Alves <palves@redhat.com>
982 * nto-procfs.c (procfs_can_run): New function.
983 (nto_procfs_ops): New global.
984 (init_procfs_targets): New, based on procfs_target. Install
985 "target native" in addition to "target procfs".
986 (_initialize_procfs): Call init_procfs_targets instead of adding
989 2014-05-21 Pedro Alves <palves@redhat.com>
991 * windows-nat.c (windows_target): Don't override to_shortname,
992 to_longname or to_doc.
994 2014-05-21 Pedro Alves <palves@redhat.com>
996 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
999 2014-05-21 Pedro Alves <palves@redhat.com>
1001 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1002 to_shortname, to_longname or to_doc.
1004 2014-05-21 Pedro Alves <palves@redhat.com>
1006 * go32-nat.c (go32_target): Don't override to_shortname,
1007 to_longname or to_doc.
1009 2014-05-21 Pedro Alves <palves@redhat.com>
1011 * inf-child.c (inf_child_open): Remove mention of "child".
1012 (inf_child_target): Rename target to "native" instead of "child".
1014 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1016 * Makefile.in (SFILES): Delete "regset.c".
1017 (COMMON_OBS): Delete "regset.o".
1019 * regset.h (regset_alloc): Delete prototype.
1021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1023 * sparc-linux-tdep.c (sparc32_linux_gregset)
1024 (sparc32_linux_fpregset): New static regset structures.
1025 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1026 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1028 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1029 (sparc64_linux_fpregset): New static regset structures.
1030 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1031 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1032 New static regset structures.
1033 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1034 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1035 New static regset structures.
1036 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1037 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1038 New static regset structures.
1039 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1040 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1041 New static regset structures.
1042 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1044 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1047 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1048 register maps ("regmaps") from "*regset" to "*regmap". Do this
1049 for all regmap types and variables.
1050 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1051 (sparc32_linux_supply_core_gregset)
1052 (sparc32_linux_collect_core_gregset)
1053 (sparc32_linux_supply_core_fpregset)
1054 (sparc32_linux_collect_core_fpregset): Likewise.
1055 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1056 (sparc_gregmap, sparc_fpregmap): ... these.
1057 (sparc_supply_gregset, sparc_collect_gregset)
1058 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1059 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1060 (_initialize_sparc_nat): Rename regmaps.
1061 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1062 (sparc_gregmap, sparc_fpregmap): ... these.
1063 (sparc_supply_gregset, sparc_collect_gregset)
1064 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1065 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1067 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1068 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1070 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1072 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1073 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1074 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1076 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1077 (sparc32_bsd_fpregset): Rename to...
1078 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1079 (sparc32_bsd_fpregmap): ... these.
1080 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1081 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1082 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1083 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1084 (struct sparc_gregmap, struct sparc_fpregmap)
1085 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1086 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1087 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1088 (sparc32_supply_regset, sparc32_collect_gregset)
1089 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1091 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1092 (sparc64_linux_ptrace_gregmap): ... this.
1093 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1094 (_initialize_sparc64_linux_nat): Rename regmaps.
1095 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1096 (sparc64_linux_core_gregmap): ... this.
1097 (sparc64_linux_supply_core_gregset)
1098 (sparc64_linux_collect_core_gregset)
1099 (sparc64_linux_supply_core_fpregset)
1100 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1101 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1102 (sparc64_sol2_fpregset): Rename to...
1103 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1104 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1105 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1107 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1108 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1109 (sparc64_bsd_fpregset): Rename to...
1110 (struct sparc_gregmap, sparc64_sol2_gregmap)
1111 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1112 (sparc64_bsd_fpregmap): ... these.
1113 (sparc64_supply_gregset, sparc64_collect_gregset)
1114 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1116 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1117 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1118 (sparc64fbsd_gregmap): ... this.
1119 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1120 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1122 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1123 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1124 (sparc64nbsd_collect_fpregset): Likewise.
1125 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1126 (sparc64nbsd_gregmap): ... this.
1127 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1129 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1130 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1131 (sparc64obsd_gregmap): ... this.
1132 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1134 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1135 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1136 (sparc32nbsd_gregmap): ... this.
1137 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1140 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142 * score-tdep.c (score7_linux_gregset): New static regset
1144 (score7_linux_regset_from_core_section): Remove dynamic regset
1146 (score_gdbarch_init): Drop allocation of tdep structure.
1147 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1149 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1151 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1153 (am33_regset_from_core_section): Remove dynamic regset
1156 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1158 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1159 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1161 (mips_linux_regset_from_core_section): Remove dynamic regset
1163 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1164 'gregset64', 'fpregset', and 'fpregset64'.
1165 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1166 deleted tdep fields.
1168 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1170 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1172 (amd64_regset_from_core_section): Remove dynamic regset
1174 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1176 (amd64obsd_regset_from_core_section): Remove dynamic regset
1178 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1180 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1181 x86-common regset supply function.
1182 * i386-tdep.c (i386_collect_gregset): Make static.
1183 (i386_gregset): New global regset structure.
1184 (i386_fpregset, i386_xstateregset): New static regset structures.
1185 (i386_regset_from_core_section): Remove dynamic regset
1187 (i386_gdbarch_init): Remove initialization of tdep fields
1188 'gregset', 'fpregset', and 'xstateregset'.
1189 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1190 'fpregset', and 'xstateregset'.
1191 (i386_collect_gregset): Remove prototype.
1192 (i386_gregset): New declaration.
1193 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1195 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1198 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1200 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1201 (arm_linux_vfpregset): New static regset structures.
1202 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1204 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1205 and 'vfpregset' fields.
1207 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1210 (aarch64_linux_fpregset): New static regset structures.
1211 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1212 of regset structures.
1213 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1216 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218 * regset.h (struct regset): Remove gdbarch field.
1219 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1220 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1221 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1223 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1224 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1225 (ppc32_linux_vsxregset): Likewise.
1226 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1227 via the regcache instead of the regset.
1228 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1229 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1230 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1231 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1234 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1236 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1237 Constify structures.
1238 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1239 (alphanbsd_aout_gregset): Likewise.
1240 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1241 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1243 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1244 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1246 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1247 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1248 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1249 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1250 * m88k-tdep.c (m88k_gregset): Likewise.
1251 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1252 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1253 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1254 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1255 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1256 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1257 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1258 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1259 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1261 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1262 * sh-tdep.h (sh_corefile_gregset): Likewise.
1263 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1264 * vax-tdep.c (vax_gregset): Likewise.
1266 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 Fix TLS access for -static -pthread.
1269 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1270 (try_thread_db_load_1): Initialize it.
1271 (thread_db_get_thread_local_address): Call it if LM is zero.
1272 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1273 * target.h (struct target_ops) (to_get_thread_local_address): Add
1274 load_module_addr comment.
1276 2014-05-21 Pedro Alves <palves@redhat.com>
1278 * dcache.c (dcache_read_memory_partial): If reading the cache line
1279 fails, fallback to reading just the memory the caller wanted.
1281 2014-05-20 Doug Evans <dje@google.com>
1283 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1284 instead of get_current_arch.
1286 2014-05-20 Pedro Alves <palves@redhat.com>
1288 * NEWS: Mention that compare-sections now works with all targets.
1290 * remote.c (PACKET_qCRC): New enum value.
1291 (remote_verify_memory): Don't send qCRC if the target has no
1292 execution. Use packet_support/packet_ok. If the target doesn't
1293 support the qCRC packet, fallback to a deep memory copy.
1294 (compare_sections_command): Say "target image" instead of "remote
1296 (_initialize_remote): Add PACKET_qCRC to the list of config
1297 packets that have no associated command. Extend comment.
1298 * target.c (simple_verify_memory, default_verify_memory): New
1300 * target.h (struct target_ops) <to_verify_memory>: Default to
1301 default_verify_memory.
1302 (simple_verify_memory): New declaration.
1303 * target-delegates.c: Regenerate.
1305 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1307 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1309 2014-05-20 Hui Zhu <hui@codesourcery.com>
1310 Yao Qi <yao@codesourcery.com>
1313 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1314 and change address of sp and pc.
1316 2014-05-19 Tom Tromey <tromey@redhat.com>
1318 * gdbtypes.c (rank_function): Use XNEWVEC.
1319 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1321 2014-05-19 Doug Evans <dje@google.com>
1323 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1324 build_type_unit_groups and moved closer to only caller. Remove
1325 arguments. All references updated. Remove outdated .gdb_index
1327 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1328 build_type_psymtabs_1.
1330 2014-05-19 Doug Evans <dje@google.com>
1332 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1333 n_type_unit_groups, all_type_unit_groups. All uses removed.
1334 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1335 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1336 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1337 (add_type_unit_group_to_table): Delete.
1339 2014-05-19 Doug Evans <dje@google.com>
1341 * eval.c (evaluate_subexp_standard): Add some comments.
1343 2014-05-17 Doug Evans <xdje42@gmail.com>
1345 * progspace.c (remove_program_space): Delete, unused.
1346 * progspace.h (remove_program_space): Ditto.
1348 2014-05-17 Doug Evans <xdje42@gmail.com>
1350 * inferior.c (prune_inferiors): Fix comment.
1351 (remove_inferior_command): Call prune_program_spaces.
1353 2014-05-16 Doug Evans <dje@google.com>
1355 New command line option -D.
1357 * main.c (set_gdb_data_directory): New function.
1358 (captured_main): Recognize -D. Flag error for --data-directory "".
1359 Call set_gdb_data_directory.
1360 (print_gdb_help): Print --data-directory, -D.
1361 * main.h (set_gdb_data_directory): Declare.
1362 * top.c (staged_gdb_datadir): New static global.
1363 (set_gdb_datadir): Call set_gdb_data_directory
1364 (show_gdb_datadir): New function.
1365 (init_main): Update init of data-directory parameter.
1367 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1369 Import the "dirfd" gnulib module.
1370 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1371 * gnulib/aclocal.m4: Update.
1372 * gnulib/config.in: Update.
1373 * gnulib/configure: Update.
1374 * gnulib/import/Makefile.am: Update.
1375 * gnulib/import/Makefile.in: Update.
1376 * gnulib/import/dirfd.c: New.
1377 * gnulib/import/m4/dirfd.m4: New.
1378 * gnulib/import/m4/gnulib-cache.m4: Update.
1379 * gnulib/import/m4/gnulib-comp.m4: Update.
1381 2014-05-16 Pierre Muller <muller@sourceware.org>
1382 Yao Qi <yao@codesourcery.com>
1384 * valprint.c (print_wchar): Move the code on checking whether
1385 W is a printable wide char to the default branch of switch
1386 statement below. Call wchar_printable instead of gdb_iswprint.
1388 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1390 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1391 ldr.w and ldrd instructions.
1393 2014-05-15 Doug Evans <dje@google.com>
1395 * dwarf2read.c (read_structure_type): Delete outdated comments.
1397 2014-05-14 Tom Tromey <tromey@redhat.com>
1399 * macrocmd.c (print_macro_definition): Reindent.
1401 2014-05-13 Doug Evans <xdje42@gmail.com>
1403 * python/py-cmd.c (cmdpy_completer): Add comment.
1404 (completers): Make const.
1406 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1408 * infrun.c (resume): Remove should_resume (unused). Move up
1409 declaration of resume_ptid.
1411 2014-05-13 Tom Tromey <tromey@redhat.com>
1413 * language.h (unop_type_check): Remove.
1414 (binop_type_check): Don't declare.
1416 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1418 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1419 call to regcache_raw_collect.
1421 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1423 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1424 mi_console->quote as the quoting character.
1426 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1428 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1430 2014-04-29 Tom Tromey <tromey@redhat.com>
1432 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1433 "show debug varobj".
1435 2014-05-07 Kyle McMartin <kyle@redhat.com>
1437 Pushed by Joel Brobecker <brobecker@adacore.com>.
1438 * aarch64-tdep.c (aarch64_software_single_step): New function.
1439 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1440 with aarch64_software_single_step.
1442 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1446 2014-05-05 Keith Seitz <keiths@redhat.com>
1448 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1449 variable or history value is successfully parsed.
1451 2014-05-05 Yao Qi <yao@codesourcery.com>
1452 Pedro Alves <palves@redhat.com>
1454 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1455 address of blocks that intersects the requested range. Trim
1456 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1458 * ctf.c (ctf_xfer_partial): Likewise.
1460 2014-05-05 Yao Qi <yao@codesourcery.com>
1462 * printcmd.c (display_command): Remove the check to
1463 target_has_execution.
1465 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1467 * ppcobsd-nat.c: Include "obsd-nat.h".
1468 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1470 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1472 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1474 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1475 and 16-bit signed and unsigned arguments. Update comment.
1476 (stap_parse_probe_arguments): Extend code to handle such
1477 arguments. Use warning instead of complaint to notify about
1478 unrecognized bitness.
1480 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1482 PR breakpoints/16889
1483 * stap-probe.c (stap_parse_probe_arguments): Simplify
1484 check for non-prefixed probes (i.e., probes whose
1485 arguments do not start with "N@"). Always set the
1486 argument type to a sane value.
1488 2014-05-01 David Taylor <dtaylor@emc.com>
1490 * remote.c (compare_sections_command): Add -r option to compare
1491 all loadable read-only sections.
1493 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1495 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1496 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1498 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1499 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1500 Remove unused CORE_ADDR argument. Update all callers.
1502 2014-04-29 Pedro Alves <palves@redhat.com>
1504 * remote.c (struct packet_config) <detect>: Extend comment.
1505 (add_packet_config_cmd): Don't set the config's detect or support
1507 (init_all_packet_configs): Also initialize the config's 'detect'
1509 (reset_all_packet_configs_support): New function.
1510 (remote_open_1): Call reset_all_packet_configs_support instead of
1511 init_all_packet_configs.
1512 (_initialize_remote): Initialize all packet configs. Assert that
1513 all packets have an associated command, except a few known
1516 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1518 * dwarf2read.c (read_subrange_type): Handle dynamic
1519 DW_AT_lower_bound attributes.
1521 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1523 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1524 dynamic bounds before computing its upper bound.
1525 (ada_discrete_type_low_bound): Same as above with the lower bound.
1527 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1529 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1530 range types. Adjust the array handling implementation to
1531 take advantage of this change.
1532 (resolve_dynamic_range): New function, mostly extracted from
1533 resolve_dynamic_bounds.
1534 (resolve_dynamic_array): New function, mostly extracted from
1535 resolve_dynamic_bounds.
1536 (resolve_dynamic_bounds): Delete.
1537 (resolve_dynamic_type): Reimplement. Add handling of
1538 TYPE_CODE_RANGE types.
1540 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1542 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1543 handling of parallel ___XA types.
1545 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1547 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1548 unnecessary second call to static_unwrap_type.
1550 2014-04-27 Hui Zhu <hui@codesourcery.com>
1552 * stack.c (print_frame_info): Call do_gdb_disassembly with
1553 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1555 2014-04-26 Doug Evans <xdje42@gmail.com>
1557 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1559 2014-04-25 Pedro Alves <palves@redhat.com>
1562 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1563 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1564 and newline from built string.
1565 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1566 (linux_ptrace_attach_fail_reason): ... this.
1567 * linux-nat.c (linux_nat_attach): Adjust to use
1568 linux_ptrace_attach_fail_reason.
1570 2014-04-25 Pedro Alves <palves@redhat.com>
1572 * remote.c (struct remote_state): Remove multi_process_aware,
1573 non_stop_aware, cond_tracepoints, cond_breakpoints,
1574 breakpoint_commands, fast_tracepoints, static_tracepoints,
1575 install_in_trace, disconnected_tracing,
1576 enable_disable_tracepoints, string_tracing, and
1577 augmented_libraries_svr4_read fields.
1578 (remote_multi_process_p): Move further below in the file.
1579 (struct packet_config): Add comments.
1580 (update_packet_config): Delete function.
1581 (show_packet_config_cmd): Use packet_config_support.
1582 (add_packet_config_cmd): Use NULL as set callback.
1583 (packet_ok): "set remote foo-packet"-style commands no longer
1584 change config->supported -- adjust.
1585 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1586 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1587 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1588 (PACKET_QNonStop, PACKET_multiprocess_feature)
1589 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1590 (PACKET_DisconnectedTracing_feature)
1591 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1592 (set_remote_protocol_packet_cmd): Delete function.
1593 (packet_config_support, packet_support): New functions.
1594 (set_remote_protocol_Z_packet_cmd): Don't call
1595 update_packet_config.
1596 (remote_query_attached, remote_pass_signals)
1597 (remote_program_signals, remote_threads_info)
1598 (remote_threads_extra_info, remote_start_remote): Use
1600 (remote_start_remote): Use packet_config_support and
1602 (init_all_packet_configs): Set all packets to unknown support,
1603 instead of calling update_packet_config.
1604 (remote_check_symbols): Use packet_support.
1605 (remote_supported_packet): Unconditionally set the packet config's
1607 (remote_multi_process_feature, remote_non_stop_feature)
1608 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1609 (remote_breakpoint_commands_feature)
1610 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1611 (remote_install_in_trace_feature)
1612 (remote_disconnected_tracing_feature)
1613 (remote_enable_disable_tracepoint_feature)
1614 (remote_string_tracing_feature)
1615 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1616 (remote_protocol_features): Adjust to use remote_supported_packet
1617 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1618 "ConditionalTracepoints", "ConditionalBreakpoints",
1619 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1620 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1621 "EnableDisableTracepoints", and "tracenz".
1622 (remote_query_supported): Use packet_support.
1623 (remote_open_1): Adjust.
1624 (extended_remote_attach_1): Use packet_support. Switch on the
1625 result of packet_ok instead of checking whether the packet ended
1627 (remote_vcont_resume): Use packet_support.
1628 (remote_resume, remote_stop_ns, fetch_register_using_p)
1629 (remote_prepare_to_store, store_register_using_P)
1630 (check_binary_download, remote_write_bytes): Use packet_support.
1631 (remote_vkill): Use packet_support. Switch on the result of
1632 packet_ok instead of checking whether the packet ended up
1634 (extended_remote_supports_disable_randomization): Use
1636 (extended_remote_run): Switch on the result of packet_ok instead
1637 of checking whether the packet ended up disabled.
1638 (remote_insert_breakpoint, remote_remove_breakpoint)
1639 (remote_insert_watchpoint, remote_remove_watchpoint)
1640 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1642 (remote_search_memory): Use packet_config_support.
1643 (remote_get_thread_local_address, remote_get_tib_address)
1644 (remote_hostio_send_command, remote_can_execute_reverse): Use
1646 (remote_supports_cond_tracepoints)
1647 (remote_supports_cond_breakpoints)
1648 (remote_supports_fast_tracepoints)
1649 (remote_supports_static_tracepoints)
1650 (remote_supports_install_in_trace)
1651 (remote_supports_enable_disable_tracepoint)
1652 (remote_supports_string_tracing)
1653 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1654 the packet config says the feature is enabled or disabled.
1655 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1656 (remote_get_trace_status): Use packet_support.
1657 (remote_set_disconnected_tracing): Adjust to check whether the
1658 feature is enabled with packet_support.
1659 (remote_set_trace_buffer_size, remote_use_agent)
1660 (remote_can_use_agent, remote_supports_btrace): Use
1662 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1663 Use packet_config_support.
1664 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1665 the packet config says the feature is enabled or disabled.
1666 (set_range_stepping): Use packet_support.
1668 2014-04-25 Tom Tromey <tromey@redhat.com>
1670 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1673 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1675 * NEWS: Mention support for C99 variable length arrays.
1677 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1679 * ada-lang.c (standard_exc): Expand introductory comment.
1681 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1682 Walfred Tedeschi <walfred.tedeschi@intel.com>
1684 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1686 (amd64_linux_read_description): Add code to handle AVX512 xstate
1687 mask and return respective tdesc.
1688 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1689 and features/i386/x32-avx512-linux.c.
1690 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1691 (amd64_linux_core_read_description): Add code to handle AVX512
1692 xstate mask and return respective tdesc.
1693 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1694 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1696 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1697 (tdesc_amd64_avx512_linux): New prototype.
1698 (tdesc_x32_avx512_linux): Likewise.
1699 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1700 features/i386/x32-avx512.c.
1701 (amd64_ymm_avx512_names): New register names for pseudo
1703 (amd64_ymmh_avx512_names): New register names for raw registers
1705 (amd64_k_names): New register names for K registers.
1706 (amd64_zmmh_names): New register names for ZMM raw registers.
1707 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1708 (amd64_xmm_avx512_names): New register names for XMM16-31
1710 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1712 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1713 if feature is present.
1714 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1715 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1716 (AMD64_NUM_REGS): Adjust to new number of registers.
1717 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1718 registers supplied via XSTATE by AVX512 registers.
1719 (i386_linux_read_description): Add case for AVX512.
1720 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1721 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1722 (i386_linux_core_read_description): Add case for AVX512.
1723 (i386_linux_init_abi): Install supported register note section
1725 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1727 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1728 registers to be number of zmm7h + 1.
1729 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1730 * i386-tdep.c: Include features/i386/i386-avx512.c.
1731 (i386_zmm_names): Add ZMM pseudo register names array.
1732 (i386_zmmh_names): Add ZMM raw register names array.
1733 (i386_k_names): Add K raw register names array.
1734 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1735 registers. AVX512 has 16 more ZMM registers than there are YMM
1737 (i386_zmmh_regnum_p): Add function to look up register number of
1739 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1740 (i386_k_regnum_p): Likewise for K raw registers.
1741 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1742 registers added by AVX512.
1743 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1744 registers added by AVX512.
1745 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1747 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1748 (i386_pseudo_register_name): Add ZMM pseudo registers.
1749 (i386_zmm_type): Construct and return vector registers type for ZMM
1751 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1752 ZMM0-31 pseudo registers and K registers.
1753 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1754 and YMM16-31 registers from register cache.
1755 (i386_pseudo_register_write): Add code to write K, ZMM and
1757 (i386_register_reggroup_p): Add code to include/exclude AVX512
1758 registers in/from respective register groups.
1759 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1760 registers if feature is present in xcr0.
1761 (i386_gdbarch_init): Add code to initialize AVX512 feature
1762 variables in tdep structure, wire in pseudo registers and call
1763 initialize_tdesc_i386_avx512.
1764 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1766 (i386_regnum): Add AVX512 registers.
1767 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1768 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1769 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1770 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1772 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1773 (i386_ymm_avx512_regnum_p): Likewise.
1774 (i386_k_regnum_p): Likewise.
1775 (i386_zmm_regnum_p): Likewise.
1776 (i386_zmmh_regnum_p): Likewise.
1777 * i387-tdep.c : Update year in copyright notice.
1778 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1780 (XSAVE_YMM_AVX512_ADDR): New macro.
1781 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1783 (XSAVE_XMM_AVX512_ADDR): New macro.
1784 (xsave_avx512_k_offset): New table for K register offsets in
1786 (XSAVE_AVX512_K_ADDR): New macro.
1787 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1789 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1790 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1792 (i387_collect_xsave): Add code to collect AVX512 registers from
1794 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1795 of XMM16-31 registers.
1796 (I387_NUM_K_REGS): New define for number of K registers.
1797 (I387_K0_REGNUM): New define for K0 register number.
1798 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1799 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1800 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1802 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1803 (I387_XMM16_REGNUM): New define for XMM16 register number.
1804 (I387_YMM0_REGNUM): New define for YMM0 register number.
1805 (I387_KEND_REGNUM): New define for last K register number.
1806 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1807 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1809 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1811 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1813 * features/Makefile: Add AVX512 related files.
1814 * features/i386/32bit-avx512.xml: New file.
1815 * features/i386/64bit-avx512.xml: Likewise.
1816 * features/i386/amd64-avx512-linux.c: Likewise.
1817 * features/i386/amd64-avx512-linux.xml: Likewise.
1818 * features/i386/amd64-avx512.c: Likewise.
1819 * features/i386/amd64-avx512.xml: Likewise.
1820 * features/i386/i386-avx512-linux.c: Likewise.
1821 * features/i386/i386-avx512-linux.xml: Likewise.
1822 * features/i386/i386-avx512.c: Likewise.
1823 * features/i386/i386-avx512.xml: Likewise.
1824 * features/i386/x32-avx512-linux.c: Likewise.
1825 * features/i386/x32-avx512-linux.xml: Likewise.
1826 * features/i386/x32-avx512.c: Likewise.
1827 * features/i386/x32-avx512.xml: Likewise.
1828 * regformats/i386/amd64-avx512-linux.dat: New file.
1829 * regformats/i386/amd64-avx512.dat: Likewise.
1830 * regformats/i386/i386-avx512-linux.dat: Likewise.
1831 * regformats/i386/i386-avx512.dat: Likewise.
1832 * regformats/i386/x32-avx512-linux.dat: Likewise.
1833 * regformats/i386/x32-avx512.dat: Likewise.
1834 * NEWS: Add note about new support for AVX512.
1837 2014-04-23 Pedro Alves <palves@redhat.com>
1839 * breakpoint.c (insert_bp_location): Tolerate errors if the
1840 breakpoint is set in a user-loaded objfile.
1841 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1842 location is marked shlib_disabled. If the breakpoint is set in a
1843 user-loaded objfile is a GDB-side memory breakpoint, validate it
1844 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1845 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1847 * mem-break.c (memory_validate_breakpoint): New function.
1848 * objfiles.c (userloaded_objfile_contains_address_p): New
1850 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1851 * target.h (memory_validate_breakpoint): New declaration.
1853 2014-04-23 Pedro Alves <palves@redhat.com>
1855 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1856 the breakpoint is set in a shared library, only suppress
1857 errors for software breakpoints, not hardware breakpoints.
1859 2014-04-22 Pedro Alves <palves@redhat.com>
1861 * infrun.c (schedlock_applies): New function, factored out from
1862 find_thread_needs_step_over.
1863 (find_thread_needs_step_over): Use it.
1864 (switch_back_to_stepped_thread): Always clear trap_expected if the
1865 step over is finished. Return early if scheduler locking applies.
1866 Look for the stepping thread and a potential step-over thread with
1868 (currently_stepping_or_nexting_callback): Delete.
1870 2014-04-22 Nick Clifton <nickc@redhat.com>
1872 * NEWS: Mention that ARM sim now supports tracing.
1874 2014-04-22 Yao Qi <yao@codesourcery.com>
1876 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1878 * tracefile.c (tracefile_fetch_registers): ... it. New
1880 * tracefile.h (tracefile_fetch_registers): Declare.
1881 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1882 tracefile_fetch_registers.
1884 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1887 * windows-nat.c (thread_rec): Don't display a warning when
1888 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1889 fails for any reason, set th->suspended to -1, so that we don't
1890 try to resume such a thread. Also, don't return NULL in these
1891 cases, to avoid completely ruin the session due to "PC register is
1892 not available" error.
1893 (do_windows_fetch_inferior_registers): Check errors in
1894 GetThreadContext call.
1895 (windows_continue): Accept an additional argument KILLED; if not
1896 zero, ignore errors in the SetThreadContext call, since the
1897 inferior was killed and is shutting down.
1898 (windows_resume, get_windows_debug_event)
1899 (windows_create_inferior, windows_mourn_inferior)
1900 (windows_kill_inferior): All callers of windows_continue changed
1901 to adjust to its new calling sequence.
1903 2014-04-19 Yao Qi <yao@codesourcery.com>
1905 * ctf.c (ctf_open): Call post_create_inferior.
1907 2014-04-19 Yao Qi <yao@codesourcery.com>
1909 * ctf.c (handle_id): New static variable.
1910 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1911 value. Get the declaration of event "register" and get length
1912 of field "contents".
1914 2014-04-19 Yao Qi <yao@codesourcery.com>
1916 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1918 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1920 * valops.c (oload_method_static): Remove unnecessary argument
1921 METHOD. Update all callers.
1923 2014-04-18 Pedro alves <palves@redhat.com>
1924 Tom Tromey <tromey@redhat.com>
1927 * frame.c (get_prev_frame_1): Rename to ...
1928 (get_prev_frame_always): ... this, and make extern. Adjust.
1929 (skip_artificial_frames): Use get_prev_frame_always.
1930 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1931 (get_frame_unwind_stop_reason): Adjust to rename.
1932 * frame.h (get_prev_frame_always): Declare.
1933 * inline-frame.c: Include frame.h.
1934 (inline_frame_this_id): Use get_prev_frame_always.
1936 2014-04-18 Tristan Gingold <gingold@adacore.com>
1938 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1939 code by using bfd_mach_o_get_base_address.
1941 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1943 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1944 (spu_ax_pseudo_register_collect): New function.
1945 (spu_ax_pseudo_register_push_stack): Likewise.
1946 (spu_dwarf_reg_to_regnum): Likewise.
1947 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1949 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1951 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1952 Replace FRAME argument with FRAME_ID.
1953 * gdbarch.c, gdbarch.h: Regenerate.
1954 * findvar.c (default_value_from_register): Add GDBARCH argument;
1955 replace FRAME by FRAME_ID. No longer call get_frame_id.
1956 (value_from_register): Update call to gdbarch_value_from_register.
1957 * value.h (default_value_from_register): Update prototype.
1958 * s390-linux-tdep.c (s390_value_from_register): Update interface
1959 and call to default_value_from_register.
1960 * spu-tdep.c (spu_value_from_register): Likewise.
1962 * findvar.c (address_from_register): Remove TYPE argument.
1963 Do not call value_from_register; use gdbarch_value_from_register
1964 with null_frame_id instead.
1965 * value.h (address_from_register): Update prototype.
1966 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1967 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1968 address_from_register interface change.
1970 2014-04-17 Yao Qi <yao@codesourcery.com>
1972 * gdbtypes.h: Update comments to link to types and macros'
1975 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1977 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1979 2014-04-16 Keith Seitz <keiths@redhat.com>
1982 * dwarf2read.c (skip_one_die): Check that all relative-offset
1983 sibling DIEs fall within range of the current reader's buffer.
1984 (read_partial_die): Likewise.
1986 2014-04-16 Keith Seitz <keiths@redhat.com>
1989 * cp-namespace.c (lookup_symbol_file): If the type name of
1990 `this' is NULL, return immediately.
1992 2014-04-14 Keith Seitz <keiths@redhat.com>
1995 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1996 from symbol_matches_domain in symtab.c. All local callers
1997 of symbol_matches_domain updated.
1998 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1999 search STRUCT_DOMAIN.
2000 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2001 independently. standard_lookup will do that automatically.
2002 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2003 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2004 (cp_lookup_symbol_in_namespace): Likewise.
2005 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2006 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2007 may return a STRUCT_DOMAIN match.
2008 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2009 * cp-support.c: Include language.h.
2010 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2012 * psymtab.c (match_partial_symbol): Compare the requested
2013 domain with the symbol's domain directly.
2014 (lookup_partial_symbol): Likewise.
2015 * symtab.c (lookup_symbol_in_language): Explain when/why
2016 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2017 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2018 appropriate languages.
2019 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2020 and moved to ada-lang.c
2021 (lookup_block_symbol): Explain that this function only returns
2022 symbol matching the requested DOMAIN.
2023 Compare the requested domain with the symbol's domain directly.
2024 (iterate_over_symbols): Compare the requested domain with the
2025 symbol's domain directly.
2026 * symtab.h (symbol_matches_domain): Remove.
2028 2014-04-14 Tom Tromey <tromey@redhat.com>
2031 * c-exp.y (type_aggregate_p): New function.
2032 (qualified_name, classify_inner_name): Use it.
2033 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2034 and TYPE_TARGET_TYPE of an enum type.
2035 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2037 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2038 handle TYPE_DECLARED_CLASS.
2039 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2041 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2042 * valops.c (enum_constant_from_type): New function.
2043 (value_aggregate_elt): Use it.
2044 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2047 2014-04-14 Tom Tromey <tromey@redhat.com>
2049 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2050 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2052 * value.h (value_aggregate_elt): Update.
2054 2014-04-14 Tom Tromey <tromey@redhat.com>
2056 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2058 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2060 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2061 (evaluate_subexp_standard): Pass noside argument.
2062 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2063 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2064 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2065 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2066 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2068 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2070 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2071 points to a constant blob.
2073 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2075 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2076 property and store it as the high bound and flag the range accordingly.
2077 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2078 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2079 * gdbtypes.h (enum range_flags): New enum.
2080 (struct range_bounds): Add flags member.
2082 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2084 * c-typeprint.c (c_type_print_varspec_suffix): Added
2085 check for not yet resolved high bound. If unresolved, print
2086 "variable length" string to the console instead of random
2089 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2091 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2093 (ada_template_to_fixed_record_type_1): Likewise.
2094 (ada_to_fixed_type_1): Likewise.
2095 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2096 (cp_print_value): Likewise.
2097 * d-valprint.c (dynamic_array_type): Likewise.
2098 * findvar.c (address_of_variable): Likewise.
2099 * jv-valprint.c (java_value_print): Likewise.
2100 * valops.c (value_ind): Likewise.
2101 * value.c (coerce_ref): Likewise.
2103 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2105 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2106 value and retrieve the dynamic type size.
2108 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2110 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2111 passed to sizeof is dynamic evaluate the argument to compute the length.
2113 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2114 Joel Brobecker <brobecker@adacore.com>
2116 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2117 (dwarf2_evaluate_property): New function.
2118 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2119 * dwarf2read.c (attr_to_dynamic_prop): New function.
2120 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2122 * gdbtypes.c: Include dwarf2loc.h.
2123 (is_dynamic_type): New function.
2124 (resolve_dynamic_type): New function.
2125 (resolve_dynamic_bounds): New function.
2126 (get_type_length): New function.
2127 (check_typedef): Use get_type_length to compute type length.
2128 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2129 (TYPE_LOW_BOUND_KIND): New macro.
2130 (is_dynamic_type): New function prototype.
2131 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2132 to resolve dynamic properties of the type. Update comment.
2133 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2135 2014-04-14 Richard Henderson <rth@redhat.com>
2137 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2139 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2140 Doug Evans <xdje42@gmail.com>
2142 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2143 dereference TYPE_CODE_REF values.
2145 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2147 Revert the following changes due to regressions:
2149 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2150 (dwarf2_evaluate_property): New function.
2151 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2152 * dwarf2read.c (attr_to_dynamic_prop): New function.
2153 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2155 * gdbtypes.c: Include dwarf2loc.h.
2156 (is_dynamic_type): New function.
2157 (resolve_dynamic_type): New function.
2158 (resolve_dynamic_bounds): New function.
2159 (get_type_length): New function.
2160 (check_typedef): Use get_type_length to compute type length.
2161 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2162 (TYPE_LOW_BOUND_KIND): New macro.
2163 (is_dynamic_type): New function prototype.
2164 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2165 to resolve dynamic properties of the type. Update comment.
2166 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2168 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2169 passed to sizeof is dynamic evaluate the argument to compute the length.
2171 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2172 value and retrieve the dynamic type size.
2174 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2175 (ada_template_to_fixed_record_type_1): Likewise.
2176 (ada_to_fixed_type_1): Likewise.
2177 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2178 (cp_print_value): Likewise.
2179 * d-valprint.c (dynamic_array_type): Likewise.
2180 * eval.c (evaluate_subexp_with_coercion): Likewise.
2181 * findvar.c (address_of_variable): Likewise.
2182 * jv-valprint.c (java_value_print): Likewise.
2183 * valops.c (value_ind): Likewise.
2184 * value.c (coerce_ref): Likewise.
2186 * c-typeprint.c (c_type_print_varspec_suffix): Added
2187 check for not yet resolved high bound. If unresolved, print
2188 "variable length" string to the console instead of random
2191 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2192 property and store it as the high bound and flag the range accordingly.
2193 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2194 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2195 * gdbtypes.h (enum range_flags): New enum.
2196 (struct range_bounds): Add flags member.
2198 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2199 points to a constant blob.
2201 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2202 (evaluate_subexp_standard): Pass noside argument.
2203 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2204 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2205 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2206 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2207 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2209 2014-04-11 Keith Seitz <keiths@redhat.com>
2212 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2213 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2216 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2218 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2219 (evaluate_subexp_standard): Pass noside argument.
2220 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2221 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2222 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2223 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2224 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2226 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2228 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2229 points to a constant blob.
2231 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2233 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2234 property and store it as the high bound and flag the range accordingly.
2235 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2236 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2237 * gdbtypes.h (enum range_flags): New enum.
2238 (struct range_bounds): Add flags member.
2240 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2242 * c-typeprint.c (c_type_print_varspec_suffix): Added
2243 check for not yet resolved high bound. If unresolved, print
2244 "variable length" string to the console instead of random
2247 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2249 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2250 (ada_template_to_fixed_record_type_1): Likewise.
2251 (ada_to_fixed_type_1): Likewise.
2252 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2253 (cp_print_value): Likewise.
2254 * d-valprint.c (dynamic_array_type): Likewise.
2255 * eval.c (evaluate_subexp_with_coercion): Likewise.
2256 * findvar.c (address_of_variable): Likewise.
2257 * jv-valprint.c (java_value_print): Likewise.
2258 * valops.c (value_ind): Likewise.
2259 * value.c (coerce_ref): Likewise.
2261 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2263 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2264 value and retrieve the dynamic type size.
2266 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2268 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2269 passed to sizeof is dynamic evaluate the argument to compute the length.
2271 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2273 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2274 (dwarf2_evaluate_property): New function.
2275 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2276 * dwarf2read.c (attr_to_dynamic_prop): New function.
2277 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2279 * gdbtypes.c: Include dwarf2loc.h.
2280 (is_dynamic_type): New function.
2281 (resolve_dynamic_type): New function.
2282 (resolve_dynamic_bounds): New function.
2283 (get_type_length): New function.
2284 (check_typedef): Use get_type_length to compute type length.
2285 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2286 (TYPE_LOW_BOUND_KIND): New macro.
2287 (is_dynamic_type): New function prototype.
2288 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2289 to resolve dynamic properties of the type. Update comment.
2290 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2292 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2294 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2295 declaring high/low bounds and change uses accordingly. Call
2296 create_range_type instead of create_static_range_type.
2297 * gdbtypes.c (create_range_type): New function.
2298 (create_range_type): Convert bounds into struct bound_prop and pass
2299 them to create_range_type.
2300 * gdbtypes.h (struct bound_prop): New struct.
2301 (create_range_type): New function prototype.
2302 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2303 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2304 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2306 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2308 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2310 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2311 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2312 * ada-lang.c: All uses of create_range_type updated.
2313 * coffread.c: All uses of create_range_type updated.
2314 * dwarf2read.c: All uses of create_range_type updated.
2315 * f-exp.y: All uses of create_range_type updated.
2316 * m2-valprint.c: All uses of create_range_type updated.
2317 * mdebugread.c: All uses of create_range_type updated.
2318 * stabsread.c: All uses of create_range_type updated.
2319 * valops.c: All uses of create_range_type updated.
2320 * valprint.c: All uses of create_range_type updated.
2322 2014-04-10 Pedro Alves <palves@redhat.com>
2324 * breakpoint.c (single_step_breakpoints)
2325 (single_step_gdbarch): Move up in the file.
2326 (one_breakpoint_xfer_memory): New function, factored out from ...
2327 (breakpoint_xfer_memory): ... here. Also process single-step
2330 2014-04-09 Tristan Gingold <gingold@adacore.com>
2332 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2334 (darwin_decode_exception_message): Free port only after use.
2336 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2338 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2339 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2340 when setting the size of call_length.
2342 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2344 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2345 dereference TYPE_CODE_REF values.
2347 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2349 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2350 end of warning message.
2352 2014-04-03 Doug Evans <dje@google.com>
2354 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2355 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2357 2014-04-02 Alan Modra <amodra@gmail.com>
2359 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2360 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2361 (struct symbol_file_add_from_memory_args): Add size field.
2362 (find_vdso_size): New function.
2363 (add_vsyscall_page): Attempt to find vdso size.
2365 2014-04-01 Doug Evans <dje@google.com>
2367 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2369 2014-04-01 Tristan Gingold <gingold@adacore.com>
2371 * darwin-nat.c (darwin_encode_reply): Add prototype.
2372 (darwin_decode_exception_message): Reply to unknown inferiors.
2373 (darwin_decode_message): Handle message by id. Ignore message
2374 to unknown inferior.
2375 (darwin_wait): Discard unknown messages, add debug trace.
2377 2014-03-31 Doug Evans <dje@google.com>
2379 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2382 2014-03-31 Doug Evans <dje@google.com>
2384 New option "set print symbol-loading".
2386 * solib.c (solib_read_symbols): Only print symbol loading messages
2388 (solib_add): If symbol loading is in "brief" mode, notify user
2389 symbols are being loaded.
2390 (reload_shared_libraries_1): Ditto.
2391 * symfile.c (print_symbol_loading_off): New static global.
2392 (print_symbol_loading_brief): New static global.
2393 (print_symbol_loading_full): New static global.
2394 (print_symbol_loading_enums): New static global.
2395 (print_symbol_loading): New static global.
2396 (print_symbol_loading_p): New function.
2397 (symbol_file_add_with_addrs): Only print symbol loading messages
2399 (_initialize_symfile): Register "print symbol-loading" set/show
2401 * symfile.h (print_symbol_loading_p): Declare.
2403 2014-03-30 Doug Evans <xdje42@gmail.com>
2405 * infrun.c (set_last_target_status): New function.
2406 (handle_inferior_event): Call it.
2408 2014-03-30 Doug Evans <xdje42@gmail.com>
2410 * inferior.h (enum stop_kind): Improve comment.
2412 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2414 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2415 a reference, strip the reference layer before calling
2416 the lang_ops value_has_mutated callback.
2418 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2420 Remove some globals from our parser.
2421 * language.c (unk_lang_parser): Add "struct parser_state"
2423 * language.h (struct language_defn) <la_parser>: Likewise.
2424 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2425 (initialize_expout): Add "struct parser_state" argument.
2426 Rewrite function to use the parser state.
2427 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2428 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2429 write_exp_elt_longcst, write_exp_elt_dblcst,
2430 write_exp_elt_decfloatcst, write_exp_elt_type,
2431 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2432 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2433 write_dollar_variable): Likewise.
2434 (parse_exp_in_context_1): Use parser state.
2435 (insert_type_address_space): Add "struct parser_state" argument.
2437 (increase_expout_size): New function.
2438 * parser-defs.h: Forward declare "struct language_defn" and
2439 "struct parser_state".
2440 (expout, expout_size, expout_ptr): Remove extern declarations.
2441 (parse_gdbarch, parse_language): Rewrite macro declarations to
2442 accept the parser state.
2443 (struct parser_state): New struct.
2444 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2445 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2446 write_exp_elt_decfloatcst, write_exp_elt_type,
2447 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2448 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2449 write_exp_msymbol, write_dollar_variable,
2450 mark_struct_expression, insert_type_address_space): Add "struct
2451 parser_state" argument.
2452 (increase_expout_size): New function.
2453 * utils.c (do_clear_parser_state): New function.
2454 (make_cleanup_clear_parser_state): Likewise.
2455 * utils.h (make_cleanup_clear_parser_state): New function
2457 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2458 Update calls to write_exp* in order to pass the parser state.
2459 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2460 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2461 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2462 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2463 * stap-probe.c (stap_parse_register_operand): Likewise.
2464 (stap_parse_single_operand): Likewise.
2465 (stap_parse_argument_1): Likewise.
2466 (stap_parse_argument): Use parser state.
2467 * stap-probe.h: Include "parser-defs.h".
2468 (struct stap_parse_info) <pstate>: New field.
2469 * c-exp.y (parse_type): Rewrite to use parser state.
2470 (yyparse): Redefine to c_parse_internal.
2471 (pstate): New global variable.
2472 (parse_number): Add "struct parser_state" argument.
2473 (write_destructor_name): Likewise.
2474 (type_exp): Update calls to write_exp* and similars in order to
2476 (exp1, exp, variable, qualified_name, space_identifier,
2477 typename, typebase): Likewise.
2478 (write_destructor_name, parse_number, lex_one_token,
2479 classify_name, classify_inner_name, c_parse): Add "struct
2480 parser_state" argument. Update function to use parser state.
2481 * c-lang.h: Forward declare "struct parser_state".
2482 (c_parse): Add "struct parser_state" argument.
2483 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2484 (yyparse): Redefine macro to ada_parse_internal.
2485 (pstate): New variable.
2486 (write_int, write_object_renaming, write_var_or_type,
2487 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2488 type_int, type_long, type_long_long, type_float, type_double,
2489 type_long_double, type_char, type_boolean, type_system_address):
2490 Add "struct parser_state" argument.
2491 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2492 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2493 var_or_type, aggregate, aggregate_component_list,
2494 positional_list, others, component_group,
2495 component_associations): Update calls to write_exp* and similar
2496 functions in order to use parser state.
2497 (ada_parse, write_var_from_sym, write_int,
2498 write_exp_op_with_string, write_object_renaming,
2499 find_primitive_type, write_selectors, write_ambiguous_var,
2500 write_var_or_type, write_name_assoc, type_int, type_long,
2501 type_long_long, type_float, type_double, type_long_double,
2502 type_char, type_boolean, type_system_address): Add "struct
2503 parser_state" argument. Adjust function to use parser state.
2504 * ada-lang.c (parse): Likewise.
2505 * ada-lang.h: Forward declare "struct parser_state".
2506 (ada_parse): Add "struct parser_state" argument.
2507 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2508 calls to both functions.
2509 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2511 (yyparse): Redefine macro to f_parse_internal.
2512 (pstate): New variable.
2513 (parse_number): Add "struct parser_state" argument.
2514 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2515 and similars in order to use parser state.
2516 (parse_number): Adjust code to use parser state.
2518 (f_parse): New function.
2519 * f-lang.h: Forward declare "struct parser_state".
2520 (f_parse): Add "struct parser_state" argument.
2521 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2523 (yyparse): Redefine macro for java_parse_internal.
2524 (pstate): New variable.
2525 (push_expression_name, push_expression_name, insert_exp): Add
2526 "struct parser_state" argument.
2527 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2528 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2529 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2530 PostIncrementExpression, PostDecrementExpression,
2531 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2532 UnaryExpressionNotPlusMinus, CastExpression,
2533 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2534 RelationalExpression, EqualityExpression, AndExpression,
2535 ExclusiveOrExpression, InclusiveOrExpression,
2536 ConditionalAndExpression, ConditionalOrExpression,
2537 ConditionalExpression, Assignment, LeftHandSide): Update
2538 calls to write_exp* and similars in order to use parser state.
2539 (parse_number): Ajust code to use parser state.
2541 (java_parse): New function.
2542 (push_variable): Add "struct parser_state" argument. Adjust
2543 code to user parser state.
2544 (push_fieldnames, push_qualified_expression_name,
2545 push_expression_name, insert_exp): Likewise.
2546 * jv-lang.h: Forward declare "struct parser_state".
2547 (java_parse): Add "struct parser_state" argument.
2548 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2550 (yyparse): Redefine macro to m2_parse_internal.
2551 (pstate): New variable.
2552 (type_exp, exp, fblock, variable, type): Update calls to
2553 write_exp* and similars to use parser state.
2555 (m2_parse): New function.
2556 * m2-lang.h: Forward declare "struct parser_state".
2557 (m2_parse): Add "struct parser_state" argument.
2558 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2559 * objc-lang.h: Forward declare "struct parser_state".
2560 (end_msglist): Add "struct parser_state" argument.
2561 * p-exp.y (parse_type): Rewrite macro to use parser state.
2562 (yyparse): Redefine macro to pascal_parse_internal.
2563 (pstate): New variable.
2564 (parse_number): Add "struct parser_state" argument.
2565 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2566 write_exp* and similars in order to use parser state.
2567 (parse_number, yylex): Adjust code to use parser state.
2568 (pascal_parse): New function.
2569 * p-lang.h: Forward declare "struct parser_state".
2570 (pascal_parse): Add "struct parser_state" argument.
2571 * go-exp.y (parse_type): Rewrite macro to use parser state.
2572 (yyparse): Redefine macro to go_parse_internal.
2573 (pstate): New variable.
2574 (parse_number): Add "struct parser_state" argument.
2575 (type_exp, exp1, exp, variable, type): Update calls to
2576 write_exp* and similars in order to use parser state.
2577 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2578 to use parser state.
2579 (go_parse): Likewise.
2580 * go-lang.h: Forward declare "struct parser_state".
2581 (go_parse): Add "struct parser_state" argument.
2583 2014-03-27 Doug Evans <dje@google.com>
2585 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2587 2014-03-27 Doug Evans <dje@google.com>
2589 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2590 Remove argument abbrev_section. All callers updated.
2592 2014-03-27 Doug Evans <dje@google.com>
2594 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2595 addr_base, ranges_base.
2597 2014-03-26 Keith Seitz <keiths@redhat.com>
2599 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2600 types, not VAR_DOMAIN.
2602 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2604 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2606 * features/nios2-linux.c: Regenerated.
2607 * features/nios2.c: Regenerated.
2609 2014-03-25 Pedro Alves <palves@redhat.com>
2611 * cli/cli-script.c (script_from_file): Force the interpreter to
2614 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2616 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2617 small stack allocation.
2619 2014-03-24 Tristan Gingold <gingold@adacore.com>
2621 * darwin-nat.c (exc_server): Remove unused prototype.
2622 (darwin_dump_message): Correctly display data on x86_64.
2623 (darwin_encode_reply): Fix style.
2624 Add comments and fix indentation.
2626 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2628 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2630 2014-03-22 Doug Evans <xdje42@gmail.com>
2632 * infcmd.c: Whitespace fixes.
2633 (interrupt_command): Merge two function comments into one.
2635 2014-03-22 Doug Evans <xdje42@gmail.com>
2637 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2640 2014-03-22 Yao Qi <yao@codesourcery.com>
2642 * remote.c (target_read_live_memory): Remove.
2643 (memory_xfer_live_readonly_partial): Rename it to
2644 remote_xfer_live_readonly_partial. Remove argument 'object'.
2645 All callers updated. Call remote_read_bytes_1
2646 instead of target_read_live_memory.
2647 * tracepoint.c (set_traceframe_number): Remove.
2648 (make_cleanup_restore_traceframe_number): Likewise .
2649 * tracepoint.h (set_traceframe_number): Remove declaration.
2650 (make_cleanup_restore_traceframe_number): Likewise.
2652 2014-03-22 Yao Qi <yao@codesourcery.com>
2654 * remote.c (remote_read_bytes): Move code on reading from the
2656 (remote_read_bytes_1): ... here. New function.
2658 2014-03-22 Yao Qi <yao@codesourcery.com>
2660 * ctf.c (ctf_xfer_partial): Check the return value of
2661 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2662 return TARGET_XFER_UNAVAILABLE.
2663 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2664 * target.c (target_read_live_memory): Move it to remote.c.
2665 (memory_xfer_live_readonly_partial): Likewise.
2666 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2667 * remote.c (target_read_live_memory): Moved from target.c.
2668 (memory_xfer_live_readonly_partial): Likewise.
2669 (remote_read_bytes): Factored out from
2670 memory_xfer_partial_1.
2672 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2674 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2677 2014-03-21 Pedro Alves <palves@redhat.com>
2679 * infrun.c (normal_stop): Extend comment.
2681 2014-03-21 Hui Zhu <hui@codesourcery.com>
2682 Pedro Alves <palves@redhat.com>
2684 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2686 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2687 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2688 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2690 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2692 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2693 `z' formatted output modifier.
2695 2014-03-20 Tom Tromey <tromey@redhat.com>
2696 Sergio Durigan Junior <sergiodj@redhat.com>
2698 * probe.c (parse_probes): Turn assert into an ordinary error.
2699 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2700 exceptions when parsing probes. Rearrange the code for clarity.
2702 2014-03-20 Tom Tromey <tromey@redhat.com>
2705 * top.c (execute_command): Only dispatch events if the command
2708 2014-03-20 Tom Tromey <tromey@redhat.com>
2711 * infcall.c: Include event-top.h.
2712 (run_inferior_call): Call async_disable_stdin if needed.
2714 2014-03-20 Pedro Alves <palves@redhat.com>
2716 * infrun.c (prepare_to_proceed): Delete.
2717 (thread_still_needs_step_over): New function.
2718 (find_thread_needs_step_over): New function.
2719 (proceed): If the current thread needs a step-over, set its
2720 steping_over_breakpoint flag. Adjust to use
2721 find_thread_needs_step_over instead of prepare_to_proceed.
2722 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2723 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2725 (switch_back_to_stepped_thread): Step over breakpoints of all
2726 threads not the stepping thread, before switching back to the
2729 2014-03-20 Pedro Alves <palves@redhat.com>
2731 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2733 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2734 * infrun.c (saved_singlestep_ptid)
2735 (stepping_past_singlestep_breakpoint): Delete.
2736 (resume): Remove stepping_past_singlestep_breakpoint handling.
2737 (proceed): Store the prev_pc of the stepping thread too.
2738 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2740 (enum infwait_states): Delete infwait_thread_hop_state.
2741 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2743 (handle_inferior_event): Adjust.
2744 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2745 handling and the thread-hop code. Before removing single-step
2746 breakpoints, check whether the thread hit a single-step breakpoint
2747 of another thread. If it did, the trap is not a random signal.
2748 (switch_back_to_stepped_thread): If the event thread hit a
2749 single-step breakpoint, unblock it before switching to the
2750 stepping thread. Handle the case of the stepped thread having
2752 (keep_going): Handle the case of the current thread moving past a
2753 single-step breakpoint.
2755 2014-03-20 Pedro Alves <palves@redhat.com>
2758 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2759 are being stepped over.
2760 (breakpoint_address_match): Make extern.
2761 * breakpoint.h (breakpoint_address_match): New declaration.
2762 * inferior.h (stepping_past_instruction_at): New declaration.
2763 * infrun.c (struct step_over_info): New type.
2764 (step_over_info): New global.
2765 (set_step_over_info, clear_step_over_info)
2766 (stepping_past_instruction_at): New functions.
2767 (handle_inferior_event): Clear the step-over info when
2768 trap_expected is cleared.
2769 (resume): Remove now stale comment.
2770 (clear_proceed_status): Clear step-over info.
2771 (proceed): Adjust step-over handling to set or clear the step-over
2772 info instead of removing all breakpoints.
2773 (handle_signal_stop): When setting up a thread-hop, don't remove
2775 (stop_stepping): Clear step-over info.
2776 (keep_going): Adjust step-over handling to set or clear step-over
2777 info and then always inserting breakpoints, instead of removing
2778 all breakpoints when stepping over one.
2780 2014-03-20 Pedro Alves <palves@redhat.com>
2782 * infrun.c (previous_inferior_ptid): Adjust comment.
2783 (deferred_step_ptid): Delete.
2784 (infrun_thread_ptid_changed, prepare_to_proceed)
2785 (init_wait_for_inferior): Adjust.
2786 (handle_signal_stop): Delete deferred_step_ptid handling.
2788 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2791 * defs.h (sync_quit_force_run): New declaration.
2792 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2793 * event-top.c (async_sigterm_handler): New declaration.
2794 (async_sigterm_token): New variable.
2795 (async_init_signals): Create also async_sigterm_token.
2796 (async_sigterm_handler): New function.
2797 (sync_quit_force_run): New variable.
2798 (handle_sigterm): Replace quit_force call by other calls.
2799 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2801 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2803 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2804 offset into SPE pseudo registers.
2806 2014-03-18 Pedro Alves <palves@redhat.com>
2809 * inferior.h (print_stop_event): Declare.
2810 * infrun.c (print_stop_event): New, factored out from ...
2811 (normal_stop): ... this.
2812 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2813 of bpstat_print/print_stack_frame.
2815 2014-03-17 Tom Tromey <tromey@redhat.com>
2817 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2819 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2821 * ada-lang.c (decode_constrained_packed_array): Perform a
2822 minimal coercion for reference with coerce_ref instead of
2825 2014-03-17 Tristan Gingold <gingold@adacore.com>
2827 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2828 (darwin_solib_create_inferior_hook): Emit a warning if version
2831 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2833 * python/py-value.c (get_field_flag): Cast flag_name argument to
2834 PyObject_GetAttrString to support Python 2.4.
2836 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2839 (Global Maintainers): Remove Jan Kratochvil.
2841 2014-03-14 Pedro Alves <palves@redhat.com>
2843 * inferior.h (terminal_ours_for_output): Rename to ...
2844 (child_terminal_ours_for_output): ... this.
2845 (terminal_save_ours): Rename to ...
2846 (child_terminal_save_ours): ... this.
2847 (terminal_ours): Rename to ...
2848 (child_terminal_ours): ... this.
2849 (terminal_inferior): Rename to ...
2850 (child_terminal_inferior): ... this.
2851 (terminal_init_inferior): Rename to ...
2852 (child_terminal_init_inferior): ... this.
2853 (terminal_init_inferior_with_pgrp): Rename to ...
2854 (child_terminal_init_inferior_with_pgrp): ... this.
2855 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2856 (child_terminal_init_with_pgrp): ... this.
2857 (terminal_save_ours): Rename to ...
2858 (child_terminal_save_ours): ... this.
2859 (terminal_init_inferior): Rename to ...
2860 (child_terminal_init): ... this. Adjust.
2861 (terminal_inferior): Rename to ...
2862 (child_terminal_inferior): ... this.
2863 (terminal_ours_for_output): Rename to ...
2864 (child_terminal_ours_for_output): ... this. Adjust.
2865 (terminal_ours): Rename to ...
2866 (child_terminal_ours): ... this.
2867 (terminal_ours_1): Rename to ...
2868 (child_terminal_ours_1): ... this. Adjust.
2869 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2870 * windows-nat.c (do_initial_windows_stuff): Adjust.
2871 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2872 (gnu_terminal_init): ... this. Adjust.
2873 (gnu_target): Adjust.
2874 * inf-child.c (inf_child_target): Adjust.
2876 2014-03-13 Doug Evans <xdje42@gmail.com>
2879 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2882 2014-03-13 Doug Evans <xdje42@gmail.com>
2884 * value.c (record_latest_value): Call release_value_or_incref
2885 instead of release_value.
2887 2014-03-13 Pedro Alves <palves@redhat.com>
2889 * procfs.c (procfs_target): Don't override to_shortname,
2890 to_longname or to_doc.
2892 2014-03-13 Pedro Alves <palves@redhat.com>
2894 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2895 Unix in user visible strings.
2897 2014-03-12 Stan Shebs <stan@codesourcery.com>
2899 * gdbtypes.h: Annotate comments for Doxygen, add a page
2900 block comment with some general info.
2902 2014-03-12 Pedro Alves <palves@redhat.com>
2904 * infcmd.c (prepare_execution_command): New function, factored out
2905 from several execution commands.
2906 (run_command_1, continue_command, step_1, jump_command)
2907 (signal_command, until_command, advance_command, finish_command)
2908 (attach_command): Use prepare_execution_command.
2910 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2912 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2915 (struct arm_linux_thread_points): Removed.
2916 (struct arm_linux_process_info): New.
2917 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2918 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2919 (arm_linux_find_breakpoints_by_tid): Removed.
2920 (struct arch_lwp_info): New.
2921 (arm_linux_find_process_pid): New functions.
2922 (arm_linux_add_process): New functions.
2923 (arm_linux_process_info_get): New functions.
2924 (arm_linux_forget_process): New function.
2925 (arm_linux_get_debug_reg_state): New function.
2926 (struct update_registers_data): New.
2927 (update_registers_callback): New function.
2928 (arm_linux_insert_hw_breakpoint1): Updated.
2929 (arm_linux_remove_hw_breakpoint1): Updated.
2930 (arm_linux_insert_hw_breakpoint): Updated.
2931 (arm_linux_remove_hw_breakpoint): Updated.
2932 (arm_linux_insert_watchpoint): Updated.
2933 (arm_linux_remove_watchpoint): Updated.
2934 (arm_linux_new_thread): Updated.
2935 (arm_linux_prepare_to_resume): New function.
2936 (arm_linux_new_fork): New function.
2937 (_initialize_arm_linux_nat): Updated.
2939 2014-03-12 Pedro Alves <palves@redhat.com>
2941 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2943 2014-03-12 Tom Tromey <tromey@redhat.com>
2945 * inf-child.c (return_zero): New function.
2946 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2947 * aix-thread.c (aix_thread_inferior_created): New function.
2948 (aix_thread_attach): Remove.
2949 (init_aix_thread_ops): Don't set to_attach.
2950 (_initialize_aix_thread): Register inferior_created observer.
2951 * corelow.c (init_core_ops): Don't set to_attach or
2953 * exec.c (init_exec_ops): Don't set to_attach or
2955 * infcmd.c (run_command_1): Use find_run_target. Make direct
2957 (attach_command): Use find_attach_target. Make direct target
2959 * record-btrace.c (init_record_btrace_ops): Don't set
2961 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2963 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2964 set to_create_inferior.
2965 * target.c (complete_target_initialization): Add assertion.
2966 (target_create_inferior): Remove.
2967 (find_default_attach, find_default_create_inferior): Remove.
2968 (find_attach_target, find_run_target): New functions.
2969 (find_default_is_async_p, find_default_can_async_p)
2970 (target_supports_non_stop, target_attach): Remove.
2971 (init_dummy_target): Don't set to_create_inferior or
2972 to_supports_non_stop.
2973 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2974 TARGET_DEFAULT_FUNC.
2975 <to_create_inferior>: Add comment.
2976 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2977 TARGET_DEFAULT_RETURN.
2978 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2979 (find_attach_target, find_run_target): Declare.
2980 (target_create_inferior): Remove.
2981 (target_has_execution_1): Update comment.
2982 (target_supports_non_stop): Remove.
2983 * target-delegates.c: Rebuild.
2985 2014-03-12 Pedro Alves <palves@redhat.com>
2987 * inf-child.h: Update comment to not mention Unix.
2989 2014-03-12 Pedro Alves <palves@redhat.com>
2991 * inf-child.c: Update top comment to not mention Unix. Add
2992 generic comment describing how this target is meant to be used.
2993 (inf_child_post_attach, inf_child_post_startup_inferior)
2994 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2997 2014-03-12 Pedro Alves <palves@redhat.com>
2999 * nto-procfs.c: Include inf-child.h.
3000 (procfs_ops): Delete global.
3001 (procfs_can_run): Delete method.
3002 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3003 target pointer instead of referencing procfs_ops.
3004 (procfs_prepare_to_store): Delete.
3005 (init_procfs_ops): Delete function.
3006 (procfs_target): New function, based on init_procfs_ops, but
3007 inherit inf_child_target.
3008 (_initialize_procfs): Use procfs_target.
3010 2014-03-12 Pedro Alves <palves@redhat.com>
3012 * windows-nat.c: Include inf-child.h.
3013 (windows_ops): Delete global.
3014 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3016 (init_windows_ops): Delete function.
3017 (windows_target): New function, based on init_windows_ops, but
3018 inherit inf_child_target.
3019 (_initialize_windows_nat): Use windows_target. Install x86
3020 specific target methods here.
3022 2014-03-10 Doug Evans <xdje42@gmail.com>
3024 * guile/guile.c (call_initialize_gdb_module): New function.
3025 (initialize_guile): Replace call to scm_init_guile with call to
3028 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3030 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3031 in call to TYPE_CODE macro.
3033 2014-03-10 Jerome Guitton <guitton@adacore.com>
3035 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3036 Resolve tagged types to full view.
3038 2014-03-10 Hui Zhu <hui@codesourcery.com>
3040 * target.h (target_insert_breakpoint): Remove "hardware" from its
3043 2014-03-07 Doug Evans <dje@google.com>
3045 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3047 2014-03-07 Doug Evans <dje@google.com>
3049 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3050 Remove unused local comp_dir_attr. Assert exactly one of
3051 stub_comp_unit_die, stub_comp_dir is non-NULL.
3053 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3055 * target.h (complete_target_initialization, add_target):
3058 2014-03-07 Pedro Alves <palves@redhat.com>
3060 * go32-nat.c: Include inf-child.h.
3061 (go32_ops): Delete global.
3062 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3064 (go32_create_inferior): Push the passed in target pointer instead
3065 of referencing go32_ops.
3066 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3067 (go32_target): New function, based on init_go32_ops, but inherit
3069 (_initialize_go32_nat): Use go32_target. Move parts of
3072 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3074 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3075 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3076 SYMBOL_VALUE_ADDRESS.
3077 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3079 2014-03-06 Yao Qi <yao@codesourcery.com>
3081 * breakpoint.c (get_tracepoint_by_number): Remove argument
3082 optional_p. All callers updated. Adjust comments. Update
3084 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3086 2014-03-06 Yao Qi <yao@codesourcery.com>
3088 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3089 early if get_number returns zero. Use 'p' instead of 'args'.
3091 2014-03-06 Yao Qi <yao@codesourcery.com>
3093 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3096 2014-03-06 Yao Qi <yao@codesourcery.com>
3098 PR breakpoints/16508
3099 * tracepoint.c (check_trace_running): New function.
3100 (trace_find_command): Move code to check_trace_running and
3101 call check_trace_running.
3102 (trace_find_pc_command): Likewise.
3103 (trace_find_tracepoint_command): Likewise.
3104 (trace_find_line_command): Likewise.
3105 (trace_find_range_command): Likewise.
3106 * tracepoint.h (check_trace_running): Likewise.
3107 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3109 2014-03-06 Yao Qi <yao@codesourcery.com>
3111 * target.h (struct target_ops) <to_traceframe_info>: Use
3112 TARGET_DEFAULT_NORETURN (tcomplain ()).
3113 * target-delegates.c: Regenerated.
3115 2014-03-05 Pedro Alves <palves@redhat.com>
3118 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3119 void. Update comment.
3120 (dcache_xfer_memory): Delete.
3121 (dcache_read_memory_partial): New, based on the read bits of
3123 (dcache_update): Add status parameter. Use ULONGEST for len, and
3124 adjust. Discard cache lines if the reason for the update was
3126 * dcache.h (dcache_xfer_memory): Delete declaration.
3127 (dcache_read_memory_partial): New declaration.
3128 (dcache_update): Update prototype.
3129 * target.c (raw_memory_xfer_partial): Update the dcache here.
3130 (memory_xfer_partial_1): Don't handle dcache writes here.
3132 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3134 * remote-sim.c (gdbsim_load): Add const to prog.
3136 2014-03-03 Tom Tromey <tromey@redhat.com>
3138 * elfread.c (probe_key): Change to bfd_data.
3139 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3140 now per-BFD, not per-objfile.
3141 * stap-probe.c (stap_probe_destroy): Update comment.
3142 (handle_stap_probe): Allocate on the per-BFD obstack.
3144 2014-03-03 Tom Tromey <tromey@redhat.com>
3146 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3147 * breakpoint.c (create_longjmp_master_breakpoint): Use
3149 (add_location_to_breakpoint, bkpt_probe_insert_location)
3150 (bkpt_probe_remove_location): Update.
3151 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3152 * elfread.c (elf_symfile_relocate_probe): Remove.
3153 (elf_probe_fns): Update.
3154 (insert_exception_resume_breakpoint): Change type of "probe"
3155 parameter to bound_probe.
3156 (check_exception_resume): Update.
3157 * objfiles.c (objfile_relocate1): Don't relocate probes.
3158 * probe.c (bound_probe_s): New typedef.
3159 (parse_probes): Use get_probe_address. Set sal's objfile.
3160 (find_probe_by_pc): Return a bound_probe.
3161 (collect_probes): Return a VEC(bound_probe_s).
3162 (compare_probes): Update.
3163 (gen_ui_out_table_header_info): Change type of "probes"
3165 (info_probes_for_ops): Update.
3166 (get_probe_address): New function.
3167 (probe_safe_evaluate_at_pc): Update.
3168 * probe.h (struct probe_ops) <get_probe_address>: New field.
3169 <set_semaphore, clear_semaphore>: Add objfile parameter.
3170 (struct probe) <objfile>: Remove field.
3172 <address>: Update comment.
3173 (struct bound_probe): New.
3174 (find_probe_by_pc): Return a bound_probe.
3175 (get_probe_address): Declare.
3176 * solib-svr4.c (struct probe_and_action) <address>: New field.
3177 (hash_probe_and_action, equal_probe_and_action): Update.
3178 (register_solib_event_probe): Add address parameter.
3179 (solib_event_probe_at): Update.
3180 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3182 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3183 (stap_get_probe_address): New function.
3184 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3185 (compile_probe_arg): Update.
3186 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3188 (handle_stap_probe): Don't relocate the probe.
3189 (stap_relocate): Remove.
3190 (stap_gen_info_probes_table_values): Update.
3191 (stap_probe_ops): Remove stap_relocate.
3192 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3193 (debug_sym_probe_fns): Update.
3194 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3195 * symtab.c (init_sal): Use memset.
3196 * symtab.h (struct symtab_and_line) <objfile>: New field.
3197 * tracepoint.c (start_tracing, stop_tracing): Update.
3199 2014-03-03 Tom Tromey <tromey@redhat.com>
3201 * probe.h (parse_probes, find_probe_by_pc)
3202 (find_probes_in_objfile): Fix comments.
3204 2014-03-02 Doug Evans <xdje42@gmail.com>
3206 * infrun.c (handle_signal_stop): Replace test for
3207 TARGET_WAITKIND_STOPPED with an assert.
3209 2014-03-02 Doug Evans <xdje42@gmail.com>
3211 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3213 2014-03-02 Doug Evans <xdje42@gmail.com>
3215 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3217 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3219 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3221 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3223 * i386obsd-nat.c: Include "obsd-nat.h".
3224 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3226 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3228 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3230 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3232 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3234 * mips64obsd-nat.c: Include "obsd-nath".
3235 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3237 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3239 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3241 * amd64obsd-nat.c: Include "obsd-nat,h.
3242 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3244 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3246 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3248 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3249 (find_overload_match): Update call to find_oload_champ.
3250 (find_oload_champ_namespace_loop): Likewise
3252 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3254 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3256 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3257 * config/sparc/obsd64.mh: New file.
3258 * sparc64obsd-nat.c: New file.
3260 * obsd-nat.h: New file.
3261 * obsd-nat.c: New file.
3262 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3263 (ALLDEPFILES): Add obsd-nat.c.
3265 2014-02-28 Tom Tromey <tromey@redhat.com>
3267 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3268 * cli-out.h (cli_ui_out_impl): Now const.
3269 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3270 * ui-out.c (struct ui_out) <impl>: Now const.
3271 (default_ui_out_impl): Now const.
3272 (ui_out_new): Make 'impl' parameter const.
3273 * ui-out.h (ui_out_new): Update.
3275 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3277 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3279 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3281 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3283 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3285 Additional PR 8882 fix.
3286 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3288 2014-02-27 Pedro Alves <palves@redhat.com>
3290 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3293 2014-02-27 Pedro Alves <palves@redhat.com>
3296 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3297 * nat/linux-waitpid.c: Include string.h.
3298 (status_to_str): Moved here and made extern.
3299 * nat/linux-waitpid.h (status_to_str): New declaration.
3301 2014-02-27 Hui Zhu <hui@codesourcery.com>
3304 * infrun.c (ptid_match): Move ...
3305 * common/ptid.c (ptid_match): ... here.
3306 * inferior.h (ptid_match): Move ...
3307 * common/ptid.h (ptid_match): ... here.
3309 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3311 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3312 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3315 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3317 * obsd-tdep.c (obsd_auxv_parse): New function.
3318 (obsd_init_abi): Set auxv_parse.
3320 * gdbarch.sh (auxv_parse): New.
3321 * gdbarch.h: Regenerated.
3322 * gdbarch.c: Regenerated.
3323 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3325 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3327 * guile/scm-value.c (gdbscm_history_append_x): New function.
3328 (value_functions): Add it.
3330 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3332 * dwarf2read.c (attr_value_as_address): New function.
3333 (dwarf2_find_base_address, read_call_site_scope): Use
3334 attr_value_as_address in place of DW_ADDR.
3335 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3336 the low and high addresses. Slight rework of the handling
3337 of the high pc being a constant form, and limit it to
3338 DWARF verson 4 or higher.
3339 (dwarf2_record_block_ranges): Likewise.
3340 (read_partial_die): Likewise.
3341 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3343 2014-02-26 Tom Tromey <tromey@redhat.com>
3345 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3347 2014-02-26 Tom Tromey <tromey@redhat.com>
3349 * elfread.c (elf_read_minimal_symbols): Return early if
3350 minimal symbols have already been read. Add "ei" parameter.
3351 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3352 * minsyms.c (prim_record_minimal_symbol_full): Update.
3353 * objfiles.h (struct objstats) <n_minsyms>: Move...
3354 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3355 * symmisc.c (print_objfile_statistics): Update.
3357 2014-02-26 Tom Tromey <tromey@redhat.com>
3359 * elfread.c (elf_read_minimal_symbols): New function, from
3361 (elf_symfile_read): Call it.
3363 2014-02-26 Tom Tromey <tromey@redhat.com>
3365 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3366 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3367 (lookup_minimal_symbol_solib_trampoline)
3368 (lookup_minimal_symbol_by_pc_section_1)
3369 (lookup_minimal_symbol_and_objfile): Update.
3370 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3371 Don't allocate a minimal symbol if minsyms have already been read.
3372 (build_minimal_symbol_hash_tables): Update.
3373 (install_minimal_symbols): Do nothing if minsyms already read.
3374 Use the per-BFD obstack.
3375 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3376 * objfiles.c (allocate_objfile): Call
3377 terminate_minimal_symbol_table later.
3378 (have_minimal_symbols): Update.
3379 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3380 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3381 Move from struct objfile.
3382 <minsyms_read>: New field.
3383 (struct objfile) <msymbols, minimal_symbol_count,
3384 msymbol_hash, msymbol_demangled_hash>: Move.
3385 (ALL_OBJFILE_MSYMBOLS): Update.
3386 * symfile.c (read_symbols): Set minsyms_read.
3387 (reread_symbols): Update.
3388 * symmisc.c (dump_objfile, dump_msymbols): Update.
3390 2014-02-26 Tom Tromey <tromey@redhat.com>
3392 * minsyms.c (msymbols_sort): Remove.
3393 * minsyms.h (msymbols_sort): Remove.
3394 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3395 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3396 * elfread.c (elf_symtab_read): Don't add section offsets.
3397 * xcoffread.c (record_minimal_symbol): Don't add section offset
3398 to minimal symbol address.
3399 * somread.c (text_offset, data_offset): Remove.
3400 (som_symtab_read): Don't add section offsets to minimal symbol
3402 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3403 Don't add section offsets to minimal symbols.
3404 * coffread.c (coff_symtab_read): Don't add section offsets
3405 to minimal symbol addresses.
3406 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3407 to minimal symbol addresses.
3408 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3409 section offset to minimal symbol addresses.
3410 * mdebugread.c (parse_partial_symbols): Don't add section
3411 offset to minimal symbol addresses.
3412 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3413 offset to minimal symbol addresses.
3415 2014-02-26 Tom Tromey <tromey@redhat.com>
3417 * ada-lang.c (ada_main_name): Update.
3418 (ada_add_standard_exceptions): Update.
3419 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3420 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3421 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3422 * auxv.c (ld_so_xfer_auxv): Update.
3423 * avr-tdep.c (avr_scan_prologue): Update.
3424 * ax-gdb.c (gen_var_ref): Update.
3425 * blockframe.c (get_pc_function_start)
3426 (find_pc_partial_function_gnu_ifunc): Update.
3427 * breakpoint.c (create_overlay_event_breakpoint)
3428 (create_longjmp_master_breakpoint)
3429 (create_std_terminate_master_breakpoint)
3430 (create_exception_master_breakpoint): Update.
3431 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3432 * c-valprint.c (c_val_print): Update.
3433 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3434 * common/agent.c (agent_look_up_symbols): Update.
3435 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3436 * dwarf2loc.c (call_site_to_target_addr): Update.
3437 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3438 * elfread.c (elf_gnu_ifunc_record_cache)
3439 (elf_gnu_ifunc_resolve_by_got): Update.
3440 * findvar.c (default_read_var_value): Update.
3441 * frame.c (inside_main_func): Update.
3442 * frv-tdep.c (frv_frame_this_id): Update.
3443 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3444 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3446 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3447 (hppa_hpux_find_dummy_bpaddr): Update.
3448 * hppa-tdep.c (hppa_symbol_address): Update.
3449 * infcmd.c (until_next_command): Update.
3450 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3452 * linespec.c (minsym_found, add_minsym): Update.
3453 * linux-nat.c (get_signo): Update.
3454 * linux-thread-db.c (inferior_has_bug): Update.
3455 * m32c-tdep.c (m32c_return_value)
3456 (m32c_m16c_address_to_pointer): Update.
3457 * m32r-tdep.c (m32r_frame_this_id): Update.
3458 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3459 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3460 * maint.c (maintenance_translate_address): Update.
3461 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3462 (frob_address): New function.
3463 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3464 frob_address. Rename parameter to "pc_in".
3465 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3467 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3469 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3470 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3471 * objc-lang.c (find_objc_msgsend): Update.
3472 * objfiles.c (objfile_relocate1): Update.
3473 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3474 * p-valprint.c (pascal_val_print): Update.
3475 * parse.c (write_exp_msymbol): Update.
3476 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3477 (ppc_elfv2_skip_entrypoint): Update.
3478 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3479 * printcmd.c (build_address_symbolic, msym_info)
3480 (address_info): Update.
3481 * proc-service.c (ps_pglobal_lookup): Update.
3482 * psymtab.c (find_pc_sect_psymtab_closer)
3483 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3484 Change msymbol parameter to bound_minimal_symbol.
3485 * ravenscar-thread.c (get_running_thread_id): Update.
3486 * remote.c (remote_check_symbols): Update.
3487 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3489 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3490 * solib-dsbt.c (lm_base): Update.
3491 * solib-frv.c (lm_base, main_got): Update.
3492 * solib-irix.c (locate_base): Update.
3493 * solib-som.c (som_solib_create_inferior_hook)
3494 (link_map_start): Update.
3495 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3496 * solib-svr4.c (elf_locate_base, enable_break): Update.
3497 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3498 (flush_ea_cache): Update.
3499 * stabsread.c (define_symbol, scan_file_globals): Update.
3500 * stack.c (find_frame_funname): Update.
3501 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3502 (debug_qf_find_pc_sect_symtab): Update.
3503 * symfile.c (simple_read_overlay_table)
3504 (simple_overlay_update): Update.
3505 * symfile.h (struct quick_symbol_functions)
3506 <find_pc_sect_symtab>: Change type of msymbol to
3507 bound_minimal_symbol.
3508 * symmisc.c (dump_msymbols): Update.
3509 * symtab.c (find_pc_sect_symtab_via_partial)
3510 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3511 (search_symbols, print_msymbol_info): Update.
3512 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3513 (MSYMBOL_VALUE_ADDRESS): Redefine.
3514 (BMSYMBOL_VALUE_ADDRESS): New macro.
3515 * tracepoint.c (scope_info): Update.
3516 * tui/tui-disasm.c (tui_find_disassembly_address)
3517 (tui_get_begin_asm_address): Update.
3518 * valops.c (find_function_in_inferior): Update.
3519 * value.c (value_static_field, value_fn_field): Update.
3521 2014-02-26 Tom Tromey <tromey@redhat.com>
3523 * ada-lang.c (ada_update_initial_language): Update.
3524 (ada_main_name, ada_has_this_exception_support): Update.
3525 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3526 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3527 * arm-tdep.c (arm_skip_stub): Update.
3528 * auxv.c (ld_so_xfer_auxv): Update.
3529 * avr-tdep.c (avr_scan_prologue): Update.
3530 * ax-gdb.c (gen_var_ref): Update.
3531 * breakpoint.c (struct breakpoint_objfile_data)
3532 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3533 type to bound_minimal_symbol.
3534 (create_overlay_event_breakpoint)
3535 (create_longjmp_master_breakpoint)
3536 (create_std_terminate_master_breakpoint)
3537 (create_exception_master_breakpoint): Update.
3538 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3539 * c-exp.y (classify_name): Update.
3540 * coffread.c (coff_symfile_read): Update.
3541 * common/agent.c (agent_look_up_symbols): Update.
3542 * d-lang.c (d_main_name): Update.
3543 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3544 * dec-thread.c (enable_dec_thread): Update.
3545 * dwarf2loc.c (call_site_to_target_addr): Update.
3546 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3547 * eval.c (evaluate_subexp_standard): Update.
3548 * findvar.c (struct minsym_lookup_data) <result>: Change type
3549 to bound_minimal_symbol.
3551 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3552 * frame.c (inside_main_func): Update.
3553 * frv-tdep.c (frv_frame_this_id): Update.
3554 * gcore.c (call_target_sbrk): Update.
3555 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3556 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3558 * go-lang.c (go_main_name): Update.
3559 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3560 (hppa_hpux_find_import_stub_for_addr): Update.
3561 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3562 Update. Change return type.
3563 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3565 * jit.c (jit_breakpoint_re_set_internal): Update.
3566 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3568 * linux-nat.c (get_signo): Update.
3569 * linux-thread-db.c (inferior_has_bug): Update
3570 * m32c-tdep.c (m32c_return_value)
3571 (m32c_m16c_address_to_pointer): Update.
3572 * m32r-tdep.c (m32r_frame_this_id): Update.
3573 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3574 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3575 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3576 lookup_minimal_symbol. Change return type.
3577 (lookup_minimal_symbol): Remove.
3578 (lookup_bound_minimal_symbol): Update.
3579 (lookup_minimal_symbol_text): Change return type.
3580 (lookup_minimal_symbol_solib_trampoline): Change return type.
3581 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3582 (lookup_minimal_symbol_solib_trampoline): Change return type.
3583 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3584 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3585 (value_nsstring, find_imps): Update.
3586 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3587 * p-lang.c (pascal_main_name): Update.
3588 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3589 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3590 * proc-service.c (ps_pglobal_lookup): Update.
3591 * ravenscar-thread.c (get_running_thread_msymbol): Change
3593 (has_ravenscar_runtime, get_running_thread_id): Update.
3594 * remote.c (remote_check_symbols): Update.
3595 * sol-thread.c (ps_pglobal_lookup): Update.
3596 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3597 * solib-dsbt.c (lm_base): Update.
3598 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3600 * solib-irix.c (locate_base): Update.
3601 * solib-som.c (som_solib_create_inferior_hook)
3602 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3604 * solib-spu.c (spu_enable_break): Update.
3605 * solib-svr4.c (elf_locate_base, enable_break): Update.
3606 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3607 (flush_ea_cache): Update.
3608 * stabsread.c (define_symbol): Update.
3609 * symfile.c (simple_read_overlay_table): Update.
3610 * symtab.c (find_pc_sect_line): Update.
3611 * tracepoint.c (scope_info): Update.
3612 * tui-disasm.c (tui_get_begin_asm_address): Update.
3613 * value.c (value_static_field): Update.
3615 2014-02-26 Tom Tromey <tromey@redhat.com>
3617 * minsyms.c (prim_record_minimal_symbol_full): Use
3618 SET_MSYMBOL_VALUE_ADDRESS.
3619 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3620 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3621 SET_MSYMBOL_VALUE_ADDRESS.
3622 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3623 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3625 2014-02-26 Tom Tromey <tromey@redhat.com>
3627 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3628 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3629 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3630 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3631 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3632 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3633 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3634 * ada-lang.c (ada_main_name): Update.
3635 (ada_lookup_simple_minsym): Update.
3636 (ada_make_symbol_completion_list): Update.
3637 (ada_add_standard_exceptions): Update.
3638 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3639 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3640 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3641 * arm-tdep.c (skip_prologue_function): Update.
3642 (arm_skip_stack_protector, arm_skip_stub): Update.
3643 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3644 (arm_wince_skip_main_prologue): Update.
3645 * auxv.c (ld_so_xfer_auxv): Update.
3646 * avr-tdep.c (avr_scan_prologue): Update.
3647 * ax-gdb.c (gen_var_ref): Update.
3648 * block.c (call_site_for_pc): Update.
3649 * blockframe.c (get_pc_function_start): Update.
3650 (find_pc_partial_function_gnu_ifunc): Update.
3651 * breakpoint.c (create_overlay_event_breakpoint): Update.
3652 (create_longjmp_master_breakpoint): Update.
3653 (create_std_terminate_master_breakpoint): Update.
3654 (create_exception_master_breakpoint): Update.
3655 (resolve_sal_pc): Update.
3656 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3657 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3659 * c-valprint.c (c_val_print): Update.
3660 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3661 * coffread.c (coff_symfile_read): Update.
3662 * common/agent.c (agent_look_up_symbols): Update.
3663 * dbxread.c (find_stab_function_addr): Update.
3664 (end_psymtab): Update.
3665 * dwarf2loc.c (call_site_to_target_addr): Update.
3666 (func_verify_no_selftailcall): Update.
3667 (tailcall_dump): Update.
3668 (call_site_find_chain_1): Update.
3669 (dwarf_expr_reg_to_entry_parameter): Update.
3670 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3671 (elf_gnu_ifunc_resolve_by_got): Update.
3672 * f-valprint.c (info_common_command): Update.
3673 * findvar.c (read_var_value): Update.
3674 * frame.c (get_prev_frame_1): Update.
3675 (inside_main_func): Update.
3676 * frv-tdep.c (frv_skip_main_prologue): Update.
3677 (frv_frame_this_id): Update.
3678 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3679 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3680 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3681 (gnuv3_skip_trampoline): Update.
3682 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3683 (hppa64_hpux_in_solib_call_trampoline): Update.
3684 (hppa_hpux_skip_trampoline_code): Update.
3685 (hppa64_hpux_search_dummy_call_sequence): Update.
3686 (hppa_hpux_find_import_stub_for_addr): Update.
3687 (hppa_hpux_find_dummy_bpaddr): Update.
3688 * hppa-tdep.c (hppa_symbol_address)
3689 (hppa_lookup_stub_minimal_symbol): Update.
3690 * i386-tdep.c (i386_skip_main_prologue): Update.
3691 (i386_pe_skip_trampoline_code): Update.
3692 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3693 * infcall.c (get_function_name): Update.
3694 * infcmd.c (until_next_command): Update.
3695 * jit.c (jit_breakpoint_re_set_internal): Update.
3696 (jit_inferior_init): Update.
3697 * linespec.c (minsym_found): Update.
3698 (add_minsym): Update.
3699 * linux-fork.c (info_checkpoints_command): Update.
3700 * linux-nat.c (get_signo): Update.
3701 * linux-thread-db.c (inferior_has_bug): Update.
3702 * m32c-tdep.c (m32c_return_value): Update.
3703 (m32c_m16c_address_to_pointer): Update.
3704 (m32c_m16c_pointer_to_address): Update.
3705 * m32r-tdep.c (m32r_frame_this_id): Update.
3706 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3707 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3708 * maint.c (maintenance_translate_address): Update.
3709 * minsyms.c (add_minsym_to_hash_table): Update.
3710 (add_minsym_to_demangled_hash_table): Update.
3711 (msymbol_objfile): Update.
3712 (lookup_minimal_symbol): Update.
3713 (iterate_over_minimal_symbols): Update.
3714 (lookup_minimal_symbol_text): Update.
3715 (lookup_minimal_symbol_by_pc_name): Update.
3716 (lookup_minimal_symbol_solib_trampoline): Update.
3717 (lookup_minimal_symbol_by_pc_section_1): Update.
3718 (lookup_minimal_symbol_and_objfile): Update.
3719 (prim_record_minimal_symbol_full): Update.
3720 (compare_minimal_symbols): Update.
3721 (compact_minimal_symbols): Update.
3722 (build_minimal_symbol_hash_tables): Update.
3723 (install_minimal_symbols): Update.
3724 (terminate_minimal_symbol_table): Update.
3725 (find_solib_trampoline_target): Update.
3726 (minimal_symbol_upper_bound): Update.
3727 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3728 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3729 (mips_skip_pic_trampoline_code): Update.
3730 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3731 * objc-lang.c (selectors_info): Update.
3732 (classes_info): Update.
3733 (find_methods): Update.
3734 (find_imps): Update.
3735 (find_objc_msgsend): Update.
3736 * objfiles.c (objfile_relocate1): Update.
3737 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3738 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3739 * p-valprint.c (pascal_val_print): Update.
3740 * parse.c (write_exp_msymbol): Update.
3741 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3742 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3743 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3744 * printcmd.c (build_address_symbolic): Update.
3746 (address_info): Update.
3747 * proc-service.c (ps_pglobal_lookup): Update.
3748 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3749 (find_pc_sect_psymtab): Update.
3750 * python/py-framefilter.c (py_print_frame): Update.
3751 * ravenscar-thread.c (get_running_thread_id): Update.
3752 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3754 * remote.c (remote_check_symbols): Update.
3755 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3756 (rs6000_skip_trampoline_code): Update.
3757 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3758 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3759 * solib-dsbt.c (lm_base): Update.
3760 * solib-frv.c (lm_base): Update.
3762 * solib-irix.c (locate_base): Update.
3763 * solib-som.c (som_solib_create_inferior_hook): Update.
3764 (som_solib_desire_dynamic_linker_symbols): Update.
3765 (link_map_start): Update.
3766 * solib-spu.c (spu_enable_break): Update.
3767 (ocl_enable_break): Update.
3768 * solib-svr4.c (elf_locate_base): Update.
3769 (enable_break): Update.
3770 * spu-tdep.c (spu_get_overlay_table): Update.
3771 (spu_catch_start): Update.
3772 (flush_ea_cache): Update.
3773 * stabsread.c (define_symbol): Update.
3774 (scan_file_globals): Update.
3775 * stack.c (find_frame_funname): Update.
3776 (frame_info): Update.
3777 * symfile.c (simple_read_overlay_table): Update.
3778 (simple_overlay_update): Update.
3779 * symmisc.c (dump_msymbols): Update.
3780 * symtab.c (fixup_section): Update.
3781 (find_pc_sect_line): Update.
3782 (skip_prologue_sal): Update.
3783 (search_symbols): Update.
3784 (print_msymbol_info): Update.
3785 (rbreak_command): Update.
3786 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3787 (completion_list_objc_symbol): Update.
3788 (default_make_symbol_completion_list_break_on): Update.
3789 * tracepoint.c (scope_info): Update.
3790 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3791 (tui_get_begin_asm_address): Update.
3792 * valops.c (find_function_in_inferior): Update.
3793 * value.c (value_static_field): Update.
3794 (value_fn_field): Update.
3796 2014-02-26 Tom Tromey <tromey@redhat.com>
3798 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3799 bound minimal symbols. Move code that knows about minsym
3801 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3803 * minsyms.h (minimal_symbol_upper_bound): Declare.
3804 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3805 minimal_symbol_upper_bound.
3807 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3809 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3810 Use the type's name if its basic type does not have a tag.
3812 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3814 * dwarf2read.c (read_subrange_type): Add comment.
3816 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3818 * dwarf2read.c (update_enumeration_type_from_children): New
3819 function, mostly extracted from process_structure_scope.
3820 (read_enumeration_type): Call update_enumeration_type_from_children.
3821 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3822 and flag_flag_enum fields.
3824 2014-02-26 Pedro Alves <palves@redhat.com>
3826 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3827 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3828 to_xfer_partial method.
3830 2014-02-26 Pedro Alves <palves@redhat.com>
3832 * target.c (complete_target_initialization): Don't install
3833 default_xfer_partial as to_xfer_partial hook.
3835 (update_current_target): Don't INHERIT nor de_fault
3836 deprecated_xfer_memory. Delete de_fault macro.
3837 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3838 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3839 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3842 2014-02-26 Pedro Alves <palves@redhat.com>
3844 * go32-nat.c (my_write_child): New function.
3845 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3846 (go32_xfer_partial): New function.
3847 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3848 Instead install a to_xfer_partial hook.
3850 2014-02-26 Pedro Alves <palves@redhat.com>
3852 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3853 to_xfer_partial helper. Rewrite.
3854 (procfs_xfer_partial): New function.
3855 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3856 Install a to_xfer_partial hook.
3858 2014-02-26 Pedro Alves <palves@redhat.com>
3860 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3861 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3862 (m32r_xfer_partial): New function.
3863 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3864 Install a to_xfer_partial hook.
3866 2014-02-26 Pedro Alves <palves@redhat.com>
3868 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3870 (mips_xfer_partial): New function.
3871 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3872 hook. Install a to_xfer_partial hook.
3874 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3876 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3877 * gdbtypes.c (create_array_type_with_stride): New function,
3878 renaming create_array_type, but with an added parameter
3879 called "bit_stride".
3880 (create_array_type): Re-implement using
3881 create_array_type_with_stride.
3882 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3883 and DW_AT_bit_stride attributes.
3885 2014-02-26 Pedro Alves <palves@redhat.com>
3887 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3888 task-specific breakpoints.
3890 2014-02-25 Pedro Alves <palves@redhat.com>
3892 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3893 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3895 2014-02-25 Stan Shebs <stan@codesourcery.com>
3897 * defs.h: Annotate comments for Doxygen.
3899 2014-02-25 Tom Tromey <tromey@redhat.com>
3901 * target.h (target_ignore): Don't declare.
3902 * target.c (target_ignore): Remove.
3904 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3907 * auto-load.c (auto_load_objfile_script_1): Change filename to
3910 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3912 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3913 documentation. Adjust prototype to match the target_ops
3914 to_xfer_partial method. Adjust implementation accordingly.
3916 2014-02-25 Hui Zhu <hui@codesourcery.com>
3918 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3921 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3923 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3924 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3925 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3926 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3927 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3928 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3929 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3930 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3932 (rl78_register_type): Use a data pointer type for SP and
3933 new pseudo registers mentioned above. Use a 16 bit integer
3934 type for all other register pairs.
3935 (rl78_register_name, rl78_g10_register_name): Update for
3936 new pseudo registers.
3937 (rl78_pseudo_register_read): Likewise.
3938 (rl78_pseudo_register_write): Likewise.
3939 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3940 to the newly added pseudo registers.
3942 2014-02-24 Doug Evans <dje@google.com>
3944 * value.c (record_latest_value): Fix comment.
3945 * printcmd.c (print_command_1): Remove code to handle -1 return from
3946 record_latest_value.
3948 2014-02-24 Pedro Alves <palves@redhat.com>
3950 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3951 deprecated_xfer_memory hook.
3952 (procfs_xfer_partial): Call procfs_xfer_memory instead
3953 of the deprecated_xfer_memory target hook.
3954 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3957 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3959 * windows-nat.c (windows_xfer_shared_libraries): Return
3960 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3961 requested object is TARGET_OBJECT_LIBRARIES.
3963 2014-02-24 Yao Qi <yao@codesourcery.com>
3965 * target.h (enum target_xfer_status)
3966 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3967 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3969 * corefile.c (memory_error_message): User updated.
3970 * exec.c (section_table_read_available_memory): Likewise.
3971 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3972 * target.c (target_xfer_status_to_string): Likewise.
3973 (raw_memory_xfer_partial): Likewise.
3974 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3975 * valops.c (read_value_memory): Likewise.
3976 * exec.h: Update comments.
3978 2014-02-24 Yao Qi <yao@codesourcery.com>
3980 * target.c (target_xfer_status_to_string): Rename argument err
3982 * target.h (target_xfer_status_to_string): Update declaration.
3983 Replace target_xfer_error_to_string with
3984 target_xfer_status_to_string in comment.
3986 2014-02-24 Yao Qi <yao@codesourcery.com>
3988 * mips-linux-nat.c (super_close): Update its type.
3989 (mips_linux_close): Pass 'self' to super_close.
3991 2014-02-24 Yao Qi <yao@codesourcery.com>
3993 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3994 * corefile.c (read_memory): Adjusted.
3995 * target.c (target_write_with_progress): Adjusted.
3997 2014-02-23 Yao Qi <yao@codesourcery.com>
4001 2013-10-25 Yao Qi <yao@codesourcery.com>
4003 * remote.c (remote_traceframe_info): Return early if
4004 traceframe is not selected.
4006 2013-07-19 Yao Qi <yao@codesourcery.com>
4008 * target.c (update_current_target): Change the default action
4009 of 'to_traceframe_info' from tcomplain to return_zero.
4010 * target.h (struct target_ops) <to_traceframe_info>: Add more
4013 2014-02-23 Yao Qi <yao@codesourcery.com>
4015 * valops.c (read_value_memory): Rewrite it. Call
4016 target_xfer_partial in a loop.
4017 * exec.h (section_table_available_memory): Remove declaration.
4018 Move comments to ...
4019 * exec.c (section_table_available_memory): ... here. Make it
4022 2014-02-23 Yao Qi <yao@codesourcery.com>
4024 * exec.c (section_table_read_available_memory): New function.
4025 * exec.h (section_table_read_available_memory): Declare.
4026 * ctf.c (ctf_xfer_partial): Call
4027 section_table_read_available_memory.
4028 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4030 2014-02-23 Yao Qi <yao@codesourcery.com>
4032 * ctf.c (ctf_xfer_partial): Move code to ...
4033 * exec.c (exec_read_partial_read_only): ... it. New function.
4034 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4035 * tracefile.c: Include "exec.h".
4036 * exec.h (exec_read_partial_read_only): Declare.
4038 2014-02-23 Yao Qi <yao@codesourcery.com>
4040 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4041 (tfile_has_memory): Remove.
4042 (init_tfile_ops): Don't set fields to_has_all_memory and
4043 to_has_memory of tfile_ops.
4044 * tracefile.c (tracefile_has_all_memory): New function.
4045 (tracefile_has_memory): New function.
4046 (init_tracefile_ops): Initialize fields to_has_all_memory and
4047 to_has_memory of 'ops'.
4049 2014-02-23 Yao Qi <yao@codesourcery.com>
4051 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4052 (ctf_thread_alive, ctf_get_trace_status): Remove.
4053 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4055 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4056 (tfile_has_stack, tfile_has_registers): Remove.
4057 (tfile_thread_alive): Remove.
4058 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4060 * tracefile.c (tracefile_has_stack): New function.
4061 (tracefile_has_registers): New function.
4062 (tracefile_thread_alive): New function.
4063 (tracefile_get_trace_status): New function.
4064 (init_tracefile_ops): New function.
4065 * tracefile.h (init_tracefile_ops): Declare.
4067 2014-02-23 Yao Qi <yao@codesourcery.com>
4069 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4070 (O_LARGEFILE): Likewise.
4071 (tfile_ops): Likewise.
4072 (TRACE_HEADER_SIZE): Likewise.
4073 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4074 (cur_data_size): Likewise.
4075 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4076 (tfile_close, tfile_files_info): Likewise.
4077 (tfile_get_trace_status): Likewise.
4078 (tfile_get_tracepoint_status): Likewise.
4079 (tfile_get_traceframe_address): Likewise.
4080 (tfile_trace_find, match_blocktype): Likewise.
4081 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4082 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4083 (tfile_get_trace_state_variable_value): Likewise.
4084 (tfile_has_all_memory, tfile_has_memory): Likewise.
4085 (tfile_has_stack, tfile_has_registers): Likewise.
4086 (tfile_thread_alive, build_traceframe_info): Likewise.
4087 (tfile_traceframe_info, init_tfile_ops): Likewise.
4088 (_initialize_tracepoint): Don't call init_tfile_ops
4089 and add_target_with_completer.
4090 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4091 exec.h, completer.h and filenames.h.
4092 (_initialize_tracefile_tfile): New function.
4094 2014-02-23 Yao Qi <yao@codesourcery.com>
4096 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4098 (HFILES_NO_SRCDIR): Add tracefile.h.
4099 * ctf.c: Include "tracefile.h".
4100 * tracefile.h: New file.
4101 * tracefile.c: New file
4102 * tracefile-tfile.c: New file.
4103 * tracepoint.c: Include "tracefile.h".
4104 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4105 (stop_reason_names): Add const.
4106 (trace_file_writer_xfree): Move it to tracefile.c.
4107 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4108 (trace_save_ctf): Likewise.
4109 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4110 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4111 (tfile_write_header, tfile_write_regblock_type): Likewise.
4112 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4113 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4114 (tfile_write_raw_data, tfile_end): Likewise.
4115 (tfile_trace_file_writer_new): Likewise.
4116 (free_uploaded_tp): Make it extern.
4117 (free_uploaded_tsv): Make it extern.
4118 (_initialize_tracepoint): Move code to register command 'tsave'
4120 * tracepoint.h (stop_reason_names): Declare.
4121 (struct trace_frame_write_ops): Move it to tracefile.h.
4122 (struct trace_file_write_ops): Likewise.
4123 (struct trace_file_writer): Likewise.
4124 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4126 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4129 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4131 (get_cores_used_by_process): New parameter num_cores, use it.
4132 (linux_xfer_osdata_processes): Pass num_cores to it.
4133 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4136 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4138 * target.c (memory_xfer_partial): Fix length arg in call to
4139 breakpoint_xfer_memory.
4141 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4144 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4145 number comes after the + or - signs. Adjust length of register
4146 name to be extracted.
4148 2014-02-20 Tom Tromey <tromey@redhat.com>
4150 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4151 (ada_varobj_ops): Mark "extern".
4153 2014-02-20 Tom Tromey <tromey@redhat.com>
4155 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4157 2014-02-20 Doug Evans <xdje42@gmail.com>
4159 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4160 All callers updated.
4161 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4162 All callers updated.
4163 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4164 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4166 2014-02-20 lin zuojian <manjian2006@gmail.com>
4167 Joel Brobecker <brobecker@adacore.com>
4168 Doug Evans <xdje42@gmail.com>
4171 * dwarf2read.c (struct die_info): New member in_process.
4172 (reset_die_in_process): New function.
4173 (process_die): Set it at the start, reset when returning.
4174 (inherit_abstract_dies): Only call process_die if origin_child_die
4175 not already being processed.
4177 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4179 * windows-nat.c (handle_unload_dll): Add function documentation.
4180 (do_initial_windows_stuff): Add comment explaining why we wait
4181 until after inferior initialization has finished before
4182 processing all DLLs.
4184 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4186 * windows-nat.c (get_module_name): Delete.
4187 (windows_get_exec_module_filename): New function, mostly
4188 inspired from get_module_name.
4189 (windows_pid_to_exec_file): Replace call to get_module_name
4190 by call to windows_get_exec_module_filename.
4192 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4194 * windows-nat.c (handle_load_dll): Rewrite this function's
4195 introductory comment. Remove code using get_module_name
4196 to get the DLL's name.
4198 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4200 * windows-nat.c (get_windows_debug_event): Ignore
4201 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4202 if windows_initialization_done == 0.
4203 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4204 Adjust implementation to always load all DLLs.
4205 (do_initial_windows_stuff): Replace call to
4206 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4208 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4210 * windows-nat.c (_initialize_windows_nat): Deprecate the
4211 "dll-symbols" command. Turn the "add-shared-symbol-files"
4212 and "assf" aliases into commands, and deprecate them as well.
4213 * NEWS: Add entry explaining that "dll-symbols" and its two
4214 aliases are now deprecated.
4216 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4218 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4219 new-line in debug string. Remove trailing spaces.
4221 2014-02-19 Stan Shebs <stan@codesourcery.com>
4223 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4225 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4227 * NEWS: Add entry for the new feature
4228 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4231 2014-02-19 Stan Shebs <stan@codesourcery.com>
4233 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4235 2014-02-19 Pedro Alves <palves@redhat.com>
4237 * common/ptid.h (struct ptid): Mention that process_stratum
4238 targets should prefer ptid.lwp.
4240 2014-02-19 Pedro Alves <palves@redhat.com>
4242 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4243 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4244 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4245 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4246 store remote thread ids rather than ptid.tid.
4247 (_initialize_remote): Adjust.
4249 2014-02-19 Tom Tromey <tromey@redhat.com>
4251 * target.c (target_get_unwinder): Rewrite.
4252 (target_get_tailcall_unwinder): Rewrite.
4253 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4254 (record_btrace_to_get_tailcall_unwinder): New function.
4255 (init_record_btrace_ops): Update.
4256 * target.h (struct target_ops) <to_get_unwinder,
4257 to_get_tailcall_unwinder>: Now function pointers. Use
4258 TARGET_DEFAULT_RETURN.
4260 2014-02-19 Tom Tromey <tromey@redhat.com>
4262 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4264 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4266 2014-02-19 Tom Tromey <tromey@redhat.com>
4268 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4270 * target-delegates.c: Rebuild.
4271 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4272 TARGET_DEFAULT_FUNC.
4273 * target.c (default_target_decr_pc_after_break): Rename from
4274 forward_target_decr_pc_after_break. Simplify.
4275 (target_decr_pc_after_break): Rely on delegation.
4277 2014-02-19 Tom Tromey <tromey@redhat.com>
4279 * target.c (update_current_target): Do not INHERIT to_doc or
4280 to_magic. Do not de_fault to_open or to_close.
4282 2014-02-19 Tom Tromey <tromey@redhat.com>
4284 * gcore.h (objfile_find_memory_regions): Declare.
4285 * gcore.c (objfile_find_memory_regions): No longer static. Add
4287 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4288 * exec.c: Include gcore.h.
4289 (exec_set_find_memory_regions): Remove.
4290 (exec_find_memory_regions): Remove.
4291 (exec_do_find_memory_regions): Remove.
4292 (init_exec_ops): Update.
4293 * defs.h (exec_set_find_memory_regions): Remove.
4295 2014-02-19 Tom Tromey <tromey@redhat.com>
4297 * target-delegates.c: Rebuild.
4298 * target.h (struct target_ops) <to_extra_thread_info,
4299 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4300 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4301 not 0, in TARGET_DEFAULT_RETURN.
4303 2014-02-19 Tom Tromey <tromey@redhat.com>
4305 * target.c (complete_target_initialization): Remove casts. Use
4306 return_zero_has_execution.
4307 (return_zero): Add "ignore" argument.
4308 (return_zero_has_execution): New function.
4309 (init_dummy_target): Remove casts. Use
4310 return_zero_has_execution.
4312 2014-02-19 Tom Tromey <tromey@redhat.com>
4314 * target.c (update_current_target): Update comments. Do not
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4321 * corelow.c (core_read_description): Delegate when needed.
4322 * remote.c (remote_read_description): Delegate when needed.
4323 * target-delegates.c: Rebuild.
4324 * target.c (target_read_description): Rewrite.
4325 * target.h (struct target_ops) <to_read_description>: Update
4326 comment. Use TARGET_DEFAULT_RETURN.
4328 2014-02-19 Tom Tromey <tromey@redhat.com>
4330 * target-delegates.c: Rebuild.
4331 * target.c (update_current_target): Don't inherit or default
4333 (find_default_run_target): Check against delegate_can_run.
4334 * target.h (struct target_ops) <to_can_run>: Use
4335 TARGET_DEFAULT_RETURN.
4337 2014-02-19 Tom Tromey <tromey@redhat.com>
4339 * target-delegates.c: Rebuild.
4340 * target.c (target_disconnect): Unconditionally delegate.
4341 * target.h (struct target_ops) <to_disconnect>: Use
4342 TARGET_DEFAULT_NORETURN.
4344 2014-02-19 Tom Tromey <tromey@redhat.com>
4346 * record.c (record_stop): Unconditionally delegate.
4347 * target-delegates.c: Rebuild.
4348 * target.c (target_stop_recording): Unconditionally delegate.
4349 * target.h (struct target_ops) <to_stop_recording>: Use
4350 TARGET_DEFAULT_IGNORE.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target-delegates.c: Rebuild.
4355 * target.c (target_enable_btrace): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_enable_btrace>: Use
4357 TARGET_DEFAULT_NORETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (target_read_btrace): Unconditionally delegate.
4363 * target.h (struct target_ops) <to_read_btrace>: Use
4364 TARGET_DEFAULT_NORETURN.
4366 2014-02-19 Tom Tromey <tromey@redhat.com>
4368 * target-delegates.c: Rebuild.
4369 * target.c (target_teardown_btrace): Unconditionally delegate.
4370 * target.h (struct target_ops) <to_teardown_btrace>: Use
4371 TARGET_DEFAULT_NORETURN.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target-delegates.c: Rebuild.
4376 * target.c (target_disable_btrace): Unconditionally delegate.
4377 * target.h (struct target_ops) <to_disable_btrace>: Use
4378 TARGET_DEFAULT_NORETURN.
4380 2014-02-19 Tom Tromey <tromey@redhat.com>
4382 * target-delegates.c: Rebuild.
4383 * target.c (default_search_memory): New function.
4384 (simple_search_memory): Update comment.
4385 (target_search_memory): Unconditionally delegate.
4386 * target.h (struct target_ops) <to_search_memory>: Use
4387 TARGET_DEFAULT_FUNC.
4389 2014-02-19 Tom Tromey <tromey@redhat.com>
4391 * auxv.c (default_auxv_parse): No longer static.
4392 (target_auxv_parse): Unconditionally delegate.
4393 * auxv.h (default_auxv_parse): Declare.
4394 * target-delegates.c: Rebuild.
4395 * target.c: Include auxv.h.
4396 * target.h (struct target_ops) <to_auxv_parse>: Use
4397 TARGET_DEFAULT_FUNC.
4399 2014-02-19 Tom Tromey <tromey@redhat.com>
4401 * target-delegates.c: Rebuild.
4402 * target.c (target_memory_map): Unconditionally delegate.
4403 * target.h (struct target_ops) <to_memory_map>: Use
4404 TARGET_DEFAULT_RETURN.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target-delegates.c: Rebuild.
4409 * target.c (target_thread_alive): Unconditionally delegate.
4410 * target.h (struct target_ops) <to_thread_alive>: Use
4411 TARGET_DEFAULT_RETURN.
4413 2014-02-19 Tom Tromey <tromey@redhat.com>
4415 * target-delegates.c: Rebuild.
4416 * target.c (target_save_record): Unconditionally delegate.
4417 * target.h (struct target_ops) <to_save_record>: Use
4418 TARGET_DEFAULT_NORETURN.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target-delegates.c: Rebuild.
4423 * target.c (target_delete_record): Unconditionally delegate.
4424 * target.h (struct target_ops) <to_delete_record>: Use
4425 TARGET_DEFAULT_NORETURN.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * target-delegates.c: Rebuild.
4430 * target.c (target_record_is_replaying): Unconditionally
4432 * target.h (struct target_ops) <to_record_is_replaying>: Use
4433 TARGET_DEFAULT_RETURN.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (target_goto_record_begin): Unconditionally delegate.
4439 * target.h (struct target_ops) <to_goto_record_begin>: Use
4440 TARGET_DEFAULT_NORETURN.
4442 2014-02-19 Tom Tromey <tromey@redhat.com>
4444 * target-delegates.c: Rebuild.
4445 * target.c (target_goto_record_end): Unconditionally delegate.
4446 * target.h (struct target_ops) <to_goto_record_end>: Use
4447 TARGET_DEFAULT_NORETURN.
4449 2014-02-19 Tom Tromey <tromey@redhat.com>
4451 * target-delegates.c: Rebuild.
4452 * target.c (target_goto_record): Unconditionally delegate.
4453 * target.h (struct target_ops) <to_goto_record>: Use
4454 TARGET_DEFAULT_NORETURN.
4456 2014-02-19 Tom Tromey <tromey@redhat.com>
4458 * target-delegates.c: Rebuild.
4459 * target.c (target_insn_history): Unconditionally delegate.
4460 * target.h (struct target_ops) <to_insn_history>: Use
4461 TARGET_DEFAULT_NORETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (target_insn_history_from): Unconditionally delegate.
4467 * target.h (struct target_ops) <to_insn_history_from>: Use
4468 TARGET_DEFAULT_NORETURN.
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target-delegates.c: Rebuild.
4473 * target.c (target_insn_history_range): Unconditionally delegate.
4474 * target.h (struct target_ops) <to_insn_history_range>: Use
4475 TARGET_DEFAULT_NORETURN.
4477 2014-02-19 Tom Tromey <tromey@redhat.com>
4479 * target-delegates.c: Rebuild.
4480 * target.c (target_call_history): Unconditionally delegate.
4481 * target.h (struct target_ops) <to_call_history>: Use
4482 TARGET_DEFAULT_NORETURN.
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * target-delegates.c: Rebuild.
4487 * target.c (target_call_history_from): Unconditionally delegate.
4488 * target.h (struct target_ops) <to_call_history_from>: Use
4489 TARGET_DEFAULT_NORETURN.
4491 2014-02-19 Tom Tromey <tromey@redhat.com>
4493 * target-delegates.c: Rebuild.
4494 * target.c (target_call_history_range): Unconditionally delegate.
4495 * target.h (struct target_ops) <to_call_history_range>: Use
4496 TARGET_DEFAULT_NORETURN.
4498 2014-02-19 Tom Tromey <tromey@redhat.com>
4500 * target-delegates.c: Rebuild.
4501 * target.c (target_verify_memory): Unconditionally delegate.
4502 * target.h (struct target_ops) <to_verify_memory>: Use
4503 TARGET_DEFAULT_NORETURN.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target-delegates.c: Rebuild.
4508 * target.c (target_core_of_thread): Unconditionally delegate.
4509 * target.h (struct target_ops) <to_core_of_thread>: Use
4510 TARGET_DEFAULT_RETURN.
4512 2014-02-19 Tom Tromey <tromey@redhat.com>
4514 * target-delegates.c: Rebuild.
4515 * target.c (target_flash_done): Unconditionally delegate.
4516 * target.h (struct target_ops) <to_flash_done>: Use
4517 TARGET_DEFAULT_NORETURN.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target-delegates.c: Rebuild.
4522 * target.c (target_flash_erase): Unconditionally delegate.
4523 * target.h (struct target_ops) <to_flash_erase>: Use
4524 TARGET_DEFAULT_NORETURN.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target-delegates.c: Rebuild.
4529 * target.c (target_get_section_table): Unconditionally delegate.
4530 * target.h (struct target_ops) <to_get_section_table>: Use
4531 TARGET_DEFAULT_RETURN.
4533 2014-02-19 Tom Tromey <tromey@redhat.com>
4535 * target-delegates.c: Rebuild.
4536 * target.c (target_pid_to_str): Unconditionally delegate.
4537 (init_dummy_target): Don't initialize to_pid_to_str.
4538 (default_pid_to_str): Rename from dummy_pid_to_str.
4539 * target.h (struct target_ops) <to_pid_to_str>: Use
4540 TARGET_DEFAULT_FUNC.
4542 2014-02-19 Tom Tromey <tromey@redhat.com>
4544 * target-delegates.c: Rebuild.
4545 * target.c (target_find_new_threads): Unconditionally delegate.
4546 * target.h (struct target_ops) <to_find_new_threads>: Use
4547 TARGET_DEFAULT_RETURN.
4549 2014-02-19 Tom Tromey <tromey@redhat.com>
4551 * target-delegates.c: Rebuild.
4552 * target.c (target_program_signals): Unconditionally delegate.
4553 * target.h (struct target_ops) <to_program_signals>: Use
4554 TARGET_DEFAULT_IGNORE.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.c (target_pass_signals): Unconditionally delegate.
4560 * target.h (struct target_ops) <to_pass_signals>: Use
4561 TARGET_DEFAULT_IGNORE.
4563 2014-02-19 Tom Tromey <tromey@redhat.com>
4565 * target-delegates.c: Rebuild.
4566 * target.c (default_mourn_inferior): New function.
4567 (target_mourn_inferior): Unconditionally delegate.
4568 * target.h (struct target_ops) <to_mourn_inferior>: Use
4569 TARGET_DEFAULT_FUNC.
4571 2014-02-19 Tom Tromey <tromey@redhat.com>
4573 * target-delegates.c: Rebuild.
4574 * target.c (default_follow_fork): New function.
4575 (target_follow_fork): Unconditionally delegate.
4576 * target.h (struct target_ops) <to_follow_fork>: Use
4577 TARGET_DEFAULT_FUNC.
4579 2014-02-19 Tom Tromey <tromey@redhat.com>
4581 * target-delegates.c: Rebuild.
4582 * target.c (target_kill): Unconditionally delegate.
4583 * target.h (struct target_ops) <to_kill>: Use
4584 TARGET_DEFAULT_NORETURN.
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * target-delegates.c: Rebuild.
4589 * target.c (target_masked_watch_num_registers): Unconditionally
4591 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4592 Use TARGET_DEFAULT_RETURN.
4594 2014-02-19 Tom Tromey <tromey@redhat.com>
4596 * target-delegates.c: Rebuild.
4597 * target.c (target_remove_mask_watchpoint): Unconditionally
4599 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4600 TARGET_DEFAULT_RETURN.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target-delegates.c: Rebuild.
4605 * target.c (target_insert_mask_watchpoint): Unconditionally
4607 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4608 TARGET_DEFAULT_RETURN.
4610 2014-02-19 Tom Tromey <tromey@redhat.com>
4612 * target-delegates.c: Rebuild.
4613 * target.c (target_ranged_break_num_registers): Unconditionally
4615 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4616 Use TARGET_DEFAULT_RETURN.
4618 2014-02-19 Tom Tromey <tromey@redhat.com>
4620 * target-delegates.c: Rebuild.
4621 * target.c (target_fetch_registers): Unconditionally delegate.
4622 * target.h (struct target_ops) <to_fetch_registers>: Use
4623 TARGET_DEFAULT_NORETURN.
4625 2014-02-19 Tom Tromey <tromey@redhat.com>
4627 * target-delegates.c: Rebuild.
4628 * target.c (update_current_target): Don't inherit or default
4630 * target.h (struct target_ops) <to_stop>: Use
4631 TARGET_DEFAULT_IGNORE.
4633 2014-02-19 Tom Tromey <tromey@redhat.com>
4635 * target-delegates.c: Rebuild.
4636 * target.c (update_current_target): Don't inherit or default
4637 to_can_run_breakpoint_commands.
4638 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4639 Use TARGET_DEFAULT_RETURN.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target-delegates.c: Rebuild.
4644 * target.c (update_current_target): Don't inherit or default
4645 to_supports_evaluation_of_breakpoint_conditions.
4646 * target.h (struct target_ops)
4647 <to_supports_evaluation_of_breakpoint_conditions>: Use
4648 TARGET_DEFAULT_RETURN.
4650 2014-02-19 Tom Tromey <tromey@redhat.com>
4652 * target-delegates.c: Rebuild.
4653 * target.c (update_current_target): Don't inherit or default
4654 to_augmented_libraries_svr4_read.
4655 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4656 Use TARGET_DEFAULT_RETURN.
4658 2014-02-19 Tom Tromey <tromey@redhat.com>
4660 * target-delegates.c: Rebuild.
4661 * target.c (update_current_target): Don't inherit or default
4663 * target.h (struct target_ops) <to_can_use_agent>: Use
4664 TARGET_DEFAULT_RETURN.
4666 2014-02-19 Tom Tromey <tromey@redhat.com>
4668 * target-delegates.c: Rebuild.
4669 * target.c (update_current_target): Don't inherit or default
4671 * target.h (struct target_ops) <to_use_agent>: Use
4672 TARGET_DEFAULT_NORETURN.
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target-delegates.c: Rebuild.
4677 * target.c (update_current_target): Don't inherit or default
4679 (return_null): Remove.
4680 * target.h (struct target_ops) <to_traceframe_info>: Use
4681 TARGET_DEFAULT_RETURN.
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target-delegates.c: Rebuild.
4686 * target.c (update_current_target): Don't inherit or default
4687 to_static_tracepoint_markers_by_strid.
4688 * target.h (struct target_ops)
4689 <to_static_tracepoint_markers_by_strid>: Use
4690 TARGET_DEFAULT_NORETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (update_current_target): Don't inherit or default
4696 to_static_tracepoint_marker_at.
4697 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4698 Use TARGET_DEFAULT_RETURN.
4700 2014-02-19 Tom Tromey <tromey@redhat.com>
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4705 * target.h (struct target_ops) <to_set_permissions>: Use
4706 TARGET_DEFAULT_IGNORE.
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target-delegates.c: Rebuild.
4711 * target.c (update_current_target): Don't inherit or default
4713 * target.h (struct target_ops) <to_get_tib_address>: Use
4714 TARGET_DEFAULT_NORETURN.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target-delegates.c: Rebuild.
4719 * target.c (update_current_target): Don't inherit or default
4721 * target.h (struct target_ops) <to_set_trace_notes>: Use
4722 TARGET_DEFAULT_RETURN.
4724 2014-02-19 Tom Tromey <tromey@redhat.com>
4726 * target-delegates.c: Rebuild.
4727 * target.c (update_current_target): Don't initialize
4728 to_set_trace_buffer_size.
4729 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4730 TARGET_DEFAULT_IGNORE.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target-delegates.c: Rebuild.
4735 * target.c (update_current_target): Don't inherit or default
4736 to_set_circular_trace_buffer.
4737 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4738 TARGET_DEFAULT_IGNORE.
4740 2014-02-19 Tom Tromey <tromey@redhat.com>
4742 * target-delegates.c: Rebuild.
4743 * target.c (update_current_target): Don't inherit or default
4744 to_set_disconnected_tracing.
4745 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4746 TARGET_DEFAULT_IGNORE.
4748 2014-02-19 Tom Tromey <tromey@redhat.com>
4750 * target-delegates.c: Rebuild.
4751 * target.c (update_current_target): Don't inherit or default
4752 to_get_min_fast_tracepoint_insn_len.
4753 (return_minus_one): Remove.
4754 * target.h (struct target_ops)
4755 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4757 2014-02-19 Tom Tromey <tromey@redhat.com>
4759 * target-delegates.c: Rebuild.
4760 * target.c (update_current_target): Don't inherit or default
4761 to_get_raw_trace_data.
4762 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4763 TARGET_DEFAULT_NORETURN.
4765 2014-02-19 Tom Tromey <tromey@redhat.com>
4767 * target-delegates.c: Rebuild.
4768 * target.c (update_current_target): Don't inherit or default
4769 to_upload_trace_state_variables.
4770 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4771 Use TARGET_DEFAULT_RETURN.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target-delegates.c: Rebuild.
4776 * target.c (update_current_target): Don't inherit or default
4777 to_upload_tracepoints.
4778 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4779 TARGET_DEFAULT_RETURN.
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target-delegates.c: Rebuild.
4784 * target.c (update_current_target): Don't inherit or default
4786 * target.h (struct target_ops) <to_save_trace_data>: Use
4787 TARGET_DEFAULT_NORETURN.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (update_current_target): Don't inherit or default
4793 to_get_trace_state_variable_value.
4794 * target.h (struct target_ops)
4795 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target-delegates.c: Rebuild.
4800 * target.c (update_current_target): Don't inherit or default
4802 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
4809 * target.h (struct target_ops) <to_trace_stop>: Use
4810 TARGET_DEFAULT_NORETURN.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (update_current_target): Don't inherit or default
4816 to_get_tracepoint_status.
4817 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4818 TARGET_DEFAULT_NORETURN.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target-delegates.c: Rebuild.
4823 * target.c (update_current_target): Don't inherit or default
4824 to_get_trace_status.
4825 * target.h (struct target_ops) <to_get_trace_status>: Use
4826 TARGET_DEFAULT_RETURN.
4828 2014-02-19 Tom Tromey <tromey@redhat.com>
4830 * target-delegates.c: Rebuild.
4831 * target.c (update_current_target): Don't inherit or default
4833 * target.h (struct target_ops) <to_trace_start>: Use
4834 TARGET_DEFAULT_NORETURN.
4836 2014-02-19 Tom Tromey <tromey@redhat.com>
4838 * target-delegates.c: Rebuild.
4839 * target.c (update_current_target): Don't inherit or default
4840 to_trace_set_readonly_regions.
4841 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4842 Use TARGET_DEFAULT_NORETURN.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target-delegates.c: Rebuild.
4847 * target.c (update_current_target): Don't inherit or default
4848 to_disable_tracepoint.
4849 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4850 TARGET_DEFAULT_NORETURN.
4852 2014-02-19 Tom Tromey <tromey@redhat.com>
4854 * target-delegates.c: Rebuild.
4855 * target.c (update_current_target): Don't inherit or default
4856 to_enable_tracepoint.
4857 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4858 TARGET_DEFAULT_NORETURN.
4860 2014-02-19 Tom Tromey <tromey@redhat.com>
4862 * target-delegates.c: Rebuild.
4863 * target.c (update_current_target): Don't inherit or default
4864 to_download_trace_state_variable.
4865 * target.h (struct target_ops) <to_download_trace_state_variable>:
4866 Use TARGET_DEFAULT_NORETURN.
4868 2014-02-19 Tom Tromey <tromey@redhat.com>
4870 * target-delegates.c: Rebuild.
4871 * target.c (update_current_target): Don't inherit or default
4872 to_can_download_tracepoint.
4873 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4874 TARGET_DEFAULT_RETURN.
4876 2014-02-19 Tom Tromey <tromey@redhat.com>
4878 * target-delegates.c: Rebuild.
4879 * target.c (update_current_target): Don't inherit or default
4880 to_download_tracepoint.
4881 * target.h (struct target_ops) <to_download_tracepoint>: Use
4882 TARGET_DEFAULT_NORETURN.
4884 2014-02-19 Tom Tromey <tromey@redhat.com>
4886 * target-delegates.c: Rebuild.
4887 * target.c (update_current_target): Don't inherit or default
4889 * target.h (struct target_ops) <to_trace_init>: Use
4890 TARGET_DEFAULT_RETURN.
4892 2014-02-19 Tom Tromey <tromey@redhat.com>
4894 * target-delegates.c: Rebuild.
4895 * target.c (update_current_target): Don't inherit or default
4896 to_supports_string_tracing.
4897 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4898 TARGET_DEFAULT_RETURN.
4900 2014-02-19 Tom Tromey <tromey@redhat.com>
4902 * target-delegates.c: Rebuild.
4903 * target.c (update_current_target): Don't inherit or default
4904 to_supports_enable_disable_tracepoint.
4905 * target.h (struct target_ops)
4906 <to_supports_enable_disable_tracepoint>: Use
4907 TARGET_DEFAULT_RETURN.
4909 2014-02-19 Tom Tromey <tromey@redhat.com>
4911 * target-delegates.c: Rebuild.
4912 * target.c (update_current_target): Don't inherit or default
4913 to_supports_multi_process.
4914 * target.h (struct target_ops) <to_supports_multi_process>: Use
4915 TARGET_DEFAULT_RETURN.
4917 2014-02-19 Tom Tromey <tromey@redhat.com>
4919 * target-delegates.c: Rebuild.
4920 * target.c (update_current_target): Don't inherit or default
4921 to_get_ada_task_ptid.
4922 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4923 TARGET_DEFAULT_FUNC.
4925 2014-02-19 Tom Tromey <tromey@redhat.com>
4927 * target-delegates.c: Rebuild.
4928 * target.c (update_current_target): Don't inherit or default
4929 to_thread_architecture.
4930 * target.h (struct target_ops) <to_thread_architecture>: Use
4931 TARGET_DEFAULT_FUNC.
4933 2014-02-19 Tom Tromey <tromey@redhat.com>
4935 * target-delegates.c: Rebuild.
4936 * target.c (update_current_target): Don't inherit or default
4937 to_execution_direction.
4938 * target.h (struct target_ops) <to_execution_direction>: Use
4939 TARGET_DEFAULT_FUNC.
4941 2014-02-19 Tom Tromey <tromey@redhat.com>
4943 * target-delegates.c: Rebuild.
4944 * target.c (update_current_target): Don't inherit or default
4945 to_can_execute_reverse.
4946 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4947 TARGET_DEFAULT_RETURN.
4948 (target_can_execute_reverse): Unconditionally delegate.
4950 2014-02-19 Tom Tromey <tromey@redhat.com>
4952 * target-delegates.c: Rebuild.
4953 * target.c (update_current_target): Don't inherit or default
4955 (dummy_goto_bookmark): Remove.
4956 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4957 * target.h (struct target_ops) <to_goto_bookmark>: Use
4958 TARGET_DEFAULT_NORETURN.
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * target-delegates.c: Rebuild.
4963 * target.c (update_current_target): Don't inherit or default
4965 (dummy_get_bookmark): Remove.
4966 (init_dummy_target): Don't inherit or default to_get_bookmark.
4967 * target.h (struct target_ops) <to_get_bookmark>: Use
4968 TARGET_DEFAULT_NORETURN
4970 2014-02-19 Tom Tromey <tromey@redhat.com>
4972 * target-delegates.c: Rebuild.
4973 * target.c (update_current_target): Don't inherit or default
4974 to_make_corefile_notes.
4975 (init_dummy_target): Don't initialize to_make_corefile_notes.
4976 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4977 TARGET_DEFAULT_FUNC.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target-delegates.c: Rebuild.
4982 * target.c (update_current_target): Don't inherit or default
4983 to_find_memory_regions.
4984 (init_dummy_target): Don't initialize to_find_memory_regions.
4985 * target.h (struct target_ops) <to_find_memory_regions>: Use
4986 TARGET_DEFAULT_FUNC.
4988 2014-02-19 Tom Tromey <tromey@redhat.com>
4990 * target-delegates.c: Rebuild.
4991 * target.c (update_current_target): Don't inherit or default
4993 * target.h (struct target_ops) <to_log_command>: Use
4994 TARGET_DEFAULT_IGNORE.
4995 (target_log_command): Unconditionally delegate.
4997 2014-02-19 Tom Tromey <tromey@redhat.com>
4999 * target-delegates.c: Rebuild.
5000 * target.c (update_current_target): Don't inherit or default
5001 to_pid_to_exec_file.
5002 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5003 TARGET_DEFAULT_RETURN.
5005 2014-02-19 Tom Tromey <tromey@redhat.com>
5007 * target-delegates.c: Rebuild.
5008 * target.c (update_current_target): Don't inherit or default
5010 (target_thread_name): Unconditionally delegate.
5011 * target.h (struct target_ops) <to_thread_name>: Use
5012 TARGET_DEFAULT_RETURN.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target-delegates.c: Rebuild.
5017 * target.c (update_current_target): Don't inherit or default
5018 to_extra_thread_info.
5019 * target.h (struct target_ops) <to_extra_thread_info>: Use
5020 TARGET_DEFAULT_RETURN.
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target-delegates.c: Rebuild.
5025 * target.c (update_current_target): Don't inherit or default
5027 * target.h (struct target_ops) <to_has_exited>: Use
5028 TARGET_DEFAULT_RETURN..
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target-delegates.c: Rebuild.
5033 * target.c (update_current_target): Don't inherit or default
5034 to_set_syscall_catchpoint.
5035 (return_one): Remove.
5036 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5037 TARGET_DEFAULT_RETURN.
5039 2014-02-19 Tom Tromey <tromey@redhat.com>
5041 * target-delegates.c: Rebuild.
5042 * target.c (update_current_target): Don't inherit or default
5043 to_insert_exec_catchpoint.
5044 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5045 TARGET_DEFAULT_RETURN.
5047 2014-01-08 Tom Tromey <tromey@redhat.com>
5049 * target-delegates.c: Rebuild.
5050 * target.c (update_current_target): Don't inherit or default
5051 to_insert_exec_catchpoint.
5052 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5053 TARGET_DEFAULT_RETURN.
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target-delegates.c: Rebuild.
5058 * target.c (update_current_target): Don't inherit or default
5059 to_remove_vfork_catchpoint.
5060 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5061 TARGET_DEFAULT_RETURN.
5063 2014-02-19 Tom Tromey <tromey@redhat.com>
5065 * target-delegates.c: Rebuild.
5066 * target.c (update_current_target): Don't inherit or default
5067 to_insert_vfork_catchpoint.
5068 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5069 TARGET_DEFAULT_RETURN.
5071 2014-02-19 Tom Tromey <tromey@redhat.com>
5073 * target-delegates.c: Rebuild.
5074 * target.c (update_current_target): Don't inherit or default
5075 to_remove_fork_catchpoint.
5076 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5077 TARGET_DEFAULT_RETURN.
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * target-delegates.c: Rebuild.
5082 * target.c (update_current_target): Don't inherit or default
5083 to_insert_fork_catchpoint.
5084 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5085 TARGET_DEFAULT_RETURN.
5087 2014-02-19 Tom Tromey <tromey@redhat.com>
5089 * target-delegates.c: Rebuild.
5090 * target.c (update_current_target): Don't inherit or default
5091 to_post_startup_inferior.
5092 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5093 TARGET_DEFAULT_IGNORE.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.c (update_current_target): Don't inherit or default
5100 * target.h (struct target_ops) <to_load>: Use
5101 TARGET_DEFAULT_NORETURN.
5103 2014-02-19 Tom Tromey <tromey@redhat.com>
5105 * target-delegates.c: Rebuild.
5106 * target.c (update_current_target): Don't inherit or default
5108 * target.h (struct target_ops) <to_terminal_info>: Use
5109 TARGET_DEFAULT_FUNC.
5111 2014-02-19 Tom Tromey <tromey@redhat.com>
5113 * target-delegates.c: Rebuild.
5114 * target.c (update_current_target): Don't inherit or default
5115 to_terminal_save_ours.
5116 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5117 TARGET_DEFAULT_IGNORE.
5119 2014-02-19 Tom Tromey <tromey@redhat.com>
5121 * target-delegates.c: Rebuild.
5122 * target.c (update_current_target): Don't inherit or default
5124 * target.h (struct target_ops) <to_terminal_ours>: Use
5125 TARGET_DEFAULT_IGNORE.
5127 2014-02-19 Tom Tromey <tromey@redhat.com>
5129 * target-delegates.c: Rebuild.
5130 * target.c (update_current_target): Don't inherit or default
5131 to_terminal_ours_for_output.
5132 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5133 TARGET_DEFAULT_IGNORE.
5135 2014-02-19 Tom Tromey <tromey@redhat.com>
5137 * target-delegates.c: Rebuild.
5138 * target.c (update_current_target): Don't inherit or default
5139 to_terminal_inferior.
5140 * target.h (struct target_ops) <to_terminal_inferior>: Use
5141 TARGET_DEFAULT_IGNORE.
5143 2014-02-19 Tom Tromey <tromey@redhat.com>
5145 * target-delegates.c: Rebuild.
5146 * target.c (update_current_target): Don't inherit or default
5148 * target.h (struct target_ops) <to_terminal_init>: Use
5149 TARGET_DEFAULT_IGNORE.
5151 2014-02-19 Tom Tromey <tromey@redhat.com>
5153 * target-delegates.c: Rebuild.
5154 * target.c (update_current_target): Don't inherit or default
5155 to_can_accel_watchpoint_condition.
5156 * target.h (struct target_ops)
5157 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5159 2014-02-19 Tom Tromey <tromey@redhat.com>
5161 * target-delegates.c: Rebuild.
5162 * target.c (update_current_target): Don't inherit or default
5163 to_region_ok_for_hw_watchpoint.
5164 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5165 Use TARGET_DEFAULT_FUNC.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * target-delegates.c: Rebuild.
5170 * target.c (update_current_target): Don't inherit or default
5171 to_watchpoint_addr_within_range.
5172 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5173 Use TARGET_DEFAULT_FUNC.
5175 2014-02-19 Tom Tromey <tromey@redhat.com>
5177 * target-delegates.c: Rebuild.
5178 * target.c (update_current_target): Don't inherit or default
5179 to_remove_watchpoint.
5180 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5181 TARGET_DEFAULT_NORETURN.
5183 2014-02-19 Tom Tromey <tromey@redhat.com>
5185 * target-delegates.c: Rebuild.
5186 * target.c (update_current_target): Don't inherit or default
5187 to_insert_watchpoint.
5188 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5189 TARGET_DEFAULT_RETURN.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target-delegates.c: Rebuild.
5194 * target.c (update_current_target): Don't inherit or default
5195 to_remove_hw_breakpoint.
5196 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5197 TARGET_DEFAULT_RETURN.
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target-delegates.c: Rebuild.
5202 * target.c (update_current_target): Don't inherit or default
5203 to_insert_hw_breakpoint.
5204 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5205 TARGET_DEFAULT_RETURN.
5207 2014-02-19 Tom Tromey <tromey@redhat.com>
5209 * target-delegates.c: Rebuild.
5210 * target.c (update_current_target): Don't inherit or default
5211 to_can_use_hw_breakpoint.
5212 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5213 TARGET_DEFAULT_RETURN.
5215 2014-02-19 Tom Tromey <tromey@redhat.com>
5217 * target-delegates.c: Rebuild.
5218 * target.c (update_current_target): Don't inherit or default
5220 * target.h (struct target_ops) <to_files_info>: Use
5221 TARGET_DEFAULT_IGNORE.
5223 2014-02-19 Tom Tromey <tromey@redhat.com>
5225 * target-delegates.c: Rebuild.
5226 * target.c (update_current_target): Don't inherit or default
5228 * target.h (struct target_ops) <to_store>: Use
5229 TARGET_DEFAULT_NORETURN.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target-delegates.c: Rebuild.
5234 * target.c (update_current_target): Don't inherit or default
5236 * target.h (struct target_ops) <to_post_attach>: Use
5237 TARGET_DEFAULT_IGNORE.
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target-delegates.c: Rebuild.
5242 * target.c (update_current_target): Don't inherit or default
5244 (default_rcmd): New function.
5245 (do_monitor_command): Unconditionally delegate.
5246 * target.h (struct target_ops) <to_rmcd>: Use
5247 TARGET_DEFAULT_FUNC.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * target-delegates.c: Rebuild.
5252 * target.c (init_dummy_target): Don't initialize to_attach.
5253 (target_attach): Unconditionally delegate.
5254 * target.h (struct target_ops) <to_attach>: Use
5255 TARGET_DEFAULT_FUNC.
5257 2014-02-19 Tom Tromey <tromey@redhat.com>
5259 * target-delegates.c: Rebuild.
5260 * target.c (target_detach): Unconditionally delegate.
5261 (init_dummy_target): Don't initialize to_detach.
5262 * target.h (struct target_ops) <to_detach>: Use
5263 TARGET_DEFAULT_IGNORE.
5265 2014-02-19 Tom Tromey <tromey@redhat.com>
5267 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5269 (target_augmented_libraries_svr4_read): Add argument.
5270 * target.c (update_current_target): Update.
5271 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * target.h (struct target_ops) <to_call_history_range>: Add
5278 * target.c (target_call_history_range): Add argument.
5279 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5281 (record_btrace_call_history_from): Update.
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target.h (struct target_ops) <to_call_history_from>: Add
5287 * target.c (target_call_history_from): Add argument.
5288 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5293 * target.h (struct target_ops) <to_call_history>: Add argument.
5294 * target.c (target_call_history): Add argument.
5295 * record-btrace.c (record_btrace_call_history): Add 'self'
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target.h (struct target_ops) <to_insn_history_range>: Add
5302 * target.c (target_insn_history_range): Add argument.
5303 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5305 (record_btrace_insn_history_from): Update.
5307 2014-02-19 Tom Tromey <tromey@redhat.com>
5309 * target.h (struct target_ops) <to_insn_history_from>: Add
5311 * target.c (target_insn_history_from): Add argument.
5312 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5315 2014-02-19 Tom Tromey <tromey@redhat.com>
5317 * target.h (struct target_ops) <to_insn_history>: Add argument.
5318 * target.c (target_insn_history): Add argument.
5319 * record-btrace.c (record_btrace_insn_history): Add 'self'
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target.h (struct target_ops) <to_goto_record>: Add argument.
5325 * target.c (target_goto_record): Add argument.
5326 * record-full.c (record_full_goto): Add 'self' argument.
5327 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5329 2014-02-19 Tom Tromey <tromey@redhat.com>
5331 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5332 * target.c (target_goto_record_end): Add argument.
5333 * record-full.c (record_full_goto_end): Add 'self' argument.
5334 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5338 * target.h (struct target_ops) <to_goto_record_begin>: Add
5340 * target.c (target_goto_record_begin): Add argument.
5341 * record-full.c (record_full_goto_begin): Add 'self' argument.
5342 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5345 2014-02-19 Tom Tromey <tromey@redhat.com>
5347 * target.h (struct target_ops) <to_record_is_replaying>: Add
5349 * target.c (target_record_is_replaying): Add argument.
5350 * record-full.c (record_full_is_replaying): Add 'self' argument.
5351 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5353 (record_btrace_xfer_partial, record_btrace_store_registers)
5354 (record_btrace_prepare_to_store, record_btrace_resume)
5355 (record_btrace_wait, record_btrace_decr_pc_after_break)
5356 (record_btrace_find_new_threads, record_btrace_thread_alive):
5359 2014-02-19 Tom Tromey <tromey@redhat.com>
5361 * target.h (struct target_ops) <to_delete_record>: Add argument.
5362 * target.c (target_delete_record): Add argument.
5363 * record-full.c (record_full_delete): Add 'self' argument.
5365 2014-02-19 Tom Tromey <tromey@redhat.com>
5367 * target.h (struct target_ops) <to_save_record>: Add argument.
5368 * target.c (target_save_record): Add argument.
5369 * record-full.c (record_full_save): Add 'self' argument.
5370 (record_full_save): Add 'self' argument.
5372 2014-02-19 Tom Tromey <tromey@redhat.com>
5374 * target.h (struct target_ops) <to_info_record>: Add argument.
5375 * target.c (target_info_record): Add argument.
5376 * record.c (info_record_command): Add argument.
5377 * record-full.c (record_full_info): Add 'self' argument.
5378 * record-btrace.c (record_btrace_info): Add 'self' argument.
5380 2014-02-19 Tom Tromey <tromey@redhat.com>
5382 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5383 * target.c (target_stop_recording): Add argument.
5384 * record.c (record_stop): Add argument.
5385 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5391 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5392 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5394 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5395 (_initialize_amd64_linux_nat): Use it.
5396 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5397 (_initialize_i386_linux_nat): Use it.
5399 2014-02-19 Tom Tromey <tromey@redhat.com>
5401 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5402 * target.c (target_teardown_btrace): Add argument.
5403 * remote.c (remote_teardown_btrace): Add 'self' argument.
5404 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5406 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5409 2014-02-19 Tom Tromey <tromey@redhat.com>
5411 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5412 * target.c (target_disable_btrace): Add argument.
5413 * remote.c (remote_disable_btrace): Add 'self' argument.
5414 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5416 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5419 2014-02-19 Tom Tromey <tromey@redhat.com>
5421 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5422 * target.c (target_enable_btrace): Add argument.
5423 * remote.c (remote_enable_btrace): Add 'self' argument.
5424 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5426 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5432 (target_can_use_agent): Add argument.
5433 * target.c (update_current_target): Update.
5434 * remote.c (remote_can_use_agent): Add 'self' argument.
5435 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5437 2014-02-19 Tom Tromey <tromey@redhat.com>
5439 * target.h (struct target_ops) <to_use_agent>: Add argument.
5440 (target_use_agent): Add argument.
5441 * target.c (update_current_target): Update.
5442 * remote.c (remote_use_agent): Add 'self' argument.
5443 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5448 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5449 (target_traceframe_info): Add argument.
5450 * target.c (update_current_target): Update.
5451 * remote.c (remote_traceframe_info): Add 'self' argument.
5452 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5454 2014-02-19 Tom Tromey <tromey@redhat.com>
5456 * target.h (target_static_tracepoint_markers_by_strid): Add
5458 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5460 * target.c (update_current_target): Update.
5461 * remote.c (struct target_ops)
5462 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5463 * linux-nat.c (struct target_ops)
5464 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5470 (target_static_tracepoint_marker_at): Add argument.
5471 * target.c (update_current_target): Update.
5472 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5475 2014-02-19 Tom Tromey <tromey@redhat.com>
5477 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5478 (target_set_permissions): Add argument.
5479 * target.c (update_current_target): Update.
5480 * remote.c (remote_set_permissions): Add 'self' argument.
5481 (remote_start_remote): Update.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5486 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5487 (target_get_tib_address): Add argument.
5488 * target.c (update_current_target): Update.
5489 * remote.c (remote_get_tib_address): Add 'self' argument.
5491 2014-02-19 Tom Tromey <tromey@redhat.com>
5493 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5494 (target_set_trace_notes): Add argument.
5495 * target.c (update_current_target): Update.
5496 * remote.c (remote_set_trace_notes): Add 'self' argument.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5502 (target_set_trace_buffer_size): Add argument.
5503 * target.c (update_current_target): Update.
5504 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5510 (target_set_circular_trace_buffer): Add argument.
5511 * target.c (update_current_target): Update.
5512 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5515 2014-02-19 Tom Tromey <tromey@redhat.com>
5517 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5519 (target_set_disconnected_tracing): Add argument.
5520 * target.c (update_current_target): Update.
5521 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target.h (struct target_ops)
5526 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5527 (target_get_min_fast_tracepoint_insn_len): Add argument.
5528 * target.c (update_current_target): Update.
5529 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5536 (target_get_raw_trace_data): Add argument.
5537 * target.c (update_current_target): Update.
5538 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5540 2014-02-19 Tom Tromey <tromey@redhat.com>
5542 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5544 (target_upload_trace_state_variables): Add argument.
5545 * target.c (update_current_target): Update.
5546 * remote.c (remote_upload_trace_state_variables): Add 'self'
5548 (remote_start_remote): Update.
5550 2014-02-19 Tom Tromey <tromey@redhat.com>
5552 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5554 (target_upload_tracepoints): Add argument.
5555 * target.c (update_current_target): Update.
5556 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5557 (remote_start_remote): Update.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5562 (target_save_trace_data): Add argument.
5563 * target.c (update_current_target): Update.
5564 * remote.c (remote_save_trace_data): Add 'self' argument.
5566 2014-02-19 Tom Tromey <tromey@redhat.com>
5568 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5570 * target.h (struct target_ops)
5571 <to_get_trace_state_variable_value>: Add argument.
5572 (target_get_trace_state_variable_value): Add argument.
5573 * target.c (update_current_target): Update.
5574 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5576 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5578 2014-02-19 Tom Tromey <tromey@redhat.com>
5580 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5581 * target.h (struct target_ops) <to_trace_find>: Add argument.
5582 (target_trace_find): Add argument.
5583 * target.c (update_current_target): Update.
5584 * remote.c (remote_trace_find): Add 'self' argument.
5585 * ctf.c (ctf_trace_find): Add 'self' argument.
5587 2014-02-19 Tom Tromey <tromey@redhat.com>
5589 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5590 (target_trace_stop): Add argument.
5591 * target.c (update_current_target): Update.
5592 * remote.c (remote_trace_stop): Add 'self' argument.
5594 2014-02-19 Tom Tromey <tromey@redhat.com>
5596 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5597 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5599 (target_get_tracepoint_status): Add argument.
5600 * target.c (update_current_target): Update.
5601 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5603 2014-02-19 Tom Tromey <tromey@redhat.com>
5605 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5606 * target.h (struct target_ops) <to_get_trace_status>: Add
5608 (target_get_trace_status): Add argument.
5609 * target.c (update_current_target): Update.
5610 * remote.c (remote_get_trace_status): Add 'self' argument.
5611 (remote_start_remote, remote_can_download_tracepoint): Update.
5612 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5614 2014-02-19 Tom Tromey <tromey@redhat.com>
5616 * target.h (struct target_ops) <to_trace_start>: Add argument.
5617 (target_trace_start): Add argument.
5618 * target.c (update_current_target): Update.
5619 * remote.c (remote_trace_start): Add 'self' argument.
5621 2014-02-19 Tom Tromey <tromey@redhat.com>
5623 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5625 (target_trace_set_readonly_regions): Add argument.
5626 * target.c (update_current_target): Update.
5627 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5630 2014-02-19 Tom Tromey <tromey@redhat.com>
5632 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5634 (target_disable_tracepoint): Add argument.
5635 * target.c (update_current_target): Update.
5636 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5642 (target_enable_tracepoint): Add argument.
5643 * target.c (update_current_target): Update.
5644 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5646 2014-02-19 Tom Tromey <tromey@redhat.com>
5648 * target.h (struct target_ops) <to_download_trace_state_variable>:
5650 (target_download_trace_state_variable): Add argument.
5651 * target.c (update_current_target): Update.
5652 * remote.c (remote_download_trace_state_variable): Add 'self'
5655 2014-02-19 Tom Tromey <tromey@redhat.com>
5657 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5659 (target_can_download_tracepoint): Add argument.
5660 * target.c (update_current_target): Update.
5661 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5663 2014-02-19 Tom Tromey <tromey@redhat.com>
5665 * target.h (struct target_ops) <to_download_tracepoint>: Add
5667 (target_download_tracepoint): Add argument.
5668 * target.c (update_current_target): Update.
5669 * remote.c (remote_download_tracepoint): Add 'self' argument.
5671 2014-02-19 Tom Tromey <tromey@redhat.com>
5673 * target.h (struct target_ops) <to_trace_init>: Add argument.
5674 (target_trace_init): Add argument.
5675 * target.c (update_current_target): Update.
5676 * remote.c (remote_trace_init): Add 'self' argument.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5681 * target.c (target_fileio_readlink): Add argument.
5682 * remote.c (remote_hostio_readlink): Add 'self' argument.
5683 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5685 2014-02-19 Tom Tromey <tromey@redhat.com>
5687 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5688 * target.c (target_fileio_unlink): Add argument.
5689 * remote.c (remote_hostio_unlink): Add 'self' argument.
5690 (remote_file_delete): Update.
5691 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5696 * target.c (target_fileio_close): Add argument.
5697 * remote.c (remote_hostio_close): Add 'self' argument.
5698 (remote_hostio_close_cleanup): Update.
5699 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5701 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5703 2014-02-19 Tom Tromey <tromey@redhat.com>
5705 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5706 * target.c (target_fileio_pread): Add argument.
5707 * remote.c (remote_hostio_pread): Add 'self' argument.
5708 (remote_bfd_iovec_pread, remote_file_get): Update.
5709 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5711 2014-02-19 Tom Tromey <tromey@redhat.com>
5713 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5714 * target.c (target_fileio_pwrite): Add argument.
5715 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5716 (remote_file_put): Update.
5717 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5722 * target.c (target_fileio_open): Add argument.
5723 * remote.c (remote_hostio_open): Add 'self' argument.
5724 (remote_bfd_iovec_open): Add 'self' argument.
5725 (remote_file_put): Add 'self' argument.
5726 (remote_file_get): Add 'self' argument.
5727 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5733 (target_can_run_breakpoint_commands): Add argument.
5734 * target.c (update_current_target): Update.
5735 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5737 (remote_insert_breakpoint): Add 'self' argument.
5738 (remote_insert_hw_breakpoint): Add 'self' argument.
5739 (remote_can_run_breakpoint_commands): Add 'self' argument.
5741 2014-02-19 Tom Tromey <tromey@redhat.com>
5743 * target.h (struct target_ops)
5744 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5745 (target_supports_evaluation_of_breakpoint_conditions): Add
5747 * target.c (update_current_target): Update.
5748 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5750 (remote_insert_breakpoint): Add 'self' argument.
5751 (remote_insert_hw_breakpoint): Add 'self' argument.
5752 (remote_supports_cond_breakpoints): Add 'self' argument.
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5758 (target_supports_string_tracing): Add argument.
5759 * target.c (update_current_target): Update.
5760 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target.h (struct target_ops)
5765 <to_supports_disable_randomization>: Add argument.
5766 * target.c (find_default_supports_disable_randomization): Add
5768 (target_supports_disable_randomization): Add argument.
5769 (find_default_supports_disable_randomization): Add 'self'
5771 * remote.c (extended_remote_supports_disable_randomization): Add
5773 (remote_supports_disable_randomization): Add 'self' argument.
5774 (extended_remote_create_inferior): Update.
5775 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5778 2014-02-19 Tom Tromey <tromey@redhat.com>
5780 * target.h (struct target_ops)
5781 <to_supports_enable_disable_tracepoint>: Add argument.
5782 (target_supports_enable_disable_tracepoint): Add argument.
5783 * target.c (update_current_target): Update.
5784 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5789 * target.h (struct target_ops) <to_supports_multi_process>: Add
5791 (target_supports_multi_process): Add argument.
5792 * target.c (update_current_target): Update.
5793 * remote.c (remote_supports_multi_process): Add 'self' argument.
5794 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5796 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target.h (struct target_ops) <to_execution_direction>: Add
5803 (target_execution_direction): Add argument.
5804 * target.c (default_execution_direction): Add 'self' argument.
5805 * record-full.c (record_full_execution_direction): Add 'self'
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5812 (target_can_execute_reverse): Add argument.
5813 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5814 * record-full.c (record_full_can_execute_reverse): Add 'self'
5816 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5822 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5824 (target_get_ada_task_ptid): Add argument.
5825 * target.c (update_current_target): Update.
5826 (default_get_ada_task_ptid): Add 'self' argument.
5827 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5828 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5829 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5831 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5833 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5835 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5837 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5838 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5841 2014-02-19 Tom Tromey <tromey@redhat.com>
5843 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5844 (target_goto_bookmark): Add argument.
5845 * target.c (dummy_goto_bookmark): Add 'self' argument.
5846 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5848 2014-02-19 Tom Tromey <tromey@redhat.com>
5850 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5851 (target_get_bookmark): Add argument.
5852 * target.c (dummy_get_bookmark): Add 'self' argument.
5853 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5859 (target_make_corefile_notes): Add argument.
5860 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5861 * procfs.c (procfs_make_note_section): Add 'self' argument.
5862 (procfs_make_note_section): Add 'self' argument.
5863 (procfs_make_note_section): Add 'self' argument.
5864 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5866 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5867 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5868 * exec.c (exec_make_note_section): Add 'self' argument.
5869 (exec_make_note_section): Add 'self' argument.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target.h (struct target_ops) <to_find_memory_regions>: Add
5875 (target_find_memory_regions): Add argument.
5876 * target.c (dummy_find_memory_regions): Add 'self' argument.
5877 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5878 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5879 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5880 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5881 * exec. (exec_do_find_memory_regions): New global.
5882 (exec_set_find_memory_regions): Rewrite.
5883 (exec_find_memory_regions): New function.
5884 (init_exec_ops): Use exec_find_memory_regions.
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_supports_non_stop>: Add
5890 * target.c (find_default_supports_non_stop): Add argument.
5891 (target_supports_non_stop): Add argument.
5892 (find_default_supports_non_stop): Add 'self' argument.
5893 * remote.c (remote_supports_non_stop): Add 'self' argument.
5894 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target.h (struct target_ops) <to_log_command>: Add argument.
5899 (target_log_command): Add argument.
5900 * serial.h (serial_log_command): Add 'self' argument.
5901 * serial.c (serial_log_command): Add 'self' argument.
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5905 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5906 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5908 (target_pid_to_exec_file): Add argument.
5909 * target.c (debug_to_pid_to_exec_file): Add argument.
5910 (update_current_target): Update.
5911 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5912 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5913 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5914 (linux_handle_extended_wait): Update.
5915 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5916 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5917 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5918 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5920 2014-02-19 Tom Tromey <tromey@redhat.com>
5922 * target.h (struct target_ops) <to_rcmd>: Add argument.
5923 (target_rcmd): Add argument.
5924 * target.c (debug_to_rcmd): Add argument.
5925 (update_current_target, do_monitor_command): Update.
5926 * remote.c (remote_rcmd): Add 'self' argument.
5927 * monitor.c (monitor_rcmd): Add 'self' argument.
5929 2014-02-19 Tom Tromey <tromey@redhat.com>
5931 * windows-nat.c (windows_stop): Add 'self' argument.
5932 * target.h (struct target_ops) <to_stop>: Add argument.
5933 * target.c (target_stop): Add argument.
5934 (debug_to_stop): Add argument.
5935 (update_current_target): Update.
5936 * remote.c (remote_stop): Add 'self' argument.
5937 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5938 (gdbsim_cntrl_c): Update.
5939 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5940 * procfs.c (procfs_stop): Add 'self' argument.
5941 * nto-procfs.c (procfs_stop): Add 'self' argument.
5942 * monitor.c (monitor_stop): Add 'self' argument.
5943 (monitor_open): Update.
5944 * linux-nat.c (linux_nat_stop): Add argument.
5945 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5946 * gnu-nat.c (gnu_stop): Add 'self' argument.
5947 * darwin-nat.c (darwin_stop): Add 'self' argument.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target.h (struct target_ops) <to_thread_name>: Add argument.
5952 * target.c (target_thread_name): Add argument.
5953 (update_current_target): Update.
5954 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target.h (struct target_ops) <to_extra_thread_info>: Add
5960 (target_extra_thread_info): Add argument.
5961 * target.c (update_current_target): Update.
5962 * remote.c (remote_threads_extra_info): Add 'self' argument.
5963 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5965 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5966 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5967 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5969 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5971 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5973 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5976 2014-02-19 Tom Tromey <tromey@redhat.com>
5978 * target.h (struct target_ops) <to_program_signals>: Add argument.
5979 * target.c (target_program_signals): Add argument.
5980 * remote.c (remote_program_signals): Add 'self' argument.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5985 * target.c (target_pass_signals): Add argument.
5986 * remote.c (remote_pass_signals): Add 'self' argument.
5987 (remote_start_remote): Update.
5988 * procfs.c (procfs_pass_signals): Add 'self' argument.
5989 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5990 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5991 (linux_nat_create_inferior, linux_nat_attach): Update.
5993 2014-02-19 Tom Tromey <tromey@redhat.com>
5995 * windows-nat.c (windows_can_run): Add 'self' argument.
5996 * target.h (struct target_ops) <to_can_run>: Add argument.
5997 (target_can_run): Add argument.
5998 * target.c (debug_to_can_run): Add argument.
5999 (update_current_target): Update.
6000 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6001 * inf-child.c (inf_child_can_run): Add 'self' argument.
6002 * go32-nat.c (go32_can_run): Add 'self' argument.
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target.h (struct target_ops) <to_has_exited>: Add argument.
6007 (target_has_exited): Add argument.
6008 * target.c (debug_to_has_exited): Add argument.
6009 (update_current_target): Update.
6011 2014-02-19 Tom Tromey <tromey@redhat.com>
6013 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6015 (target_set_syscall_catchpoint): Add argument.
6016 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6018 * target.c (update_current_target): Update.
6020 2014-02-19 Tom Tromey <tromey@redhat.com>
6022 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6024 (target_remove_exec_catchpoint): Add argument.
6025 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6026 (update_current_target): Update.
6027 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6030 2014-02-19 Tom Tromey <tromey@redhat.com>
6032 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6034 (target_insert_exec_catchpoint): Add argument.
6035 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6036 (update_current_target): Update.
6037 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6044 (target_remove_vfork_catchpoint): Add argument.
6045 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6046 (update_current_target): Update.
6047 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6050 2014-02-19 Tom Tromey <tromey@redhat.com>
6052 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6054 (target_insert_vfork_catchpoint): Add argument.
6055 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6056 (update_current_target): Update.
6057 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6064 (target_remove_fork_catchpoint): Add argument.
6065 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6066 (update_current_target): Update.
6067 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6070 2014-02-19 Tom Tromey <tromey@redhat.com>
6072 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6074 (target_insert_fork_catchpoint): Add argument.
6075 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6076 (update_current_target): Update.
6077 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6080 2014-02-19 Tom Tromey <tromey@redhat.com>
6082 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6084 (target_post_startup_inferior): Add argument.
6085 * target.c (debug_to_post_startup_inferior): Add argument.
6086 (update_current_target): Update.
6087 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6089 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6091 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6093 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6095 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6097 (super_post_startup_inferior): Likewise.
6098 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6100 (super_post_startup_inferior): Likewise.
6101 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6102 Add 'self' argument.
6103 (super_post_startup_inferior): Likewise.
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target.h (struct target_ops) <to_load>: Add argument.
6108 * target.c (target_load): Add argument.
6109 (debug_to_load): Add argument.
6110 (update_current_target): Update.
6111 * remote.c (remote_load): Add 'self' argument.
6112 * remote-sim.c (gdbsim_load): Add 'self' argument.
6113 * remote-mips.c (mips_load): Add 'self' argument.
6114 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6115 * monitor.c (monitor_load): Add 'self' argument.
6116 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6118 2014-02-19 Tom Tromey <tromey@redhat.com>
6120 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6121 (target_terminal_info): Add argument.
6122 * target.c (debug_to_terminal_info): Add argument.
6123 (default_terminal_info): Likewise.
6124 * inflow.c (child_terminal_info): Add 'self' argument.
6125 * inferior.h (child_terminal_info): Add 'self' argument.
6126 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6128 2014-02-19 Tom Tromey <tromey@redhat.com>
6130 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6132 (target_terminal_save_ours): Add argument.
6133 * target.c (debug_to_terminal_save_ours): Add argument.
6134 (update_current_target): Update.
6135 * inflow.c (terminal_save_ours): Add 'self' argument.
6136 * inferior.h (terminal_save_ours): Add 'self' argument.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6141 (target_terminal_ours): Add argument.
6142 * target.c (debug_to_terminal_ours): Add argument.
6143 (update_current_target): Update.
6144 * remote.c (remote_terminal_ours): Add 'self' argument.
6145 (remote_close): Update.
6146 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6147 * inflow.c (terminal_ours): Add 'self' argument.
6148 * inferior.h (terminal_ours): Add 'self' argument.
6149 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6151 2014-02-19 Pedro Alves <palves@redhat.com>
6152 Tom Tromey <tromey@redhat.com>
6154 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6156 (target_terminal_ours_for_output): Add argument.
6157 * target.c (debug_to_terminal_ours_for_output): Add argument.
6158 (update_current_target): Update.
6159 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6160 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6161 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target.h (struct target_ops) <to_terminal_inferior>: Add
6167 * target.c (target_terminal_inferior): Add argument.
6168 (update_current_target): Update.
6169 * remote.c (remote_terminal_inferior): Add 'self' argument.
6170 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6171 * inflow.c (terminal_inferior): Add 'self' argument.
6172 * inferior.h (terminal_inferior): Add 'self' argument.
6173 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6174 (go32_terminal_inferior): Add 'self' argument.
6176 2014-02-19 Tom Tromey <tromey@redhat.com>
6178 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6179 (target_terminal_init): Add argument.
6180 * target.c (debug_to_terminal_init): Add argument.
6181 (update_current_target): Update.
6182 * inflow.c (terminal_init_inferior): Add 'self' argument.
6183 * inferior.h (terminal_init_inferior): Add 'self' argument.
6184 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6185 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.h (struct target_ops)
6190 <to_can_accel_watchpoint_condition>: Add argument.
6191 (target_can_accel_watchpoint_condition): Add argument.
6192 * target.c (debug_to_can_accel_watchpoint_condition): Add
6194 (update_current_target): Update.
6195 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6202 (target_region_ok_for_hw_watchpoint): Add argument.
6203 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6204 (default_region_ok_for_hw_watchpoint): Add argument.
6205 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6206 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6208 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6210 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6212 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6214 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6216 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6218 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6219 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6221 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6222 Add 'self' argument.
6224 2014-02-19 Tom Tromey <tromey@redhat.com>
6226 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6228 (target_insert_watchpoint): Add argument.
6229 * target.c (debug_to_insert_watchpoint): Add argument.
6230 (update_current_target): Update.
6231 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6232 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6233 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6234 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6235 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6236 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6238 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6239 (procfs_insert_hw_watchpoint): Add 'self' argument.
6240 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6242 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6244 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6246 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6247 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6249 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6256 (target_remove_watchpoint): Add argument.
6257 * target.c (debug_to_remove_watchpoint): Add argument.
6258 (update_current_target): Update.
6259 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6260 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6261 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6262 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6263 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6264 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6266 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6267 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6269 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6271 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6273 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6274 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6276 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6279 2014-02-19 Tom Tromey <tromey@redhat.com>
6281 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6283 (target_remove_hw_breakpoint): Add argument.
6284 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6285 (update_current_target): Update.
6286 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6287 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6289 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6290 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6292 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6295 2014-02-19 Tom Tromey <tromey@redhat.com>
6297 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6299 (target_insert_hw_breakpoint): Add argument.
6300 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6301 (update_current_target): Update.
6302 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6303 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6305 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6306 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6307 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6309 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6312 2014-02-19 Tom Tromey <tromey@redhat.com>
6314 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6316 (target_can_use_hardware_watchpoint): Add argument.
6317 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6318 (update_current_target): Update.
6319 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6321 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6323 * remote.c (remote_check_watch_resources): Add 'self' argument.
6324 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6325 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6327 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6328 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6330 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6332 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6334 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6336 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6338 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6340 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6341 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6343 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target.h (struct target_ops) <to_post_attach>: Add argument.
6349 (target_post_attach): Add argument.
6350 * target.c (debug_to_post_attach): Add argument.
6351 (update_current_target): Update.
6352 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6353 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6354 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6355 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6356 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6358 2014-02-19 Tom Tromey <tromey@redhat.com>
6360 * windows-nat.c (windows_close): Add 'self' argument.
6361 * tracepoint.c (tfile_close): Add 'self' argument.
6362 * target.h (struct target_ops) <to_close>: Add argument.
6363 * target.c (target_close): Add argument.
6364 (update_current_target): Update.
6365 * remote.c (remote_close): Add 'self' argument.
6366 * remote-sim.c (gdbsim_close): Add 'self' argument.
6367 * remote-mips.c (mips_close): Add 'self' argument.
6368 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6369 * record-full.c (record_full_close): Add 'self' argument.
6370 * record-btrace.c (record_btrace_close): Add 'self' argument.
6371 * monitor.h (monitor_close): Add 'self' argument.
6372 * monitor.c (monitor_close): Add 'self' argument.
6373 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6374 * linux-nat.c (linux_nat_close): Add argument.
6375 * go32-nat.c (go32_close): Add 'self' argument.
6376 * exec.c (exec_close_1): Add 'self' argument.
6377 * ctf.c (ctf_close): Add 'self' argument.
6378 * corelow.c (core_close): Add 'self' argument.
6379 (core_close_cleanup): Update.
6380 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6381 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6383 2014-02-19 Tom Tromey <tromey@redhat.com>
6385 * remote.c (remote_load): New function.
6386 (init_remote_ops): Use it.
6388 2014-02-19 Tom Tromey <tromey@redhat.com>
6390 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6392 * common/linux-btrace.h (linux_supports_btrace): Update.
6393 * remote.c (remote_supports_btrace): Add "self" argument.
6394 * target-delegates.c: Rebuild.
6395 * target.c (target_supports_btrace): Remove.
6396 * target.h (struct target_ops) <to_supports_btrace>: Add
6397 target_ops argument.
6398 (target_supports_btrace): New define.
6400 2014-02-19 Tom Tromey <tromey@redhat.com>
6402 * record-full.c (record_full_beneath_to_resume_ops)
6403 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6404 (record_full_beneath_to_wait)
6405 (record_full_beneath_to_store_registers_ops)
6406 (record_full_beneath_to_store_registers)
6407 (record_full_beneath_to_xfer_partial_ops)
6408 (record_full_beneath_to_xfer_partial)
6409 (record_full_beneath_to_insert_breakpoint_ops)
6410 (record_full_beneath_to_insert_breakpoint)
6411 (record_full_beneath_to_remove_breakpoint_ops)
6412 (record_full_beneath_to_remove_breakpoint)
6413 (record_full_beneath_to_stopped_by_watchpoint)
6414 (record_full_beneath_to_stopped_data_address)
6415 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6416 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6417 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6418 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6419 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6420 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6421 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6422 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6423 (record_full_resume, record_full_wait_1)
6424 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6425 (record_full_store_registers, record_full_xfer_partial)
6426 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6427 (record_full_async, record_full_core_xfer_partial): Use target
6429 * target-delegates.c: Rebuild.
6430 * target.c (current_xfer_partial): Remove.
6431 (update_current_target): Do not INHERIT or de_fault
6432 to_insert_breakpoint, to_remove_breakpoint,
6433 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6434 to_is_async_p, to_async. Do not set to_xfer_partial field.
6435 (default_xfer_partial): Simplify.
6436 (current_xfer_partial): Remove.
6437 (target_wait, target_resume): Simplify.
6438 (find_default_can_async_p, find_default_is_async_p): Update.
6439 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6440 to_xfer_partial, to_stopped_by_watchpoint,
6441 to_stopped_data_address.
6442 (target_store_registers): Simplify.
6443 (forward_target_remove_breakpoint)
6444 (forward_target_insert_breakpoint): Remove.
6445 (target_remove_breakpoint, target_insert_breakpoint)
6446 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6447 * target.h (struct target_ops) <to_resume, to_wait,
6448 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6449 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6450 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6452 (forward_target_remove_breakpoint)
6453 (forward_target_insert_breakpoint): Remove.
6454 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6456 (record_btrace_insert_breakpoint): Delegate directly.
6458 2014-02-19 Tom Tromey <tromey@redhat.com>
6461 * target-delegates.c: New file.
6462 * target.c: Include target-delegates.c.
6463 (init_dummy_target): Call install_dummy_methods.
6464 (complete_target_initialization): Call install_delegators.
6465 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6466 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6467 * make-target-delegates: New file.
6469 2014-02-19 Tom Tromey <tromey@redhat.com>
6471 * record.c (find_record_target): Use find_target_at.
6472 * target.c (find_target_at): New function.
6473 * target.h (find_target_at): Declare.
6475 2014-02-19 Tom Tromey <tromey@redhat.com>
6477 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6479 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6481 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6482 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6484 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6486 * linux-nat.c (save_sigtrap): Update.
6487 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6488 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6489 (linux_nat_close): Update.
6490 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6492 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6494 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6495 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6496 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6497 (tmp_to_async): Add 'ops' argument.
6498 (record_full_stopped_by_watchpoint, record_full_async)
6499 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6501 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6502 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6503 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6504 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6505 (remote_is_async_p, remote_async): Add 'ops' argument.
6506 (remote_stopped_data_address): Update.
6507 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6508 * target.c (update_current_target)
6509 (find_default_can_async_p, find_default_is_async_p): Update.
6510 (init_dummy_target): Update.
6511 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6512 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6513 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6514 (target_can_async_p, target_is_async_p, target_async)
6515 (target_stopped_by_watchpoint): Update.
6517 2014-02-19 Yao Qi <yao@codesourcery.com>
6520 * gdbarch.sh: Remove startup_gdbarch.
6521 * gdbarch.c: Regenerated.
6522 * gdbarch.h: Likewise.
6524 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6526 * rl78-tdep.c (rl78_g10_register_name): New function.
6527 (rl78_return_value): Add g10 support.
6528 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6531 2014-02-17 Doug Evans <xdje42@gmail.com>
6533 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6534 (SUBDIR_GUILE_SRCS): Ditto.
6535 (scm-gsmob.o): Ditto.
6537 2014-02-17 Yao Qi <yao@codesourcery.com>
6539 * gnu-nat.c (ILL_RPC): Declare defined function.
6541 2014-02-17 Yao Qi <yao@codesourcery.com>
6543 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6544 mach_msg_type_number_t.
6545 (gnu_write_inferior): Likewise.
6547 2014-02-17 Yao Qi <yao@codesourcery.com>
6549 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6551 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6552 (inf_validate_procs, inf_signal): Likewise.
6553 (S_exception_raise_request): Likewise.
6554 (do_mach_notify_dead_name): Likewise.
6555 (steal_exc_port): Likewise.
6556 (gnu_read_inferior): Change 'copy_count''s type to
6557 mach_msg_type_number_t.
6558 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6561 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6563 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6564 flag. Adjust all users; in particular...
6565 (gnu_wait): ..., don't decrement its value in here...
6566 (gnu_create_inferior): ..., and instead set the flag in here,
6567 around the startup_inferior call, and call that one with
6568 START_INFERIOR_TRAPS_EXPECTED.
6570 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6571 (ILL_RPC): ... new macro.
6572 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6573 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6574 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6575 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6576 functions with ILL_RPC macro.
6577 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6578 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6579 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6580 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6581 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6582 (S_proc_getlogin_reply, S_proc_getsid_reply)
6583 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6584 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6585 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6586 (S_proc_getnports_reply, S_proc_is_important_reply)
6587 (S_proc_get_code_reply): New stub functions, generated with
6590 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6591 collected the type check structures.
6593 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6595 2014-02-14 Doug Evans <dje@google.com>
6597 * target.c (target_write_partial): Fix result type.
6599 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6601 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6602 the proper offsets to access fpregset_t.
6604 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6606 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6607 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6608 * h8300-tdep.c (setmachinelist): Remove global.
6609 * hppa-tdep.c (hppa_sigtramp): Remove global.
6610 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6611 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6612 * ravenscar-thread.c (update_target_observer): Remove global.
6613 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6615 2014-02-12 Tom Tromey <tromey@redhat.com>
6617 * common/rsp-low.c: Update comments.
6618 * common/rsp-low.h: Update comments.
6620 2014-02-12 Tom Tromey <tromey@redhat.com>
6622 * common/rsp-low.c (convert_ascii_to_int): Remove.
6623 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6625 2014-02-12 Tom Tromey <tromey@redhat.com>
6627 * common/rsp-low.h (unhexify): Don't declare.
6628 * common/rsp-low.c (unhexify): Remove.
6630 2014-02-12 Tom Tromey <tromey@redhat.com>
6632 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6633 * common/rsp-low.c (convert_int_to_ascii): Remove.
6635 2014-02-12 Tom Tromey <tromey@redhat.com>
6637 * common/rsp-low.h (hexify): Don't declare.
6638 * common/rsp-low.c (hexify): Remove.
6640 2014-02-12 Tom Tromey <tromey@redhat.com>
6642 * common/rsp-low.c (hexify): Never take strlen of argument.
6644 2014-02-12 Tom Tromey <tromey@redhat.com>
6646 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6647 * remote.c (extended_remote_run, remote_rcmd)
6648 (remote_download_trace_state_variable, remote_save_trace_data)
6649 (remote_set_trace_notes): Update.
6650 * tracepoint.c (encode_source_string, tfile_write_status)
6651 (tfile_write_uploaded_tsv): Update.
6653 2014-02-12 Tom Tromey <tromey@redhat.com>
6655 * tracepoint.c: Include rsp-low.h.
6656 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6657 * remote.c: Include rsp-low.h.
6658 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6659 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6660 (remote_unescape_input): Move to common/rsp-low.c.
6661 * common/rsp-low.h: New file.
6662 * common/rsp-low.c: New file.
6663 * Makefile.in (SFILES): Add common/rsp-low.c.
6664 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6665 (COMMON_OBS): Add rsp-low.o.
6666 (rsp-low.o): New target.
6668 2014-02-12 Tom Tromey <tromey@redhat.com>
6670 * utils.h: Include print-utils.h.
6671 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6672 (int_string, core_addr_to_string, core_addr_to_string_nz)
6673 (hex_string, hex_string_custom): Don't declare.
6674 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6675 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6676 (hex_string_custom, int_string, core_addr_to_string)
6677 (core_addr_to_string_nz, host_address_to_string): Move to
6678 common/print-utils.c.
6679 * common/print-utils.h: New file.
6680 * common/print-utils.c: New file
6681 * Makefile.in (SFILES): Add common/print-utils.c.
6682 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6683 (COMMON_OBS): Add print-utils.o.
6684 (print-utils.o): New target.
6686 2014-02-12 Tom Tromey <tromey@redhat.com>
6688 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6690 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6692 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6694 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6696 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6697 if a PT_IO ptrace request returns sucessfully but indicates that 0
6698 bytes were transferred.
6700 2014-02-12 Pedro Alves <palves@redhat.com>
6701 Kevin Buettner <kevinb@redhat.com>
6703 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6704 TYPE_INSTANCE_FLAG_CODE_SPACE.
6706 2014-02-12 Pedro Alves <palves@redhat.com>
6708 * h8300-tdep.c (pseudo_from_raw_register)
6709 (raw_from_pseudo_register): New functions.
6710 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6713 2014-02-12 Pedro Alves <palves@redhat.com>
6715 * h8300-tdep.c (h8300_register_sim_regno): New function.
6716 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6717 gdbarch_register_sim_regno hook.
6719 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6721 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6723 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6725 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6727 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6729 * obsd-tdep.h (obsd_init_abi): New prototype.
6730 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6731 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6732 (obsd_init_abi): New functions.
6733 * i386obsd-tdep.c: Include "obsd-tdep.h".
6734 (i386obsd_init_abi): Call obsd_init_abi.
6735 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6736 (amd64obsd_init_abi): Call obsd_init_abi.
6737 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6738 obsd-tdep.c to gdb_target_obs.
6740 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6742 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6743 double float arguments to 16-byte in the argument slots.
6745 2014-02-11 Doug Evans <xdje42@gmail.com>
6747 * configure.ac: Don't crash if pkg-config is not found and guile
6748 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6750 * configure: Regenerate.
6752 2014-02-11 Yao Qi <yao@codesourcery.com>
6754 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6755 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6756 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6757 * gnu-nat.c (gnu_xfer_memory): Likewise.
6758 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6759 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6760 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6761 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6763 2014-02-11 Yao Qi <yao@codesourcery.com>
6765 * target.h (enum target_xfer_error): Rename to ...
6766 (enum target_xfer_status): ... it. New. All users updated.
6767 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6769 (TARGET_XFER_STATUS_ERROR_P): New macro.
6770 (target_xfer_error_to_string): Remove declaration.
6771 (target_xfer_status_to_string): Declare.
6772 (target_xfer_partial_ftype): Adjust it.
6773 (struct target_ops) <to_xfer_partial>: Return
6774 target_xfer_status. Add argument xfered_len. Update
6776 * target.c (target_xfer_error_to_string): Rename to ...
6777 (target_xfer_status_to_string): ... it. New. All callers
6779 (target_read_live_memory): Likewise. Call target_xfer_partial
6780 instead of target_read.
6781 (memory_xfer_live_readonly_partial): Return
6782 target_xfer_status. Add argument xfered_len.
6783 (raw_memory_xfer_partial): Likewise.
6784 (memory_xfer_partial_1): Likewise.
6785 (memory_xfer_partial): Likewise.
6786 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6787 properly. Update debug message.
6788 (default_xfer_partial, current_xfer_partial): Likewise.
6789 (target_write_partial): Likewise.
6790 (target_read_partial): Likewise. All callers updated.
6791 (read_whatever_is_readable): Likewise.
6792 (target_write_with_progress): Likewise.
6793 (target_read_alloc_1): Likewise.
6795 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6796 * auxv.c (procfs_xfer_auxv): Likewise.
6797 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6798 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6799 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6800 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6801 * corefile.c (read_memory): Adjust.
6802 * corelow.c (core_xfer_partial): Likewise.
6803 * ctf.c (ctf_xfer_partial): Likewise.
6804 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6806 (darwin_xfer_partial): Likewise.
6807 * exec.c (section_table_xfer_memory_partial): Likewise. All
6809 (exec_xfer_partial): Likewise.
6810 * exec.h (section_table_xfer_memory_partial): Update
6812 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6814 (gnu_xfer_partial): Likewise.
6815 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6816 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6817 (ia64_hpux_xfer_solib_got): Likewise.
6818 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6819 type of 'partial_len' to ULONGEST.
6820 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6821 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6822 (linux_nat_xfer_partial): Likewise.
6823 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6824 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6825 * monitor.c (monitor_xfer_memory): Likewise.
6826 (monitor_xfer_partial): Likewise.
6827 * procfs.c (procfs_xfer_partial): Likewise.
6828 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6829 * record-full.c (record_full_xfer_partial): Likewise.
6830 (record_full_core_xfer_partial): Likewise.
6831 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6832 (gdbsim_xfer_partial): Likewise.
6833 * remote.c (remote_write_bytes_aux): Likewise. All callers
6835 (remote_write_bytes, remote_read_bytes): Likewise. All
6837 (remote_flash_erase): Likewise. All callers updated.
6838 (remote_write_qxfer): Likewise. All callers updated.
6839 (remote_read_qxfer): Likewise. All callers updated.
6840 (remote_xfer_partial): Likewise.
6841 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6842 (rs6000_xfer_shared_libraries): Likewise.
6843 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6844 (sol_thread_xfer_partial): Likewise.
6845 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6846 (sparc_xfer_partial): Likewise.
6847 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6849 (spu_xfer_partial): Likewise.
6850 * spu-multiarch.c (spu_xfer_partial): Likewise.
6851 * tracepoint.c (tfile_xfer_partial): Likewise.
6852 * windows-nat.c (windows_xfer_memory): Likewise.
6853 (windows_xfer_shared_libraries): Likewise.
6854 (windows_xfer_partial): Likewise.
6855 * valprint.c: Replace 'target_xfer_error' with
6856 'target_xfer_status' in comments.
6858 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6860 Checked in by Joel Brobecker <brobecker@adacore.com>.
6861 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6863 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6865 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6866 function parameters.
6868 2014-02-10 Will Newton <will.newton@linaro.org>
6870 * elfread.c (elf_rel_plt_read): Look for a .got section if
6871 looking up .got.plt fails.
6872 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6873 on address passed to elf_gnu_ifunc_record_cache.
6874 (elf_gnu_ifunc_resolve_addr): Likewise.
6875 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6877 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6879 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6880 (X_RETTURN): New macro.
6881 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6883 * sparc64-tdep.c (sparc64_init_abi): Hook
6884 sparc_in_function_epilogue_p.
6886 2014-02-10 Gary Benson <gbenson@redhat.com>
6888 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6889 Rename name_matcher to symbol_matcher.
6891 2014-02-10 Gary Benson <gbenson@redhat.com>
6893 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6894 Use expand_symtabs_file_matcher_ftype and
6895 expand_symtabs_symbol_matcher_ftype.
6897 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6899 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6900 (struct ada_symbol_cache): New.
6901 (ada_free_symbol_cache): Forward declare.
6902 (struct ada_pspace_data): New.
6903 (ada_pspace_data_handle): New static global.
6904 (get_ada_pspace_data, ada_pspace_data_cleanup)
6905 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6906 (cache_space, cache): Delete, now folded inside struct
6908 (ada_get_symbol_cache): New function.
6909 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6911 (_initialize_ada_language): Remove initialization of cache_space.
6912 Move call to observer_attach_inferior_exit up, grouping it
6913 with the other observer registrations inside this function.
6914 Rename command to be more general. Add call to
6915 register_program_space_data_with_cleanup.
6917 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6919 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6920 ada_new_objfile_observer.
6921 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6922 (_initialize_tasks): Update uses of ada_new_objfile_observer
6923 and ada_tasks_normal_stop_observer.
6925 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6927 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6928 returned by the 'Length attribute to integer.
6930 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6932 * ada-lang.c (_initialize_ada_language): Initialize
6933 cache_space obstack.
6935 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c (HASH_SIZE): New macro.
6938 (struct cache_entry): New type.
6939 (cache_space, cache): New static globals.
6940 (ada_clear_symbol_cache, find_entry): New functions.
6941 (lookup_cached_symbol, cache_symbol): Implement.
6942 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6943 (_initialize_ada_language): Attach ada_new_objfile_observer
6944 and ada_free_objfile_observer.
6946 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6948 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6949 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6950 struct block * parameter.
6951 (ada_lookup_symbol_list_worker): Constify local variable "block".
6952 Remove cast which is no longer necessary.
6954 2014-02-10 Doug Evans <xdje42@gmail.com>
6956 Add Guile as an extension language.
6957 * NEWS: Mention Guile scripting.
6958 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6959 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6960 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6961 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6962 (CLIBS): Add GUILE_LIBS.
6963 (install-guile): New rule.
6964 (guile.o): New rule.
6965 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6966 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6967 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6968 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6969 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6970 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6971 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6972 * configure.ac: New option --with-guile.
6973 * configure: Regenerate.
6974 * config.in: Regenerate.
6975 * auto-load.c: Remove #include "python/python.h". Add #include
6976 "gdb/section-scripts.h".
6977 (source_section_scripts): Handle Guile scripts.
6978 (_initialize_auto_load): Add name of Guile objfile script to
6979 scripts-directory help text.
6980 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6981 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6982 (struct breakpoint): New member scm_bp_object.
6983 * defs.h (enum command_control_type): New value guile_control.
6984 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6986 (show_user): Update comment.
6987 (_initialize_cli_cmds): Update help text for "show user". Update help
6988 text for max-user-call-depth.
6989 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6991 (multi_line_command_p): Add guile_control.
6992 (print_command_lines): Handle guile_control.
6993 (execute_control_command, recurse_read_control_structure): Ditto.
6994 (process_next_line): Recognize "guile" commands.
6995 * disasm.c (gdb_disassemble_info): Make non-static.
6996 * disasm.h: #include "dis-asm.h".
6997 (struct gdbarch): Add forward decl.
6998 (gdb_disassemble_info): Declare.
6999 * extension.c: #include "guile/guile.h".
7000 (extension_languages): Add guile.
7001 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7002 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7003 * gdbtypes.c (get_unsigned_type_max): New function.
7004 (get_signed_type_minmax): New function.
7005 * gdbtypes.h (get_unsigned_type_max): Declare.
7006 (get_signed_type_minmax): Declare.
7007 * guile/README: New file.
7008 * guile/guile-internal.h: New file.
7009 * guile/guile.c: New file.
7010 * guile/guile.h: New file.
7011 * guile/scm-arch.c: New file.
7012 * guile/scm-auto-load.c: New file.
7013 * guile/scm-block.c: New file.
7014 * guile/scm-breakpoint.c: New file.
7015 * guile/scm-disasm.c: New file.
7016 * guile/scm-exception.c: New file.
7017 * guile/scm-frame.c: New file.
7018 * guile/scm-gsmob.c: New file.
7019 * guile/scm-iterator.c: New file.
7020 * guile/scm-lazy-string.c: New file.
7021 * guile/scm-math.c: New file.
7022 * guile/scm-objfile.c: New file.
7023 * guile/scm-ports.c: New file.
7024 * guile/scm-pretty-print.c: New file.
7025 * guile/scm-safe-call.c: New file.
7026 * guile/scm-string.c: New file.
7027 * guile/scm-symbol.c: New file.
7028 * guile/scm-symtab.c: New file.
7029 * guile/scm-type.c: New file.
7030 * guile/scm-utils.c: New file.
7031 * guile/scm-value.c: New file.
7032 * guile/lib/gdb.scm: New file.
7033 * guile/lib/gdb/boot.scm: New file.
7034 * guile/lib/gdb/experimental.scm: New file.
7035 * guile/lib/gdb/init.scm: New file.
7036 * guile/lib/gdb/iterator.scm: New file.
7037 * guile/lib/gdb/printing.scm: New file.
7038 * guile/lib/gdb/types.scm: New file.
7039 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7040 (VPATH): Add $(GUILE_SRCDIR).
7041 (GUILE_DIR): New variable.
7042 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7043 (all): Add stamp-guile dependency.
7044 (stamp-guile): New rule.
7045 (clean-guile, install-guile, uninstall-guile): New rules.
7046 (install-only): Add install-guile dependency.
7047 (uninstall): Add uninstall-guile dependency.
7048 (clean): Add clean-guile dependency.
7050 2014-02-09 Doug Evans <xdje42@gmail.com>
7052 Revert this patch (which I approved, mea culpa).
7054 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7056 * Makefile.in (all-lib): Remove.
7057 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7059 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 Fix Python stack corruption.
7062 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7065 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7067 * Makefile.in (all-lib): Remove.
7068 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7070 2014-02-07 Doug Evans <dje@google.com>
7072 * extension-priv.h (extension_language_script_ops): Add comment.
7073 (extension_language_ops): Add comment.
7074 (active_ext_lang_state): Fix typo in comment.
7076 2014-02-07 Pedro Alves <palves@redhat.com>
7078 PR breakpoints/16292
7079 * infrun.c (handle_signal_stop) <signal arrives while stepping
7080 over a breakpoint>: Switch back to the stepping thread.
7082 2014-02-07 Yao Qi <yao@codesourcery.com>
7084 * target.c (target_xfer_partial): Return zero if LEN is zero.
7086 2014-02-07 Yao Qi <yao@codesourcery.com>
7088 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7089 (ld_so_xfer_auxv): Likewise.
7090 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7091 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7092 * corelow.c (core_xfer_partial): Likewise.
7093 * ctf.c (ctf_xfer_partial): Likewise.
7094 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7095 (darwin_xfer_partial): Likewise.
7096 * exec.c (exec_xfer_partial): Likewise.
7097 * gnu-nat.c (gnu_xfer_partial): Likewise.
7098 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7099 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7100 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7101 * linux-nat.c (linux_xfer_siginfo): Likewise.
7102 (linux_proc_xfer_spu): Likewise.
7103 * procfs.c (procfs_xfer_partial): Likewise.
7104 * record-full.c (record_full_xfer_partial): Likewise.
7105 (record_full_core_xfer_partial): Likewise.
7106 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7107 * remote.c (remote_write_qxfer): Likewise.
7108 (remote_write_qxfer, remote_read_qxfer): Likewise.
7109 (remote_xfer_partial): Likewise.
7110 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7111 (rs6000_xfer_shared_libraries): Likewise.
7112 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7113 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7114 (spu_xfer_partial): Likewise.
7115 * target.c (memory_xfer_partial_1): Likewise.
7116 * tracepoint.c (tfile_xfer_partial): Likewise.
7117 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7118 (windows_xfer_partial): Likewise.
7120 2014-02-07 Yao Qi <yao@codesourcery.com>
7122 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7124 (core_xfer_shared_libraries_aix): Likewise.
7125 * gdbarch.c, gdbarch.h: Regenerated.
7126 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7127 ULONGEST. Change 'len_avail' type to ULONGEST.
7128 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7129 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7131 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7133 2014-02-07 Yao Qi <yao@codesourcery.com>
7135 * corefile.c (memory_error): Get 'exception' from ERR and pass
7136 'exception' to throw_error.
7138 2014-02-06 Doug Evans <xdje42@gmail.com>
7140 * configure.ac (libpython checking): Remove all but python.o from
7141 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7142 * configure: Regenerate.
7144 * Makefile.in (SFILES): Add extension.c.
7145 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7146 (COMMON_OBS): Add extension.o.
7147 * extension.h: New file.
7148 * extension-priv.h: New file.
7149 * extension.c: New file.
7151 * python/python-internal.h: #include "extension.h".
7152 (gdbpy_auto_load_enabled): Declare.
7153 (gdbpy_apply_val_pretty_printer): Declare.
7154 (gdbpy_apply_frame_filter): Declare.
7155 (gdbpy_preserve_values): Declare.
7156 (gdbpy_breakpoint_cond_says_stop): Declare.
7157 (gdbpy_breakpoint_has_cond): Declare.
7158 (void source_python_script_for_objfile): Delete.
7159 * python/python.c: #include "extension-priv.h".
7160 Delete inclusion of "observer.h".
7161 (extension_language_python): Moved here and renamed from
7162 script_language_python in py-auto-load.c.
7163 Redefined to be of type extension_language_defn.
7164 (python_extension_script_ops): New global.
7165 (python_extension_ops): New global.
7166 (struct python_env): New member previous_active.
7167 (restore_python_env): Call restore_active_ext_lang.
7168 (ensure_python_env): Call set_active_ext_lang.
7169 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7171 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7173 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7175 (gdbpy_eval_from_control_command): Renamed from
7176 eval_python_from_control_command, made static. New arg extlang.
7177 (gdbpy_source_script) Renamed from source_python_script, made static.
7179 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7180 result to int. New arg extlang.
7181 (gdbpy_source_objfile_script): Renamed from
7182 source_python_script_for_objfile, made static. New arg extlang.
7183 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7184 static. New args extlang, extlang_printers. Change result type to
7186 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7187 static. New arg extlang. Rename arg printers to extlang_printers
7188 and change type to ext_lang_type_printers *.
7189 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7190 static. Replace argument arg with extlang, extlang_printers.
7191 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7192 (!HAVE_PYTHON, source_python_script): Delete.
7193 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7194 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7195 (!HAVE_PYTHON, start_type_printers): Delete.
7196 (!HAVE_PYTHON, apply_type_printers): Delete.
7197 (!HAVE_PYTHON, free_type_printers): Delete.
7198 (_initialize_python): Delete call to observer_attach_before_prompt.
7199 (finalize_python): Set/restore active extension language.
7200 (gdbpy_finish_initialization) Renamed from
7201 finish_python_initialization, made static. New arg extlang.
7202 (gdbpy_initialized): New function.
7203 * python/python.h: #include "extension.h". Delete #include
7204 "value.h", "mi/mi-cmds.h".
7205 (extension_language_python): Declare.
7206 (GDBPY_AUTO_FILE_NAME): Delete.
7207 (enum py_bt_status): Moved to extension.h and renamed to
7209 (enum frame_filter_flags): Moved to extension.h.
7210 (enum py_frame_args): Moved to extension.h and renamed to
7211 ext_lang_frame_args.
7212 (finish_python_initialization): Delete.
7213 (eval_python_from_control_command): Delete.
7214 (source_python_script): Delete.
7215 (apply_val_pretty_printer): Delete.
7216 (apply_frame_filter): Delete.
7217 (preserve_python_values): Delete.
7218 (gdbpy_script_language_defn): Delete.
7219 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7220 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7222 * auto-load.c: #include "extension.h".
7223 (GDB_AUTO_FILE_NAME): Delete.
7224 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7225 (script_language_gdb): Delete, moved to extension.c and renamed to
7226 extension_language_gdb.
7227 (source_gdb_script_for_objfile): Delete.
7228 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7229 (loaded_script): Change type of language member to
7230 struct extension_language_defn *.
7231 (init_loaded_scripts_info): Initialize
7232 unsupported_script_warning_printed.
7233 (maybe_add_script): Make static. Change type of language arg to
7234 struct extension_language_defn *.
7235 (clear_section_scripts): Reset unsupported_script_warning_printed.
7236 (auto_load_objfile_script_1): Rewrite to use extension language API.
7237 (auto_load_objfile_script): Make public. Remove support-compiled-in
7238 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7239 (source_section_scripts): Rewrite to use extension language API.
7240 (load_auto_scripts_for_objfile): Rewrite to use
7241 auto_load_scripts_for_objfile.
7242 (collect_matching_scripts_data): Change type of language member to
7243 struct extension_language_defn *.
7244 (auto_load_info_scripts): Change type of language arg to
7245 struct extension_language_defn *.
7246 (unsupported_script_warning_print): New function.
7247 (script_not_found_warning_print): Make static.
7248 (_initialize_auto_load): Rewrite construction of scripts-directory
7250 * auto-load.h (struct objfile): Add forward decl.
7251 (struct script_language): Delete.
7252 (struct auto_load_pspace_info): Add forward decl.
7253 (struct extension_language_defn): Add forward decl.
7254 (maybe_add_script): Delete.
7255 (auto_load_objfile_script): Declare.
7256 (script_not_found_warning_print): Delete.
7257 (auto_load_info_scripts): Update prototype.
7258 (auto_load_gdb_scripts_enabled): Declare.
7259 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7260 auto_load_python_scripts_enabled and made public.
7261 (script_language_python): Delete, moved to python.c.
7262 (gdbpy_script_language_defn): Delete.
7263 (info_auto_load_python_scripts): Update to use
7264 extension_language_python.
7266 * breakpoint.c (condition_command): Replace call to
7267 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7268 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7269 with call to breakpoint_ext_lang_cond_says_stop.
7270 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7271 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7272 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7273 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7275 (local_setattro): Print name of extension language with existing
7278 * valprint.c (val_print, value_print): Update to call
7279 apply_ext_lang_val_pretty_printer.
7280 * cp-valprint.c (cp_print_value): Update call to
7281 apply_ext_lang_val_pretty_printer.
7282 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7283 (gdbpy_apply_val_pretty_printer): Renamed from
7284 apply_val_pretty_printer. New arg extlang.
7285 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7287 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7288 extension language API.
7289 * cli/cli-script.c (execute_control_command): Update to call
7290 eval_ext_lang_from_control_command.
7292 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7293 enum ext_lang_bt_status values. Update call to
7294 apply_ext_lang_frame_filter.
7295 (mi_cmd_stack_list_locals): Ditto.
7296 (mi_cmd_stack_list_args): Ditto.
7297 (mi_cmd_stack_list_variables): Ditto.
7298 * mi/mi-main.c: Delete #include "python/python-internal.h".
7299 Add #include "extension.h".
7300 (mi_cmd_list_features): Replace reference to python internal variable
7301 gdb_python_initialized with call to ext_lang_initialized_p.
7303 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7304 Update to use enum ext_lang_frame_args. Update to call
7305 apply_ext_lang_frame_filter.
7306 * python/py-framefilter.c (extract_sym): Update to use enum
7308 (extract_value, py_print_type, py_print_value): Ditto.
7309 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7310 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7311 (py_print_frame): Ditto.
7312 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7313 New arg extlang. Update to use enum ext_lang_bt_status.
7315 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7316 finish_python_initialization. Replace with call to
7317 finish_ext_lang_initialization.
7319 * typeprint.c (do_free_global_table): Update to call
7320 free_ext_lang_type_printers.
7321 (create_global_typedef_table): Update to call
7322 start_ext_lang_type_printers.
7323 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7324 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7325 (type_print_options): Change type of global_printers from "void *"
7326 to "struct ext_lang_type_printers *".
7328 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7329 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7330 (gdbpy_preserve_values): Renamed from preserve_python_values.
7332 (!HAVE_PYTHON, preserve_python_values): Delete.
7334 * utils.c (quit_flag): Delete, moved to extension.c.
7335 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7338 * eval.c: Delete #include "python/python.h".
7339 * main.c: Delete #include "python/python.h".
7341 * defs.h: Update comment.
7343 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7347 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7349 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7352 2014-02-05 Yao Qi <yao@codesourcery.com>
7354 * remote.c (remote_pass_signals): Remove local 'buf' and use
7356 (remote_program_signals): Likewise.
7358 2014-02-05 Yao Qi <yao@codesourcery.com>
7360 * ctf.c: Include "inferior.h" and "gdbthread.h".
7361 (CTF_PID): A new macro.
7362 (ctf_open): Call inferior_appeared and add_thread_silent.
7363 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7364 (ctf_thread_alive): New function.
7365 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7367 2014-02-05 Yao Qi <yao@codesourcery.com>
7371 2013-05-24 Yao Qi <yao@codesourcery.com>
7373 * tracepoint.c (TFILE_PID): Remove.
7374 (tfile_open): Don't add thread and inferior.
7375 (tfile_close): Don't set 'inferior_ptid'. Don't call
7376 exit_inferior_silent.
7377 (tfile_thread_alive): Remove.
7378 (init_tfile_ops): Don't set field 'to_thread_alive' of
7381 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7383 * remote.c (remote_start_remote): Call remote_check_symbols even
7384 if only symbol-file (not file) has been given.
7386 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7388 * gdbarch.sh (skip_entrypoint): New callback.
7389 * gdbarch.c, gdbarch.h: Regenerate.
7390 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7391 * infrun.c (fill_in_stop_func): Likewise.
7392 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7393 (ppc_elfv2_elf_make_msymbol_special): New function.
7394 (ppc_elfv2_skip_entrypoint): Likewise.
7395 (ppc_linux_init_abi): Install them for ELFv2.
7397 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7399 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7400 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7401 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7402 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7403 structures returned in GPRs.
7405 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7407 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7408 offset to the stack parameter list for the ELFv2 ABI.
7410 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7412 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7413 set_gdbarch_convert_from_func_ptr_addr and
7414 set_gdbarch_elf_make_msymbol_special for ELFv1.
7415 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7416 function descriptors on ELFv1.
7417 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7418 set up r12 at function entry.
7420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7422 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7423 (struct gdbarch_tdep): New member elf_abi.
7425 * rs6000-tdep.c: Include "elf/ppc64.h".
7426 (rs6000_gdbarch_init): Detect ELF ABI version.
7428 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7431 within a register pair holding a DFP 128-bit value on little-endian.
7432 (ppc64_sysv_abi_return_value_base): Likewise.
7433 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7434 (dfp_pseudo_register_write): Likewise.
7436 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7438 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7439 offset on little-endian when passing _Decimal32.
7440 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7442 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7444 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7445 of the overlapped FP register within the VSX register on little-
7447 (efpr_pseudo_register_write): Likewise.
7449 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7451 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7452 offset on little-endian when passing small structures.
7454 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7456 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7457 (struct ppc64_sysv_argpos): New data structure.
7458 (ppc64_sysv_abi_push_float): Remove.
7459 (ppc64_sysv_abi_push_val): New function.
7460 (ppc64_sysv_abi_push_integer): Likewise.
7461 (ppc64_sysv_abi_push_freg): Likewise.
7462 (ppc64_sysv_abi_push_vreg): Likewise.
7463 (ppc64_sysv_abi_push_param): Likewise.
7464 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7465 (ppc64_sysv_abi_return_value_base): New function.
7466 (ppc64_sysv_abi_return_value): Refactor to use it.
7468 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7470 * NEWS: Document new target powerpc64le-*-linux*.
7472 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7474 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7475 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7477 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7478 register set used in ELF core dumps. Add floating-point register set.
7480 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7482 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7483 dwarf2_to_gdb[] table using symbolic constants. Adjust
7484 penultimate entry from number representing the PC register
7485 to symbolic constant representing the MDR register. Add
7486 constant for the PC register to the end of the table.
7488 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7490 * bsd-kvm.c: Include <sys/param.h>
7492 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7494 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7496 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7498 * ada-lang.h (clear_ada_sym_cache): Delete.
7500 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7502 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7504 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7506 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7507 the sigreturn register save area only if the syscall is
7510 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7512 * valops.c (value_slice): Minor reformatting.
7514 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7516 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7518 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7520 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7522 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7523 (ada_ignore_descriptive_types_p): New static global.
7524 (find_parallel_type_by_descriptive_type): Return immediately
7525 if ada_ignore_descriptive_types_p is set.
7526 (_initialize_ada_language): Register new commands "maintenance
7527 set ada", "maintenance show ada", "maintenance set ada
7528 ignore-descriptive-types" and "maintenance show ada
7529 ignore-descriptive-types".
7530 * NEWS: Add entry for new "maint ada set/show
7531 ignore-descriptive-types" commands.
7533 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7535 * record-btrace.c (record_btrace_close): Call btrace_teardown
7538 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7540 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7543 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7545 * ada-typeprint (type_is_full_subrange_of_target_type):
7547 (print_range): Add parameter bounds_prefered_p. If not set,
7548 try printing range types using the name of their base type.
7549 (print_range_type): Add parameter bounds_prefered_p.
7550 Use it in call to print_range.
7551 (print_array_type, ada_print_type): Update calls to print_range
7552 and print_range_type.
7554 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7556 * ada-typeprint.c (print_array_type, print_choices, print_range)
7557 (print_range_bound, print_dynamic_range_bound, print_range_type):
7560 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7562 * ada-typeprint.c (print_range): Add missing empty line
7563 after local declaration.
7565 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7567 * ada-valprint.c (print_optional_low_bound): Get index_type's
7568 target type for as long as it is a TYPE_CODE_RANGE.
7570 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7572 * procfs.c (procfs_make_note_section): Remove assertion and
7575 2014-01-24 Yao Qi <yao@codesourcery.com>
7577 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7578 * corelow.c (get_core_siginfo): Likewise.
7580 2014-01-24 Yao Qi <yao@codesourcery.com>
7582 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7583 ULONGEST. Don't check 'len' is negative.
7584 (remote_write_bytes): Change type of 'len' to ULONGEST.
7586 2014-01-23 Tom Tromey <tromey@redhat.com>
7589 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7590 Handle exception from frame.block.
7591 (FrameVars.fetch_frame_locals): Likewise.
7593 2014-01-23 Tom Tromey <tromey@redhat.com>
7596 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7597 on a NULL pointer. Move "goto error" to correct place.
7599 2014-01-23 Tom Tromey <tromey@redhat.com>
7602 * python/py-framefilter.c (apply_frame_filter): Call
7603 ensure_python_env after computing gdbarch.
7605 2014-01-23 Yao Qi <yao@codesourcery.com>
7607 * target.c (raw_memory_xfer_partial): Change argument type
7608 from void * to gdb_byte *.
7609 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7611 2014-01-22 Doug Evans <dje@google.com>
7613 New gdbserver option --debug-format=timestamp.
7616 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7618 * syscalls/s390x-linux.xml: New file.
7619 * syscalls/s390-linux.xml: New file.
7620 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7621 (XML_SYSCALL_FILENAME_S390X): Likewise.
7622 (op_svc): New enum value for SVC opcode.
7623 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7624 (s390_linux_get_syscall_number): New function.
7625 (s390_gdbarch_init): Register '*get_syscall_number' and the
7626 syscall xml file name.
7627 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7628 "s390-linux.xml" and "s390x-linux.xml".
7629 * NEWS: Announce new feature.
7631 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7633 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7635 2014-01-22 Pedro Alves <palves@redhat.com>
7637 * xtensa-config.c: Include defs.h.
7639 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7641 * common/common-utils.h: Add "ARI:" comment beside __func__
7644 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7646 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7647 documentation a bit.
7649 2014-01-21 Roland McGrath <mcgrathr@google.com>
7651 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7652 * configure: Regenerate.
7653 * aclocal.m4: Regenerate.
7654 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7655 New substituted variables.
7656 (install-strip): New target.
7657 (INSTALL_SCRIPT): New substituted variable.
7658 (FLAGS_TO_PASS): Add it.
7659 (install-only): Use $(INSTALL_SCRIPT) rather than
7660 $(INSTALL_PROGRAM) for gcore.
7662 2014-01-20 Tom Tromey <tromey@redhat.com>
7664 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7667 2014-01-20 Tom Tromey <tromey@redhat.com>
7669 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7670 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7671 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7672 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7673 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7674 (struct cmd_list_element) <flags>: Remove.
7675 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7676 doc_allocated>: New fields.
7677 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7679 * maint.c (maintenance_do_deprecate): Update.
7680 * top.c (execute_command): Update.
7682 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7684 * xtensa-linux-nat.c: Include asm/ptrace.h.
7686 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7688 * Makefile.in (SFILES): Add d-support.c.
7689 (COMMON_OBS): Add d-support.o.
7690 * d-lang.h (d_parse_symbol): Add comment, now defined in
7692 * d-lang.c (parse_call_convention)
7693 (parse_attributes, parse_function_types)
7694 (parse_function_args, parse_type, parse_identifier)
7695 (call_convention_p, d_parse_symbol): Move functions to ...
7696 * d-support.c: ... New file.
7698 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7700 * d-lang.h (d_parse_symbol): Add declaration.
7701 * d-lang.c (extract_identifiers)
7702 (extract_type_info): Remove functions.
7703 (parse_call_convention, parse_attributes)
7704 (parse_function_types, parse_function_args)
7705 (parse_type, parse_identifier, call_convention_p)
7706 (d_parse_symbol): New functions.
7707 (d_demangle): Use d_parse_symbol to demangle D symbols.
7709 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7711 * d-lang.h (struct builtin_d_type): New data type.
7712 (builtin_d_type): Add declaration.
7713 * d-lang.c (d_language_arch_info, build_d_types)
7714 (builtin_d_type): New functions.
7715 (enum d_primitive_types): New data type.
7716 (d_language_defn): Change c_language_arch_info to
7717 d_language_arch_info.
7718 (d_type_data): New static variable.
7719 (_initialize_d_language): Initialize d_type_data.
7721 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7723 * d-lang.h (d_main_name): Add declaration.
7724 * d-lang.c (d_main_name): New function.
7725 * symtab.c (find_main_name): Add call to d_main_name.
7727 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7729 * d-lang.c (d_language_defn): Change macro_expansion_c to
7732 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7734 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7736 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7738 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7739 gdb_exception" declaration.
7740 * remote.c (getpkt_or_notif_sane): Likewise.
7742 2014-01-17 Doug Evans <dje@google.com>
7744 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7745 function, contents of dirnames_to_char_ptr_vec_append moved here.
7746 (delim_string_to_char_ptr_vec): New function.
7747 (dirnames_to_char_ptr_vec_append): Rewrite.
7748 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7750 2014-01-17 Doug Evans <dje@google.com>
7752 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7754 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7755 #include "common-utils.h".
7756 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7757 * common/vec.h (VEC_ASSERT_PASS): Update.
7758 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7759 (MACH_CHECK_ERROR): Update.
7761 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7763 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7765 * gdbarch.h: Regenerate.
7767 2014-01-16 Tom Tromey <tromey@redhat.com>
7769 * value.c (struct value) <regnum>: Move earlier.
7771 2014-01-16 Tom Tromey <tromey@redhat.com>
7773 * remote.c (extended_remote_create_inferior): Rename from
7774 extended_remote_create_inferior_1. Add "ops" argument. Remove
7777 2014-01-16 Pedro Alves <palves@redhat.com>
7779 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7780 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7783 2014-01-16 Doug Evans <dje@google.com>
7785 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7789 * btrace.h (btrace_thread_flag): New.
7790 (struct btrace_thread_info) <flags>: New.
7791 * record-btrace.c (record_btrace_resume_thread)
7792 (record_btrace_find_thread_to_move, btrace_step_no_history)
7793 (btrace_step_stopped, record_btrace_start_replaying)
7794 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7795 (record_btrace_find_resume_thread): New.
7796 (record_btrace_resume, record_btrace_wait): Extend.
7797 (record_btrace_can_execute_reverse): New.
7798 (record_btrace_open): Fail in non-stop mode.
7799 (record_btrace_set_replay): Split into this, ...
7800 (record_btrace_stop_replaying): ... this, ...
7801 (record_btrace_clear_histories): ... and this.
7802 (init_record_btrace_ops): Init to_can_execute_reverse.
7803 * NEWS: Announce it.
7805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7807 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7808 (forward_target_decr_pc_after_break)
7809 (target_decr_pc_after_break): New.
7810 * target.c (forward_target_decr_pc_after_break)
7811 (target_decr_pc_after_break): New.
7812 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7813 instead of gdbarch_decr_pc_after_break.
7814 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7815 instead of gdbarch_decr_pc_after_break.
7816 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7817 instead of gdbarch_decr_pc_after_break.
7818 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7819 instead of gdbarch_decr_pc_after_break.
7820 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7821 instead of gdbarch_decr_pc_after_break.
7822 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7823 instead of gdbarch_decr_pc_after_break.
7825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7827 * btrace.c: Include regcache.h.
7828 (btrace_add_pc): New.
7829 (btrace_enable): Call btrace_add_pc.
7830 (btrace_is_empty): New.
7831 * btrace.h (btrace_is_empty): New.
7832 * record-btrace.c (require_btrace, record_btrace_info): Call
7835 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7837 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7838 Support delta reads.
7839 (linux_disable_btrace): Change return type.
7840 * common/linux-btrace.h (linux_read_btrace): Change parameters
7841 and return type to allow error reporting. Update users.
7842 (linux_disable_btrace): Change return type. Update users.
7843 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7845 (btrace_error): New.
7846 (btrace_block) <begin>: Comment on BEGIN == 0.
7847 * btrace.c (btrace_compute_ftrace): Start from the end of
7849 (btrace_stitch_trace, btrace_clear_history): New.
7850 (btrace_fetch): Read delta trace, return if replaying.
7851 (btrace_clear): Move clear history code to btrace_clear_history.
7852 (parse_xml_btrace): Throw an error if parsing failed.
7853 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7854 and return type to allow error reporting.
7855 (target_read_btrace): Change parameters and return type to allow
7857 * target.c (target_read_btrace): Update.
7858 * remote.c (remote_read_btrace): Support delta reads. Pass
7860 * NEWS: Announce it.
7862 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7864 * record.h (record_btrace_frame_unwind)
7865 (record_btrace_tailcall_frame_unwind): New declarations.
7866 * dwarf2-frame: Include record.h
7867 (dwarf2_frame_cfa): Throw an error for btrace frames.
7868 * record-btrace.c: Include hashtab.h.
7869 (btrace_get_bfun_name): New.
7870 (btrace_call_history): Call btrace_get_bfun_name.
7871 (struct btrace_frame_cache): New.
7873 (bfcache_hash, bfcache_eq, bfcache_new): New.
7874 (btrace_get_frame_function): New.
7875 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7876 (record_btrace_frame_this_id): Compute own id.
7877 (record_btrace_frame_prev_register): Provide PC, throw_error
7878 for all other registers.
7879 (record_btrace_frame_sniffer): Detect btrace frames.
7880 (record_btrace_tailcall_frame_sniffer): New.
7881 (record_btrace_frame_dealloc_cache): New.
7882 (record_btrace_frame_unwind): Add new functions.
7883 (record_btrace_tailcall_frame_unwind): New.
7884 (_initialize_record_btrace): Allocate cache.
7885 * btrace.c (btrace_clear): Call reinit_frame_cache.
7886 * NEWS: Announce it.
7888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7890 * record-btrace.c (record_btrace_set_replay)
7891 (record_btrace_goto_begin, record_btrace_goto_end)
7892 (record_btrace_goto): New.
7893 (init_record_btrace_ops): Initialize them.
7894 * NEWS: Announce it.
7896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7898 * record-btrace.c (record_btrace_find_new_threads)
7899 (record_btrace_thread_alive): New.
7900 (init_record_btrace_ops): Initialize to_find_new_threads and
7903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7905 * record-btrace.c (record_btrace_resume): New.
7906 (record_btrace_wait): New.
7907 (init_record_btrace_ops): Initialize to_wait and to_resume.
7909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7911 * record-btrace.c (record_btrace_xfer_partial)
7912 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7913 (record_btrace_allow_memory_access): New.
7914 (init_record_btrace_ops): Initialize new methods.
7915 * target.c (raw_memory_xfer_partial): Bail out if target reports
7916 that this memory is not available.
7918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7920 * target.h (target_ops) <to_insert_breakpoint>
7921 <to_remove_breakpoint>: Add target_ops parameter.
7922 (forward_target_insert_breakpoint): New.
7923 (forward_target_remove_breakpoint): New.
7924 (memory_remove_breakpoint, memory_insert_breakpoint):
7925 Add target_ops parameter.
7926 * target.c (target_insert_breakpoint): Split into this and ...
7927 (forward_target_insert_breakpoint): ... this.
7928 (target_remove_breakpoint): Split into this and ...
7929 (forward_target_remove_breakpoint): ... this.
7930 (debug_to_insert_breakpoint): Add target_ops parameter.
7931 Call forward_target_insert_breakpoint.
7932 (debug_to_remove_breakpoint): Add target_ops parameter.
7933 Call forward_target_remove_breakpoint.
7934 (update_current_target): Do not inherit or default to_insert_breakpoint
7935 and to_remove_breakpoint.
7936 * corelow.c (ignore): Add target_ops parameter.
7937 * exec.c (ignore): Add target_ops parameter.
7938 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7939 Add target_ops parameter.
7940 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7941 Add target_ops parameter.
7942 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7943 Add target_ops parameter.
7944 * record-full.c (record_full_beneath_to_insert_breakpoint)
7945 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7946 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7947 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7948 (record_full_core_remove_breakpoint): Add target_ops parameter.
7950 (record_full_beneath_to_insert_breakpoint_ops)
7951 (record_full_beneath_to_remove_breakpoint_ops)
7952 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7953 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7954 tmp_to_remove_breakpoint_ops,
7955 record_full_beneath_to_insert_breakpoint_ops, and
7956 record_full_beneath_to_remove_breakpoint_ops.
7957 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7958 (m32r_remove_breakpoint): Add target_ops parameter.
7959 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7960 Add target_ops parameter.
7961 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7962 Add target_ops parameter.
7964 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7965 Markus Metzger <markus.t.metzger@intel.com>
7967 * record-btrace.c: Include frame-unwind.h.
7968 (record_btrace_frame_unwind_stop_reason)
7969 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7970 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7972 (init_record_btrace_ops): Install it.
7974 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7976 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7979 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7981 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7984 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7986 * frame-unwind.c: Include target.h.
7987 (frame_unwind_try_unwinder): New function with code from ...
7988 (frame_unwind_find_by_frame): ... here. New variable
7989 unwinder_from_target, call also target_get_unwinder)
7990 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7991 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7992 * target.h (struct target_ops): New fields to_get_unwinder and
7993 to_get_tailcall_unwinder.
7994 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7998 * record-btrace.c (record_btrace_fetch_registers)
7999 (record_btrace_store_registers)
8000 (record_btrace_to_prepare_to_store): New.
8001 (init_record_btrace_ops): Add the above.
8003 2014-01-16 Tom Tromey <tromey@redhat.com>
8005 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8006 * target.h (struct target_ops) <to_prepare_to_store>: Add
8008 (target_prepare_to_store): Add argument.
8009 * target.c (debug_to_prepare_to_store): Add argument.
8010 (update_current_target): Update.
8011 * remote.c (remote_prepare_to_store): Add 'self' argument.
8012 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8013 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8014 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8015 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8017 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8018 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8019 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8020 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8021 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8025 * btrace.h (replay) <replay>: New.
8026 (btrace_is_replaying): New.
8027 * btrace.c (btrace_clear): Free replay iterator.
8028 (btrace_is_replaying): New.
8029 * record-btrace.c (record_btrace_is_replaying): New.
8030 (record_btrace_info): Print insn number if replaying.
8031 (record_btrace_insn_history): Start at replay position.
8032 (record_btrace_call_history): Start at replay position.
8033 (init_record_btrace_ops): Init to_record_is_replaying.
8035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8037 * record-btrace.c (record_btrace_insn_history_range): Include
8039 (record_btrace_insn_history_from): Adjust range.
8040 (record_btrace_call_history_range): Include
8042 (record_btrace_call_history_from): Adjust range.
8043 * NEWS: Announce changes.
8045 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8047 * record.h (enum record_print_flag)
8048 <record_print_indent_calls>: New.
8049 * record.c (get_call_history_modifiers): Recognize /c modifier.
8050 (_initialize_record): Document /c modifier.
8051 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8052 Reorder fields. Optionally indent the function name. Update
8054 * NEWS: Announce changes.
8056 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8058 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8062 * btrace.c (ftrace_new_function): Start counting at one.
8063 * record-btrace.c (record_btrace_info): Adjust number of calls
8065 * NEWS: Announce it.
8067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8069 * record-btrace.c (btrace_call_history_insn_range): Print
8070 insn range as [begin, end].
8072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8074 * btrace.h (struct btrace_func_link): New.
8075 (enum btrace_function_flag): New.
8076 (struct btrace_inst): Rename to ...
8077 (struct btrace_insn): ...this. Update all users.
8078 (struct btrace_func) <ibegin, iend>: Remove.
8079 (struct btrace_func_link): New.
8080 (struct btrace_func): Rename to ...
8081 (struct btrace_function): ...this. Update all users.
8082 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8083 (number, level, flags>: New.
8084 (struct btrace_insn_iterator): Rename to ...
8085 (struct btrace_insn_history): ...this.
8087 (struct btrace_insn_iterator, btrace_call_iterator): New.
8088 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8089 (struct btrace_target_info) <begin, end, level>
8090 <insn_history, call_history>: New.
8091 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8092 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8093 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8094 (btrace_call_number, btrace_call_begin, btrace_call_end)
8095 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8096 (btrace_find_function_by_number, btrace_set_insn_history)
8097 (btrace_set_call_history): New.
8098 * btrace.c (btrace_init_insn_iterator)
8099 (btrace_init_func_iterator, compute_itrace): Remove.
8100 (ftrace_print_function_name, ftrace_print_filename)
8101 (ftrace_skip_file): Change
8103 (ftrace_init_func): Remove.
8104 (ftrace_debug): Use new btrace_function fields.
8105 (ftrace_function_switched): Also consider gaining and
8106 losing symbol information).
8107 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8108 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8109 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8111 (ftrace_new_function): Move. Remove debug print.
8112 (ftrace_update_lines, ftrace_update_insns): New.
8113 (ftrace_update_function): Check for call, ret, and jump.
8114 (compute_ftrace): Renamed to ...
8115 (btrace_compute_ftrace): ...this. Rewritten to compute call
8117 (btrace_fetch, btrace_clear): Updated.
8118 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8119 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8120 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8121 (btrace_call_number, btrace_call_begin, btrace_call_end)
8122 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8123 (btrace_find_function_by_number, btrace_set_insn_history)
8124 (btrace_set_call_history): New.
8125 * record-btrace.c (require_btrace): Use new btrace thread
8127 (record_btrace_info, btrace_insn_history)
8128 (record_btrace_insn_history, record_btrace_insn_history_range):
8129 Use new btrace thread info fields and new iterator.
8130 (btrace_func_history_src_line): Rename to ...
8131 (btrace_call_history_src_line): ...this. Use new btrace
8133 (btrace_func_history): Rename to ...
8134 (btrace_call_history): ...this. Use new btrace thread info
8135 fields and new iterator.
8136 (record_btrace_call_history, record_btrace_call_history_range):
8137 Use new btrace thread info fields and new iterator.
8139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8141 * frame.h (frame_id_build_unavailable_stack_special): New.
8142 * frame.c (frame_id_build_unavailable_stack_special): New.
8144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8146 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8147 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8148 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8150 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8151 (i386_insn_is_jump, i386_jmp_p): New.
8152 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8153 insn_is_jump to gdbarch.
8154 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8155 * gdbarch.h: Regenerated.
8156 * gdbarch.c: Regenerated.
8157 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8158 (default_insn_is_jump): New.
8159 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8160 (default_insn_is_jump): New.
8162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8164 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8166 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8167 (btrace_read_type) <btrace_read_new>: Change to ...
8168 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8172 * common/linux-btrace.c (linux_read_btrace): Free trace from
8175 2014-01-15 Doug Evans <dje@google.com>
8177 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8180 2014-01-15 Tom Tromey <tromey@redhat.com>
8182 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8183 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8184 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8185 (set_objfile_main_name): New function.
8186 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8187 language_of_main>: New fields.
8188 (set_objfile_main_name): Declare.
8189 * symtab.c (find_main_name): Loop over objfiles to find the main
8191 (set_main_name): Now static.
8192 (get_main_info): Add comment.
8193 * symtab.h (set_main_name): Don't declare.
8195 2014-01-15 Tom Tromey <tromey@redhat.com>
8197 * symtab.c (main_progspace_key): New global.
8198 (struct main_info): New.
8199 (name_of_main, language_of_main): Remove.
8200 (get_main_info, main_info_cleanup): New function.
8201 (set_main_name, main_name, main_language): Use get_main_info.
8202 (_initialize_symtab): Initialize main_progspace_key.
8204 2014-01-15 Tom Tromey <tromey@redhat.com>
8206 * dbxread.c (process_one_symbol): Update.
8207 * dwarf2read.c (read_partial_die): Update.
8208 * symfile.c (set_initial_language): Call main_language.
8209 * symtab.c (language_of_main): Now static.
8210 (set_main_name): Add 'lang' parameter.
8211 (find_main_name): Update.
8212 (main_language): New function.
8213 (symtab_observer_executable_changed): Update.
8214 * symtab.h (set_main_name): Update.
8215 (language_of_main): Remove.
8216 (main_language): Declare.
8218 2014-01-15 Tom Tromey <tromey@redhat.com>
8220 * symfile.c (init_entry_point_info): Use new "initialized" field.
8222 * objfiles.h (struct entry_point) <initialized>: New field.
8223 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8224 (struct objfile) <ei>: ...here. Remove.
8225 * objfiles.c (entry_point_address_query): Update.
8227 2014-01-15 Tom Tromey <tromey@redhat.com>
8229 * objfiles.c (entry_point_address_query): Relocate entry point
8231 (objfile_relocate1): Do not relocate entry point address.
8232 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8233 <the_bfd_section_index>: New field.
8234 * symfile.c (init_entry_point_info): Find the entry point's
8237 2014-01-15 Tom Tromey <tromey@redhat.com>
8239 * solib-frv.c (enable_break): Use entry_point_address_query.
8241 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8243 * NEWS: Add note on improved process record-replay on
8244 arm*-linux* targets.
8246 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8248 * arm-tdep.c (enum arm_record_result): New enum.
8249 (arm_record_unsupported_insn): New function.
8250 (arm_record_coproc_data_proc): Removed.
8251 (thumb2_record_ld_st_multiple): New function.
8252 (thumb2_record_ld_st_dual_ex_tbb): New function.
8253 (thumb2_record_data_proc_sreg_mimm): New function.
8254 (thumb2_record_ps_dest_generic): New function.
8255 (thumb2_record_branch_misc_cntrl): New function.
8256 (thumb2_record_str_single_data): New function.
8257 (thumb2_record_ld_mem_hints): New function.
8258 (thumb2_record_ld_word): New function.
8259 (thumb2_record_lmul_lmla_div): New function.
8260 (thumb2_record_decode_insn_handler): New function.
8261 (decode_insn): Add thumb32 instruction handlers.
8263 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8265 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8266 (struct arm_linux_record_tdep): Declare.
8267 (arm_canonicalize_syscall): New function.
8268 (arm_all_but_pc_registers_record): New function.
8269 (arm_linux_syscall_record): New function.
8270 (arm_linux_init_abi): Add syscall recording constructs.
8271 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8272 decoding. (arm_record_coproc_data_proc): Update arm syscall
8274 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8275 <arm_syscall_record>: New field.
8276 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8279 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8281 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8282 register for push instruction recording.
8284 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8286 * arm-tdep.c (thumb_record_misc): Update to correct logical
8287 error while recording ldm, ldmia and pop instructions.
8289 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8291 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8293 2014-01-15 Pedro Alves <palves@redhat.com>
8295 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8296 (go32_resume, go32_fetch_registers, store_register)
8297 (go32_store_registers, go32_prepare_to_store)
8298 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8299 (go32_create_inferior, go32_can_run, go32_terminal_init)
8300 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8303 2014-01-15 Tom Tromey <tromey@redhat.com>
8305 * target.h (async_callback_ftype): New typedef.
8306 (struct target_ops) <to_async>: Use it.
8308 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8310 * python/py-value.c (get_field_type): Remove unnecessary curly
8311 braces for single-statement if block.
8313 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8315 * python/py-type.c (convert_field): Add missing empty line
8318 2014-01-14 Doug Evans <dje@google.com>
8320 * symfile.h (expand_symtabs_matching): Renamed from
8321 expand_partial_symbol_names. Update prototype.
8322 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8323 * symfile.c (expand_symtabs_matching): Renamed from
8324 expand_partial_symbol_names. New args file_matcher, kind.
8325 Rename arg fun to symbol_matcher.
8326 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8327 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8328 ada_expand_partial_symbol_name.
8329 (ada_make_symbol_completion_list): Update to call
8330 expand_symtabs_matching.
8331 (ada_add_global_exceptions): Call expand_symtabs_matching.
8332 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8333 call map_symbol_filenames.
8334 * symtab.c (sources_info): Update to call map_symbol_filenames.
8335 (search_symbols): Call expand_symtabs_matching.
8336 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8337 (default_make_symbol_completion_list_break_on): Update to call
8338 expand_symtabs_matching.
8339 (make_source_files_completion_list): Update to call
8340 map_symbol_filenames.
8342 2014-01-14 Doug Evans <dje@google.com>
8344 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8345 (expand_symtabs_symbol_matcher_ftype): New typedef.
8346 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8347 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8348 * symfile.c (expand_partial_symbol_names): Update to use
8349 expand_symtabs_symbol_matcher_ftype.
8350 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8351 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8352 Arg name_matcher renamed to symbol_matcher.
8353 * psymtab.c (recursively_search_psymtabs): Update to use
8354 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8356 (expand_symtabs_matching_via_partial): Update to use
8357 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8358 Arg name_matcher renamed to symbol_matcher.
8360 2014-01-14 Doug Evans <dje@google.com>
8362 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8363 (map_partial_symbol_filenames): Ditto.
8364 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8365 (map_partial_symbol_filenames): Ditto.
8366 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8367 (map_partial_symbol_filenames): Ditto.
8368 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8369 (map_partial_symbol_filenames): Ditto.
8370 * symtab.c: Delete #include "psymtab.h".
8372 2014-01-14 Pedro Alves <palves@redhat.com>
8373 Tom Tromey <tromey@redhat.com>
8375 * infrun.c (use_displaced_stepping): Use find_record_target
8376 instead of RECORD_IS_USED.
8377 (adjust_pc_after_break): Use record_full_is_used instead of
8379 * record-btrace.c (record_btrace_open): Call record_preopen
8380 instead of checking RECORD_IS_USED.
8381 * record-full.c (record_full_shortname)
8382 (record_full_core_shortname): New globals.
8383 (record_full_is_used): New function.
8384 (find_full_open): Call record_preopen instead of checking
8386 (init_record_full_ops): Set the target's shortname to
8387 record_full_shortname.
8388 (init_record_full_core_ops): Set the target's shortname to
8389 record_full_core_shortname.
8390 * record-full.h (record_full_is_used): Declare.
8391 * record.c (find_record_target): Make extern.
8392 (record_preopen): New function.
8393 * record.h (RECORD_IS_USED): Delete macro.
8394 (find_record_target, record_preopen): Declare functions.
8396 2014-01-14 Yao Qi <yao@codesourcery.com>
8398 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8399 'len''s type to ULONGEST.
8400 (core_xfer_shared_libraries_aix): Likewise.
8401 * gdbarch.c, gdbarch.h: Regenerated.
8402 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8403 Change type of 'len' to ULONGEST.
8404 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8405 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8407 2014-01-14 Yao Qi <yao@codesourcery.com>
8409 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8410 type of 'len' to ULONGEST.
8411 (linux_xfer_osdata_processgroups): Likewise.
8412 (linux_xfer_osdata_threads): Likewise.
8413 (linux_xfer_osdata_fds): Likewise.
8414 (linux_xfer_osdata_isockets): Likewise.
8415 (linux_xfer_osdata_shm): Likewise.
8416 (linux_xfer_osdata_sem): Likewise.
8417 (linux_xfer_osdata_msg): Likewise.
8418 (linux_common_xfer_osdata): Likewise.
8419 (struct osdata_type) <getter>: Likewise.
8420 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8423 2014-01-14 Yao Qi <yao@codesourcery.com>
8425 * target.h (target_xfer_partial_ftype): Update.
8426 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8428 * aix-thread.c (aix_thread_xfer_partial): Change type of
8429 argument 'len' to ULONGEST.
8430 * auxv.c (procfs_xfer_auxv): Likewise.
8431 (ld_so_xfer_auxv): Likewise.
8432 (memory_xfer_auxv): Likewise.
8433 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8434 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8435 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8436 * corelow.c (core_xfer_partial): Likewise.
8437 * ctf.c (ctf_xfer_partial): Likewise.
8438 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8440 (darwin_read_dyld_info): Likewise.
8441 (darwin_xfer_partial): Likewise.
8442 * exec.c (section_table_xfer_memory_partial): Likewise.
8443 (exec_xfer_partial): Likewise.
8444 * exec.h (section_table_xfer_memory_partial): Update
8446 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8447 instead of plongest.
8448 (gnu_xfer_partial): Likewise.
8449 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8450 (ia64_hpux_xfer_solib_got): Likewise.
8451 (ia64_hpux_xfer_partial): Likewise.
8452 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8453 * inf-ptrace.c (inf_ptrace_xfer_partial):
8454 * inf-ttrace.c (inf_ttrace_xfer_partial):
8455 * linux-nat.c (linux_xfer_siginfo): Likewise.
8456 (linux_nat_xfer_partial): Likewise.
8457 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8458 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8459 * monitor.c (monitor_xfer_memory): Likewise.
8460 (monitor_xfer_partial): Likewise.
8461 * procfs.c (procfs_xfer_partial): Likewise.
8462 * record-full.c (record_full_xfer_partial): Likewise.
8463 (record_full_core_xfer_partial): Likewise.
8464 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8465 instead of plongest.
8466 (gdbsim_xfer_partial): Likewise.
8467 * remote.c (remote_xfer_partial): Likewise.
8468 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8469 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8471 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8472 (rs6000_xfer_shared_libraries): Likewise.
8473 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8474 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8475 (sparc_xfer_partial): Likewise.
8476 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8477 (spu_xfer_partial): Likewise.
8478 * spu-multiarch.c (spu_xfer_partial): Likewise.
8479 * target.c (target_read_live_memory): Likewise.
8480 (memory_xfer_live_readonly_partial): Likewise.
8481 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8482 (target_xfer_partial, default_xfer_partial): Likewise.
8483 (current_xfer_partial): Likewise.
8484 * tracepoint.c (tfile_xfer_partial): Likewise.
8485 * windows-nat.c (windows_xfer_memory): Likewise. Call
8486 pulongest instead of plongest.
8487 (windows_xfer_partial): Likewise.
8488 (windows_xfer_shared_libraries): Likewise.
8490 2014-01-14 Yao Qi <yao@codesourcery.com>
8492 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8493 target_xfer_partial_ftype.
8495 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8499 * valops.c (value_struct_elt_bitpos): New function
8500 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8501 object to 'None' if the field name is an empty string ("").
8502 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8503 attribute to look for a field when 'name' is 'None'.
8504 (get_field_type): New function
8506 2014-01-13 Doug Evans <dje@google.com>
8509 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8510 (try_open_dwop_file): Ditto.
8511 * gdb_bfd.c: #include "vec.h".
8512 (bfdp): New typedef.
8513 (struct gdb_bfd_data): New member included_bfds.
8514 (gdb_bfd_unref): Unref all included bfds.
8515 (gdb_bfd_record_inclusion): New function.
8516 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8518 2014-01-13 Tom Tromey <tromey@redhat.com>
8520 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8522 2014-01-13 Tom Tromey <tromey@redhat.com>
8524 * defs.h (use_windows): Remove.
8525 * gdb.c (main): Update.
8526 * main.c (captured_main, gdb_main): Update.
8527 * main.h (struct captured_main_args) <use_windows>: Remove.
8528 * top.c (use_windows): Remove.
8530 2014-01-13 Tom Tromey <tromey@redhat.com>
8532 * defs.h (deprecated_flush_hook): Remove.
8534 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8537 * linux-thread-db.c (try_thread_db_load): Add parameter
8538 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8539 (try_thread_db_load_from_pdir_1): Move it there from here.
8540 (try_thread_db_load_from_sdir): Update caller.
8541 (try_thread_db_load_from_dir): Move it there from here.
8543 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8545 * regformats/regdat.sh: Always rewrite the register file.
8547 2014-01-13 Pedro Alves <palves@redhat.com>
8549 * Makefile.in (CHECK_HEADERS): New variable.
8550 (check-headers:): New rule.
8552 2014-01-13 Tom Tromey <tromey@redhat.com>
8554 * cli/cli-setshow.c (do_set_command): Update.
8555 * defs.h (deprecated_set_hook): Remove.
8556 * top.c (deprecated_set_hook): Remove.
8558 2014-01-13 Pedro Alves <palves@redhat.com>
8560 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8561 the tracepoint if the PC is a pseudo-register.
8563 2014-01-13 Tom Tromey <tromey@redhat.com>
8565 * defs.h (XCALLOC): Remove.
8566 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8567 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8568 * dwarf2loc.c (allocate_piece_closure): Likewise.
8569 * elfread.c (elf_symfile_segments): Likewise.
8570 (elf_symfile_segments): Likewise.
8571 * gdbtypes.c (copy_type_recursive): Likewise.
8572 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8573 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8574 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8576 * mt-tdep.c (mt_gdbarch_init): Likewise.
8577 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8579 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8580 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8581 * registry.c (registry_alloc_data): Likewise.
8582 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8583 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8584 * serial.c (serial_fdopen_ops): Likewise.
8585 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8587 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8588 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8591 2014-01-13 Tom Tromey <tromey@redhat.com>
8593 * defs.h (XMALLOC): Remove.
8594 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8595 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8596 * cli-out.c (struct ui_out *): Likewise.
8597 * cli/cli-dump.c (add_dump_command): Likewise.
8598 (add_dump_command): Likewise.
8599 * complaints.c (get_complaints): Likewise.
8600 (find_complaint): Likewise.
8601 * dwarf2-frame.c (execute_cfa_program): Likewise.
8602 * dwarf2read.c (abbrev_table_read_table): Likewise.
8603 * gdbarch.sh: Likewise.
8604 * gdbarch.c: Rebuild.
8605 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8606 * interps.c (interp_new): Likewise.
8607 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8608 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8609 * mi/mi-console.c (mi_console_file_new): Likewise.
8610 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8611 * mi/mi-out.c (mi_out_new): Likewise.
8612 * mi/mi-parse.c (mi_parse): Likewise.
8613 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8614 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8615 * observer.c (xalloc_observer_list_node): Likewise.
8616 * regcache.c (regcache_xmalloc_1): Likewise.
8617 * reggroups.c (reggroup_new): Likewise.
8618 (_initialize_reggroup): Likewise.
8619 * registry.c (register_data_with_cleanup): Likewise.
8620 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8621 * ser-base.c (serial_ttystate): Likewise.
8622 * ser-mingw.c (make_pipe_state): Likewise.
8623 * ser-pipe.c (pipe_open): Likewise.
8624 * serial.c (serial_open): Likewise.
8625 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8626 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8627 (tui_alloc_win_info): Likewise.
8628 (tui_add_content_elements): Likewise.
8629 * tui/tui-file.c (tui_file_new): Likewise.
8630 * tui/tui-out.c (tui_out_new): Likewise.
8631 * ui-file.c (mem_file_new): Likewise.
8632 * ui-out.c (push_level): Likewise.
8633 (make_cleanup_ui_out_end): Likewise.
8634 (append_header_to_list): Likewise.
8635 (ui_out_new): Likewise.
8636 * user-regs.c (user_reg_add_builtin): Likewise.
8638 2014-01-13 Tom Tromey <tromey@redhat.com>
8640 * defs.h (XZALLOC): Remove.
8641 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8642 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8643 (get_ada_tasks_inferior_data): Likewise.
8644 * auto-load.c (get_auto_load_pspace_data): Likewise.
8645 * auxv.c (get_auxv_inferior_data): Likewise.
8646 * bfd-target.c (target_bfd_reopen): Likewise.
8647 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8648 (deprecated_insert_raw_breakpoint): Likewise.
8649 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8650 * corelow.c (core_open): Likewise.
8651 * darwin-nat.c (darwin_check_new_threads): Likewise.
8652 (darwin_attach_pid): Likewise.
8653 * dummy-frame.c (dummy_frame_push): Likewise.
8654 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8655 * dwarf2loc.c (allocate_piece_closure): Likewise.
8656 * elfread.c (elf_symfile_segments): Likewise.
8657 * eval.c (ptrmath_type_p): Likewise.
8658 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8659 * gdbtypes.c (alloc_type_arch): Likewise.
8660 (alloc_type_instance): Likewise.
8661 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8662 * inf-child.c (inf_child_can_use_agent): Likewise.
8663 * inflow.c (get_inflow_inferior_data): Likewise.
8664 * infrun.c (save_infcall_suspend_state): Likewise.
8665 * jit.c (jit_reader_load): Likewise.
8666 (get_jit_objfile_data): Likewise.
8667 (get_jit_program_space_data): Likewise.
8668 (jit_object_open_impl): Likewise.
8669 (jit_symtab_open_impl): Likewise.
8670 (jit_block_open_impl): Likewise.
8671 (jit_frame_sniffer): Likewise.
8672 * linux-fork.c (add_fork): Likewise.
8673 * maint.c (make_command_stats_cleanup): Likewise.
8674 * objfiles.c (get_objfile_pspace_data): Likewise.
8675 * opencl-lang.c (struct lval_closure): Likewise.
8676 * osdata.c (osdata_start_osdata): Likewise.
8677 * progspace.c (new_address_space): Likewise.
8678 (add_program_space): Likewise.
8679 * remote-sim.c (get_sim_inferior_data): Likewise.
8680 * sh-tdep.c (sh_gdbarch_init): Likewise.
8681 * skip.c (Ignore): Likewise.
8682 (skip_delete_command): Likewise.
8683 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8684 (library_list_start_library): Likewise.
8685 (solib_aix_current_sos): Likewise.
8686 * solib-darwin.c (get_darwin_info): Likewise.
8687 (darwin_current_sos): Likewise.
8688 * solib-dsbt.c (get_dsbt_info): Likewise.
8689 * solib-ia64-hpux.c (new_so_list): Likewise.
8690 (ia64_hpux_get_solib_linkage_addr): Likewise.
8691 * solib-spu.c (append_ocl_sos): Likewise.
8692 (spu_current_sos): Likewise.
8693 * solib-svr4.c (get_svr4_info): Likewise.
8694 (svr4_keep_data_in_core): Likewise.
8695 (library_list_start_library): Likewise.
8696 (svr4_default_sos): Likewise.
8697 (svr4_read_so_list): Likewise.
8698 * solib-target.c (library_list_start_library): Likewise.
8699 (solib_target_current_sos): Likewise.
8700 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8701 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8702 * symfile.c (default_symfile_segments): Likewise.
8703 * target-descriptions.c (tdesc_data_init): Likewise.
8704 (tdesc_create_reg): Likewise.
8705 (struct tdesc_type *): Likewise.
8706 (tdesc_create_vector): Likewise.
8707 (tdesc_set_struct_size): Likewise.
8708 (struct tdesc_type *): Likewise.
8709 (tdesc_free_feature): Likewise.
8710 (tdesc_create_feature): Likewise.
8711 * windows-nat.c (windows_add_thread): Likewise.
8712 (windows_make_so): Likewise.
8713 * xml-support.c (gdb_xml_body_text): Likewise.
8714 (gdb_xml_create_parser_and_cleanup): Likewise.
8715 (xml_process_xincludes): Likewise.
8716 * xml-syscall.c (allocate_syscalls_info): Likewise.
8717 (syscall_create_syscall_desc): Likewise.
8719 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8721 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8722 function, with code from i386_stap_parse_special_token.
8723 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8724 (i386_stap_parse_special_token): Move code to the two functions
8727 2014-01-09 Pedro Alves <palves@redhat.com>
8728 Hui Zhu <hui@codesourcery.com>
8731 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8732 bp_err_string. Don't mark the location shlib_disabled if the
8733 error thrown wasn't a generic or memory error. Catch errors
8734 thrown while inserting breakpoints in overlayed code. Output
8735 error message of software breakpoints.
8736 * remote.c (remote_insert_breakpoint): If this breakpoint has
8737 target-side commands but this stub doesn't support Z0 packets,
8738 throw NOT_SUPPORTED_ERROR error.
8739 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8740 * target.h (target_insert_breakpoint): Extend comment.
8741 (target_insert_hw_breakpoint): Add comment.
8743 2014-01-08 Pedro Alves <palves@redhat.com>
8745 * remote.c (remote_add_thread): Add threads silently if starting
8747 (remote_notice_new_inferior): If in all-stop, and starting up,
8748 don't call notice_new_inferior.
8749 (get_current_thread): New function, factored out from ...
8750 (add_current_inferior_and_thread): ... this. Adjust.
8751 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8752 found any thread, then select the remote's current thread as GDB's
8755 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8757 * NEWS: Create a new section for the next release branch.
8758 Rename the section of the current branch, now that it has
8761 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8763 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8764 * version.in: Bump version to 7.7.50.DATE-cvs.
8766 2014-01-08 Yao Qi <yao@codesourcery.com>
8768 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8769 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8770 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8772 2014-01-08 Yao Qi <yao@codesourcery.com>
8774 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8775 return value of bfd_get_filename to symbol_file_add_from_bfd.
8777 2014-01-08 Pierre Muller <muller@sourceware.org>
8780 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8781 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8782 to prim_record_mininal_symbol_and_info.
8783 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8784 in call to prim_record_minimal_symbol_and_info.
8785 (read_pe_exported_syms): Set index field of section_data.
8787 2014-01-07 Andrew Pinski <apinski@cavium.com>
8789 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8790 * features/aarch64.c: Regenerate.
8792 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8794 * target.c (return_null): Define.
8795 (update_current_target): Use it instead of return_zero for
8796 functions that return a pointer.
8798 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8800 * source.c (add_path): Fix check for duplicated paths in the previously
8803 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8805 * ada-lang.c: Remove duplicated include statements.
8806 * alphabsd-nat.c: Ditto.
8807 * amd64-darwin-tdep.c: Ditto.
8808 * amd64fbsd-nat.c: Ditto.
8809 * auto-load.c: Ditto.
8811 * breakpoint.c: Ditto.
8813 * fork-child.c: Ditto.
8814 * gdb_usleep.c: Ditto.
8815 * i386-darwin-tdep.c: Ditto.
8816 * i386fbsd-nat.c: Ditto.
8818 * inferior.c: Ditto.
8820 * linux-nat.c: Ditto.
8821 * linux-tdep.c: Ditto.
8822 * m68kbsd-nat.c: Ditto.
8823 * m68klinux-nat.c: Ditto.
8824 * microblaze-tdep.c: Ditto.
8825 * mips-linux-tdep.c: Ditto.
8826 * mn10300-tdep.c: Ditto.
8827 * nto-tdep.c: Ditto.
8828 * opencl-lang.c: Ditto.
8830 * printcmd.c: Ditto.
8831 * regcache.c: Ditto.
8832 * remote-m32r-sdi.c: Ditto.
8836 * tilegx-linux-nat.c: Ditto.
8837 * tilegx-tdep.c: Ditto.
8838 * tracepoint.c: Ditto.
8840 * vaxbsd-nat.c: Ditto.
8841 * windows-nat.c: Ditto.
8842 * xtensa-tdep.c: Ditto.
8844 2014-01-07 Yao Qi <yao@codesourcery.com>
8846 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8848 2014-01-07 Yao Qi <yao@codesourcery.com>
8849 Joel Brobecker <brobecker@adacore.com>
8851 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8852 (pdc_write_regs): Likewise.
8853 (fetch_regs_kernel_thread): Likewise.
8854 (store_regs_kernel_thread): Likewise.
8856 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8858 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8859 tagged type objects to their actual type.
8861 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8863 * ada-valprint.c (print_field_values): Add "language" parameter.
8864 Update calls to print_field_values and print_variant_part.
8865 Pass new parameter "language" in call to val_print instead
8866 of "current_language". Replace call to ada_val_print by call
8868 (print_variant_part): Add "language" parameter.
8869 (ada_val_print_struct_union): Update call to print_field_values.
8871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8873 * ada-valprint.c (ui_memcpy): Delete.
8874 (ada_print_floating): Update documentation. Add empty line
8875 between between function documentation and implementation.
8876 Delete variable "buffer". Use ui_file_xstrdup in place of
8877 ui_file_put. Minor adjustments following this change.
8879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8881 * ada-valprint.c (ada_val_print_string): New function,
8882 extracted from ada_val_print_array.
8883 (ada_val_print_array): Replace extracted code by call
8884 to ada_val_print_string followed by a return. Move
8885 "else" branch to the function's top block.
8887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8889 * ada-valprint.c (ada_val_print_array): Move implementation
8890 down. Rename parameter "offset" and "val" into "offset_aligned"
8891 and "original_value" respectively. Add parameter "offset".
8893 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8895 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8896 re-organizing the code. Change the "???" message printed
8897 when target type is a TYPE_CODE_UNDEF into
8898 "<ref to undefined type>".
8900 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8902 * ada-valprint.c (print_record): Delete, implementation inlined...
8903 (ada_val_print_struct_union): ... here. Remove call to
8904 ada_check_typedef in inlined implementation.
8906 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8908 * ada-valprint.c (ada_val_print_gnat_array): New function,
8909 extracted from ada_val_print_1;
8910 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8911 (ada_val_print_flt, ada_val_print_struct_union)
8912 (ada_val_print_ref): Likewise.
8913 (ada_val_print_1): Delete variables i and elttype.
8914 Replace extracted-out code by call to corresponding
8917 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8919 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8921 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8923 * ada-valprint.c (ada_val_print_1): Replace calls to
8924 ada_val_print_1 by calls to val_print.
8926 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8928 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8929 Update calls to self accordingly. Replace calls to c_val_print
8930 by calls to val_print.
8932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8934 * ada-valprint.c (print_record): Delete declaration.
8935 (adjust_type_signedness, ada_val_print_1): Likewise.
8936 (ada_val_print): Move function implementation down.
8937 (print_variant_part, print_field_values, print_record):
8938 Move function implementation up.
8940 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8942 * python/py-type.c (typy_get_name): New function.
8943 (type_object_getset): Add entry for attribute "name".
8944 * NEWS: Add entry mentioning this new attribute.
8946 2014-01-07 Yao Qi <yao@codesourcery.com>
8948 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8951 2014-01-07 Yao Qi <yao@codesourcery.com>
8953 * gnu-nat.c (info_port_rights): Add qualifier const to
8956 2014-01-07 Yao Qi <yao@codesourcery.com>
8958 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8960 2014-01-07 Yao Qi <yao@codesourcery.com>
8962 * gnu-nat.c (make_inf) Update declaration.
8963 (make_inf): Make it static.
8964 (inf_set_traced): Likewise.
8965 (inf_port_to_thread, inf_task_died_status): Likewise.
8967 2014-01-07 Yao Qi <yao@codesourcery.com>
8969 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8971 2014-01-07 Yao Qi <yao@codesourcery.com>
8973 * gnu-nat.c (_initialize_gnu_nat): Declare.
8975 2014-01-07 Yao Qi <yao@codesourcery.com>
8977 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8979 (struct gdbarch_info) <byte_order>: Change type to
8981 <byte_order_for_code>: Likewise.
8982 * gdbarch.c, gdbarch.h: Regenerated.
8984 2014-01-06 Sasha Smundak <asmundak@google.com>
8986 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8988 2014-01-06 Tom Tromey <tromey@redhat.com>
8990 * doublest.c (convert_doublest_to_floatformat): Use const, not
8992 * somread.c (som_symtab_read): Likewise.
8994 2014-01-07 Hui Zhu <hui@codesourcery.com>
8996 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8997 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8998 (gdb_bfd_fopen): Ditto.
8999 (gdb_bfd_openr): Ditto.
9000 (gdb_bfd_openw): Ditto.
9001 (gdb_bfd_openr_iovec): Ditto.
9002 (gdb_bfd_fdopenr): Ditto.
9003 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9004 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9006 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9008 * symfile-mem.c (symbol_file_add_from_memory): Removed
9009 gdb_bfd_stash_filename.
9011 2014-01-03 Doug Evans <dje@google.com>
9013 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9016 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9018 Update year range in copyright notice of all files.
9020 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9022 * top.c (print_gdb_version): Set copyright year to 2014.
9024 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9026 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9028 For older changes see ChangeLog-2013.
9034 version-control: never