1 2014-06-16 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
8 instead of OBJF_USERLOADED.
9 * objfiles.h (OBJF_SHARED): Update comment.
10 (userloaded_objfile_contains_address_p): Rename to ...
11 (shared_objfile_contains_address_p): ... this, and update
13 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
15 (remove_symbol_file_command): Skip objfiles that don't have
18 2014-06-16 Tom Tromey <tromey@redhat.com>
20 * minsyms.h (prim_record_minimal_symbol)
21 (prim_record_minimal_symbol_and_info): Update comments.
23 2014-06-14 Eli Zaretskii <eliz@gnu.org>
25 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
26 or --without-guile, according to how GDB was built.
28 2014-06-13 Tom Tromey <tromey@redhat.com>
30 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
32 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
34 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
36 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
37 help_list.Pass all_commands, not -1, to help_list.
38 * cli/cli-dump.c (dump_command, append_command)
39 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
40 (binary_dump_command, binary_append_command): Pass all_commands,
42 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
44 * valprint.c (set_print, set_print_raw): Pass all_commands, not
46 * typeprint.c (set_print_type): Pass all_commands, not -1, to
48 * top.c (set_history): Pass all_commands, not -1, to help_list.
49 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
50 all_commands, not -1, to help_list.
51 * symfile.c (overlay_command): Pass all_commands, not -1, to
53 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
55 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
57 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
59 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
61 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
63 * maint.c (maintenance_command, maintenance_info_command)
64 (maintenance_print_command, maintenance_set_cmd): Pass
65 all_commands, not -1, to help_list.
66 * macrocmd.c (macro_command): Pass all_commands, not -1, to
68 * language.c (set_check): Pass all_commands, not -1, to help_list.
69 * infcmd.c (unset_command): Pass all_commands, not -1, to
71 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
73 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
75 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
77 * breakpoint.c (save_command): Pass all_commands, not -1, to
79 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
80 all_commands, not -1, to help_list.
82 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
84 * regcache.c (struct register_to_invalidate): New structure.
85 (do_register_invalidate, make_cleanup_regcache_invalidate): New
87 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
89 2014-06-12 Yao Qi <yao@codesourcery.com>
91 * varobj.c (varobj_get_num_children): Call
93 (varobj_list_children): Likewise.
94 (varobj_update): Likewise. Update comments.
96 2014-06-12 Yao Qi <yao@codesourcery.com>
98 * varobj.c (varobj_pretty_printed_p): Rename to ...
99 (varobj_is_dynamic_p): ... this. New function.
100 * varobj.h (varobj_pretty_printed_p): Remove declaration.
101 (varobj_is_dynamic_p): Declare.
102 * mi/mi-cmd-var.c (print_varobj): All callers updated.
103 (mi_print_value_p, varobj_update_one): Likewise.
105 2014-06-12 Pedro Alves <pedro@codesourcery.com>
106 Yao Qi <yao@codesourcery.com>
108 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
109 (varobj_get_iterator): Wrap up code for pretty-printer by
110 "#if HAVE_PYTHON" and "#endif".
111 (update_dynamic_varobj_children): Likewise.
113 2014-06-12 Pedro Alves <pedro@codesourcery.com>
114 Yao Qi <yao@codesourcery.com>
116 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
117 gdb_python_initialized is false. Move some code from varobj.c.
118 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
119 * varobj.c: Move "varobj-iter.h" inclusion earlier.
120 (struct varobj_item): Moved to varobj-iter.h".
121 (varobj_clear_saved_item): New function.
122 (update_dynamic_varobj_children): Move python-related code to
124 (free_variable): Call varobj_clear_saved_item and
127 2014-06-12 Pedro Alves <pedro@codesourcery.com>
128 Yao Qi <yao@codesourcery.com>
130 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
131 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
132 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
133 (py-varobj.o): New rule.
134 * python/py-varobj.c: New file.
135 * python/python-internal.h (py_varobj_get_iterator): Declare.
136 * varobj-iter.h: New file.
137 * varobj.c: Include "varobj-iter.h"
138 (struct varobj) <child_iter>: Change its type from "PyObject *"
139 to "struct varobj_iter *".
140 <saved_item>: Likewise.
141 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
142 [HAVE_PYTHON] (varobj_get_iterator): New function.
143 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
144 python-specific code to python/py-varobj.c.
145 (install_visualizer): Call varobj_iter_delete instead of
147 * varobj.h (varobj_ensure_python_env): Declare.
149 2014-06-12 Yao Qi <yao@codesourcery.com>
151 * varobj.c (struct varobj_item): New structure.
152 (create_child_with_value): Update declaration.
153 (varobj_add_child): Replace arguments 'name' and 'value' with
154 'item'. All callers updated.
155 (install_dynamic_child): Likewise.
156 (update_dynamic_varobj_children): Likewise.
157 (varobj_add_child): Likewise.
158 (create_child_with_value): Likewise.
160 2014-06-11 Joel Brobecker <brobecker@adacore.com>
162 * NEWS: Create a new section for the next release branch.
163 Rename the section of the current branch, now that it has
166 2014-06-11 Joel Brobecker <brobecker@adacore.com>
168 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
169 * version.in: Bump version to 7.8.50.DATE-cvs.
171 2014-06-11 Pedro Alves <palves@redhat.com>
174 * ser-mingw.c (net_windows_socket_check_pending): New function.
175 (net_windows_select_thread): Ignore spurious wakeups. Use
176 net_windows_socket_check_pending.
177 (net_windows_wait_handle): Check for pending events with
178 ioctlsocket, through net_windows_socket_check_pending, instead of
179 checking the socket's event.
181 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
183 * python/python-internal.h (gdb_PyObject_GetAttrString)
184 (gdb_PyObject_HasAttrString): New inline function definitions.
185 * py-value.c (get_field_flag): Remove the now unnecessary cast to
186 char * of the second argument to PyObject_GetAttrString.
188 2014-06-10 Joel Brobecker <brobecker@adacore.com>
190 * serial.c (serial_write): Fix index of character to be printed
191 in call to serial_logchar when serial debug traces are enabled.
193 2014-06-10 Joel Brobecker <brobecker@adacore.com>
195 * gdbtypes (resolve_dynamic_range): Add function description.
197 2014-06-09 Pedro Alves <palves@redhat.com>
199 * linux-nat.c (linux_child_follow_fork): Initialize status with
200 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
201 inner block. Only pass the signal to PTRACE_DETACH if in pass
204 2014-06-09 Gary Benson <gbenson@redhat.com>
206 * common/signals.c (gdb_signal_from_host): Reorder to separate
207 the always-available ANSI-standard signals from the signals that
209 (do_gdb_signal_to_host): Likewise.
210 * proc-events.c (signal_table): Likewise.
212 2014-06-08 Hui Zhu <hui@codesourcery.com>
214 * common/linux-ptrace.c (linux_disable_event_reporting): New
216 * common/linux-ptrace.h (linux_disable_event_reporting): New
218 * linux-nat.c (linux_child_follow_fork): Do a single step before
221 2014-06-07 Keith Seitz <keiths@redhat.com>
225 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
226 from symbol_matches_domain in symtab.c. All local callers
227 of symbol_matches_domain updated.
228 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
229 search STRUCT_DOMAIN.
230 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
231 independently. standard_lookup will do that automatically.
232 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
233 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
234 (cp_lookup_symbol_in_namespace): Likewise.
235 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
236 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
237 may return a STRUCT_DOMAIN match.
238 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
239 * cp-support.c: Include language.h.
240 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
242 * psymtab.c (match_partial_symbol): Compare the requested
243 domain with the symbol's domain directly.
244 (lookup_partial_symbol): Likewise.
245 * symtab.c (lookup_symbol_in_language): Explain when/why
246 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
247 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
248 appropriate languages.
249 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
250 and moved to ada-lang.c
251 (lookup_block_symbol): Explain that this function only returns
252 symbol matching the requested DOMAIN.
253 Compare the requested domain with the symbol's domain directly.
254 (iterate_over_symbols): Compare the requested domain with the
255 symbol's domain directly.
256 * symtab.h (symbol_matches_domain): Remove.
258 2014-06-06 Doug Evans <xdje42@gmail.com>
260 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
261 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
262 (gdbscm_guile_version_is_at_least): Declare.
263 (gdbscm_scm_string_to_int): Declare.
264 * guile/guile.c (gdbscm_guile_major_version): New global.
265 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
266 (guile_datadir): New static global.
267 (gdbscm_guile_data_directory): New function.
268 (initialize_scheme_side): Update.
269 (misc_guile_functions): Add guile-data-directory.
270 (initialize_gdb_module): Fetch guile version number.
271 * guile/lib/gdb.scm: Remove call to add-to-load-path.
272 * guile/lib/gdb/init.scm (%initialize!): Ditto.
273 * guile/lib/gdb/boot.scm: Use guile-data-directory.
274 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
276 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
277 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
278 * guile/scm-value.c (gdbscm_value_to_string): Only call
279 scm_port_conversion_strategy if Guile version >= 2.0.6.
281 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
283 * main.c (print_gdb_help): Add -q and --silent.
285 2014-06-06 Gary Benson <gbenson@redhat.com>
287 * common/signals.c: Remove preprocessor conditionals for
288 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
290 * proc-events.c: Likewise.
292 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
294 * symfile.c (symfile_free_objfile): Remove restriction to
296 * symfile-mem.c (symbol_file_add_from_memory): Call
297 add_target_sections_of_objfile.
299 2014-06-05 Ludovic Courtès <ludo@gnu.org>
301 * guile/scm-value.c (gdbscm_history_append_x): Use
302 'vlscm_get_value_smob_arg_unsafe' instead of
303 'vlscm_scm_to_value'.
305 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
308 * utils.c (printchar): Don't escape at all if quoter is NUL.
309 Update function documentation to clarify effect of parameter
311 * remote.c (escape_buffer): Pass '\\' as the quoter to
313 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
315 (mi_solib_unloaded): Same.
317 2014-06-05 Joel Brobecker <brobecker@adacore.com>
319 * development.sh: Delete.
320 * Makefile.in (config.status): Adjust dependency on development.sh.
321 * configure.ac: Adjust development.sh source call.
322 * configure: Regenerate.
324 2014-06-04 Doug Evans <xdje42@gmail.com>
326 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
327 is_scheme_bkpt, spec.
328 (bpscm_make_breakpoint_smob): Initialize new members.
329 (gdbscm_create_breakpoint_x): Split into two ...
330 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
331 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
332 (scheme_function breakpoint_functions): Update.
333 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
334 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
335 register-breakpoint!.
337 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
340 * mem-break.c (z_type_supported): Return zero if
341 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
343 2014-06-04 Tom Tromey <tromey@redhat.com>
345 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
346 value_from_contents_and_address_unresolved.
347 (ada_template_to_fixed_record_type_1): Likewise.
348 (ada_which_variant_applies): Likewise.
349 * value.h (value_from_contents_and_address_unresolved): Declare.
350 * value.c (value_from_contents_and_address_unresolved): New
352 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
353 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
354 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
356 2014-06-04 Tom Tromey <tromey@redhat.com>
358 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
360 2014-06-04 Tom Tromey <tromey@redhat.com>
362 * procfs.c (procfs_attach): Make "args" const.
363 * windows-nat.c (windows_attach): Make "args" const.
364 * nto-procfs.c (procfs_attach): Make "args" const.
365 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
366 * go32-nat.c (go32_attach): Make "args" const.
367 * gnu-nat.c (gnu_attach): Make "args" const.
368 * darwin-nat.c (darwin_attach): Make "args" const.
369 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
370 * linux-nat.c (linux_nat_attach): Make "args" const.
371 * remote.c (extended_remote_attach_1, extended_remote_attach):
373 * target.h (struct target_ops) <to_attach>: Make "args" const.
374 (find_default_attach): Likewise.
375 * utils.c (parse_pid_to_attach): Make "args" const.
376 * utils.h (parse_pid_to_attach): Update.
378 2014-06-04 Tom Tromey <tromey@redhat.com>
380 * target-delegates.c: Rebuild.
381 * target.c (default_thread_address_space): New function.
382 (target_thread_address_space): Simplify.
383 * target.h (struct target_ops) <to_thread_address_space>: Add
386 2014-06-04 Doug Evans <xdje42@gmail.com>
388 * guile/scm-type.c (type_smob): Remove duplicate typedef.
390 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
392 * record-btrace.c: Include event-loop.h and inf-loop.h.
393 (record_btrace_resume_exec_dir)
394 (record_btrace_async_inferior_event_handler)
395 (record_btrace_handle_async_inferior_event): New.
396 (record_btrace_open): Create async event handler.
397 (record_btrace_close): Delete async event handler.
398 (record_btrace_resume): Set record_btrace_resume_exec_dir,
399 Mark async event handler.
400 (record_btrace_execution_direction): New.
401 (init_record_btrace_ops): Initialize to_execution_direction.
403 2014-06-03 Doug Evans <xdje42@gmail.com>
405 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
406 (gdbscm_make_parameter): Ditto.
408 2014-06-03 Doug Evans <dje@google.com>
410 * exec.c (exec_close_1): Call clear_section_table instead of
411 resize_section_table.
412 (clear_section_table): New function.
413 (resize_section_table): Make static. Rename arg num_added to
415 * exec.h (clear_section_table): Declare.
416 (resize_section_table): Delete.
417 * progspace.c (release_program_space): Call clear_section_table
418 instead of resize_section_table.
420 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
422 * NEWS (Python Scripting): Add entry about the new xmethods
425 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
427 * python/py-xmethods.c: New file.
428 * python/py-objfile.c (objfile_object): New field 'xmethods'.
429 (objfpy_dealloc): XDECREF on the new xmethods field.
430 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
432 (objfpy_get_xmethods): New function.
433 (objfile_getset): New entry 'xmethods'.
434 * python/py-progspace.c (pspace_object): New field 'xmethods'.
435 (pspy_dealloc): XDECREF on the new xmethods field.
436 (pspy_new, pspace_to_pspace_object): Initialize xmethods
438 (pspy_get_xmethods): New function.
439 (pspace_getset): New entry 'xmethods'.
440 * python/python-internal.h: Add declarations for new functions.
441 * python/python.c (_initialize_python): Invoke
442 gdbpy_initialize_xmethods.
443 * python/lib/gdb/__init__.py (xmethods): New
445 * python/lib/gdb/xmethod.py: New file.
446 * python/lib/gdb/command/xmethods.py: New file.
448 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
450 * eval.c (evaluate_subexp_standard): Call the xmethod if the
451 best match method returned by find_overload_match is an xmethod.
452 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
453 the best matching operator returned by find_overload_match is an
455 * valops.c: #include "extension.h".
456 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
457 Return void. The list of matching source methods is returned in
458 "fn_list" and a vector of matching debug method workers is
459 returned in "xm_worker_vec". Update all callers.
460 (value_find_oload_method_list): Likewise.
461 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
462 non-NULL, then the index of the best matching method in this
463 vector is returned. Update all callers.
464 (find_overload_match): Include xmethods while performing overload
467 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
469 * defs.h (enum lval_type): New enumerator "lval_xcallable".
470 * extension-priv.h (struct extension_language_ops): Add the
472 * extension.c (new_xmethod_worker, clone_xmethod_worker,
473 get_matching_xmethod_workers, get_xmethod_argtypes,
474 invoke_xmethod, free_xmethod_worker,
475 free_xmethod_worker_vec): New functions.
476 * extension.h: #include "common/vec.h".
477 New function declarations.
478 (struct xmethod_worker): New struct.
479 (VEC (xmethod_worker_ptr)): New vector type.
480 (xmethod_worker_ptr): New typedef.
481 (xmethod_worker_vec): Likewise.
482 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
484 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
485 (struct builtin_type): New field "xmethod".
486 * valarith.c (value_ptradd): Assert that the value argument is not
488 * valops.c (value_must_coerce_to_target): Return 0 for
489 lval_xcallable values.
490 * value.c (struct value): New field XM_WORKER in the field
492 (value_address, value_raw_address): Return 0 for lval_xcallable
494 (set_value_address): Assert that the value is not an
496 (value_free): Free the associated xmethod worker when freeing
497 lval_xcallable values.
498 (set_value_component_location): Assert that the WHOLE value is not
500 (value_of_xmethod, call_xmethod): New functions.
501 * value.h: Declare "struct xmethod_worker".
502 Declare new functions value_of_xmethod, call_xmethod.
504 2014-06-03 Joel Brobecker <brobecker@adacore.com>
505 Pedro Alves <palves@redhat.com>
508 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
509 New function, extracted from software_breakpoint_inserted_here_p.
510 (software_breakpoint_inserted_here_p): Replace factored out code
511 by call to find_non_raw_software_breakpoint_inserted_here.
512 (bp_target_info_copy_insertion_state): New function.
513 (bkpt_insert_location): Handle the case of a single-step
514 breakpoint already inserted at the same address.
515 (bkpt_remove_location): Handle the case of a single-step
516 breakpoint still inserted at the same address.
517 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
518 breakpoint already inserted at the same address.
519 (deprecated_remove_raw_breakpoint): Handle the case of a
520 non-raw breakpoint still inserted at the same address.
521 (find_single_step_breakpoint): New function, extracted from
522 single_step_breakpoint_inserted_here_p.
523 (find_single_step_breakpoint): New function,
524 factored out from single_step_breakpoint_inserted_here_p.
525 (single_step_breakpoint_inserted_here_p): Reimplement.
527 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
529 Pushed by Joel Brobecker <brobecker@adacore.com>
530 * source.c (show_substitute_path_command): Fix display of matching
533 2014-06-03 Gary Benson <gbenson@redhat.com>
535 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
537 2014-06-02 Doug Evans <xdje42@gmail.com>
539 Add parameter support for Guile.
540 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
541 (SUBDIR_GUILE_SRCS): Add scm-param.c.
542 (scm-param.o): New rule.
543 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
544 (gdbscm_misc_error): Declare.
545 (gdbscm_canonicalize_command_name): Declare.
546 (gdbscm_scm_to_host_string): Declare.
547 (gdbscm_scm_from_host_string): Declare.
548 (gdbscm_initialize_parameters): Declare.
549 * guile/guile.c (initialize_gdb_module): Call
550 gdbscm_initialize_parameters.
551 * guile/lib/gdb.scm: Export parameter symbols.
552 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
553 cmdscm_canonicalize_name and made public. All callers updated.
554 * guile/scm-exception.c (gdbscm_misc_error): New function.
555 * guile/scm-param.c: New file.
556 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
557 (gdbscm_scm_to_host_string): New function.
558 (gdbscm_scm_from_host_string): New function.
559 * scm-utils.c (gdbscm_gc_dup_argv): New function.
561 2014-06-02 Doug Evans <xdje42@gmail.com>
563 Add command support for Guile.
564 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
565 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
566 (scm-cmd.o): New rule.
567 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
568 (gdbscm_user_error_p): Declare.
569 (gdbscm_parse_command_name): Declare.
570 (gdbscm_valid_command_class_p): Declare.
571 (gdbscm_initialize_commands): Declare.
572 * guile/guile.c (initialize_gdb_module): Call
573 gdbscm_initialize_commands.
574 * guile/lib/gdb.scm: Export command symbols.
575 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
576 (throw-user-error): New function.
577 * guile/scm-cmd.c: New file.
578 * guile/scm-exception.c (user_error_symbol): New static global.
579 (gdbscm_user_error_p): New function.
580 (gdbscm_initialize_exceptions): Set user_error_symbol.
581 * scm-utils.c (gdbscm_gc_xstrdup): New function.
583 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
585 * top.c (command_loop): Handle comments here...
586 (command_line_input): ... not here.
588 2014-06-02 Doug Evans <xdje42@gmail.com>
590 Add progspace support for Guile.
591 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
592 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
593 (scm-progspace.o): New rule.
594 * guile/guile-internal.h (pspace_smob): New typedef.
595 (psscm_pspace_smob_pretty_printers): Declare.
596 (psscm_pspace_smob_from_pspace): Declare.
597 (psscm_scm_from_pspace): Declare.
598 * guile/guile.c (initialize_gdb_module): Call
599 gdbscm_initialize_pspaces.
600 * guile/lib/gdb.scm: Export progspace symbols.
601 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
603 (append-pretty-printer!): Ditto.
604 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
606 * guile/scm-progspace.c: New file.
608 2014-06-03 Alan Modra <amodra@gmail.com>
610 * ppc64-tdep.c (ppc64_standard_linkage8): New.
611 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
613 2014-06-02 Doug Evans <dje@google.com>
615 Add support for skeletonless type units.
616 * dwarf2read.c (struct dwarf2_per_objfile): New member
617 n_allocated_type_units.
618 (struct dwarf2_per_objfile) <tu_stats>: New member
619 nr_all_type_units_reallocs.
620 (create_signatured_type_table_from_index): Initialize
621 n_allocated_type_units
622 (create_all_type_units): Ditto.
623 (add_type_unit): Move up in file. New arg slot.
624 All callers updated. Increase space for all_type_units more
626 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
627 (lookup_dwo_signatured_type): Handle skeletonless TUs.
628 (lookup_dwp_signatured_type): Ditto.
629 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
631 (build_type_psymtabs_1): Leave type_unit_groups as
632 NULL if no TUs present.
633 (print_tu_stats): New function.
634 (process_skeletonless_type_unit): New function.
635 (process_dwo_file_for_skeletonless_type_units): New
637 (process_skeletonless_type_units): New function.
638 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
639 Call print tu_stats if debugging enabled.
641 2014-06-02 Pedro Alves <palves@redhat.com>
643 * breakpoint.c (build_target_command_list): Don't build a command
644 list if we have any duplicate location that isn't a dprintf.
646 2014-06-02 Pedro Alves <palves@redhat.com>
648 * breakpoint.c (dprintf_breakpoint_hit): New function.
649 (initialize_breakpoint_ops): Install it as dprintf's
650 breakpoint_hit method.
652 2014-06-02 Joel Brobecker <brobecker@adacore.com>
654 * source.c (substitute_path_rule_matches): Simplify using
655 filename_ncmp instead of FILENAME_CMP.
657 2014-06-02 Joel Brobecker <brobecker@adacore.com>
659 * source.c (substitute_path_rule_matches): Remove trailing spaces.
661 2014-06-01 Ludovic Courtès <ludo@gnu.org>
663 * configure.ac: When Guile is available, check for the
664 availability of 'scm_new_smob'.
665 * configure, config.h.in: Regenerate.
666 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
669 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
671 * frame.c (struct frame_info): Add stop_string field.
672 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
673 (get_prev_frame_always): Old content moved into
674 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
675 TRY_CATCH, handle MEMORY_ERROR exceptions.
676 (frame_stop_reason_string): New function definition.
677 * frame.h (unwind_stop_reason_to_string): Extend comment to
678 mention frame_stop_reason_string.
679 (frame_stop_reason_string): New function declaration.
680 * stack.c (frame_info): Switch to frame_stop_reason_string.
681 (backtrace_command_1): Switch to frame_stop_reason_string.
682 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
683 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
684 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
686 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
688 * frame.c (frame_stop_reason_string): Rename to ...
689 (unwind_stop_reason_to_string): this.
690 * frame.h (frame_stop_reason_string): Rename to ...
691 (unwind_stop_reason_to_string): this.
692 * stack.c (frame_info): Update call to frame_stop_reason_string.
693 (backtrace_command_1): Likewise.
694 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
695 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
697 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
699 * frame.c (remove_prev_frame): New function.
700 (get_prev_frame_if_no_cycle): Create / discard cleanup using
703 2014-05-29 Pedro Alves <palves@redhat.com>
705 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
706 and make it const. When a single-step decays to a continue,
707 clear 'step', not 'hw_step'. Pass whether the caller wanted
708 to step to user_visible_resume_ptid, not what we ask the
711 2014-05-29 Pedro Alves <palves@redhat.com>
713 * infrun.c (process_event_stop_test, handle_step_into_function)
714 (handle_step_into_function_backward): Adjust.
715 Don't set the even thread's stop_step and call stop_waiting before
716 calling end_stepping_range. Instead do that ...
717 (end_stepping_range): ... here. Take an ecs pointer parameter.
719 2014-05-29 Pedro Alves <palves@redhat.com>
721 * infrun.c (stop_stepping): Rename to ...
722 (stop_waiting): ... this.
723 (proceed): Update comment.
724 (process_event_stop_test, handle_inferior_event)
725 (handle_signal_stop, handle_step_into_function)
726 (handle_step_into_function_backward): Update.
728 2014-05-29 Pedro Alves <palves@redhat.com>
730 * infcall.c (run_inferior_call): Don't check whether the current
731 thread is running after the proceed call.
733 2014-05-29 Pedro Alves <palves@redhat.com>
734 Tom Tromey <tromey@redhat.com>
736 * NEWS: Mention "maint set target-async", "set mi-async", and that
737 background execution commands are now always available.
738 * target.h (target_async_permitted): Update comment.
739 * target.c (target_async_permitted, target_async_permitted_1):
741 (set_target_async_command): Rename to ...
742 (maint_set_target_async_command): ... this.
743 (show_target_async_command): Rename to ...
744 (maint_show_target_async_command): ... this.
745 (_initialize_target): Adjust.
746 * infcmd.c (prepare_execution_command): Make extern.
747 * inferior.h (prepare_execution_command): Declare.
748 * infrun.c (set_observer_mode): Leave target async alone.
749 * mi/mi-interp.c (mi_interpreter_init): Install
750 mi_on_sync_execution_done as sync_execution_done observer.
751 (mi_on_sync_execution_done): New function.
752 (mi_execute_command_input_handler): Don't print the prompt if we
753 just started a synchronous command with an async target.
754 (mi_on_resume): Check sync_execution before printing prompt.
755 * mi/mi-main.h (mi_async_p): Declare.
756 * mi/mi-main.c: Include gdbcmd.h.
757 (mi_async_p): New function.
758 (mi_async, mi_async_1): New globals.
759 (set_mi_async_command, show_mi_async_command, mi_async): New
761 (exec_continue): Call prepare_execution_command.
762 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
763 (mi_execute_async_cli_command): Use mi_async_p.
764 (_initialize_mi_main): Install "set mi-async". Make
765 "target-async" a deprecated alias.
767 2014-05-29 Pedro Alves <palves@redhat.com>
769 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
770 (_initialize_cli_interp): Adjust.
771 * event-loop.c: Include "observer.h".
772 (start_event_loop): Notify 'command_error' observers instead of
773 calling display_gdb_prompt. Remove FIXME comment.
774 * event-top.c (display_gdb_prompt): Remove call into the
776 * inf-loop.c: Include "observer.h".
777 (inferior_event_handler): Notify 'command_error' observers instead
778 of calling display_gdb_prompt.
779 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
780 observers instead of calling display_gdb_prompt.
781 * interps.c (interp_set): Don't call display_gdb_prompt.
782 (current_interp_display_prompt_p): Delete.
783 * interps.h (interp_prompt_p): Delete declaration.
784 (interp_prompt_p_ftype): Delete.
785 (struct interp_procs) <prompt_proc_p>: Delete field.
786 (current_interp_display_prompt_p): Delete declaration.
787 * mi-interp.c (mi_interpreter_prompt_p): Delete.
788 (_initialize_mi_interp): Adjust.
789 * tui-interp.c (tui_init): Install 'sync_execution_done' and
790 'command_error' observers.
791 (tui_on_sync_execution_done, tui_on_command_error): New
793 (tui_display_prompt_p): Delete.
794 (_initialize_tui_interp): Adjust.
796 2014-05-29 Pedro Alves <palves@redhat.com>
799 * cli/cli-interp.c: Include infrun.h and observer.h.
800 (cli_uiout, cli_interp): New globals.
801 (cli_on_signal_received, cli_on_end_stepping_range)
802 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
804 (cli_interpreter_init): Install them as 'end_stepping_range',
805 'signal_received' 'signal_exited', 'exited' and 'no_history'
807 (_initialize_cli_interp): Remove cli_interp local.
808 * infrun.c (handle_inferior_event): Call the several stop reason
809 observers instead of printing the stop reason directly.
810 (end_stepping_range): New function.
811 (print_end_stepping_range_reason, print_signal_exited_reason)
812 (print_exited_reason, print_signal_received_reason)
813 (print_no_history_reason): Make static, and add an uiout
814 parameter. Print to that instead of to CURRENT_UIOUT.
815 * infrun.h (print_end_stepping_range_reason)
816 (print_signal_exited_reason, print_exited_reason)
817 (print_signal_received_reason print_no_history_reason): New
819 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
821 <cli_uiout>: New field.
822 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
823 uiout for CLI output. Install 'signal_received',
824 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
826 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
827 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
828 (mi_on_no_history): New functions.
829 (ui_out_free_cleanup): Delete function.
830 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
831 instead use the one already stored in the MI interpreter data.
833 * tui/tui-interp.c: Include infrun.h and observer.h.
834 (tui_interp): New global.
835 (tui_on_signal_received, tui_on_end_stepping_range)
836 (tui_on_signal_exited, tui_on_exited)
837 (tui_on_no_history): New functions.
838 (tui_init): Install them as 'end_stepping_range',
839 'signal_received' 'signal_exited', 'exited' and 'no_history'
841 (_initialize_tui_interp): Delete tui_interp local.
843 2014-05-29 Pedro Alves <palves@redhat.com>
846 * linux-nat.c (linux_nat_resume_callback): Rename the second
847 parameter to 'except'. Skip LP if it points to EXCEPT.
848 (linux_nat_resume): Don't mark the event lwp as not stopped
849 before resuming sibling lwps. Instead ask
850 linux_nat_resume_callback to skip the event lwp. Mark it as not
851 stopped after actually resuming it.
852 (linux_handle_syscall_trap): Mark the lwp as not stopped after
854 (wait_lwp): Mark the lwp as stopped here.
855 (stop_wait_callback): Mark the lwp as not stopped right after
856 resuming it. Don't mark lwps as stopped here.
857 (linux_nat_filter_event): Mark the lwp as stopped earlier.
858 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
860 2014-05-29 Pedro Alves <palves@redhat.com>
863 * infrun.c (resume): Determine how much to resume depending on
864 whether the caller wanted a step, not whether we can hardware step
865 the target. Mark all threads that we intend to run as running,
866 unless we're calling an inferior function.
867 (normal_stop): If the thread is running an infcall, don't finish
869 * target.c (target_resume): Don't mark threads as running here.
871 2014-05-28 Joel Brobecker <brobecker@adacore.com>
873 * serial.c (_initialize_serial): Remove support for
874 the "set remotebaud" and "show remotebaud" commands.
875 * NEWS: Add entry documenting the removal of that command.
877 2014-05-28 Yao Qi <yao@codesourcery.com>
879 * charset.c: Fix typo in comments.
881 2014-05-27 Gary Benson <gbenson@redhat.com>
883 * utils.c (internal_vproblem): Prompt for a bug report.
885 2014-05-26 Andy Wingo <wingo@igalia.com>
887 * guile/scm-arch.c (arscm_mark_arch_smob):
888 * guile/scm-block.c (bkscm_mark_block_smob)
889 (bkscm_mark_block_syms_progress_smob):
890 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
891 * guile/scm-exception.c (exscm_mark_exception_smob):
892 * guile/scm-frame.c (frscm_mark_frame_smob):
893 * guile/scm-iterator.c (itscm_mark_iterator_smob):
894 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
895 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
896 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
897 (ppscm_mark_pretty_printer_worker_smob):
898 * guile/scm-symbol.c (syscm_mark_symbol_smob):
899 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
900 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
901 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
903 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
906 2014-05-26 Andy Wingo <wingo@igalia.com>
907 Doug Evans <xdje42@gmail.com>
909 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
910 empty_base_class. All uses updated.
911 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
912 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
914 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
915 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
916 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
917 (gdbscm_gsmob_has_property_p, add_property_name)
918 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
919 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
920 (gdb-object-has-property?, gdb-object-properties): Remove.
921 (gdb-object-kind): Renamed from gsmob-kind.
923 2014-05-26 Andy Wingo <wingo@igalia.com>
925 * configure.ac (try_guile_versions): Allow building with guile 2.2.
926 * configure: Regenerate.
928 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
930 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
932 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
934 * record-btrace.c (record_btrace_allow_memory_access): Remove.
935 (replay_memory_access_read_only, replay_memory_access_read_write)
936 (replay_memory_access_types, replay_memory_access)
937 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
938 (cmd_set_record_btrace, cmd_show_record_btrace)
939 (cmd_show_replay_memory_access): New.
940 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
941 (record_btrace_remove_breakpoint): Replace
942 record_btrace_allow_memory_access with replay_memory_access.
943 (_initialize_record_btrace): Add commands.
946 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
948 * aarch64-linux-nat.c (asm/ptrace.h): Include.
950 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
952 * MAINTAINERS (Write After Approval): Move self back from
955 2014-05-22 Pedro Alves <palves@redhat.com>
957 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
958 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
959 (disable_randomization, enum exec_direction_kind)
960 (execution_direction, stop_registers, start_remote)
961 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
962 (wait_for_inferior, normal_stop, get_last_target_status)
963 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
964 (insert_step_resume_breakpoint_at_sal)
965 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
966 (set_step_info, print_stop_event, signal_stop_state)
967 (signal_print_state, signal_pass_state, signal_stop_update)
968 (signal_print_update, signal_pass_update)
969 (update_signals_program_target, clear_exit_convenience_vars)
970 (displaced_step_dump_bytes, update_observer_mode)
971 (signal_catch_update, gdb_signal_from_command): Move
973 * infrun.h: ... to this new file.
974 * amd64-tdep.c: Include infrun.h.
975 * annotate.c: Include infrun.h.
976 * arch-utils.c: Include infrun.h.
977 * arm-linux-tdep.c: Include infrun.h.
978 * arm-tdep.c: Include infrun.h.
979 * break-catch-sig.c: Include infrun.h.
980 * breakpoint.c: Include infrun.h.
981 * common/agent.c: Include infrun.h instead of inferior.h.
982 * corelow.c: Include infrun.h.
983 * event-top.c: Include infrun.h.
984 * go32-nat.c: Include infrun.h.
985 * i386-tdep.c: Include infrun.h.
986 * inf-loop.c: Include infrun.h.
987 * infcall.c: Include infrun.h.
988 * infcmd.c: Include infrun.h.
989 * infrun.c: Include infrun.h.
990 * linux-fork.c: Include infrun.h.
991 * linux-nat.c: Include infrun.h.
992 * linux-thread-db.c: Include infrun.h.
993 * monitor.c: Include infrun.h.
994 * nto-tdep.c: Include infrun.h.
995 * procfs.c: Include infrun.h.
996 * record-btrace.c: Include infrun.h.
997 * record-full.c: Include infrun.h.
998 * remote-m32r-sdi.c: Include infrun.h.
999 * remote-mips.c: Include infrun.h.
1000 * remote-notif.c: Include infrun.h.
1001 * remote-sim.c: Include infrun.h.
1002 * remote.c: Include infrun.h.
1003 * reverse.c: Include infrun.h.
1004 * rs6000-tdep.c: Include infrun.h.
1005 * s390-linux-tdep.c: Include infrun.h.
1006 * solib-irix.c: Include infrun.h.
1007 * solib-osf.c: Include infrun.h.
1008 * solib-svr4.c: Include infrun.h.
1009 * target.c: Include infrun.h.
1010 * top.c: Include infrun.h.
1011 * windows-nat.c: Include infrun.h.
1012 * mi/mi-interp.c: Include infrun.h.
1013 * mi/mi-main.c: Include infrun.h.
1014 * python/py-threadevent.c: Include infrun.h.
1016 2014-05-22 Pedro Alves <palves@redhat.com>
1018 * infrun.c (handle_inferior_event): Store the exit code for
1019 --return-child-result here, instead of ...
1020 (print_exited_reason): ... here.
1022 2014-05-21 Pedro Alves <palves@redhat.com>
1025 * gdbthread.h (struct thread_control_state): New field
1027 * infrun.c (follow_fork): Copy the new thread control field to the
1029 (clear_proceed_status_thread): Clear the new thread control field.
1030 (proceed): Set the new thread control field.
1031 * interps.h (command_interp): Declare.
1032 * interps.c (command_interpreter): New global.
1033 (command_interp): New function.
1034 (interp_exec): Set `command_interpreter' while here.
1035 * cli-out.c (cli_uiout_dtor): New function.
1036 (cli_ui_out_impl): Install it.
1037 * mi/mi-interp.c: Include cli-out.h.
1038 (mi_cmd_interpreter_exec): Add comment.
1039 (restore_current_uiout_cleanup): New function.
1040 (ui_out_free_cleanup): New function.
1041 (mi_on_normal_stop): If finishing an execution command started by
1042 a CLI command, or any kind of breakpoint-like event triggered,
1043 print the stop event to the output (CLI) stream.
1044 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1046 2014-05-21 Pedro Alves <palves@redhat.com>
1048 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1049 current source line having changed.
1050 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1051 * infrun.c (normal_stop): Adjust call to
1052 set_current_sal_from_frame.
1053 * source.c (clear_lines_listed_range): New function.
1054 (set_current_source_symtab_and_line, identify_source_line): Clear
1055 the lines listed range.
1056 (line_info): Handle the first "info line" after the current source
1057 line having changed.
1058 * stack.c (print_stack_frame): Remove center handling.
1059 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1062 2014-05-21 Pedro Alves <palves@redhat.com>
1064 * inf-child.c (inf_child_mourn_inferior): New function.
1065 * inf-child.h (inf_child_mourn_inferior): New declaration.
1066 * darwin-nat.c (darwin_mourn_inferior): Use
1067 inf_child_mourn_inferior.
1068 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1069 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1070 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1071 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1072 * windows-nat.c (windows_mourn_inferior): Likewise.
1074 2014-05-21 Doug Evans <xdje42@gmail.com>
1076 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1078 2014-05-21 Doug Evans <xdje42@gmail.com>
1080 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1081 (gdbscm_out_of_range_error): Ditto.
1082 (gdbscm_memory_error): Ditto.
1083 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1084 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1085 (gdbscm_out_of_range_error): Update.
1086 (gdbscm_memory_error): Update.
1087 (gdbscm_scm_to_target_string_unsafe): Delete.
1089 2014-05-21 Pedro Alves <palves@redhat.com>
1091 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1093 (inf_child_open_target): New function.
1094 (inf_child_open): Use inf_child_open_target to push the target
1095 instead of erroring out.
1096 (inf_child_disconnect, inf_child_close)
1097 (inf_child_maybe_unpush_target): New functions.
1098 (inf_child_target): Install inf_child_disconnect and
1099 inf_child_close. Store a pointer to the returned object.
1100 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1102 * target.c (auto_connect_native_target): New global.
1103 (show_default_run_target): New function.
1104 (find_default_run_target): Return NULL if automatically connecting
1105 to the native target is disabled.
1106 (_initialize_target): Install set/show auto-connect-native-target.
1107 * NEWS: Mention "set auto-connect-native-target", and "target
1109 * linux-nat.c (super_close): New global.
1110 (linux_nat_close): Call super_close.
1111 (linux_nat_add_target): Store a pointer to the base class's
1113 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1114 inf_child_maybe_unpush.
1115 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1117 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1118 the inferior. Use inf_child_maybe_unpush_target.
1119 (inf_ttrace_attach): Don't push the target if it is already
1121 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1122 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1123 after mourning the inferior. Use inf_child_maybe_unpush_target.
1124 (darwin_attach_pid): Don't push the target if it is already
1126 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1127 mourning the inferior. Use inf_child_maybe_unpush_target.
1128 (gnu_detach): Use inf_child_maybe_unpush_target.
1129 * go32-nat.c (go32_create_inferior): Don't push the target if it
1131 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1132 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1133 (procfs_open): Rename to ...
1134 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1135 comments. Can target_preopen before changing node. Call
1136 inf_child_open_target to push the target explicitly.
1137 (procfs_attach): Don't push the target if it is already pushed.
1138 (procfs_detach): Use inf_child_maybe_unpush_target.
1139 (procfs_create_inferior): Don't push the target if it is already
1141 (nto_native_ops): New global.
1142 (procfs_open): Reimplement.
1143 (procfs_native_open): New function.
1144 (init_procfs_targets): Install procfs_native_open as to_open of
1145 "target native". Store a pointer to the "native" target in
1147 * procfs.c (procfs_attach): Don't push the target if it is already
1149 (procfs_detach): Use inf_child_maybe_unpush_target.
1150 (procfs_mourn_inferior): Only unpush the target after mourning the
1151 inferior. Use inf_child_maybe_unpush_target.
1152 (procfs_init_inferior): Don't push the target if it is already
1154 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1155 if it is already pushed.
1157 2014-05-21 Pedro Alves <palves@redhat.com>
1159 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1160 and "procfs" targets are now called "native" instead.
1162 2014-05-21 Pedro Alves <palves@redhat.com>
1164 * go32-nat.c (go32_open): Delete.
1165 (go32_target): Don't override the to_open method.
1167 2014-05-21 Pedro Alves <palves@redhat.com>
1169 * nto-procfs.c (procfs_can_run): New function.
1170 (nto_procfs_ops): New global.
1171 (init_procfs_targets): New, based on procfs_target. Install
1172 "target native" in addition to "target procfs".
1173 (_initialize_procfs): Call init_procfs_targets instead of adding
1176 2014-05-21 Pedro Alves <palves@redhat.com>
1178 * windows-nat.c (windows_target): Don't override to_shortname,
1179 to_longname or to_doc.
1181 2014-05-21 Pedro Alves <palves@redhat.com>
1183 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1186 2014-05-21 Pedro Alves <palves@redhat.com>
1188 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1189 to_shortname, to_longname or to_doc.
1191 2014-05-21 Pedro Alves <palves@redhat.com>
1193 * go32-nat.c (go32_target): Don't override to_shortname,
1194 to_longname or to_doc.
1196 2014-05-21 Pedro Alves <palves@redhat.com>
1198 * inf-child.c (inf_child_open): Remove mention of "child".
1199 (inf_child_target): Rename target to "native" instead of "child".
1201 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203 * Makefile.in (SFILES): Delete "regset.c".
1204 (COMMON_OBS): Delete "regset.o".
1206 * regset.h (regset_alloc): Delete prototype.
1208 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210 * sparc-linux-tdep.c (sparc32_linux_gregset)
1211 (sparc32_linux_fpregset): New static regset structures.
1212 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1213 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1215 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1216 (sparc64_linux_fpregset): New static regset structures.
1217 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1218 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1219 New static regset structures.
1220 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1221 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1222 New static regset structures.
1223 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1224 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1225 New static regset structures.
1226 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1227 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1228 New static regset structures.
1229 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1231 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1233 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1234 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1235 register maps ("regmaps") from "*regset" to "*regmap". Do this
1236 for all regmap types and variables.
1237 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1238 (sparc32_linux_supply_core_gregset)
1239 (sparc32_linux_collect_core_gregset)
1240 (sparc32_linux_supply_core_fpregset)
1241 (sparc32_linux_collect_core_fpregset): Likewise.
1242 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1243 (sparc_gregmap, sparc_fpregmap): ... these.
1244 (sparc_supply_gregset, sparc_collect_gregset)
1245 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1246 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1247 (_initialize_sparc_nat): Rename regmaps.
1248 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1249 (sparc_gregmap, sparc_fpregmap): ... these.
1250 (sparc_supply_gregset, sparc_collect_gregset)
1251 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1252 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1254 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1255 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1257 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1259 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1260 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1261 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1263 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1264 (sparc32_bsd_fpregset): Rename to...
1265 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1266 (sparc32_bsd_fpregmap): ... these.
1267 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1268 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1269 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1270 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1271 (struct sparc_gregmap, struct sparc_fpregmap)
1272 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1273 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1274 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1275 (sparc32_supply_regset, sparc32_collect_gregset)
1276 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1278 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1279 (sparc64_linux_ptrace_gregmap): ... this.
1280 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1281 (_initialize_sparc64_linux_nat): Rename regmaps.
1282 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1283 (sparc64_linux_core_gregmap): ... this.
1284 (sparc64_linux_supply_core_gregset)
1285 (sparc64_linux_collect_core_gregset)
1286 (sparc64_linux_supply_core_fpregset)
1287 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1288 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1289 (sparc64_sol2_fpregset): Rename to...
1290 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1291 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1292 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1294 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1295 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1296 (sparc64_bsd_fpregset): Rename to...
1297 (struct sparc_gregmap, sparc64_sol2_gregmap)
1298 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1299 (sparc64_bsd_fpregmap): ... these.
1300 (sparc64_supply_gregset, sparc64_collect_gregset)
1301 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1303 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1304 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1305 (sparc64fbsd_gregmap): ... this.
1306 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1307 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1309 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1310 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1311 (sparc64nbsd_collect_fpregset): Likewise.
1312 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1313 (sparc64nbsd_gregmap): ... this.
1314 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1316 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1317 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1318 (sparc64obsd_gregmap): ... this.
1319 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1321 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1322 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1323 (sparc32nbsd_gregmap): ... this.
1324 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1327 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329 * score-tdep.c (score7_linux_gregset): New static regset
1331 (score7_linux_regset_from_core_section): Remove dynamic regset
1333 (score_gdbarch_init): Drop allocation of tdep structure.
1334 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1336 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1338 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1340 (am33_regset_from_core_section): Remove dynamic regset
1343 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1346 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1348 (mips_linux_regset_from_core_section): Remove dynamic regset
1350 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1351 'gregset64', 'fpregset', and 'fpregset64'.
1352 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1353 deleted tdep fields.
1355 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1357 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1359 (amd64_regset_from_core_section): Remove dynamic regset
1361 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1363 (amd64obsd_regset_from_core_section): Remove dynamic regset
1365 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1367 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1368 x86-common regset supply function.
1369 * i386-tdep.c (i386_collect_gregset): Make static.
1370 (i386_gregset): New global regset structure.
1371 (i386_fpregset, i386_xstateregset): New static regset structures.
1372 (i386_regset_from_core_section): Remove dynamic regset
1374 (i386_gdbarch_init): Remove initialization of tdep fields
1375 'gregset', 'fpregset', and 'xstateregset'.
1376 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1377 'fpregset', and 'xstateregset'.
1378 (i386_collect_gregset): Remove prototype.
1379 (i386_gregset): New declaration.
1380 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1382 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1385 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1387 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1388 (arm_linux_vfpregset): New static regset structures.
1389 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1391 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1392 and 'vfpregset' fields.
1394 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1396 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1397 (aarch64_linux_fpregset): New static regset structures.
1398 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1399 of regset structures.
1400 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1403 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405 * regset.h (struct regset): Remove gdbarch field.
1406 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1407 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1408 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1410 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1411 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1412 (ppc32_linux_vsxregset): Likewise.
1413 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1414 via the regcache instead of the regset.
1415 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1416 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1417 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1418 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1424 Constify structures.
1425 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1426 (alphanbsd_aout_gregset): Likewise.
1427 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1428 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1430 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1431 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1433 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1434 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1435 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1436 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1437 * m88k-tdep.c (m88k_gregset): Likewise.
1438 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1439 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1440 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1441 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1442 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1443 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1444 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1445 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1446 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1448 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1449 * sh-tdep.h (sh_corefile_gregset): Likewise.
1450 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1451 * vax-tdep.c (vax_gregset): Likewise.
1453 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1455 Fix TLS access for -static -pthread.
1456 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1457 (try_thread_db_load_1): Initialize it.
1458 (thread_db_get_thread_local_address): Call it if LM is zero.
1459 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1460 * target.h (struct target_ops) (to_get_thread_local_address): Add
1461 load_module_addr comment.
1463 2014-05-21 Pedro Alves <palves@redhat.com>
1465 * dcache.c (dcache_read_memory_partial): If reading the cache line
1466 fails, fallback to reading just the memory the caller wanted.
1468 2014-05-20 Doug Evans <dje@google.com>
1470 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1471 instead of get_current_arch.
1473 2014-05-20 Pedro Alves <palves@redhat.com>
1475 * NEWS: Mention that compare-sections now works with all targets.
1477 * remote.c (PACKET_qCRC): New enum value.
1478 (remote_verify_memory): Don't send qCRC if the target has no
1479 execution. Use packet_support/packet_ok. If the target doesn't
1480 support the qCRC packet, fallback to a deep memory copy.
1481 (compare_sections_command): Say "target image" instead of "remote
1483 (_initialize_remote): Add PACKET_qCRC to the list of config
1484 packets that have no associated command. Extend comment.
1485 * target.c (simple_verify_memory, default_verify_memory): New
1487 * target.h (struct target_ops) <to_verify_memory>: Default to
1488 default_verify_memory.
1489 (simple_verify_memory): New declaration.
1490 * target-delegates.c: Regenerate.
1492 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1494 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1496 2014-05-20 Hui Zhu <hui@codesourcery.com>
1497 Yao Qi <yao@codesourcery.com>
1500 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1501 and change address of sp and pc.
1503 2014-05-19 Tom Tromey <tromey@redhat.com>
1505 * gdbtypes.c (rank_function): Use XNEWVEC.
1506 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1508 2014-05-19 Doug Evans <dje@google.com>
1510 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1511 build_type_unit_groups and moved closer to only caller. Remove
1512 arguments. All references updated. Remove outdated .gdb_index
1514 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1515 build_type_psymtabs_1.
1517 2014-05-19 Doug Evans <dje@google.com>
1519 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1520 n_type_unit_groups, all_type_unit_groups. All uses removed.
1521 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1522 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1523 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1524 (add_type_unit_group_to_table): Delete.
1526 2014-05-19 Doug Evans <dje@google.com>
1528 * eval.c (evaluate_subexp_standard): Add some comments.
1530 2014-05-17 Doug Evans <xdje42@gmail.com>
1532 * progspace.c (remove_program_space): Delete, unused.
1533 * progspace.h (remove_program_space): Ditto.
1535 2014-05-17 Doug Evans <xdje42@gmail.com>
1537 * inferior.c (prune_inferiors): Fix comment.
1538 (remove_inferior_command): Call prune_program_spaces.
1540 2014-05-16 Doug Evans <dje@google.com>
1542 New command line option -D.
1544 * main.c (set_gdb_data_directory): New function.
1545 (captured_main): Recognize -D. Flag error for --data-directory "".
1546 Call set_gdb_data_directory.
1547 (print_gdb_help): Print --data-directory, -D.
1548 * main.h (set_gdb_data_directory): Declare.
1549 * top.c (staged_gdb_datadir): New static global.
1550 (set_gdb_datadir): Call set_gdb_data_directory
1551 (show_gdb_datadir): New function.
1552 (init_main): Update init of data-directory parameter.
1554 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1556 Import the "dirfd" gnulib module.
1557 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1558 * gnulib/aclocal.m4: Update.
1559 * gnulib/config.in: Update.
1560 * gnulib/configure: Update.
1561 * gnulib/import/Makefile.am: Update.
1562 * gnulib/import/Makefile.in: Update.
1563 * gnulib/import/dirfd.c: New.
1564 * gnulib/import/m4/dirfd.m4: New.
1565 * gnulib/import/m4/gnulib-cache.m4: Update.
1566 * gnulib/import/m4/gnulib-comp.m4: Update.
1568 2014-05-16 Pierre Muller <muller@sourceware.org>
1569 Yao Qi <yao@codesourcery.com>
1571 * valprint.c (print_wchar): Move the code on checking whether
1572 W is a printable wide char to the default branch of switch
1573 statement below. Call wchar_printable instead of gdb_iswprint.
1575 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1577 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1578 ldr.w and ldrd instructions.
1580 2014-05-15 Doug Evans <dje@google.com>
1582 * dwarf2read.c (read_structure_type): Delete outdated comments.
1584 2014-05-14 Tom Tromey <tromey@redhat.com>
1586 * macrocmd.c (print_macro_definition): Reindent.
1588 2014-05-13 Doug Evans <xdje42@gmail.com>
1590 * python/py-cmd.c (cmdpy_completer): Add comment.
1591 (completers): Make const.
1593 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1595 * infrun.c (resume): Remove should_resume (unused). Move up
1596 declaration of resume_ptid.
1598 2014-05-13 Tom Tromey <tromey@redhat.com>
1600 * language.h (unop_type_check): Remove.
1601 (binop_type_check): Don't declare.
1603 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1605 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1606 call to regcache_raw_collect.
1608 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1610 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1611 mi_console->quote as the quoting character.
1613 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1615 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1617 2014-04-29 Tom Tromey <tromey@redhat.com>
1619 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1620 "show debug varobj".
1622 2014-05-07 Kyle McMartin <kyle@redhat.com>
1624 Pushed by Joel Brobecker <brobecker@adacore.com>.
1625 * aarch64-tdep.c (aarch64_software_single_step): New function.
1626 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1627 with aarch64_software_single_step.
1629 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1633 2014-05-05 Keith Seitz <keiths@redhat.com>
1635 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1636 variable or history value is successfully parsed.
1638 2014-05-05 Yao Qi <yao@codesourcery.com>
1639 Pedro Alves <palves@redhat.com>
1641 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1642 address of blocks that intersects the requested range. Trim
1643 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1645 * ctf.c (ctf_xfer_partial): Likewise.
1647 2014-05-05 Yao Qi <yao@codesourcery.com>
1649 * printcmd.c (display_command): Remove the check to
1650 target_has_execution.
1652 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1654 * ppcobsd-nat.c: Include "obsd-nat.h".
1655 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1657 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1659 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1661 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1662 and 16-bit signed and unsigned arguments. Update comment.
1663 (stap_parse_probe_arguments): Extend code to handle such
1664 arguments. Use warning instead of complaint to notify about
1665 unrecognized bitness.
1667 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1669 PR breakpoints/16889
1670 * stap-probe.c (stap_parse_probe_arguments): Simplify
1671 check for non-prefixed probes (i.e., probes whose
1672 arguments do not start with "N@"). Always set the
1673 argument type to a sane value.
1675 2014-05-01 David Taylor <dtaylor@emc.com>
1677 * remote.c (compare_sections_command): Add -r option to compare
1678 all loadable read-only sections.
1680 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1682 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1683 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1685 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1686 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1687 Remove unused CORE_ADDR argument. Update all callers.
1689 2014-04-29 Pedro Alves <palves@redhat.com>
1691 * remote.c (struct packet_config) <detect>: Extend comment.
1692 (add_packet_config_cmd): Don't set the config's detect or support
1694 (init_all_packet_configs): Also initialize the config's 'detect'
1696 (reset_all_packet_configs_support): New function.
1697 (remote_open_1): Call reset_all_packet_configs_support instead of
1698 init_all_packet_configs.
1699 (_initialize_remote): Initialize all packet configs. Assert that
1700 all packets have an associated command, except a few known
1703 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1705 * dwarf2read.c (read_subrange_type): Handle dynamic
1706 DW_AT_lower_bound attributes.
1708 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1710 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1711 dynamic bounds before computing its upper bound.
1712 (ada_discrete_type_low_bound): Same as above with the lower bound.
1714 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1716 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1717 range types. Adjust the array handling implementation to
1718 take advantage of this change.
1719 (resolve_dynamic_range): New function, mostly extracted from
1720 resolve_dynamic_bounds.
1721 (resolve_dynamic_array): New function, mostly extracted from
1722 resolve_dynamic_bounds.
1723 (resolve_dynamic_bounds): Delete.
1724 (resolve_dynamic_type): Reimplement. Add handling of
1725 TYPE_CODE_RANGE types.
1727 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1729 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1730 handling of parallel ___XA types.
1732 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1734 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1735 unnecessary second call to static_unwrap_type.
1737 2014-04-27 Hui Zhu <hui@codesourcery.com>
1739 * stack.c (print_frame_info): Call do_gdb_disassembly with
1740 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1742 2014-04-26 Doug Evans <xdje42@gmail.com>
1744 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1746 2014-04-25 Pedro Alves <palves@redhat.com>
1749 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1750 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1751 and newline from built string.
1752 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1753 (linux_ptrace_attach_fail_reason): ... this.
1754 * linux-nat.c (linux_nat_attach): Adjust to use
1755 linux_ptrace_attach_fail_reason.
1757 2014-04-25 Pedro Alves <palves@redhat.com>
1759 * remote.c (struct remote_state): Remove multi_process_aware,
1760 non_stop_aware, cond_tracepoints, cond_breakpoints,
1761 breakpoint_commands, fast_tracepoints, static_tracepoints,
1762 install_in_trace, disconnected_tracing,
1763 enable_disable_tracepoints, string_tracing, and
1764 augmented_libraries_svr4_read fields.
1765 (remote_multi_process_p): Move further below in the file.
1766 (struct packet_config): Add comments.
1767 (update_packet_config): Delete function.
1768 (show_packet_config_cmd): Use packet_config_support.
1769 (add_packet_config_cmd): Use NULL as set callback.
1770 (packet_ok): "set remote foo-packet"-style commands no longer
1771 change config->supported -- adjust.
1772 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1773 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1774 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1775 (PACKET_QNonStop, PACKET_multiprocess_feature)
1776 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1777 (PACKET_DisconnectedTracing_feature)
1778 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1779 (set_remote_protocol_packet_cmd): Delete function.
1780 (packet_config_support, packet_support): New functions.
1781 (set_remote_protocol_Z_packet_cmd): Don't call
1782 update_packet_config.
1783 (remote_query_attached, remote_pass_signals)
1784 (remote_program_signals, remote_threads_info)
1785 (remote_threads_extra_info, remote_start_remote): Use
1787 (remote_start_remote): Use packet_config_support and
1789 (init_all_packet_configs): Set all packets to unknown support,
1790 instead of calling update_packet_config.
1791 (remote_check_symbols): Use packet_support.
1792 (remote_supported_packet): Unconditionally set the packet config's
1794 (remote_multi_process_feature, remote_non_stop_feature)
1795 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1796 (remote_breakpoint_commands_feature)
1797 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1798 (remote_install_in_trace_feature)
1799 (remote_disconnected_tracing_feature)
1800 (remote_enable_disable_tracepoint_feature)
1801 (remote_string_tracing_feature)
1802 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1803 (remote_protocol_features): Adjust to use remote_supported_packet
1804 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1805 "ConditionalTracepoints", "ConditionalBreakpoints",
1806 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1807 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1808 "EnableDisableTracepoints", and "tracenz".
1809 (remote_query_supported): Use packet_support.
1810 (remote_open_1): Adjust.
1811 (extended_remote_attach_1): Use packet_support. Switch on the
1812 result of packet_ok instead of checking whether the packet ended
1814 (remote_vcont_resume): Use packet_support.
1815 (remote_resume, remote_stop_ns, fetch_register_using_p)
1816 (remote_prepare_to_store, store_register_using_P)
1817 (check_binary_download, remote_write_bytes): Use packet_support.
1818 (remote_vkill): Use packet_support. Switch on the result of
1819 packet_ok instead of checking whether the packet ended up
1821 (extended_remote_supports_disable_randomization): Use
1823 (extended_remote_run): Switch on the result of packet_ok instead
1824 of checking whether the packet ended up disabled.
1825 (remote_insert_breakpoint, remote_remove_breakpoint)
1826 (remote_insert_watchpoint, remote_remove_watchpoint)
1827 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1829 (remote_search_memory): Use packet_config_support.
1830 (remote_get_thread_local_address, remote_get_tib_address)
1831 (remote_hostio_send_command, remote_can_execute_reverse): Use
1833 (remote_supports_cond_tracepoints)
1834 (remote_supports_cond_breakpoints)
1835 (remote_supports_fast_tracepoints)
1836 (remote_supports_static_tracepoints)
1837 (remote_supports_install_in_trace)
1838 (remote_supports_enable_disable_tracepoint)
1839 (remote_supports_string_tracing)
1840 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1841 the packet config says the feature is enabled or disabled.
1842 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1843 (remote_get_trace_status): Use packet_support.
1844 (remote_set_disconnected_tracing): Adjust to check whether the
1845 feature is enabled with packet_support.
1846 (remote_set_trace_buffer_size, remote_use_agent)
1847 (remote_can_use_agent, remote_supports_btrace): Use
1849 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1850 Use packet_config_support.
1851 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1852 the packet config says the feature is enabled or disabled.
1853 (set_range_stepping): Use packet_support.
1855 2014-04-25 Tom Tromey <tromey@redhat.com>
1857 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1860 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1862 * NEWS: Mention support for C99 variable length arrays.
1864 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (standard_exc): Expand introductory comment.
1868 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1869 Walfred Tedeschi <walfred.tedeschi@intel.com>
1871 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1873 (amd64_linux_read_description): Add code to handle AVX512 xstate
1874 mask and return respective tdesc.
1875 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1876 and features/i386/x32-avx512-linux.c.
1877 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1878 (amd64_linux_core_read_description): Add code to handle AVX512
1879 xstate mask and return respective tdesc.
1880 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1881 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1883 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1884 (tdesc_amd64_avx512_linux): New prototype.
1885 (tdesc_x32_avx512_linux): Likewise.
1886 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1887 features/i386/x32-avx512.c.
1888 (amd64_ymm_avx512_names): New register names for pseudo
1890 (amd64_ymmh_avx512_names): New register names for raw registers
1892 (amd64_k_names): New register names for K registers.
1893 (amd64_zmmh_names): New register names for ZMM raw registers.
1894 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1895 (amd64_xmm_avx512_names): New register names for XMM16-31
1897 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1899 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1900 if feature is present.
1901 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1902 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1903 (AMD64_NUM_REGS): Adjust to new number of registers.
1904 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1905 registers supplied via XSTATE by AVX512 registers.
1906 (i386_linux_read_description): Add case for AVX512.
1907 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1908 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1909 (i386_linux_core_read_description): Add case for AVX512.
1910 (i386_linux_init_abi): Install supported register note section
1912 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1914 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1915 registers to be number of zmm7h + 1.
1916 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1917 * i386-tdep.c: Include features/i386/i386-avx512.c.
1918 (i386_zmm_names): Add ZMM pseudo register names array.
1919 (i386_zmmh_names): Add ZMM raw register names array.
1920 (i386_k_names): Add K raw register names array.
1921 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1922 registers. AVX512 has 16 more ZMM registers than there are YMM
1924 (i386_zmmh_regnum_p): Add function to look up register number of
1926 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1927 (i386_k_regnum_p): Likewise for K raw registers.
1928 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1929 registers added by AVX512.
1930 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1931 registers added by AVX512.
1932 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1934 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1935 (i386_pseudo_register_name): Add ZMM pseudo registers.
1936 (i386_zmm_type): Construct and return vector registers type for ZMM
1938 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1939 ZMM0-31 pseudo registers and K registers.
1940 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1941 and YMM16-31 registers from register cache.
1942 (i386_pseudo_register_write): Add code to write K, ZMM and
1944 (i386_register_reggroup_p): Add code to include/exclude AVX512
1945 registers in/from respective register groups.
1946 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1947 registers if feature is present in xcr0.
1948 (i386_gdbarch_init): Add code to initialize AVX512 feature
1949 variables in tdep structure, wire in pseudo registers and call
1950 initialize_tdesc_i386_avx512.
1951 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1953 (i386_regnum): Add AVX512 registers.
1954 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1955 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1956 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1957 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1959 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1960 (i386_ymm_avx512_regnum_p): Likewise.
1961 (i386_k_regnum_p): Likewise.
1962 (i386_zmm_regnum_p): Likewise.
1963 (i386_zmmh_regnum_p): Likewise.
1964 * i387-tdep.c : Update year in copyright notice.
1965 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1967 (XSAVE_YMM_AVX512_ADDR): New macro.
1968 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1970 (XSAVE_XMM_AVX512_ADDR): New macro.
1971 (xsave_avx512_k_offset): New table for K register offsets in
1973 (XSAVE_AVX512_K_ADDR): New macro.
1974 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1976 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1977 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1979 (i387_collect_xsave): Add code to collect AVX512 registers from
1981 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1982 of XMM16-31 registers.
1983 (I387_NUM_K_REGS): New define for number of K registers.
1984 (I387_K0_REGNUM): New define for K0 register number.
1985 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1986 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1987 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1989 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1990 (I387_XMM16_REGNUM): New define for XMM16 register number.
1991 (I387_YMM0_REGNUM): New define for YMM0 register number.
1992 (I387_KEND_REGNUM): New define for last K register number.
1993 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1994 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1996 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1998 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2000 * features/Makefile: Add AVX512 related files.
2001 * features/i386/32bit-avx512.xml: New file.
2002 * features/i386/64bit-avx512.xml: Likewise.
2003 * features/i386/amd64-avx512-linux.c: Likewise.
2004 * features/i386/amd64-avx512-linux.xml: Likewise.
2005 * features/i386/amd64-avx512.c: Likewise.
2006 * features/i386/amd64-avx512.xml: Likewise.
2007 * features/i386/i386-avx512-linux.c: Likewise.
2008 * features/i386/i386-avx512-linux.xml: Likewise.
2009 * features/i386/i386-avx512.c: Likewise.
2010 * features/i386/i386-avx512.xml: Likewise.
2011 * features/i386/x32-avx512-linux.c: Likewise.
2012 * features/i386/x32-avx512-linux.xml: Likewise.
2013 * features/i386/x32-avx512.c: Likewise.
2014 * features/i386/x32-avx512.xml: Likewise.
2015 * regformats/i386/amd64-avx512-linux.dat: New file.
2016 * regformats/i386/amd64-avx512.dat: Likewise.
2017 * regformats/i386/i386-avx512-linux.dat: Likewise.
2018 * regformats/i386/i386-avx512.dat: Likewise.
2019 * regformats/i386/x32-avx512-linux.dat: Likewise.
2020 * regformats/i386/x32-avx512.dat: Likewise.
2021 * NEWS: Add note about new support for AVX512.
2024 2014-04-23 Pedro Alves <palves@redhat.com>
2026 * breakpoint.c (insert_bp_location): Tolerate errors if the
2027 breakpoint is set in a user-loaded objfile.
2028 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2029 location is marked shlib_disabled. If the breakpoint is set in a
2030 user-loaded objfile is a GDB-side memory breakpoint, validate it
2031 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2032 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2034 * mem-break.c (memory_validate_breakpoint): New function.
2035 * objfiles.c (userloaded_objfile_contains_address_p): New
2037 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2038 * target.h (memory_validate_breakpoint): New declaration.
2040 2014-04-23 Pedro Alves <palves@redhat.com>
2042 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2043 the breakpoint is set in a shared library, only suppress
2044 errors for software breakpoints, not hardware breakpoints.
2046 2014-04-22 Pedro Alves <palves@redhat.com>
2048 * infrun.c (schedlock_applies): New function, factored out from
2049 find_thread_needs_step_over.
2050 (find_thread_needs_step_over): Use it.
2051 (switch_back_to_stepped_thread): Always clear trap_expected if the
2052 step over is finished. Return early if scheduler locking applies.
2053 Look for the stepping thread and a potential step-over thread with
2055 (currently_stepping_or_nexting_callback): Delete.
2057 2014-04-22 Nick Clifton <nickc@redhat.com>
2059 * NEWS: Mention that ARM sim now supports tracing.
2061 2014-04-22 Yao Qi <yao@codesourcery.com>
2063 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2065 * tracefile.c (tracefile_fetch_registers): ... it. New
2067 * tracefile.h (tracefile_fetch_registers): Declare.
2068 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2069 tracefile_fetch_registers.
2071 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2074 * windows-nat.c (thread_rec): Don't display a warning when
2075 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2076 fails for any reason, set th->suspended to -1, so that we don't
2077 try to resume such a thread. Also, don't return NULL in these
2078 cases, to avoid completely ruin the session due to "PC register is
2079 not available" error.
2080 (do_windows_fetch_inferior_registers): Check errors in
2081 GetThreadContext call.
2082 (windows_continue): Accept an additional argument KILLED; if not
2083 zero, ignore errors in the SetThreadContext call, since the
2084 inferior was killed and is shutting down.
2085 (windows_resume, get_windows_debug_event)
2086 (windows_create_inferior, windows_mourn_inferior)
2087 (windows_kill_inferior): All callers of windows_continue changed
2088 to adjust to its new calling sequence.
2090 2014-04-19 Yao Qi <yao@codesourcery.com>
2092 * ctf.c (ctf_open): Call post_create_inferior.
2094 2014-04-19 Yao Qi <yao@codesourcery.com>
2096 * ctf.c (handle_id): New static variable.
2097 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2098 value. Get the declaration of event "register" and get length
2099 of field "contents".
2101 2014-04-19 Yao Qi <yao@codesourcery.com>
2103 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2105 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2107 * valops.c (oload_method_static): Remove unnecessary argument
2108 METHOD. Update all callers.
2110 2014-04-18 Pedro alves <palves@redhat.com>
2111 Tom Tromey <tromey@redhat.com>
2114 * frame.c (get_prev_frame_1): Rename to ...
2115 (get_prev_frame_always): ... this, and make extern. Adjust.
2116 (skip_artificial_frames): Use get_prev_frame_always.
2117 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2118 (get_frame_unwind_stop_reason): Adjust to rename.
2119 * frame.h (get_prev_frame_always): Declare.
2120 * inline-frame.c: Include frame.h.
2121 (inline_frame_this_id): Use get_prev_frame_always.
2123 2014-04-18 Tristan Gingold <gingold@adacore.com>
2125 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2126 code by using bfd_mach_o_get_base_address.
2128 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2130 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2131 (spu_ax_pseudo_register_collect): New function.
2132 (spu_ax_pseudo_register_push_stack): Likewise.
2133 (spu_dwarf_reg_to_regnum): Likewise.
2134 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2136 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2138 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2139 Replace FRAME argument with FRAME_ID.
2140 * gdbarch.c, gdbarch.h: Regenerate.
2141 * findvar.c (default_value_from_register): Add GDBARCH argument;
2142 replace FRAME by FRAME_ID. No longer call get_frame_id.
2143 (value_from_register): Update call to gdbarch_value_from_register.
2144 * value.h (default_value_from_register): Update prototype.
2145 * s390-linux-tdep.c (s390_value_from_register): Update interface
2146 and call to default_value_from_register.
2147 * spu-tdep.c (spu_value_from_register): Likewise.
2149 * findvar.c (address_from_register): Remove TYPE argument.
2150 Do not call value_from_register; use gdbarch_value_from_register
2151 with null_frame_id instead.
2152 * value.h (address_from_register): Update prototype.
2153 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2154 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2155 address_from_register interface change.
2157 2014-04-17 Yao Qi <yao@codesourcery.com>
2159 * gdbtypes.h: Update comments to link to types and macros'
2162 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2164 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2166 2014-04-16 Keith Seitz <keiths@redhat.com>
2169 * dwarf2read.c (skip_one_die): Check that all relative-offset
2170 sibling DIEs fall within range of the current reader's buffer.
2171 (read_partial_die): Likewise.
2173 2014-04-16 Keith Seitz <keiths@redhat.com>
2176 * cp-namespace.c (lookup_symbol_file): If the type name of
2177 `this' is NULL, return immediately.
2179 2014-04-14 Keith Seitz <keiths@redhat.com>
2182 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2183 from symbol_matches_domain in symtab.c. All local callers
2184 of symbol_matches_domain updated.
2185 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2186 search STRUCT_DOMAIN.
2187 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2188 independently. standard_lookup will do that automatically.
2189 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2190 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2191 (cp_lookup_symbol_in_namespace): Likewise.
2192 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2193 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2194 may return a STRUCT_DOMAIN match.
2195 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2196 * cp-support.c: Include language.h.
2197 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2199 * psymtab.c (match_partial_symbol): Compare the requested
2200 domain with the symbol's domain directly.
2201 (lookup_partial_symbol): Likewise.
2202 * symtab.c (lookup_symbol_in_language): Explain when/why
2203 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2204 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2205 appropriate languages.
2206 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2207 and moved to ada-lang.c
2208 (lookup_block_symbol): Explain that this function only returns
2209 symbol matching the requested DOMAIN.
2210 Compare the requested domain with the symbol's domain directly.
2211 (iterate_over_symbols): Compare the requested domain with the
2212 symbol's domain directly.
2213 * symtab.h (symbol_matches_domain): Remove.
2215 2014-04-14 Tom Tromey <tromey@redhat.com>
2218 * c-exp.y (type_aggregate_p): New function.
2219 (qualified_name, classify_inner_name): Use it.
2220 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2221 and TYPE_TARGET_TYPE of an enum type.
2222 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2224 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2225 handle TYPE_DECLARED_CLASS.
2226 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2228 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2229 * valops.c (enum_constant_from_type): New function.
2230 (value_aggregate_elt): Use it.
2231 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2234 2014-04-14 Tom Tromey <tromey@redhat.com>
2236 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2237 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2239 * value.h (value_aggregate_elt): Update.
2241 2014-04-14 Tom Tromey <tromey@redhat.com>
2243 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2245 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2247 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2248 (evaluate_subexp_standard): Pass noside argument.
2249 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2250 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2251 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2252 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2253 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2255 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2257 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2258 points to a constant blob.
2260 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2262 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2263 property and store it as the high bound and flag the range accordingly.
2264 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2265 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2266 * gdbtypes.h (enum range_flags): New enum.
2267 (struct range_bounds): Add flags member.
2269 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2271 * c-typeprint.c (c_type_print_varspec_suffix): Added
2272 check for not yet resolved high bound. If unresolved, print
2273 "variable length" string to the console instead of random
2276 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2278 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2280 (ada_template_to_fixed_record_type_1): Likewise.
2281 (ada_to_fixed_type_1): Likewise.
2282 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2283 (cp_print_value): Likewise.
2284 * d-valprint.c (dynamic_array_type): Likewise.
2285 * findvar.c (address_of_variable): Likewise.
2286 * jv-valprint.c (java_value_print): Likewise.
2287 * valops.c (value_ind): Likewise.
2288 * value.c (coerce_ref): Likewise.
2290 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2292 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2293 value and retrieve the dynamic type size.
2295 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2297 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2298 passed to sizeof is dynamic evaluate the argument to compute the length.
2300 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2301 Joel Brobecker <brobecker@adacore.com>
2303 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2304 (dwarf2_evaluate_property): New function.
2305 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2306 * dwarf2read.c (attr_to_dynamic_prop): New function.
2307 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2309 * gdbtypes.c: Include dwarf2loc.h.
2310 (is_dynamic_type): New function.
2311 (resolve_dynamic_type): New function.
2312 (resolve_dynamic_bounds): New function.
2313 (get_type_length): New function.
2314 (check_typedef): Use get_type_length to compute type length.
2315 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2316 (TYPE_LOW_BOUND_KIND): New macro.
2317 (is_dynamic_type): New function prototype.
2318 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2319 to resolve dynamic properties of the type. Update comment.
2320 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2322 2014-04-14 Richard Henderson <rth@redhat.com>
2324 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2326 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2327 Doug Evans <xdje42@gmail.com>
2329 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2330 dereference TYPE_CODE_REF values.
2332 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2334 Revert the following changes due to regressions:
2336 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2337 (dwarf2_evaluate_property): New function.
2338 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2339 * dwarf2read.c (attr_to_dynamic_prop): New function.
2340 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2342 * gdbtypes.c: Include dwarf2loc.h.
2343 (is_dynamic_type): New function.
2344 (resolve_dynamic_type): New function.
2345 (resolve_dynamic_bounds): New function.
2346 (get_type_length): New function.
2347 (check_typedef): Use get_type_length to compute type length.
2348 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2349 (TYPE_LOW_BOUND_KIND): New macro.
2350 (is_dynamic_type): New function prototype.
2351 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2352 to resolve dynamic properties of the type. Update comment.
2353 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2355 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2356 passed to sizeof is dynamic evaluate the argument to compute the length.
2358 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2359 value and retrieve the dynamic type size.
2361 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2362 (ada_template_to_fixed_record_type_1): Likewise.
2363 (ada_to_fixed_type_1): Likewise.
2364 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2365 (cp_print_value): Likewise.
2366 * d-valprint.c (dynamic_array_type): Likewise.
2367 * eval.c (evaluate_subexp_with_coercion): Likewise.
2368 * findvar.c (address_of_variable): Likewise.
2369 * jv-valprint.c (java_value_print): Likewise.
2370 * valops.c (value_ind): Likewise.
2371 * value.c (coerce_ref): Likewise.
2373 * c-typeprint.c (c_type_print_varspec_suffix): Added
2374 check for not yet resolved high bound. If unresolved, print
2375 "variable length" string to the console instead of random
2378 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2379 property and store it as the high bound and flag the range accordingly.
2380 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2381 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2382 * gdbtypes.h (enum range_flags): New enum.
2383 (struct range_bounds): Add flags member.
2385 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2386 points to a constant blob.
2388 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2389 (evaluate_subexp_standard): Pass noside argument.
2390 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2391 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2392 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2393 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2394 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2396 2014-04-11 Keith Seitz <keiths@redhat.com>
2399 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2400 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2403 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2405 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2406 (evaluate_subexp_standard): Pass noside argument.
2407 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2408 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2409 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2410 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2411 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2413 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2415 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2416 points to a constant blob.
2418 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2420 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2421 property and store it as the high bound and flag the range accordingly.
2422 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2423 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2424 * gdbtypes.h (enum range_flags): New enum.
2425 (struct range_bounds): Add flags member.
2427 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2429 * c-typeprint.c (c_type_print_varspec_suffix): Added
2430 check for not yet resolved high bound. If unresolved, print
2431 "variable length" string to the console instead of random
2434 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2436 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2437 (ada_template_to_fixed_record_type_1): Likewise.
2438 (ada_to_fixed_type_1): Likewise.
2439 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2440 (cp_print_value): Likewise.
2441 * d-valprint.c (dynamic_array_type): Likewise.
2442 * eval.c (evaluate_subexp_with_coercion): Likewise.
2443 * findvar.c (address_of_variable): Likewise.
2444 * jv-valprint.c (java_value_print): Likewise.
2445 * valops.c (value_ind): Likewise.
2446 * value.c (coerce_ref): Likewise.
2448 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2450 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2451 value and retrieve the dynamic type size.
2453 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2455 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2456 passed to sizeof is dynamic evaluate the argument to compute the length.
2458 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2460 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2461 (dwarf2_evaluate_property): New function.
2462 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2463 * dwarf2read.c (attr_to_dynamic_prop): New function.
2464 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2466 * gdbtypes.c: Include dwarf2loc.h.
2467 (is_dynamic_type): New function.
2468 (resolve_dynamic_type): New function.
2469 (resolve_dynamic_bounds): New function.
2470 (get_type_length): New function.
2471 (check_typedef): Use get_type_length to compute type length.
2472 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2473 (TYPE_LOW_BOUND_KIND): New macro.
2474 (is_dynamic_type): New function prototype.
2475 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2476 to resolve dynamic properties of the type. Update comment.
2477 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2479 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2481 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2482 declaring high/low bounds and change uses accordingly. Call
2483 create_range_type instead of create_static_range_type.
2484 * gdbtypes.c (create_range_type): New function.
2485 (create_range_type): Convert bounds into struct bound_prop and pass
2486 them to create_range_type.
2487 * gdbtypes.h (struct bound_prop): New struct.
2488 (create_range_type): New function prototype.
2489 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2490 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2491 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2493 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2495 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2497 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2498 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2499 * ada-lang.c: All uses of create_range_type updated.
2500 * coffread.c: All uses of create_range_type updated.
2501 * dwarf2read.c: All uses of create_range_type updated.
2502 * f-exp.y: All uses of create_range_type updated.
2503 * m2-valprint.c: All uses of create_range_type updated.
2504 * mdebugread.c: All uses of create_range_type updated.
2505 * stabsread.c: All uses of create_range_type updated.
2506 * valops.c: All uses of create_range_type updated.
2507 * valprint.c: All uses of create_range_type updated.
2509 2014-04-10 Pedro Alves <palves@redhat.com>
2511 * breakpoint.c (single_step_breakpoints)
2512 (single_step_gdbarch): Move up in the file.
2513 (one_breakpoint_xfer_memory): New function, factored out from ...
2514 (breakpoint_xfer_memory): ... here. Also process single-step
2517 2014-04-09 Tristan Gingold <gingold@adacore.com>
2519 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2521 (darwin_decode_exception_message): Free port only after use.
2523 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2525 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2526 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2527 when setting the size of call_length.
2529 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2531 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2532 dereference TYPE_CODE_REF values.
2534 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2536 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2537 end of warning message.
2539 2014-04-03 Doug Evans <dje@google.com>
2541 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2542 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2544 2014-04-02 Alan Modra <amodra@gmail.com>
2546 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2547 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2548 (struct symbol_file_add_from_memory_args): Add size field.
2549 (find_vdso_size): New function.
2550 (add_vsyscall_page): Attempt to find vdso size.
2552 2014-04-01 Doug Evans <dje@google.com>
2554 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2556 2014-04-01 Tristan Gingold <gingold@adacore.com>
2558 * darwin-nat.c (darwin_encode_reply): Add prototype.
2559 (darwin_decode_exception_message): Reply to unknown inferiors.
2560 (darwin_decode_message): Handle message by id. Ignore message
2561 to unknown inferior.
2562 (darwin_wait): Discard unknown messages, add debug trace.
2564 2014-03-31 Doug Evans <dje@google.com>
2566 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2569 2014-03-31 Doug Evans <dje@google.com>
2571 New option "set print symbol-loading".
2573 * solib.c (solib_read_symbols): Only print symbol loading messages
2575 (solib_add): If symbol loading is in "brief" mode, notify user
2576 symbols are being loaded.
2577 (reload_shared_libraries_1): Ditto.
2578 * symfile.c (print_symbol_loading_off): New static global.
2579 (print_symbol_loading_brief): New static global.
2580 (print_symbol_loading_full): New static global.
2581 (print_symbol_loading_enums): New static global.
2582 (print_symbol_loading): New static global.
2583 (print_symbol_loading_p): New function.
2584 (symbol_file_add_with_addrs): Only print symbol loading messages
2586 (_initialize_symfile): Register "print symbol-loading" set/show
2588 * symfile.h (print_symbol_loading_p): Declare.
2590 2014-03-30 Doug Evans <xdje42@gmail.com>
2592 * infrun.c (set_last_target_status): New function.
2593 (handle_inferior_event): Call it.
2595 2014-03-30 Doug Evans <xdje42@gmail.com>
2597 * inferior.h (enum stop_kind): Improve comment.
2599 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2601 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2602 a reference, strip the reference layer before calling
2603 the lang_ops value_has_mutated callback.
2605 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2607 Remove some globals from our parser.
2608 * language.c (unk_lang_parser): Add "struct parser_state"
2610 * language.h (struct language_defn) <la_parser>: Likewise.
2611 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2612 (initialize_expout): Add "struct parser_state" argument.
2613 Rewrite function to use the parser state.
2614 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2615 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2616 write_exp_elt_longcst, write_exp_elt_dblcst,
2617 write_exp_elt_decfloatcst, write_exp_elt_type,
2618 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2619 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2620 write_dollar_variable): Likewise.
2621 (parse_exp_in_context_1): Use parser state.
2622 (insert_type_address_space): Add "struct parser_state" argument.
2624 (increase_expout_size): New function.
2625 * parser-defs.h: Forward declare "struct language_defn" and
2626 "struct parser_state".
2627 (expout, expout_size, expout_ptr): Remove extern declarations.
2628 (parse_gdbarch, parse_language): Rewrite macro declarations to
2629 accept the parser state.
2630 (struct parser_state): New struct.
2631 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2632 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2633 write_exp_elt_decfloatcst, write_exp_elt_type,
2634 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2635 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2636 write_exp_msymbol, write_dollar_variable,
2637 mark_struct_expression, insert_type_address_space): Add "struct
2638 parser_state" argument.
2639 (increase_expout_size): New function.
2640 * utils.c (do_clear_parser_state): New function.
2641 (make_cleanup_clear_parser_state): Likewise.
2642 * utils.h (make_cleanup_clear_parser_state): New function
2644 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2645 Update calls to write_exp* in order to pass the parser state.
2646 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2647 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2648 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2649 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2650 * stap-probe.c (stap_parse_register_operand): Likewise.
2651 (stap_parse_single_operand): Likewise.
2652 (stap_parse_argument_1): Likewise.
2653 (stap_parse_argument): Use parser state.
2654 * stap-probe.h: Include "parser-defs.h".
2655 (struct stap_parse_info) <pstate>: New field.
2656 * c-exp.y (parse_type): Rewrite to use parser state.
2657 (yyparse): Redefine to c_parse_internal.
2658 (pstate): New global variable.
2659 (parse_number): Add "struct parser_state" argument.
2660 (write_destructor_name): Likewise.
2661 (type_exp): Update calls to write_exp* and similars in order to
2663 (exp1, exp, variable, qualified_name, space_identifier,
2664 typename, typebase): Likewise.
2665 (write_destructor_name, parse_number, lex_one_token,
2666 classify_name, classify_inner_name, c_parse): Add "struct
2667 parser_state" argument. Update function to use parser state.
2668 * c-lang.h: Forward declare "struct parser_state".
2669 (c_parse): Add "struct parser_state" argument.
2670 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2671 (yyparse): Redefine macro to ada_parse_internal.
2672 (pstate): New variable.
2673 (write_int, write_object_renaming, write_var_or_type,
2674 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2675 type_int, type_long, type_long_long, type_float, type_double,
2676 type_long_double, type_char, type_boolean, type_system_address):
2677 Add "struct parser_state" argument.
2678 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2679 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2680 var_or_type, aggregate, aggregate_component_list,
2681 positional_list, others, component_group,
2682 component_associations): Update calls to write_exp* and similar
2683 functions in order to use parser state.
2684 (ada_parse, write_var_from_sym, write_int,
2685 write_exp_op_with_string, write_object_renaming,
2686 find_primitive_type, write_selectors, write_ambiguous_var,
2687 write_var_or_type, write_name_assoc, type_int, type_long,
2688 type_long_long, type_float, type_double, type_long_double,
2689 type_char, type_boolean, type_system_address): Add "struct
2690 parser_state" argument. Adjust function to use parser state.
2691 * ada-lang.c (parse): Likewise.
2692 * ada-lang.h: Forward declare "struct parser_state".
2693 (ada_parse): Add "struct parser_state" argument.
2694 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2695 calls to both functions.
2696 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2698 (yyparse): Redefine macro to f_parse_internal.
2699 (pstate): New variable.
2700 (parse_number): Add "struct parser_state" argument.
2701 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2702 and similars in order to use parser state.
2703 (parse_number): Adjust code to use parser state.
2705 (f_parse): New function.
2706 * f-lang.h: Forward declare "struct parser_state".
2707 (f_parse): Add "struct parser_state" argument.
2708 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2710 (yyparse): Redefine macro for java_parse_internal.
2711 (pstate): New variable.
2712 (push_expression_name, push_expression_name, insert_exp): Add
2713 "struct parser_state" argument.
2714 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2715 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2716 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2717 PostIncrementExpression, PostDecrementExpression,
2718 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2719 UnaryExpressionNotPlusMinus, CastExpression,
2720 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2721 RelationalExpression, EqualityExpression, AndExpression,
2722 ExclusiveOrExpression, InclusiveOrExpression,
2723 ConditionalAndExpression, ConditionalOrExpression,
2724 ConditionalExpression, Assignment, LeftHandSide): Update
2725 calls to write_exp* and similars in order to use parser state.
2726 (parse_number): Ajust code to use parser state.
2728 (java_parse): New function.
2729 (push_variable): Add "struct parser_state" argument. Adjust
2730 code to user parser state.
2731 (push_fieldnames, push_qualified_expression_name,
2732 push_expression_name, insert_exp): Likewise.
2733 * jv-lang.h: Forward declare "struct parser_state".
2734 (java_parse): Add "struct parser_state" argument.
2735 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2737 (yyparse): Redefine macro to m2_parse_internal.
2738 (pstate): New variable.
2739 (type_exp, exp, fblock, variable, type): Update calls to
2740 write_exp* and similars to use parser state.
2742 (m2_parse): New function.
2743 * m2-lang.h: Forward declare "struct parser_state".
2744 (m2_parse): Add "struct parser_state" argument.
2745 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2746 * objc-lang.h: Forward declare "struct parser_state".
2747 (end_msglist): Add "struct parser_state" argument.
2748 * p-exp.y (parse_type): Rewrite macro to use parser state.
2749 (yyparse): Redefine macro to pascal_parse_internal.
2750 (pstate): New variable.
2751 (parse_number): Add "struct parser_state" argument.
2752 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2753 write_exp* and similars in order to use parser state.
2754 (parse_number, yylex): Adjust code to use parser state.
2755 (pascal_parse): New function.
2756 * p-lang.h: Forward declare "struct parser_state".
2757 (pascal_parse): Add "struct parser_state" argument.
2758 * go-exp.y (parse_type): Rewrite macro to use parser state.
2759 (yyparse): Redefine macro to go_parse_internal.
2760 (pstate): New variable.
2761 (parse_number): Add "struct parser_state" argument.
2762 (type_exp, exp1, exp, variable, type): Update calls to
2763 write_exp* and similars in order to use parser state.
2764 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2765 to use parser state.
2766 (go_parse): Likewise.
2767 * go-lang.h: Forward declare "struct parser_state".
2768 (go_parse): Add "struct parser_state" argument.
2770 2014-03-27 Doug Evans <dje@google.com>
2772 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2774 2014-03-27 Doug Evans <dje@google.com>
2776 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2777 Remove argument abbrev_section. All callers updated.
2779 2014-03-27 Doug Evans <dje@google.com>
2781 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2782 addr_base, ranges_base.
2784 2014-03-26 Keith Seitz <keiths@redhat.com>
2786 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2787 types, not VAR_DOMAIN.
2789 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2791 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2793 * features/nios2-linux.c: Regenerated.
2794 * features/nios2.c: Regenerated.
2796 2014-03-25 Pedro Alves <palves@redhat.com>
2798 * cli/cli-script.c (script_from_file): Force the interpreter to
2801 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2803 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2804 small stack allocation.
2806 2014-03-24 Tristan Gingold <gingold@adacore.com>
2808 * darwin-nat.c (exc_server): Remove unused prototype.
2809 (darwin_dump_message): Correctly display data on x86_64.
2810 (darwin_encode_reply): Fix style.
2811 Add comments and fix indentation.
2813 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2815 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2817 2014-03-22 Doug Evans <xdje42@gmail.com>
2819 * infcmd.c: Whitespace fixes.
2820 (interrupt_command): Merge two function comments into one.
2822 2014-03-22 Doug Evans <xdje42@gmail.com>
2824 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2827 2014-03-22 Yao Qi <yao@codesourcery.com>
2829 * remote.c (target_read_live_memory): Remove.
2830 (memory_xfer_live_readonly_partial): Rename it to
2831 remote_xfer_live_readonly_partial. Remove argument 'object'.
2832 All callers updated. Call remote_read_bytes_1
2833 instead of target_read_live_memory.
2834 * tracepoint.c (set_traceframe_number): Remove.
2835 (make_cleanup_restore_traceframe_number): Likewise .
2836 * tracepoint.h (set_traceframe_number): Remove declaration.
2837 (make_cleanup_restore_traceframe_number): Likewise.
2839 2014-03-22 Yao Qi <yao@codesourcery.com>
2841 * remote.c (remote_read_bytes): Move code on reading from the
2843 (remote_read_bytes_1): ... here. New function.
2845 2014-03-22 Yao Qi <yao@codesourcery.com>
2847 * ctf.c (ctf_xfer_partial): Check the return value of
2848 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2849 return TARGET_XFER_UNAVAILABLE.
2850 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2851 * target.c (target_read_live_memory): Move it to remote.c.
2852 (memory_xfer_live_readonly_partial): Likewise.
2853 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2854 * remote.c (target_read_live_memory): Moved from target.c.
2855 (memory_xfer_live_readonly_partial): Likewise.
2856 (remote_read_bytes): Factored out from
2857 memory_xfer_partial_1.
2859 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2861 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2864 2014-03-21 Pedro Alves <palves@redhat.com>
2866 * infrun.c (normal_stop): Extend comment.
2868 2014-03-21 Hui Zhu <hui@codesourcery.com>
2869 Pedro Alves <palves@redhat.com>
2871 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2873 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2874 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2875 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2877 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2879 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2880 `z' formatted output modifier.
2882 2014-03-20 Tom Tromey <tromey@redhat.com>
2883 Sergio Durigan Junior <sergiodj@redhat.com>
2885 * probe.c (parse_probes): Turn assert into an ordinary error.
2886 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2887 exceptions when parsing probes. Rearrange the code for clarity.
2889 2014-03-20 Tom Tromey <tromey@redhat.com>
2892 * top.c (execute_command): Only dispatch events if the command
2895 2014-03-20 Tom Tromey <tromey@redhat.com>
2898 * infcall.c: Include event-top.h.
2899 (run_inferior_call): Call async_disable_stdin if needed.
2901 2014-03-20 Pedro Alves <palves@redhat.com>
2903 * infrun.c (prepare_to_proceed): Delete.
2904 (thread_still_needs_step_over): New function.
2905 (find_thread_needs_step_over): New function.
2906 (proceed): If the current thread needs a step-over, set its
2907 steping_over_breakpoint flag. Adjust to use
2908 find_thread_needs_step_over instead of prepare_to_proceed.
2909 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2910 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2912 (switch_back_to_stepped_thread): Step over breakpoints of all
2913 threads not the stepping thread, before switching back to the
2916 2014-03-20 Pedro Alves <palves@redhat.com>
2918 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2920 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2921 * infrun.c (saved_singlestep_ptid)
2922 (stepping_past_singlestep_breakpoint): Delete.
2923 (resume): Remove stepping_past_singlestep_breakpoint handling.
2924 (proceed): Store the prev_pc of the stepping thread too.
2925 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2927 (enum infwait_states): Delete infwait_thread_hop_state.
2928 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2930 (handle_inferior_event): Adjust.
2931 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2932 handling and the thread-hop code. Before removing single-step
2933 breakpoints, check whether the thread hit a single-step breakpoint
2934 of another thread. If it did, the trap is not a random signal.
2935 (switch_back_to_stepped_thread): If the event thread hit a
2936 single-step breakpoint, unblock it before switching to the
2937 stepping thread. Handle the case of the stepped thread having
2939 (keep_going): Handle the case of the current thread moving past a
2940 single-step breakpoint.
2942 2014-03-20 Pedro Alves <palves@redhat.com>
2945 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2946 are being stepped over.
2947 (breakpoint_address_match): Make extern.
2948 * breakpoint.h (breakpoint_address_match): New declaration.
2949 * inferior.h (stepping_past_instruction_at): New declaration.
2950 * infrun.c (struct step_over_info): New type.
2951 (step_over_info): New global.
2952 (set_step_over_info, clear_step_over_info)
2953 (stepping_past_instruction_at): New functions.
2954 (handle_inferior_event): Clear the step-over info when
2955 trap_expected is cleared.
2956 (resume): Remove now stale comment.
2957 (clear_proceed_status): Clear step-over info.
2958 (proceed): Adjust step-over handling to set or clear the step-over
2959 info instead of removing all breakpoints.
2960 (handle_signal_stop): When setting up a thread-hop, don't remove
2962 (stop_stepping): Clear step-over info.
2963 (keep_going): Adjust step-over handling to set or clear step-over
2964 info and then always inserting breakpoints, instead of removing
2965 all breakpoints when stepping over one.
2967 2014-03-20 Pedro Alves <palves@redhat.com>
2969 * infrun.c (previous_inferior_ptid): Adjust comment.
2970 (deferred_step_ptid): Delete.
2971 (infrun_thread_ptid_changed, prepare_to_proceed)
2972 (init_wait_for_inferior): Adjust.
2973 (handle_signal_stop): Delete deferred_step_ptid handling.
2975 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2978 * defs.h (sync_quit_force_run): New declaration.
2979 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2980 * event-top.c (async_sigterm_handler): New declaration.
2981 (async_sigterm_token): New variable.
2982 (async_init_signals): Create also async_sigterm_token.
2983 (async_sigterm_handler): New function.
2984 (sync_quit_force_run): New variable.
2985 (handle_sigterm): Replace quit_force call by other calls.
2986 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2988 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2990 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2991 offset into SPE pseudo registers.
2993 2014-03-18 Pedro Alves <palves@redhat.com>
2996 * inferior.h (print_stop_event): Declare.
2997 * infrun.c (print_stop_event): New, factored out from ...
2998 (normal_stop): ... this.
2999 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3000 of bpstat_print/print_stack_frame.
3002 2014-03-17 Tom Tromey <tromey@redhat.com>
3004 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3006 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3008 * ada-lang.c (decode_constrained_packed_array): Perform a
3009 minimal coercion for reference with coerce_ref instead of
3012 2014-03-17 Tristan Gingold <gingold@adacore.com>
3014 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3015 (darwin_solib_create_inferior_hook): Emit a warning if version
3018 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3020 * python/py-value.c (get_field_flag): Cast flag_name argument to
3021 PyObject_GetAttrString to support Python 2.4.
3023 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3026 (Global Maintainers): Remove Jan Kratochvil.
3028 2014-03-14 Pedro Alves <palves@redhat.com>
3030 * inferior.h (terminal_ours_for_output): Rename to ...
3031 (child_terminal_ours_for_output): ... this.
3032 (terminal_save_ours): Rename to ...
3033 (child_terminal_save_ours): ... this.
3034 (terminal_ours): Rename to ...
3035 (child_terminal_ours): ... this.
3036 (terminal_inferior): Rename to ...
3037 (child_terminal_inferior): ... this.
3038 (terminal_init_inferior): Rename to ...
3039 (child_terminal_init_inferior): ... this.
3040 (terminal_init_inferior_with_pgrp): Rename to ...
3041 (child_terminal_init_inferior_with_pgrp): ... this.
3042 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3043 (child_terminal_init_with_pgrp): ... this.
3044 (terminal_save_ours): Rename to ...
3045 (child_terminal_save_ours): ... this.
3046 (terminal_init_inferior): Rename to ...
3047 (child_terminal_init): ... this. Adjust.
3048 (terminal_inferior): Rename to ...
3049 (child_terminal_inferior): ... this.
3050 (terminal_ours_for_output): Rename to ...
3051 (child_terminal_ours_for_output): ... this. Adjust.
3052 (terminal_ours): Rename to ...
3053 (child_terminal_ours): ... this.
3054 (terminal_ours_1): Rename to ...
3055 (child_terminal_ours_1): ... this. Adjust.
3056 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3057 * windows-nat.c (do_initial_windows_stuff): Adjust.
3058 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3059 (gnu_terminal_init): ... this. Adjust.
3060 (gnu_target): Adjust.
3061 * inf-child.c (inf_child_target): Adjust.
3063 2014-03-13 Doug Evans <xdje42@gmail.com>
3066 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3069 2014-03-13 Doug Evans <xdje42@gmail.com>
3071 * value.c (record_latest_value): Call release_value_or_incref
3072 instead of release_value.
3074 2014-03-13 Pedro Alves <palves@redhat.com>
3076 * procfs.c (procfs_target): Don't override to_shortname,
3077 to_longname or to_doc.
3079 2014-03-13 Pedro Alves <palves@redhat.com>
3081 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3082 Unix in user visible strings.
3084 2014-03-12 Stan Shebs <stan@codesourcery.com>
3086 * gdbtypes.h: Annotate comments for Doxygen, add a page
3087 block comment with some general info.
3089 2014-03-12 Pedro Alves <palves@redhat.com>
3091 * infcmd.c (prepare_execution_command): New function, factored out
3092 from several execution commands.
3093 (run_command_1, continue_command, step_1, jump_command)
3094 (signal_command, until_command, advance_command, finish_command)
3095 (attach_command): Use prepare_execution_command.
3097 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3099 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3102 (struct arm_linux_thread_points): Removed.
3103 (struct arm_linux_process_info): New.
3104 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3105 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3106 (arm_linux_find_breakpoints_by_tid): Removed.
3107 (struct arch_lwp_info): New.
3108 (arm_linux_find_process_pid): New functions.
3109 (arm_linux_add_process): New functions.
3110 (arm_linux_process_info_get): New functions.
3111 (arm_linux_forget_process): New function.
3112 (arm_linux_get_debug_reg_state): New function.
3113 (struct update_registers_data): New.
3114 (update_registers_callback): New function.
3115 (arm_linux_insert_hw_breakpoint1): Updated.
3116 (arm_linux_remove_hw_breakpoint1): Updated.
3117 (arm_linux_insert_hw_breakpoint): Updated.
3118 (arm_linux_remove_hw_breakpoint): Updated.
3119 (arm_linux_insert_watchpoint): Updated.
3120 (arm_linux_remove_watchpoint): Updated.
3121 (arm_linux_new_thread): Updated.
3122 (arm_linux_prepare_to_resume): New function.
3123 (arm_linux_new_fork): New function.
3124 (_initialize_arm_linux_nat): Updated.
3126 2014-03-12 Pedro Alves <palves@redhat.com>
3128 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3130 2014-03-12 Tom Tromey <tromey@redhat.com>
3132 * inf-child.c (return_zero): New function.
3133 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3134 * aix-thread.c (aix_thread_inferior_created): New function.
3135 (aix_thread_attach): Remove.
3136 (init_aix_thread_ops): Don't set to_attach.
3137 (_initialize_aix_thread): Register inferior_created observer.
3138 * corelow.c (init_core_ops): Don't set to_attach or
3140 * exec.c (init_exec_ops): Don't set to_attach or
3142 * infcmd.c (run_command_1): Use find_run_target. Make direct
3144 (attach_command): Use find_attach_target. Make direct target
3146 * record-btrace.c (init_record_btrace_ops): Don't set
3148 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3150 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3151 set to_create_inferior.
3152 * target.c (complete_target_initialization): Add assertion.
3153 (target_create_inferior): Remove.
3154 (find_default_attach, find_default_create_inferior): Remove.
3155 (find_attach_target, find_run_target): New functions.
3156 (find_default_is_async_p, find_default_can_async_p)
3157 (target_supports_non_stop, target_attach): Remove.
3158 (init_dummy_target): Don't set to_create_inferior or
3159 to_supports_non_stop.
3160 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3161 TARGET_DEFAULT_FUNC.
3162 <to_create_inferior>: Add comment.
3163 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3164 TARGET_DEFAULT_RETURN.
3165 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3166 (find_attach_target, find_run_target): Declare.
3167 (target_create_inferior): Remove.
3168 (target_has_execution_1): Update comment.
3169 (target_supports_non_stop): Remove.
3170 * target-delegates.c: Rebuild.
3172 2014-03-12 Pedro Alves <palves@redhat.com>
3174 * inf-child.h: Update comment to not mention Unix.
3176 2014-03-12 Pedro Alves <palves@redhat.com>
3178 * inf-child.c: Update top comment to not mention Unix. Add
3179 generic comment describing how this target is meant to be used.
3180 (inf_child_post_attach, inf_child_post_startup_inferior)
3181 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3184 2014-03-12 Pedro Alves <palves@redhat.com>
3186 * nto-procfs.c: Include inf-child.h.
3187 (procfs_ops): Delete global.
3188 (procfs_can_run): Delete method.
3189 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3190 target pointer instead of referencing procfs_ops.
3191 (procfs_prepare_to_store): Delete.
3192 (init_procfs_ops): Delete function.
3193 (procfs_target): New function, based on init_procfs_ops, but
3194 inherit inf_child_target.
3195 (_initialize_procfs): Use procfs_target.
3197 2014-03-12 Pedro Alves <palves@redhat.com>
3199 * windows-nat.c: Include inf-child.h.
3200 (windows_ops): Delete global.
3201 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3203 (init_windows_ops): Delete function.
3204 (windows_target): New function, based on init_windows_ops, but
3205 inherit inf_child_target.
3206 (_initialize_windows_nat): Use windows_target. Install x86
3207 specific target methods here.
3209 2014-03-10 Doug Evans <xdje42@gmail.com>
3211 * guile/guile.c (call_initialize_gdb_module): New function.
3212 (initialize_guile): Replace call to scm_init_guile with call to
3215 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3217 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3218 in call to TYPE_CODE macro.
3220 2014-03-10 Jerome Guitton <guitton@adacore.com>
3222 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3223 Resolve tagged types to full view.
3225 2014-03-10 Hui Zhu <hui@codesourcery.com>
3227 * target.h (target_insert_breakpoint): Remove "hardware" from its
3230 2014-03-07 Doug Evans <dje@google.com>
3232 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3234 2014-03-07 Doug Evans <dje@google.com>
3236 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3237 Remove unused local comp_dir_attr. Assert exactly one of
3238 stub_comp_unit_die, stub_comp_dir is non-NULL.
3240 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3242 * target.h (complete_target_initialization, add_target):
3245 2014-03-07 Pedro Alves <palves@redhat.com>
3247 * go32-nat.c: Include inf-child.h.
3248 (go32_ops): Delete global.
3249 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3251 (go32_create_inferior): Push the passed in target pointer instead
3252 of referencing go32_ops.
3253 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3254 (go32_target): New function, based on init_go32_ops, but inherit
3256 (_initialize_go32_nat): Use go32_target. Move parts of
3259 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3261 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3262 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3263 SYMBOL_VALUE_ADDRESS.
3264 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3266 2014-03-06 Yao Qi <yao@codesourcery.com>
3268 * breakpoint.c (get_tracepoint_by_number): Remove argument
3269 optional_p. All callers updated. Adjust comments. Update
3271 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3273 2014-03-06 Yao Qi <yao@codesourcery.com>
3275 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3276 early if get_number returns zero. Use 'p' instead of 'args'.
3278 2014-03-06 Yao Qi <yao@codesourcery.com>
3280 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3283 2014-03-06 Yao Qi <yao@codesourcery.com>
3285 PR breakpoints/16508
3286 * tracepoint.c (check_trace_running): New function.
3287 (trace_find_command): Move code to check_trace_running and
3288 call check_trace_running.
3289 (trace_find_pc_command): Likewise.
3290 (trace_find_tracepoint_command): Likewise.
3291 (trace_find_line_command): Likewise.
3292 (trace_find_range_command): Likewise.
3293 * tracepoint.h (check_trace_running): Likewise.
3294 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3296 2014-03-06 Yao Qi <yao@codesourcery.com>
3298 * target.h (struct target_ops) <to_traceframe_info>: Use
3299 TARGET_DEFAULT_NORETURN (tcomplain ()).
3300 * target-delegates.c: Regenerated.
3302 2014-03-05 Pedro Alves <palves@redhat.com>
3305 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3306 void. Update comment.
3307 (dcache_xfer_memory): Delete.
3308 (dcache_read_memory_partial): New, based on the read bits of
3310 (dcache_update): Add status parameter. Use ULONGEST for len, and
3311 adjust. Discard cache lines if the reason for the update was
3313 * dcache.h (dcache_xfer_memory): Delete declaration.
3314 (dcache_read_memory_partial): New declaration.
3315 (dcache_update): Update prototype.
3316 * target.c (raw_memory_xfer_partial): Update the dcache here.
3317 (memory_xfer_partial_1): Don't handle dcache writes here.
3319 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3321 * remote-sim.c (gdbsim_load): Add const to prog.
3323 2014-03-03 Tom Tromey <tromey@redhat.com>
3325 * elfread.c (probe_key): Change to bfd_data.
3326 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3327 now per-BFD, not per-objfile.
3328 * stap-probe.c (stap_probe_destroy): Update comment.
3329 (handle_stap_probe): Allocate on the per-BFD obstack.
3331 2014-03-03 Tom Tromey <tromey@redhat.com>
3333 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3334 * breakpoint.c (create_longjmp_master_breakpoint): Use
3336 (add_location_to_breakpoint, bkpt_probe_insert_location)
3337 (bkpt_probe_remove_location): Update.
3338 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3339 * elfread.c (elf_symfile_relocate_probe): Remove.
3340 (elf_probe_fns): Update.
3341 (insert_exception_resume_breakpoint): Change type of "probe"
3342 parameter to bound_probe.
3343 (check_exception_resume): Update.
3344 * objfiles.c (objfile_relocate1): Don't relocate probes.
3345 * probe.c (bound_probe_s): New typedef.
3346 (parse_probes): Use get_probe_address. Set sal's objfile.
3347 (find_probe_by_pc): Return a bound_probe.
3348 (collect_probes): Return a VEC(bound_probe_s).
3349 (compare_probes): Update.
3350 (gen_ui_out_table_header_info): Change type of "probes"
3352 (info_probes_for_ops): Update.
3353 (get_probe_address): New function.
3354 (probe_safe_evaluate_at_pc): Update.
3355 * probe.h (struct probe_ops) <get_probe_address>: New field.
3356 <set_semaphore, clear_semaphore>: Add objfile parameter.
3357 (struct probe) <objfile>: Remove field.
3359 <address>: Update comment.
3360 (struct bound_probe): New.
3361 (find_probe_by_pc): Return a bound_probe.
3362 (get_probe_address): Declare.
3363 * solib-svr4.c (struct probe_and_action) <address>: New field.
3364 (hash_probe_and_action, equal_probe_and_action): Update.
3365 (register_solib_event_probe): Add address parameter.
3366 (solib_event_probe_at): Update.
3367 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3369 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3370 (stap_get_probe_address): New function.
3371 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3372 (compile_probe_arg): Update.
3373 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3375 (handle_stap_probe): Don't relocate the probe.
3376 (stap_relocate): Remove.
3377 (stap_gen_info_probes_table_values): Update.
3378 (stap_probe_ops): Remove stap_relocate.
3379 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3380 (debug_sym_probe_fns): Update.
3381 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3382 * symtab.c (init_sal): Use memset.
3383 * symtab.h (struct symtab_and_line) <objfile>: New field.
3384 * tracepoint.c (start_tracing, stop_tracing): Update.
3386 2014-03-03 Tom Tromey <tromey@redhat.com>
3388 * probe.h (parse_probes, find_probe_by_pc)
3389 (find_probes_in_objfile): Fix comments.
3391 2014-03-02 Doug Evans <xdje42@gmail.com>
3393 * infrun.c (handle_signal_stop): Replace test for
3394 TARGET_WAITKIND_STOPPED with an assert.
3396 2014-03-02 Doug Evans <xdje42@gmail.com>
3398 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3400 2014-03-02 Doug Evans <xdje42@gmail.com>
3402 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3404 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3406 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3408 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3410 * i386obsd-nat.c: Include "obsd-nat.h".
3411 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3413 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3415 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3417 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3419 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3421 * mips64obsd-nat.c: Include "obsd-nath".
3422 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3424 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3426 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3428 * amd64obsd-nat.c: Include "obsd-nat,h.
3429 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3431 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3433 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3435 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3436 (find_overload_match): Update call to find_oload_champ.
3437 (find_oload_champ_namespace_loop): Likewise
3439 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3441 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3443 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3444 * config/sparc/obsd64.mh: New file.
3445 * sparc64obsd-nat.c: New file.
3447 * obsd-nat.h: New file.
3448 * obsd-nat.c: New file.
3449 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3450 (ALLDEPFILES): Add obsd-nat.c.
3452 2014-02-28 Tom Tromey <tromey@redhat.com>
3454 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3455 * cli-out.h (cli_ui_out_impl): Now const.
3456 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3457 * ui-out.c (struct ui_out) <impl>: Now const.
3458 (default_ui_out_impl): Now const.
3459 (ui_out_new): Make 'impl' parameter const.
3460 * ui-out.h (ui_out_new): Update.
3462 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3464 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3466 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3468 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3470 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3472 Additional PR 8882 fix.
3473 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3475 2014-02-27 Pedro Alves <palves@redhat.com>
3477 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3480 2014-02-27 Pedro Alves <palves@redhat.com>
3483 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3484 * nat/linux-waitpid.c: Include string.h.
3485 (status_to_str): Moved here and made extern.
3486 * nat/linux-waitpid.h (status_to_str): New declaration.
3488 2014-02-27 Hui Zhu <hui@codesourcery.com>
3491 * infrun.c (ptid_match): Move ...
3492 * common/ptid.c (ptid_match): ... here.
3493 * inferior.h (ptid_match): Move ...
3494 * common/ptid.h (ptid_match): ... here.
3496 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3498 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3499 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3502 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3504 * obsd-tdep.c (obsd_auxv_parse): New function.
3505 (obsd_init_abi): Set auxv_parse.
3507 * gdbarch.sh (auxv_parse): New.
3508 * gdbarch.h: Regenerated.
3509 * gdbarch.c: Regenerated.
3510 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3512 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3514 * guile/scm-value.c (gdbscm_history_append_x): New function.
3515 (value_functions): Add it.
3517 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3519 * dwarf2read.c (attr_value_as_address): New function.
3520 (dwarf2_find_base_address, read_call_site_scope): Use
3521 attr_value_as_address in place of DW_ADDR.
3522 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3523 the low and high addresses. Slight rework of the handling
3524 of the high pc being a constant form, and limit it to
3525 DWARF verson 4 or higher.
3526 (dwarf2_record_block_ranges): Likewise.
3527 (read_partial_die): Likewise.
3528 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3530 2014-02-26 Tom Tromey <tromey@redhat.com>
3532 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3534 2014-02-26 Tom Tromey <tromey@redhat.com>
3536 * elfread.c (elf_read_minimal_symbols): Return early if
3537 minimal symbols have already been read. Add "ei" parameter.
3538 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3539 * minsyms.c (prim_record_minimal_symbol_full): Update.
3540 * objfiles.h (struct objstats) <n_minsyms>: Move...
3541 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3542 * symmisc.c (print_objfile_statistics): Update.
3544 2014-02-26 Tom Tromey <tromey@redhat.com>
3546 * elfread.c (elf_read_minimal_symbols): New function, from
3548 (elf_symfile_read): Call it.
3550 2014-02-26 Tom Tromey <tromey@redhat.com>
3552 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3553 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3554 (lookup_minimal_symbol_solib_trampoline)
3555 (lookup_minimal_symbol_by_pc_section_1)
3556 (lookup_minimal_symbol_and_objfile): Update.
3557 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3558 Don't allocate a minimal symbol if minsyms have already been read.
3559 (build_minimal_symbol_hash_tables): Update.
3560 (install_minimal_symbols): Do nothing if minsyms already read.
3561 Use the per-BFD obstack.
3562 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3563 * objfiles.c (allocate_objfile): Call
3564 terminate_minimal_symbol_table later.
3565 (have_minimal_symbols): Update.
3566 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3567 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3568 Move from struct objfile.
3569 <minsyms_read>: New field.
3570 (struct objfile) <msymbols, minimal_symbol_count,
3571 msymbol_hash, msymbol_demangled_hash>: Move.
3572 (ALL_OBJFILE_MSYMBOLS): Update.
3573 * symfile.c (read_symbols): Set minsyms_read.
3574 (reread_symbols): Update.
3575 * symmisc.c (dump_objfile, dump_msymbols): Update.
3577 2014-02-26 Tom Tromey <tromey@redhat.com>
3579 * minsyms.c (msymbols_sort): Remove.
3580 * minsyms.h (msymbols_sort): Remove.
3581 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3582 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3583 * elfread.c (elf_symtab_read): Don't add section offsets.
3584 * xcoffread.c (record_minimal_symbol): Don't add section offset
3585 to minimal symbol address.
3586 * somread.c (text_offset, data_offset): Remove.
3587 (som_symtab_read): Don't add section offsets to minimal symbol
3589 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3590 Don't add section offsets to minimal symbols.
3591 * coffread.c (coff_symtab_read): Don't add section offsets
3592 to minimal symbol addresses.
3593 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3594 to minimal symbol addresses.
3595 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3596 section offset to minimal symbol addresses.
3597 * mdebugread.c (parse_partial_symbols): Don't add section
3598 offset to minimal symbol addresses.
3599 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3600 offset to minimal symbol addresses.
3602 2014-02-26 Tom Tromey <tromey@redhat.com>
3604 * ada-lang.c (ada_main_name): Update.
3605 (ada_add_standard_exceptions): Update.
3606 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3607 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3608 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3609 * auxv.c (ld_so_xfer_auxv): Update.
3610 * avr-tdep.c (avr_scan_prologue): Update.
3611 * ax-gdb.c (gen_var_ref): Update.
3612 * blockframe.c (get_pc_function_start)
3613 (find_pc_partial_function_gnu_ifunc): Update.
3614 * breakpoint.c (create_overlay_event_breakpoint)
3615 (create_longjmp_master_breakpoint)
3616 (create_std_terminate_master_breakpoint)
3617 (create_exception_master_breakpoint): Update.
3618 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3619 * c-valprint.c (c_val_print): Update.
3620 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3621 * common/agent.c (agent_look_up_symbols): Update.
3622 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3623 * dwarf2loc.c (call_site_to_target_addr): Update.
3624 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3625 * elfread.c (elf_gnu_ifunc_record_cache)
3626 (elf_gnu_ifunc_resolve_by_got): Update.
3627 * findvar.c (default_read_var_value): Update.
3628 * frame.c (inside_main_func): Update.
3629 * frv-tdep.c (frv_frame_this_id): Update.
3630 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3631 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3633 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3634 (hppa_hpux_find_dummy_bpaddr): Update.
3635 * hppa-tdep.c (hppa_symbol_address): Update.
3636 * infcmd.c (until_next_command): Update.
3637 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3639 * linespec.c (minsym_found, add_minsym): Update.
3640 * linux-nat.c (get_signo): Update.
3641 * linux-thread-db.c (inferior_has_bug): Update.
3642 * m32c-tdep.c (m32c_return_value)
3643 (m32c_m16c_address_to_pointer): Update.
3644 * m32r-tdep.c (m32r_frame_this_id): Update.
3645 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3646 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3647 * maint.c (maintenance_translate_address): Update.
3648 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3649 (frob_address): New function.
3650 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3651 frob_address. Rename parameter to "pc_in".
3652 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3654 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3656 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3657 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3658 * objc-lang.c (find_objc_msgsend): Update.
3659 * objfiles.c (objfile_relocate1): Update.
3660 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3661 * p-valprint.c (pascal_val_print): Update.
3662 * parse.c (write_exp_msymbol): Update.
3663 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3664 (ppc_elfv2_skip_entrypoint): Update.
3665 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3666 * printcmd.c (build_address_symbolic, msym_info)
3667 (address_info): Update.
3668 * proc-service.c (ps_pglobal_lookup): Update.
3669 * psymtab.c (find_pc_sect_psymtab_closer)
3670 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3671 Change msymbol parameter to bound_minimal_symbol.
3672 * ravenscar-thread.c (get_running_thread_id): Update.
3673 * remote.c (remote_check_symbols): Update.
3674 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3676 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3677 * solib-dsbt.c (lm_base): Update.
3678 * solib-frv.c (lm_base, main_got): Update.
3679 * solib-irix.c (locate_base): Update.
3680 * solib-som.c (som_solib_create_inferior_hook)
3681 (link_map_start): Update.
3682 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3683 * solib-svr4.c (elf_locate_base, enable_break): Update.
3684 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3685 (flush_ea_cache): Update.
3686 * stabsread.c (define_symbol, scan_file_globals): Update.
3687 * stack.c (find_frame_funname): Update.
3688 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3689 (debug_qf_find_pc_sect_symtab): Update.
3690 * symfile.c (simple_read_overlay_table)
3691 (simple_overlay_update): Update.
3692 * symfile.h (struct quick_symbol_functions)
3693 <find_pc_sect_symtab>: Change type of msymbol to
3694 bound_minimal_symbol.
3695 * symmisc.c (dump_msymbols): Update.
3696 * symtab.c (find_pc_sect_symtab_via_partial)
3697 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3698 (search_symbols, print_msymbol_info): Update.
3699 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3700 (MSYMBOL_VALUE_ADDRESS): Redefine.
3701 (BMSYMBOL_VALUE_ADDRESS): New macro.
3702 * tracepoint.c (scope_info): Update.
3703 * tui/tui-disasm.c (tui_find_disassembly_address)
3704 (tui_get_begin_asm_address): Update.
3705 * valops.c (find_function_in_inferior): Update.
3706 * value.c (value_static_field, value_fn_field): Update.
3708 2014-02-26 Tom Tromey <tromey@redhat.com>
3710 * ada-lang.c (ada_update_initial_language): Update.
3711 (ada_main_name, ada_has_this_exception_support): Update.
3712 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3713 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3714 * arm-tdep.c (arm_skip_stub): Update.
3715 * auxv.c (ld_so_xfer_auxv): Update.
3716 * avr-tdep.c (avr_scan_prologue): Update.
3717 * ax-gdb.c (gen_var_ref): Update.
3718 * breakpoint.c (struct breakpoint_objfile_data)
3719 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3720 type to bound_minimal_symbol.
3721 (create_overlay_event_breakpoint)
3722 (create_longjmp_master_breakpoint)
3723 (create_std_terminate_master_breakpoint)
3724 (create_exception_master_breakpoint): Update.
3725 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3726 * c-exp.y (classify_name): Update.
3727 * coffread.c (coff_symfile_read): Update.
3728 * common/agent.c (agent_look_up_symbols): Update.
3729 * d-lang.c (d_main_name): Update.
3730 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3731 * dec-thread.c (enable_dec_thread): Update.
3732 * dwarf2loc.c (call_site_to_target_addr): Update.
3733 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3734 * eval.c (evaluate_subexp_standard): Update.
3735 * findvar.c (struct minsym_lookup_data) <result>: Change type
3736 to bound_minimal_symbol.
3738 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3739 * frame.c (inside_main_func): Update.
3740 * frv-tdep.c (frv_frame_this_id): Update.
3741 * gcore.c (call_target_sbrk): Update.
3742 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3743 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3745 * go-lang.c (go_main_name): Update.
3746 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3747 (hppa_hpux_find_import_stub_for_addr): Update.
3748 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3749 Update. Change return type.
3750 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3752 * jit.c (jit_breakpoint_re_set_internal): Update.
3753 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3755 * linux-nat.c (get_signo): Update.
3756 * linux-thread-db.c (inferior_has_bug): Update
3757 * m32c-tdep.c (m32c_return_value)
3758 (m32c_m16c_address_to_pointer): Update.
3759 * m32r-tdep.c (m32r_frame_this_id): Update.
3760 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3761 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3762 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3763 lookup_minimal_symbol. Change return type.
3764 (lookup_minimal_symbol): Remove.
3765 (lookup_bound_minimal_symbol): Update.
3766 (lookup_minimal_symbol_text): Change return type.
3767 (lookup_minimal_symbol_solib_trampoline): Change return type.
3768 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3769 (lookup_minimal_symbol_solib_trampoline): Change return type.
3770 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3771 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3772 (value_nsstring, find_imps): Update.
3773 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3774 * p-lang.c (pascal_main_name): Update.
3775 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3776 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3777 * proc-service.c (ps_pglobal_lookup): Update.
3778 * ravenscar-thread.c (get_running_thread_msymbol): Change
3780 (has_ravenscar_runtime, get_running_thread_id): Update.
3781 * remote.c (remote_check_symbols): Update.
3782 * sol-thread.c (ps_pglobal_lookup): Update.
3783 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3784 * solib-dsbt.c (lm_base): Update.
3785 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3787 * solib-irix.c (locate_base): Update.
3788 * solib-som.c (som_solib_create_inferior_hook)
3789 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3791 * solib-spu.c (spu_enable_break): Update.
3792 * solib-svr4.c (elf_locate_base, enable_break): Update.
3793 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3794 (flush_ea_cache): Update.
3795 * stabsread.c (define_symbol): Update.
3796 * symfile.c (simple_read_overlay_table): Update.
3797 * symtab.c (find_pc_sect_line): Update.
3798 * tracepoint.c (scope_info): Update.
3799 * tui-disasm.c (tui_get_begin_asm_address): Update.
3800 * value.c (value_static_field): Update.
3802 2014-02-26 Tom Tromey <tromey@redhat.com>
3804 * minsyms.c (prim_record_minimal_symbol_full): Use
3805 SET_MSYMBOL_VALUE_ADDRESS.
3806 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3807 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3808 SET_MSYMBOL_VALUE_ADDRESS.
3809 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3810 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3812 2014-02-26 Tom Tromey <tromey@redhat.com>
3814 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3815 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3816 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3817 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3818 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3819 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3820 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3821 * ada-lang.c (ada_main_name): Update.
3822 (ada_lookup_simple_minsym): Update.
3823 (ada_make_symbol_completion_list): Update.
3824 (ada_add_standard_exceptions): Update.
3825 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3826 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3827 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3828 * arm-tdep.c (skip_prologue_function): Update.
3829 (arm_skip_stack_protector, arm_skip_stub): Update.
3830 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3831 (arm_wince_skip_main_prologue): Update.
3832 * auxv.c (ld_so_xfer_auxv): Update.
3833 * avr-tdep.c (avr_scan_prologue): Update.
3834 * ax-gdb.c (gen_var_ref): Update.
3835 * block.c (call_site_for_pc): Update.
3836 * blockframe.c (get_pc_function_start): Update.
3837 (find_pc_partial_function_gnu_ifunc): Update.
3838 * breakpoint.c (create_overlay_event_breakpoint): Update.
3839 (create_longjmp_master_breakpoint): Update.
3840 (create_std_terminate_master_breakpoint): Update.
3841 (create_exception_master_breakpoint): Update.
3842 (resolve_sal_pc): Update.
3843 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3844 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3846 * c-valprint.c (c_val_print): Update.
3847 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3848 * coffread.c (coff_symfile_read): Update.
3849 * common/agent.c (agent_look_up_symbols): Update.
3850 * dbxread.c (find_stab_function_addr): Update.
3851 (end_psymtab): Update.
3852 * dwarf2loc.c (call_site_to_target_addr): Update.
3853 (func_verify_no_selftailcall): Update.
3854 (tailcall_dump): Update.
3855 (call_site_find_chain_1): Update.
3856 (dwarf_expr_reg_to_entry_parameter): Update.
3857 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3858 (elf_gnu_ifunc_resolve_by_got): Update.
3859 * f-valprint.c (info_common_command): Update.
3860 * findvar.c (read_var_value): Update.
3861 * frame.c (get_prev_frame_1): Update.
3862 (inside_main_func): Update.
3863 * frv-tdep.c (frv_skip_main_prologue): Update.
3864 (frv_frame_this_id): Update.
3865 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3866 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3867 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3868 (gnuv3_skip_trampoline): Update.
3869 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3870 (hppa64_hpux_in_solib_call_trampoline): Update.
3871 (hppa_hpux_skip_trampoline_code): Update.
3872 (hppa64_hpux_search_dummy_call_sequence): Update.
3873 (hppa_hpux_find_import_stub_for_addr): Update.
3874 (hppa_hpux_find_dummy_bpaddr): Update.
3875 * hppa-tdep.c (hppa_symbol_address)
3876 (hppa_lookup_stub_minimal_symbol): Update.
3877 * i386-tdep.c (i386_skip_main_prologue): Update.
3878 (i386_pe_skip_trampoline_code): Update.
3879 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3880 * infcall.c (get_function_name): Update.
3881 * infcmd.c (until_next_command): Update.
3882 * jit.c (jit_breakpoint_re_set_internal): Update.
3883 (jit_inferior_init): Update.
3884 * linespec.c (minsym_found): Update.
3885 (add_minsym): Update.
3886 * linux-fork.c (info_checkpoints_command): Update.
3887 * linux-nat.c (get_signo): Update.
3888 * linux-thread-db.c (inferior_has_bug): Update.
3889 * m32c-tdep.c (m32c_return_value): Update.
3890 (m32c_m16c_address_to_pointer): Update.
3891 (m32c_m16c_pointer_to_address): Update.
3892 * m32r-tdep.c (m32r_frame_this_id): Update.
3893 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3894 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3895 * maint.c (maintenance_translate_address): Update.
3896 * minsyms.c (add_minsym_to_hash_table): Update.
3897 (add_minsym_to_demangled_hash_table): Update.
3898 (msymbol_objfile): Update.
3899 (lookup_minimal_symbol): Update.
3900 (iterate_over_minimal_symbols): Update.
3901 (lookup_minimal_symbol_text): Update.
3902 (lookup_minimal_symbol_by_pc_name): Update.
3903 (lookup_minimal_symbol_solib_trampoline): Update.
3904 (lookup_minimal_symbol_by_pc_section_1): Update.
3905 (lookup_minimal_symbol_and_objfile): Update.
3906 (prim_record_minimal_symbol_full): Update.
3907 (compare_minimal_symbols): Update.
3908 (compact_minimal_symbols): Update.
3909 (build_minimal_symbol_hash_tables): Update.
3910 (install_minimal_symbols): Update.
3911 (terminate_minimal_symbol_table): Update.
3912 (find_solib_trampoline_target): Update.
3913 (minimal_symbol_upper_bound): Update.
3914 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3915 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3916 (mips_skip_pic_trampoline_code): Update.
3917 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3918 * objc-lang.c (selectors_info): Update.
3919 (classes_info): Update.
3920 (find_methods): Update.
3921 (find_imps): Update.
3922 (find_objc_msgsend): Update.
3923 * objfiles.c (objfile_relocate1): Update.
3924 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3925 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3926 * p-valprint.c (pascal_val_print): Update.
3927 * parse.c (write_exp_msymbol): Update.
3928 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3929 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3930 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3931 * printcmd.c (build_address_symbolic): Update.
3933 (address_info): Update.
3934 * proc-service.c (ps_pglobal_lookup): Update.
3935 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3936 (find_pc_sect_psymtab): Update.
3937 * python/py-framefilter.c (py_print_frame): Update.
3938 * ravenscar-thread.c (get_running_thread_id): Update.
3939 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3941 * remote.c (remote_check_symbols): Update.
3942 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3943 (rs6000_skip_trampoline_code): Update.
3944 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3945 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3946 * solib-dsbt.c (lm_base): Update.
3947 * solib-frv.c (lm_base): Update.
3949 * solib-irix.c (locate_base): Update.
3950 * solib-som.c (som_solib_create_inferior_hook): Update.
3951 (som_solib_desire_dynamic_linker_symbols): Update.
3952 (link_map_start): Update.
3953 * solib-spu.c (spu_enable_break): Update.
3954 (ocl_enable_break): Update.
3955 * solib-svr4.c (elf_locate_base): Update.
3956 (enable_break): Update.
3957 * spu-tdep.c (spu_get_overlay_table): Update.
3958 (spu_catch_start): Update.
3959 (flush_ea_cache): Update.
3960 * stabsread.c (define_symbol): Update.
3961 (scan_file_globals): Update.
3962 * stack.c (find_frame_funname): Update.
3963 (frame_info): Update.
3964 * symfile.c (simple_read_overlay_table): Update.
3965 (simple_overlay_update): Update.
3966 * symmisc.c (dump_msymbols): Update.
3967 * symtab.c (fixup_section): Update.
3968 (find_pc_sect_line): Update.
3969 (skip_prologue_sal): Update.
3970 (search_symbols): Update.
3971 (print_msymbol_info): Update.
3972 (rbreak_command): Update.
3973 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3974 (completion_list_objc_symbol): Update.
3975 (default_make_symbol_completion_list_break_on): Update.
3976 * tracepoint.c (scope_info): Update.
3977 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3978 (tui_get_begin_asm_address): Update.
3979 * valops.c (find_function_in_inferior): Update.
3980 * value.c (value_static_field): Update.
3981 (value_fn_field): Update.
3983 2014-02-26 Tom Tromey <tromey@redhat.com>
3985 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3986 bound minimal symbols. Move code that knows about minsym
3988 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3990 * minsyms.h (minimal_symbol_upper_bound): Declare.
3991 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3992 minimal_symbol_upper_bound.
3994 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3996 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3997 Use the type's name if its basic type does not have a tag.
3999 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4001 * dwarf2read.c (read_subrange_type): Add comment.
4003 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4005 * dwarf2read.c (update_enumeration_type_from_children): New
4006 function, mostly extracted from process_structure_scope.
4007 (read_enumeration_type): Call update_enumeration_type_from_children.
4008 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4009 and flag_flag_enum fields.
4011 2014-02-26 Pedro Alves <palves@redhat.com>
4013 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4014 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4015 to_xfer_partial method.
4017 2014-02-26 Pedro Alves <palves@redhat.com>
4019 * target.c (complete_target_initialization): Don't install
4020 default_xfer_partial as to_xfer_partial hook.
4022 (update_current_target): Don't INHERIT nor de_fault
4023 deprecated_xfer_memory. Delete de_fault macro.
4024 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4025 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4026 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4029 2014-02-26 Pedro Alves <palves@redhat.com>
4031 * go32-nat.c (my_write_child): New function.
4032 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4033 (go32_xfer_partial): New function.
4034 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4035 Instead install a to_xfer_partial hook.
4037 2014-02-26 Pedro Alves <palves@redhat.com>
4039 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4040 to_xfer_partial helper. Rewrite.
4041 (procfs_xfer_partial): New function.
4042 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4043 Install a to_xfer_partial hook.
4045 2014-02-26 Pedro Alves <palves@redhat.com>
4047 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4048 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4049 (m32r_xfer_partial): New function.
4050 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4051 Install a to_xfer_partial hook.
4053 2014-02-26 Pedro Alves <palves@redhat.com>
4055 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4057 (mips_xfer_partial): New function.
4058 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4059 hook. Install a to_xfer_partial hook.
4061 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4063 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4064 * gdbtypes.c (create_array_type_with_stride): New function,
4065 renaming create_array_type, but with an added parameter
4066 called "bit_stride".
4067 (create_array_type): Re-implement using
4068 create_array_type_with_stride.
4069 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4070 and DW_AT_bit_stride attributes.
4072 2014-02-26 Pedro Alves <palves@redhat.com>
4074 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4075 task-specific breakpoints.
4077 2014-02-25 Pedro Alves <palves@redhat.com>
4079 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4080 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4082 2014-02-25 Stan Shebs <stan@codesourcery.com>
4084 * defs.h: Annotate comments for Doxygen.
4086 2014-02-25 Tom Tromey <tromey@redhat.com>
4088 * target.h (target_ignore): Don't declare.
4089 * target.c (target_ignore): Remove.
4091 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4094 * auto-load.c (auto_load_objfile_script_1): Change filename to
4097 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4099 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4100 documentation. Adjust prototype to match the target_ops
4101 to_xfer_partial method. Adjust implementation accordingly.
4103 2014-02-25 Hui Zhu <hui@codesourcery.com>
4105 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4108 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4110 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4111 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4112 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4113 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4114 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4115 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4116 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4117 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4119 (rl78_register_type): Use a data pointer type for SP and
4120 new pseudo registers mentioned above. Use a 16 bit integer
4121 type for all other register pairs.
4122 (rl78_register_name, rl78_g10_register_name): Update for
4123 new pseudo registers.
4124 (rl78_pseudo_register_read): Likewise.
4125 (rl78_pseudo_register_write): Likewise.
4126 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4127 to the newly added pseudo registers.
4129 2014-02-24 Doug Evans <dje@google.com>
4131 * value.c (record_latest_value): Fix comment.
4132 * printcmd.c (print_command_1): Remove code to handle -1 return from
4133 record_latest_value.
4135 2014-02-24 Pedro Alves <palves@redhat.com>
4137 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4138 deprecated_xfer_memory hook.
4139 (procfs_xfer_partial): Call procfs_xfer_memory instead
4140 of the deprecated_xfer_memory target hook.
4141 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4144 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4146 * windows-nat.c (windows_xfer_shared_libraries): Return
4147 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4148 requested object is TARGET_OBJECT_LIBRARIES.
4150 2014-02-24 Yao Qi <yao@codesourcery.com>
4152 * target.h (enum target_xfer_status)
4153 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4154 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4156 * corefile.c (memory_error_message): User updated.
4157 * exec.c (section_table_read_available_memory): Likewise.
4158 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4159 * target.c (target_xfer_status_to_string): Likewise.
4160 (raw_memory_xfer_partial): Likewise.
4161 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4162 * valops.c (read_value_memory): Likewise.
4163 * exec.h: Update comments.
4165 2014-02-24 Yao Qi <yao@codesourcery.com>
4167 * target.c (target_xfer_status_to_string): Rename argument err
4169 * target.h (target_xfer_status_to_string): Update declaration.
4170 Replace target_xfer_error_to_string with
4171 target_xfer_status_to_string in comment.
4173 2014-02-24 Yao Qi <yao@codesourcery.com>
4175 * mips-linux-nat.c (super_close): Update its type.
4176 (mips_linux_close): Pass 'self' to super_close.
4178 2014-02-24 Yao Qi <yao@codesourcery.com>
4180 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4181 * corefile.c (read_memory): Adjusted.
4182 * target.c (target_write_with_progress): Adjusted.
4184 2014-02-23 Yao Qi <yao@codesourcery.com>
4188 2013-10-25 Yao Qi <yao@codesourcery.com>
4190 * remote.c (remote_traceframe_info): Return early if
4191 traceframe is not selected.
4193 2013-07-19 Yao Qi <yao@codesourcery.com>
4195 * target.c (update_current_target): Change the default action
4196 of 'to_traceframe_info' from tcomplain to return_zero.
4197 * target.h (struct target_ops) <to_traceframe_info>: Add more
4200 2014-02-23 Yao Qi <yao@codesourcery.com>
4202 * valops.c (read_value_memory): Rewrite it. Call
4203 target_xfer_partial in a loop.
4204 * exec.h (section_table_available_memory): Remove declaration.
4205 Move comments to ...
4206 * exec.c (section_table_available_memory): ... here. Make it
4209 2014-02-23 Yao Qi <yao@codesourcery.com>
4211 * exec.c (section_table_read_available_memory): New function.
4212 * exec.h (section_table_read_available_memory): Declare.
4213 * ctf.c (ctf_xfer_partial): Call
4214 section_table_read_available_memory.
4215 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4217 2014-02-23 Yao Qi <yao@codesourcery.com>
4219 * ctf.c (ctf_xfer_partial): Move code to ...
4220 * exec.c (exec_read_partial_read_only): ... it. New function.
4221 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4222 * tracefile.c: Include "exec.h".
4223 * exec.h (exec_read_partial_read_only): Declare.
4225 2014-02-23 Yao Qi <yao@codesourcery.com>
4227 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4228 (tfile_has_memory): Remove.
4229 (init_tfile_ops): Don't set fields to_has_all_memory and
4230 to_has_memory of tfile_ops.
4231 * tracefile.c (tracefile_has_all_memory): New function.
4232 (tracefile_has_memory): New function.
4233 (init_tracefile_ops): Initialize fields to_has_all_memory and
4234 to_has_memory of 'ops'.
4236 2014-02-23 Yao Qi <yao@codesourcery.com>
4238 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4239 (ctf_thread_alive, ctf_get_trace_status): Remove.
4240 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4242 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4243 (tfile_has_stack, tfile_has_registers): Remove.
4244 (tfile_thread_alive): Remove.
4245 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4247 * tracefile.c (tracefile_has_stack): New function.
4248 (tracefile_has_registers): New function.
4249 (tracefile_thread_alive): New function.
4250 (tracefile_get_trace_status): New function.
4251 (init_tracefile_ops): New function.
4252 * tracefile.h (init_tracefile_ops): Declare.
4254 2014-02-23 Yao Qi <yao@codesourcery.com>
4256 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4257 (O_LARGEFILE): Likewise.
4258 (tfile_ops): Likewise.
4259 (TRACE_HEADER_SIZE): Likewise.
4260 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4261 (cur_data_size): Likewise.
4262 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4263 (tfile_close, tfile_files_info): Likewise.
4264 (tfile_get_trace_status): Likewise.
4265 (tfile_get_tracepoint_status): Likewise.
4266 (tfile_get_traceframe_address): Likewise.
4267 (tfile_trace_find, match_blocktype): Likewise.
4268 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4269 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4270 (tfile_get_trace_state_variable_value): Likewise.
4271 (tfile_has_all_memory, tfile_has_memory): Likewise.
4272 (tfile_has_stack, tfile_has_registers): Likewise.
4273 (tfile_thread_alive, build_traceframe_info): Likewise.
4274 (tfile_traceframe_info, init_tfile_ops): Likewise.
4275 (_initialize_tracepoint): Don't call init_tfile_ops
4276 and add_target_with_completer.
4277 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4278 exec.h, completer.h and filenames.h.
4279 (_initialize_tracefile_tfile): New function.
4281 2014-02-23 Yao Qi <yao@codesourcery.com>
4283 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4285 (HFILES_NO_SRCDIR): Add tracefile.h.
4286 * ctf.c: Include "tracefile.h".
4287 * tracefile.h: New file.
4288 * tracefile.c: New file
4289 * tracefile-tfile.c: New file.
4290 * tracepoint.c: Include "tracefile.h".
4291 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4292 (stop_reason_names): Add const.
4293 (trace_file_writer_xfree): Move it to tracefile.c.
4294 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4295 (trace_save_ctf): Likewise.
4296 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4297 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4298 (tfile_write_header, tfile_write_regblock_type): Likewise.
4299 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4300 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4301 (tfile_write_raw_data, tfile_end): Likewise.
4302 (tfile_trace_file_writer_new): Likewise.
4303 (free_uploaded_tp): Make it extern.
4304 (free_uploaded_tsv): Make it extern.
4305 (_initialize_tracepoint): Move code to register command 'tsave'
4307 * tracepoint.h (stop_reason_names): Declare.
4308 (struct trace_frame_write_ops): Move it to tracefile.h.
4309 (struct trace_file_write_ops): Likewise.
4310 (struct trace_file_writer): Likewise.
4311 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4313 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4316 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4318 (get_cores_used_by_process): New parameter num_cores, use it.
4319 (linux_xfer_osdata_processes): Pass num_cores to it.
4320 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4323 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4325 * target.c (memory_xfer_partial): Fix length arg in call to
4326 breakpoint_xfer_memory.
4328 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4331 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4332 number comes after the + or - signs. Adjust length of register
4333 name to be extracted.
4335 2014-02-20 Tom Tromey <tromey@redhat.com>
4337 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4338 (ada_varobj_ops): Mark "extern".
4340 2014-02-20 Tom Tromey <tromey@redhat.com>
4342 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4344 2014-02-20 Doug Evans <xdje42@gmail.com>
4346 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4347 All callers updated.
4348 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4349 All callers updated.
4350 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4351 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4353 2014-02-20 lin zuojian <manjian2006@gmail.com>
4354 Joel Brobecker <brobecker@adacore.com>
4355 Doug Evans <xdje42@gmail.com>
4358 * dwarf2read.c (struct die_info): New member in_process.
4359 (reset_die_in_process): New function.
4360 (process_die): Set it at the start, reset when returning.
4361 (inherit_abstract_dies): Only call process_die if origin_child_die
4362 not already being processed.
4364 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4366 * windows-nat.c (handle_unload_dll): Add function documentation.
4367 (do_initial_windows_stuff): Add comment explaining why we wait
4368 until after inferior initialization has finished before
4369 processing all DLLs.
4371 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4373 * windows-nat.c (get_module_name): Delete.
4374 (windows_get_exec_module_filename): New function, mostly
4375 inspired from get_module_name.
4376 (windows_pid_to_exec_file): Replace call to get_module_name
4377 by call to windows_get_exec_module_filename.
4379 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4381 * windows-nat.c (handle_load_dll): Rewrite this function's
4382 introductory comment. Remove code using get_module_name
4383 to get the DLL's name.
4385 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4387 * windows-nat.c (get_windows_debug_event): Ignore
4388 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4389 if windows_initialization_done == 0.
4390 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4391 Adjust implementation to always load all DLLs.
4392 (do_initial_windows_stuff): Replace call to
4393 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4395 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4397 * windows-nat.c (_initialize_windows_nat): Deprecate the
4398 "dll-symbols" command. Turn the "add-shared-symbol-files"
4399 and "assf" aliases into commands, and deprecate them as well.
4400 * NEWS: Add entry explaining that "dll-symbols" and its two
4401 aliases are now deprecated.
4403 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4405 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4406 new-line in debug string. Remove trailing spaces.
4408 2014-02-19 Stan Shebs <stan@codesourcery.com>
4410 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4412 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4414 * NEWS: Add entry for the new feature
4415 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4418 2014-02-19 Stan Shebs <stan@codesourcery.com>
4420 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4422 2014-02-19 Pedro Alves <palves@redhat.com>
4424 * common/ptid.h (struct ptid): Mention that process_stratum
4425 targets should prefer ptid.lwp.
4427 2014-02-19 Pedro Alves <palves@redhat.com>
4429 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4430 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4431 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4432 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4433 store remote thread ids rather than ptid.tid.
4434 (_initialize_remote): Adjust.
4436 2014-02-19 Tom Tromey <tromey@redhat.com>
4438 * target.c (target_get_unwinder): Rewrite.
4439 (target_get_tailcall_unwinder): Rewrite.
4440 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4441 (record_btrace_to_get_tailcall_unwinder): New function.
4442 (init_record_btrace_ops): Update.
4443 * target.h (struct target_ops) <to_get_unwinder,
4444 to_get_tailcall_unwinder>: Now function pointers. Use
4445 TARGET_DEFAULT_RETURN.
4447 2014-02-19 Tom Tromey <tromey@redhat.com>
4449 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4451 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4453 2014-02-19 Tom Tromey <tromey@redhat.com>
4455 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4457 * target-delegates.c: Rebuild.
4458 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4459 TARGET_DEFAULT_FUNC.
4460 * target.c (default_target_decr_pc_after_break): Rename from
4461 forward_target_decr_pc_after_break. Simplify.
4462 (target_decr_pc_after_break): Rely on delegation.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * target.c (update_current_target): Do not INHERIT to_doc or
4467 to_magic. Do not de_fault to_open or to_close.
4469 2014-02-19 Tom Tromey <tromey@redhat.com>
4471 * gcore.h (objfile_find_memory_regions): Declare.
4472 * gcore.c (objfile_find_memory_regions): No longer static. Add
4474 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4475 * exec.c: Include gcore.h.
4476 (exec_set_find_memory_regions): Remove.
4477 (exec_find_memory_regions): Remove.
4478 (exec_do_find_memory_regions): Remove.
4479 (init_exec_ops): Update.
4480 * defs.h (exec_set_find_memory_regions): Remove.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.h (struct target_ops) <to_extra_thread_info,
4486 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4487 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4488 not 0, in TARGET_DEFAULT_RETURN.
4490 2014-02-19 Tom Tromey <tromey@redhat.com>
4492 * target.c (complete_target_initialization): Remove casts. Use
4493 return_zero_has_execution.
4494 (return_zero): Add "ignore" argument.
4495 (return_zero_has_execution): New function.
4496 (init_dummy_target): Remove casts. Use
4497 return_zero_has_execution.
4499 2014-02-19 Tom Tromey <tromey@redhat.com>
4501 * target.c (update_current_target): Update comments. Do not
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4508 * corelow.c (core_read_description): Delegate when needed.
4509 * remote.c (remote_read_description): Delegate when needed.
4510 * target-delegates.c: Rebuild.
4511 * target.c (target_read_description): Rewrite.
4512 * target.h (struct target_ops) <to_read_description>: Update
4513 comment. Use TARGET_DEFAULT_RETURN.
4515 2014-02-19 Tom Tromey <tromey@redhat.com>
4517 * target-delegates.c: Rebuild.
4518 * target.c (update_current_target): Don't inherit or default
4520 (find_default_run_target): Check against delegate_can_run.
4521 * target.h (struct target_ops) <to_can_run>: Use
4522 TARGET_DEFAULT_RETURN.
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target-delegates.c: Rebuild.
4527 * target.c (target_disconnect): Unconditionally delegate.
4528 * target.h (struct target_ops) <to_disconnect>: Use
4529 TARGET_DEFAULT_NORETURN.
4531 2014-02-19 Tom Tromey <tromey@redhat.com>
4533 * record.c (record_stop): Unconditionally delegate.
4534 * target-delegates.c: Rebuild.
4535 * target.c (target_stop_recording): Unconditionally delegate.
4536 * target.h (struct target_ops) <to_stop_recording>: Use
4537 TARGET_DEFAULT_IGNORE.
4539 2014-02-19 Tom Tromey <tromey@redhat.com>
4541 * target-delegates.c: Rebuild.
4542 * target.c (target_enable_btrace): Unconditionally delegate.
4543 * target.h (struct target_ops) <to_enable_btrace>: Use
4544 TARGET_DEFAULT_NORETURN.
4546 2014-02-19 Tom Tromey <tromey@redhat.com>
4548 * target-delegates.c: Rebuild.
4549 * target.c (target_read_btrace): Unconditionally delegate.
4550 * target.h (struct target_ops) <to_read_btrace>: Use
4551 TARGET_DEFAULT_NORETURN.
4553 2014-02-19 Tom Tromey <tromey@redhat.com>
4555 * target-delegates.c: Rebuild.
4556 * target.c (target_teardown_btrace): Unconditionally delegate.
4557 * target.h (struct target_ops) <to_teardown_btrace>: Use
4558 TARGET_DEFAULT_NORETURN.
4560 2014-02-19 Tom Tromey <tromey@redhat.com>
4562 * target-delegates.c: Rebuild.
4563 * target.c (target_disable_btrace): Unconditionally delegate.
4564 * target.h (struct target_ops) <to_disable_btrace>: Use
4565 TARGET_DEFAULT_NORETURN.
4567 2014-02-19 Tom Tromey <tromey@redhat.com>
4569 * target-delegates.c: Rebuild.
4570 * target.c (default_search_memory): New function.
4571 (simple_search_memory): Update comment.
4572 (target_search_memory): Unconditionally delegate.
4573 * target.h (struct target_ops) <to_search_memory>: Use
4574 TARGET_DEFAULT_FUNC.
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * auxv.c (default_auxv_parse): No longer static.
4579 (target_auxv_parse): Unconditionally delegate.
4580 * auxv.h (default_auxv_parse): Declare.
4581 * target-delegates.c: Rebuild.
4582 * target.c: Include auxv.h.
4583 * target.h (struct target_ops) <to_auxv_parse>: Use
4584 TARGET_DEFAULT_FUNC.
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * target-delegates.c: Rebuild.
4589 * target.c (target_memory_map): Unconditionally delegate.
4590 * target.h (struct target_ops) <to_memory_map>: Use
4591 TARGET_DEFAULT_RETURN.
4593 2014-02-19 Tom Tromey <tromey@redhat.com>
4595 * target-delegates.c: Rebuild.
4596 * target.c (target_thread_alive): Unconditionally delegate.
4597 * target.h (struct target_ops) <to_thread_alive>: Use
4598 TARGET_DEFAULT_RETURN.
4600 2014-02-19 Tom Tromey <tromey@redhat.com>
4602 * target-delegates.c: Rebuild.
4603 * target.c (target_save_record): Unconditionally delegate.
4604 * target.h (struct target_ops) <to_save_record>: Use
4605 TARGET_DEFAULT_NORETURN.
4607 2014-02-19 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (target_delete_record): Unconditionally delegate.
4611 * target.h (struct target_ops) <to_delete_record>: Use
4612 TARGET_DEFAULT_NORETURN.
4614 2014-02-19 Tom Tromey <tromey@redhat.com>
4616 * target-delegates.c: Rebuild.
4617 * target.c (target_record_is_replaying): Unconditionally
4619 * target.h (struct target_ops) <to_record_is_replaying>: Use
4620 TARGET_DEFAULT_RETURN.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target-delegates.c: Rebuild.
4625 * target.c (target_goto_record_begin): Unconditionally delegate.
4626 * target.h (struct target_ops) <to_goto_record_begin>: Use
4627 TARGET_DEFAULT_NORETURN.
4629 2014-02-19 Tom Tromey <tromey@redhat.com>
4631 * target-delegates.c: Rebuild.
4632 * target.c (target_goto_record_end): Unconditionally delegate.
4633 * target.h (struct target_ops) <to_goto_record_end>: Use
4634 TARGET_DEFAULT_NORETURN.
4636 2014-02-19 Tom Tromey <tromey@redhat.com>
4638 * target-delegates.c: Rebuild.
4639 * target.c (target_goto_record): Unconditionally delegate.
4640 * target.h (struct target_ops) <to_goto_record>: Use
4641 TARGET_DEFAULT_NORETURN.
4643 2014-02-19 Tom Tromey <tromey@redhat.com>
4645 * target-delegates.c: Rebuild.
4646 * target.c (target_insn_history): Unconditionally delegate.
4647 * target.h (struct target_ops) <to_insn_history>: Use
4648 TARGET_DEFAULT_NORETURN.
4650 2014-02-19 Tom Tromey <tromey@redhat.com>
4652 * target-delegates.c: Rebuild.
4653 * target.c (target_insn_history_from): Unconditionally delegate.
4654 * target.h (struct target_ops) <to_insn_history_from>: Use
4655 TARGET_DEFAULT_NORETURN.
4657 2014-02-19 Tom Tromey <tromey@redhat.com>
4659 * target-delegates.c: Rebuild.
4660 * target.c (target_insn_history_range): Unconditionally delegate.
4661 * target.h (struct target_ops) <to_insn_history_range>: Use
4662 TARGET_DEFAULT_NORETURN.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * target-delegates.c: Rebuild.
4667 * target.c (target_call_history): Unconditionally delegate.
4668 * target.h (struct target_ops) <to_call_history>: Use
4669 TARGET_DEFAULT_NORETURN.
4671 2014-02-19 Tom Tromey <tromey@redhat.com>
4673 * target-delegates.c: Rebuild.
4674 * target.c (target_call_history_from): Unconditionally delegate.
4675 * target.h (struct target_ops) <to_call_history_from>: Use
4676 TARGET_DEFAULT_NORETURN.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (target_call_history_range): Unconditionally delegate.
4682 * target.h (struct target_ops) <to_call_history_range>: Use
4683 TARGET_DEFAULT_NORETURN.
4685 2014-02-19 Tom Tromey <tromey@redhat.com>
4687 * target-delegates.c: Rebuild.
4688 * target.c (target_verify_memory): Unconditionally delegate.
4689 * target.h (struct target_ops) <to_verify_memory>: Use
4690 TARGET_DEFAULT_NORETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (target_core_of_thread): Unconditionally delegate.
4696 * target.h (struct target_ops) <to_core_of_thread>: Use
4697 TARGET_DEFAULT_RETURN.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target-delegates.c: Rebuild.
4702 * target.c (target_flash_done): Unconditionally delegate.
4703 * target.h (struct target_ops) <to_flash_done>: Use
4704 TARGET_DEFAULT_NORETURN.
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * target-delegates.c: Rebuild.
4709 * target.c (target_flash_erase): Unconditionally delegate.
4710 * target.h (struct target_ops) <to_flash_erase>: Use
4711 TARGET_DEFAULT_NORETURN.
4713 2014-02-19 Tom Tromey <tromey@redhat.com>
4715 * target-delegates.c: Rebuild.
4716 * target.c (target_get_section_table): Unconditionally delegate.
4717 * target.h (struct target_ops) <to_get_section_table>: Use
4718 TARGET_DEFAULT_RETURN.
4720 2014-02-19 Tom Tromey <tromey@redhat.com>
4722 * target-delegates.c: Rebuild.
4723 * target.c (target_pid_to_str): Unconditionally delegate.
4724 (init_dummy_target): Don't initialize to_pid_to_str.
4725 (default_pid_to_str): Rename from dummy_pid_to_str.
4726 * target.h (struct target_ops) <to_pid_to_str>: Use
4727 TARGET_DEFAULT_FUNC.
4729 2014-02-19 Tom Tromey <tromey@redhat.com>
4731 * target-delegates.c: Rebuild.
4732 * target.c (target_find_new_threads): Unconditionally delegate.
4733 * target.h (struct target_ops) <to_find_new_threads>: Use
4734 TARGET_DEFAULT_RETURN.
4736 2014-02-19 Tom Tromey <tromey@redhat.com>
4738 * target-delegates.c: Rebuild.
4739 * target.c (target_program_signals): Unconditionally delegate.
4740 * target.h (struct target_ops) <to_program_signals>: Use
4741 TARGET_DEFAULT_IGNORE.
4743 2014-02-19 Tom Tromey <tromey@redhat.com>
4745 * target-delegates.c: Rebuild.
4746 * target.c (target_pass_signals): Unconditionally delegate.
4747 * target.h (struct target_ops) <to_pass_signals>: Use
4748 TARGET_DEFAULT_IGNORE.
4750 2014-02-19 Tom Tromey <tromey@redhat.com>
4752 * target-delegates.c: Rebuild.
4753 * target.c (default_mourn_inferior): New function.
4754 (target_mourn_inferior): Unconditionally delegate.
4755 * target.h (struct target_ops) <to_mourn_inferior>: Use
4756 TARGET_DEFAULT_FUNC.
4758 2014-02-19 Tom Tromey <tromey@redhat.com>
4760 * target-delegates.c: Rebuild.
4761 * target.c (default_follow_fork): New function.
4762 (target_follow_fork): Unconditionally delegate.
4763 * target.h (struct target_ops) <to_follow_fork>: Use
4764 TARGET_DEFAULT_FUNC.
4766 2014-02-19 Tom Tromey <tromey@redhat.com>
4768 * target-delegates.c: Rebuild.
4769 * target.c (target_kill): Unconditionally delegate.
4770 * target.h (struct target_ops) <to_kill>: Use
4771 TARGET_DEFAULT_NORETURN.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target-delegates.c: Rebuild.
4776 * target.c (target_masked_watch_num_registers): Unconditionally
4778 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4779 Use TARGET_DEFAULT_RETURN.
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target-delegates.c: Rebuild.
4784 * target.c (target_remove_mask_watchpoint): Unconditionally
4786 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4787 TARGET_DEFAULT_RETURN.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (target_insert_mask_watchpoint): Unconditionally
4794 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4795 TARGET_DEFAULT_RETURN.
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target-delegates.c: Rebuild.
4800 * target.c (target_ranged_break_num_registers): Unconditionally
4802 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4803 Use TARGET_DEFAULT_RETURN.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.c (target_fetch_registers): Unconditionally delegate.
4809 * target.h (struct target_ops) <to_fetch_registers>: 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
4817 * target.h (struct target_ops) <to_stop>: Use
4818 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
4825 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4826 Use 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
4832 to_supports_evaluation_of_breakpoint_conditions.
4833 * target.h (struct target_ops)
4834 <to_supports_evaluation_of_breakpoint_conditions>: Use
4835 TARGET_DEFAULT_RETURN.
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * target-delegates.c: Rebuild.
4840 * target.c (update_current_target): Don't inherit or default
4841 to_augmented_libraries_svr4_read.
4842 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4843 Use TARGET_DEFAULT_RETURN.
4845 2014-02-19 Tom Tromey <tromey@redhat.com>
4847 * target-delegates.c: Rebuild.
4848 * target.c (update_current_target): Don't inherit or default
4850 * target.h (struct target_ops) <to_can_use_agent>: Use
4851 TARGET_DEFAULT_RETURN.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target-delegates.c: Rebuild.
4856 * target.c (update_current_target): Don't inherit or default
4858 * target.h (struct target_ops) <to_use_agent>: Use
4859 TARGET_DEFAULT_NORETURN.
4861 2014-02-19 Tom Tromey <tromey@redhat.com>
4863 * target-delegates.c: Rebuild.
4864 * target.c (update_current_target): Don't inherit or default
4866 (return_null): Remove.
4867 * target.h (struct target_ops) <to_traceframe_info>: Use
4868 TARGET_DEFAULT_RETURN.
4870 2014-02-19 Tom Tromey <tromey@redhat.com>
4872 * target-delegates.c: Rebuild.
4873 * target.c (update_current_target): Don't inherit or default
4874 to_static_tracepoint_markers_by_strid.
4875 * target.h (struct target_ops)
4876 <to_static_tracepoint_markers_by_strid>: Use
4877 TARGET_DEFAULT_NORETURN.
4879 2014-02-19 Tom Tromey <tromey@redhat.com>
4881 * target-delegates.c: Rebuild.
4882 * target.c (update_current_target): Don't inherit or default
4883 to_static_tracepoint_marker_at.
4884 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4885 Use TARGET_DEFAULT_RETURN.
4887 2014-02-19 Tom Tromey <tromey@redhat.com>
4889 * target-delegates.c: Rebuild.
4890 * target.c (update_current_target): Don't inherit or default
4892 * target.h (struct target_ops) <to_set_permissions>: Use
4893 TARGET_DEFAULT_IGNORE.
4895 2014-02-19 Tom Tromey <tromey@redhat.com>
4897 * target-delegates.c: Rebuild.
4898 * target.c (update_current_target): Don't inherit or default
4900 * target.h (struct target_ops) <to_get_tib_address>: Use
4901 TARGET_DEFAULT_NORETURN.
4903 2014-02-19 Tom Tromey <tromey@redhat.com>
4905 * target-delegates.c: Rebuild.
4906 * target.c (update_current_target): Don't inherit or default
4908 * target.h (struct target_ops) <to_set_trace_notes>: Use
4909 TARGET_DEFAULT_RETURN.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target-delegates.c: Rebuild.
4914 * target.c (update_current_target): Don't initialize
4915 to_set_trace_buffer_size.
4916 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4917 TARGET_DEFAULT_IGNORE.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target-delegates.c: Rebuild.
4922 * target.c (update_current_target): Don't inherit or default
4923 to_set_circular_trace_buffer.
4924 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4925 TARGET_DEFAULT_IGNORE.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4931 to_set_disconnected_tracing.
4932 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4933 TARGET_DEFAULT_IGNORE.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (update_current_target): Don't inherit or default
4939 to_get_min_fast_tracepoint_insn_len.
4940 (return_minus_one): Remove.
4941 * target.h (struct target_ops)
4942 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4944 2014-02-19 Tom Tromey <tromey@redhat.com>
4946 * target-delegates.c: Rebuild.
4947 * target.c (update_current_target): Don't inherit or default
4948 to_get_raw_trace_data.
4949 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4950 TARGET_DEFAULT_NORETURN.
4952 2014-02-19 Tom Tromey <tromey@redhat.com>
4954 * target-delegates.c: Rebuild.
4955 * target.c (update_current_target): Don't inherit or default
4956 to_upload_trace_state_variables.
4957 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4958 Use TARGET_DEFAULT_RETURN.
4960 2014-02-19 Tom Tromey <tromey@redhat.com>
4962 * target-delegates.c: Rebuild.
4963 * target.c (update_current_target): Don't inherit or default
4964 to_upload_tracepoints.
4965 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4966 TARGET_DEFAULT_RETURN.
4968 2014-02-19 Tom Tromey <tromey@redhat.com>
4970 * target-delegates.c: Rebuild.
4971 * target.c (update_current_target): Don't inherit or default
4973 * target.h (struct target_ops) <to_save_trace_data>: Use
4974 TARGET_DEFAULT_NORETURN.
4976 2014-02-19 Tom Tromey <tromey@redhat.com>
4978 * target-delegates.c: Rebuild.
4979 * target.c (update_current_target): Don't inherit or default
4980 to_get_trace_state_variable_value.
4981 * target.h (struct target_ops)
4982 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4984 2014-02-19 Tom Tromey <tromey@redhat.com>
4986 * target-delegates.c: Rebuild.
4987 * target.c (update_current_target): Don't inherit or default
4989 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4991 2014-02-19 Tom Tromey <tromey@redhat.com>
4993 * target-delegates.c: Rebuild.
4994 * target.c (update_current_target): Don't inherit or default
4996 * target.h (struct target_ops) <to_trace_stop>: Use
4997 TARGET_DEFAULT_NORETURN.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target-delegates.c: Rebuild.
5002 * target.c (update_current_target): Don't inherit or default
5003 to_get_tracepoint_status.
5004 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5005 TARGET_DEFAULT_NORETURN.
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target-delegates.c: Rebuild.
5010 * target.c (update_current_target): Don't inherit or default
5011 to_get_trace_status.
5012 * target.h (struct target_ops) <to_get_trace_status>: Use
5013 TARGET_DEFAULT_RETURN.
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * target-delegates.c: Rebuild.
5018 * target.c (update_current_target): Don't inherit or default
5020 * target.h (struct target_ops) <to_trace_start>: Use
5021 TARGET_DEFAULT_NORETURN.
5023 2014-02-19 Tom Tromey <tromey@redhat.com>
5025 * target-delegates.c: Rebuild.
5026 * target.c (update_current_target): Don't inherit or default
5027 to_trace_set_readonly_regions.
5028 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5029 Use TARGET_DEFAULT_NORETURN.
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target-delegates.c: Rebuild.
5034 * target.c (update_current_target): Don't inherit or default
5035 to_disable_tracepoint.
5036 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5037 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
5044 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5045 TARGET_DEFAULT_NORETURN.
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target-delegates.c: Rebuild.
5050 * target.c (update_current_target): Don't inherit or default
5051 to_download_trace_state_variable.
5052 * target.h (struct target_ops) <to_download_trace_state_variable>:
5053 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
5060 * target.h (struct target_ops) <to_can_download_tracepoint>: 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_download_tracepoint.
5068 * target.h (struct target_ops) <to_download_tracepoint>: Use
5069 TARGET_DEFAULT_NORETURN.
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
5076 * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
5084 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
5092 * target.h (struct target_ops)
5093 <to_supports_enable_disable_tracepoint>: Use
5094 TARGET_DEFAULT_RETURN.
5096 2014-02-19 Tom Tromey <tromey@redhat.com>
5098 * target-delegates.c: Rebuild.
5099 * target.c (update_current_target): Don't inherit or default
5100 to_supports_multi_process.
5101 * target.h (struct target_ops) <to_supports_multi_process>: Use
5102 TARGET_DEFAULT_RETURN.
5104 2014-02-19 Tom Tromey <tromey@redhat.com>
5106 * target-delegates.c: Rebuild.
5107 * target.c (update_current_target): Don't inherit or default
5108 to_get_ada_task_ptid.
5109 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5110 TARGET_DEFAULT_FUNC.
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target-delegates.c: Rebuild.
5115 * target.c (update_current_target): Don't inherit or default
5116 to_thread_architecture.
5117 * target.h (struct target_ops) <to_thread_architecture>: Use
5118 TARGET_DEFAULT_FUNC.
5120 2014-02-19 Tom Tromey <tromey@redhat.com>
5122 * target-delegates.c: Rebuild.
5123 * target.c (update_current_target): Don't inherit or default
5124 to_execution_direction.
5125 * target.h (struct target_ops) <to_execution_direction>: Use
5126 TARGET_DEFAULT_FUNC.
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target-delegates.c: Rebuild.
5131 * target.c (update_current_target): Don't inherit or default
5132 to_can_execute_reverse.
5133 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5134 TARGET_DEFAULT_RETURN.
5135 (target_can_execute_reverse): Unconditionally delegate.
5137 2014-02-19 Tom Tromey <tromey@redhat.com>
5139 * target-delegates.c: Rebuild.
5140 * target.c (update_current_target): Don't inherit or default
5142 (dummy_goto_bookmark): Remove.
5143 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5144 * target.h (struct target_ops) <to_goto_bookmark>: Use
5145 TARGET_DEFAULT_NORETURN.
5147 2014-02-19 Tom Tromey <tromey@redhat.com>
5149 * target-delegates.c: Rebuild.
5150 * target.c (update_current_target): Don't inherit or default
5152 (dummy_get_bookmark): Remove.
5153 (init_dummy_target): Don't inherit or default to_get_bookmark.
5154 * target.h (struct target_ops) <to_get_bookmark>: Use
5155 TARGET_DEFAULT_NORETURN
5157 2014-02-19 Tom Tromey <tromey@redhat.com>
5159 * target-delegates.c: Rebuild.
5160 * target.c (update_current_target): Don't inherit or default
5161 to_make_corefile_notes.
5162 (init_dummy_target): Don't initialize to_make_corefile_notes.
5163 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5164 TARGET_DEFAULT_FUNC.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5170 to_find_memory_regions.
5171 (init_dummy_target): Don't initialize to_find_memory_regions.
5172 * target.h (struct target_ops) <to_find_memory_regions>: Use
5173 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
5180 * target.h (struct target_ops) <to_log_command>: Use
5181 TARGET_DEFAULT_IGNORE.
5182 (target_log_command): Unconditionally delegate.
5184 2014-02-19 Tom Tromey <tromey@redhat.com>
5186 * target-delegates.c: Rebuild.
5187 * target.c (update_current_target): Don't inherit or default
5188 to_pid_to_exec_file.
5189 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5190 TARGET_DEFAULT_RETURN.
5192 2014-02-19 Tom Tromey <tromey@redhat.com>
5194 * target-delegates.c: Rebuild.
5195 * target.c (update_current_target): Don't inherit or default
5197 (target_thread_name): Unconditionally delegate.
5198 * target.h (struct target_ops) <to_thread_name>: Use
5199 TARGET_DEFAULT_RETURN.
5201 2014-02-19 Tom Tromey <tromey@redhat.com>
5203 * target-delegates.c: Rebuild.
5204 * target.c (update_current_target): Don't inherit or default
5205 to_extra_thread_info.
5206 * target.h (struct target_ops) <to_extra_thread_info>: Use
5207 TARGET_DEFAULT_RETURN.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target-delegates.c: Rebuild.
5212 * target.c (update_current_target): Don't inherit or default
5214 * target.h (struct target_ops) <to_has_exited>: Use
5215 TARGET_DEFAULT_RETURN..
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target-delegates.c: Rebuild.
5220 * target.c (update_current_target): Don't inherit or default
5221 to_set_syscall_catchpoint.
5222 (return_one): Remove.
5223 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5224 TARGET_DEFAULT_RETURN.
5226 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target-delegates.c: Rebuild.
5229 * target.c (update_current_target): Don't inherit or default
5230 to_insert_exec_catchpoint.
5231 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5232 TARGET_DEFAULT_RETURN.
5234 2014-01-08 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (update_current_target): Don't inherit or default
5238 to_insert_exec_catchpoint.
5239 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5240 TARGET_DEFAULT_RETURN.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * target-delegates.c: Rebuild.
5245 * target.c (update_current_target): Don't inherit or default
5246 to_remove_vfork_catchpoint.
5247 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5248 TARGET_DEFAULT_RETURN.
5250 2014-02-19 Tom Tromey <tromey@redhat.com>
5252 * target-delegates.c: Rebuild.
5253 * target.c (update_current_target): Don't inherit or default
5254 to_insert_vfork_catchpoint.
5255 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5256 TARGET_DEFAULT_RETURN.
5258 2014-02-19 Tom Tromey <tromey@redhat.com>
5260 * target-delegates.c: Rebuild.
5261 * target.c (update_current_target): Don't inherit or default
5262 to_remove_fork_catchpoint.
5263 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5264 TARGET_DEFAULT_RETURN.
5266 2014-02-19 Tom Tromey <tromey@redhat.com>
5268 * target-delegates.c: Rebuild.
5269 * target.c (update_current_target): Don't inherit or default
5270 to_insert_fork_catchpoint.
5271 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5272 TARGET_DEFAULT_RETURN.
5274 2014-02-19 Tom Tromey <tromey@redhat.com>
5276 * target-delegates.c: Rebuild.
5277 * target.c (update_current_target): Don't inherit or default
5278 to_post_startup_inferior.
5279 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5280 TARGET_DEFAULT_IGNORE.
5282 2014-02-19 Tom Tromey <tromey@redhat.com>
5284 * target-delegates.c: Rebuild.
5285 * target.c (update_current_target): Don't inherit or default
5287 * target.h (struct target_ops) <to_load>: Use
5288 TARGET_DEFAULT_NORETURN.
5290 2014-02-19 Tom Tromey <tromey@redhat.com>
5292 * target-delegates.c: Rebuild.
5293 * target.c (update_current_target): Don't inherit or default
5295 * target.h (struct target_ops) <to_terminal_info>: Use
5296 TARGET_DEFAULT_FUNC.
5298 2014-02-19 Tom Tromey <tromey@redhat.com>
5300 * target-delegates.c: Rebuild.
5301 * target.c (update_current_target): Don't inherit or default
5302 to_terminal_save_ours.
5303 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5304 TARGET_DEFAULT_IGNORE.
5306 2014-02-19 Tom Tromey <tromey@redhat.com>
5308 * target-delegates.c: Rebuild.
5309 * target.c (update_current_target): Don't inherit or default
5311 * target.h (struct target_ops) <to_terminal_ours>: Use
5312 TARGET_DEFAULT_IGNORE.
5314 2014-02-19 Tom Tromey <tromey@redhat.com>
5316 * target-delegates.c: Rebuild.
5317 * target.c (update_current_target): Don't inherit or default
5318 to_terminal_ours_for_output.
5319 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5320 TARGET_DEFAULT_IGNORE.
5322 2014-02-19 Tom Tromey <tromey@redhat.com>
5324 * target-delegates.c: Rebuild.
5325 * target.c (update_current_target): Don't inherit or default
5326 to_terminal_inferior.
5327 * target.h (struct target_ops) <to_terminal_inferior>: Use
5328 TARGET_DEFAULT_IGNORE.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target-delegates.c: Rebuild.
5333 * target.c (update_current_target): Don't inherit or default
5335 * target.h (struct target_ops) <to_terminal_init>: Use
5336 TARGET_DEFAULT_IGNORE.
5338 2014-02-19 Tom Tromey <tromey@redhat.com>
5340 * target-delegates.c: Rebuild.
5341 * target.c (update_current_target): Don't inherit or default
5342 to_can_accel_watchpoint_condition.
5343 * target.h (struct target_ops)
5344 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * target-delegates.c: Rebuild.
5349 * target.c (update_current_target): Don't inherit or default
5350 to_region_ok_for_hw_watchpoint.
5351 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5352 Use TARGET_DEFAULT_FUNC.
5354 2014-02-19 Tom Tromey <tromey@redhat.com>
5356 * target-delegates.c: Rebuild.
5357 * target.c (update_current_target): Don't inherit or default
5358 to_watchpoint_addr_within_range.
5359 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5360 Use TARGET_DEFAULT_FUNC.
5362 2014-02-19 Tom Tromey <tromey@redhat.com>
5364 * target-delegates.c: Rebuild.
5365 * target.c (update_current_target): Don't inherit or default
5366 to_remove_watchpoint.
5367 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5368 TARGET_DEFAULT_NORETURN.
5370 2014-02-19 Tom Tromey <tromey@redhat.com>
5372 * target-delegates.c: Rebuild.
5373 * target.c (update_current_target): Don't inherit or default
5374 to_insert_watchpoint.
5375 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5376 TARGET_DEFAULT_RETURN.
5378 2014-02-19 Tom Tromey <tromey@redhat.com>
5380 * target-delegates.c: Rebuild.
5381 * target.c (update_current_target): Don't inherit or default
5382 to_remove_hw_breakpoint.
5383 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5384 TARGET_DEFAULT_RETURN.
5386 2014-02-19 Tom Tromey <tromey@redhat.com>
5388 * target-delegates.c: Rebuild.
5389 * target.c (update_current_target): Don't inherit or default
5390 to_insert_hw_breakpoint.
5391 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5392 TARGET_DEFAULT_RETURN.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target-delegates.c: Rebuild.
5397 * target.c (update_current_target): Don't inherit or default
5398 to_can_use_hw_breakpoint.
5399 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5400 TARGET_DEFAULT_RETURN.
5402 2014-02-19 Tom Tromey <tromey@redhat.com>
5404 * target-delegates.c: Rebuild.
5405 * target.c (update_current_target): Don't inherit or default
5407 * target.h (struct target_ops) <to_files_info>: Use
5408 TARGET_DEFAULT_IGNORE.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target-delegates.c: Rebuild.
5413 * target.c (update_current_target): Don't inherit or default
5415 * target.h (struct target_ops) <to_store>: Use
5416 TARGET_DEFAULT_NORETURN.
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target-delegates.c: Rebuild.
5421 * target.c (update_current_target): Don't inherit or default
5423 * target.h (struct target_ops) <to_post_attach>: Use
5424 TARGET_DEFAULT_IGNORE.
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target-delegates.c: Rebuild.
5429 * target.c (update_current_target): Don't inherit or default
5431 (default_rcmd): New function.
5432 (do_monitor_command): Unconditionally delegate.
5433 * target.h (struct target_ops) <to_rmcd>: Use
5434 TARGET_DEFAULT_FUNC.
5436 2014-02-19 Tom Tromey <tromey@redhat.com>
5438 * target-delegates.c: Rebuild.
5439 * target.c (init_dummy_target): Don't initialize to_attach.
5440 (target_attach): Unconditionally delegate.
5441 * target.h (struct target_ops) <to_attach>: Use
5442 TARGET_DEFAULT_FUNC.
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target-delegates.c: Rebuild.
5447 * target.c (target_detach): Unconditionally delegate.
5448 (init_dummy_target): Don't initialize to_detach.
5449 * target.h (struct target_ops) <to_detach>: Use
5450 TARGET_DEFAULT_IGNORE.
5452 2014-02-19 Tom Tromey <tromey@redhat.com>
5454 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5456 (target_augmented_libraries_svr4_read): Add argument.
5457 * target.c (update_current_target): Update.
5458 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5461 2014-02-19 Tom Tromey <tromey@redhat.com>
5463 * target.h (struct target_ops) <to_call_history_range>: Add
5465 * target.c (target_call_history_range): Add argument.
5466 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5468 (record_btrace_call_history_from): Update.
5470 2014-02-19 Tom Tromey <tromey@redhat.com>
5472 * target.h (struct target_ops) <to_call_history_from>: Add
5474 * target.c (target_call_history_from): Add argument.
5475 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target.h (struct target_ops) <to_call_history>: Add argument.
5481 * target.c (target_call_history): Add argument.
5482 * record-btrace.c (record_btrace_call_history): Add 'self'
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_insn_history_range>: Add
5489 * target.c (target_insn_history_range): Add argument.
5490 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5492 (record_btrace_insn_history_from): Update.
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target.h (struct target_ops) <to_insn_history_from>: Add
5498 * target.c (target_insn_history_from): Add argument.
5499 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target.h (struct target_ops) <to_insn_history>: Add argument.
5505 * target.c (target_insn_history): Add argument.
5506 * record-btrace.c (record_btrace_insn_history): Add 'self'
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target.h (struct target_ops) <to_goto_record>: Add argument.
5512 * target.c (target_goto_record): Add argument.
5513 * record-full.c (record_full_goto): Add 'self' argument.
5514 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5516 2014-02-19 Tom Tromey <tromey@redhat.com>
5518 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5519 * target.c (target_goto_record_end): Add argument.
5520 * record-full.c (record_full_goto_end): Add 'self' argument.
5521 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5523 2014-02-19 Tom Tromey <tromey@redhat.com>
5525 * target.h (struct target_ops) <to_goto_record_begin>: Add
5527 * target.c (target_goto_record_begin): Add argument.
5528 * record-full.c (record_full_goto_begin): Add 'self' argument.
5529 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target.h (struct target_ops) <to_record_is_replaying>: Add
5536 * target.c (target_record_is_replaying): Add argument.
5537 * record-full.c (record_full_is_replaying): Add 'self' argument.
5538 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5540 (record_btrace_xfer_partial, record_btrace_store_registers)
5541 (record_btrace_prepare_to_store, record_btrace_resume)
5542 (record_btrace_wait, record_btrace_decr_pc_after_break)
5543 (record_btrace_find_new_threads, record_btrace_thread_alive):
5546 2014-02-19 Tom Tromey <tromey@redhat.com>
5548 * target.h (struct target_ops) <to_delete_record>: Add argument.
5549 * target.c (target_delete_record): Add argument.
5550 * record-full.c (record_full_delete): Add 'self' argument.
5552 2014-02-19 Tom Tromey <tromey@redhat.com>
5554 * target.h (struct target_ops) <to_save_record>: Add argument.
5555 * target.c (target_save_record): Add argument.
5556 * record-full.c (record_full_save): Add 'self' argument.
5557 (record_full_save): Add 'self' argument.
5559 2014-02-19 Tom Tromey <tromey@redhat.com>
5561 * target.h (struct target_ops) <to_info_record>: Add argument.
5562 * target.c (target_info_record): Add argument.
5563 * record.c (info_record_command): Add argument.
5564 * record-full.c (record_full_info): Add 'self' argument.
5565 * record-btrace.c (record_btrace_info): Add 'self' argument.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5570 * target.c (target_stop_recording): Add argument.
5571 * record.c (record_stop): Add argument.
5572 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5578 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5579 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5581 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5582 (_initialize_amd64_linux_nat): Use it.
5583 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5584 (_initialize_i386_linux_nat): Use it.
5586 2014-02-19 Tom Tromey <tromey@redhat.com>
5588 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5589 * target.c (target_teardown_btrace): Add argument.
5590 * remote.c (remote_teardown_btrace): Add 'self' argument.
5591 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5593 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5596 2014-02-19 Tom Tromey <tromey@redhat.com>
5598 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5599 * target.c (target_disable_btrace): Add argument.
5600 * remote.c (remote_disable_btrace): Add 'self' argument.
5601 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5603 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5609 * target.c (target_enable_btrace): Add argument.
5610 * remote.c (remote_enable_btrace): Add 'self' argument.
5611 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5613 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5616 2014-02-19 Tom Tromey <tromey@redhat.com>
5618 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5619 (target_can_use_agent): Add argument.
5620 * target.c (update_current_target): Update.
5621 * remote.c (remote_can_use_agent): Add 'self' argument.
5622 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5624 2014-02-19 Tom Tromey <tromey@redhat.com>
5626 * target.h (struct target_ops) <to_use_agent>: Add argument.
5627 (target_use_agent): Add argument.
5628 * target.c (update_current_target): Update.
5629 * remote.c (remote_use_agent): Add 'self' argument.
5630 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5632 2014-02-19 Tom Tromey <tromey@redhat.com>
5634 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5635 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5636 (target_traceframe_info): Add argument.
5637 * target.c (update_current_target): Update.
5638 * remote.c (remote_traceframe_info): Add 'self' argument.
5639 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5641 2014-02-19 Tom Tromey <tromey@redhat.com>
5643 * target.h (target_static_tracepoint_markers_by_strid): Add
5645 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5647 * target.c (update_current_target): Update.
5648 * remote.c (struct target_ops)
5649 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5650 * linux-nat.c (struct target_ops)
5651 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5653 2014-02-19 Tom Tromey <tromey@redhat.com>
5655 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5657 (target_static_tracepoint_marker_at): Add argument.
5658 * target.c (update_current_target): Update.
5659 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5662 2014-02-19 Tom Tromey <tromey@redhat.com>
5664 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5665 (target_set_permissions): Add argument.
5666 * target.c (update_current_target): Update.
5667 * remote.c (remote_set_permissions): Add 'self' argument.
5668 (remote_start_remote): Update.
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5673 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5674 (target_get_tib_address): Add argument.
5675 * target.c (update_current_target): Update.
5676 * remote.c (remote_get_tib_address): Add 'self' argument.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5681 (target_set_trace_notes): Add argument.
5682 * target.c (update_current_target): Update.
5683 * remote.c (remote_set_trace_notes): Add 'self' argument.
5685 2014-02-19 Tom Tromey <tromey@redhat.com>
5687 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5689 (target_set_trace_buffer_size): Add argument.
5690 * target.c (update_current_target): Update.
5691 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5697 (target_set_circular_trace_buffer): Add argument.
5698 * target.c (update_current_target): Update.
5699 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5706 (target_set_disconnected_tracing): Add argument.
5707 * target.c (update_current_target): Update.
5708 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5710 2014-02-19 Tom Tromey <tromey@redhat.com>
5712 * target.h (struct target_ops)
5713 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5714 (target_get_min_fast_tracepoint_insn_len): Add argument.
5715 * target.c (update_current_target): Update.
5716 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5723 (target_get_raw_trace_data): Add argument.
5724 * target.c (update_current_target): Update.
5725 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5727 2014-02-19 Tom Tromey <tromey@redhat.com>
5729 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5731 (target_upload_trace_state_variables): Add argument.
5732 * target.c (update_current_target): Update.
5733 * remote.c (remote_upload_trace_state_variables): Add 'self'
5735 (remote_start_remote): Update.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5741 (target_upload_tracepoints): Add argument.
5742 * target.c (update_current_target): Update.
5743 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5744 (remote_start_remote): Update.
5746 2014-02-19 Tom Tromey <tromey@redhat.com>
5748 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5749 (target_save_trace_data): Add argument.
5750 * target.c (update_current_target): Update.
5751 * remote.c (remote_save_trace_data): Add 'self' argument.
5753 2014-02-19 Tom Tromey <tromey@redhat.com>
5755 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5757 * target.h (struct target_ops)
5758 <to_get_trace_state_variable_value>: Add argument.
5759 (target_get_trace_state_variable_value): Add argument.
5760 * target.c (update_current_target): Update.
5761 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5763 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5768 * target.h (struct target_ops) <to_trace_find>: Add argument.
5769 (target_trace_find): Add argument.
5770 * target.c (update_current_target): Update.
5771 * remote.c (remote_trace_find): Add 'self' argument.
5772 * ctf.c (ctf_trace_find): Add 'self' argument.
5774 2014-02-19 Tom Tromey <tromey@redhat.com>
5776 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5777 (target_trace_stop): Add argument.
5778 * target.c (update_current_target): Update.
5779 * remote.c (remote_trace_stop): Add 'self' argument.
5781 2014-02-19 Tom Tromey <tromey@redhat.com>
5783 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5784 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5786 (target_get_tracepoint_status): Add argument.
5787 * target.c (update_current_target): Update.
5788 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5793 * target.h (struct target_ops) <to_get_trace_status>: Add
5795 (target_get_trace_status): Add argument.
5796 * target.c (update_current_target): Update.
5797 * remote.c (remote_get_trace_status): Add 'self' argument.
5798 (remote_start_remote, remote_can_download_tracepoint): Update.
5799 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5801 2014-02-19 Tom Tromey <tromey@redhat.com>
5803 * target.h (struct target_ops) <to_trace_start>: Add argument.
5804 (target_trace_start): Add argument.
5805 * target.c (update_current_target): Update.
5806 * remote.c (remote_trace_start): Add 'self' argument.
5808 2014-02-19 Tom Tromey <tromey@redhat.com>
5810 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5812 (target_trace_set_readonly_regions): Add argument.
5813 * target.c (update_current_target): Update.
5814 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5817 2014-02-19 Tom Tromey <tromey@redhat.com>
5819 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5821 (target_disable_tracepoint): Add argument.
5822 * target.c (update_current_target): Update.
5823 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5825 2014-02-19 Tom Tromey <tromey@redhat.com>
5827 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5829 (target_enable_tracepoint): Add argument.
5830 * target.c (update_current_target): Update.
5831 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target.h (struct target_ops) <to_download_trace_state_variable>:
5837 (target_download_trace_state_variable): Add argument.
5838 * target.c (update_current_target): Update.
5839 * remote.c (remote_download_trace_state_variable): Add 'self'
5842 2014-02-19 Tom Tromey <tromey@redhat.com>
5844 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5846 (target_can_download_tracepoint): Add argument.
5847 * target.c (update_current_target): Update.
5848 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target.h (struct target_ops) <to_download_tracepoint>: Add
5854 (target_download_tracepoint): Add argument.
5855 * target.c (update_current_target): Update.
5856 * remote.c (remote_download_tracepoint): Add 'self' argument.
5858 2014-02-19 Tom Tromey <tromey@redhat.com>
5860 * target.h (struct target_ops) <to_trace_init>: Add argument.
5861 (target_trace_init): Add argument.
5862 * target.c (update_current_target): Update.
5863 * remote.c (remote_trace_init): Add 'self' argument.
5865 2014-02-19 Tom Tromey <tromey@redhat.com>
5867 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5868 * target.c (target_fileio_readlink): Add argument.
5869 * remote.c (remote_hostio_readlink): Add 'self' argument.
5870 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5872 2014-02-19 Tom Tromey <tromey@redhat.com>
5874 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5875 * target.c (target_fileio_unlink): Add argument.
5876 * remote.c (remote_hostio_unlink): Add 'self' argument.
5877 (remote_file_delete): Update.
5878 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5883 * target.c (target_fileio_close): Add argument.
5884 * remote.c (remote_hostio_close): Add 'self' argument.
5885 (remote_hostio_close_cleanup): Update.
5886 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5888 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5893 * target.c (target_fileio_pread): Add argument.
5894 * remote.c (remote_hostio_pread): Add 'self' argument.
5895 (remote_bfd_iovec_pread, remote_file_get): Update.
5896 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5901 * target.c (target_fileio_pwrite): Add argument.
5902 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5903 (remote_file_put): Update.
5904 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5906 2014-02-19 Tom Tromey <tromey@redhat.com>
5908 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5909 * target.c (target_fileio_open): Add argument.
5910 * remote.c (remote_hostio_open): Add 'self' argument.
5911 (remote_bfd_iovec_open): Add 'self' argument.
5912 (remote_file_put): Add 'self' argument.
5913 (remote_file_get): Add 'self' argument.
5914 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5916 2014-02-19 Tom Tromey <tromey@redhat.com>
5918 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5920 (target_can_run_breakpoint_commands): Add argument.
5921 * target.c (update_current_target): Update.
5922 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5924 (remote_insert_breakpoint): Add 'self' argument.
5925 (remote_insert_hw_breakpoint): Add 'self' argument.
5926 (remote_can_run_breakpoint_commands): Add 'self' argument.
5928 2014-02-19 Tom Tromey <tromey@redhat.com>
5930 * target.h (struct target_ops)
5931 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5932 (target_supports_evaluation_of_breakpoint_conditions): Add
5934 * target.c (update_current_target): Update.
5935 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5937 (remote_insert_breakpoint): Add 'self' argument.
5938 (remote_insert_hw_breakpoint): Add 'self' argument.
5939 (remote_supports_cond_breakpoints): Add 'self' argument.
5941 2014-02-19 Tom Tromey <tromey@redhat.com>
5943 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5945 (target_supports_string_tracing): Add argument.
5946 * target.c (update_current_target): Update.
5947 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5951 * target.h (struct target_ops)
5952 <to_supports_disable_randomization>: Add argument.
5953 * target.c (find_default_supports_disable_randomization): Add
5955 (target_supports_disable_randomization): Add argument.
5956 (find_default_supports_disable_randomization): Add 'self'
5958 * remote.c (extended_remote_supports_disable_randomization): Add
5960 (remote_supports_disable_randomization): Add 'self' argument.
5961 (extended_remote_create_inferior): Update.
5962 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5967 * target.h (struct target_ops)
5968 <to_supports_enable_disable_tracepoint>: Add argument.
5969 (target_supports_enable_disable_tracepoint): Add argument.
5970 * target.c (update_current_target): Update.
5971 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5974 2014-02-19 Tom Tromey <tromey@redhat.com>
5976 * target.h (struct target_ops) <to_supports_multi_process>: Add
5978 (target_supports_multi_process): Add argument.
5979 * target.c (update_current_target): Update.
5980 * remote.c (remote_supports_multi_process): Add 'self' argument.
5981 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5983 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5986 2014-02-19 Tom Tromey <tromey@redhat.com>
5988 * target.h (struct target_ops) <to_execution_direction>: Add
5990 (target_execution_direction): Add argument.
5991 * target.c (default_execution_direction): Add 'self' argument.
5992 * record-full.c (record_full_execution_direction): Add 'self'
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5999 (target_can_execute_reverse): Add argument.
6000 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6001 * record-full.c (record_full_can_execute_reverse): Add 'self'
6003 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6006 2014-02-19 Tom Tromey <tromey@redhat.com>
6008 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6009 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6011 (target_get_ada_task_ptid): Add argument.
6012 * target.c (update_current_target): Update.
6013 (default_get_ada_task_ptid): Add 'self' argument.
6014 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6015 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6016 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6018 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6020 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6022 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6024 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6025 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6031 (target_goto_bookmark): Add argument.
6032 * target.c (dummy_goto_bookmark): Add 'self' argument.
6033 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6035 2014-02-19 Tom Tromey <tromey@redhat.com>
6037 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6038 (target_get_bookmark): Add argument.
6039 * target.c (dummy_get_bookmark): Add 'self' argument.
6040 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6042 2014-02-19 Tom Tromey <tromey@redhat.com>
6044 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6046 (target_make_corefile_notes): Add argument.
6047 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6048 * procfs.c (procfs_make_note_section): Add 'self' argument.
6049 (procfs_make_note_section): Add 'self' argument.
6050 (procfs_make_note_section): Add 'self' argument.
6051 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6053 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6054 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6055 * exec.c (exec_make_note_section): Add 'self' argument.
6056 (exec_make_note_section): Add 'self' argument.
6058 2014-02-19 Tom Tromey <tromey@redhat.com>
6060 * target.h (struct target_ops) <to_find_memory_regions>: Add
6062 (target_find_memory_regions): Add argument.
6063 * target.c (dummy_find_memory_regions): Add 'self' argument.
6064 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6065 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6066 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6067 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6068 * exec. (exec_do_find_memory_regions): New global.
6069 (exec_set_find_memory_regions): Rewrite.
6070 (exec_find_memory_regions): New function.
6071 (init_exec_ops): Use exec_find_memory_regions.
6073 2014-02-19 Tom Tromey <tromey@redhat.com>
6075 * target.h (struct target_ops) <to_supports_non_stop>: Add
6077 * target.c (find_default_supports_non_stop): Add argument.
6078 (target_supports_non_stop): Add argument.
6079 (find_default_supports_non_stop): Add 'self' argument.
6080 * remote.c (remote_supports_non_stop): Add 'self' argument.
6081 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6083 2014-02-19 Tom Tromey <tromey@redhat.com>
6085 * target.h (struct target_ops) <to_log_command>: Add argument.
6086 (target_log_command): Add argument.
6087 * serial.h (serial_log_command): Add 'self' argument.
6088 * serial.c (serial_log_command): Add 'self' argument.
6090 2014-02-19 Tom Tromey <tromey@redhat.com>
6092 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6093 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6095 (target_pid_to_exec_file): Add argument.
6096 * target.c (debug_to_pid_to_exec_file): Add argument.
6097 (update_current_target): Update.
6098 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6099 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6100 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6101 (linux_handle_extended_wait): Update.
6102 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6103 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6104 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6105 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6107 2014-02-19 Tom Tromey <tromey@redhat.com>
6109 * target.h (struct target_ops) <to_rcmd>: Add argument.
6110 (target_rcmd): Add argument.
6111 * target.c (debug_to_rcmd): Add argument.
6112 (update_current_target, do_monitor_command): Update.
6113 * remote.c (remote_rcmd): Add 'self' argument.
6114 * monitor.c (monitor_rcmd): Add 'self' argument.
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * windows-nat.c (windows_stop): Add 'self' argument.
6119 * target.h (struct target_ops) <to_stop>: Add argument.
6120 * target.c (target_stop): Add argument.
6121 (debug_to_stop): Add argument.
6122 (update_current_target): Update.
6123 * remote.c (remote_stop): Add 'self' argument.
6124 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6125 (gdbsim_cntrl_c): Update.
6126 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6127 * procfs.c (procfs_stop): Add 'self' argument.
6128 * nto-procfs.c (procfs_stop): Add 'self' argument.
6129 * monitor.c (monitor_stop): Add 'self' argument.
6130 (monitor_open): Update.
6131 * linux-nat.c (linux_nat_stop): Add argument.
6132 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6133 * gnu-nat.c (gnu_stop): Add 'self' argument.
6134 * darwin-nat.c (darwin_stop): Add 'self' argument.
6136 2014-02-19 Tom Tromey <tromey@redhat.com>
6138 * target.h (struct target_ops) <to_thread_name>: Add argument.
6139 * target.c (target_thread_name): Add argument.
6140 (update_current_target): Update.
6141 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_extra_thread_info>: Add
6147 (target_extra_thread_info): Add argument.
6148 * target.c (update_current_target): Update.
6149 * remote.c (remote_threads_extra_info): Add 'self' argument.
6150 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6152 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6153 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6154 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6156 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6158 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6160 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target.h (struct target_ops) <to_program_signals>: Add argument.
6166 * target.c (target_program_signals): Add argument.
6167 * remote.c (remote_program_signals): Add 'self' argument.
6169 2014-02-19 Tom Tromey <tromey@redhat.com>
6171 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6172 * target.c (target_pass_signals): Add argument.
6173 * remote.c (remote_pass_signals): Add 'self' argument.
6174 (remote_start_remote): Update.
6175 * procfs.c (procfs_pass_signals): Add 'self' argument.
6176 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6177 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6178 (linux_nat_create_inferior, linux_nat_attach): Update.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * windows-nat.c (windows_can_run): Add 'self' argument.
6183 * target.h (struct target_ops) <to_can_run>: Add argument.
6184 (target_can_run): Add argument.
6185 * target.c (debug_to_can_run): Add argument.
6186 (update_current_target): Update.
6187 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6188 * inf-child.c (inf_child_can_run): Add 'self' argument.
6189 * go32-nat.c (go32_can_run): Add 'self' argument.
6191 2014-02-19 Tom Tromey <tromey@redhat.com>
6193 * target.h (struct target_ops) <to_has_exited>: Add argument.
6194 (target_has_exited): Add argument.
6195 * target.c (debug_to_has_exited): Add argument.
6196 (update_current_target): Update.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6202 (target_set_syscall_catchpoint): Add argument.
6203 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6205 * target.c (update_current_target): Update.
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6209 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6211 (target_remove_exec_catchpoint): Add argument.
6212 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6213 (update_current_target): Update.
6214 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6221 (target_insert_exec_catchpoint): Add argument.
6222 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6223 (update_current_target): Update.
6224 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6231 (target_remove_vfork_catchpoint): Add argument.
6232 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6233 (update_current_target): Update.
6234 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6241 (target_insert_vfork_catchpoint): Add argument.
6242 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6243 (update_current_target): Update.
6244 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6249 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6251 (target_remove_fork_catchpoint): Add argument.
6252 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6253 (update_current_target): Update.
6254 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6257 2014-02-19 Tom Tromey <tromey@redhat.com>
6259 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6261 (target_insert_fork_catchpoint): Add argument.
6262 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6263 (update_current_target): Update.
6264 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6271 (target_post_startup_inferior): Add argument.
6272 * target.c (debug_to_post_startup_inferior): Add argument.
6273 (update_current_target): Update.
6274 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6276 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6278 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6280 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6282 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6284 (super_post_startup_inferior): Likewise.
6285 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6287 (super_post_startup_inferior): Likewise.
6288 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6289 Add 'self' argument.
6290 (super_post_startup_inferior): Likewise.
6292 2014-02-19 Tom Tromey <tromey@redhat.com>
6294 * target.h (struct target_ops) <to_load>: Add argument.
6295 * target.c (target_load): Add argument.
6296 (debug_to_load): Add argument.
6297 (update_current_target): Update.
6298 * remote.c (remote_load): Add 'self' argument.
6299 * remote-sim.c (gdbsim_load): Add 'self' argument.
6300 * remote-mips.c (mips_load): Add 'self' argument.
6301 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6302 * monitor.c (monitor_load): Add 'self' argument.
6303 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6307 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6308 (target_terminal_info): Add argument.
6309 * target.c (debug_to_terminal_info): Add argument.
6310 (default_terminal_info): Likewise.
6311 * inflow.c (child_terminal_info): Add 'self' argument.
6312 * inferior.h (child_terminal_info): Add 'self' argument.
6313 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6319 (target_terminal_save_ours): Add argument.
6320 * target.c (debug_to_terminal_save_ours): Add argument.
6321 (update_current_target): Update.
6322 * inflow.c (terminal_save_ours): Add 'self' argument.
6323 * inferior.h (terminal_save_ours): Add 'self' argument.
6325 2014-02-19 Tom Tromey <tromey@redhat.com>
6327 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6328 (target_terminal_ours): Add argument.
6329 * target.c (debug_to_terminal_ours): Add argument.
6330 (update_current_target): Update.
6331 * remote.c (remote_terminal_ours): Add 'self' argument.
6332 (remote_close): Update.
6333 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6334 * inflow.c (terminal_ours): Add 'self' argument.
6335 * inferior.h (terminal_ours): Add 'self' argument.
6336 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6338 2014-02-19 Pedro Alves <palves@redhat.com>
6339 Tom Tromey <tromey@redhat.com>
6341 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6343 (target_terminal_ours_for_output): Add argument.
6344 * target.c (debug_to_terminal_ours_for_output): Add argument.
6345 (update_current_target): Update.
6346 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6347 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6348 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6350 2014-02-19 Tom Tromey <tromey@redhat.com>
6352 * target.h (struct target_ops) <to_terminal_inferior>: Add
6354 * target.c (target_terminal_inferior): Add argument.
6355 (update_current_target): Update.
6356 * remote.c (remote_terminal_inferior): Add 'self' argument.
6357 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6358 * inflow.c (terminal_inferior): Add 'self' argument.
6359 * inferior.h (terminal_inferior): Add 'self' argument.
6360 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6361 (go32_terminal_inferior): Add 'self' argument.
6363 2014-02-19 Tom Tromey <tromey@redhat.com>
6365 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6366 (target_terminal_init): Add argument.
6367 * target.c (debug_to_terminal_init): Add argument.
6368 (update_current_target): Update.
6369 * inflow.c (terminal_init_inferior): Add 'self' argument.
6370 * inferior.h (terminal_init_inferior): Add 'self' argument.
6371 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6372 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target.h (struct target_ops)
6377 <to_can_accel_watchpoint_condition>: Add argument.
6378 (target_can_accel_watchpoint_condition): Add argument.
6379 * target.c (debug_to_can_accel_watchpoint_condition): Add
6381 (update_current_target): Update.
6382 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6389 (target_region_ok_for_hw_watchpoint): Add argument.
6390 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6391 (default_region_ok_for_hw_watchpoint): Add argument.
6392 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6393 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6395 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6397 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6399 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6401 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6403 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6405 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6406 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6408 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6409 Add 'self' argument.
6411 2014-02-19 Tom Tromey <tromey@redhat.com>
6413 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6415 (target_insert_watchpoint): Add argument.
6416 * target.c (debug_to_insert_watchpoint): Add argument.
6417 (update_current_target): Update.
6418 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6419 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6420 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6421 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6422 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6423 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6425 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6426 (procfs_insert_hw_watchpoint): Add 'self' argument.
6427 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6429 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6431 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6433 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6434 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6436 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6443 (target_remove_watchpoint): Add argument.
6444 * target.c (debug_to_remove_watchpoint): Add argument.
6445 (update_current_target): Update.
6446 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6447 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6448 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6449 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6450 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6451 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6453 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6454 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6456 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6458 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6460 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6461 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6463 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6466 2014-02-19 Tom Tromey <tromey@redhat.com>
6468 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6470 (target_remove_hw_breakpoint): Add argument.
6471 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6472 (update_current_target): Update.
6473 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6474 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6476 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6477 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6479 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6486 (target_insert_hw_breakpoint): Add argument.
6487 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6488 (update_current_target): Update.
6489 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6490 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6492 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6493 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6494 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6496 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6503 (target_can_use_hardware_watchpoint): Add argument.
6504 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6505 (update_current_target): Update.
6506 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6508 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6510 * remote.c (remote_check_watch_resources): Add 'self' argument.
6511 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6512 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6514 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6515 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6517 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6519 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6521 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6523 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6525 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6527 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6528 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6530 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6533 2014-02-19 Tom Tromey <tromey@redhat.com>
6535 * target.h (struct target_ops) <to_post_attach>: Add argument.
6536 (target_post_attach): Add argument.
6537 * target.c (debug_to_post_attach): Add argument.
6538 (update_current_target): Update.
6539 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6540 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6541 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6542 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6543 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6545 2014-02-19 Tom Tromey <tromey@redhat.com>
6547 * windows-nat.c (windows_close): Add 'self' argument.
6548 * tracepoint.c (tfile_close): Add 'self' argument.
6549 * target.h (struct target_ops) <to_close>: Add argument.
6550 * target.c (target_close): Add argument.
6551 (update_current_target): Update.
6552 * remote.c (remote_close): Add 'self' argument.
6553 * remote-sim.c (gdbsim_close): Add 'self' argument.
6554 * remote-mips.c (mips_close): Add 'self' argument.
6555 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6556 * record-full.c (record_full_close): Add 'self' argument.
6557 * record-btrace.c (record_btrace_close): Add 'self' argument.
6558 * monitor.h (monitor_close): Add 'self' argument.
6559 * monitor.c (monitor_close): Add 'self' argument.
6560 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6561 * linux-nat.c (linux_nat_close): Add argument.
6562 * go32-nat.c (go32_close): Add 'self' argument.
6563 * exec.c (exec_close_1): Add 'self' argument.
6564 * ctf.c (ctf_close): Add 'self' argument.
6565 * corelow.c (core_close): Add 'self' argument.
6566 (core_close_cleanup): Update.
6567 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6568 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6570 2014-02-19 Tom Tromey <tromey@redhat.com>
6572 * remote.c (remote_load): New function.
6573 (init_remote_ops): Use it.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6579 * common/linux-btrace.h (linux_supports_btrace): Update.
6580 * remote.c (remote_supports_btrace): Add "self" argument.
6581 * target-delegates.c: Rebuild.
6582 * target.c (target_supports_btrace): Remove.
6583 * target.h (struct target_ops) <to_supports_btrace>: Add
6584 target_ops argument.
6585 (target_supports_btrace): New define.
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * record-full.c (record_full_beneath_to_resume_ops)
6590 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6591 (record_full_beneath_to_wait)
6592 (record_full_beneath_to_store_registers_ops)
6593 (record_full_beneath_to_store_registers)
6594 (record_full_beneath_to_xfer_partial_ops)
6595 (record_full_beneath_to_xfer_partial)
6596 (record_full_beneath_to_insert_breakpoint_ops)
6597 (record_full_beneath_to_insert_breakpoint)
6598 (record_full_beneath_to_remove_breakpoint_ops)
6599 (record_full_beneath_to_remove_breakpoint)
6600 (record_full_beneath_to_stopped_by_watchpoint)
6601 (record_full_beneath_to_stopped_data_address)
6602 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6603 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6604 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6605 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6606 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6607 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6608 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6609 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6610 (record_full_resume, record_full_wait_1)
6611 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6612 (record_full_store_registers, record_full_xfer_partial)
6613 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6614 (record_full_async, record_full_core_xfer_partial): Use target
6616 * target-delegates.c: Rebuild.
6617 * target.c (current_xfer_partial): Remove.
6618 (update_current_target): Do not INHERIT or de_fault
6619 to_insert_breakpoint, to_remove_breakpoint,
6620 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6621 to_is_async_p, to_async. Do not set to_xfer_partial field.
6622 (default_xfer_partial): Simplify.
6623 (current_xfer_partial): Remove.
6624 (target_wait, target_resume): Simplify.
6625 (find_default_can_async_p, find_default_is_async_p): Update.
6626 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6627 to_xfer_partial, to_stopped_by_watchpoint,
6628 to_stopped_data_address.
6629 (target_store_registers): Simplify.
6630 (forward_target_remove_breakpoint)
6631 (forward_target_insert_breakpoint): Remove.
6632 (target_remove_breakpoint, target_insert_breakpoint)
6633 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6634 * target.h (struct target_ops) <to_resume, to_wait,
6635 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6636 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6637 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6639 (forward_target_remove_breakpoint)
6640 (forward_target_insert_breakpoint): Remove.
6641 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6643 (record_btrace_insert_breakpoint): Delegate directly.
6645 2014-02-19 Tom Tromey <tromey@redhat.com>
6648 * target-delegates.c: New file.
6649 * target.c: Include target-delegates.c.
6650 (init_dummy_target): Call install_dummy_methods.
6651 (complete_target_initialization): Call install_delegators.
6652 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6653 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6654 * make-target-delegates: New file.
6656 2014-02-19 Tom Tromey <tromey@redhat.com>
6658 * record.c (find_record_target): Use find_target_at.
6659 * target.c (find_target_at): New function.
6660 * target.h (find_target_at): Declare.
6662 2014-02-19 Tom Tromey <tromey@redhat.com>
6664 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6666 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6668 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6669 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6671 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6673 * linux-nat.c (save_sigtrap): Update.
6674 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6675 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6676 (linux_nat_close): Update.
6677 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6679 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6681 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6682 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6683 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6684 (tmp_to_async): Add 'ops' argument.
6685 (record_full_stopped_by_watchpoint, record_full_async)
6686 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6688 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6689 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6690 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6691 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6692 (remote_is_async_p, remote_async): Add 'ops' argument.
6693 (remote_stopped_data_address): Update.
6694 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6695 * target.c (update_current_target)
6696 (find_default_can_async_p, find_default_is_async_p): Update.
6697 (init_dummy_target): Update.
6698 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6699 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6700 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6701 (target_can_async_p, target_is_async_p, target_async)
6702 (target_stopped_by_watchpoint): Update.
6704 2014-02-19 Yao Qi <yao@codesourcery.com>
6707 * gdbarch.sh: Remove startup_gdbarch.
6708 * gdbarch.c: Regenerated.
6709 * gdbarch.h: Likewise.
6711 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6713 * rl78-tdep.c (rl78_g10_register_name): New function.
6714 (rl78_return_value): Add g10 support.
6715 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6718 2014-02-17 Doug Evans <xdje42@gmail.com>
6720 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6721 (SUBDIR_GUILE_SRCS): Ditto.
6722 (scm-gsmob.o): Ditto.
6724 2014-02-17 Yao Qi <yao@codesourcery.com>
6726 * gnu-nat.c (ILL_RPC): Declare defined function.
6728 2014-02-17 Yao Qi <yao@codesourcery.com>
6730 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6731 mach_msg_type_number_t.
6732 (gnu_write_inferior): Likewise.
6734 2014-02-17 Yao Qi <yao@codesourcery.com>
6736 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6738 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6739 (inf_validate_procs, inf_signal): Likewise.
6740 (S_exception_raise_request): Likewise.
6741 (do_mach_notify_dead_name): Likewise.
6742 (steal_exc_port): Likewise.
6743 (gnu_read_inferior): Change 'copy_count''s type to
6744 mach_msg_type_number_t.
6745 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6748 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6750 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6751 flag. Adjust all users; in particular...
6752 (gnu_wait): ..., don't decrement its value in here...
6753 (gnu_create_inferior): ..., and instead set the flag in here,
6754 around the startup_inferior call, and call that one with
6755 START_INFERIOR_TRAPS_EXPECTED.
6757 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6758 (ILL_RPC): ... new macro.
6759 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6760 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6761 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6762 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6763 functions with ILL_RPC macro.
6764 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6765 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6766 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6767 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6768 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6769 (S_proc_getlogin_reply, S_proc_getsid_reply)
6770 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6771 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6772 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6773 (S_proc_getnports_reply, S_proc_is_important_reply)
6774 (S_proc_get_code_reply): New stub functions, generated with
6777 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6778 collected the type check structures.
6780 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6782 2014-02-14 Doug Evans <dje@google.com>
6784 * target.c (target_write_partial): Fix result type.
6786 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6788 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6789 the proper offsets to access fpregset_t.
6791 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6793 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6794 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6795 * h8300-tdep.c (setmachinelist): Remove global.
6796 * hppa-tdep.c (hppa_sigtramp): Remove global.
6797 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6798 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6799 * ravenscar-thread.c (update_target_observer): Remove global.
6800 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6802 2014-02-12 Tom Tromey <tromey@redhat.com>
6804 * common/rsp-low.c: Update comments.
6805 * common/rsp-low.h: Update comments.
6807 2014-02-12 Tom Tromey <tromey@redhat.com>
6809 * common/rsp-low.c (convert_ascii_to_int): Remove.
6810 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6812 2014-02-12 Tom Tromey <tromey@redhat.com>
6814 * common/rsp-low.h (unhexify): Don't declare.
6815 * common/rsp-low.c (unhexify): Remove.
6817 2014-02-12 Tom Tromey <tromey@redhat.com>
6819 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6820 * common/rsp-low.c (convert_int_to_ascii): Remove.
6822 2014-02-12 Tom Tromey <tromey@redhat.com>
6824 * common/rsp-low.h (hexify): Don't declare.
6825 * common/rsp-low.c (hexify): Remove.
6827 2014-02-12 Tom Tromey <tromey@redhat.com>
6829 * common/rsp-low.c (hexify): Never take strlen of argument.
6831 2014-02-12 Tom Tromey <tromey@redhat.com>
6833 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6834 * remote.c (extended_remote_run, remote_rcmd)
6835 (remote_download_trace_state_variable, remote_save_trace_data)
6836 (remote_set_trace_notes): Update.
6837 * tracepoint.c (encode_source_string, tfile_write_status)
6838 (tfile_write_uploaded_tsv): Update.
6840 2014-02-12 Tom Tromey <tromey@redhat.com>
6842 * tracepoint.c: Include rsp-low.h.
6843 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6844 * remote.c: Include rsp-low.h.
6845 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6846 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6847 (remote_unescape_input): Move to common/rsp-low.c.
6848 * common/rsp-low.h: New file.
6849 * common/rsp-low.c: New file.
6850 * Makefile.in (SFILES): Add common/rsp-low.c.
6851 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6852 (COMMON_OBS): Add rsp-low.o.
6853 (rsp-low.o): New target.
6855 2014-02-12 Tom Tromey <tromey@redhat.com>
6857 * utils.h: Include print-utils.h.
6858 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6859 (int_string, core_addr_to_string, core_addr_to_string_nz)
6860 (hex_string, hex_string_custom): Don't declare.
6861 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6862 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6863 (hex_string_custom, int_string, core_addr_to_string)
6864 (core_addr_to_string_nz, host_address_to_string): Move to
6865 common/print-utils.c.
6866 * common/print-utils.h: New file.
6867 * common/print-utils.c: New file
6868 * Makefile.in (SFILES): Add common/print-utils.c.
6869 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6870 (COMMON_OBS): Add print-utils.o.
6871 (print-utils.o): New target.
6873 2014-02-12 Tom Tromey <tromey@redhat.com>
6875 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6877 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6879 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6881 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6883 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6884 if a PT_IO ptrace request returns sucessfully but indicates that 0
6885 bytes were transferred.
6887 2014-02-12 Pedro Alves <palves@redhat.com>
6888 Kevin Buettner <kevinb@redhat.com>
6890 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6891 TYPE_INSTANCE_FLAG_CODE_SPACE.
6893 2014-02-12 Pedro Alves <palves@redhat.com>
6895 * h8300-tdep.c (pseudo_from_raw_register)
6896 (raw_from_pseudo_register): New functions.
6897 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6900 2014-02-12 Pedro Alves <palves@redhat.com>
6902 * h8300-tdep.c (h8300_register_sim_regno): New function.
6903 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6904 gdbarch_register_sim_regno hook.
6906 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6908 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6910 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6912 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6914 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6916 * obsd-tdep.h (obsd_init_abi): New prototype.
6917 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6918 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6919 (obsd_init_abi): New functions.
6920 * i386obsd-tdep.c: Include "obsd-tdep.h".
6921 (i386obsd_init_abi): Call obsd_init_abi.
6922 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6923 (amd64obsd_init_abi): Call obsd_init_abi.
6924 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6925 obsd-tdep.c to gdb_target_obs.
6927 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6929 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6930 double float arguments to 16-byte in the argument slots.
6932 2014-02-11 Doug Evans <xdje42@gmail.com>
6934 * configure.ac: Don't crash if pkg-config is not found and guile
6935 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6937 * configure: Regenerate.
6939 2014-02-11 Yao Qi <yao@codesourcery.com>
6941 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6942 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6943 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6944 * gnu-nat.c (gnu_xfer_memory): Likewise.
6945 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6946 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6948 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6950 2014-02-11 Yao Qi <yao@codesourcery.com>
6952 * target.h (enum target_xfer_error): Rename to ...
6953 (enum target_xfer_status): ... it. New. All users updated.
6954 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6956 (TARGET_XFER_STATUS_ERROR_P): New macro.
6957 (target_xfer_error_to_string): Remove declaration.
6958 (target_xfer_status_to_string): Declare.
6959 (target_xfer_partial_ftype): Adjust it.
6960 (struct target_ops) <to_xfer_partial>: Return
6961 target_xfer_status. Add argument xfered_len. Update
6963 * target.c (target_xfer_error_to_string): Rename to ...
6964 (target_xfer_status_to_string): ... it. New. All callers
6966 (target_read_live_memory): Likewise. Call target_xfer_partial
6967 instead of target_read.
6968 (memory_xfer_live_readonly_partial): Return
6969 target_xfer_status. Add argument xfered_len.
6970 (raw_memory_xfer_partial): Likewise.
6971 (memory_xfer_partial_1): Likewise.
6972 (memory_xfer_partial): Likewise.
6973 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6974 properly. Update debug message.
6975 (default_xfer_partial, current_xfer_partial): Likewise.
6976 (target_write_partial): Likewise.
6977 (target_read_partial): Likewise. All callers updated.
6978 (read_whatever_is_readable): Likewise.
6979 (target_write_with_progress): Likewise.
6980 (target_read_alloc_1): Likewise.
6982 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6983 * auxv.c (procfs_xfer_auxv): Likewise.
6984 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6985 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6986 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6987 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6988 * corefile.c (read_memory): Adjust.
6989 * corelow.c (core_xfer_partial): Likewise.
6990 * ctf.c (ctf_xfer_partial): Likewise.
6991 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6993 (darwin_xfer_partial): Likewise.
6994 * exec.c (section_table_xfer_memory_partial): Likewise. All
6996 (exec_xfer_partial): Likewise.
6997 * exec.h (section_table_xfer_memory_partial): Update
6999 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7001 (gnu_xfer_partial): Likewise.
7002 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7003 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7004 (ia64_hpux_xfer_solib_got): Likewise.
7005 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7006 type of 'partial_len' to ULONGEST.
7007 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7008 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7009 (linux_nat_xfer_partial): Likewise.
7010 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7011 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7012 * monitor.c (monitor_xfer_memory): Likewise.
7013 (monitor_xfer_partial): Likewise.
7014 * procfs.c (procfs_xfer_partial): Likewise.
7015 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7016 * record-full.c (record_full_xfer_partial): Likewise.
7017 (record_full_core_xfer_partial): Likewise.
7018 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7019 (gdbsim_xfer_partial): Likewise.
7020 * remote.c (remote_write_bytes_aux): Likewise. All callers
7022 (remote_write_bytes, remote_read_bytes): Likewise. All
7024 (remote_flash_erase): Likewise. All callers updated.
7025 (remote_write_qxfer): Likewise. All callers updated.
7026 (remote_read_qxfer): Likewise. All callers updated.
7027 (remote_xfer_partial): Likewise.
7028 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7029 (rs6000_xfer_shared_libraries): Likewise.
7030 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7031 (sol_thread_xfer_partial): Likewise.
7032 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7033 (sparc_xfer_partial): Likewise.
7034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7036 (spu_xfer_partial): Likewise.
7037 * spu-multiarch.c (spu_xfer_partial): Likewise.
7038 * tracepoint.c (tfile_xfer_partial): Likewise.
7039 * windows-nat.c (windows_xfer_memory): Likewise.
7040 (windows_xfer_shared_libraries): Likewise.
7041 (windows_xfer_partial): Likewise.
7042 * valprint.c: Replace 'target_xfer_error' with
7043 'target_xfer_status' in comments.
7045 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7047 Checked in by Joel Brobecker <brobecker@adacore.com>.
7048 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7050 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7052 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7053 function parameters.
7055 2014-02-10 Will Newton <will.newton@linaro.org>
7057 * elfread.c (elf_rel_plt_read): Look for a .got section if
7058 looking up .got.plt fails.
7059 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7060 on address passed to elf_gnu_ifunc_record_cache.
7061 (elf_gnu_ifunc_resolve_addr): Likewise.
7062 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7064 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7066 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7067 (X_RETTURN): New macro.
7068 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7070 * sparc64-tdep.c (sparc64_init_abi): Hook
7071 sparc_in_function_epilogue_p.
7073 2014-02-10 Gary Benson <gbenson@redhat.com>
7075 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7076 Rename name_matcher to symbol_matcher.
7078 2014-02-10 Gary Benson <gbenson@redhat.com>
7080 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7081 Use expand_symtabs_file_matcher_ftype and
7082 expand_symtabs_symbol_matcher_ftype.
7084 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7086 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7087 (struct ada_symbol_cache): New.
7088 (ada_free_symbol_cache): Forward declare.
7089 (struct ada_pspace_data): New.
7090 (ada_pspace_data_handle): New static global.
7091 (get_ada_pspace_data, ada_pspace_data_cleanup)
7092 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7093 (cache_space, cache): Delete, now folded inside struct
7095 (ada_get_symbol_cache): New function.
7096 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7098 (_initialize_ada_language): Remove initialization of cache_space.
7099 Move call to observer_attach_inferior_exit up, grouping it
7100 with the other observer registrations inside this function.
7101 Rename command to be more general. Add call to
7102 register_program_space_data_with_cleanup.
7104 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7106 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7107 ada_new_objfile_observer.
7108 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7109 (_initialize_tasks): Update uses of ada_new_objfile_observer
7110 and ada_tasks_normal_stop_observer.
7112 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7114 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7115 returned by the 'Length attribute to integer.
7117 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7119 * ada-lang.c (_initialize_ada_language): Initialize
7120 cache_space obstack.
7122 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7124 * ada-lang.c (HASH_SIZE): New macro.
7125 (struct cache_entry): New type.
7126 (cache_space, cache): New static globals.
7127 (ada_clear_symbol_cache, find_entry): New functions.
7128 (lookup_cached_symbol, cache_symbol): Implement.
7129 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7130 (_initialize_ada_language): Attach ada_new_objfile_observer
7131 and ada_free_objfile_observer.
7133 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7135 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7136 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7137 struct block * parameter.
7138 (ada_lookup_symbol_list_worker): Constify local variable "block".
7139 Remove cast which is no longer necessary.
7141 2014-02-10 Doug Evans <xdje42@gmail.com>
7143 Add Guile as an extension language.
7144 * NEWS: Mention Guile scripting.
7145 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7146 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7147 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7148 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7149 (CLIBS): Add GUILE_LIBS.
7150 (install-guile): New rule.
7151 (guile.o): New rule.
7152 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7153 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7154 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7155 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7156 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7157 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7158 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7159 * configure.ac: New option --with-guile.
7160 * configure: Regenerate.
7161 * config.in: Regenerate.
7162 * auto-load.c: Remove #include "python/python.h". Add #include
7163 "gdb/section-scripts.h".
7164 (source_section_scripts): Handle Guile scripts.
7165 (_initialize_auto_load): Add name of Guile objfile script to
7166 scripts-directory help text.
7167 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7168 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7169 (struct breakpoint): New member scm_bp_object.
7170 * defs.h (enum command_control_type): New value guile_control.
7171 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7173 (show_user): Update comment.
7174 (_initialize_cli_cmds): Update help text for "show user". Update help
7175 text for max-user-call-depth.
7176 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7178 (multi_line_command_p): Add guile_control.
7179 (print_command_lines): Handle guile_control.
7180 (execute_control_command, recurse_read_control_structure): Ditto.
7181 (process_next_line): Recognize "guile" commands.
7182 * disasm.c (gdb_disassemble_info): Make non-static.
7183 * disasm.h: #include "dis-asm.h".
7184 (struct gdbarch): Add forward decl.
7185 (gdb_disassemble_info): Declare.
7186 * extension.c: #include "guile/guile.h".
7187 (extension_languages): Add guile.
7188 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7189 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7190 * gdbtypes.c (get_unsigned_type_max): New function.
7191 (get_signed_type_minmax): New function.
7192 * gdbtypes.h (get_unsigned_type_max): Declare.
7193 (get_signed_type_minmax): Declare.
7194 * guile/README: New file.
7195 * guile/guile-internal.h: New file.
7196 * guile/guile.c: New file.
7197 * guile/guile.h: New file.
7198 * guile/scm-arch.c: New file.
7199 * guile/scm-auto-load.c: New file.
7200 * guile/scm-block.c: New file.
7201 * guile/scm-breakpoint.c: New file.
7202 * guile/scm-disasm.c: New file.
7203 * guile/scm-exception.c: New file.
7204 * guile/scm-frame.c: New file.
7205 * guile/scm-gsmob.c: New file.
7206 * guile/scm-iterator.c: New file.
7207 * guile/scm-lazy-string.c: New file.
7208 * guile/scm-math.c: New file.
7209 * guile/scm-objfile.c: New file.
7210 * guile/scm-ports.c: New file.
7211 * guile/scm-pretty-print.c: New file.
7212 * guile/scm-safe-call.c: New file.
7213 * guile/scm-string.c: New file.
7214 * guile/scm-symbol.c: New file.
7215 * guile/scm-symtab.c: New file.
7216 * guile/scm-type.c: New file.
7217 * guile/scm-utils.c: New file.
7218 * guile/scm-value.c: New file.
7219 * guile/lib/gdb.scm: New file.
7220 * guile/lib/gdb/boot.scm: New file.
7221 * guile/lib/gdb/experimental.scm: New file.
7222 * guile/lib/gdb/init.scm: New file.
7223 * guile/lib/gdb/iterator.scm: New file.
7224 * guile/lib/gdb/printing.scm: New file.
7225 * guile/lib/gdb/types.scm: New file.
7226 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7227 (VPATH): Add $(GUILE_SRCDIR).
7228 (GUILE_DIR): New variable.
7229 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7230 (all): Add stamp-guile dependency.
7231 (stamp-guile): New rule.
7232 (clean-guile, install-guile, uninstall-guile): New rules.
7233 (install-only): Add install-guile dependency.
7234 (uninstall): Add uninstall-guile dependency.
7235 (clean): Add clean-guile dependency.
7237 2014-02-09 Doug Evans <xdje42@gmail.com>
7239 Revert this patch (which I approved, mea culpa).
7241 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7243 * Makefile.in (all-lib): Remove.
7244 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7246 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7248 Fix Python stack corruption.
7249 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7252 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7254 * Makefile.in (all-lib): Remove.
7255 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7257 2014-02-07 Doug Evans <dje@google.com>
7259 * extension-priv.h (extension_language_script_ops): Add comment.
7260 (extension_language_ops): Add comment.
7261 (active_ext_lang_state): Fix typo in comment.
7263 2014-02-07 Pedro Alves <palves@redhat.com>
7265 PR breakpoints/16292
7266 * infrun.c (handle_signal_stop) <signal arrives while stepping
7267 over a breakpoint>: Switch back to the stepping thread.
7269 2014-02-07 Yao Qi <yao@codesourcery.com>
7271 * target.c (target_xfer_partial): Return zero if LEN is zero.
7273 2014-02-07 Yao Qi <yao@codesourcery.com>
7275 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7276 (ld_so_xfer_auxv): Likewise.
7277 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7278 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7279 * corelow.c (core_xfer_partial): Likewise.
7280 * ctf.c (ctf_xfer_partial): Likewise.
7281 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7282 (darwin_xfer_partial): Likewise.
7283 * exec.c (exec_xfer_partial): Likewise.
7284 * gnu-nat.c (gnu_xfer_partial): Likewise.
7285 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7286 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7287 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7288 * linux-nat.c (linux_xfer_siginfo): Likewise.
7289 (linux_proc_xfer_spu): Likewise.
7290 * procfs.c (procfs_xfer_partial): Likewise.
7291 * record-full.c (record_full_xfer_partial): Likewise.
7292 (record_full_core_xfer_partial): Likewise.
7293 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7294 * remote.c (remote_write_qxfer): Likewise.
7295 (remote_write_qxfer, remote_read_qxfer): Likewise.
7296 (remote_xfer_partial): Likewise.
7297 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7298 (rs6000_xfer_shared_libraries): Likewise.
7299 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7300 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7301 (spu_xfer_partial): Likewise.
7302 * target.c (memory_xfer_partial_1): Likewise.
7303 * tracepoint.c (tfile_xfer_partial): Likewise.
7304 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7305 (windows_xfer_partial): Likewise.
7307 2014-02-07 Yao Qi <yao@codesourcery.com>
7309 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7311 (core_xfer_shared_libraries_aix): Likewise.
7312 * gdbarch.c, gdbarch.h: Regenerated.
7313 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7314 ULONGEST. Change 'len_avail' type to ULONGEST.
7315 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7316 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7318 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7320 2014-02-07 Yao Qi <yao@codesourcery.com>
7322 * corefile.c (memory_error): Get 'exception' from ERR and pass
7323 'exception' to throw_error.
7325 2014-02-06 Doug Evans <xdje42@gmail.com>
7327 * configure.ac (libpython checking): Remove all but python.o from
7328 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7329 * configure: Regenerate.
7331 * Makefile.in (SFILES): Add extension.c.
7332 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7333 (COMMON_OBS): Add extension.o.
7334 * extension.h: New file.
7335 * extension-priv.h: New file.
7336 * extension.c: New file.
7338 * python/python-internal.h: #include "extension.h".
7339 (gdbpy_auto_load_enabled): Declare.
7340 (gdbpy_apply_val_pretty_printer): Declare.
7341 (gdbpy_apply_frame_filter): Declare.
7342 (gdbpy_preserve_values): Declare.
7343 (gdbpy_breakpoint_cond_says_stop): Declare.
7344 (gdbpy_breakpoint_has_cond): Declare.
7345 (void source_python_script_for_objfile): Delete.
7346 * python/python.c: #include "extension-priv.h".
7347 Delete inclusion of "observer.h".
7348 (extension_language_python): Moved here and renamed from
7349 script_language_python in py-auto-load.c.
7350 Redefined to be of type extension_language_defn.
7351 (python_extension_script_ops): New global.
7352 (python_extension_ops): New global.
7353 (struct python_env): New member previous_active.
7354 (restore_python_env): Call restore_active_ext_lang.
7355 (ensure_python_env): Call set_active_ext_lang.
7356 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7358 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7360 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7362 (gdbpy_eval_from_control_command): Renamed from
7363 eval_python_from_control_command, made static. New arg extlang.
7364 (gdbpy_source_script) Renamed from source_python_script, made static.
7366 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7367 result to int. New arg extlang.
7368 (gdbpy_source_objfile_script): Renamed from
7369 source_python_script_for_objfile, made static. New arg extlang.
7370 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7371 static. New args extlang, extlang_printers. Change result type to
7373 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7374 static. New arg extlang. Rename arg printers to extlang_printers
7375 and change type to ext_lang_type_printers *.
7376 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7377 static. Replace argument arg with extlang, extlang_printers.
7378 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7379 (!HAVE_PYTHON, source_python_script): Delete.
7380 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7381 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7382 (!HAVE_PYTHON, start_type_printers): Delete.
7383 (!HAVE_PYTHON, apply_type_printers): Delete.
7384 (!HAVE_PYTHON, free_type_printers): Delete.
7385 (_initialize_python): Delete call to observer_attach_before_prompt.
7386 (finalize_python): Set/restore active extension language.
7387 (gdbpy_finish_initialization) Renamed from
7388 finish_python_initialization, made static. New arg extlang.
7389 (gdbpy_initialized): New function.
7390 * python/python.h: #include "extension.h". Delete #include
7391 "value.h", "mi/mi-cmds.h".
7392 (extension_language_python): Declare.
7393 (GDBPY_AUTO_FILE_NAME): Delete.
7394 (enum py_bt_status): Moved to extension.h and renamed to
7396 (enum frame_filter_flags): Moved to extension.h.
7397 (enum py_frame_args): Moved to extension.h and renamed to
7398 ext_lang_frame_args.
7399 (finish_python_initialization): Delete.
7400 (eval_python_from_control_command): Delete.
7401 (source_python_script): Delete.
7402 (apply_val_pretty_printer): Delete.
7403 (apply_frame_filter): Delete.
7404 (preserve_python_values): Delete.
7405 (gdbpy_script_language_defn): Delete.
7406 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7407 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7409 * auto-load.c: #include "extension.h".
7410 (GDB_AUTO_FILE_NAME): Delete.
7411 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7412 (script_language_gdb): Delete, moved to extension.c and renamed to
7413 extension_language_gdb.
7414 (source_gdb_script_for_objfile): Delete.
7415 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7416 (loaded_script): Change type of language member to
7417 struct extension_language_defn *.
7418 (init_loaded_scripts_info): Initialize
7419 unsupported_script_warning_printed.
7420 (maybe_add_script): Make static. Change type of language arg to
7421 struct extension_language_defn *.
7422 (clear_section_scripts): Reset unsupported_script_warning_printed.
7423 (auto_load_objfile_script_1): Rewrite to use extension language API.
7424 (auto_load_objfile_script): Make public. Remove support-compiled-in
7425 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7426 (source_section_scripts): Rewrite to use extension language API.
7427 (load_auto_scripts_for_objfile): Rewrite to use
7428 auto_load_scripts_for_objfile.
7429 (collect_matching_scripts_data): Change type of language member to
7430 struct extension_language_defn *.
7431 (auto_load_info_scripts): Change type of language arg to
7432 struct extension_language_defn *.
7433 (unsupported_script_warning_print): New function.
7434 (script_not_found_warning_print): Make static.
7435 (_initialize_auto_load): Rewrite construction of scripts-directory
7437 * auto-load.h (struct objfile): Add forward decl.
7438 (struct script_language): Delete.
7439 (struct auto_load_pspace_info): Add forward decl.
7440 (struct extension_language_defn): Add forward decl.
7441 (maybe_add_script): Delete.
7442 (auto_load_objfile_script): Declare.
7443 (script_not_found_warning_print): Delete.
7444 (auto_load_info_scripts): Update prototype.
7445 (auto_load_gdb_scripts_enabled): Declare.
7446 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7447 auto_load_python_scripts_enabled and made public.
7448 (script_language_python): Delete, moved to python.c.
7449 (gdbpy_script_language_defn): Delete.
7450 (info_auto_load_python_scripts): Update to use
7451 extension_language_python.
7453 * breakpoint.c (condition_command): Replace call to
7454 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7455 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7456 with call to breakpoint_ext_lang_cond_says_stop.
7457 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7458 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7459 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7460 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7462 (local_setattro): Print name of extension language with existing
7465 * valprint.c (val_print, value_print): Update to call
7466 apply_ext_lang_val_pretty_printer.
7467 * cp-valprint.c (cp_print_value): Update call to
7468 apply_ext_lang_val_pretty_printer.
7469 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7470 (gdbpy_apply_val_pretty_printer): Renamed from
7471 apply_val_pretty_printer. New arg extlang.
7472 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7474 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7475 extension language API.
7476 * cli/cli-script.c (execute_control_command): Update to call
7477 eval_ext_lang_from_control_command.
7479 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7480 enum ext_lang_bt_status values. Update call to
7481 apply_ext_lang_frame_filter.
7482 (mi_cmd_stack_list_locals): Ditto.
7483 (mi_cmd_stack_list_args): Ditto.
7484 (mi_cmd_stack_list_variables): Ditto.
7485 * mi/mi-main.c: Delete #include "python/python-internal.h".
7486 Add #include "extension.h".
7487 (mi_cmd_list_features): Replace reference to python internal variable
7488 gdb_python_initialized with call to ext_lang_initialized_p.
7490 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7491 Update to use enum ext_lang_frame_args. Update to call
7492 apply_ext_lang_frame_filter.
7493 * python/py-framefilter.c (extract_sym): Update to use enum
7495 (extract_value, py_print_type, py_print_value): Ditto.
7496 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7497 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7498 (py_print_frame): Ditto.
7499 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7500 New arg extlang. Update to use enum ext_lang_bt_status.
7502 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7503 finish_python_initialization. Replace with call to
7504 finish_ext_lang_initialization.
7506 * typeprint.c (do_free_global_table): Update to call
7507 free_ext_lang_type_printers.
7508 (create_global_typedef_table): Update to call
7509 start_ext_lang_type_printers.
7510 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7511 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7512 (type_print_options): Change type of global_printers from "void *"
7513 to "struct ext_lang_type_printers *".
7515 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7516 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7517 (gdbpy_preserve_values): Renamed from preserve_python_values.
7519 (!HAVE_PYTHON, preserve_python_values): Delete.
7521 * utils.c (quit_flag): Delete, moved to extension.c.
7522 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7525 * eval.c: Delete #include "python/python.h".
7526 * main.c: Delete #include "python/python.h".
7528 * defs.h: Update comment.
7530 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7534 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7536 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7539 2014-02-05 Yao Qi <yao@codesourcery.com>
7541 * remote.c (remote_pass_signals): Remove local 'buf' and use
7543 (remote_program_signals): Likewise.
7545 2014-02-05 Yao Qi <yao@codesourcery.com>
7547 * ctf.c: Include "inferior.h" and "gdbthread.h".
7548 (CTF_PID): A new macro.
7549 (ctf_open): Call inferior_appeared and add_thread_silent.
7550 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7551 (ctf_thread_alive): New function.
7552 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7554 2014-02-05 Yao Qi <yao@codesourcery.com>
7558 2013-05-24 Yao Qi <yao@codesourcery.com>
7560 * tracepoint.c (TFILE_PID): Remove.
7561 (tfile_open): Don't add thread and inferior.
7562 (tfile_close): Don't set 'inferior_ptid'. Don't call
7563 exit_inferior_silent.
7564 (tfile_thread_alive): Remove.
7565 (init_tfile_ops): Don't set field 'to_thread_alive' of
7568 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7570 * remote.c (remote_start_remote): Call remote_check_symbols even
7571 if only symbol-file (not file) has been given.
7573 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7575 * gdbarch.sh (skip_entrypoint): New callback.
7576 * gdbarch.c, gdbarch.h: Regenerate.
7577 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7578 * infrun.c (fill_in_stop_func): Likewise.
7579 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7580 (ppc_elfv2_elf_make_msymbol_special): New function.
7581 (ppc_elfv2_skip_entrypoint): Likewise.
7582 (ppc_linux_init_abi): Install them for ELFv2.
7584 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7586 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7587 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7588 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7589 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7590 structures returned in GPRs.
7592 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7594 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7595 offset to the stack parameter list for the ELFv2 ABI.
7597 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7599 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7600 set_gdbarch_convert_from_func_ptr_addr and
7601 set_gdbarch_elf_make_msymbol_special for ELFv1.
7602 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7603 function descriptors on ELFv1.
7604 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7605 set up r12 at function entry.
7607 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7609 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7610 (struct gdbarch_tdep): New member elf_abi.
7612 * rs6000-tdep.c: Include "elf/ppc64.h".
7613 (rs6000_gdbarch_init): Detect ELF ABI version.
7615 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7617 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7618 within a register pair holding a DFP 128-bit value on little-endian.
7619 (ppc64_sysv_abi_return_value_base): Likewise.
7620 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7621 (dfp_pseudo_register_write): Likewise.
7623 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7625 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7626 offset on little-endian when passing _Decimal32.
7627 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7629 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7631 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7632 of the overlapped FP register within the VSX register on little-
7634 (efpr_pseudo_register_write): Likewise.
7636 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7638 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7639 offset on little-endian when passing small structures.
7641 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7643 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7644 (struct ppc64_sysv_argpos): New data structure.
7645 (ppc64_sysv_abi_push_float): Remove.
7646 (ppc64_sysv_abi_push_val): New function.
7647 (ppc64_sysv_abi_push_integer): Likewise.
7648 (ppc64_sysv_abi_push_freg): Likewise.
7649 (ppc64_sysv_abi_push_vreg): Likewise.
7650 (ppc64_sysv_abi_push_param): Likewise.
7651 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7652 (ppc64_sysv_abi_return_value_base): New function.
7653 (ppc64_sysv_abi_return_value): Refactor to use it.
7655 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7657 * NEWS: Document new target powerpc64le-*-linux*.
7659 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7661 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7662 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7664 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7665 register set used in ELF core dumps. Add floating-point register set.
7667 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7669 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7670 dwarf2_to_gdb[] table using symbolic constants. Adjust
7671 penultimate entry from number representing the PC register
7672 to symbolic constant representing the MDR register. Add
7673 constant for the PC register to the end of the table.
7675 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7677 * bsd-kvm.c: Include <sys/param.h>
7679 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7681 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7683 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7685 * ada-lang.h (clear_ada_sym_cache): Delete.
7687 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7689 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7691 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7693 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7694 the sigreturn register save area only if the syscall is
7697 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7699 * valops.c (value_slice): Minor reformatting.
7701 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7703 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7705 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7707 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7709 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7710 (ada_ignore_descriptive_types_p): New static global.
7711 (find_parallel_type_by_descriptive_type): Return immediately
7712 if ada_ignore_descriptive_types_p is set.
7713 (_initialize_ada_language): Register new commands "maintenance
7714 set ada", "maintenance show ada", "maintenance set ada
7715 ignore-descriptive-types" and "maintenance show ada
7716 ignore-descriptive-types".
7717 * NEWS: Add entry for new "maint ada set/show
7718 ignore-descriptive-types" commands.
7720 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7722 * record-btrace.c (record_btrace_close): Call btrace_teardown
7725 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7727 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7730 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7732 * ada-typeprint (type_is_full_subrange_of_target_type):
7734 (print_range): Add parameter bounds_prefered_p. If not set,
7735 try printing range types using the name of their base type.
7736 (print_range_type): Add parameter bounds_prefered_p.
7737 Use it in call to print_range.
7738 (print_array_type, ada_print_type): Update calls to print_range
7739 and print_range_type.
7741 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7743 * ada-typeprint.c (print_array_type, print_choices, print_range)
7744 (print_range_bound, print_dynamic_range_bound, print_range_type):
7747 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7749 * ada-typeprint.c (print_range): Add missing empty line
7750 after local declaration.
7752 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7754 * ada-valprint.c (print_optional_low_bound): Get index_type's
7755 target type for as long as it is a TYPE_CODE_RANGE.
7757 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7759 * procfs.c (procfs_make_note_section): Remove assertion and
7762 2014-01-24 Yao Qi <yao@codesourcery.com>
7764 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7765 * corelow.c (get_core_siginfo): Likewise.
7767 2014-01-24 Yao Qi <yao@codesourcery.com>
7769 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7770 ULONGEST. Don't check 'len' is negative.
7771 (remote_write_bytes): Change type of 'len' to ULONGEST.
7773 2014-01-23 Tom Tromey <tromey@redhat.com>
7776 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7777 Handle exception from frame.block.
7778 (FrameVars.fetch_frame_locals): Likewise.
7780 2014-01-23 Tom Tromey <tromey@redhat.com>
7783 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7784 on a NULL pointer. Move "goto error" to correct place.
7786 2014-01-23 Tom Tromey <tromey@redhat.com>
7789 * python/py-framefilter.c (apply_frame_filter): Call
7790 ensure_python_env after computing gdbarch.
7792 2014-01-23 Yao Qi <yao@codesourcery.com>
7794 * target.c (raw_memory_xfer_partial): Change argument type
7795 from void * to gdb_byte *.
7796 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7798 2014-01-22 Doug Evans <dje@google.com>
7800 New gdbserver option --debug-format=timestamp.
7803 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7805 * syscalls/s390x-linux.xml: New file.
7806 * syscalls/s390-linux.xml: New file.
7807 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7808 (XML_SYSCALL_FILENAME_S390X): Likewise.
7809 (op_svc): New enum value for SVC opcode.
7810 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7811 (s390_linux_get_syscall_number): New function.
7812 (s390_gdbarch_init): Register '*get_syscall_number' and the
7813 syscall xml file name.
7814 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7815 "s390-linux.xml" and "s390x-linux.xml".
7816 * NEWS: Announce new feature.
7818 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7820 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7822 2014-01-22 Pedro Alves <palves@redhat.com>
7824 * xtensa-config.c: Include defs.h.
7826 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7828 * common/common-utils.h: Add "ARI:" comment beside __func__
7831 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7833 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7834 documentation a bit.
7836 2014-01-21 Roland McGrath <mcgrathr@google.com>
7838 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7839 * configure: Regenerate.
7840 * aclocal.m4: Regenerate.
7841 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7842 New substituted variables.
7843 (install-strip): New target.
7844 (INSTALL_SCRIPT): New substituted variable.
7845 (FLAGS_TO_PASS): Add it.
7846 (install-only): Use $(INSTALL_SCRIPT) rather than
7847 $(INSTALL_PROGRAM) for gcore.
7849 2014-01-20 Tom Tromey <tromey@redhat.com>
7851 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7854 2014-01-20 Tom Tromey <tromey@redhat.com>
7856 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7857 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7858 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7859 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7860 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7861 (struct cmd_list_element) <flags>: Remove.
7862 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7863 doc_allocated>: New fields.
7864 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7866 * maint.c (maintenance_do_deprecate): Update.
7867 * top.c (execute_command): Update.
7869 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7871 * xtensa-linux-nat.c: Include asm/ptrace.h.
7873 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7875 * Makefile.in (SFILES): Add d-support.c.
7876 (COMMON_OBS): Add d-support.o.
7877 * d-lang.h (d_parse_symbol): Add comment, now defined in
7879 * d-lang.c (parse_call_convention)
7880 (parse_attributes, parse_function_types)
7881 (parse_function_args, parse_type, parse_identifier)
7882 (call_convention_p, d_parse_symbol): Move functions to ...
7883 * d-support.c: ... New file.
7885 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7887 * d-lang.h (d_parse_symbol): Add declaration.
7888 * d-lang.c (extract_identifiers)
7889 (extract_type_info): Remove functions.
7890 (parse_call_convention, parse_attributes)
7891 (parse_function_types, parse_function_args)
7892 (parse_type, parse_identifier, call_convention_p)
7893 (d_parse_symbol): New functions.
7894 (d_demangle): Use d_parse_symbol to demangle D symbols.
7896 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7898 * d-lang.h (struct builtin_d_type): New data type.
7899 (builtin_d_type): Add declaration.
7900 * d-lang.c (d_language_arch_info, build_d_types)
7901 (builtin_d_type): New functions.
7902 (enum d_primitive_types): New data type.
7903 (d_language_defn): Change c_language_arch_info to
7904 d_language_arch_info.
7905 (d_type_data): New static variable.
7906 (_initialize_d_language): Initialize d_type_data.
7908 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7910 * d-lang.h (d_main_name): Add declaration.
7911 * d-lang.c (d_main_name): New function.
7912 * symtab.c (find_main_name): Add call to d_main_name.
7914 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7916 * d-lang.c (d_language_defn): Change macro_expansion_c to
7919 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7921 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7923 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7925 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7926 gdb_exception" declaration.
7927 * remote.c (getpkt_or_notif_sane): Likewise.
7929 2014-01-17 Doug Evans <dje@google.com>
7931 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7932 function, contents of dirnames_to_char_ptr_vec_append moved here.
7933 (delim_string_to_char_ptr_vec): New function.
7934 (dirnames_to_char_ptr_vec_append): Rewrite.
7935 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7937 2014-01-17 Doug Evans <dje@google.com>
7939 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7941 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7942 #include "common-utils.h".
7943 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7944 * common/vec.h (VEC_ASSERT_PASS): Update.
7945 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7946 (MACH_CHECK_ERROR): Update.
7948 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7950 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7952 * gdbarch.h: Regenerate.
7954 2014-01-16 Tom Tromey <tromey@redhat.com>
7956 * value.c (struct value) <regnum>: Move earlier.
7958 2014-01-16 Tom Tromey <tromey@redhat.com>
7960 * remote.c (extended_remote_create_inferior): Rename from
7961 extended_remote_create_inferior_1. Add "ops" argument. Remove
7964 2014-01-16 Pedro Alves <palves@redhat.com>
7966 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7967 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7970 2014-01-16 Doug Evans <dje@google.com>
7972 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7976 * btrace.h (btrace_thread_flag): New.
7977 (struct btrace_thread_info) <flags>: New.
7978 * record-btrace.c (record_btrace_resume_thread)
7979 (record_btrace_find_thread_to_move, btrace_step_no_history)
7980 (btrace_step_stopped, record_btrace_start_replaying)
7981 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7982 (record_btrace_find_resume_thread): New.
7983 (record_btrace_resume, record_btrace_wait): Extend.
7984 (record_btrace_can_execute_reverse): New.
7985 (record_btrace_open): Fail in non-stop mode.
7986 (record_btrace_set_replay): Split into this, ...
7987 (record_btrace_stop_replaying): ... this, ...
7988 (record_btrace_clear_histories): ... and this.
7989 (init_record_btrace_ops): Init to_can_execute_reverse.
7990 * NEWS: Announce it.
7992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7994 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7995 (forward_target_decr_pc_after_break)
7996 (target_decr_pc_after_break): New.
7997 * target.c (forward_target_decr_pc_after_break)
7998 (target_decr_pc_after_break): New.
7999 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8000 instead of gdbarch_decr_pc_after_break.
8001 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8002 instead of gdbarch_decr_pc_after_break.
8003 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8004 instead of gdbarch_decr_pc_after_break.
8005 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8006 instead of gdbarch_decr_pc_after_break.
8007 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8008 instead of gdbarch_decr_pc_after_break.
8009 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8010 instead of gdbarch_decr_pc_after_break.
8012 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8014 * btrace.c: Include regcache.h.
8015 (btrace_add_pc): New.
8016 (btrace_enable): Call btrace_add_pc.
8017 (btrace_is_empty): New.
8018 * btrace.h (btrace_is_empty): New.
8019 * record-btrace.c (require_btrace, record_btrace_info): Call
8022 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8024 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8025 Support delta reads.
8026 (linux_disable_btrace): Change return type.
8027 * common/linux-btrace.h (linux_read_btrace): Change parameters
8028 and return type to allow error reporting. Update users.
8029 (linux_disable_btrace): Change return type. Update users.
8030 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8032 (btrace_error): New.
8033 (btrace_block) <begin>: Comment on BEGIN == 0.
8034 * btrace.c (btrace_compute_ftrace): Start from the end of
8036 (btrace_stitch_trace, btrace_clear_history): New.
8037 (btrace_fetch): Read delta trace, return if replaying.
8038 (btrace_clear): Move clear history code to btrace_clear_history.
8039 (parse_xml_btrace): Throw an error if parsing failed.
8040 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8041 and return type to allow error reporting.
8042 (target_read_btrace): Change parameters and return type to allow
8044 * target.c (target_read_btrace): Update.
8045 * remote.c (remote_read_btrace): Support delta reads. Pass
8047 * NEWS: Announce it.
8049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8051 * record.h (record_btrace_frame_unwind)
8052 (record_btrace_tailcall_frame_unwind): New declarations.
8053 * dwarf2-frame: Include record.h
8054 (dwarf2_frame_cfa): Throw an error for btrace frames.
8055 * record-btrace.c: Include hashtab.h.
8056 (btrace_get_bfun_name): New.
8057 (btrace_call_history): Call btrace_get_bfun_name.
8058 (struct btrace_frame_cache): New.
8060 (bfcache_hash, bfcache_eq, bfcache_new): New.
8061 (btrace_get_frame_function): New.
8062 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8063 (record_btrace_frame_this_id): Compute own id.
8064 (record_btrace_frame_prev_register): Provide PC, throw_error
8065 for all other registers.
8066 (record_btrace_frame_sniffer): Detect btrace frames.
8067 (record_btrace_tailcall_frame_sniffer): New.
8068 (record_btrace_frame_dealloc_cache): New.
8069 (record_btrace_frame_unwind): Add new functions.
8070 (record_btrace_tailcall_frame_unwind): New.
8071 (_initialize_record_btrace): Allocate cache.
8072 * btrace.c (btrace_clear): Call reinit_frame_cache.
8073 * NEWS: Announce it.
8075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8077 * record-btrace.c (record_btrace_set_replay)
8078 (record_btrace_goto_begin, record_btrace_goto_end)
8079 (record_btrace_goto): New.
8080 (init_record_btrace_ops): Initialize them.
8081 * NEWS: Announce it.
8083 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8085 * record-btrace.c (record_btrace_find_new_threads)
8086 (record_btrace_thread_alive): New.
8087 (init_record_btrace_ops): Initialize to_find_new_threads and
8090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8092 * record-btrace.c (record_btrace_resume): New.
8093 (record_btrace_wait): New.
8094 (init_record_btrace_ops): Initialize to_wait and to_resume.
8096 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8098 * record-btrace.c (record_btrace_xfer_partial)
8099 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8100 (record_btrace_allow_memory_access): New.
8101 (init_record_btrace_ops): Initialize new methods.
8102 * target.c (raw_memory_xfer_partial): Bail out if target reports
8103 that this memory is not available.
8105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8107 * target.h (target_ops) <to_insert_breakpoint>
8108 <to_remove_breakpoint>: Add target_ops parameter.
8109 (forward_target_insert_breakpoint): New.
8110 (forward_target_remove_breakpoint): New.
8111 (memory_remove_breakpoint, memory_insert_breakpoint):
8112 Add target_ops parameter.
8113 * target.c (target_insert_breakpoint): Split into this and ...
8114 (forward_target_insert_breakpoint): ... this.
8115 (target_remove_breakpoint): Split into this and ...
8116 (forward_target_remove_breakpoint): ... this.
8117 (debug_to_insert_breakpoint): Add target_ops parameter.
8118 Call forward_target_insert_breakpoint.
8119 (debug_to_remove_breakpoint): Add target_ops parameter.
8120 Call forward_target_remove_breakpoint.
8121 (update_current_target): Do not inherit or default to_insert_breakpoint
8122 and to_remove_breakpoint.
8123 * corelow.c (ignore): Add target_ops parameter.
8124 * exec.c (ignore): Add target_ops parameter.
8125 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8126 Add target_ops parameter.
8127 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8128 Add target_ops parameter.
8129 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8130 Add target_ops parameter.
8131 * record-full.c (record_full_beneath_to_insert_breakpoint)
8132 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8133 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8134 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8135 (record_full_core_remove_breakpoint): Add target_ops parameter.
8137 (record_full_beneath_to_insert_breakpoint_ops)
8138 (record_full_beneath_to_remove_breakpoint_ops)
8139 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8140 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8141 tmp_to_remove_breakpoint_ops,
8142 record_full_beneath_to_insert_breakpoint_ops, and
8143 record_full_beneath_to_remove_breakpoint_ops.
8144 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8145 (m32r_remove_breakpoint): Add target_ops parameter.
8146 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8147 Add target_ops parameter.
8148 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8149 Add target_ops parameter.
8151 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8152 Markus Metzger <markus.t.metzger@intel.com>
8154 * record-btrace.c: Include frame-unwind.h.
8155 (record_btrace_frame_unwind_stop_reason)
8156 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8157 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8159 (init_record_btrace_ops): Install it.
8161 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8163 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8166 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8168 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8171 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8173 * frame-unwind.c: Include target.h.
8174 (frame_unwind_try_unwinder): New function with code from ...
8175 (frame_unwind_find_by_frame): ... here. New variable
8176 unwinder_from_target, call also target_get_unwinder)
8177 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8178 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8179 * target.h (struct target_ops): New fields to_get_unwinder and
8180 to_get_tailcall_unwinder.
8181 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8185 * record-btrace.c (record_btrace_fetch_registers)
8186 (record_btrace_store_registers)
8187 (record_btrace_to_prepare_to_store): New.
8188 (init_record_btrace_ops): Add the above.
8190 2014-01-16 Tom Tromey <tromey@redhat.com>
8192 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8193 * target.h (struct target_ops) <to_prepare_to_store>: Add
8195 (target_prepare_to_store): Add argument.
8196 * target.c (debug_to_prepare_to_store): Add argument.
8197 (update_current_target): Update.
8198 * remote.c (remote_prepare_to_store): Add 'self' argument.
8199 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8200 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8201 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8202 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8204 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8205 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8206 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8207 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8208 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8210 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8212 * btrace.h (replay) <replay>: New.
8213 (btrace_is_replaying): New.
8214 * btrace.c (btrace_clear): Free replay iterator.
8215 (btrace_is_replaying): New.
8216 * record-btrace.c (record_btrace_is_replaying): New.
8217 (record_btrace_info): Print insn number if replaying.
8218 (record_btrace_insn_history): Start at replay position.
8219 (record_btrace_call_history): Start at replay position.
8220 (init_record_btrace_ops): Init to_record_is_replaying.
8222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8224 * record-btrace.c (record_btrace_insn_history_range): Include
8226 (record_btrace_insn_history_from): Adjust range.
8227 (record_btrace_call_history_range): Include
8229 (record_btrace_call_history_from): Adjust range.
8230 * NEWS: Announce changes.
8232 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8234 * record.h (enum record_print_flag)
8235 <record_print_indent_calls>: New.
8236 * record.c (get_call_history_modifiers): Recognize /c modifier.
8237 (_initialize_record): Document /c modifier.
8238 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8239 Reorder fields. Optionally indent the function name. Update
8241 * NEWS: Announce changes.
8243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8245 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8249 * btrace.c (ftrace_new_function): Start counting at one.
8250 * record-btrace.c (record_btrace_info): Adjust number of calls
8252 * NEWS: Announce it.
8254 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8256 * record-btrace.c (btrace_call_history_insn_range): Print
8257 insn range as [begin, end].
8259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8261 * btrace.h (struct btrace_func_link): New.
8262 (enum btrace_function_flag): New.
8263 (struct btrace_inst): Rename to ...
8264 (struct btrace_insn): ...this. Update all users.
8265 (struct btrace_func) <ibegin, iend>: Remove.
8266 (struct btrace_func_link): New.
8267 (struct btrace_func): Rename to ...
8268 (struct btrace_function): ...this. Update all users.
8269 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8270 (number, level, flags>: New.
8271 (struct btrace_insn_iterator): Rename to ...
8272 (struct btrace_insn_history): ...this.
8274 (struct btrace_insn_iterator, btrace_call_iterator): New.
8275 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8276 (struct btrace_target_info) <begin, end, level>
8277 <insn_history, call_history>: New.
8278 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8279 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8280 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8281 (btrace_call_number, btrace_call_begin, btrace_call_end)
8282 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8283 (btrace_find_function_by_number, btrace_set_insn_history)
8284 (btrace_set_call_history): New.
8285 * btrace.c (btrace_init_insn_iterator)
8286 (btrace_init_func_iterator, compute_itrace): Remove.
8287 (ftrace_print_function_name, ftrace_print_filename)
8288 (ftrace_skip_file): Change
8290 (ftrace_init_func): Remove.
8291 (ftrace_debug): Use new btrace_function fields.
8292 (ftrace_function_switched): Also consider gaining and
8293 losing symbol information).
8294 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8295 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8296 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8298 (ftrace_new_function): Move. Remove debug print.
8299 (ftrace_update_lines, ftrace_update_insns): New.
8300 (ftrace_update_function): Check for call, ret, and jump.
8301 (compute_ftrace): Renamed to ...
8302 (btrace_compute_ftrace): ...this. Rewritten to compute call
8304 (btrace_fetch, btrace_clear): Updated.
8305 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8306 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8307 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8308 (btrace_call_number, btrace_call_begin, btrace_call_end)
8309 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8310 (btrace_find_function_by_number, btrace_set_insn_history)
8311 (btrace_set_call_history): New.
8312 * record-btrace.c (require_btrace): Use new btrace thread
8314 (record_btrace_info, btrace_insn_history)
8315 (record_btrace_insn_history, record_btrace_insn_history_range):
8316 Use new btrace thread info fields and new iterator.
8317 (btrace_func_history_src_line): Rename to ...
8318 (btrace_call_history_src_line): ...this. Use new btrace
8320 (btrace_func_history): Rename to ...
8321 (btrace_call_history): ...this. Use new btrace thread info
8322 fields and new iterator.
8323 (record_btrace_call_history, record_btrace_call_history_range):
8324 Use new btrace thread info fields and new iterator.
8326 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8328 * frame.h (frame_id_build_unavailable_stack_special): New.
8329 * frame.c (frame_id_build_unavailable_stack_special): New.
8331 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8333 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8334 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8335 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8337 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8338 (i386_insn_is_jump, i386_jmp_p): New.
8339 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8340 insn_is_jump to gdbarch.
8341 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8342 * gdbarch.h: Regenerated.
8343 * gdbarch.c: Regenerated.
8344 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8345 (default_insn_is_jump): New.
8346 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8347 (default_insn_is_jump): New.
8349 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8351 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8353 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8354 (btrace_read_type) <btrace_read_new>: Change to ...
8355 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8359 * common/linux-btrace.c (linux_read_btrace): Free trace from
8362 2014-01-15 Doug Evans <dje@google.com>
8364 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8367 2014-01-15 Tom Tromey <tromey@redhat.com>
8369 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8370 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8371 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8372 (set_objfile_main_name): New function.
8373 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8374 language_of_main>: New fields.
8375 (set_objfile_main_name): Declare.
8376 * symtab.c (find_main_name): Loop over objfiles to find the main
8378 (set_main_name): Now static.
8379 (get_main_info): Add comment.
8380 * symtab.h (set_main_name): Don't declare.
8382 2014-01-15 Tom Tromey <tromey@redhat.com>
8384 * symtab.c (main_progspace_key): New global.
8385 (struct main_info): New.
8386 (name_of_main, language_of_main): Remove.
8387 (get_main_info, main_info_cleanup): New function.
8388 (set_main_name, main_name, main_language): Use get_main_info.
8389 (_initialize_symtab): Initialize main_progspace_key.
8391 2014-01-15 Tom Tromey <tromey@redhat.com>
8393 * dbxread.c (process_one_symbol): Update.
8394 * dwarf2read.c (read_partial_die): Update.
8395 * symfile.c (set_initial_language): Call main_language.
8396 * symtab.c (language_of_main): Now static.
8397 (set_main_name): Add 'lang' parameter.
8398 (find_main_name): Update.
8399 (main_language): New function.
8400 (symtab_observer_executable_changed): Update.
8401 * symtab.h (set_main_name): Update.
8402 (language_of_main): Remove.
8403 (main_language): Declare.
8405 2014-01-15 Tom Tromey <tromey@redhat.com>
8407 * symfile.c (init_entry_point_info): Use new "initialized" field.
8409 * objfiles.h (struct entry_point) <initialized>: New field.
8410 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8411 (struct objfile) <ei>: ...here. Remove.
8412 * objfiles.c (entry_point_address_query): Update.
8414 2014-01-15 Tom Tromey <tromey@redhat.com>
8416 * objfiles.c (entry_point_address_query): Relocate entry point
8418 (objfile_relocate1): Do not relocate entry point address.
8419 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8420 <the_bfd_section_index>: New field.
8421 * symfile.c (init_entry_point_info): Find the entry point's
8424 2014-01-15 Tom Tromey <tromey@redhat.com>
8426 * solib-frv.c (enable_break): Use entry_point_address_query.
8428 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8430 * NEWS: Add note on improved process record-replay on
8431 arm*-linux* targets.
8433 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8435 * arm-tdep.c (enum arm_record_result): New enum.
8436 (arm_record_unsupported_insn): New function.
8437 (arm_record_coproc_data_proc): Removed.
8438 (thumb2_record_ld_st_multiple): New function.
8439 (thumb2_record_ld_st_dual_ex_tbb): New function.
8440 (thumb2_record_data_proc_sreg_mimm): New function.
8441 (thumb2_record_ps_dest_generic): New function.
8442 (thumb2_record_branch_misc_cntrl): New function.
8443 (thumb2_record_str_single_data): New function.
8444 (thumb2_record_ld_mem_hints): New function.
8445 (thumb2_record_ld_word): New function.
8446 (thumb2_record_lmul_lmla_div): New function.
8447 (thumb2_record_decode_insn_handler): New function.
8448 (decode_insn): Add thumb32 instruction handlers.
8450 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8452 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8453 (struct arm_linux_record_tdep): Declare.
8454 (arm_canonicalize_syscall): New function.
8455 (arm_all_but_pc_registers_record): New function.
8456 (arm_linux_syscall_record): New function.
8457 (arm_linux_init_abi): Add syscall recording constructs.
8458 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8459 decoding. (arm_record_coproc_data_proc): Update arm syscall
8461 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8462 <arm_syscall_record>: New field.
8463 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8466 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8468 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8469 register for push instruction recording.
8471 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8473 * arm-tdep.c (thumb_record_misc): Update to correct logical
8474 error while recording ldm, ldmia and pop instructions.
8476 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8478 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8480 2014-01-15 Pedro Alves <palves@redhat.com>
8482 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8483 (go32_resume, go32_fetch_registers, store_register)
8484 (go32_store_registers, go32_prepare_to_store)
8485 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8486 (go32_create_inferior, go32_can_run, go32_terminal_init)
8487 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8490 2014-01-15 Tom Tromey <tromey@redhat.com>
8492 * target.h (async_callback_ftype): New typedef.
8493 (struct target_ops) <to_async>: Use it.
8495 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8497 * python/py-value.c (get_field_type): Remove unnecessary curly
8498 braces for single-statement if block.
8500 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8502 * python/py-type.c (convert_field): Add missing empty line
8505 2014-01-14 Doug Evans <dje@google.com>
8507 * symfile.h (expand_symtabs_matching): Renamed from
8508 expand_partial_symbol_names. Update prototype.
8509 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8510 * symfile.c (expand_symtabs_matching): Renamed from
8511 expand_partial_symbol_names. New args file_matcher, kind.
8512 Rename arg fun to symbol_matcher.
8513 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8514 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8515 ada_expand_partial_symbol_name.
8516 (ada_make_symbol_completion_list): Update to call
8517 expand_symtabs_matching.
8518 (ada_add_global_exceptions): Call expand_symtabs_matching.
8519 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8520 call map_symbol_filenames.
8521 * symtab.c (sources_info): Update to call map_symbol_filenames.
8522 (search_symbols): Call expand_symtabs_matching.
8523 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8524 (default_make_symbol_completion_list_break_on): Update to call
8525 expand_symtabs_matching.
8526 (make_source_files_completion_list): Update to call
8527 map_symbol_filenames.
8529 2014-01-14 Doug Evans <dje@google.com>
8531 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8532 (expand_symtabs_symbol_matcher_ftype): New typedef.
8533 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8534 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8535 * symfile.c (expand_partial_symbol_names): Update to use
8536 expand_symtabs_symbol_matcher_ftype.
8537 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8538 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8539 Arg name_matcher renamed to symbol_matcher.
8540 * psymtab.c (recursively_search_psymtabs): Update to use
8541 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8543 (expand_symtabs_matching_via_partial): Update to use
8544 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8545 Arg name_matcher renamed to symbol_matcher.
8547 2014-01-14 Doug Evans <dje@google.com>
8549 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8550 (map_partial_symbol_filenames): Ditto.
8551 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8552 (map_partial_symbol_filenames): Ditto.
8553 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8554 (map_partial_symbol_filenames): Ditto.
8555 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8556 (map_partial_symbol_filenames): Ditto.
8557 * symtab.c: Delete #include "psymtab.h".
8559 2014-01-14 Pedro Alves <palves@redhat.com>
8560 Tom Tromey <tromey@redhat.com>
8562 * infrun.c (use_displaced_stepping): Use find_record_target
8563 instead of RECORD_IS_USED.
8564 (adjust_pc_after_break): Use record_full_is_used instead of
8566 * record-btrace.c (record_btrace_open): Call record_preopen
8567 instead of checking RECORD_IS_USED.
8568 * record-full.c (record_full_shortname)
8569 (record_full_core_shortname): New globals.
8570 (record_full_is_used): New function.
8571 (find_full_open): Call record_preopen instead of checking
8573 (init_record_full_ops): Set the target's shortname to
8574 record_full_shortname.
8575 (init_record_full_core_ops): Set the target's shortname to
8576 record_full_core_shortname.
8577 * record-full.h (record_full_is_used): Declare.
8578 * record.c (find_record_target): Make extern.
8579 (record_preopen): New function.
8580 * record.h (RECORD_IS_USED): Delete macro.
8581 (find_record_target, record_preopen): Declare functions.
8583 2014-01-14 Yao Qi <yao@codesourcery.com>
8585 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8586 'len''s type to ULONGEST.
8587 (core_xfer_shared_libraries_aix): Likewise.
8588 * gdbarch.c, gdbarch.h: Regenerated.
8589 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8590 Change type of 'len' to ULONGEST.
8591 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8592 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8594 2014-01-14 Yao Qi <yao@codesourcery.com>
8596 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8597 type of 'len' to ULONGEST.
8598 (linux_xfer_osdata_processgroups): Likewise.
8599 (linux_xfer_osdata_threads): Likewise.
8600 (linux_xfer_osdata_fds): Likewise.
8601 (linux_xfer_osdata_isockets): Likewise.
8602 (linux_xfer_osdata_shm): Likewise.
8603 (linux_xfer_osdata_sem): Likewise.
8604 (linux_xfer_osdata_msg): Likewise.
8605 (linux_common_xfer_osdata): Likewise.
8606 (struct osdata_type) <getter>: Likewise.
8607 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8610 2014-01-14 Yao Qi <yao@codesourcery.com>
8612 * target.h (target_xfer_partial_ftype): Update.
8613 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8615 * aix-thread.c (aix_thread_xfer_partial): Change type of
8616 argument 'len' to ULONGEST.
8617 * auxv.c (procfs_xfer_auxv): Likewise.
8618 (ld_so_xfer_auxv): Likewise.
8619 (memory_xfer_auxv): Likewise.
8620 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8621 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8622 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8623 * corelow.c (core_xfer_partial): Likewise.
8624 * ctf.c (ctf_xfer_partial): Likewise.
8625 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8627 (darwin_read_dyld_info): Likewise.
8628 (darwin_xfer_partial): Likewise.
8629 * exec.c (section_table_xfer_memory_partial): Likewise.
8630 (exec_xfer_partial): Likewise.
8631 * exec.h (section_table_xfer_memory_partial): Update
8633 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8634 instead of plongest.
8635 (gnu_xfer_partial): Likewise.
8636 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8637 (ia64_hpux_xfer_solib_got): Likewise.
8638 (ia64_hpux_xfer_partial): Likewise.
8639 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8640 * inf-ptrace.c (inf_ptrace_xfer_partial):
8641 * inf-ttrace.c (inf_ttrace_xfer_partial):
8642 * linux-nat.c (linux_xfer_siginfo): Likewise.
8643 (linux_nat_xfer_partial): Likewise.
8644 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8645 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8646 * monitor.c (monitor_xfer_memory): Likewise.
8647 (monitor_xfer_partial): Likewise.
8648 * procfs.c (procfs_xfer_partial): Likewise.
8649 * record-full.c (record_full_xfer_partial): Likewise.
8650 (record_full_core_xfer_partial): Likewise.
8651 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8652 instead of plongest.
8653 (gdbsim_xfer_partial): Likewise.
8654 * remote.c (remote_xfer_partial): Likewise.
8655 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8656 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8658 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8659 (rs6000_xfer_shared_libraries): Likewise.
8660 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8661 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8662 (sparc_xfer_partial): Likewise.
8663 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8664 (spu_xfer_partial): Likewise.
8665 * spu-multiarch.c (spu_xfer_partial): Likewise.
8666 * target.c (target_read_live_memory): Likewise.
8667 (memory_xfer_live_readonly_partial): Likewise.
8668 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8669 (target_xfer_partial, default_xfer_partial): Likewise.
8670 (current_xfer_partial): Likewise.
8671 * tracepoint.c (tfile_xfer_partial): Likewise.
8672 * windows-nat.c (windows_xfer_memory): Likewise. Call
8673 pulongest instead of plongest.
8674 (windows_xfer_partial): Likewise.
8675 (windows_xfer_shared_libraries): Likewise.
8677 2014-01-14 Yao Qi <yao@codesourcery.com>
8679 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8680 target_xfer_partial_ftype.
8682 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8686 * valops.c (value_struct_elt_bitpos): New function
8687 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8688 object to 'None' if the field name is an empty string ("").
8689 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8690 attribute to look for a field when 'name' is 'None'.
8691 (get_field_type): New function
8693 2014-01-13 Doug Evans <dje@google.com>
8696 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8697 (try_open_dwop_file): Ditto.
8698 * gdb_bfd.c: #include "vec.h".
8699 (bfdp): New typedef.
8700 (struct gdb_bfd_data): New member included_bfds.
8701 (gdb_bfd_unref): Unref all included bfds.
8702 (gdb_bfd_record_inclusion): New function.
8703 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8705 2014-01-13 Tom Tromey <tromey@redhat.com>
8707 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8709 2014-01-13 Tom Tromey <tromey@redhat.com>
8711 * defs.h (use_windows): Remove.
8712 * gdb.c (main): Update.
8713 * main.c (captured_main, gdb_main): Update.
8714 * main.h (struct captured_main_args) <use_windows>: Remove.
8715 * top.c (use_windows): Remove.
8717 2014-01-13 Tom Tromey <tromey@redhat.com>
8719 * defs.h (deprecated_flush_hook): Remove.
8721 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8724 * linux-thread-db.c (try_thread_db_load): Add parameter
8725 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8726 (try_thread_db_load_from_pdir_1): Move it there from here.
8727 (try_thread_db_load_from_sdir): Update caller.
8728 (try_thread_db_load_from_dir): Move it there from here.
8730 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8732 * regformats/regdat.sh: Always rewrite the register file.
8734 2014-01-13 Pedro Alves <palves@redhat.com>
8736 * Makefile.in (CHECK_HEADERS): New variable.
8737 (check-headers:): New rule.
8739 2014-01-13 Tom Tromey <tromey@redhat.com>
8741 * cli/cli-setshow.c (do_set_command): Update.
8742 * defs.h (deprecated_set_hook): Remove.
8743 * top.c (deprecated_set_hook): Remove.
8745 2014-01-13 Pedro Alves <palves@redhat.com>
8747 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8748 the tracepoint if the PC is a pseudo-register.
8750 2014-01-13 Tom Tromey <tromey@redhat.com>
8752 * defs.h (XCALLOC): Remove.
8753 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8754 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8755 * dwarf2loc.c (allocate_piece_closure): Likewise.
8756 * elfread.c (elf_symfile_segments): Likewise.
8757 (elf_symfile_segments): Likewise.
8758 * gdbtypes.c (copy_type_recursive): Likewise.
8759 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8760 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8761 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8763 * mt-tdep.c (mt_gdbarch_init): Likewise.
8764 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8766 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8767 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8768 * registry.c (registry_alloc_data): Likewise.
8769 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8770 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8771 * serial.c (serial_fdopen_ops): Likewise.
8772 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8774 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8775 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8778 2014-01-13 Tom Tromey <tromey@redhat.com>
8780 * defs.h (XMALLOC): Remove.
8781 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8782 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8783 * cli-out.c (struct ui_out *): Likewise.
8784 * cli/cli-dump.c (add_dump_command): Likewise.
8785 (add_dump_command): Likewise.
8786 * complaints.c (get_complaints): Likewise.
8787 (find_complaint): Likewise.
8788 * dwarf2-frame.c (execute_cfa_program): Likewise.
8789 * dwarf2read.c (abbrev_table_read_table): Likewise.
8790 * gdbarch.sh: Likewise.
8791 * gdbarch.c: Rebuild.
8792 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8793 * interps.c (interp_new): Likewise.
8794 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8795 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8796 * mi/mi-console.c (mi_console_file_new): Likewise.
8797 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8798 * mi/mi-out.c (mi_out_new): Likewise.
8799 * mi/mi-parse.c (mi_parse): Likewise.
8800 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8801 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8802 * observer.c (xalloc_observer_list_node): Likewise.
8803 * regcache.c (regcache_xmalloc_1): Likewise.
8804 * reggroups.c (reggroup_new): Likewise.
8805 (_initialize_reggroup): Likewise.
8806 * registry.c (register_data_with_cleanup): Likewise.
8807 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8808 * ser-base.c (serial_ttystate): Likewise.
8809 * ser-mingw.c (make_pipe_state): Likewise.
8810 * ser-pipe.c (pipe_open): Likewise.
8811 * serial.c (serial_open): Likewise.
8812 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8813 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8814 (tui_alloc_win_info): Likewise.
8815 (tui_add_content_elements): Likewise.
8816 * tui/tui-file.c (tui_file_new): Likewise.
8817 * tui/tui-out.c (tui_out_new): Likewise.
8818 * ui-file.c (mem_file_new): Likewise.
8819 * ui-out.c (push_level): Likewise.
8820 (make_cleanup_ui_out_end): Likewise.
8821 (append_header_to_list): Likewise.
8822 (ui_out_new): Likewise.
8823 * user-regs.c (user_reg_add_builtin): Likewise.
8825 2014-01-13 Tom Tromey <tromey@redhat.com>
8827 * defs.h (XZALLOC): Remove.
8828 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8829 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8830 (get_ada_tasks_inferior_data): Likewise.
8831 * auto-load.c (get_auto_load_pspace_data): Likewise.
8832 * auxv.c (get_auxv_inferior_data): Likewise.
8833 * bfd-target.c (target_bfd_reopen): Likewise.
8834 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8835 (deprecated_insert_raw_breakpoint): Likewise.
8836 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8837 * corelow.c (core_open): Likewise.
8838 * darwin-nat.c (darwin_check_new_threads): Likewise.
8839 (darwin_attach_pid): Likewise.
8840 * dummy-frame.c (dummy_frame_push): Likewise.
8841 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8842 * dwarf2loc.c (allocate_piece_closure): Likewise.
8843 * elfread.c (elf_symfile_segments): Likewise.
8844 * eval.c (ptrmath_type_p): Likewise.
8845 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8846 * gdbtypes.c (alloc_type_arch): Likewise.
8847 (alloc_type_instance): Likewise.
8848 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8849 * inf-child.c (inf_child_can_use_agent): Likewise.
8850 * inflow.c (get_inflow_inferior_data): Likewise.
8851 * infrun.c (save_infcall_suspend_state): Likewise.
8852 * jit.c (jit_reader_load): Likewise.
8853 (get_jit_objfile_data): Likewise.
8854 (get_jit_program_space_data): Likewise.
8855 (jit_object_open_impl): Likewise.
8856 (jit_symtab_open_impl): Likewise.
8857 (jit_block_open_impl): Likewise.
8858 (jit_frame_sniffer): Likewise.
8859 * linux-fork.c (add_fork): Likewise.
8860 * maint.c (make_command_stats_cleanup): Likewise.
8861 * objfiles.c (get_objfile_pspace_data): Likewise.
8862 * opencl-lang.c (struct lval_closure): Likewise.
8863 * osdata.c (osdata_start_osdata): Likewise.
8864 * progspace.c (new_address_space): Likewise.
8865 (add_program_space): Likewise.
8866 * remote-sim.c (get_sim_inferior_data): Likewise.
8867 * sh-tdep.c (sh_gdbarch_init): Likewise.
8868 * skip.c (Ignore): Likewise.
8869 (skip_delete_command): Likewise.
8870 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8871 (library_list_start_library): Likewise.
8872 (solib_aix_current_sos): Likewise.
8873 * solib-darwin.c (get_darwin_info): Likewise.
8874 (darwin_current_sos): Likewise.
8875 * solib-dsbt.c (get_dsbt_info): Likewise.
8876 * solib-ia64-hpux.c (new_so_list): Likewise.
8877 (ia64_hpux_get_solib_linkage_addr): Likewise.
8878 * solib-spu.c (append_ocl_sos): Likewise.
8879 (spu_current_sos): Likewise.
8880 * solib-svr4.c (get_svr4_info): Likewise.
8881 (svr4_keep_data_in_core): Likewise.
8882 (library_list_start_library): Likewise.
8883 (svr4_default_sos): Likewise.
8884 (svr4_read_so_list): Likewise.
8885 * solib-target.c (library_list_start_library): Likewise.
8886 (solib_target_current_sos): Likewise.
8887 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8888 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8889 * symfile.c (default_symfile_segments): Likewise.
8890 * target-descriptions.c (tdesc_data_init): Likewise.
8891 (tdesc_create_reg): Likewise.
8892 (struct tdesc_type *): Likewise.
8893 (tdesc_create_vector): Likewise.
8894 (tdesc_set_struct_size): Likewise.
8895 (struct tdesc_type *): Likewise.
8896 (tdesc_free_feature): Likewise.
8897 (tdesc_create_feature): Likewise.
8898 * windows-nat.c (windows_add_thread): Likewise.
8899 (windows_make_so): Likewise.
8900 * xml-support.c (gdb_xml_body_text): Likewise.
8901 (gdb_xml_create_parser_and_cleanup): Likewise.
8902 (xml_process_xincludes): Likewise.
8903 * xml-syscall.c (allocate_syscalls_info): Likewise.
8904 (syscall_create_syscall_desc): Likewise.
8906 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8908 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8909 function, with code from i386_stap_parse_special_token.
8910 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8911 (i386_stap_parse_special_token): Move code to the two functions
8914 2014-01-09 Pedro Alves <palves@redhat.com>
8915 Hui Zhu <hui@codesourcery.com>
8918 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8919 bp_err_string. Don't mark the location shlib_disabled if the
8920 error thrown wasn't a generic or memory error. Catch errors
8921 thrown while inserting breakpoints in overlayed code. Output
8922 error message of software breakpoints.
8923 * remote.c (remote_insert_breakpoint): If this breakpoint has
8924 target-side commands but this stub doesn't support Z0 packets,
8925 throw NOT_SUPPORTED_ERROR error.
8926 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8927 * target.h (target_insert_breakpoint): Extend comment.
8928 (target_insert_hw_breakpoint): Add comment.
8930 2014-01-08 Pedro Alves <palves@redhat.com>
8932 * remote.c (remote_add_thread): Add threads silently if starting
8934 (remote_notice_new_inferior): If in all-stop, and starting up,
8935 don't call notice_new_inferior.
8936 (get_current_thread): New function, factored out from ...
8937 (add_current_inferior_and_thread): ... this. Adjust.
8938 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8939 found any thread, then select the remote's current thread as GDB's
8942 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8944 * NEWS: Create a new section for the next release branch.
8945 Rename the section of the current branch, now that it has
8948 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8950 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8951 * version.in: Bump version to 7.7.50.DATE-cvs.
8953 2014-01-08 Yao Qi <yao@codesourcery.com>
8955 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8956 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8957 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8959 2014-01-08 Yao Qi <yao@codesourcery.com>
8961 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8962 return value of bfd_get_filename to symbol_file_add_from_bfd.
8964 2014-01-08 Pierre Muller <muller@sourceware.org>
8967 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8968 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8969 to prim_record_mininal_symbol_and_info.
8970 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8971 in call to prim_record_minimal_symbol_and_info.
8972 (read_pe_exported_syms): Set index field of section_data.
8974 2014-01-07 Andrew Pinski <apinski@cavium.com>
8976 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8977 * features/aarch64.c: Regenerate.
8979 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8981 * target.c (return_null): Define.
8982 (update_current_target): Use it instead of return_zero for
8983 functions that return a pointer.
8985 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8987 * source.c (add_path): Fix check for duplicated paths in the previously
8990 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8992 * ada-lang.c: Remove duplicated include statements.
8993 * alphabsd-nat.c: Ditto.
8994 * amd64-darwin-tdep.c: Ditto.
8995 * amd64fbsd-nat.c: Ditto.
8996 * auto-load.c: Ditto.
8998 * breakpoint.c: Ditto.
9000 * fork-child.c: Ditto.
9001 * gdb_usleep.c: Ditto.
9002 * i386-darwin-tdep.c: Ditto.
9003 * i386fbsd-nat.c: Ditto.
9005 * inferior.c: Ditto.
9007 * linux-nat.c: Ditto.
9008 * linux-tdep.c: Ditto.
9009 * m68kbsd-nat.c: Ditto.
9010 * m68klinux-nat.c: Ditto.
9011 * microblaze-tdep.c: Ditto.
9012 * mips-linux-tdep.c: Ditto.
9013 * mn10300-tdep.c: Ditto.
9014 * nto-tdep.c: Ditto.
9015 * opencl-lang.c: Ditto.
9017 * printcmd.c: Ditto.
9018 * regcache.c: Ditto.
9019 * remote-m32r-sdi.c: Ditto.
9023 * tilegx-linux-nat.c: Ditto.
9024 * tilegx-tdep.c: Ditto.
9025 * tracepoint.c: Ditto.
9027 * vaxbsd-nat.c: Ditto.
9028 * windows-nat.c: Ditto.
9029 * xtensa-tdep.c: Ditto.
9031 2014-01-07 Yao Qi <yao@codesourcery.com>
9033 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9035 2014-01-07 Yao Qi <yao@codesourcery.com>
9036 Joel Brobecker <brobecker@adacore.com>
9038 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9039 (pdc_write_regs): Likewise.
9040 (fetch_regs_kernel_thread): Likewise.
9041 (store_regs_kernel_thread): Likewise.
9043 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9045 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9046 tagged type objects to their actual type.
9048 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9050 * ada-valprint.c (print_field_values): Add "language" parameter.
9051 Update calls to print_field_values and print_variant_part.
9052 Pass new parameter "language" in call to val_print instead
9053 of "current_language". Replace call to ada_val_print by call
9055 (print_variant_part): Add "language" parameter.
9056 (ada_val_print_struct_union): Update call to print_field_values.
9058 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9060 * ada-valprint.c (ui_memcpy): Delete.
9061 (ada_print_floating): Update documentation. Add empty line
9062 between between function documentation and implementation.
9063 Delete variable "buffer". Use ui_file_xstrdup in place of
9064 ui_file_put. Minor adjustments following this change.
9066 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9068 * ada-valprint.c (ada_val_print_string): New function,
9069 extracted from ada_val_print_array.
9070 (ada_val_print_array): Replace extracted code by call
9071 to ada_val_print_string followed by a return. Move
9072 "else" branch to the function's top block.
9074 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9076 * ada-valprint.c (ada_val_print_array): Move implementation
9077 down. Rename parameter "offset" and "val" into "offset_aligned"
9078 and "original_value" respectively. Add parameter "offset".
9080 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9082 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9083 re-organizing the code. Change the "???" message printed
9084 when target type is a TYPE_CODE_UNDEF into
9085 "<ref to undefined type>".
9087 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9089 * ada-valprint.c (print_record): Delete, implementation inlined...
9090 (ada_val_print_struct_union): ... here. Remove call to
9091 ada_check_typedef in inlined implementation.
9093 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9095 * ada-valprint.c (ada_val_print_gnat_array): New function,
9096 extracted from ada_val_print_1;
9097 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9098 (ada_val_print_flt, ada_val_print_struct_union)
9099 (ada_val_print_ref): Likewise.
9100 (ada_val_print_1): Delete variables i and elttype.
9101 Replace extracted-out code by call to corresponding
9104 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9106 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9108 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9110 * ada-valprint.c (ada_val_print_1): Replace calls to
9111 ada_val_print_1 by calls to val_print.
9113 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9115 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9116 Update calls to self accordingly. Replace calls to c_val_print
9117 by calls to val_print.
9119 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9121 * ada-valprint.c (print_record): Delete declaration.
9122 (adjust_type_signedness, ada_val_print_1): Likewise.
9123 (ada_val_print): Move function implementation down.
9124 (print_variant_part, print_field_values, print_record):
9125 Move function implementation up.
9127 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9129 * python/py-type.c (typy_get_name): New function.
9130 (type_object_getset): Add entry for attribute "name".
9131 * NEWS: Add entry mentioning this new attribute.
9133 2014-01-07 Yao Qi <yao@codesourcery.com>
9135 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9138 2014-01-07 Yao Qi <yao@codesourcery.com>
9140 * gnu-nat.c (info_port_rights): Add qualifier const to
9143 2014-01-07 Yao Qi <yao@codesourcery.com>
9145 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9147 2014-01-07 Yao Qi <yao@codesourcery.com>
9149 * gnu-nat.c (make_inf) Update declaration.
9150 (make_inf): Make it static.
9151 (inf_set_traced): Likewise.
9152 (inf_port_to_thread, inf_task_died_status): Likewise.
9154 2014-01-07 Yao Qi <yao@codesourcery.com>
9156 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9158 2014-01-07 Yao Qi <yao@codesourcery.com>
9160 * gnu-nat.c (_initialize_gnu_nat): Declare.
9162 2014-01-07 Yao Qi <yao@codesourcery.com>
9164 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9166 (struct gdbarch_info) <byte_order>: Change type to
9168 <byte_order_for_code>: Likewise.
9169 * gdbarch.c, gdbarch.h: Regenerated.
9171 2014-01-06 Sasha Smundak <asmundak@google.com>
9173 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9175 2014-01-06 Tom Tromey <tromey@redhat.com>
9177 * doublest.c (convert_doublest_to_floatformat): Use const, not
9179 * somread.c (som_symtab_read): Likewise.
9181 2014-01-07 Hui Zhu <hui@codesourcery.com>
9183 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9184 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9185 (gdb_bfd_fopen): Ditto.
9186 (gdb_bfd_openr): Ditto.
9187 (gdb_bfd_openw): Ditto.
9188 (gdb_bfd_openr_iovec): Ditto.
9189 (gdb_bfd_fdopenr): Ditto.
9190 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9191 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9193 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9195 * symfile-mem.c (symbol_file_add_from_memory): Removed
9196 gdb_bfd_stash_filename.
9198 2014-01-03 Doug Evans <dje@google.com>
9200 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9203 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9205 Update year range in copyright notice of all files.
9207 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9209 * top.c (print_gdb_version): Set copyright year to 2014.
9211 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9213 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9215 For older changes see ChangeLog-2013.
9221 version-control: never