1 2014-06-12 Yao Qi <yao@codesourcery.com>
3 * varobj.c (varobj_get_num_children): Call
5 (varobj_list_children): Likewise.
6 (varobj_update): Likewise. Update comments.
8 2014-06-12 Yao Qi <yao@codesourcery.com>
10 * varobj.c (varobj_pretty_printed_p): Rename to ...
11 (varobj_is_dynamic_p): ... this. New function.
12 * varobj.h (varobj_pretty_printed_p): Remove declaration.
13 (varobj_is_dynamic_p): Declare.
14 * mi/mi-cmd-var.c (print_varobj): All callers updated.
15 (mi_print_value_p, varobj_update_one): Likewise.
17 2014-06-12 Pedro Alves <pedro@codesourcery.com>
18 Yao Qi <yao@codesourcery.com>
20 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
21 (varobj_get_iterator): Wrap up code for pretty-printer by
22 "#if HAVE_PYTHON" and "#endif".
23 (update_dynamic_varobj_children): Likewise.
25 2014-06-12 Pedro Alves <pedro@codesourcery.com>
26 Yao Qi <yao@codesourcery.com>
28 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
29 gdb_python_initialized is false. Move some code from varobj.c.
30 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
31 * varobj.c: Move "varobj-iter.h" inclusion earlier.
32 (struct varobj_item): Moved to varobj-iter.h".
33 (varobj_clear_saved_item): New function.
34 (update_dynamic_varobj_children): Move python-related code to
36 (free_variable): Call varobj_clear_saved_item and
39 2014-06-12 Pedro Alves <pedro@codesourcery.com>
40 Yao Qi <yao@codesourcery.com>
42 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
43 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
44 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
45 (py-varobj.o): New rule.
46 * python/py-varobj.c: New file.
47 * python/python-internal.h (py_varobj_get_iterator): Declare.
48 * varobj-iter.h: New file.
49 * varobj.c: Include "varobj-iter.h"
50 (struct varobj) <child_iter>: Change its type from "PyObject *"
51 to "struct varobj_iter *".
52 <saved_item>: Likewise.
53 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
54 [HAVE_PYTHON] (varobj_get_iterator): New function.
55 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
56 python-specific code to python/py-varobj.c.
57 (install_visualizer): Call varobj_iter_delete instead of
59 * varobj.h (varobj_ensure_python_env): Declare.
61 2014-06-12 Yao Qi <yao@codesourcery.com>
63 * varobj.c (struct varobj_item): New structure.
64 (create_child_with_value): Update declaration.
65 (varobj_add_child): Replace arguments 'name' and 'value' with
66 'item'. All callers updated.
67 (install_dynamic_child): Likewise.
68 (update_dynamic_varobj_children): Likewise.
69 (varobj_add_child): Likewise.
70 (create_child_with_value): Likewise.
72 2014-06-11 Joel Brobecker <brobecker@adacore.com>
74 * NEWS: Create a new section for the next release branch.
75 Rename the section of the current branch, now that it has
78 2014-06-11 Joel Brobecker <brobecker@adacore.com>
80 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
81 * version.in: Bump version to 7.8.50.DATE-cvs.
83 2014-06-11 Pedro Alves <palves@redhat.com>
86 * ser-mingw.c (net_windows_socket_check_pending): New function.
87 (net_windows_select_thread): Ignore spurious wakeups. Use
88 net_windows_socket_check_pending.
89 (net_windows_wait_handle): Check for pending events with
90 ioctlsocket, through net_windows_socket_check_pending, instead of
91 checking the socket's event.
93 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
95 * python/python-internal.h (gdb_PyObject_GetAttrString)
96 (gdb_PyObject_HasAttrString): New inline function definitions.
97 * py-value.c (get_field_flag): Remove the now unnecessary cast to
98 char * of the second argument to PyObject_GetAttrString.
100 2014-06-10 Joel Brobecker <brobecker@adacore.com>
102 * serial.c (serial_write): Fix index of character to be printed
103 in call to serial_logchar when serial debug traces are enabled.
105 2014-06-10 Joel Brobecker <brobecker@adacore.com>
107 * gdbtypes (resolve_dynamic_range): Add function description.
109 2014-06-09 Pedro Alves <palves@redhat.com>
111 * linux-nat.c (linux_child_follow_fork): Initialize status with
112 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
113 inner block. Only pass the signal to PTRACE_DETACH if in pass
116 2014-06-09 Gary Benson <gbenson@redhat.com>
118 * common/signals.c (gdb_signal_from_host): Reorder to separate
119 the always-available ANSI-standard signals from the signals that
121 (do_gdb_signal_to_host): Likewise.
122 * proc-events.c (signal_table): Likewise.
124 2014-06-08 Hui Zhu <hui@codesourcery.com>
126 * common/linux-ptrace.c (linux_disable_event_reporting): New
128 * common/linux-ptrace.h (linux_disable_event_reporting): New
130 * linux-nat.c (linux_child_follow_fork): Do a single step before
133 2014-06-07 Keith Seitz <keiths@redhat.com>
137 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
138 from symbol_matches_domain in symtab.c. All local callers
139 of symbol_matches_domain updated.
140 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
141 search STRUCT_DOMAIN.
142 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
143 independently. standard_lookup will do that automatically.
144 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
145 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
146 (cp_lookup_symbol_in_namespace): Likewise.
147 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
148 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
149 may return a STRUCT_DOMAIN match.
150 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
151 * cp-support.c: Include language.h.
152 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
154 * psymtab.c (match_partial_symbol): Compare the requested
155 domain with the symbol's domain directly.
156 (lookup_partial_symbol): Likewise.
157 * symtab.c (lookup_symbol_in_language): Explain when/why
158 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
159 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
160 appropriate languages.
161 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
162 and moved to ada-lang.c
163 (lookup_block_symbol): Explain that this function only returns
164 symbol matching the requested DOMAIN.
165 Compare the requested domain with the symbol's domain directly.
166 (iterate_over_symbols): Compare the requested domain with the
167 symbol's domain directly.
168 * symtab.h (symbol_matches_domain): Remove.
170 2014-06-06 Doug Evans <xdje42@gmail.com>
172 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
173 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
174 (gdbscm_guile_version_is_at_least): Declare.
175 (gdbscm_scm_string_to_int): Declare.
176 * guile/guile.c (gdbscm_guile_major_version): New global.
177 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
178 (guile_datadir): New static global.
179 (gdbscm_guile_data_directory): New function.
180 (initialize_scheme_side): Update.
181 (misc_guile_functions): Add guile-data-directory.
182 (initialize_gdb_module): Fetch guile version number.
183 * guile/lib/gdb.scm: Remove call to add-to-load-path.
184 * guile/lib/gdb/init.scm (%initialize!): Ditto.
185 * guile/lib/gdb/boot.scm: Use guile-data-directory.
186 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
188 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
189 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
190 * guile/scm-value.c (gdbscm_value_to_string): Only call
191 scm_port_conversion_strategy if Guile version >= 2.0.6.
193 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
195 * main.c (print_gdb_help): Add -q and --silent.
197 2014-06-06 Gary Benson <gbenson@redhat.com>
199 * common/signals.c: Remove preprocessor conditionals for
200 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
202 * proc-events.c: Likewise.
204 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
206 * symfile.c (symfile_free_objfile): Remove restriction to
208 * symfile-mem.c (symbol_file_add_from_memory): Call
209 add_target_sections_of_objfile.
211 2014-06-05 Ludovic Courtès <ludo@gnu.org>
213 * guile/scm-value.c (gdbscm_history_append_x): Use
214 'vlscm_get_value_smob_arg_unsafe' instead of
215 'vlscm_scm_to_value'.
217 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
220 * utils.c (printchar): Don't escape at all if quoter is NUL.
221 Update function documentation to clarify effect of parameter
223 * remote.c (escape_buffer): Pass '\\' as the quoter to
225 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
227 (mi_solib_unloaded): Same.
229 2014-06-05 Joel Brobecker <brobecker@adacore.com>
231 * development.sh: Delete.
232 * Makefile.in (config.status): Adjust dependency on development.sh.
233 * configure.ac: Adjust development.sh source call.
234 * configure: Regenerate.
236 2014-06-04 Doug Evans <xdje42@gmail.com>
238 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
239 is_scheme_bkpt, spec.
240 (bpscm_make_breakpoint_smob): Initialize new members.
241 (gdbscm_create_breakpoint_x): Split into two ...
242 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
243 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
244 (scheme_function breakpoint_functions): Update.
245 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
246 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
247 register-breakpoint!.
249 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
252 * mem-break.c (z_type_supported): Return zero if
253 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
255 2014-06-04 Tom Tromey <tromey@redhat.com>
257 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
258 value_from_contents_and_address_unresolved.
259 (ada_template_to_fixed_record_type_1): Likewise.
260 (ada_which_variant_applies): Likewise.
261 * value.h (value_from_contents_and_address_unresolved): Declare.
262 * value.c (value_from_contents_and_address_unresolved): New
264 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
265 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
266 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
268 2014-06-04 Tom Tromey <tromey@redhat.com>
270 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
272 2014-06-04 Tom Tromey <tromey@redhat.com>
274 * procfs.c (procfs_attach): Make "args" const.
275 * windows-nat.c (windows_attach): Make "args" const.
276 * nto-procfs.c (procfs_attach): Make "args" const.
277 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
278 * go32-nat.c (go32_attach): Make "args" const.
279 * gnu-nat.c (gnu_attach): Make "args" const.
280 * darwin-nat.c (darwin_attach): Make "args" const.
281 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
282 * linux-nat.c (linux_nat_attach): Make "args" const.
283 * remote.c (extended_remote_attach_1, extended_remote_attach):
285 * target.h (struct target_ops) <to_attach>: Make "args" const.
286 (find_default_attach): Likewise.
287 * utils.c (parse_pid_to_attach): Make "args" const.
288 * utils.h (parse_pid_to_attach): Update.
290 2014-06-04 Tom Tromey <tromey@redhat.com>
292 * target-delegates.c: Rebuild.
293 * target.c (default_thread_address_space): New function.
294 (target_thread_address_space): Simplify.
295 * target.h (struct target_ops) <to_thread_address_space>: Add
298 2014-06-04 Doug Evans <xdje42@gmail.com>
300 * guile/scm-type.c (type_smob): Remove duplicate typedef.
302 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
304 * record-btrace.c: Include event-loop.h and inf-loop.h.
305 (record_btrace_resume_exec_dir)
306 (record_btrace_async_inferior_event_handler)
307 (record_btrace_handle_async_inferior_event): New.
308 (record_btrace_open): Create async event handler.
309 (record_btrace_close): Delete async event handler.
310 (record_btrace_resume): Set record_btrace_resume_exec_dir,
311 Mark async event handler.
312 (record_btrace_execution_direction): New.
313 (init_record_btrace_ops): Initialize to_execution_direction.
315 2014-06-03 Doug Evans <xdje42@gmail.com>
317 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
318 (gdbscm_make_parameter): Ditto.
320 2014-06-03 Doug Evans <dje@google.com>
322 * exec.c (exec_close_1): Call clear_section_table instead of
323 resize_section_table.
324 (clear_section_table): New function.
325 (resize_section_table): Make static. Rename arg num_added to
327 * exec.h (clear_section_table): Declare.
328 (resize_section_table): Delete.
329 * progspace.c (release_program_space): Call clear_section_table
330 instead of resize_section_table.
332 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
334 * NEWS (Python Scripting): Add entry about the new xmethods
337 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
339 * python/py-xmethods.c: New file.
340 * python/py-objfile.c (objfile_object): New field 'xmethods'.
341 (objfpy_dealloc): XDECREF on the new xmethods field.
342 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
344 (objfpy_get_xmethods): New function.
345 (objfile_getset): New entry 'xmethods'.
346 * python/py-progspace.c (pspace_object): New field 'xmethods'.
347 (pspy_dealloc): XDECREF on the new xmethods field.
348 (pspy_new, pspace_to_pspace_object): Initialize xmethods
350 (pspy_get_xmethods): New function.
351 (pspace_getset): New entry 'xmethods'.
352 * python/python-internal.h: Add declarations for new functions.
353 * python/python.c (_initialize_python): Invoke
354 gdbpy_initialize_xmethods.
355 * python/lib/gdb/__init__.py (xmethods): New
357 * python/lib/gdb/xmethod.py: New file.
358 * python/lib/gdb/command/xmethods.py: New file.
360 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
362 * eval.c (evaluate_subexp_standard): Call the xmethod if the
363 best match method returned by find_overload_match is an xmethod.
364 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
365 the best matching operator returned by find_overload_match is an
367 * valops.c: #include "extension.h".
368 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
369 Return void. The list of matching source methods is returned in
370 "fn_list" and a vector of matching debug method workers is
371 returned in "xm_worker_vec". Update all callers.
372 (value_find_oload_method_list): Likewise.
373 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
374 non-NULL, then the index of the best matching method in this
375 vector is returned. Update all callers.
376 (find_overload_match): Include xmethods while performing overload
379 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
381 * defs.h (enum lval_type): New enumerator "lval_xcallable".
382 * extension-priv.h (struct extension_language_ops): Add the
384 * extension.c (new_xmethod_worker, clone_xmethod_worker,
385 get_matching_xmethod_workers, get_xmethod_argtypes,
386 invoke_xmethod, free_xmethod_worker,
387 free_xmethod_worker_vec): New functions.
388 * extension.h: #include "common/vec.h".
389 New function declarations.
390 (struct xmethod_worker): New struct.
391 (VEC (xmethod_worker_ptr)): New vector type.
392 (xmethod_worker_ptr): New typedef.
393 (xmethod_worker_vec): Likewise.
394 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
396 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
397 (struct builtin_type): New field "xmethod".
398 * valarith.c (value_ptradd): Assert that the value argument is not
400 * valops.c (value_must_coerce_to_target): Return 0 for
401 lval_xcallable values.
402 * value.c (struct value): New field XM_WORKER in the field
404 (value_address, value_raw_address): Return 0 for lval_xcallable
406 (set_value_address): Assert that the value is not an
408 (value_free): Free the associated xmethod worker when freeing
409 lval_xcallable values.
410 (set_value_component_location): Assert that the WHOLE value is not
412 (value_of_xmethod, call_xmethod): New functions.
413 * value.h: Declare "struct xmethod_worker".
414 Declare new functions value_of_xmethod, call_xmethod.
416 2014-06-03 Joel Brobecker <brobecker@adacore.com>
417 Pedro Alves <palves@redhat.com>
420 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
421 New function, extracted from software_breakpoint_inserted_here_p.
422 (software_breakpoint_inserted_here_p): Replace factored out code
423 by call to find_non_raw_software_breakpoint_inserted_here.
424 (bp_target_info_copy_insertion_state): New function.
425 (bkpt_insert_location): Handle the case of a single-step
426 breakpoint already inserted at the same address.
427 (bkpt_remove_location): Handle the case of a single-step
428 breakpoint still inserted at the same address.
429 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
430 breakpoint already inserted at the same address.
431 (deprecated_remove_raw_breakpoint): Handle the case of a
432 non-raw breakpoint still inserted at the same address.
433 (find_single_step_breakpoint): New function, extracted from
434 single_step_breakpoint_inserted_here_p.
435 (find_single_step_breakpoint): New function,
436 factored out from single_step_breakpoint_inserted_here_p.
437 (single_step_breakpoint_inserted_here_p): Reimplement.
439 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
441 Pushed by Joel Brobecker <brobecker@adacore.com>
442 * source.c (show_substitute_path_command): Fix display of matching
445 2014-06-03 Gary Benson <gbenson@redhat.com>
447 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
449 2014-06-02 Doug Evans <xdje42@gmail.com>
451 Add parameter support for Guile.
452 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
453 (SUBDIR_GUILE_SRCS): Add scm-param.c.
454 (scm-param.o): New rule.
455 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
456 (gdbscm_misc_error): Declare.
457 (gdbscm_canonicalize_command_name): Declare.
458 (gdbscm_scm_to_host_string): Declare.
459 (gdbscm_scm_from_host_string): Declare.
460 (gdbscm_initialize_parameters): Declare.
461 * guile/guile.c (initialize_gdb_module): Call
462 gdbscm_initialize_parameters.
463 * guile/lib/gdb.scm: Export parameter symbols.
464 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
465 cmdscm_canonicalize_name and made public. All callers updated.
466 * guile/scm-exception.c (gdbscm_misc_error): New function.
467 * guile/scm-param.c: New file.
468 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
469 (gdbscm_scm_to_host_string): New function.
470 (gdbscm_scm_from_host_string): New function.
471 * scm-utils.c (gdbscm_gc_dup_argv): New function.
473 2014-06-02 Doug Evans <xdje42@gmail.com>
475 Add command support for Guile.
476 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
477 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
478 (scm-cmd.o): New rule.
479 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
480 (gdbscm_user_error_p): Declare.
481 (gdbscm_parse_command_name): Declare.
482 (gdbscm_valid_command_class_p): Declare.
483 (gdbscm_initialize_commands): Declare.
484 * guile/guile.c (initialize_gdb_module): Call
485 gdbscm_initialize_commands.
486 * guile/lib/gdb.scm: Export command symbols.
487 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
488 (throw-user-error): New function.
489 * guile/scm-cmd.c: New file.
490 * guile/scm-exception.c (user_error_symbol): New static global.
491 (gdbscm_user_error_p): New function.
492 (gdbscm_initialize_exceptions): Set user_error_symbol.
493 * scm-utils.c (gdbscm_gc_xstrdup): New function.
495 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
497 * top.c (command_loop): Handle comments here...
498 (command_line_input): ... not here.
500 2014-06-02 Doug Evans <xdje42@gmail.com>
502 Add progspace support for Guile.
503 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
504 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
505 (scm-progspace.o): New rule.
506 * guile/guile-internal.h (pspace_smob): New typedef.
507 (psscm_pspace_smob_pretty_printers): Declare.
508 (psscm_pspace_smob_from_pspace): Declare.
509 (psscm_scm_from_pspace): Declare.
510 * guile/guile.c (initialize_gdb_module): Call
511 gdbscm_initialize_pspaces.
512 * guile/lib/gdb.scm: Export progspace symbols.
513 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
515 (append-pretty-printer!): Ditto.
516 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
518 * guile/scm-progspace.c: New file.
520 2014-06-03 Alan Modra <amodra@gmail.com>
522 * ppc64-tdep.c (ppc64_standard_linkage8): New.
523 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
525 2014-06-02 Doug Evans <dje@google.com>
527 Add support for skeletonless type units.
528 * dwarf2read.c (struct dwarf2_per_objfile): New member
529 n_allocated_type_units.
530 (struct dwarf2_per_objfile) <tu_stats>: New member
531 nr_all_type_units_reallocs.
532 (create_signatured_type_table_from_index): Initialize
533 n_allocated_type_units
534 (create_all_type_units): Ditto.
535 (add_type_unit): Move up in file. New arg slot.
536 All callers updated. Increase space for all_type_units more
538 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
539 (lookup_dwo_signatured_type): Handle skeletonless TUs.
540 (lookup_dwp_signatured_type): Ditto.
541 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
543 (build_type_psymtabs_1): Leave type_unit_groups as
544 NULL if no TUs present.
545 (print_tu_stats): New function.
546 (process_skeletonless_type_unit): New function.
547 (process_dwo_file_for_skeletonless_type_units): New
549 (process_skeletonless_type_units): New function.
550 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
551 Call print tu_stats if debugging enabled.
553 2014-06-02 Pedro Alves <palves@redhat.com>
555 * breakpoint.c (build_target_command_list): Don't build a command
556 list if we have any duplicate location that isn't a dprintf.
558 2014-06-02 Pedro Alves <palves@redhat.com>
560 * breakpoint.c (dprintf_breakpoint_hit): New function.
561 (initialize_breakpoint_ops): Install it as dprintf's
562 breakpoint_hit method.
564 2014-06-02 Joel Brobecker <brobecker@adacore.com>
566 * source.c (substitute_path_rule_matches): Simplify using
567 filename_ncmp instead of FILENAME_CMP.
569 2014-06-02 Joel Brobecker <brobecker@adacore.com>
571 * source.c (substitute_path_rule_matches): Remove trailing spaces.
573 2014-06-01 Ludovic Courtès <ludo@gnu.org>
575 * configure.ac: When Guile is available, check for the
576 availability of 'scm_new_smob'.
577 * configure, config.h.in: Regenerate.
578 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
581 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
583 * frame.c (struct frame_info): Add stop_string field.
584 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
585 (get_prev_frame_always): Old content moved into
586 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
587 TRY_CATCH, handle MEMORY_ERROR exceptions.
588 (frame_stop_reason_string): New function definition.
589 * frame.h (unwind_stop_reason_to_string): Extend comment to
590 mention frame_stop_reason_string.
591 (frame_stop_reason_string): New function declaration.
592 * stack.c (frame_info): Switch to frame_stop_reason_string.
593 (backtrace_command_1): Switch to frame_stop_reason_string.
594 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
595 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
596 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
598 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
600 * frame.c (frame_stop_reason_string): Rename to ...
601 (unwind_stop_reason_to_string): this.
602 * frame.h (frame_stop_reason_string): Rename to ...
603 (unwind_stop_reason_to_string): this.
604 * stack.c (frame_info): Update call to frame_stop_reason_string.
605 (backtrace_command_1): Likewise.
606 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
607 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
609 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
611 * frame.c (remove_prev_frame): New function.
612 (get_prev_frame_if_no_cycle): Create / discard cleanup using
615 2014-05-29 Pedro Alves <palves@redhat.com>
617 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
618 and make it const. When a single-step decays to a continue,
619 clear 'step', not 'hw_step'. Pass whether the caller wanted
620 to step to user_visible_resume_ptid, not what we ask the
623 2014-05-29 Pedro Alves <palves@redhat.com>
625 * infrun.c (process_event_stop_test, handle_step_into_function)
626 (handle_step_into_function_backward): Adjust.
627 Don't set the even thread's stop_step and call stop_waiting before
628 calling end_stepping_range. Instead do that ...
629 (end_stepping_range): ... here. Take an ecs pointer parameter.
631 2014-05-29 Pedro Alves <palves@redhat.com>
633 * infrun.c (stop_stepping): Rename to ...
634 (stop_waiting): ... this.
635 (proceed): Update comment.
636 (process_event_stop_test, handle_inferior_event)
637 (handle_signal_stop, handle_step_into_function)
638 (handle_step_into_function_backward): Update.
640 2014-05-29 Pedro Alves <palves@redhat.com>
642 * infcall.c (run_inferior_call): Don't check whether the current
643 thread is running after the proceed call.
645 2014-05-29 Pedro Alves <palves@redhat.com>
646 Tom Tromey <tromey@redhat.com>
648 * NEWS: Mention "maint set target-async", "set mi-async", and that
649 background execution commands are now always available.
650 * target.h (target_async_permitted): Update comment.
651 * target.c (target_async_permitted, target_async_permitted_1):
653 (set_target_async_command): Rename to ...
654 (maint_set_target_async_command): ... this.
655 (show_target_async_command): Rename to ...
656 (maint_show_target_async_command): ... this.
657 (_initialize_target): Adjust.
658 * infcmd.c (prepare_execution_command): Make extern.
659 * inferior.h (prepare_execution_command): Declare.
660 * infrun.c (set_observer_mode): Leave target async alone.
661 * mi/mi-interp.c (mi_interpreter_init): Install
662 mi_on_sync_execution_done as sync_execution_done observer.
663 (mi_on_sync_execution_done): New function.
664 (mi_execute_command_input_handler): Don't print the prompt if we
665 just started a synchronous command with an async target.
666 (mi_on_resume): Check sync_execution before printing prompt.
667 * mi/mi-main.h (mi_async_p): Declare.
668 * mi/mi-main.c: Include gdbcmd.h.
669 (mi_async_p): New function.
670 (mi_async, mi_async_1): New globals.
671 (set_mi_async_command, show_mi_async_command, mi_async): New
673 (exec_continue): Call prepare_execution_command.
674 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
675 (mi_execute_async_cli_command): Use mi_async_p.
676 (_initialize_mi_main): Install "set mi-async". Make
677 "target-async" a deprecated alias.
679 2014-05-29 Pedro Alves <palves@redhat.com>
681 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
682 (_initialize_cli_interp): Adjust.
683 * event-loop.c: Include "observer.h".
684 (start_event_loop): Notify 'command_error' observers instead of
685 calling display_gdb_prompt. Remove FIXME comment.
686 * event-top.c (display_gdb_prompt): Remove call into the
688 * inf-loop.c: Include "observer.h".
689 (inferior_event_handler): Notify 'command_error' observers instead
690 of calling display_gdb_prompt.
691 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
692 observers instead of calling display_gdb_prompt.
693 * interps.c (interp_set): Don't call display_gdb_prompt.
694 (current_interp_display_prompt_p): Delete.
695 * interps.h (interp_prompt_p): Delete declaration.
696 (interp_prompt_p_ftype): Delete.
697 (struct interp_procs) <prompt_proc_p>: Delete field.
698 (current_interp_display_prompt_p): Delete declaration.
699 * mi-interp.c (mi_interpreter_prompt_p): Delete.
700 (_initialize_mi_interp): Adjust.
701 * tui-interp.c (tui_init): Install 'sync_execution_done' and
702 'command_error' observers.
703 (tui_on_sync_execution_done, tui_on_command_error): New
705 (tui_display_prompt_p): Delete.
706 (_initialize_tui_interp): Adjust.
708 2014-05-29 Pedro Alves <palves@redhat.com>
711 * cli/cli-interp.c: Include infrun.h and observer.h.
712 (cli_uiout, cli_interp): New globals.
713 (cli_on_signal_received, cli_on_end_stepping_range)
714 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
716 (cli_interpreter_init): Install them as 'end_stepping_range',
717 'signal_received' 'signal_exited', 'exited' and 'no_history'
719 (_initialize_cli_interp): Remove cli_interp local.
720 * infrun.c (handle_inferior_event): Call the several stop reason
721 observers instead of printing the stop reason directly.
722 (end_stepping_range): New function.
723 (print_end_stepping_range_reason, print_signal_exited_reason)
724 (print_exited_reason, print_signal_received_reason)
725 (print_no_history_reason): Make static, and add an uiout
726 parameter. Print to that instead of to CURRENT_UIOUT.
727 * infrun.h (print_end_stepping_range_reason)
728 (print_signal_exited_reason, print_exited_reason)
729 (print_signal_received_reason print_no_history_reason): New
731 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
733 <cli_uiout>: New field.
734 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
735 uiout for CLI output. Install 'signal_received',
736 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
738 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
739 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
740 (mi_on_no_history): New functions.
741 (ui_out_free_cleanup): Delete function.
742 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
743 instead use the one already stored in the MI interpreter data.
745 * tui/tui-interp.c: Include infrun.h and observer.h.
746 (tui_interp): New global.
747 (tui_on_signal_received, tui_on_end_stepping_range)
748 (tui_on_signal_exited, tui_on_exited)
749 (tui_on_no_history): New functions.
750 (tui_init): Install them as 'end_stepping_range',
751 'signal_received' 'signal_exited', 'exited' and 'no_history'
753 (_initialize_tui_interp): Delete tui_interp local.
755 2014-05-29 Pedro Alves <palves@redhat.com>
758 * linux-nat.c (linux_nat_resume_callback): Rename the second
759 parameter to 'except'. Skip LP if it points to EXCEPT.
760 (linux_nat_resume): Don't mark the event lwp as not stopped
761 before resuming sibling lwps. Instead ask
762 linux_nat_resume_callback to skip the event lwp. Mark it as not
763 stopped after actually resuming it.
764 (linux_handle_syscall_trap): Mark the lwp as not stopped after
766 (wait_lwp): Mark the lwp as stopped here.
767 (stop_wait_callback): Mark the lwp as not stopped right after
768 resuming it. Don't mark lwps as stopped here.
769 (linux_nat_filter_event): Mark the lwp as stopped earlier.
770 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
772 2014-05-29 Pedro Alves <palves@redhat.com>
775 * infrun.c (resume): Determine how much to resume depending on
776 whether the caller wanted a step, not whether we can hardware step
777 the target. Mark all threads that we intend to run as running,
778 unless we're calling an inferior function.
779 (normal_stop): If the thread is running an infcall, don't finish
781 * target.c (target_resume): Don't mark threads as running here.
783 2014-05-28 Joel Brobecker <brobecker@adacore.com>
785 * serial.c (_initialize_serial): Remove support for
786 the "set remotebaud" and "show remotebaud" commands.
787 * NEWS: Add entry documenting the removal of that command.
789 2014-05-28 Yao Qi <yao@codesourcery.com>
791 * charset.c: Fix typo in comments.
793 2014-05-27 Gary Benson <gbenson@redhat.com>
795 * utils.c (internal_vproblem): Prompt for a bug report.
797 2014-05-26 Andy Wingo <wingo@igalia.com>
799 * guile/scm-arch.c (arscm_mark_arch_smob):
800 * guile/scm-block.c (bkscm_mark_block_smob)
801 (bkscm_mark_block_syms_progress_smob):
802 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
803 * guile/scm-exception.c (exscm_mark_exception_smob):
804 * guile/scm-frame.c (frscm_mark_frame_smob):
805 * guile/scm-iterator.c (itscm_mark_iterator_smob):
806 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
807 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
808 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
809 (ppscm_mark_pretty_printer_worker_smob):
810 * guile/scm-symbol.c (syscm_mark_symbol_smob):
811 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
812 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
813 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
815 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
818 2014-05-26 Andy Wingo <wingo@igalia.com>
819 Doug Evans <xdje42@gmail.com>
821 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
822 empty_base_class. All uses updated.
823 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
824 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
826 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
827 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
828 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
829 (gdbscm_gsmob_has_property_p, add_property_name)
830 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
831 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
832 (gdb-object-has-property?, gdb-object-properties): Remove.
833 (gdb-object-kind): Renamed from gsmob-kind.
835 2014-05-26 Andy Wingo <wingo@igalia.com>
837 * configure.ac (try_guile_versions): Allow building with guile 2.2.
838 * configure: Regenerate.
840 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
842 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
844 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
846 * record-btrace.c (record_btrace_allow_memory_access): Remove.
847 (replay_memory_access_read_only, replay_memory_access_read_write)
848 (replay_memory_access_types, replay_memory_access)
849 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
850 (cmd_set_record_btrace, cmd_show_record_btrace)
851 (cmd_show_replay_memory_access): New.
852 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
853 (record_btrace_remove_breakpoint): Replace
854 record_btrace_allow_memory_access with replay_memory_access.
855 (_initialize_record_btrace): Add commands.
858 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
860 * aarch64-linux-nat.c (asm/ptrace.h): Include.
862 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
864 * MAINTAINERS (Write After Approval): Move self back from
867 2014-05-22 Pedro Alves <palves@redhat.com>
869 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
870 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
871 (disable_randomization, enum exec_direction_kind)
872 (execution_direction, stop_registers, start_remote)
873 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
874 (wait_for_inferior, normal_stop, get_last_target_status)
875 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
876 (insert_step_resume_breakpoint_at_sal)
877 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
878 (set_step_info, print_stop_event, signal_stop_state)
879 (signal_print_state, signal_pass_state, signal_stop_update)
880 (signal_print_update, signal_pass_update)
881 (update_signals_program_target, clear_exit_convenience_vars)
882 (displaced_step_dump_bytes, update_observer_mode)
883 (signal_catch_update, gdb_signal_from_command): Move
885 * infrun.h: ... to this new file.
886 * amd64-tdep.c: Include infrun.h.
887 * annotate.c: Include infrun.h.
888 * arch-utils.c: Include infrun.h.
889 * arm-linux-tdep.c: Include infrun.h.
890 * arm-tdep.c: Include infrun.h.
891 * break-catch-sig.c: Include infrun.h.
892 * breakpoint.c: Include infrun.h.
893 * common/agent.c: Include infrun.h instead of inferior.h.
894 * corelow.c: Include infrun.h.
895 * event-top.c: Include infrun.h.
896 * go32-nat.c: Include infrun.h.
897 * i386-tdep.c: Include infrun.h.
898 * inf-loop.c: Include infrun.h.
899 * infcall.c: Include infrun.h.
900 * infcmd.c: Include infrun.h.
901 * infrun.c: Include infrun.h.
902 * linux-fork.c: Include infrun.h.
903 * linux-nat.c: Include infrun.h.
904 * linux-thread-db.c: Include infrun.h.
905 * monitor.c: Include infrun.h.
906 * nto-tdep.c: Include infrun.h.
907 * procfs.c: Include infrun.h.
908 * record-btrace.c: Include infrun.h.
909 * record-full.c: Include infrun.h.
910 * remote-m32r-sdi.c: Include infrun.h.
911 * remote-mips.c: Include infrun.h.
912 * remote-notif.c: Include infrun.h.
913 * remote-sim.c: Include infrun.h.
914 * remote.c: Include infrun.h.
915 * reverse.c: Include infrun.h.
916 * rs6000-tdep.c: Include infrun.h.
917 * s390-linux-tdep.c: Include infrun.h.
918 * solib-irix.c: Include infrun.h.
919 * solib-osf.c: Include infrun.h.
920 * solib-svr4.c: Include infrun.h.
921 * target.c: Include infrun.h.
922 * top.c: Include infrun.h.
923 * windows-nat.c: Include infrun.h.
924 * mi/mi-interp.c: Include infrun.h.
925 * mi/mi-main.c: Include infrun.h.
926 * python/py-threadevent.c: Include infrun.h.
928 2014-05-22 Pedro Alves <palves@redhat.com>
930 * infrun.c (handle_inferior_event): Store the exit code for
931 --return-child-result here, instead of ...
932 (print_exited_reason): ... here.
934 2014-05-21 Pedro Alves <palves@redhat.com>
937 * gdbthread.h (struct thread_control_state): New field
939 * infrun.c (follow_fork): Copy the new thread control field to the
941 (clear_proceed_status_thread): Clear the new thread control field.
942 (proceed): Set the new thread control field.
943 * interps.h (command_interp): Declare.
944 * interps.c (command_interpreter): New global.
945 (command_interp): New function.
946 (interp_exec): Set `command_interpreter' while here.
947 * cli-out.c (cli_uiout_dtor): New function.
948 (cli_ui_out_impl): Install it.
949 * mi/mi-interp.c: Include cli-out.h.
950 (mi_cmd_interpreter_exec): Add comment.
951 (restore_current_uiout_cleanup): New function.
952 (ui_out_free_cleanup): New function.
953 (mi_on_normal_stop): If finishing an execution command started by
954 a CLI command, or any kind of breakpoint-like event triggered,
955 print the stop event to the output (CLI) stream.
956 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
958 2014-05-21 Pedro Alves <palves@redhat.com>
960 * cli/cli-cmds.c (list_command): Handle the first "list" after the
961 current source line having changed.
962 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
963 * infrun.c (normal_stop): Adjust call to
964 set_current_sal_from_frame.
965 * source.c (clear_lines_listed_range): New function.
966 (set_current_source_symtab_and_line, identify_source_line): Clear
967 the lines listed range.
968 (line_info): Handle the first "info line" after the current source
970 * stack.c (print_stack_frame): Remove center handling.
971 (set_current_sal_from_frame): Remove 'center' parameter. Don't
974 2014-05-21 Pedro Alves <palves@redhat.com>
976 * inf-child.c (inf_child_mourn_inferior): New function.
977 * inf-child.h (inf_child_mourn_inferior): New declaration.
978 * darwin-nat.c (darwin_mourn_inferior): Use
979 inf_child_mourn_inferior.
980 * gnu-nat.c (gnu_mourn_inferior): Likewise.
981 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
982 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
983 * nto-procfs.c (procfs_mourn_inferior): Likewise.
984 * windows-nat.c (windows_mourn_inferior): Likewise.
986 2014-05-21 Doug Evans <xdje42@gmail.com>
988 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
990 2014-05-21 Doug Evans <xdje42@gmail.com>
992 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
993 (gdbscm_out_of_range_error): Ditto.
994 (gdbscm_memory_error): Ditto.
995 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
996 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
997 (gdbscm_out_of_range_error): Update.
998 (gdbscm_memory_error): Update.
999 (gdbscm_scm_to_target_string_unsafe): Delete.
1001 2014-05-21 Pedro Alves <palves@redhat.com>
1003 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1005 (inf_child_open_target): New function.
1006 (inf_child_open): Use inf_child_open_target to push the target
1007 instead of erroring out.
1008 (inf_child_disconnect, inf_child_close)
1009 (inf_child_maybe_unpush_target): New functions.
1010 (inf_child_target): Install inf_child_disconnect and
1011 inf_child_close. Store a pointer to the returned object.
1012 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1014 * target.c (auto_connect_native_target): New global.
1015 (show_default_run_target): New function.
1016 (find_default_run_target): Return NULL if automatically connecting
1017 to the native target is disabled.
1018 (_initialize_target): Install set/show auto-connect-native-target.
1019 * NEWS: Mention "set auto-connect-native-target", and "target
1021 * linux-nat.c (super_close): New global.
1022 (linux_nat_close): Call super_close.
1023 (linux_nat_add_target): Store a pointer to the base class's
1025 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1026 inf_child_maybe_unpush.
1027 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1029 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1030 the inferior. Use inf_child_maybe_unpush_target.
1031 (inf_ttrace_attach): Don't push the target if it is already
1033 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1034 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1035 after mourning the inferior. Use inf_child_maybe_unpush_target.
1036 (darwin_attach_pid): Don't push the target if it is already
1038 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1039 mourning the inferior. Use inf_child_maybe_unpush_target.
1040 (gnu_detach): Use inf_child_maybe_unpush_target.
1041 * go32-nat.c (go32_create_inferior): Don't push the target if it
1043 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1044 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1045 (procfs_open): Rename to ...
1046 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1047 comments. Can target_preopen before changing node. Call
1048 inf_child_open_target to push the target explicitly.
1049 (procfs_attach): Don't push the target if it is already pushed.
1050 (procfs_detach): Use inf_child_maybe_unpush_target.
1051 (procfs_create_inferior): Don't push the target if it is already
1053 (nto_native_ops): New global.
1054 (procfs_open): Reimplement.
1055 (procfs_native_open): New function.
1056 (init_procfs_targets): Install procfs_native_open as to_open of
1057 "target native". Store a pointer to the "native" target in
1059 * procfs.c (procfs_attach): Don't push the target if it is already
1061 (procfs_detach): Use inf_child_maybe_unpush_target.
1062 (procfs_mourn_inferior): Only unpush the target after mourning the
1063 inferior. Use inf_child_maybe_unpush_target.
1064 (procfs_init_inferior): Don't push the target if it is already
1066 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1067 if it is already pushed.
1069 2014-05-21 Pedro Alves <palves@redhat.com>
1071 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1072 and "procfs" targets are now called "native" instead.
1074 2014-05-21 Pedro Alves <palves@redhat.com>
1076 * go32-nat.c (go32_open): Delete.
1077 (go32_target): Don't override the to_open method.
1079 2014-05-21 Pedro Alves <palves@redhat.com>
1081 * nto-procfs.c (procfs_can_run): New function.
1082 (nto_procfs_ops): New global.
1083 (init_procfs_targets): New, based on procfs_target. Install
1084 "target native" in addition to "target procfs".
1085 (_initialize_procfs): Call init_procfs_targets instead of adding
1088 2014-05-21 Pedro Alves <palves@redhat.com>
1090 * windows-nat.c (windows_target): Don't override to_shortname,
1091 to_longname or to_doc.
1093 2014-05-21 Pedro Alves <palves@redhat.com>
1095 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1098 2014-05-21 Pedro Alves <palves@redhat.com>
1100 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1101 to_shortname, to_longname or to_doc.
1103 2014-05-21 Pedro Alves <palves@redhat.com>
1105 * go32-nat.c (go32_target): Don't override to_shortname,
1106 to_longname or to_doc.
1108 2014-05-21 Pedro Alves <palves@redhat.com>
1110 * inf-child.c (inf_child_open): Remove mention of "child".
1111 (inf_child_target): Rename target to "native" instead of "child".
1113 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1115 * Makefile.in (SFILES): Delete "regset.c".
1116 (COMMON_OBS): Delete "regset.o".
1118 * regset.h (regset_alloc): Delete prototype.
1120 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122 * sparc-linux-tdep.c (sparc32_linux_gregset)
1123 (sparc32_linux_fpregset): New static regset structures.
1124 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1125 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1127 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1128 (sparc64_linux_fpregset): New static regset structures.
1129 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1130 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1131 New static regset structures.
1132 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1133 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1134 New static regset structures.
1135 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1136 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1137 New static regset structures.
1138 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1139 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1140 New static regset structures.
1141 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1143 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1145 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1146 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1147 register maps ("regmaps") from "*regset" to "*regmap". Do this
1148 for all regmap types and variables.
1149 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1150 (sparc32_linux_supply_core_gregset)
1151 (sparc32_linux_collect_core_gregset)
1152 (sparc32_linux_supply_core_fpregset)
1153 (sparc32_linux_collect_core_fpregset): Likewise.
1154 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1155 (sparc_gregmap, sparc_fpregmap): ... these.
1156 (sparc_supply_gregset, sparc_collect_gregset)
1157 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1158 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1159 (_initialize_sparc_nat): Rename regmaps.
1160 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1161 (sparc_gregmap, sparc_fpregmap): ... these.
1162 (sparc_supply_gregset, sparc_collect_gregset)
1163 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1164 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1166 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1167 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1169 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1171 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1172 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1173 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1175 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1176 (sparc32_bsd_fpregset): Rename to...
1177 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1178 (sparc32_bsd_fpregmap): ... these.
1179 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1180 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1181 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1182 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1183 (struct sparc_gregmap, struct sparc_fpregmap)
1184 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1185 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1186 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1187 (sparc32_supply_regset, sparc32_collect_gregset)
1188 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1190 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1191 (sparc64_linux_ptrace_gregmap): ... this.
1192 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1193 (_initialize_sparc64_linux_nat): Rename regmaps.
1194 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1195 (sparc64_linux_core_gregmap): ... this.
1196 (sparc64_linux_supply_core_gregset)
1197 (sparc64_linux_collect_core_gregset)
1198 (sparc64_linux_supply_core_fpregset)
1199 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1200 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1201 (sparc64_sol2_fpregset): Rename to...
1202 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1203 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1204 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1206 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1207 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1208 (sparc64_bsd_fpregset): Rename to...
1209 (struct sparc_gregmap, sparc64_sol2_gregmap)
1210 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1211 (sparc64_bsd_fpregmap): ... these.
1212 (sparc64_supply_gregset, sparc64_collect_gregset)
1213 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1215 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1216 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1217 (sparc64fbsd_gregmap): ... this.
1218 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1219 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1221 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1222 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1223 (sparc64nbsd_collect_fpregset): Likewise.
1224 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1225 (sparc64nbsd_gregmap): ... this.
1226 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1228 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1229 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1230 (sparc64obsd_gregmap): ... this.
1231 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1233 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1234 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1235 (sparc32nbsd_gregmap): ... this.
1236 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1239 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1241 * score-tdep.c (score7_linux_gregset): New static regset
1243 (score7_linux_regset_from_core_section): Remove dynamic regset
1245 (score_gdbarch_init): Drop allocation of tdep structure.
1246 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1248 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1250 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1252 (am33_regset_from_core_section): Remove dynamic regset
1255 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1257 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1258 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1260 (mips_linux_regset_from_core_section): Remove dynamic regset
1262 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1263 'gregset64', 'fpregset', and 'fpregset64'.
1264 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1265 deleted tdep fields.
1267 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1269 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1271 (amd64_regset_from_core_section): Remove dynamic regset
1273 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1275 (amd64obsd_regset_from_core_section): Remove dynamic regset
1277 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1279 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1280 x86-common regset supply function.
1281 * i386-tdep.c (i386_collect_gregset): Make static.
1282 (i386_gregset): New global regset structure.
1283 (i386_fpregset, i386_xstateregset): New static regset structures.
1284 (i386_regset_from_core_section): Remove dynamic regset
1286 (i386_gdbarch_init): Remove initialization of tdep fields
1287 'gregset', 'fpregset', and 'xstateregset'.
1288 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1289 'fpregset', and 'xstateregset'.
1290 (i386_collect_gregset): Remove prototype.
1291 (i386_gregset): New declaration.
1292 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1294 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1297 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1299 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1300 (arm_linux_vfpregset): New static regset structures.
1301 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1303 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1304 and 'vfpregset' fields.
1306 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1308 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1309 (aarch64_linux_fpregset): New static regset structures.
1310 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1311 of regset structures.
1312 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1315 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1317 * regset.h (struct regset): Remove gdbarch field.
1318 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1319 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1320 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1322 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1323 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1324 (ppc32_linux_vsxregset): Likewise.
1325 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1326 via the regcache instead of the regset.
1327 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1328 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1329 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1330 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1333 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1335 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1336 Constify structures.
1337 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1338 (alphanbsd_aout_gregset): Likewise.
1339 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1340 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1342 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1343 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1345 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1346 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1347 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1348 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1349 * m88k-tdep.c (m88k_gregset): Likewise.
1350 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1351 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1352 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1353 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1354 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1355 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1356 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1357 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1358 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1360 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1361 * sh-tdep.h (sh_corefile_gregset): Likewise.
1362 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1363 * vax-tdep.c (vax_gregset): Likewise.
1365 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1367 Fix TLS access for -static -pthread.
1368 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1369 (try_thread_db_load_1): Initialize it.
1370 (thread_db_get_thread_local_address): Call it if LM is zero.
1371 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1372 * target.h (struct target_ops) (to_get_thread_local_address): Add
1373 load_module_addr comment.
1375 2014-05-21 Pedro Alves <palves@redhat.com>
1377 * dcache.c (dcache_read_memory_partial): If reading the cache line
1378 fails, fallback to reading just the memory the caller wanted.
1380 2014-05-20 Doug Evans <dje@google.com>
1382 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1383 instead of get_current_arch.
1385 2014-05-20 Pedro Alves <palves@redhat.com>
1387 * NEWS: Mention that compare-sections now works with all targets.
1389 * remote.c (PACKET_qCRC): New enum value.
1390 (remote_verify_memory): Don't send qCRC if the target has no
1391 execution. Use packet_support/packet_ok. If the target doesn't
1392 support the qCRC packet, fallback to a deep memory copy.
1393 (compare_sections_command): Say "target image" instead of "remote
1395 (_initialize_remote): Add PACKET_qCRC to the list of config
1396 packets that have no associated command. Extend comment.
1397 * target.c (simple_verify_memory, default_verify_memory): New
1399 * target.h (struct target_ops) <to_verify_memory>: Default to
1400 default_verify_memory.
1401 (simple_verify_memory): New declaration.
1402 * target-delegates.c: Regenerate.
1404 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1406 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1408 2014-05-20 Hui Zhu <hui@codesourcery.com>
1409 Yao Qi <yao@codesourcery.com>
1412 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1413 and change address of sp and pc.
1415 2014-05-19 Tom Tromey <tromey@redhat.com>
1417 * gdbtypes.c (rank_function): Use XNEWVEC.
1418 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1420 2014-05-19 Doug Evans <dje@google.com>
1422 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1423 build_type_unit_groups and moved closer to only caller. Remove
1424 arguments. All references updated. Remove outdated .gdb_index
1426 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1427 build_type_psymtabs_1.
1429 2014-05-19 Doug Evans <dje@google.com>
1431 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1432 n_type_unit_groups, all_type_unit_groups. All uses removed.
1433 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1434 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1435 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1436 (add_type_unit_group_to_table): Delete.
1438 2014-05-19 Doug Evans <dje@google.com>
1440 * eval.c (evaluate_subexp_standard): Add some comments.
1442 2014-05-17 Doug Evans <xdje42@gmail.com>
1444 * progspace.c (remove_program_space): Delete, unused.
1445 * progspace.h (remove_program_space): Ditto.
1447 2014-05-17 Doug Evans <xdje42@gmail.com>
1449 * inferior.c (prune_inferiors): Fix comment.
1450 (remove_inferior_command): Call prune_program_spaces.
1452 2014-05-16 Doug Evans <dje@google.com>
1454 New command line option -D.
1456 * main.c (set_gdb_data_directory): New function.
1457 (captured_main): Recognize -D. Flag error for --data-directory "".
1458 Call set_gdb_data_directory.
1459 (print_gdb_help): Print --data-directory, -D.
1460 * main.h (set_gdb_data_directory): Declare.
1461 * top.c (staged_gdb_datadir): New static global.
1462 (set_gdb_datadir): Call set_gdb_data_directory
1463 (show_gdb_datadir): New function.
1464 (init_main): Update init of data-directory parameter.
1466 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1468 Import the "dirfd" gnulib module.
1469 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1470 * gnulib/aclocal.m4: Update.
1471 * gnulib/config.in: Update.
1472 * gnulib/configure: Update.
1473 * gnulib/import/Makefile.am: Update.
1474 * gnulib/import/Makefile.in: Update.
1475 * gnulib/import/dirfd.c: New.
1476 * gnulib/import/m4/dirfd.m4: New.
1477 * gnulib/import/m4/gnulib-cache.m4: Update.
1478 * gnulib/import/m4/gnulib-comp.m4: Update.
1480 2014-05-16 Pierre Muller <muller@sourceware.org>
1481 Yao Qi <yao@codesourcery.com>
1483 * valprint.c (print_wchar): Move the code on checking whether
1484 W is a printable wide char to the default branch of switch
1485 statement below. Call wchar_printable instead of gdb_iswprint.
1487 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1489 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1490 ldr.w and ldrd instructions.
1492 2014-05-15 Doug Evans <dje@google.com>
1494 * dwarf2read.c (read_structure_type): Delete outdated comments.
1496 2014-05-14 Tom Tromey <tromey@redhat.com>
1498 * macrocmd.c (print_macro_definition): Reindent.
1500 2014-05-13 Doug Evans <xdje42@gmail.com>
1502 * python/py-cmd.c (cmdpy_completer): Add comment.
1503 (completers): Make const.
1505 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1507 * infrun.c (resume): Remove should_resume (unused). Move up
1508 declaration of resume_ptid.
1510 2014-05-13 Tom Tromey <tromey@redhat.com>
1512 * language.h (unop_type_check): Remove.
1513 (binop_type_check): Don't declare.
1515 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1517 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1518 call to regcache_raw_collect.
1520 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1522 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1523 mi_console->quote as the quoting character.
1525 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1527 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1529 2014-04-29 Tom Tromey <tromey@redhat.com>
1531 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1532 "show debug varobj".
1534 2014-05-07 Kyle McMartin <kyle@redhat.com>
1536 Pushed by Joel Brobecker <brobecker@adacore.com>.
1537 * aarch64-tdep.c (aarch64_software_single_step): New function.
1538 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1539 with aarch64_software_single_step.
1541 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1545 2014-05-05 Keith Seitz <keiths@redhat.com>
1547 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1548 variable or history value is successfully parsed.
1550 2014-05-05 Yao Qi <yao@codesourcery.com>
1551 Pedro Alves <palves@redhat.com>
1553 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1554 address of blocks that intersects the requested range. Trim
1555 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1557 * ctf.c (ctf_xfer_partial): Likewise.
1559 2014-05-05 Yao Qi <yao@codesourcery.com>
1561 * printcmd.c (display_command): Remove the check to
1562 target_has_execution.
1564 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1566 * ppcobsd-nat.c: Include "obsd-nat.h".
1567 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1569 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1571 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1573 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1574 and 16-bit signed and unsigned arguments. Update comment.
1575 (stap_parse_probe_arguments): Extend code to handle such
1576 arguments. Use warning instead of complaint to notify about
1577 unrecognized bitness.
1579 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1581 PR breakpoints/16889
1582 * stap-probe.c (stap_parse_probe_arguments): Simplify
1583 check for non-prefixed probes (i.e., probes whose
1584 arguments do not start with "N@"). Always set the
1585 argument type to a sane value.
1587 2014-05-01 David Taylor <dtaylor@emc.com>
1589 * remote.c (compare_sections_command): Add -r option to compare
1590 all loadable read-only sections.
1592 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1594 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1595 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1597 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1598 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1599 Remove unused CORE_ADDR argument. Update all callers.
1601 2014-04-29 Pedro Alves <palves@redhat.com>
1603 * remote.c (struct packet_config) <detect>: Extend comment.
1604 (add_packet_config_cmd): Don't set the config's detect or support
1606 (init_all_packet_configs): Also initialize the config's 'detect'
1608 (reset_all_packet_configs_support): New function.
1609 (remote_open_1): Call reset_all_packet_configs_support instead of
1610 init_all_packet_configs.
1611 (_initialize_remote): Initialize all packet configs. Assert that
1612 all packets have an associated command, except a few known
1615 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1617 * dwarf2read.c (read_subrange_type): Handle dynamic
1618 DW_AT_lower_bound attributes.
1620 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1622 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1623 dynamic bounds before computing its upper bound.
1624 (ada_discrete_type_low_bound): Same as above with the lower bound.
1626 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1628 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1629 range types. Adjust the array handling implementation to
1630 take advantage of this change.
1631 (resolve_dynamic_range): New function, mostly extracted from
1632 resolve_dynamic_bounds.
1633 (resolve_dynamic_array): New function, mostly extracted from
1634 resolve_dynamic_bounds.
1635 (resolve_dynamic_bounds): Delete.
1636 (resolve_dynamic_type): Reimplement. Add handling of
1637 TYPE_CODE_RANGE types.
1639 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1641 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1642 handling of parallel ___XA types.
1644 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1646 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1647 unnecessary second call to static_unwrap_type.
1649 2014-04-27 Hui Zhu <hui@codesourcery.com>
1651 * stack.c (print_frame_info): Call do_gdb_disassembly with
1652 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1654 2014-04-26 Doug Evans <xdje42@gmail.com>
1656 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1658 2014-04-25 Pedro Alves <palves@redhat.com>
1661 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1662 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1663 and newline from built string.
1664 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1665 (linux_ptrace_attach_fail_reason): ... this.
1666 * linux-nat.c (linux_nat_attach): Adjust to use
1667 linux_ptrace_attach_fail_reason.
1669 2014-04-25 Pedro Alves <palves@redhat.com>
1671 * remote.c (struct remote_state): Remove multi_process_aware,
1672 non_stop_aware, cond_tracepoints, cond_breakpoints,
1673 breakpoint_commands, fast_tracepoints, static_tracepoints,
1674 install_in_trace, disconnected_tracing,
1675 enable_disable_tracepoints, string_tracing, and
1676 augmented_libraries_svr4_read fields.
1677 (remote_multi_process_p): Move further below in the file.
1678 (struct packet_config): Add comments.
1679 (update_packet_config): Delete function.
1680 (show_packet_config_cmd): Use packet_config_support.
1681 (add_packet_config_cmd): Use NULL as set callback.
1682 (packet_ok): "set remote foo-packet"-style commands no longer
1683 change config->supported -- adjust.
1684 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1685 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1686 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1687 (PACKET_QNonStop, PACKET_multiprocess_feature)
1688 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1689 (PACKET_DisconnectedTracing_feature)
1690 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1691 (set_remote_protocol_packet_cmd): Delete function.
1692 (packet_config_support, packet_support): New functions.
1693 (set_remote_protocol_Z_packet_cmd): Don't call
1694 update_packet_config.
1695 (remote_query_attached, remote_pass_signals)
1696 (remote_program_signals, remote_threads_info)
1697 (remote_threads_extra_info, remote_start_remote): Use
1699 (remote_start_remote): Use packet_config_support and
1701 (init_all_packet_configs): Set all packets to unknown support,
1702 instead of calling update_packet_config.
1703 (remote_check_symbols): Use packet_support.
1704 (remote_supported_packet): Unconditionally set the packet config's
1706 (remote_multi_process_feature, remote_non_stop_feature)
1707 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1708 (remote_breakpoint_commands_feature)
1709 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1710 (remote_install_in_trace_feature)
1711 (remote_disconnected_tracing_feature)
1712 (remote_enable_disable_tracepoint_feature)
1713 (remote_string_tracing_feature)
1714 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1715 (remote_protocol_features): Adjust to use remote_supported_packet
1716 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1717 "ConditionalTracepoints", "ConditionalBreakpoints",
1718 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1719 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1720 "EnableDisableTracepoints", and "tracenz".
1721 (remote_query_supported): Use packet_support.
1722 (remote_open_1): Adjust.
1723 (extended_remote_attach_1): Use packet_support. Switch on the
1724 result of packet_ok instead of checking whether the packet ended
1726 (remote_vcont_resume): Use packet_support.
1727 (remote_resume, remote_stop_ns, fetch_register_using_p)
1728 (remote_prepare_to_store, store_register_using_P)
1729 (check_binary_download, remote_write_bytes): Use packet_support.
1730 (remote_vkill): Use packet_support. Switch on the result of
1731 packet_ok instead of checking whether the packet ended up
1733 (extended_remote_supports_disable_randomization): Use
1735 (extended_remote_run): Switch on the result of packet_ok instead
1736 of checking whether the packet ended up disabled.
1737 (remote_insert_breakpoint, remote_remove_breakpoint)
1738 (remote_insert_watchpoint, remote_remove_watchpoint)
1739 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1741 (remote_search_memory): Use packet_config_support.
1742 (remote_get_thread_local_address, remote_get_tib_address)
1743 (remote_hostio_send_command, remote_can_execute_reverse): Use
1745 (remote_supports_cond_tracepoints)
1746 (remote_supports_cond_breakpoints)
1747 (remote_supports_fast_tracepoints)
1748 (remote_supports_static_tracepoints)
1749 (remote_supports_install_in_trace)
1750 (remote_supports_enable_disable_tracepoint)
1751 (remote_supports_string_tracing)
1752 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1753 the packet config says the feature is enabled or disabled.
1754 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1755 (remote_get_trace_status): Use packet_support.
1756 (remote_set_disconnected_tracing): Adjust to check whether the
1757 feature is enabled with packet_support.
1758 (remote_set_trace_buffer_size, remote_use_agent)
1759 (remote_can_use_agent, remote_supports_btrace): Use
1761 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1762 Use packet_config_support.
1763 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1764 the packet config says the feature is enabled or disabled.
1765 (set_range_stepping): Use packet_support.
1767 2014-04-25 Tom Tromey <tromey@redhat.com>
1769 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1772 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1774 * NEWS: Mention support for C99 variable length arrays.
1776 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1778 * ada-lang.c (standard_exc): Expand introductory comment.
1780 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1781 Walfred Tedeschi <walfred.tedeschi@intel.com>
1783 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1785 (amd64_linux_read_description): Add code to handle AVX512 xstate
1786 mask and return respective tdesc.
1787 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1788 and features/i386/x32-avx512-linux.c.
1789 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1790 (amd64_linux_core_read_description): Add code to handle AVX512
1791 xstate mask and return respective tdesc.
1792 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1793 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1795 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1796 (tdesc_amd64_avx512_linux): New prototype.
1797 (tdesc_x32_avx512_linux): Likewise.
1798 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1799 features/i386/x32-avx512.c.
1800 (amd64_ymm_avx512_names): New register names for pseudo
1802 (amd64_ymmh_avx512_names): New register names for raw registers
1804 (amd64_k_names): New register names for K registers.
1805 (amd64_zmmh_names): New register names for ZMM raw registers.
1806 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1807 (amd64_xmm_avx512_names): New register names for XMM16-31
1809 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1811 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1812 if feature is present.
1813 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1814 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1815 (AMD64_NUM_REGS): Adjust to new number of registers.
1816 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1817 registers supplied via XSTATE by AVX512 registers.
1818 (i386_linux_read_description): Add case for AVX512.
1819 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1820 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1821 (i386_linux_core_read_description): Add case for AVX512.
1822 (i386_linux_init_abi): Install supported register note section
1824 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1826 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1827 registers to be number of zmm7h + 1.
1828 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1829 * i386-tdep.c: Include features/i386/i386-avx512.c.
1830 (i386_zmm_names): Add ZMM pseudo register names array.
1831 (i386_zmmh_names): Add ZMM raw register names array.
1832 (i386_k_names): Add K raw register names array.
1833 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1834 registers. AVX512 has 16 more ZMM registers than there are YMM
1836 (i386_zmmh_regnum_p): Add function to look up register number of
1838 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1839 (i386_k_regnum_p): Likewise for K raw registers.
1840 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1841 registers added by AVX512.
1842 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1843 registers added by AVX512.
1844 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1846 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1847 (i386_pseudo_register_name): Add ZMM pseudo registers.
1848 (i386_zmm_type): Construct and return vector registers type for ZMM
1850 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1851 ZMM0-31 pseudo registers and K registers.
1852 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1853 and YMM16-31 registers from register cache.
1854 (i386_pseudo_register_write): Add code to write K, ZMM and
1856 (i386_register_reggroup_p): Add code to include/exclude AVX512
1857 registers in/from respective register groups.
1858 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1859 registers if feature is present in xcr0.
1860 (i386_gdbarch_init): Add code to initialize AVX512 feature
1861 variables in tdep structure, wire in pseudo registers and call
1862 initialize_tdesc_i386_avx512.
1863 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1865 (i386_regnum): Add AVX512 registers.
1866 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1867 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1868 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1869 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1871 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1872 (i386_ymm_avx512_regnum_p): Likewise.
1873 (i386_k_regnum_p): Likewise.
1874 (i386_zmm_regnum_p): Likewise.
1875 (i386_zmmh_regnum_p): Likewise.
1876 * i387-tdep.c : Update year in copyright notice.
1877 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1879 (XSAVE_YMM_AVX512_ADDR): New macro.
1880 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1882 (XSAVE_XMM_AVX512_ADDR): New macro.
1883 (xsave_avx512_k_offset): New table for K register offsets in
1885 (XSAVE_AVX512_K_ADDR): New macro.
1886 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1888 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1889 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1891 (i387_collect_xsave): Add code to collect AVX512 registers from
1893 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1894 of XMM16-31 registers.
1895 (I387_NUM_K_REGS): New define for number of K registers.
1896 (I387_K0_REGNUM): New define for K0 register number.
1897 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1898 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1899 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1901 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1902 (I387_XMM16_REGNUM): New define for XMM16 register number.
1903 (I387_YMM0_REGNUM): New define for YMM0 register number.
1904 (I387_KEND_REGNUM): New define for last K register number.
1905 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1906 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1908 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1910 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1912 * features/Makefile: Add AVX512 related files.
1913 * features/i386/32bit-avx512.xml: New file.
1914 * features/i386/64bit-avx512.xml: Likewise.
1915 * features/i386/amd64-avx512-linux.c: Likewise.
1916 * features/i386/amd64-avx512-linux.xml: Likewise.
1917 * features/i386/amd64-avx512.c: Likewise.
1918 * features/i386/amd64-avx512.xml: Likewise.
1919 * features/i386/i386-avx512-linux.c: Likewise.
1920 * features/i386/i386-avx512-linux.xml: Likewise.
1921 * features/i386/i386-avx512.c: Likewise.
1922 * features/i386/i386-avx512.xml: Likewise.
1923 * features/i386/x32-avx512-linux.c: Likewise.
1924 * features/i386/x32-avx512-linux.xml: Likewise.
1925 * features/i386/x32-avx512.c: Likewise.
1926 * features/i386/x32-avx512.xml: Likewise.
1927 * regformats/i386/amd64-avx512-linux.dat: New file.
1928 * regformats/i386/amd64-avx512.dat: Likewise.
1929 * regformats/i386/i386-avx512-linux.dat: Likewise.
1930 * regformats/i386/i386-avx512.dat: Likewise.
1931 * regformats/i386/x32-avx512-linux.dat: Likewise.
1932 * regformats/i386/x32-avx512.dat: Likewise.
1933 * NEWS: Add note about new support for AVX512.
1936 2014-04-23 Pedro Alves <palves@redhat.com>
1938 * breakpoint.c (insert_bp_location): Tolerate errors if the
1939 breakpoint is set in a user-loaded objfile.
1940 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1941 location is marked shlib_disabled. If the breakpoint is set in a
1942 user-loaded objfile is a GDB-side memory breakpoint, validate it
1943 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1944 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1946 * mem-break.c (memory_validate_breakpoint): New function.
1947 * objfiles.c (userloaded_objfile_contains_address_p): New
1949 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1950 * target.h (memory_validate_breakpoint): New declaration.
1952 2014-04-23 Pedro Alves <palves@redhat.com>
1954 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1955 the breakpoint is set in a shared library, only suppress
1956 errors for software breakpoints, not hardware breakpoints.
1958 2014-04-22 Pedro Alves <palves@redhat.com>
1960 * infrun.c (schedlock_applies): New function, factored out from
1961 find_thread_needs_step_over.
1962 (find_thread_needs_step_over): Use it.
1963 (switch_back_to_stepped_thread): Always clear trap_expected if the
1964 step over is finished. Return early if scheduler locking applies.
1965 Look for the stepping thread and a potential step-over thread with
1967 (currently_stepping_or_nexting_callback): Delete.
1969 2014-04-22 Nick Clifton <nickc@redhat.com>
1971 * NEWS: Mention that ARM sim now supports tracing.
1973 2014-04-22 Yao Qi <yao@codesourcery.com>
1975 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1977 * tracefile.c (tracefile_fetch_registers): ... it. New
1979 * tracefile.h (tracefile_fetch_registers): Declare.
1980 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1981 tracefile_fetch_registers.
1983 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1986 * windows-nat.c (thread_rec): Don't display a warning when
1987 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1988 fails for any reason, set th->suspended to -1, so that we don't
1989 try to resume such a thread. Also, don't return NULL in these
1990 cases, to avoid completely ruin the session due to "PC register is
1991 not available" error.
1992 (do_windows_fetch_inferior_registers): Check errors in
1993 GetThreadContext call.
1994 (windows_continue): Accept an additional argument KILLED; if not
1995 zero, ignore errors in the SetThreadContext call, since the
1996 inferior was killed and is shutting down.
1997 (windows_resume, get_windows_debug_event)
1998 (windows_create_inferior, windows_mourn_inferior)
1999 (windows_kill_inferior): All callers of windows_continue changed
2000 to adjust to its new calling sequence.
2002 2014-04-19 Yao Qi <yao@codesourcery.com>
2004 * ctf.c (ctf_open): Call post_create_inferior.
2006 2014-04-19 Yao Qi <yao@codesourcery.com>
2008 * ctf.c (handle_id): New static variable.
2009 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2010 value. Get the declaration of event "register" and get length
2011 of field "contents".
2013 2014-04-19 Yao Qi <yao@codesourcery.com>
2015 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2017 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2019 * valops.c (oload_method_static): Remove unnecessary argument
2020 METHOD. Update all callers.
2022 2014-04-18 Pedro alves <palves@redhat.com>
2023 Tom Tromey <tromey@redhat.com>
2026 * frame.c (get_prev_frame_1): Rename to ...
2027 (get_prev_frame_always): ... this, and make extern. Adjust.
2028 (skip_artificial_frames): Use get_prev_frame_always.
2029 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2030 (get_frame_unwind_stop_reason): Adjust to rename.
2031 * frame.h (get_prev_frame_always): Declare.
2032 * inline-frame.c: Include frame.h.
2033 (inline_frame_this_id): Use get_prev_frame_always.
2035 2014-04-18 Tristan Gingold <gingold@adacore.com>
2037 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2038 code by using bfd_mach_o_get_base_address.
2040 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2042 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2043 (spu_ax_pseudo_register_collect): New function.
2044 (spu_ax_pseudo_register_push_stack): Likewise.
2045 (spu_dwarf_reg_to_regnum): Likewise.
2046 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2048 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2050 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2051 Replace FRAME argument with FRAME_ID.
2052 * gdbarch.c, gdbarch.h: Regenerate.
2053 * findvar.c (default_value_from_register): Add GDBARCH argument;
2054 replace FRAME by FRAME_ID. No longer call get_frame_id.
2055 (value_from_register): Update call to gdbarch_value_from_register.
2056 * value.h (default_value_from_register): Update prototype.
2057 * s390-linux-tdep.c (s390_value_from_register): Update interface
2058 and call to default_value_from_register.
2059 * spu-tdep.c (spu_value_from_register): Likewise.
2061 * findvar.c (address_from_register): Remove TYPE argument.
2062 Do not call value_from_register; use gdbarch_value_from_register
2063 with null_frame_id instead.
2064 * value.h (address_from_register): Update prototype.
2065 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2066 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2067 address_from_register interface change.
2069 2014-04-17 Yao Qi <yao@codesourcery.com>
2071 * gdbtypes.h: Update comments to link to types and macros'
2074 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2076 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2078 2014-04-16 Keith Seitz <keiths@redhat.com>
2081 * dwarf2read.c (skip_one_die): Check that all relative-offset
2082 sibling DIEs fall within range of the current reader's buffer.
2083 (read_partial_die): Likewise.
2085 2014-04-16 Keith Seitz <keiths@redhat.com>
2088 * cp-namespace.c (lookup_symbol_file): If the type name of
2089 `this' is NULL, return immediately.
2091 2014-04-14 Keith Seitz <keiths@redhat.com>
2094 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2095 from symbol_matches_domain in symtab.c. All local callers
2096 of symbol_matches_domain updated.
2097 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2098 search STRUCT_DOMAIN.
2099 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2100 independently. standard_lookup will do that automatically.
2101 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2102 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2103 (cp_lookup_symbol_in_namespace): Likewise.
2104 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2105 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2106 may return a STRUCT_DOMAIN match.
2107 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2108 * cp-support.c: Include language.h.
2109 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2111 * psymtab.c (match_partial_symbol): Compare the requested
2112 domain with the symbol's domain directly.
2113 (lookup_partial_symbol): Likewise.
2114 * symtab.c (lookup_symbol_in_language): Explain when/why
2115 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2116 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2117 appropriate languages.
2118 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2119 and moved to ada-lang.c
2120 (lookup_block_symbol): Explain that this function only returns
2121 symbol matching the requested DOMAIN.
2122 Compare the requested domain with the symbol's domain directly.
2123 (iterate_over_symbols): Compare the requested domain with the
2124 symbol's domain directly.
2125 * symtab.h (symbol_matches_domain): Remove.
2127 2014-04-14 Tom Tromey <tromey@redhat.com>
2130 * c-exp.y (type_aggregate_p): New function.
2131 (qualified_name, classify_inner_name): Use it.
2132 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2133 and TYPE_TARGET_TYPE of an enum type.
2134 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2136 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2137 handle TYPE_DECLARED_CLASS.
2138 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2140 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2141 * valops.c (enum_constant_from_type): New function.
2142 (value_aggregate_elt): Use it.
2143 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2146 2014-04-14 Tom Tromey <tromey@redhat.com>
2148 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2149 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2151 * value.h (value_aggregate_elt): Update.
2153 2014-04-14 Tom Tromey <tromey@redhat.com>
2155 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2157 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2159 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2160 (evaluate_subexp_standard): Pass noside argument.
2161 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2162 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2163 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2164 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2165 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2167 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2169 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2170 points to a constant blob.
2172 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2174 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2175 property and store it as the high bound and flag the range accordingly.
2176 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2177 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2178 * gdbtypes.h (enum range_flags): New enum.
2179 (struct range_bounds): Add flags member.
2181 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2183 * c-typeprint.c (c_type_print_varspec_suffix): Added
2184 check for not yet resolved high bound. If unresolved, print
2185 "variable length" string to the console instead of random
2188 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2190 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2192 (ada_template_to_fixed_record_type_1): Likewise.
2193 (ada_to_fixed_type_1): Likewise.
2194 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2195 (cp_print_value): Likewise.
2196 * d-valprint.c (dynamic_array_type): Likewise.
2197 * findvar.c (address_of_variable): Likewise.
2198 * jv-valprint.c (java_value_print): Likewise.
2199 * valops.c (value_ind): Likewise.
2200 * value.c (coerce_ref): Likewise.
2202 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2204 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2205 value and retrieve the dynamic type size.
2207 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2209 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2210 passed to sizeof is dynamic evaluate the argument to compute the length.
2212 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2213 Joel Brobecker <brobecker@adacore.com>
2215 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2216 (dwarf2_evaluate_property): New function.
2217 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2218 * dwarf2read.c (attr_to_dynamic_prop): New function.
2219 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2221 * gdbtypes.c: Include dwarf2loc.h.
2222 (is_dynamic_type): New function.
2223 (resolve_dynamic_type): New function.
2224 (resolve_dynamic_bounds): New function.
2225 (get_type_length): New function.
2226 (check_typedef): Use get_type_length to compute type length.
2227 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2228 (TYPE_LOW_BOUND_KIND): New macro.
2229 (is_dynamic_type): New function prototype.
2230 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2231 to resolve dynamic properties of the type. Update comment.
2232 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2234 2014-04-14 Richard Henderson <rth@redhat.com>
2236 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2238 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2239 Doug Evans <xdje42@gmail.com>
2241 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2242 dereference TYPE_CODE_REF values.
2244 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2246 Revert the following changes due to regressions:
2248 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2249 (dwarf2_evaluate_property): New function.
2250 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2251 * dwarf2read.c (attr_to_dynamic_prop): New function.
2252 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2254 * gdbtypes.c: Include dwarf2loc.h.
2255 (is_dynamic_type): New function.
2256 (resolve_dynamic_type): New function.
2257 (resolve_dynamic_bounds): New function.
2258 (get_type_length): New function.
2259 (check_typedef): Use get_type_length to compute type length.
2260 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2261 (TYPE_LOW_BOUND_KIND): New macro.
2262 (is_dynamic_type): New function prototype.
2263 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2264 to resolve dynamic properties of the type. Update comment.
2265 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2267 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2268 passed to sizeof is dynamic evaluate the argument to compute the length.
2270 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2271 value and retrieve the dynamic type size.
2273 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2274 (ada_template_to_fixed_record_type_1): Likewise.
2275 (ada_to_fixed_type_1): Likewise.
2276 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2277 (cp_print_value): Likewise.
2278 * d-valprint.c (dynamic_array_type): Likewise.
2279 * eval.c (evaluate_subexp_with_coercion): Likewise.
2280 * findvar.c (address_of_variable): Likewise.
2281 * jv-valprint.c (java_value_print): Likewise.
2282 * valops.c (value_ind): Likewise.
2283 * value.c (coerce_ref): Likewise.
2285 * c-typeprint.c (c_type_print_varspec_suffix): Added
2286 check for not yet resolved high bound. If unresolved, print
2287 "variable length" string to the console instead of random
2290 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2291 property and store it as the high bound and flag the range accordingly.
2292 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2293 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2294 * gdbtypes.h (enum range_flags): New enum.
2295 (struct range_bounds): Add flags member.
2297 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2298 points to a constant blob.
2300 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2301 (evaluate_subexp_standard): Pass noside argument.
2302 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2303 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2304 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2305 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2306 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2308 2014-04-11 Keith Seitz <keiths@redhat.com>
2311 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2312 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2315 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2317 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2318 (evaluate_subexp_standard): Pass noside argument.
2319 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2320 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2321 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2322 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2323 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2325 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2327 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2328 points to a constant blob.
2330 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2332 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2333 property and store it as the high bound and flag the range accordingly.
2334 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2335 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2336 * gdbtypes.h (enum range_flags): New enum.
2337 (struct range_bounds): Add flags member.
2339 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2341 * c-typeprint.c (c_type_print_varspec_suffix): Added
2342 check for not yet resolved high bound. If unresolved, print
2343 "variable length" string to the console instead of random
2346 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2348 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2349 (ada_template_to_fixed_record_type_1): Likewise.
2350 (ada_to_fixed_type_1): Likewise.
2351 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2352 (cp_print_value): Likewise.
2353 * d-valprint.c (dynamic_array_type): Likewise.
2354 * eval.c (evaluate_subexp_with_coercion): Likewise.
2355 * findvar.c (address_of_variable): Likewise.
2356 * jv-valprint.c (java_value_print): Likewise.
2357 * valops.c (value_ind): Likewise.
2358 * value.c (coerce_ref): Likewise.
2360 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2362 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2363 value and retrieve the dynamic type size.
2365 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2367 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2368 passed to sizeof is dynamic evaluate the argument to compute the length.
2370 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2372 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2373 (dwarf2_evaluate_property): New function.
2374 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2375 * dwarf2read.c (attr_to_dynamic_prop): New function.
2376 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2378 * gdbtypes.c: Include dwarf2loc.h.
2379 (is_dynamic_type): New function.
2380 (resolve_dynamic_type): New function.
2381 (resolve_dynamic_bounds): New function.
2382 (get_type_length): New function.
2383 (check_typedef): Use get_type_length to compute type length.
2384 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2385 (TYPE_LOW_BOUND_KIND): New macro.
2386 (is_dynamic_type): New function prototype.
2387 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2388 to resolve dynamic properties of the type. Update comment.
2389 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2391 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2393 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2394 declaring high/low bounds and change uses accordingly. Call
2395 create_range_type instead of create_static_range_type.
2396 * gdbtypes.c (create_range_type): New function.
2397 (create_range_type): Convert bounds into struct bound_prop and pass
2398 them to create_range_type.
2399 * gdbtypes.h (struct bound_prop): New struct.
2400 (create_range_type): New function prototype.
2401 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2402 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2403 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2405 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2407 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2409 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2410 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2411 * ada-lang.c: All uses of create_range_type updated.
2412 * coffread.c: All uses of create_range_type updated.
2413 * dwarf2read.c: All uses of create_range_type updated.
2414 * f-exp.y: All uses of create_range_type updated.
2415 * m2-valprint.c: All uses of create_range_type updated.
2416 * mdebugread.c: All uses of create_range_type updated.
2417 * stabsread.c: All uses of create_range_type updated.
2418 * valops.c: All uses of create_range_type updated.
2419 * valprint.c: All uses of create_range_type updated.
2421 2014-04-10 Pedro Alves <palves@redhat.com>
2423 * breakpoint.c (single_step_breakpoints)
2424 (single_step_gdbarch): Move up in the file.
2425 (one_breakpoint_xfer_memory): New function, factored out from ...
2426 (breakpoint_xfer_memory): ... here. Also process single-step
2429 2014-04-09 Tristan Gingold <gingold@adacore.com>
2431 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2433 (darwin_decode_exception_message): Free port only after use.
2435 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2437 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2438 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2439 when setting the size of call_length.
2441 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2443 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2444 dereference TYPE_CODE_REF values.
2446 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2448 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2449 end of warning message.
2451 2014-04-03 Doug Evans <dje@google.com>
2453 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2454 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2456 2014-04-02 Alan Modra <amodra@gmail.com>
2458 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2459 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2460 (struct symbol_file_add_from_memory_args): Add size field.
2461 (find_vdso_size): New function.
2462 (add_vsyscall_page): Attempt to find vdso size.
2464 2014-04-01 Doug Evans <dje@google.com>
2466 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2468 2014-04-01 Tristan Gingold <gingold@adacore.com>
2470 * darwin-nat.c (darwin_encode_reply): Add prototype.
2471 (darwin_decode_exception_message): Reply to unknown inferiors.
2472 (darwin_decode_message): Handle message by id. Ignore message
2473 to unknown inferior.
2474 (darwin_wait): Discard unknown messages, add debug trace.
2476 2014-03-31 Doug Evans <dje@google.com>
2478 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2481 2014-03-31 Doug Evans <dje@google.com>
2483 New option "set print symbol-loading".
2485 * solib.c (solib_read_symbols): Only print symbol loading messages
2487 (solib_add): If symbol loading is in "brief" mode, notify user
2488 symbols are being loaded.
2489 (reload_shared_libraries_1): Ditto.
2490 * symfile.c (print_symbol_loading_off): New static global.
2491 (print_symbol_loading_brief): New static global.
2492 (print_symbol_loading_full): New static global.
2493 (print_symbol_loading_enums): New static global.
2494 (print_symbol_loading): New static global.
2495 (print_symbol_loading_p): New function.
2496 (symbol_file_add_with_addrs): Only print symbol loading messages
2498 (_initialize_symfile): Register "print symbol-loading" set/show
2500 * symfile.h (print_symbol_loading_p): Declare.
2502 2014-03-30 Doug Evans <xdje42@gmail.com>
2504 * infrun.c (set_last_target_status): New function.
2505 (handle_inferior_event): Call it.
2507 2014-03-30 Doug Evans <xdje42@gmail.com>
2509 * inferior.h (enum stop_kind): Improve comment.
2511 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2513 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2514 a reference, strip the reference layer before calling
2515 the lang_ops value_has_mutated callback.
2517 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2519 Remove some globals from our parser.
2520 * language.c (unk_lang_parser): Add "struct parser_state"
2522 * language.h (struct language_defn) <la_parser>: Likewise.
2523 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2524 (initialize_expout): Add "struct parser_state" argument.
2525 Rewrite function to use the parser state.
2526 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2527 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2528 write_exp_elt_longcst, write_exp_elt_dblcst,
2529 write_exp_elt_decfloatcst, write_exp_elt_type,
2530 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2531 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2532 write_dollar_variable): Likewise.
2533 (parse_exp_in_context_1): Use parser state.
2534 (insert_type_address_space): Add "struct parser_state" argument.
2536 (increase_expout_size): New function.
2537 * parser-defs.h: Forward declare "struct language_defn" and
2538 "struct parser_state".
2539 (expout, expout_size, expout_ptr): Remove extern declarations.
2540 (parse_gdbarch, parse_language): Rewrite macro declarations to
2541 accept the parser state.
2542 (struct parser_state): New struct.
2543 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2544 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2545 write_exp_elt_decfloatcst, write_exp_elt_type,
2546 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2547 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2548 write_exp_msymbol, write_dollar_variable,
2549 mark_struct_expression, insert_type_address_space): Add "struct
2550 parser_state" argument.
2551 (increase_expout_size): New function.
2552 * utils.c (do_clear_parser_state): New function.
2553 (make_cleanup_clear_parser_state): Likewise.
2554 * utils.h (make_cleanup_clear_parser_state): New function
2556 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2557 Update calls to write_exp* in order to pass the parser state.
2558 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2559 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2560 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2561 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2562 * stap-probe.c (stap_parse_register_operand): Likewise.
2563 (stap_parse_single_operand): Likewise.
2564 (stap_parse_argument_1): Likewise.
2565 (stap_parse_argument): Use parser state.
2566 * stap-probe.h: Include "parser-defs.h".
2567 (struct stap_parse_info) <pstate>: New field.
2568 * c-exp.y (parse_type): Rewrite to use parser state.
2569 (yyparse): Redefine to c_parse_internal.
2570 (pstate): New global variable.
2571 (parse_number): Add "struct parser_state" argument.
2572 (write_destructor_name): Likewise.
2573 (type_exp): Update calls to write_exp* and similars in order to
2575 (exp1, exp, variable, qualified_name, space_identifier,
2576 typename, typebase): Likewise.
2577 (write_destructor_name, parse_number, lex_one_token,
2578 classify_name, classify_inner_name, c_parse): Add "struct
2579 parser_state" argument. Update function to use parser state.
2580 * c-lang.h: Forward declare "struct parser_state".
2581 (c_parse): Add "struct parser_state" argument.
2582 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2583 (yyparse): Redefine macro to ada_parse_internal.
2584 (pstate): New variable.
2585 (write_int, write_object_renaming, write_var_or_type,
2586 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2587 type_int, type_long, type_long_long, type_float, type_double,
2588 type_long_double, type_char, type_boolean, type_system_address):
2589 Add "struct parser_state" argument.
2590 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2591 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2592 var_or_type, aggregate, aggregate_component_list,
2593 positional_list, others, component_group,
2594 component_associations): Update calls to write_exp* and similar
2595 functions in order to use parser state.
2596 (ada_parse, write_var_from_sym, write_int,
2597 write_exp_op_with_string, write_object_renaming,
2598 find_primitive_type, write_selectors, write_ambiguous_var,
2599 write_var_or_type, write_name_assoc, type_int, type_long,
2600 type_long_long, type_float, type_double, type_long_double,
2601 type_char, type_boolean, type_system_address): Add "struct
2602 parser_state" argument. Adjust function to use parser state.
2603 * ada-lang.c (parse): Likewise.
2604 * ada-lang.h: Forward declare "struct parser_state".
2605 (ada_parse): Add "struct parser_state" argument.
2606 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2607 calls to both functions.
2608 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2610 (yyparse): Redefine macro to f_parse_internal.
2611 (pstate): New variable.
2612 (parse_number): Add "struct parser_state" argument.
2613 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2614 and similars in order to use parser state.
2615 (parse_number): Adjust code to use parser state.
2617 (f_parse): New function.
2618 * f-lang.h: Forward declare "struct parser_state".
2619 (f_parse): Add "struct parser_state" argument.
2620 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2622 (yyparse): Redefine macro for java_parse_internal.
2623 (pstate): New variable.
2624 (push_expression_name, push_expression_name, insert_exp): Add
2625 "struct parser_state" argument.
2626 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2627 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2628 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2629 PostIncrementExpression, PostDecrementExpression,
2630 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2631 UnaryExpressionNotPlusMinus, CastExpression,
2632 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2633 RelationalExpression, EqualityExpression, AndExpression,
2634 ExclusiveOrExpression, InclusiveOrExpression,
2635 ConditionalAndExpression, ConditionalOrExpression,
2636 ConditionalExpression, Assignment, LeftHandSide): Update
2637 calls to write_exp* and similars in order to use parser state.
2638 (parse_number): Ajust code to use parser state.
2640 (java_parse): New function.
2641 (push_variable): Add "struct parser_state" argument. Adjust
2642 code to user parser state.
2643 (push_fieldnames, push_qualified_expression_name,
2644 push_expression_name, insert_exp): Likewise.
2645 * jv-lang.h: Forward declare "struct parser_state".
2646 (java_parse): Add "struct parser_state" argument.
2647 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2649 (yyparse): Redefine macro to m2_parse_internal.
2650 (pstate): New variable.
2651 (type_exp, exp, fblock, variable, type): Update calls to
2652 write_exp* and similars to use parser state.
2654 (m2_parse): New function.
2655 * m2-lang.h: Forward declare "struct parser_state".
2656 (m2_parse): Add "struct parser_state" argument.
2657 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2658 * objc-lang.h: Forward declare "struct parser_state".
2659 (end_msglist): Add "struct parser_state" argument.
2660 * p-exp.y (parse_type): Rewrite macro to use parser state.
2661 (yyparse): Redefine macro to pascal_parse_internal.
2662 (pstate): New variable.
2663 (parse_number): Add "struct parser_state" argument.
2664 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2665 write_exp* and similars in order to use parser state.
2666 (parse_number, yylex): Adjust code to use parser state.
2667 (pascal_parse): New function.
2668 * p-lang.h: Forward declare "struct parser_state".
2669 (pascal_parse): Add "struct parser_state" argument.
2670 * go-exp.y (parse_type): Rewrite macro to use parser state.
2671 (yyparse): Redefine macro to go_parse_internal.
2672 (pstate): New variable.
2673 (parse_number): Add "struct parser_state" argument.
2674 (type_exp, exp1, exp, variable, type): Update calls to
2675 write_exp* and similars in order to use parser state.
2676 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2677 to use parser state.
2678 (go_parse): Likewise.
2679 * go-lang.h: Forward declare "struct parser_state".
2680 (go_parse): Add "struct parser_state" argument.
2682 2014-03-27 Doug Evans <dje@google.com>
2684 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2686 2014-03-27 Doug Evans <dje@google.com>
2688 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2689 Remove argument abbrev_section. All callers updated.
2691 2014-03-27 Doug Evans <dje@google.com>
2693 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2694 addr_base, ranges_base.
2696 2014-03-26 Keith Seitz <keiths@redhat.com>
2698 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2699 types, not VAR_DOMAIN.
2701 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2703 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2705 * features/nios2-linux.c: Regenerated.
2706 * features/nios2.c: Regenerated.
2708 2014-03-25 Pedro Alves <palves@redhat.com>
2710 * cli/cli-script.c (script_from_file): Force the interpreter to
2713 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2715 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2716 small stack allocation.
2718 2014-03-24 Tristan Gingold <gingold@adacore.com>
2720 * darwin-nat.c (exc_server): Remove unused prototype.
2721 (darwin_dump_message): Correctly display data on x86_64.
2722 (darwin_encode_reply): Fix style.
2723 Add comments and fix indentation.
2725 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2727 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2729 2014-03-22 Doug Evans <xdje42@gmail.com>
2731 * infcmd.c: Whitespace fixes.
2732 (interrupt_command): Merge two function comments into one.
2734 2014-03-22 Doug Evans <xdje42@gmail.com>
2736 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2739 2014-03-22 Yao Qi <yao@codesourcery.com>
2741 * remote.c (target_read_live_memory): Remove.
2742 (memory_xfer_live_readonly_partial): Rename it to
2743 remote_xfer_live_readonly_partial. Remove argument 'object'.
2744 All callers updated. Call remote_read_bytes_1
2745 instead of target_read_live_memory.
2746 * tracepoint.c (set_traceframe_number): Remove.
2747 (make_cleanup_restore_traceframe_number): Likewise .
2748 * tracepoint.h (set_traceframe_number): Remove declaration.
2749 (make_cleanup_restore_traceframe_number): Likewise.
2751 2014-03-22 Yao Qi <yao@codesourcery.com>
2753 * remote.c (remote_read_bytes): Move code on reading from the
2755 (remote_read_bytes_1): ... here. New function.
2757 2014-03-22 Yao Qi <yao@codesourcery.com>
2759 * ctf.c (ctf_xfer_partial): Check the return value of
2760 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2761 return TARGET_XFER_UNAVAILABLE.
2762 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2763 * target.c (target_read_live_memory): Move it to remote.c.
2764 (memory_xfer_live_readonly_partial): Likewise.
2765 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2766 * remote.c (target_read_live_memory): Moved from target.c.
2767 (memory_xfer_live_readonly_partial): Likewise.
2768 (remote_read_bytes): Factored out from
2769 memory_xfer_partial_1.
2771 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2773 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2776 2014-03-21 Pedro Alves <palves@redhat.com>
2778 * infrun.c (normal_stop): Extend comment.
2780 2014-03-21 Hui Zhu <hui@codesourcery.com>
2781 Pedro Alves <palves@redhat.com>
2783 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2785 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2786 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2787 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2789 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2791 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2792 `z' formatted output modifier.
2794 2014-03-20 Tom Tromey <tromey@redhat.com>
2795 Sergio Durigan Junior <sergiodj@redhat.com>
2797 * probe.c (parse_probes): Turn assert into an ordinary error.
2798 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2799 exceptions when parsing probes. Rearrange the code for clarity.
2801 2014-03-20 Tom Tromey <tromey@redhat.com>
2804 * top.c (execute_command): Only dispatch events if the command
2807 2014-03-20 Tom Tromey <tromey@redhat.com>
2810 * infcall.c: Include event-top.h.
2811 (run_inferior_call): Call async_disable_stdin if needed.
2813 2014-03-20 Pedro Alves <palves@redhat.com>
2815 * infrun.c (prepare_to_proceed): Delete.
2816 (thread_still_needs_step_over): New function.
2817 (find_thread_needs_step_over): New function.
2818 (proceed): If the current thread needs a step-over, set its
2819 steping_over_breakpoint flag. Adjust to use
2820 find_thread_needs_step_over instead of prepare_to_proceed.
2821 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2822 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2824 (switch_back_to_stepped_thread): Step over breakpoints of all
2825 threads not the stepping thread, before switching back to the
2828 2014-03-20 Pedro Alves <palves@redhat.com>
2830 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2832 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2833 * infrun.c (saved_singlestep_ptid)
2834 (stepping_past_singlestep_breakpoint): Delete.
2835 (resume): Remove stepping_past_singlestep_breakpoint handling.
2836 (proceed): Store the prev_pc of the stepping thread too.
2837 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2839 (enum infwait_states): Delete infwait_thread_hop_state.
2840 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2842 (handle_inferior_event): Adjust.
2843 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2844 handling and the thread-hop code. Before removing single-step
2845 breakpoints, check whether the thread hit a single-step breakpoint
2846 of another thread. If it did, the trap is not a random signal.
2847 (switch_back_to_stepped_thread): If the event thread hit a
2848 single-step breakpoint, unblock it before switching to the
2849 stepping thread. Handle the case of the stepped thread having
2851 (keep_going): Handle the case of the current thread moving past a
2852 single-step breakpoint.
2854 2014-03-20 Pedro Alves <palves@redhat.com>
2857 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2858 are being stepped over.
2859 (breakpoint_address_match): Make extern.
2860 * breakpoint.h (breakpoint_address_match): New declaration.
2861 * inferior.h (stepping_past_instruction_at): New declaration.
2862 * infrun.c (struct step_over_info): New type.
2863 (step_over_info): New global.
2864 (set_step_over_info, clear_step_over_info)
2865 (stepping_past_instruction_at): New functions.
2866 (handle_inferior_event): Clear the step-over info when
2867 trap_expected is cleared.
2868 (resume): Remove now stale comment.
2869 (clear_proceed_status): Clear step-over info.
2870 (proceed): Adjust step-over handling to set or clear the step-over
2871 info instead of removing all breakpoints.
2872 (handle_signal_stop): When setting up a thread-hop, don't remove
2874 (stop_stepping): Clear step-over info.
2875 (keep_going): Adjust step-over handling to set or clear step-over
2876 info and then always inserting breakpoints, instead of removing
2877 all breakpoints when stepping over one.
2879 2014-03-20 Pedro Alves <palves@redhat.com>
2881 * infrun.c (previous_inferior_ptid): Adjust comment.
2882 (deferred_step_ptid): Delete.
2883 (infrun_thread_ptid_changed, prepare_to_proceed)
2884 (init_wait_for_inferior): Adjust.
2885 (handle_signal_stop): Delete deferred_step_ptid handling.
2887 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2890 * defs.h (sync_quit_force_run): New declaration.
2891 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2892 * event-top.c (async_sigterm_handler): New declaration.
2893 (async_sigterm_token): New variable.
2894 (async_init_signals): Create also async_sigterm_token.
2895 (async_sigterm_handler): New function.
2896 (sync_quit_force_run): New variable.
2897 (handle_sigterm): Replace quit_force call by other calls.
2898 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2900 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2902 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2903 offset into SPE pseudo registers.
2905 2014-03-18 Pedro Alves <palves@redhat.com>
2908 * inferior.h (print_stop_event): Declare.
2909 * infrun.c (print_stop_event): New, factored out from ...
2910 (normal_stop): ... this.
2911 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2912 of bpstat_print/print_stack_frame.
2914 2014-03-17 Tom Tromey <tromey@redhat.com>
2916 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2918 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2920 * ada-lang.c (decode_constrained_packed_array): Perform a
2921 minimal coercion for reference with coerce_ref instead of
2924 2014-03-17 Tristan Gingold <gingold@adacore.com>
2926 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2927 (darwin_solib_create_inferior_hook): Emit a warning if version
2930 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2932 * python/py-value.c (get_field_flag): Cast flag_name argument to
2933 PyObject_GetAttrString to support Python 2.4.
2935 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2937 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2938 (Global Maintainers): Remove Jan Kratochvil.
2940 2014-03-14 Pedro Alves <palves@redhat.com>
2942 * inferior.h (terminal_ours_for_output): Rename to ...
2943 (child_terminal_ours_for_output): ... this.
2944 (terminal_save_ours): Rename to ...
2945 (child_terminal_save_ours): ... this.
2946 (terminal_ours): Rename to ...
2947 (child_terminal_ours): ... this.
2948 (terminal_inferior): Rename to ...
2949 (child_terminal_inferior): ... this.
2950 (terminal_init_inferior): Rename to ...
2951 (child_terminal_init_inferior): ... this.
2952 (terminal_init_inferior_with_pgrp): Rename to ...
2953 (child_terminal_init_inferior_with_pgrp): ... this.
2954 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2955 (child_terminal_init_with_pgrp): ... this.
2956 (terminal_save_ours): Rename to ...
2957 (child_terminal_save_ours): ... this.
2958 (terminal_init_inferior): Rename to ...
2959 (child_terminal_init): ... this. Adjust.
2960 (terminal_inferior): Rename to ...
2961 (child_terminal_inferior): ... this.
2962 (terminal_ours_for_output): Rename to ...
2963 (child_terminal_ours_for_output): ... this. Adjust.
2964 (terminal_ours): Rename to ...
2965 (child_terminal_ours): ... this.
2966 (terminal_ours_1): Rename to ...
2967 (child_terminal_ours_1): ... this. Adjust.
2968 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2969 * windows-nat.c (do_initial_windows_stuff): Adjust.
2970 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2971 (gnu_terminal_init): ... this. Adjust.
2972 (gnu_target): Adjust.
2973 * inf-child.c (inf_child_target): Adjust.
2975 2014-03-13 Doug Evans <xdje42@gmail.com>
2978 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2981 2014-03-13 Doug Evans <xdje42@gmail.com>
2983 * value.c (record_latest_value): Call release_value_or_incref
2984 instead of release_value.
2986 2014-03-13 Pedro Alves <palves@redhat.com>
2988 * procfs.c (procfs_target): Don't override to_shortname,
2989 to_longname or to_doc.
2991 2014-03-13 Pedro Alves <palves@redhat.com>
2993 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2994 Unix in user visible strings.
2996 2014-03-12 Stan Shebs <stan@codesourcery.com>
2998 * gdbtypes.h: Annotate comments for Doxygen, add a page
2999 block comment with some general info.
3001 2014-03-12 Pedro Alves <palves@redhat.com>
3003 * infcmd.c (prepare_execution_command): New function, factored out
3004 from several execution commands.
3005 (run_command_1, continue_command, step_1, jump_command)
3006 (signal_command, until_command, advance_command, finish_command)
3007 (attach_command): Use prepare_execution_command.
3009 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3011 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3014 (struct arm_linux_thread_points): Removed.
3015 (struct arm_linux_process_info): New.
3016 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3017 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3018 (arm_linux_find_breakpoints_by_tid): Removed.
3019 (struct arch_lwp_info): New.
3020 (arm_linux_find_process_pid): New functions.
3021 (arm_linux_add_process): New functions.
3022 (arm_linux_process_info_get): New functions.
3023 (arm_linux_forget_process): New function.
3024 (arm_linux_get_debug_reg_state): New function.
3025 (struct update_registers_data): New.
3026 (update_registers_callback): New function.
3027 (arm_linux_insert_hw_breakpoint1): Updated.
3028 (arm_linux_remove_hw_breakpoint1): Updated.
3029 (arm_linux_insert_hw_breakpoint): Updated.
3030 (arm_linux_remove_hw_breakpoint): Updated.
3031 (arm_linux_insert_watchpoint): Updated.
3032 (arm_linux_remove_watchpoint): Updated.
3033 (arm_linux_new_thread): Updated.
3034 (arm_linux_prepare_to_resume): New function.
3035 (arm_linux_new_fork): New function.
3036 (_initialize_arm_linux_nat): Updated.
3038 2014-03-12 Pedro Alves <palves@redhat.com>
3040 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3042 2014-03-12 Tom Tromey <tromey@redhat.com>
3044 * inf-child.c (return_zero): New function.
3045 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3046 * aix-thread.c (aix_thread_inferior_created): New function.
3047 (aix_thread_attach): Remove.
3048 (init_aix_thread_ops): Don't set to_attach.
3049 (_initialize_aix_thread): Register inferior_created observer.
3050 * corelow.c (init_core_ops): Don't set to_attach or
3052 * exec.c (init_exec_ops): Don't set to_attach or
3054 * infcmd.c (run_command_1): Use find_run_target. Make direct
3056 (attach_command): Use find_attach_target. Make direct target
3058 * record-btrace.c (init_record_btrace_ops): Don't set
3060 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3062 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3063 set to_create_inferior.
3064 * target.c (complete_target_initialization): Add assertion.
3065 (target_create_inferior): Remove.
3066 (find_default_attach, find_default_create_inferior): Remove.
3067 (find_attach_target, find_run_target): New functions.
3068 (find_default_is_async_p, find_default_can_async_p)
3069 (target_supports_non_stop, target_attach): Remove.
3070 (init_dummy_target): Don't set to_create_inferior or
3071 to_supports_non_stop.
3072 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3073 TARGET_DEFAULT_FUNC.
3074 <to_create_inferior>: Add comment.
3075 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3076 TARGET_DEFAULT_RETURN.
3077 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3078 (find_attach_target, find_run_target): Declare.
3079 (target_create_inferior): Remove.
3080 (target_has_execution_1): Update comment.
3081 (target_supports_non_stop): Remove.
3082 * target-delegates.c: Rebuild.
3084 2014-03-12 Pedro Alves <palves@redhat.com>
3086 * inf-child.h: Update comment to not mention Unix.
3088 2014-03-12 Pedro Alves <palves@redhat.com>
3090 * inf-child.c: Update top comment to not mention Unix. Add
3091 generic comment describing how this target is meant to be used.
3092 (inf_child_post_attach, inf_child_post_startup_inferior)
3093 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3096 2014-03-12 Pedro Alves <palves@redhat.com>
3098 * nto-procfs.c: Include inf-child.h.
3099 (procfs_ops): Delete global.
3100 (procfs_can_run): Delete method.
3101 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3102 target pointer instead of referencing procfs_ops.
3103 (procfs_prepare_to_store): Delete.
3104 (init_procfs_ops): Delete function.
3105 (procfs_target): New function, based on init_procfs_ops, but
3106 inherit inf_child_target.
3107 (_initialize_procfs): Use procfs_target.
3109 2014-03-12 Pedro Alves <palves@redhat.com>
3111 * windows-nat.c: Include inf-child.h.
3112 (windows_ops): Delete global.
3113 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3115 (init_windows_ops): Delete function.
3116 (windows_target): New function, based on init_windows_ops, but
3117 inherit inf_child_target.
3118 (_initialize_windows_nat): Use windows_target. Install x86
3119 specific target methods here.
3121 2014-03-10 Doug Evans <xdje42@gmail.com>
3123 * guile/guile.c (call_initialize_gdb_module): New function.
3124 (initialize_guile): Replace call to scm_init_guile with call to
3127 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3129 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3130 in call to TYPE_CODE macro.
3132 2014-03-10 Jerome Guitton <guitton@adacore.com>
3134 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3135 Resolve tagged types to full view.
3137 2014-03-10 Hui Zhu <hui@codesourcery.com>
3139 * target.h (target_insert_breakpoint): Remove "hardware" from its
3142 2014-03-07 Doug Evans <dje@google.com>
3144 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3146 2014-03-07 Doug Evans <dje@google.com>
3148 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3149 Remove unused local comp_dir_attr. Assert exactly one of
3150 stub_comp_unit_die, stub_comp_dir is non-NULL.
3152 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3154 * target.h (complete_target_initialization, add_target):
3157 2014-03-07 Pedro Alves <palves@redhat.com>
3159 * go32-nat.c: Include inf-child.h.
3160 (go32_ops): Delete global.
3161 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3163 (go32_create_inferior): Push the passed in target pointer instead
3164 of referencing go32_ops.
3165 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3166 (go32_target): New function, based on init_go32_ops, but inherit
3168 (_initialize_go32_nat): Use go32_target. Move parts of
3171 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3173 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3174 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3175 SYMBOL_VALUE_ADDRESS.
3176 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3178 2014-03-06 Yao Qi <yao@codesourcery.com>
3180 * breakpoint.c (get_tracepoint_by_number): Remove argument
3181 optional_p. All callers updated. Adjust comments. Update
3183 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3185 2014-03-06 Yao Qi <yao@codesourcery.com>
3187 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3188 early if get_number returns zero. Use 'p' instead of 'args'.
3190 2014-03-06 Yao Qi <yao@codesourcery.com>
3192 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3195 2014-03-06 Yao Qi <yao@codesourcery.com>
3197 PR breakpoints/16508
3198 * tracepoint.c (check_trace_running): New function.
3199 (trace_find_command): Move code to check_trace_running and
3200 call check_trace_running.
3201 (trace_find_pc_command): Likewise.
3202 (trace_find_tracepoint_command): Likewise.
3203 (trace_find_line_command): Likewise.
3204 (trace_find_range_command): Likewise.
3205 * tracepoint.h (check_trace_running): Likewise.
3206 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3208 2014-03-06 Yao Qi <yao@codesourcery.com>
3210 * target.h (struct target_ops) <to_traceframe_info>: Use
3211 TARGET_DEFAULT_NORETURN (tcomplain ()).
3212 * target-delegates.c: Regenerated.
3214 2014-03-05 Pedro Alves <palves@redhat.com>
3217 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3218 void. Update comment.
3219 (dcache_xfer_memory): Delete.
3220 (dcache_read_memory_partial): New, based on the read bits of
3222 (dcache_update): Add status parameter. Use ULONGEST for len, and
3223 adjust. Discard cache lines if the reason for the update was
3225 * dcache.h (dcache_xfer_memory): Delete declaration.
3226 (dcache_read_memory_partial): New declaration.
3227 (dcache_update): Update prototype.
3228 * target.c (raw_memory_xfer_partial): Update the dcache here.
3229 (memory_xfer_partial_1): Don't handle dcache writes here.
3231 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3233 * remote-sim.c (gdbsim_load): Add const to prog.
3235 2014-03-03 Tom Tromey <tromey@redhat.com>
3237 * elfread.c (probe_key): Change to bfd_data.
3238 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3239 now per-BFD, not per-objfile.
3240 * stap-probe.c (stap_probe_destroy): Update comment.
3241 (handle_stap_probe): Allocate on the per-BFD obstack.
3243 2014-03-03 Tom Tromey <tromey@redhat.com>
3245 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3246 * breakpoint.c (create_longjmp_master_breakpoint): Use
3248 (add_location_to_breakpoint, bkpt_probe_insert_location)
3249 (bkpt_probe_remove_location): Update.
3250 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3251 * elfread.c (elf_symfile_relocate_probe): Remove.
3252 (elf_probe_fns): Update.
3253 (insert_exception_resume_breakpoint): Change type of "probe"
3254 parameter to bound_probe.
3255 (check_exception_resume): Update.
3256 * objfiles.c (objfile_relocate1): Don't relocate probes.
3257 * probe.c (bound_probe_s): New typedef.
3258 (parse_probes): Use get_probe_address. Set sal's objfile.
3259 (find_probe_by_pc): Return a bound_probe.
3260 (collect_probes): Return a VEC(bound_probe_s).
3261 (compare_probes): Update.
3262 (gen_ui_out_table_header_info): Change type of "probes"
3264 (info_probes_for_ops): Update.
3265 (get_probe_address): New function.
3266 (probe_safe_evaluate_at_pc): Update.
3267 * probe.h (struct probe_ops) <get_probe_address>: New field.
3268 <set_semaphore, clear_semaphore>: Add objfile parameter.
3269 (struct probe) <objfile>: Remove field.
3271 <address>: Update comment.
3272 (struct bound_probe): New.
3273 (find_probe_by_pc): Return a bound_probe.
3274 (get_probe_address): Declare.
3275 * solib-svr4.c (struct probe_and_action) <address>: New field.
3276 (hash_probe_and_action, equal_probe_and_action): Update.
3277 (register_solib_event_probe): Add address parameter.
3278 (solib_event_probe_at): Update.
3279 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3281 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3282 (stap_get_probe_address): New function.
3283 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3284 (compile_probe_arg): Update.
3285 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3287 (handle_stap_probe): Don't relocate the probe.
3288 (stap_relocate): Remove.
3289 (stap_gen_info_probes_table_values): Update.
3290 (stap_probe_ops): Remove stap_relocate.
3291 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3292 (debug_sym_probe_fns): Update.
3293 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3294 * symtab.c (init_sal): Use memset.
3295 * symtab.h (struct symtab_and_line) <objfile>: New field.
3296 * tracepoint.c (start_tracing, stop_tracing): Update.
3298 2014-03-03 Tom Tromey <tromey@redhat.com>
3300 * probe.h (parse_probes, find_probe_by_pc)
3301 (find_probes_in_objfile): Fix comments.
3303 2014-03-02 Doug Evans <xdje42@gmail.com>
3305 * infrun.c (handle_signal_stop): Replace test for
3306 TARGET_WAITKIND_STOPPED with an assert.
3308 2014-03-02 Doug Evans <xdje42@gmail.com>
3310 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3312 2014-03-02 Doug Evans <xdje42@gmail.com>
3314 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3316 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3318 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3320 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3322 * i386obsd-nat.c: Include "obsd-nat.h".
3323 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3325 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3327 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3329 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3331 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3333 * mips64obsd-nat.c: Include "obsd-nath".
3334 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3336 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3338 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3340 * amd64obsd-nat.c: Include "obsd-nat,h.
3341 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3343 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3345 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3347 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3348 (find_overload_match): Update call to find_oload_champ.
3349 (find_oload_champ_namespace_loop): Likewise
3351 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3353 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3355 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3356 * config/sparc/obsd64.mh: New file.
3357 * sparc64obsd-nat.c: New file.
3359 * obsd-nat.h: New file.
3360 * obsd-nat.c: New file.
3361 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3362 (ALLDEPFILES): Add obsd-nat.c.
3364 2014-02-28 Tom Tromey <tromey@redhat.com>
3366 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3367 * cli-out.h (cli_ui_out_impl): Now const.
3368 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3369 * ui-out.c (struct ui_out) <impl>: Now const.
3370 (default_ui_out_impl): Now const.
3371 (ui_out_new): Make 'impl' parameter const.
3372 * ui-out.h (ui_out_new): Update.
3374 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3376 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3378 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3380 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3382 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 Additional PR 8882 fix.
3385 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3387 2014-02-27 Pedro Alves <palves@redhat.com>
3389 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3392 2014-02-27 Pedro Alves <palves@redhat.com>
3395 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3396 * nat/linux-waitpid.c: Include string.h.
3397 (status_to_str): Moved here and made extern.
3398 * nat/linux-waitpid.h (status_to_str): New declaration.
3400 2014-02-27 Hui Zhu <hui@codesourcery.com>
3403 * infrun.c (ptid_match): Move ...
3404 * common/ptid.c (ptid_match): ... here.
3405 * inferior.h (ptid_match): Move ...
3406 * common/ptid.h (ptid_match): ... here.
3408 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3410 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3411 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3414 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3416 * obsd-tdep.c (obsd_auxv_parse): New function.
3417 (obsd_init_abi): Set auxv_parse.
3419 * gdbarch.sh (auxv_parse): New.
3420 * gdbarch.h: Regenerated.
3421 * gdbarch.c: Regenerated.
3422 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3424 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3426 * guile/scm-value.c (gdbscm_history_append_x): New function.
3427 (value_functions): Add it.
3429 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3431 * dwarf2read.c (attr_value_as_address): New function.
3432 (dwarf2_find_base_address, read_call_site_scope): Use
3433 attr_value_as_address in place of DW_ADDR.
3434 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3435 the low and high addresses. Slight rework of the handling
3436 of the high pc being a constant form, and limit it to
3437 DWARF verson 4 or higher.
3438 (dwarf2_record_block_ranges): Likewise.
3439 (read_partial_die): Likewise.
3440 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3442 2014-02-26 Tom Tromey <tromey@redhat.com>
3444 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3446 2014-02-26 Tom Tromey <tromey@redhat.com>
3448 * elfread.c (elf_read_minimal_symbols): Return early if
3449 minimal symbols have already been read. Add "ei" parameter.
3450 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3451 * minsyms.c (prim_record_minimal_symbol_full): Update.
3452 * objfiles.h (struct objstats) <n_minsyms>: Move...
3453 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3454 * symmisc.c (print_objfile_statistics): Update.
3456 2014-02-26 Tom Tromey <tromey@redhat.com>
3458 * elfread.c (elf_read_minimal_symbols): New function, from
3460 (elf_symfile_read): Call it.
3462 2014-02-26 Tom Tromey <tromey@redhat.com>
3464 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3465 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3466 (lookup_minimal_symbol_solib_trampoline)
3467 (lookup_minimal_symbol_by_pc_section_1)
3468 (lookup_minimal_symbol_and_objfile): Update.
3469 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3470 Don't allocate a minimal symbol if minsyms have already been read.
3471 (build_minimal_symbol_hash_tables): Update.
3472 (install_minimal_symbols): Do nothing if minsyms already read.
3473 Use the per-BFD obstack.
3474 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3475 * objfiles.c (allocate_objfile): Call
3476 terminate_minimal_symbol_table later.
3477 (have_minimal_symbols): Update.
3478 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3479 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3480 Move from struct objfile.
3481 <minsyms_read>: New field.
3482 (struct objfile) <msymbols, minimal_symbol_count,
3483 msymbol_hash, msymbol_demangled_hash>: Move.
3484 (ALL_OBJFILE_MSYMBOLS): Update.
3485 * symfile.c (read_symbols): Set minsyms_read.
3486 (reread_symbols): Update.
3487 * symmisc.c (dump_objfile, dump_msymbols): Update.
3489 2014-02-26 Tom Tromey <tromey@redhat.com>
3491 * minsyms.c (msymbols_sort): Remove.
3492 * minsyms.h (msymbols_sort): Remove.
3493 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3494 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3495 * elfread.c (elf_symtab_read): Don't add section offsets.
3496 * xcoffread.c (record_minimal_symbol): Don't add section offset
3497 to minimal symbol address.
3498 * somread.c (text_offset, data_offset): Remove.
3499 (som_symtab_read): Don't add section offsets to minimal symbol
3501 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3502 Don't add section offsets to minimal symbols.
3503 * coffread.c (coff_symtab_read): Don't add section offsets
3504 to minimal symbol addresses.
3505 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3506 to minimal symbol addresses.
3507 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3508 section offset to minimal symbol addresses.
3509 * mdebugread.c (parse_partial_symbols): Don't add section
3510 offset to minimal symbol addresses.
3511 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3512 offset to minimal symbol addresses.
3514 2014-02-26 Tom Tromey <tromey@redhat.com>
3516 * ada-lang.c (ada_main_name): Update.
3517 (ada_add_standard_exceptions): Update.
3518 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3519 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3520 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3521 * auxv.c (ld_so_xfer_auxv): Update.
3522 * avr-tdep.c (avr_scan_prologue): Update.
3523 * ax-gdb.c (gen_var_ref): Update.
3524 * blockframe.c (get_pc_function_start)
3525 (find_pc_partial_function_gnu_ifunc): Update.
3526 * breakpoint.c (create_overlay_event_breakpoint)
3527 (create_longjmp_master_breakpoint)
3528 (create_std_terminate_master_breakpoint)
3529 (create_exception_master_breakpoint): Update.
3530 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3531 * c-valprint.c (c_val_print): Update.
3532 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3533 * common/agent.c (agent_look_up_symbols): Update.
3534 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3535 * dwarf2loc.c (call_site_to_target_addr): Update.
3536 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3537 * elfread.c (elf_gnu_ifunc_record_cache)
3538 (elf_gnu_ifunc_resolve_by_got): Update.
3539 * findvar.c (default_read_var_value): Update.
3540 * frame.c (inside_main_func): Update.
3541 * frv-tdep.c (frv_frame_this_id): Update.
3542 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3543 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3545 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3546 (hppa_hpux_find_dummy_bpaddr): Update.
3547 * hppa-tdep.c (hppa_symbol_address): Update.
3548 * infcmd.c (until_next_command): Update.
3549 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3551 * linespec.c (minsym_found, add_minsym): Update.
3552 * linux-nat.c (get_signo): Update.
3553 * linux-thread-db.c (inferior_has_bug): Update.
3554 * m32c-tdep.c (m32c_return_value)
3555 (m32c_m16c_address_to_pointer): Update.
3556 * m32r-tdep.c (m32r_frame_this_id): Update.
3557 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3558 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3559 * maint.c (maintenance_translate_address): Update.
3560 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3561 (frob_address): New function.
3562 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3563 frob_address. Rename parameter to "pc_in".
3564 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3566 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3568 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3569 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3570 * objc-lang.c (find_objc_msgsend): Update.
3571 * objfiles.c (objfile_relocate1): Update.
3572 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3573 * p-valprint.c (pascal_val_print): Update.
3574 * parse.c (write_exp_msymbol): Update.
3575 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3576 (ppc_elfv2_skip_entrypoint): Update.
3577 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3578 * printcmd.c (build_address_symbolic, msym_info)
3579 (address_info): Update.
3580 * proc-service.c (ps_pglobal_lookup): Update.
3581 * psymtab.c (find_pc_sect_psymtab_closer)
3582 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3583 Change msymbol parameter to bound_minimal_symbol.
3584 * ravenscar-thread.c (get_running_thread_id): Update.
3585 * remote.c (remote_check_symbols): Update.
3586 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3588 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3589 * solib-dsbt.c (lm_base): Update.
3590 * solib-frv.c (lm_base, main_got): Update.
3591 * solib-irix.c (locate_base): Update.
3592 * solib-som.c (som_solib_create_inferior_hook)
3593 (link_map_start): Update.
3594 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3595 * solib-svr4.c (elf_locate_base, enable_break): Update.
3596 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3597 (flush_ea_cache): Update.
3598 * stabsread.c (define_symbol, scan_file_globals): Update.
3599 * stack.c (find_frame_funname): Update.
3600 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3601 (debug_qf_find_pc_sect_symtab): Update.
3602 * symfile.c (simple_read_overlay_table)
3603 (simple_overlay_update): Update.
3604 * symfile.h (struct quick_symbol_functions)
3605 <find_pc_sect_symtab>: Change type of msymbol to
3606 bound_minimal_symbol.
3607 * symmisc.c (dump_msymbols): Update.
3608 * symtab.c (find_pc_sect_symtab_via_partial)
3609 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3610 (search_symbols, print_msymbol_info): Update.
3611 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3612 (MSYMBOL_VALUE_ADDRESS): Redefine.
3613 (BMSYMBOL_VALUE_ADDRESS): New macro.
3614 * tracepoint.c (scope_info): Update.
3615 * tui/tui-disasm.c (tui_find_disassembly_address)
3616 (tui_get_begin_asm_address): Update.
3617 * valops.c (find_function_in_inferior): Update.
3618 * value.c (value_static_field, value_fn_field): Update.
3620 2014-02-26 Tom Tromey <tromey@redhat.com>
3622 * ada-lang.c (ada_update_initial_language): Update.
3623 (ada_main_name, ada_has_this_exception_support): Update.
3624 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3625 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3626 * arm-tdep.c (arm_skip_stub): Update.
3627 * auxv.c (ld_so_xfer_auxv): Update.
3628 * avr-tdep.c (avr_scan_prologue): Update.
3629 * ax-gdb.c (gen_var_ref): Update.
3630 * breakpoint.c (struct breakpoint_objfile_data)
3631 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3632 type to bound_minimal_symbol.
3633 (create_overlay_event_breakpoint)
3634 (create_longjmp_master_breakpoint)
3635 (create_std_terminate_master_breakpoint)
3636 (create_exception_master_breakpoint): Update.
3637 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3638 * c-exp.y (classify_name): Update.
3639 * coffread.c (coff_symfile_read): Update.
3640 * common/agent.c (agent_look_up_symbols): Update.
3641 * d-lang.c (d_main_name): Update.
3642 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3643 * dec-thread.c (enable_dec_thread): Update.
3644 * dwarf2loc.c (call_site_to_target_addr): Update.
3645 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3646 * eval.c (evaluate_subexp_standard): Update.
3647 * findvar.c (struct minsym_lookup_data) <result>: Change type
3648 to bound_minimal_symbol.
3650 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3651 * frame.c (inside_main_func): Update.
3652 * frv-tdep.c (frv_frame_this_id): Update.
3653 * gcore.c (call_target_sbrk): Update.
3654 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3655 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3657 * go-lang.c (go_main_name): Update.
3658 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3659 (hppa_hpux_find_import_stub_for_addr): Update.
3660 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3661 Update. Change return type.
3662 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3664 * jit.c (jit_breakpoint_re_set_internal): Update.
3665 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3667 * linux-nat.c (get_signo): Update.
3668 * linux-thread-db.c (inferior_has_bug): Update
3669 * m32c-tdep.c (m32c_return_value)
3670 (m32c_m16c_address_to_pointer): Update.
3671 * m32r-tdep.c (m32r_frame_this_id): Update.
3672 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3673 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3674 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3675 lookup_minimal_symbol. Change return type.
3676 (lookup_minimal_symbol): Remove.
3677 (lookup_bound_minimal_symbol): Update.
3678 (lookup_minimal_symbol_text): Change return type.
3679 (lookup_minimal_symbol_solib_trampoline): Change return type.
3680 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3681 (lookup_minimal_symbol_solib_trampoline): Change return type.
3682 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3683 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3684 (value_nsstring, find_imps): Update.
3685 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3686 * p-lang.c (pascal_main_name): Update.
3687 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3688 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3689 * proc-service.c (ps_pglobal_lookup): Update.
3690 * ravenscar-thread.c (get_running_thread_msymbol): Change
3692 (has_ravenscar_runtime, get_running_thread_id): Update.
3693 * remote.c (remote_check_symbols): Update.
3694 * sol-thread.c (ps_pglobal_lookup): Update.
3695 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3696 * solib-dsbt.c (lm_base): Update.
3697 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3699 * solib-irix.c (locate_base): Update.
3700 * solib-som.c (som_solib_create_inferior_hook)
3701 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3703 * solib-spu.c (spu_enable_break): Update.
3704 * solib-svr4.c (elf_locate_base, enable_break): Update.
3705 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3706 (flush_ea_cache): Update.
3707 * stabsread.c (define_symbol): Update.
3708 * symfile.c (simple_read_overlay_table): Update.
3709 * symtab.c (find_pc_sect_line): Update.
3710 * tracepoint.c (scope_info): Update.
3711 * tui-disasm.c (tui_get_begin_asm_address): Update.
3712 * value.c (value_static_field): Update.
3714 2014-02-26 Tom Tromey <tromey@redhat.com>
3716 * minsyms.c (prim_record_minimal_symbol_full): Use
3717 SET_MSYMBOL_VALUE_ADDRESS.
3718 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3719 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3720 SET_MSYMBOL_VALUE_ADDRESS.
3721 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3722 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3724 2014-02-26 Tom Tromey <tromey@redhat.com>
3726 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3727 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3728 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3729 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3730 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3731 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3732 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3733 * ada-lang.c (ada_main_name): Update.
3734 (ada_lookup_simple_minsym): Update.
3735 (ada_make_symbol_completion_list): Update.
3736 (ada_add_standard_exceptions): Update.
3737 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3738 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3739 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3740 * arm-tdep.c (skip_prologue_function): Update.
3741 (arm_skip_stack_protector, arm_skip_stub): Update.
3742 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3743 (arm_wince_skip_main_prologue): Update.
3744 * auxv.c (ld_so_xfer_auxv): Update.
3745 * avr-tdep.c (avr_scan_prologue): Update.
3746 * ax-gdb.c (gen_var_ref): Update.
3747 * block.c (call_site_for_pc): Update.
3748 * blockframe.c (get_pc_function_start): Update.
3749 (find_pc_partial_function_gnu_ifunc): Update.
3750 * breakpoint.c (create_overlay_event_breakpoint): Update.
3751 (create_longjmp_master_breakpoint): Update.
3752 (create_std_terminate_master_breakpoint): Update.
3753 (create_exception_master_breakpoint): Update.
3754 (resolve_sal_pc): Update.
3755 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3756 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3758 * c-valprint.c (c_val_print): Update.
3759 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3760 * coffread.c (coff_symfile_read): Update.
3761 * common/agent.c (agent_look_up_symbols): Update.
3762 * dbxread.c (find_stab_function_addr): Update.
3763 (end_psymtab): Update.
3764 * dwarf2loc.c (call_site_to_target_addr): Update.
3765 (func_verify_no_selftailcall): Update.
3766 (tailcall_dump): Update.
3767 (call_site_find_chain_1): Update.
3768 (dwarf_expr_reg_to_entry_parameter): Update.
3769 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3770 (elf_gnu_ifunc_resolve_by_got): Update.
3771 * f-valprint.c (info_common_command): Update.
3772 * findvar.c (read_var_value): Update.
3773 * frame.c (get_prev_frame_1): Update.
3774 (inside_main_func): Update.
3775 * frv-tdep.c (frv_skip_main_prologue): Update.
3776 (frv_frame_this_id): Update.
3777 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3778 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3779 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3780 (gnuv3_skip_trampoline): Update.
3781 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3782 (hppa64_hpux_in_solib_call_trampoline): Update.
3783 (hppa_hpux_skip_trampoline_code): Update.
3784 (hppa64_hpux_search_dummy_call_sequence): Update.
3785 (hppa_hpux_find_import_stub_for_addr): Update.
3786 (hppa_hpux_find_dummy_bpaddr): Update.
3787 * hppa-tdep.c (hppa_symbol_address)
3788 (hppa_lookup_stub_minimal_symbol): Update.
3789 * i386-tdep.c (i386_skip_main_prologue): Update.
3790 (i386_pe_skip_trampoline_code): Update.
3791 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3792 * infcall.c (get_function_name): Update.
3793 * infcmd.c (until_next_command): Update.
3794 * jit.c (jit_breakpoint_re_set_internal): Update.
3795 (jit_inferior_init): Update.
3796 * linespec.c (minsym_found): Update.
3797 (add_minsym): Update.
3798 * linux-fork.c (info_checkpoints_command): Update.
3799 * linux-nat.c (get_signo): Update.
3800 * linux-thread-db.c (inferior_has_bug): Update.
3801 * m32c-tdep.c (m32c_return_value): Update.
3802 (m32c_m16c_address_to_pointer): Update.
3803 (m32c_m16c_pointer_to_address): Update.
3804 * m32r-tdep.c (m32r_frame_this_id): Update.
3805 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3806 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3807 * maint.c (maintenance_translate_address): Update.
3808 * minsyms.c (add_minsym_to_hash_table): Update.
3809 (add_minsym_to_demangled_hash_table): Update.
3810 (msymbol_objfile): Update.
3811 (lookup_minimal_symbol): Update.
3812 (iterate_over_minimal_symbols): Update.
3813 (lookup_minimal_symbol_text): Update.
3814 (lookup_minimal_symbol_by_pc_name): Update.
3815 (lookup_minimal_symbol_solib_trampoline): Update.
3816 (lookup_minimal_symbol_by_pc_section_1): Update.
3817 (lookup_minimal_symbol_and_objfile): Update.
3818 (prim_record_minimal_symbol_full): Update.
3819 (compare_minimal_symbols): Update.
3820 (compact_minimal_symbols): Update.
3821 (build_minimal_symbol_hash_tables): Update.
3822 (install_minimal_symbols): Update.
3823 (terminate_minimal_symbol_table): Update.
3824 (find_solib_trampoline_target): Update.
3825 (minimal_symbol_upper_bound): Update.
3826 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3827 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3828 (mips_skip_pic_trampoline_code): Update.
3829 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3830 * objc-lang.c (selectors_info): Update.
3831 (classes_info): Update.
3832 (find_methods): Update.
3833 (find_imps): Update.
3834 (find_objc_msgsend): Update.
3835 * objfiles.c (objfile_relocate1): Update.
3836 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3837 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3838 * p-valprint.c (pascal_val_print): Update.
3839 * parse.c (write_exp_msymbol): Update.
3840 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3841 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3842 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3843 * printcmd.c (build_address_symbolic): Update.
3845 (address_info): Update.
3846 * proc-service.c (ps_pglobal_lookup): Update.
3847 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3848 (find_pc_sect_psymtab): Update.
3849 * python/py-framefilter.c (py_print_frame): Update.
3850 * ravenscar-thread.c (get_running_thread_id): Update.
3851 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3853 * remote.c (remote_check_symbols): Update.
3854 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3855 (rs6000_skip_trampoline_code): Update.
3856 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3857 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3858 * solib-dsbt.c (lm_base): Update.
3859 * solib-frv.c (lm_base): Update.
3861 * solib-irix.c (locate_base): Update.
3862 * solib-som.c (som_solib_create_inferior_hook): Update.
3863 (som_solib_desire_dynamic_linker_symbols): Update.
3864 (link_map_start): Update.
3865 * solib-spu.c (spu_enable_break): Update.
3866 (ocl_enable_break): Update.
3867 * solib-svr4.c (elf_locate_base): Update.
3868 (enable_break): Update.
3869 * spu-tdep.c (spu_get_overlay_table): Update.
3870 (spu_catch_start): Update.
3871 (flush_ea_cache): Update.
3872 * stabsread.c (define_symbol): Update.
3873 (scan_file_globals): Update.
3874 * stack.c (find_frame_funname): Update.
3875 (frame_info): Update.
3876 * symfile.c (simple_read_overlay_table): Update.
3877 (simple_overlay_update): Update.
3878 * symmisc.c (dump_msymbols): Update.
3879 * symtab.c (fixup_section): Update.
3880 (find_pc_sect_line): Update.
3881 (skip_prologue_sal): Update.
3882 (search_symbols): Update.
3883 (print_msymbol_info): Update.
3884 (rbreak_command): Update.
3885 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3886 (completion_list_objc_symbol): Update.
3887 (default_make_symbol_completion_list_break_on): Update.
3888 * tracepoint.c (scope_info): Update.
3889 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3890 (tui_get_begin_asm_address): Update.
3891 * valops.c (find_function_in_inferior): Update.
3892 * value.c (value_static_field): Update.
3893 (value_fn_field): Update.
3895 2014-02-26 Tom Tromey <tromey@redhat.com>
3897 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3898 bound minimal symbols. Move code that knows about minsym
3900 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3902 * minsyms.h (minimal_symbol_upper_bound): Declare.
3903 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3904 minimal_symbol_upper_bound.
3906 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3908 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3909 Use the type's name if its basic type does not have a tag.
3911 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3913 * dwarf2read.c (read_subrange_type): Add comment.
3915 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3917 * dwarf2read.c (update_enumeration_type_from_children): New
3918 function, mostly extracted from process_structure_scope.
3919 (read_enumeration_type): Call update_enumeration_type_from_children.
3920 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3921 and flag_flag_enum fields.
3923 2014-02-26 Pedro Alves <palves@redhat.com>
3925 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3926 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3927 to_xfer_partial method.
3929 2014-02-26 Pedro Alves <palves@redhat.com>
3931 * target.c (complete_target_initialization): Don't install
3932 default_xfer_partial as to_xfer_partial hook.
3934 (update_current_target): Don't INHERIT nor de_fault
3935 deprecated_xfer_memory. Delete de_fault macro.
3936 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3937 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3938 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3941 2014-02-26 Pedro Alves <palves@redhat.com>
3943 * go32-nat.c (my_write_child): New function.
3944 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3945 (go32_xfer_partial): New function.
3946 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3947 Instead install a to_xfer_partial hook.
3949 2014-02-26 Pedro Alves <palves@redhat.com>
3951 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3952 to_xfer_partial helper. Rewrite.
3953 (procfs_xfer_partial): New function.
3954 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3955 Install a to_xfer_partial hook.
3957 2014-02-26 Pedro Alves <palves@redhat.com>
3959 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3960 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3961 (m32r_xfer_partial): New function.
3962 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3963 Install a to_xfer_partial hook.
3965 2014-02-26 Pedro Alves <palves@redhat.com>
3967 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3969 (mips_xfer_partial): New function.
3970 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3971 hook. Install a to_xfer_partial hook.
3973 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3975 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3976 * gdbtypes.c (create_array_type_with_stride): New function,
3977 renaming create_array_type, but with an added parameter
3978 called "bit_stride".
3979 (create_array_type): Re-implement using
3980 create_array_type_with_stride.
3981 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3982 and DW_AT_bit_stride attributes.
3984 2014-02-26 Pedro Alves <palves@redhat.com>
3986 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3987 task-specific breakpoints.
3989 2014-02-25 Pedro Alves <palves@redhat.com>
3991 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3992 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3994 2014-02-25 Stan Shebs <stan@codesourcery.com>
3996 * defs.h: Annotate comments for Doxygen.
3998 2014-02-25 Tom Tromey <tromey@redhat.com>
4000 * target.h (target_ignore): Don't declare.
4001 * target.c (target_ignore): Remove.
4003 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4006 * auto-load.c (auto_load_objfile_script_1): Change filename to
4009 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4011 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4012 documentation. Adjust prototype to match the target_ops
4013 to_xfer_partial method. Adjust implementation accordingly.
4015 2014-02-25 Hui Zhu <hui@codesourcery.com>
4017 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4020 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4022 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4023 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4024 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4025 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4026 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4027 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4028 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4029 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4031 (rl78_register_type): Use a data pointer type for SP and
4032 new pseudo registers mentioned above. Use a 16 bit integer
4033 type for all other register pairs.
4034 (rl78_register_name, rl78_g10_register_name): Update for
4035 new pseudo registers.
4036 (rl78_pseudo_register_read): Likewise.
4037 (rl78_pseudo_register_write): Likewise.
4038 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4039 to the newly added pseudo registers.
4041 2014-02-24 Doug Evans <dje@google.com>
4043 * value.c (record_latest_value): Fix comment.
4044 * printcmd.c (print_command_1): Remove code to handle -1 return from
4045 record_latest_value.
4047 2014-02-24 Pedro Alves <palves@redhat.com>
4049 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4050 deprecated_xfer_memory hook.
4051 (procfs_xfer_partial): Call procfs_xfer_memory instead
4052 of the deprecated_xfer_memory target hook.
4053 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4056 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4058 * windows-nat.c (windows_xfer_shared_libraries): Return
4059 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4060 requested object is TARGET_OBJECT_LIBRARIES.
4062 2014-02-24 Yao Qi <yao@codesourcery.com>
4064 * target.h (enum target_xfer_status)
4065 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4066 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4068 * corefile.c (memory_error_message): User updated.
4069 * exec.c (section_table_read_available_memory): Likewise.
4070 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4071 * target.c (target_xfer_status_to_string): Likewise.
4072 (raw_memory_xfer_partial): Likewise.
4073 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4074 * valops.c (read_value_memory): Likewise.
4075 * exec.h: Update comments.
4077 2014-02-24 Yao Qi <yao@codesourcery.com>
4079 * target.c (target_xfer_status_to_string): Rename argument err
4081 * target.h (target_xfer_status_to_string): Update declaration.
4082 Replace target_xfer_error_to_string with
4083 target_xfer_status_to_string in comment.
4085 2014-02-24 Yao Qi <yao@codesourcery.com>
4087 * mips-linux-nat.c (super_close): Update its type.
4088 (mips_linux_close): Pass 'self' to super_close.
4090 2014-02-24 Yao Qi <yao@codesourcery.com>
4092 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4093 * corefile.c (read_memory): Adjusted.
4094 * target.c (target_write_with_progress): Adjusted.
4096 2014-02-23 Yao Qi <yao@codesourcery.com>
4100 2013-10-25 Yao Qi <yao@codesourcery.com>
4102 * remote.c (remote_traceframe_info): Return early if
4103 traceframe is not selected.
4105 2013-07-19 Yao Qi <yao@codesourcery.com>
4107 * target.c (update_current_target): Change the default action
4108 of 'to_traceframe_info' from tcomplain to return_zero.
4109 * target.h (struct target_ops) <to_traceframe_info>: Add more
4112 2014-02-23 Yao Qi <yao@codesourcery.com>
4114 * valops.c (read_value_memory): Rewrite it. Call
4115 target_xfer_partial in a loop.
4116 * exec.h (section_table_available_memory): Remove declaration.
4117 Move comments to ...
4118 * exec.c (section_table_available_memory): ... here. Make it
4121 2014-02-23 Yao Qi <yao@codesourcery.com>
4123 * exec.c (section_table_read_available_memory): New function.
4124 * exec.h (section_table_read_available_memory): Declare.
4125 * ctf.c (ctf_xfer_partial): Call
4126 section_table_read_available_memory.
4127 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4129 2014-02-23 Yao Qi <yao@codesourcery.com>
4131 * ctf.c (ctf_xfer_partial): Move code to ...
4132 * exec.c (exec_read_partial_read_only): ... it. New function.
4133 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4134 * tracefile.c: Include "exec.h".
4135 * exec.h (exec_read_partial_read_only): Declare.
4137 2014-02-23 Yao Qi <yao@codesourcery.com>
4139 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4140 (tfile_has_memory): Remove.
4141 (init_tfile_ops): Don't set fields to_has_all_memory and
4142 to_has_memory of tfile_ops.
4143 * tracefile.c (tracefile_has_all_memory): New function.
4144 (tracefile_has_memory): New function.
4145 (init_tracefile_ops): Initialize fields to_has_all_memory and
4146 to_has_memory of 'ops'.
4148 2014-02-23 Yao Qi <yao@codesourcery.com>
4150 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4151 (ctf_thread_alive, ctf_get_trace_status): Remove.
4152 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4154 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4155 (tfile_has_stack, tfile_has_registers): Remove.
4156 (tfile_thread_alive): Remove.
4157 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4159 * tracefile.c (tracefile_has_stack): New function.
4160 (tracefile_has_registers): New function.
4161 (tracefile_thread_alive): New function.
4162 (tracefile_get_trace_status): New function.
4163 (init_tracefile_ops): New function.
4164 * tracefile.h (init_tracefile_ops): Declare.
4166 2014-02-23 Yao Qi <yao@codesourcery.com>
4168 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4169 (O_LARGEFILE): Likewise.
4170 (tfile_ops): Likewise.
4171 (TRACE_HEADER_SIZE): Likewise.
4172 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4173 (cur_data_size): Likewise.
4174 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4175 (tfile_close, tfile_files_info): Likewise.
4176 (tfile_get_trace_status): Likewise.
4177 (tfile_get_tracepoint_status): Likewise.
4178 (tfile_get_traceframe_address): Likewise.
4179 (tfile_trace_find, match_blocktype): Likewise.
4180 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4181 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4182 (tfile_get_trace_state_variable_value): Likewise.
4183 (tfile_has_all_memory, tfile_has_memory): Likewise.
4184 (tfile_has_stack, tfile_has_registers): Likewise.
4185 (tfile_thread_alive, build_traceframe_info): Likewise.
4186 (tfile_traceframe_info, init_tfile_ops): Likewise.
4187 (_initialize_tracepoint): Don't call init_tfile_ops
4188 and add_target_with_completer.
4189 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4190 exec.h, completer.h and filenames.h.
4191 (_initialize_tracefile_tfile): New function.
4193 2014-02-23 Yao Qi <yao@codesourcery.com>
4195 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4197 (HFILES_NO_SRCDIR): Add tracefile.h.
4198 * ctf.c: Include "tracefile.h".
4199 * tracefile.h: New file.
4200 * tracefile.c: New file
4201 * tracefile-tfile.c: New file.
4202 * tracepoint.c: Include "tracefile.h".
4203 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4204 (stop_reason_names): Add const.
4205 (trace_file_writer_xfree): Move it to tracefile.c.
4206 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4207 (trace_save_ctf): Likewise.
4208 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4209 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4210 (tfile_write_header, tfile_write_regblock_type): Likewise.
4211 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4212 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4213 (tfile_write_raw_data, tfile_end): Likewise.
4214 (tfile_trace_file_writer_new): Likewise.
4215 (free_uploaded_tp): Make it extern.
4216 (free_uploaded_tsv): Make it extern.
4217 (_initialize_tracepoint): Move code to register command 'tsave'
4219 * tracepoint.h (stop_reason_names): Declare.
4220 (struct trace_frame_write_ops): Move it to tracefile.h.
4221 (struct trace_file_write_ops): Likewise.
4222 (struct trace_file_writer): Likewise.
4223 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4225 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4228 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4230 (get_cores_used_by_process): New parameter num_cores, use it.
4231 (linux_xfer_osdata_processes): Pass num_cores to it.
4232 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4235 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4237 * target.c (memory_xfer_partial): Fix length arg in call to
4238 breakpoint_xfer_memory.
4240 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4243 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4244 number comes after the + or - signs. Adjust length of register
4245 name to be extracted.
4247 2014-02-20 Tom Tromey <tromey@redhat.com>
4249 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4250 (ada_varobj_ops): Mark "extern".
4252 2014-02-20 Tom Tromey <tromey@redhat.com>
4254 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4256 2014-02-20 Doug Evans <xdje42@gmail.com>
4258 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4259 All callers updated.
4260 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4261 All callers updated.
4262 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4263 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4265 2014-02-20 lin zuojian <manjian2006@gmail.com>
4266 Joel Brobecker <brobecker@adacore.com>
4267 Doug Evans <xdje42@gmail.com>
4270 * dwarf2read.c (struct die_info): New member in_process.
4271 (reset_die_in_process): New function.
4272 (process_die): Set it at the start, reset when returning.
4273 (inherit_abstract_dies): Only call process_die if origin_child_die
4274 not already being processed.
4276 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4278 * windows-nat.c (handle_unload_dll): Add function documentation.
4279 (do_initial_windows_stuff): Add comment explaining why we wait
4280 until after inferior initialization has finished before
4281 processing all DLLs.
4283 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4285 * windows-nat.c (get_module_name): Delete.
4286 (windows_get_exec_module_filename): New function, mostly
4287 inspired from get_module_name.
4288 (windows_pid_to_exec_file): Replace call to get_module_name
4289 by call to windows_get_exec_module_filename.
4291 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4293 * windows-nat.c (handle_load_dll): Rewrite this function's
4294 introductory comment. Remove code using get_module_name
4295 to get the DLL's name.
4297 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4299 * windows-nat.c (get_windows_debug_event): Ignore
4300 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4301 if windows_initialization_done == 0.
4302 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4303 Adjust implementation to always load all DLLs.
4304 (do_initial_windows_stuff): Replace call to
4305 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4307 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4309 * windows-nat.c (_initialize_windows_nat): Deprecate the
4310 "dll-symbols" command. Turn the "add-shared-symbol-files"
4311 and "assf" aliases into commands, and deprecate them as well.
4312 * NEWS: Add entry explaining that "dll-symbols" and its two
4313 aliases are now deprecated.
4315 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4317 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4318 new-line in debug string. Remove trailing spaces.
4320 2014-02-19 Stan Shebs <stan@codesourcery.com>
4322 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4324 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4326 * NEWS: Add entry for the new feature
4327 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4330 2014-02-19 Stan Shebs <stan@codesourcery.com>
4332 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4334 2014-02-19 Pedro Alves <palves@redhat.com>
4336 * common/ptid.h (struct ptid): Mention that process_stratum
4337 targets should prefer ptid.lwp.
4339 2014-02-19 Pedro Alves <palves@redhat.com>
4341 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4342 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4343 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4344 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4345 store remote thread ids rather than ptid.tid.
4346 (_initialize_remote): Adjust.
4348 2014-02-19 Tom Tromey <tromey@redhat.com>
4350 * target.c (target_get_unwinder): Rewrite.
4351 (target_get_tailcall_unwinder): Rewrite.
4352 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4353 (record_btrace_to_get_tailcall_unwinder): New function.
4354 (init_record_btrace_ops): Update.
4355 * target.h (struct target_ops) <to_get_unwinder,
4356 to_get_tailcall_unwinder>: Now function pointers. Use
4357 TARGET_DEFAULT_RETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4363 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4365 2014-02-19 Tom Tromey <tromey@redhat.com>
4367 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4369 * target-delegates.c: Rebuild.
4370 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4371 TARGET_DEFAULT_FUNC.
4372 * target.c (default_target_decr_pc_after_break): Rename from
4373 forward_target_decr_pc_after_break. Simplify.
4374 (target_decr_pc_after_break): Rely on delegation.
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target.c (update_current_target): Do not INHERIT to_doc or
4379 to_magic. Do not de_fault to_open or to_close.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * gcore.h (objfile_find_memory_regions): Declare.
4384 * gcore.c (objfile_find_memory_regions): No longer static. Add
4386 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4387 * exec.c: Include gcore.h.
4388 (exec_set_find_memory_regions): Remove.
4389 (exec_find_memory_regions): Remove.
4390 (exec_do_find_memory_regions): Remove.
4391 (init_exec_ops): Update.
4392 * defs.h (exec_set_find_memory_regions): Remove.
4394 2014-02-19 Tom Tromey <tromey@redhat.com>
4396 * target-delegates.c: Rebuild.
4397 * target.h (struct target_ops) <to_extra_thread_info,
4398 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4399 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4400 not 0, in TARGET_DEFAULT_RETURN.
4402 2014-02-19 Tom Tromey <tromey@redhat.com>
4404 * target.c (complete_target_initialization): Remove casts. Use
4405 return_zero_has_execution.
4406 (return_zero): Add "ignore" argument.
4407 (return_zero_has_execution): New function.
4408 (init_dummy_target): Remove casts. Use
4409 return_zero_has_execution.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * target.c (update_current_target): Update comments. Do not
4416 2014-02-19 Tom Tromey <tromey@redhat.com>
4418 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4420 * corelow.c (core_read_description): Delegate when needed.
4421 * remote.c (remote_read_description): Delegate when needed.
4422 * target-delegates.c: Rebuild.
4423 * target.c (target_read_description): Rewrite.
4424 * target.h (struct target_ops) <to_read_description>: Update
4425 comment. Use TARGET_DEFAULT_RETURN.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * target-delegates.c: Rebuild.
4430 * target.c (update_current_target): Don't inherit or default
4432 (find_default_run_target): Check against delegate_can_run.
4433 * target.h (struct target_ops) <to_can_run>: Use
4434 TARGET_DEFAULT_RETURN.
4436 2014-02-19 Tom Tromey <tromey@redhat.com>
4438 * target-delegates.c: Rebuild.
4439 * target.c (target_disconnect): Unconditionally delegate.
4440 * target.h (struct target_ops) <to_disconnect>: Use
4441 TARGET_DEFAULT_NORETURN.
4443 2014-02-19 Tom Tromey <tromey@redhat.com>
4445 * record.c (record_stop): Unconditionally delegate.
4446 * target-delegates.c: Rebuild.
4447 * target.c (target_stop_recording): Unconditionally delegate.
4448 * target.h (struct target_ops) <to_stop_recording>: Use
4449 TARGET_DEFAULT_IGNORE.
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target-delegates.c: Rebuild.
4454 * target.c (target_enable_btrace): Unconditionally delegate.
4455 * target.h (struct target_ops) <to_enable_btrace>: Use
4456 TARGET_DEFAULT_NORETURN.
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * target-delegates.c: Rebuild.
4461 * target.c (target_read_btrace): Unconditionally delegate.
4462 * target.h (struct target_ops) <to_read_btrace>: Use
4463 TARGET_DEFAULT_NORETURN.
4465 2014-02-19 Tom Tromey <tromey@redhat.com>
4467 * target-delegates.c: Rebuild.
4468 * target.c (target_teardown_btrace): Unconditionally delegate.
4469 * target.h (struct target_ops) <to_teardown_btrace>: Use
4470 TARGET_DEFAULT_NORETURN.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (target_disable_btrace): Unconditionally delegate.
4476 * target.h (struct target_ops) <to_disable_btrace>: Use
4477 TARGET_DEFAULT_NORETURN.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target-delegates.c: Rebuild.
4482 * target.c (default_search_memory): New function.
4483 (simple_search_memory): Update comment.
4484 (target_search_memory): Unconditionally delegate.
4485 * target.h (struct target_ops) <to_search_memory>: Use
4486 TARGET_DEFAULT_FUNC.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * auxv.c (default_auxv_parse): No longer static.
4491 (target_auxv_parse): Unconditionally delegate.
4492 * auxv.h (default_auxv_parse): Declare.
4493 * target-delegates.c: Rebuild.
4494 * target.c: Include auxv.h.
4495 * target.h (struct target_ops) <to_auxv_parse>: Use
4496 TARGET_DEFAULT_FUNC.
4498 2014-02-19 Tom Tromey <tromey@redhat.com>
4500 * target-delegates.c: Rebuild.
4501 * target.c (target_memory_map): Unconditionally delegate.
4502 * target.h (struct target_ops) <to_memory_map>: Use
4503 TARGET_DEFAULT_RETURN.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target-delegates.c: Rebuild.
4508 * target.c (target_thread_alive): Unconditionally delegate.
4509 * target.h (struct target_ops) <to_thread_alive>: Use
4510 TARGET_DEFAULT_RETURN.
4512 2014-02-19 Tom Tromey <tromey@redhat.com>
4514 * target-delegates.c: Rebuild.
4515 * target.c (target_save_record): Unconditionally delegate.
4516 * target.h (struct target_ops) <to_save_record>: Use
4517 TARGET_DEFAULT_NORETURN.
4519 2014-02-19 Tom Tromey <tromey@redhat.com>
4521 * target-delegates.c: Rebuild.
4522 * target.c (target_delete_record): Unconditionally delegate.
4523 * target.h (struct target_ops) <to_delete_record>: Use
4524 TARGET_DEFAULT_NORETURN.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target-delegates.c: Rebuild.
4529 * target.c (target_record_is_replaying): Unconditionally
4531 * target.h (struct target_ops) <to_record_is_replaying>: Use
4532 TARGET_DEFAULT_RETURN.
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target-delegates.c: Rebuild.
4537 * target.c (target_goto_record_begin): Unconditionally delegate.
4538 * target.h (struct target_ops) <to_goto_record_begin>: Use
4539 TARGET_DEFAULT_NORETURN.
4541 2014-02-19 Tom Tromey <tromey@redhat.com>
4543 * target-delegates.c: Rebuild.
4544 * target.c (target_goto_record_end): Unconditionally delegate.
4545 * target.h (struct target_ops) <to_goto_record_end>: Use
4546 TARGET_DEFAULT_NORETURN.
4548 2014-02-19 Tom Tromey <tromey@redhat.com>
4550 * target-delegates.c: Rebuild.
4551 * target.c (target_goto_record): Unconditionally delegate.
4552 * target.h (struct target_ops) <to_goto_record>: Use
4553 TARGET_DEFAULT_NORETURN.
4555 2014-02-19 Tom Tromey <tromey@redhat.com>
4557 * target-delegates.c: Rebuild.
4558 * target.c (target_insn_history): Unconditionally delegate.
4559 * target.h (struct target_ops) <to_insn_history>: Use
4560 TARGET_DEFAULT_NORETURN.
4562 2014-02-19 Tom Tromey <tromey@redhat.com>
4564 * target-delegates.c: Rebuild.
4565 * target.c (target_insn_history_from): Unconditionally delegate.
4566 * target.h (struct target_ops) <to_insn_history_from>: Use
4567 TARGET_DEFAULT_NORETURN.
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target-delegates.c: Rebuild.
4572 * target.c (target_insn_history_range): Unconditionally delegate.
4573 * target.h (struct target_ops) <to_insn_history_range>: Use
4574 TARGET_DEFAULT_NORETURN.
4576 2014-02-19 Tom Tromey <tromey@redhat.com>
4578 * target-delegates.c: Rebuild.
4579 * target.c (target_call_history): Unconditionally delegate.
4580 * target.h (struct target_ops) <to_call_history>: Use
4581 TARGET_DEFAULT_NORETURN.
4583 2014-02-19 Tom Tromey <tromey@redhat.com>
4585 * target-delegates.c: Rebuild.
4586 * target.c (target_call_history_from): Unconditionally delegate.
4587 * target.h (struct target_ops) <to_call_history_from>: Use
4588 TARGET_DEFAULT_NORETURN.
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target-delegates.c: Rebuild.
4593 * target.c (target_call_history_range): Unconditionally delegate.
4594 * target.h (struct target_ops) <to_call_history_range>: Use
4595 TARGET_DEFAULT_NORETURN.
4597 2014-02-19 Tom Tromey <tromey@redhat.com>
4599 * target-delegates.c: Rebuild.
4600 * target.c (target_verify_memory): Unconditionally delegate.
4601 * target.h (struct target_ops) <to_verify_memory>: Use
4602 TARGET_DEFAULT_NORETURN.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (target_core_of_thread): Unconditionally delegate.
4608 * target.h (struct target_ops) <to_core_of_thread>: Use
4609 TARGET_DEFAULT_RETURN.
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * target-delegates.c: Rebuild.
4614 * target.c (target_flash_done): Unconditionally delegate.
4615 * target.h (struct target_ops) <to_flash_done>: Use
4616 TARGET_DEFAULT_NORETURN.
4618 2014-02-19 Tom Tromey <tromey@redhat.com>
4620 * target-delegates.c: Rebuild.
4621 * target.c (target_flash_erase): Unconditionally delegate.
4622 * target.h (struct target_ops) <to_flash_erase>: Use
4623 TARGET_DEFAULT_NORETURN.
4625 2014-02-19 Tom Tromey <tromey@redhat.com>
4627 * target-delegates.c: Rebuild.
4628 * target.c (target_get_section_table): Unconditionally delegate.
4629 * target.h (struct target_ops) <to_get_section_table>: Use
4630 TARGET_DEFAULT_RETURN.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target-delegates.c: Rebuild.
4635 * target.c (target_pid_to_str): Unconditionally delegate.
4636 (init_dummy_target): Don't initialize to_pid_to_str.
4637 (default_pid_to_str): Rename from dummy_pid_to_str.
4638 * target.h (struct target_ops) <to_pid_to_str>: Use
4639 TARGET_DEFAULT_FUNC.
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target-delegates.c: Rebuild.
4644 * target.c (target_find_new_threads): Unconditionally delegate.
4645 * target.h (struct target_ops) <to_find_new_threads>: Use
4646 TARGET_DEFAULT_RETURN.
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target-delegates.c: Rebuild.
4651 * target.c (target_program_signals): Unconditionally delegate.
4652 * target.h (struct target_ops) <to_program_signals>: Use
4653 TARGET_DEFAULT_IGNORE.
4655 2014-02-19 Tom Tromey <tromey@redhat.com>
4657 * target-delegates.c: Rebuild.
4658 * target.c (target_pass_signals): Unconditionally delegate.
4659 * target.h (struct target_ops) <to_pass_signals>: Use
4660 TARGET_DEFAULT_IGNORE.
4662 2014-02-19 Tom Tromey <tromey@redhat.com>
4664 * target-delegates.c: Rebuild.
4665 * target.c (default_mourn_inferior): New function.
4666 (target_mourn_inferior): Unconditionally delegate.
4667 * target.h (struct target_ops) <to_mourn_inferior>: Use
4668 TARGET_DEFAULT_FUNC.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (default_follow_fork): New function.
4674 (target_follow_fork): Unconditionally delegate.
4675 * target.h (struct target_ops) <to_follow_fork>: Use
4676 TARGET_DEFAULT_FUNC.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (target_kill): Unconditionally delegate.
4682 * target.h (struct target_ops) <to_kill>: Use
4683 TARGET_DEFAULT_NORETURN.
4685 2014-02-19 Tom Tromey <tromey@redhat.com>
4687 * target-delegates.c: Rebuild.
4688 * target.c (target_masked_watch_num_registers): Unconditionally
4690 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4691 Use TARGET_DEFAULT_RETURN.
4693 2014-02-19 Tom Tromey <tromey@redhat.com>
4695 * target-delegates.c: Rebuild.
4696 * target.c (target_remove_mask_watchpoint): Unconditionally
4698 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4699 TARGET_DEFAULT_RETURN.
4701 2014-02-19 Tom Tromey <tromey@redhat.com>
4703 * target-delegates.c: Rebuild.
4704 * target.c (target_insert_mask_watchpoint): Unconditionally
4706 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4707 TARGET_DEFAULT_RETURN.
4709 2014-02-19 Tom Tromey <tromey@redhat.com>
4711 * target-delegates.c: Rebuild.
4712 * target.c (target_ranged_break_num_registers): Unconditionally
4714 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4715 Use TARGET_DEFAULT_RETURN.
4717 2014-02-19 Tom Tromey <tromey@redhat.com>
4719 * target-delegates.c: Rebuild.
4720 * target.c (target_fetch_registers): Unconditionally delegate.
4721 * target.h (struct target_ops) <to_fetch_registers>: Use
4722 TARGET_DEFAULT_NORETURN.
4724 2014-02-19 Tom Tromey <tromey@redhat.com>
4726 * target-delegates.c: Rebuild.
4727 * target.c (update_current_target): Don't inherit or default
4729 * target.h (struct target_ops) <to_stop>: Use
4730 TARGET_DEFAULT_IGNORE.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target-delegates.c: Rebuild.
4735 * target.c (update_current_target): Don't inherit or default
4736 to_can_run_breakpoint_commands.
4737 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4738 Use TARGET_DEFAULT_RETURN.
4740 2014-02-19 Tom Tromey <tromey@redhat.com>
4742 * target-delegates.c: Rebuild.
4743 * target.c (update_current_target): Don't inherit or default
4744 to_supports_evaluation_of_breakpoint_conditions.
4745 * target.h (struct target_ops)
4746 <to_supports_evaluation_of_breakpoint_conditions>: Use
4747 TARGET_DEFAULT_RETURN.
4749 2014-02-19 Tom Tromey <tromey@redhat.com>
4751 * target-delegates.c: Rebuild.
4752 * target.c (update_current_target): Don't inherit or default
4753 to_augmented_libraries_svr4_read.
4754 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4755 Use TARGET_DEFAULT_RETURN.
4757 2014-02-19 Tom Tromey <tromey@redhat.com>
4759 * target-delegates.c: Rebuild.
4760 * target.c (update_current_target): Don't inherit or default
4762 * target.h (struct target_ops) <to_can_use_agent>: Use
4763 TARGET_DEFAULT_RETURN.
4765 2014-02-19 Tom Tromey <tromey@redhat.com>
4767 * target-delegates.c: Rebuild.
4768 * target.c (update_current_target): Don't inherit or default
4770 * target.h (struct target_ops) <to_use_agent>: Use
4771 TARGET_DEFAULT_NORETURN.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target-delegates.c: Rebuild.
4776 * target.c (update_current_target): Don't inherit or default
4778 (return_null): Remove.
4779 * target.h (struct target_ops) <to_traceframe_info>: Use
4780 TARGET_DEFAULT_RETURN.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target-delegates.c: Rebuild.
4785 * target.c (update_current_target): Don't inherit or default
4786 to_static_tracepoint_markers_by_strid.
4787 * target.h (struct target_ops)
4788 <to_static_tracepoint_markers_by_strid>: Use
4789 TARGET_DEFAULT_NORETURN.
4791 2014-02-19 Tom Tromey <tromey@redhat.com>
4793 * target-delegates.c: Rebuild.
4794 * target.c (update_current_target): Don't inherit or default
4795 to_static_tracepoint_marker_at.
4796 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4797 Use TARGET_DEFAULT_RETURN.
4799 2014-02-19 Tom Tromey <tromey@redhat.com>
4801 * target-delegates.c: Rebuild.
4802 * target.c (update_current_target): Don't inherit or default
4804 * target.h (struct target_ops) <to_set_permissions>: Use
4805 TARGET_DEFAULT_IGNORE.
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target-delegates.c: Rebuild.
4810 * target.c (update_current_target): Don't inherit or default
4812 * target.h (struct target_ops) <to_get_tib_address>: Use
4813 TARGET_DEFAULT_NORETURN.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (update_current_target): Don't inherit or default
4820 * target.h (struct target_ops) <to_set_trace_notes>: Use
4821 TARGET_DEFAULT_RETURN.
4823 2014-02-19 Tom Tromey <tromey@redhat.com>
4825 * target-delegates.c: Rebuild.
4826 * target.c (update_current_target): Don't initialize
4827 to_set_trace_buffer_size.
4828 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4829 TARGET_DEFAULT_IGNORE.
4831 2014-02-19 Tom Tromey <tromey@redhat.com>
4833 * target-delegates.c: Rebuild.
4834 * target.c (update_current_target): Don't inherit or default
4835 to_set_circular_trace_buffer.
4836 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4837 TARGET_DEFAULT_IGNORE.
4839 2014-02-19 Tom Tromey <tromey@redhat.com>
4841 * target-delegates.c: Rebuild.
4842 * target.c (update_current_target): Don't inherit or default
4843 to_set_disconnected_tracing.
4844 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4845 TARGET_DEFAULT_IGNORE.
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target-delegates.c: Rebuild.
4850 * target.c (update_current_target): Don't inherit or default
4851 to_get_min_fast_tracepoint_insn_len.
4852 (return_minus_one): Remove.
4853 * target.h (struct target_ops)
4854 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4856 2014-02-19 Tom Tromey <tromey@redhat.com>
4858 * target-delegates.c: Rebuild.
4859 * target.c (update_current_target): Don't inherit or default
4860 to_get_raw_trace_data.
4861 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4862 TARGET_DEFAULT_NORETURN.
4864 2014-02-19 Tom Tromey <tromey@redhat.com>
4866 * target-delegates.c: Rebuild.
4867 * target.c (update_current_target): Don't inherit or default
4868 to_upload_trace_state_variables.
4869 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4870 Use TARGET_DEFAULT_RETURN.
4872 2014-02-19 Tom Tromey <tromey@redhat.com>
4874 * target-delegates.c: Rebuild.
4875 * target.c (update_current_target): Don't inherit or default
4876 to_upload_tracepoints.
4877 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4878 TARGET_DEFAULT_RETURN.
4880 2014-02-19 Tom Tromey <tromey@redhat.com>
4882 * target-delegates.c: Rebuild.
4883 * target.c (update_current_target): Don't inherit or default
4885 * target.h (struct target_ops) <to_save_trace_data>: Use
4886 TARGET_DEFAULT_NORETURN.
4888 2014-02-19 Tom Tromey <tromey@redhat.com>
4890 * target-delegates.c: Rebuild.
4891 * target.c (update_current_target): Don't inherit or default
4892 to_get_trace_state_variable_value.
4893 * target.h (struct target_ops)
4894 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * target-delegates.c: Rebuild.
4899 * target.c (update_current_target): Don't inherit or default
4901 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_trace_stop>: Use
4909 TARGET_DEFAULT_NORETURN.
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target-delegates.c: Rebuild.
4914 * target.c (update_current_target): Don't inherit or default
4915 to_get_tracepoint_status.
4916 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4917 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
4924 * target.h (struct target_ops) <to_get_trace_status>: Use
4925 TARGET_DEFAULT_RETURN.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4932 * target.h (struct target_ops) <to_trace_start>: Use
4933 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
4940 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4941 Use TARGET_DEFAULT_NORETURN.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target-delegates.c: Rebuild.
4946 * target.c (update_current_target): Don't inherit or default
4947 to_disable_tracepoint.
4948 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4949 TARGET_DEFAULT_NORETURN.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target-delegates.c: Rebuild.
4954 * target.c (update_current_target): Don't inherit or default
4955 to_enable_tracepoint.
4956 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4957 TARGET_DEFAULT_NORETURN.
4959 2014-02-19 Tom Tromey <tromey@redhat.com>
4961 * target-delegates.c: Rebuild.
4962 * target.c (update_current_target): Don't inherit or default
4963 to_download_trace_state_variable.
4964 * target.h (struct target_ops) <to_download_trace_state_variable>:
4965 Use TARGET_DEFAULT_NORETURN.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: Rebuild.
4970 * target.c (update_current_target): Don't inherit or default
4971 to_can_download_tracepoint.
4972 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4973 TARGET_DEFAULT_RETURN.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target-delegates.c: Rebuild.
4978 * target.c (update_current_target): Don't inherit or default
4979 to_download_tracepoint.
4980 * target.h (struct target_ops) <to_download_tracepoint>: Use
4981 TARGET_DEFAULT_NORETURN.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target-delegates.c: Rebuild.
4986 * target.c (update_current_target): Don't inherit or default
4988 * target.h (struct target_ops) <to_trace_init>: Use
4989 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
4995 to_supports_string_tracing.
4996 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4997 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
5004 * target.h (struct target_ops)
5005 <to_supports_enable_disable_tracepoint>: Use
5006 TARGET_DEFAULT_RETURN.
5008 2014-02-19 Tom Tromey <tromey@redhat.com>
5010 * target-delegates.c: Rebuild.
5011 * target.c (update_current_target): Don't inherit or default
5012 to_supports_multi_process.
5013 * target.h (struct target_ops) <to_supports_multi_process>: Use
5014 TARGET_DEFAULT_RETURN.
5016 2014-02-19 Tom Tromey <tromey@redhat.com>
5018 * target-delegates.c: Rebuild.
5019 * target.c (update_current_target): Don't inherit or default
5020 to_get_ada_task_ptid.
5021 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5022 TARGET_DEFAULT_FUNC.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target-delegates.c: Rebuild.
5027 * target.c (update_current_target): Don't inherit or default
5028 to_thread_architecture.
5029 * target.h (struct target_ops) <to_thread_architecture>: Use
5030 TARGET_DEFAULT_FUNC.
5032 2014-02-19 Tom Tromey <tromey@redhat.com>
5034 * target-delegates.c: Rebuild.
5035 * target.c (update_current_target): Don't inherit or default
5036 to_execution_direction.
5037 * target.h (struct target_ops) <to_execution_direction>: Use
5038 TARGET_DEFAULT_FUNC.
5040 2014-02-19 Tom Tromey <tromey@redhat.com>
5042 * target-delegates.c: Rebuild.
5043 * target.c (update_current_target): Don't inherit or default
5044 to_can_execute_reverse.
5045 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5046 TARGET_DEFAULT_RETURN.
5047 (target_can_execute_reverse): Unconditionally delegate.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (update_current_target): Don't inherit or default
5054 (dummy_goto_bookmark): Remove.
5055 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5056 * target.h (struct target_ops) <to_goto_bookmark>: Use
5057 TARGET_DEFAULT_NORETURN.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (update_current_target): Don't inherit or default
5064 (dummy_get_bookmark): Remove.
5065 (init_dummy_target): Don't inherit or default to_get_bookmark.
5066 * target.h (struct target_ops) <to_get_bookmark>: Use
5067 TARGET_DEFAULT_NORETURN
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * target-delegates.c: Rebuild.
5072 * target.c (update_current_target): Don't inherit or default
5073 to_make_corefile_notes.
5074 (init_dummy_target): Don't initialize to_make_corefile_notes.
5075 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5076 TARGET_DEFAULT_FUNC.
5078 2014-02-19 Tom Tromey <tromey@redhat.com>
5080 * target-delegates.c: Rebuild.
5081 * target.c (update_current_target): Don't inherit or default
5082 to_find_memory_regions.
5083 (init_dummy_target): Don't initialize to_find_memory_regions.
5084 * target.h (struct target_ops) <to_find_memory_regions>: Use
5085 TARGET_DEFAULT_FUNC.
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
5092 * target.h (struct target_ops) <to_log_command>: Use
5093 TARGET_DEFAULT_IGNORE.
5094 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
5101 * target.h (struct target_ops) <to_pid_to_exec_file>: 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
5109 (target_thread_name): Unconditionally delegate.
5110 * target.h (struct target_ops) <to_thread_name>: Use
5111 TARGET_DEFAULT_RETURN.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (update_current_target): Don't inherit or default
5117 to_extra_thread_info.
5118 * target.h (struct target_ops) <to_extra_thread_info>: Use
5119 TARGET_DEFAULT_RETURN.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (update_current_target): Don't inherit or default
5126 * target.h (struct target_ops) <to_has_exited>: Use
5127 TARGET_DEFAULT_RETURN..
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target-delegates.c: Rebuild.
5132 * target.c (update_current_target): Don't inherit or default
5133 to_set_syscall_catchpoint.
5134 (return_one): Remove.
5135 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5136 TARGET_DEFAULT_RETURN.
5138 2014-02-19 Tom Tromey <tromey@redhat.com>
5140 * target-delegates.c: Rebuild.
5141 * target.c (update_current_target): Don't inherit or default
5142 to_insert_exec_catchpoint.
5143 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5144 TARGET_DEFAULT_RETURN.
5146 2014-01-08 Tom Tromey <tromey@redhat.com>
5148 * target-delegates.c: Rebuild.
5149 * target.c (update_current_target): Don't inherit or default
5150 to_insert_exec_catchpoint.
5151 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5152 TARGET_DEFAULT_RETURN.
5154 2014-02-19 Tom Tromey <tromey@redhat.com>
5156 * target-delegates.c: Rebuild.
5157 * target.c (update_current_target): Don't inherit or default
5158 to_remove_vfork_catchpoint.
5159 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5160 TARGET_DEFAULT_RETURN.
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target-delegates.c: Rebuild.
5165 * target.c (update_current_target): Don't inherit or default
5166 to_insert_vfork_catchpoint.
5167 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5168 TARGET_DEFAULT_RETURN.
5170 2014-02-19 Tom Tromey <tromey@redhat.com>
5172 * target-delegates.c: Rebuild.
5173 * target.c (update_current_target): Don't inherit or default
5174 to_remove_fork_catchpoint.
5175 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5176 TARGET_DEFAULT_RETURN.
5178 2014-02-19 Tom Tromey <tromey@redhat.com>
5180 * target-delegates.c: Rebuild.
5181 * target.c (update_current_target): Don't inherit or default
5182 to_insert_fork_catchpoint.
5183 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5184 TARGET_DEFAULT_RETURN.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target-delegates.c: Rebuild.
5189 * target.c (update_current_target): Don't inherit or default
5190 to_post_startup_inferior.
5191 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5192 TARGET_DEFAULT_IGNORE.
5194 2014-02-19 Tom Tromey <tromey@redhat.com>
5196 * target-delegates.c: Rebuild.
5197 * target.c (update_current_target): Don't inherit or default
5199 * target.h (struct target_ops) <to_load>: Use
5200 TARGET_DEFAULT_NORETURN.
5202 2014-02-19 Tom Tromey <tromey@redhat.com>
5204 * target-delegates.c: Rebuild.
5205 * target.c (update_current_target): Don't inherit or default
5207 * target.h (struct target_ops) <to_terminal_info>: Use
5208 TARGET_DEFAULT_FUNC.
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target-delegates.c: Rebuild.
5213 * target.c (update_current_target): Don't inherit or default
5214 to_terminal_save_ours.
5215 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5216 TARGET_DEFAULT_IGNORE.
5218 2014-02-19 Tom Tromey <tromey@redhat.com>
5220 * target-delegates.c: Rebuild.
5221 * target.c (update_current_target): Don't inherit or default
5223 * target.h (struct target_ops) <to_terminal_ours>: Use
5224 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
5231 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5232 TARGET_DEFAULT_IGNORE.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target-delegates.c: Rebuild.
5237 * target.c (update_current_target): Don't inherit or default
5238 to_terminal_inferior.
5239 * target.h (struct target_ops) <to_terminal_inferior>: Use
5240 TARGET_DEFAULT_IGNORE.
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
5247 * target.h (struct target_ops) <to_terminal_init>: Use
5248 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
5255 * target.h (struct target_ops)
5256 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
5263 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5264 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
5271 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5272 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
5279 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5280 TARGET_DEFAULT_NORETURN.
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
5286 to_insert_watchpoint.
5287 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5288 TARGET_DEFAULT_RETURN.
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
5294 to_remove_hw_breakpoint.
5295 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5296 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
5303 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5304 TARGET_DEFAULT_RETURN.
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
5310 to_can_use_hw_breakpoint.
5311 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5312 TARGET_DEFAULT_RETURN.
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
5319 * target.h (struct target_ops) <to_files_info>: 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
5327 * target.h (struct target_ops) <to_store>: Use
5328 TARGET_DEFAULT_NORETURN.
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_post_attach>: 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
5343 (default_rcmd): New function.
5344 (do_monitor_command): Unconditionally delegate.
5345 * target.h (struct target_ops) <to_rmcd>: Use
5346 TARGET_DEFAULT_FUNC.
5348 2014-02-19 Tom Tromey <tromey@redhat.com>
5350 * target-delegates.c: Rebuild.
5351 * target.c (init_dummy_target): Don't initialize to_attach.
5352 (target_attach): Unconditionally delegate.
5353 * target.h (struct target_ops) <to_attach>: Use
5354 TARGET_DEFAULT_FUNC.
5356 2014-02-19 Tom Tromey <tromey@redhat.com>
5358 * target-delegates.c: Rebuild.
5359 * target.c (target_detach): Unconditionally delegate.
5360 (init_dummy_target): Don't initialize to_detach.
5361 * target.h (struct target_ops) <to_detach>: Use
5362 TARGET_DEFAULT_IGNORE.
5364 2014-02-19 Tom Tromey <tromey@redhat.com>
5366 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5368 (target_augmented_libraries_svr4_read): Add argument.
5369 * target.c (update_current_target): Update.
5370 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5373 2014-02-19 Tom Tromey <tromey@redhat.com>
5375 * target.h (struct target_ops) <to_call_history_range>: Add
5377 * target.c (target_call_history_range): Add argument.
5378 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5380 (record_btrace_call_history_from): Update.
5382 2014-02-19 Tom Tromey <tromey@redhat.com>
5384 * target.h (struct target_ops) <to_call_history_from>: Add
5386 * target.c (target_call_history_from): Add argument.
5387 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5390 2014-02-19 Tom Tromey <tromey@redhat.com>
5392 * target.h (struct target_ops) <to_call_history>: Add argument.
5393 * target.c (target_call_history): Add argument.
5394 * record-btrace.c (record_btrace_call_history): Add 'self'
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target.h (struct target_ops) <to_insn_history_range>: Add
5401 * target.c (target_insn_history_range): Add argument.
5402 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5404 (record_btrace_insn_history_from): Update.
5406 2014-02-19 Tom Tromey <tromey@redhat.com>
5408 * target.h (struct target_ops) <to_insn_history_from>: Add
5410 * target.c (target_insn_history_from): Add argument.
5411 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target.h (struct target_ops) <to_insn_history>: Add argument.
5417 * target.c (target_insn_history): Add argument.
5418 * record-btrace.c (record_btrace_insn_history): Add 'self'
5421 2014-02-19 Tom Tromey <tromey@redhat.com>
5423 * target.h (struct target_ops) <to_goto_record>: Add argument.
5424 * target.c (target_goto_record): Add argument.
5425 * record-full.c (record_full_goto): Add 'self' argument.
5426 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5428 2014-02-19 Tom Tromey <tromey@redhat.com>
5430 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5431 * target.c (target_goto_record_end): Add argument.
5432 * record-full.c (record_full_goto_end): Add 'self' argument.
5433 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target.h (struct target_ops) <to_goto_record_begin>: Add
5439 * target.c (target_goto_record_begin): Add argument.
5440 * record-full.c (record_full_goto_begin): Add 'self' argument.
5441 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5444 2014-02-19 Tom Tromey <tromey@redhat.com>
5446 * target.h (struct target_ops) <to_record_is_replaying>: Add
5448 * target.c (target_record_is_replaying): Add argument.
5449 * record-full.c (record_full_is_replaying): Add 'self' argument.
5450 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5452 (record_btrace_xfer_partial, record_btrace_store_registers)
5453 (record_btrace_prepare_to_store, record_btrace_resume)
5454 (record_btrace_wait, record_btrace_decr_pc_after_break)
5455 (record_btrace_find_new_threads, record_btrace_thread_alive):
5458 2014-02-19 Tom Tromey <tromey@redhat.com>
5460 * target.h (struct target_ops) <to_delete_record>: Add argument.
5461 * target.c (target_delete_record): Add argument.
5462 * record-full.c (record_full_delete): Add 'self' argument.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target.h (struct target_ops) <to_save_record>: Add argument.
5467 * target.c (target_save_record): Add argument.
5468 * record-full.c (record_full_save): Add 'self' argument.
5469 (record_full_save): Add 'self' argument.
5471 2014-02-19 Tom Tromey <tromey@redhat.com>
5473 * target.h (struct target_ops) <to_info_record>: Add argument.
5474 * target.c (target_info_record): Add argument.
5475 * record.c (info_record_command): Add argument.
5476 * record-full.c (record_full_info): Add 'self' argument.
5477 * record-btrace.c (record_btrace_info): Add 'self' argument.
5479 2014-02-19 Tom Tromey <tromey@redhat.com>
5481 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5482 * target.c (target_stop_recording): Add argument.
5483 * record.c (record_stop): Add argument.
5484 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5487 2014-02-19 Tom Tromey <tromey@redhat.com>
5489 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5490 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5491 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5493 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5494 (_initialize_amd64_linux_nat): Use it.
5495 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5496 (_initialize_i386_linux_nat): Use it.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5501 * target.c (target_teardown_btrace): Add argument.
5502 * remote.c (remote_teardown_btrace): Add 'self' argument.
5503 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5505 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5508 2014-02-19 Tom Tromey <tromey@redhat.com>
5510 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5511 * target.c (target_disable_btrace): Add argument.
5512 * remote.c (remote_disable_btrace): Add 'self' argument.
5513 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5515 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5518 2014-02-19 Tom Tromey <tromey@redhat.com>
5520 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5521 * target.c (target_enable_btrace): Add argument.
5522 * remote.c (remote_enable_btrace): Add 'self' argument.
5523 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5525 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5528 2014-02-19 Tom Tromey <tromey@redhat.com>
5530 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5531 (target_can_use_agent): Add argument.
5532 * target.c (update_current_target): Update.
5533 * remote.c (remote_can_use_agent): Add 'self' argument.
5534 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5536 2014-02-19 Tom Tromey <tromey@redhat.com>
5538 * target.h (struct target_ops) <to_use_agent>: Add argument.
5539 (target_use_agent): Add argument.
5540 * target.c (update_current_target): Update.
5541 * remote.c (remote_use_agent): Add 'self' argument.
5542 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5547 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5548 (target_traceframe_info): Add argument.
5549 * target.c (update_current_target): Update.
5550 * remote.c (remote_traceframe_info): Add 'self' argument.
5551 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5555 * target.h (target_static_tracepoint_markers_by_strid): Add
5557 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5559 * target.c (update_current_target): Update.
5560 * remote.c (struct target_ops)
5561 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5562 * linux-nat.c (struct target_ops)
5563 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5565 2014-02-19 Tom Tromey <tromey@redhat.com>
5567 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5569 (target_static_tracepoint_marker_at): Add argument.
5570 * target.c (update_current_target): Update.
5571 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5574 2014-02-19 Tom Tromey <tromey@redhat.com>
5576 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5577 (target_set_permissions): Add argument.
5578 * target.c (update_current_target): Update.
5579 * remote.c (remote_set_permissions): Add 'self' argument.
5580 (remote_start_remote): Update.
5582 2014-02-19 Tom Tromey <tromey@redhat.com>
5584 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5585 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5586 (target_get_tib_address): Add argument.
5587 * target.c (update_current_target): Update.
5588 * remote.c (remote_get_tib_address): Add 'self' argument.
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5592 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5593 (target_set_trace_notes): Add argument.
5594 * target.c (update_current_target): Update.
5595 * remote.c (remote_set_trace_notes): Add 'self' argument.
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5601 (target_set_trace_buffer_size): Add argument.
5602 * target.c (update_current_target): Update.
5603 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5609 (target_set_circular_trace_buffer): Add argument.
5610 * target.c (update_current_target): Update.
5611 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5614 2014-02-19 Tom Tromey <tromey@redhat.com>
5616 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5618 (target_set_disconnected_tracing): Add argument.
5619 * target.c (update_current_target): Update.
5620 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5622 2014-02-19 Tom Tromey <tromey@redhat.com>
5624 * target.h (struct target_ops)
5625 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5626 (target_get_min_fast_tracepoint_insn_len): Add argument.
5627 * target.c (update_current_target): Update.
5628 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5631 2014-02-19 Tom Tromey <tromey@redhat.com>
5633 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5635 (target_get_raw_trace_data): Add argument.
5636 * target.c (update_current_target): Update.
5637 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5639 2014-02-19 Tom Tromey <tromey@redhat.com>
5641 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5643 (target_upload_trace_state_variables): Add argument.
5644 * target.c (update_current_target): Update.
5645 * remote.c (remote_upload_trace_state_variables): Add 'self'
5647 (remote_start_remote): Update.
5649 2014-02-19 Tom Tromey <tromey@redhat.com>
5651 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5653 (target_upload_tracepoints): Add argument.
5654 * target.c (update_current_target): Update.
5655 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5656 (remote_start_remote): Update.
5658 2014-02-19 Tom Tromey <tromey@redhat.com>
5660 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5661 (target_save_trace_data): Add argument.
5662 * target.c (update_current_target): Update.
5663 * remote.c (remote_save_trace_data): Add 'self' argument.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5669 * target.h (struct target_ops)
5670 <to_get_trace_state_variable_value>: Add argument.
5671 (target_get_trace_state_variable_value): Add argument.
5672 * target.c (update_current_target): Update.
5673 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5675 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5677 2014-02-19 Tom Tromey <tromey@redhat.com>
5679 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5680 * target.h (struct target_ops) <to_trace_find>: Add argument.
5681 (target_trace_find): Add argument.
5682 * target.c (update_current_target): Update.
5683 * remote.c (remote_trace_find): Add 'self' argument.
5684 * ctf.c (ctf_trace_find): Add 'self' argument.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5689 (target_trace_stop): Add argument.
5690 * target.c (update_current_target): Update.
5691 * remote.c (remote_trace_stop): Add 'self' argument.
5693 2014-02-19 Tom Tromey <tromey@redhat.com>
5695 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5696 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5698 (target_get_tracepoint_status): Add argument.
5699 * target.c (update_current_target): Update.
5700 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5702 2014-02-19 Tom Tromey <tromey@redhat.com>
5704 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5705 * target.h (struct target_ops) <to_get_trace_status>: Add
5707 (target_get_trace_status): Add argument.
5708 * target.c (update_current_target): Update.
5709 * remote.c (remote_get_trace_status): Add 'self' argument.
5710 (remote_start_remote, remote_can_download_tracepoint): Update.
5711 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * target.h (struct target_ops) <to_trace_start>: Add argument.
5716 (target_trace_start): Add argument.
5717 * target.c (update_current_target): Update.
5718 * remote.c (remote_trace_start): Add 'self' argument.
5720 2014-02-19 Tom Tromey <tromey@redhat.com>
5722 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5724 (target_trace_set_readonly_regions): Add argument.
5725 * target.c (update_current_target): Update.
5726 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5733 (target_disable_tracepoint): Add argument.
5734 * target.c (update_current_target): Update.
5735 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5741 (target_enable_tracepoint): Add argument.
5742 * target.c (update_current_target): Update.
5743 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5745 2014-02-19 Tom Tromey <tromey@redhat.com>
5747 * target.h (struct target_ops) <to_download_trace_state_variable>:
5749 (target_download_trace_state_variable): Add argument.
5750 * target.c (update_current_target): Update.
5751 * remote.c (remote_download_trace_state_variable): Add 'self'
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5758 (target_can_download_tracepoint): Add argument.
5759 * target.c (update_current_target): Update.
5760 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target.h (struct target_ops) <to_download_tracepoint>: Add
5766 (target_download_tracepoint): Add argument.
5767 * target.c (update_current_target): Update.
5768 * remote.c (remote_download_tracepoint): Add 'self' argument.
5770 2014-02-19 Tom Tromey <tromey@redhat.com>
5772 * target.h (struct target_ops) <to_trace_init>: Add argument.
5773 (target_trace_init): Add argument.
5774 * target.c (update_current_target): Update.
5775 * remote.c (remote_trace_init): Add 'self' argument.
5777 2014-02-19 Tom Tromey <tromey@redhat.com>
5779 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5780 * target.c (target_fileio_readlink): Add argument.
5781 * remote.c (remote_hostio_readlink): Add 'self' argument.
5782 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5787 * target.c (target_fileio_unlink): Add argument.
5788 * remote.c (remote_hostio_unlink): Add 'self' argument.
5789 (remote_file_delete): Update.
5790 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5795 * target.c (target_fileio_close): Add argument.
5796 * remote.c (remote_hostio_close): Add 'self' argument.
5797 (remote_hostio_close_cleanup): Update.
5798 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5800 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5802 2014-02-19 Tom Tromey <tromey@redhat.com>
5804 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5805 * target.c (target_fileio_pread): Add argument.
5806 * remote.c (remote_hostio_pread): Add 'self' argument.
5807 (remote_bfd_iovec_pread, remote_file_get): Update.
5808 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5810 2014-02-19 Tom Tromey <tromey@redhat.com>
5812 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5813 * target.c (target_fileio_pwrite): Add argument.
5814 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5815 (remote_file_put): Update.
5816 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5818 2014-02-19 Tom Tromey <tromey@redhat.com>
5820 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5821 * target.c (target_fileio_open): Add argument.
5822 * remote.c (remote_hostio_open): Add 'self' argument.
5823 (remote_bfd_iovec_open): Add 'self' argument.
5824 (remote_file_put): Add 'self' argument.
5825 (remote_file_get): Add 'self' argument.
5826 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5832 (target_can_run_breakpoint_commands): Add argument.
5833 * target.c (update_current_target): Update.
5834 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5836 (remote_insert_breakpoint): Add 'self' argument.
5837 (remote_insert_hw_breakpoint): Add 'self' argument.
5838 (remote_can_run_breakpoint_commands): Add 'self' argument.
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target.h (struct target_ops)
5843 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5844 (target_supports_evaluation_of_breakpoint_conditions): Add
5846 * target.c (update_current_target): Update.
5847 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5849 (remote_insert_breakpoint): Add 'self' argument.
5850 (remote_insert_hw_breakpoint): Add 'self' argument.
5851 (remote_supports_cond_breakpoints): Add 'self' argument.
5853 2014-02-19 Tom Tromey <tromey@redhat.com>
5855 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5857 (target_supports_string_tracing): Add argument.
5858 * target.c (update_current_target): Update.
5859 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target.h (struct target_ops)
5864 <to_supports_disable_randomization>: Add argument.
5865 * target.c (find_default_supports_disable_randomization): Add
5867 (target_supports_disable_randomization): Add argument.
5868 (find_default_supports_disable_randomization): Add 'self'
5870 * remote.c (extended_remote_supports_disable_randomization): Add
5872 (remote_supports_disable_randomization): Add 'self' argument.
5873 (extended_remote_create_inferior): Update.
5874 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5879 * target.h (struct target_ops)
5880 <to_supports_enable_disable_tracepoint>: Add argument.
5881 (target_supports_enable_disable_tracepoint): Add argument.
5882 * target.c (update_current_target): Update.
5883 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5886 2014-02-19 Tom Tromey <tromey@redhat.com>
5888 * target.h (struct target_ops) <to_supports_multi_process>: Add
5890 (target_supports_multi_process): Add argument.
5891 * target.c (update_current_target): Update.
5892 * remote.c (remote_supports_multi_process): Add 'self' argument.
5893 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5895 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.h (struct target_ops) <to_execution_direction>: Add
5902 (target_execution_direction): Add argument.
5903 * target.c (default_execution_direction): Add 'self' argument.
5904 * record-full.c (record_full_execution_direction): Add 'self'
5907 2014-02-19 Tom Tromey <tromey@redhat.com>
5909 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5911 (target_can_execute_reverse): Add argument.
5912 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5913 * record-full.c (record_full_can_execute_reverse): Add 'self'
5915 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5920 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5921 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5923 (target_get_ada_task_ptid): Add argument.
5924 * target.c (update_current_target): Update.
5925 (default_get_ada_task_ptid): Add 'self' argument.
5926 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5927 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5928 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5930 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5932 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5934 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5936 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5937 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5940 2014-02-19 Tom Tromey <tromey@redhat.com>
5942 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5943 (target_goto_bookmark): Add argument.
5944 * target.c (dummy_goto_bookmark): Add 'self' argument.
5945 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5947 2014-02-19 Tom Tromey <tromey@redhat.com>
5949 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5950 (target_get_bookmark): Add argument.
5951 * target.c (dummy_get_bookmark): Add 'self' argument.
5952 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5954 2014-02-19 Tom Tromey <tromey@redhat.com>
5956 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5958 (target_make_corefile_notes): Add argument.
5959 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5960 * procfs.c (procfs_make_note_section): Add 'self' argument.
5961 (procfs_make_note_section): Add 'self' argument.
5962 (procfs_make_note_section): Add 'self' argument.
5963 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5965 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5966 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5967 * exec.c (exec_make_note_section): Add 'self' argument.
5968 (exec_make_note_section): Add 'self' argument.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_find_memory_regions>: Add
5974 (target_find_memory_regions): Add argument.
5975 * target.c (dummy_find_memory_regions): Add 'self' argument.
5976 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5977 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5978 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5979 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5980 * exec. (exec_do_find_memory_regions): New global.
5981 (exec_set_find_memory_regions): Rewrite.
5982 (exec_find_memory_regions): New function.
5983 (init_exec_ops): Use exec_find_memory_regions.
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5987 * target.h (struct target_ops) <to_supports_non_stop>: Add
5989 * target.c (find_default_supports_non_stop): Add argument.
5990 (target_supports_non_stop): Add argument.
5991 (find_default_supports_non_stop): Add 'self' argument.
5992 * remote.c (remote_supports_non_stop): Add 'self' argument.
5993 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target.h (struct target_ops) <to_log_command>: Add argument.
5998 (target_log_command): Add argument.
5999 * serial.h (serial_log_command): Add 'self' argument.
6000 * serial.c (serial_log_command): Add 'self' argument.
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6004 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6005 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6007 (target_pid_to_exec_file): Add argument.
6008 * target.c (debug_to_pid_to_exec_file): Add argument.
6009 (update_current_target): Update.
6010 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6011 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6012 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6013 (linux_handle_extended_wait): Update.
6014 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6015 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6016 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6017 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops) <to_rcmd>: Add argument.
6022 (target_rcmd): Add argument.
6023 * target.c (debug_to_rcmd): Add argument.
6024 (update_current_target, do_monitor_command): Update.
6025 * remote.c (remote_rcmd): Add 'self' argument.
6026 * monitor.c (monitor_rcmd): Add 'self' argument.
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * windows-nat.c (windows_stop): Add 'self' argument.
6031 * target.h (struct target_ops) <to_stop>: Add argument.
6032 * target.c (target_stop): Add argument.
6033 (debug_to_stop): Add argument.
6034 (update_current_target): Update.
6035 * remote.c (remote_stop): Add 'self' argument.
6036 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6037 (gdbsim_cntrl_c): Update.
6038 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6039 * procfs.c (procfs_stop): Add 'self' argument.
6040 * nto-procfs.c (procfs_stop): Add 'self' argument.
6041 * monitor.c (monitor_stop): Add 'self' argument.
6042 (monitor_open): Update.
6043 * linux-nat.c (linux_nat_stop): Add argument.
6044 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6045 * gnu-nat.c (gnu_stop): Add 'self' argument.
6046 * darwin-nat.c (darwin_stop): Add 'self' argument.
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target.h (struct target_ops) <to_thread_name>: Add argument.
6051 * target.c (target_thread_name): Add argument.
6052 (update_current_target): Update.
6053 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6055 2014-02-19 Tom Tromey <tromey@redhat.com>
6057 * target.h (struct target_ops) <to_extra_thread_info>: Add
6059 (target_extra_thread_info): Add argument.
6060 * target.c (update_current_target): Update.
6061 * remote.c (remote_threads_extra_info): Add 'self' argument.
6062 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6064 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6065 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6066 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6068 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6070 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6072 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target.h (struct target_ops) <to_program_signals>: Add argument.
6078 * target.c (target_program_signals): Add argument.
6079 * remote.c (remote_program_signals): Add 'self' argument.
6081 2014-02-19 Tom Tromey <tromey@redhat.com>
6083 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6084 * target.c (target_pass_signals): Add argument.
6085 * remote.c (remote_pass_signals): Add 'self' argument.
6086 (remote_start_remote): Update.
6087 * procfs.c (procfs_pass_signals): Add 'self' argument.
6088 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6089 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6090 (linux_nat_create_inferior, linux_nat_attach): Update.
6092 2014-02-19 Tom Tromey <tromey@redhat.com>
6094 * windows-nat.c (windows_can_run): Add 'self' argument.
6095 * target.h (struct target_ops) <to_can_run>: Add argument.
6096 (target_can_run): Add argument.
6097 * target.c (debug_to_can_run): Add argument.
6098 (update_current_target): Update.
6099 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6100 * inf-child.c (inf_child_can_run): Add 'self' argument.
6101 * go32-nat.c (go32_can_run): Add 'self' argument.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target.h (struct target_ops) <to_has_exited>: Add argument.
6106 (target_has_exited): Add argument.
6107 * target.c (debug_to_has_exited): Add argument.
6108 (update_current_target): Update.
6110 2014-02-19 Tom Tromey <tromey@redhat.com>
6112 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6114 (target_set_syscall_catchpoint): Add argument.
6115 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6117 * target.c (update_current_target): Update.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6123 (target_remove_exec_catchpoint): Add argument.
6124 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6125 (update_current_target): Update.
6126 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6129 2014-02-19 Tom Tromey <tromey@redhat.com>
6131 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6133 (target_insert_exec_catchpoint): Add argument.
6134 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6135 (update_current_target): Update.
6136 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6139 2014-02-19 Tom Tromey <tromey@redhat.com>
6141 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6143 (target_remove_vfork_catchpoint): Add argument.
6144 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6145 (update_current_target): Update.
6146 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6149 2014-02-19 Tom Tromey <tromey@redhat.com>
6151 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6153 (target_insert_vfork_catchpoint): Add argument.
6154 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6155 (update_current_target): Update.
6156 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6163 (target_remove_fork_catchpoint): Add argument.
6164 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6165 (update_current_target): Update.
6166 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6169 2014-02-19 Tom Tromey <tromey@redhat.com>
6171 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6173 (target_insert_fork_catchpoint): Add argument.
6174 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6175 (update_current_target): Update.
6176 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6183 (target_post_startup_inferior): Add argument.
6184 * target.c (debug_to_post_startup_inferior): Add argument.
6185 (update_current_target): Update.
6186 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6188 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6190 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6192 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6194 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6196 (super_post_startup_inferior): Likewise.
6197 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6199 (super_post_startup_inferior): Likewise.
6200 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6201 Add 'self' argument.
6202 (super_post_startup_inferior): Likewise.
6204 2014-02-19 Tom Tromey <tromey@redhat.com>
6206 * target.h (struct target_ops) <to_load>: Add argument.
6207 * target.c (target_load): Add argument.
6208 (debug_to_load): Add argument.
6209 (update_current_target): Update.
6210 * remote.c (remote_load): Add 'self' argument.
6211 * remote-sim.c (gdbsim_load): Add 'self' argument.
6212 * remote-mips.c (mips_load): Add 'self' argument.
6213 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6214 * monitor.c (monitor_load): Add 'self' argument.
6215 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6220 (target_terminal_info): Add argument.
6221 * target.c (debug_to_terminal_info): Add argument.
6222 (default_terminal_info): Likewise.
6223 * inflow.c (child_terminal_info): Add 'self' argument.
6224 * inferior.h (child_terminal_info): Add 'self' argument.
6225 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6231 (target_terminal_save_ours): Add argument.
6232 * target.c (debug_to_terminal_save_ours): Add argument.
6233 (update_current_target): Update.
6234 * inflow.c (terminal_save_ours): Add 'self' argument.
6235 * inferior.h (terminal_save_ours): Add 'self' argument.
6237 2014-02-19 Tom Tromey <tromey@redhat.com>
6239 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6240 (target_terminal_ours): Add argument.
6241 * target.c (debug_to_terminal_ours): Add argument.
6242 (update_current_target): Update.
6243 * remote.c (remote_terminal_ours): Add 'self' argument.
6244 (remote_close): Update.
6245 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6246 * inflow.c (terminal_ours): Add 'self' argument.
6247 * inferior.h (terminal_ours): Add 'self' argument.
6248 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6250 2014-02-19 Pedro Alves <palves@redhat.com>
6251 Tom Tromey <tromey@redhat.com>
6253 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6255 (target_terminal_ours_for_output): Add argument.
6256 * target.c (debug_to_terminal_ours_for_output): Add argument.
6257 (update_current_target): Update.
6258 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6259 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6260 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6262 2014-02-19 Tom Tromey <tromey@redhat.com>
6264 * target.h (struct target_ops) <to_terminal_inferior>: Add
6266 * target.c (target_terminal_inferior): Add argument.
6267 (update_current_target): Update.
6268 * remote.c (remote_terminal_inferior): Add 'self' argument.
6269 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6270 * inflow.c (terminal_inferior): Add 'self' argument.
6271 * inferior.h (terminal_inferior): Add 'self' argument.
6272 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6273 (go32_terminal_inferior): Add 'self' argument.
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6277 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6278 (target_terminal_init): Add argument.
6279 * target.c (debug_to_terminal_init): Add argument.
6280 (update_current_target): Update.
6281 * inflow.c (terminal_init_inferior): Add 'self' argument.
6282 * inferior.h (terminal_init_inferior): Add 'self' argument.
6283 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6284 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6286 2014-02-19 Tom Tromey <tromey@redhat.com>
6288 * target.h (struct target_ops)
6289 <to_can_accel_watchpoint_condition>: Add argument.
6290 (target_can_accel_watchpoint_condition): Add argument.
6291 * target.c (debug_to_can_accel_watchpoint_condition): Add
6293 (update_current_target): Update.
6294 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6297 2014-02-19 Tom Tromey <tromey@redhat.com>
6299 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6301 (target_region_ok_for_hw_watchpoint): Add argument.
6302 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6303 (default_region_ok_for_hw_watchpoint): Add argument.
6304 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6305 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6307 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6309 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6311 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6313 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6315 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6317 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6318 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6320 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6321 Add 'self' argument.
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6327 (target_insert_watchpoint): Add argument.
6328 * target.c (debug_to_insert_watchpoint): Add argument.
6329 (update_current_target): Update.
6330 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6331 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6332 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6333 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6334 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6335 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6337 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6338 (procfs_insert_hw_watchpoint): Add 'self' argument.
6339 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6341 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6343 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6345 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6346 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6348 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6351 2014-02-19 Tom Tromey <tromey@redhat.com>
6353 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6355 (target_remove_watchpoint): Add argument.
6356 * target.c (debug_to_remove_watchpoint): Add argument.
6357 (update_current_target): Update.
6358 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6359 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6360 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6361 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6362 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6363 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6365 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6366 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6368 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6370 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6372 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6373 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6375 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6378 2014-02-19 Tom Tromey <tromey@redhat.com>
6380 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6382 (target_remove_hw_breakpoint): Add argument.
6383 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6384 (update_current_target): Update.
6385 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6386 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6388 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6389 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6391 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6394 2014-02-19 Tom Tromey <tromey@redhat.com>
6396 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6398 (target_insert_hw_breakpoint): Add argument.
6399 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6400 (update_current_target): Update.
6401 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6402 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6404 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6405 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6406 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6408 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6411 2014-02-19 Tom Tromey <tromey@redhat.com>
6413 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6415 (target_can_use_hardware_watchpoint): Add argument.
6416 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6417 (update_current_target): Update.
6418 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6420 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6422 * remote.c (remote_check_watch_resources): Add 'self' argument.
6423 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6424 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6426 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6427 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6429 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6431 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6433 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6435 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6437 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6439 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6440 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6442 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * target.h (struct target_ops) <to_post_attach>: Add argument.
6448 (target_post_attach): Add argument.
6449 * target.c (debug_to_post_attach): Add argument.
6450 (update_current_target): Update.
6451 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6452 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6453 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6454 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6455 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6459 * windows-nat.c (windows_close): Add 'self' argument.
6460 * tracepoint.c (tfile_close): Add 'self' argument.
6461 * target.h (struct target_ops) <to_close>: Add argument.
6462 * target.c (target_close): Add argument.
6463 (update_current_target): Update.
6464 * remote.c (remote_close): Add 'self' argument.
6465 * remote-sim.c (gdbsim_close): Add 'self' argument.
6466 * remote-mips.c (mips_close): Add 'self' argument.
6467 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6468 * record-full.c (record_full_close): Add 'self' argument.
6469 * record-btrace.c (record_btrace_close): Add 'self' argument.
6470 * monitor.h (monitor_close): Add 'self' argument.
6471 * monitor.c (monitor_close): Add 'self' argument.
6472 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6473 * linux-nat.c (linux_nat_close): Add argument.
6474 * go32-nat.c (go32_close): Add 'self' argument.
6475 * exec.c (exec_close_1): Add 'self' argument.
6476 * ctf.c (ctf_close): Add 'self' argument.
6477 * corelow.c (core_close): Add 'self' argument.
6478 (core_close_cleanup): Update.
6479 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6480 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6482 2014-02-19 Tom Tromey <tromey@redhat.com>
6484 * remote.c (remote_load): New function.
6485 (init_remote_ops): Use it.
6487 2014-02-19 Tom Tromey <tromey@redhat.com>
6489 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6491 * common/linux-btrace.h (linux_supports_btrace): Update.
6492 * remote.c (remote_supports_btrace): Add "self" argument.
6493 * target-delegates.c: Rebuild.
6494 * target.c (target_supports_btrace): Remove.
6495 * target.h (struct target_ops) <to_supports_btrace>: Add
6496 target_ops argument.
6497 (target_supports_btrace): New define.
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * record-full.c (record_full_beneath_to_resume_ops)
6502 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6503 (record_full_beneath_to_wait)
6504 (record_full_beneath_to_store_registers_ops)
6505 (record_full_beneath_to_store_registers)
6506 (record_full_beneath_to_xfer_partial_ops)
6507 (record_full_beneath_to_xfer_partial)
6508 (record_full_beneath_to_insert_breakpoint_ops)
6509 (record_full_beneath_to_insert_breakpoint)
6510 (record_full_beneath_to_remove_breakpoint_ops)
6511 (record_full_beneath_to_remove_breakpoint)
6512 (record_full_beneath_to_stopped_by_watchpoint)
6513 (record_full_beneath_to_stopped_data_address)
6514 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6515 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6516 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6517 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6518 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6519 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6520 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6521 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6522 (record_full_resume, record_full_wait_1)
6523 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6524 (record_full_store_registers, record_full_xfer_partial)
6525 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6526 (record_full_async, record_full_core_xfer_partial): Use target
6528 * target-delegates.c: Rebuild.
6529 * target.c (current_xfer_partial): Remove.
6530 (update_current_target): Do not INHERIT or de_fault
6531 to_insert_breakpoint, to_remove_breakpoint,
6532 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6533 to_is_async_p, to_async. Do not set to_xfer_partial field.
6534 (default_xfer_partial): Simplify.
6535 (current_xfer_partial): Remove.
6536 (target_wait, target_resume): Simplify.
6537 (find_default_can_async_p, find_default_is_async_p): Update.
6538 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6539 to_xfer_partial, to_stopped_by_watchpoint,
6540 to_stopped_data_address.
6541 (target_store_registers): Simplify.
6542 (forward_target_remove_breakpoint)
6543 (forward_target_insert_breakpoint): Remove.
6544 (target_remove_breakpoint, target_insert_breakpoint)
6545 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6546 * target.h (struct target_ops) <to_resume, to_wait,
6547 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6548 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6549 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6551 (forward_target_remove_breakpoint)
6552 (forward_target_insert_breakpoint): Remove.
6553 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6555 (record_btrace_insert_breakpoint): Delegate directly.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6560 * target-delegates.c: New file.
6561 * target.c: Include target-delegates.c.
6562 (init_dummy_target): Call install_dummy_methods.
6563 (complete_target_initialization): Call install_delegators.
6564 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6565 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6566 * make-target-delegates: New file.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * record.c (find_record_target): Use find_target_at.
6571 * target.c (find_target_at): New function.
6572 * target.h (find_target_at): Declare.
6574 2014-02-19 Tom Tromey <tromey@redhat.com>
6576 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6578 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6580 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6581 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6583 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6585 * linux-nat.c (save_sigtrap): Update.
6586 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6587 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6588 (linux_nat_close): Update.
6589 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6591 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6593 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6594 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6595 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6596 (tmp_to_async): Add 'ops' argument.
6597 (record_full_stopped_by_watchpoint, record_full_async)
6598 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6600 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6601 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6602 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6603 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6604 (remote_is_async_p, remote_async): Add 'ops' argument.
6605 (remote_stopped_data_address): Update.
6606 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6607 * target.c (update_current_target)
6608 (find_default_can_async_p, find_default_is_async_p): Update.
6609 (init_dummy_target): Update.
6610 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6611 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6612 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6613 (target_can_async_p, target_is_async_p, target_async)
6614 (target_stopped_by_watchpoint): Update.
6616 2014-02-19 Yao Qi <yao@codesourcery.com>
6619 * gdbarch.sh: Remove startup_gdbarch.
6620 * gdbarch.c: Regenerated.
6621 * gdbarch.h: Likewise.
6623 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6625 * rl78-tdep.c (rl78_g10_register_name): New function.
6626 (rl78_return_value): Add g10 support.
6627 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6630 2014-02-17 Doug Evans <xdje42@gmail.com>
6632 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6633 (SUBDIR_GUILE_SRCS): Ditto.
6634 (scm-gsmob.o): Ditto.
6636 2014-02-17 Yao Qi <yao@codesourcery.com>
6638 * gnu-nat.c (ILL_RPC): Declare defined function.
6640 2014-02-17 Yao Qi <yao@codesourcery.com>
6642 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6643 mach_msg_type_number_t.
6644 (gnu_write_inferior): Likewise.
6646 2014-02-17 Yao Qi <yao@codesourcery.com>
6648 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6650 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6651 (inf_validate_procs, inf_signal): Likewise.
6652 (S_exception_raise_request): Likewise.
6653 (do_mach_notify_dead_name): Likewise.
6654 (steal_exc_port): Likewise.
6655 (gnu_read_inferior): Change 'copy_count''s type to
6656 mach_msg_type_number_t.
6657 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6660 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6662 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6663 flag. Adjust all users; in particular...
6664 (gnu_wait): ..., don't decrement its value in here...
6665 (gnu_create_inferior): ..., and instead set the flag in here,
6666 around the startup_inferior call, and call that one with
6667 START_INFERIOR_TRAPS_EXPECTED.
6669 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6670 (ILL_RPC): ... new macro.
6671 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6672 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6673 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6674 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6675 functions with ILL_RPC macro.
6676 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6677 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6678 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6679 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6680 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6681 (S_proc_getlogin_reply, S_proc_getsid_reply)
6682 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6683 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6684 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6685 (S_proc_getnports_reply, S_proc_is_important_reply)
6686 (S_proc_get_code_reply): New stub functions, generated with
6689 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6690 collected the type check structures.
6692 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6694 2014-02-14 Doug Evans <dje@google.com>
6696 * target.c (target_write_partial): Fix result type.
6698 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6700 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6701 the proper offsets to access fpregset_t.
6703 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6705 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6706 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6707 * h8300-tdep.c (setmachinelist): Remove global.
6708 * hppa-tdep.c (hppa_sigtramp): Remove global.
6709 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6710 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6711 * ravenscar-thread.c (update_target_observer): Remove global.
6712 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6714 2014-02-12 Tom Tromey <tromey@redhat.com>
6716 * common/rsp-low.c: Update comments.
6717 * common/rsp-low.h: Update comments.
6719 2014-02-12 Tom Tromey <tromey@redhat.com>
6721 * common/rsp-low.c (convert_ascii_to_int): Remove.
6722 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6724 2014-02-12 Tom Tromey <tromey@redhat.com>
6726 * common/rsp-low.h (unhexify): Don't declare.
6727 * common/rsp-low.c (unhexify): Remove.
6729 2014-02-12 Tom Tromey <tromey@redhat.com>
6731 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6732 * common/rsp-low.c (convert_int_to_ascii): Remove.
6734 2014-02-12 Tom Tromey <tromey@redhat.com>
6736 * common/rsp-low.h (hexify): Don't declare.
6737 * common/rsp-low.c (hexify): Remove.
6739 2014-02-12 Tom Tromey <tromey@redhat.com>
6741 * common/rsp-low.c (hexify): Never take strlen of argument.
6743 2014-02-12 Tom Tromey <tromey@redhat.com>
6745 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6746 * remote.c (extended_remote_run, remote_rcmd)
6747 (remote_download_trace_state_variable, remote_save_trace_data)
6748 (remote_set_trace_notes): Update.
6749 * tracepoint.c (encode_source_string, tfile_write_status)
6750 (tfile_write_uploaded_tsv): Update.
6752 2014-02-12 Tom Tromey <tromey@redhat.com>
6754 * tracepoint.c: Include rsp-low.h.
6755 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6756 * remote.c: Include rsp-low.h.
6757 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6758 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6759 (remote_unescape_input): Move to common/rsp-low.c.
6760 * common/rsp-low.h: New file.
6761 * common/rsp-low.c: New file.
6762 * Makefile.in (SFILES): Add common/rsp-low.c.
6763 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6764 (COMMON_OBS): Add rsp-low.o.
6765 (rsp-low.o): New target.
6767 2014-02-12 Tom Tromey <tromey@redhat.com>
6769 * utils.h: Include print-utils.h.
6770 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6771 (int_string, core_addr_to_string, core_addr_to_string_nz)
6772 (hex_string, hex_string_custom): Don't declare.
6773 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6774 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6775 (hex_string_custom, int_string, core_addr_to_string)
6776 (core_addr_to_string_nz, host_address_to_string): Move to
6777 common/print-utils.c.
6778 * common/print-utils.h: New file.
6779 * common/print-utils.c: New file
6780 * Makefile.in (SFILES): Add common/print-utils.c.
6781 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6782 (COMMON_OBS): Add print-utils.o.
6783 (print-utils.o): New target.
6785 2014-02-12 Tom Tromey <tromey@redhat.com>
6787 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6789 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6791 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6793 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6795 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6796 if a PT_IO ptrace request returns sucessfully but indicates that 0
6797 bytes were transferred.
6799 2014-02-12 Pedro Alves <palves@redhat.com>
6800 Kevin Buettner <kevinb@redhat.com>
6802 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6803 TYPE_INSTANCE_FLAG_CODE_SPACE.
6805 2014-02-12 Pedro Alves <palves@redhat.com>
6807 * h8300-tdep.c (pseudo_from_raw_register)
6808 (raw_from_pseudo_register): New functions.
6809 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6812 2014-02-12 Pedro Alves <palves@redhat.com>
6814 * h8300-tdep.c (h8300_register_sim_regno): New function.
6815 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6816 gdbarch_register_sim_regno hook.
6818 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6820 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6822 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6824 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6826 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6828 * obsd-tdep.h (obsd_init_abi): New prototype.
6829 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6830 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6831 (obsd_init_abi): New functions.
6832 * i386obsd-tdep.c: Include "obsd-tdep.h".
6833 (i386obsd_init_abi): Call obsd_init_abi.
6834 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6835 (amd64obsd_init_abi): Call obsd_init_abi.
6836 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6837 obsd-tdep.c to gdb_target_obs.
6839 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6841 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6842 double float arguments to 16-byte in the argument slots.
6844 2014-02-11 Doug Evans <xdje42@gmail.com>
6846 * configure.ac: Don't crash if pkg-config is not found and guile
6847 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6849 * configure: Regenerate.
6851 2014-02-11 Yao Qi <yao@codesourcery.com>
6853 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6854 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6855 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6856 * gnu-nat.c (gnu_xfer_memory): Likewise.
6857 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6858 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6859 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6860 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6862 2014-02-11 Yao Qi <yao@codesourcery.com>
6864 * target.h (enum target_xfer_error): Rename to ...
6865 (enum target_xfer_status): ... it. New. All users updated.
6866 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6868 (TARGET_XFER_STATUS_ERROR_P): New macro.
6869 (target_xfer_error_to_string): Remove declaration.
6870 (target_xfer_status_to_string): Declare.
6871 (target_xfer_partial_ftype): Adjust it.
6872 (struct target_ops) <to_xfer_partial>: Return
6873 target_xfer_status. Add argument xfered_len. Update
6875 * target.c (target_xfer_error_to_string): Rename to ...
6876 (target_xfer_status_to_string): ... it. New. All callers
6878 (target_read_live_memory): Likewise. Call target_xfer_partial
6879 instead of target_read.
6880 (memory_xfer_live_readonly_partial): Return
6881 target_xfer_status. Add argument xfered_len.
6882 (raw_memory_xfer_partial): Likewise.
6883 (memory_xfer_partial_1): Likewise.
6884 (memory_xfer_partial): Likewise.
6885 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6886 properly. Update debug message.
6887 (default_xfer_partial, current_xfer_partial): Likewise.
6888 (target_write_partial): Likewise.
6889 (target_read_partial): Likewise. All callers updated.
6890 (read_whatever_is_readable): Likewise.
6891 (target_write_with_progress): Likewise.
6892 (target_read_alloc_1): Likewise.
6894 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6895 * auxv.c (procfs_xfer_auxv): Likewise.
6896 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6897 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6898 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6899 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6900 * corefile.c (read_memory): Adjust.
6901 * corelow.c (core_xfer_partial): Likewise.
6902 * ctf.c (ctf_xfer_partial): Likewise.
6903 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6905 (darwin_xfer_partial): Likewise.
6906 * exec.c (section_table_xfer_memory_partial): Likewise. All
6908 (exec_xfer_partial): Likewise.
6909 * exec.h (section_table_xfer_memory_partial): Update
6911 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6913 (gnu_xfer_partial): Likewise.
6914 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6915 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6916 (ia64_hpux_xfer_solib_got): Likewise.
6917 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6918 type of 'partial_len' to ULONGEST.
6919 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6920 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6921 (linux_nat_xfer_partial): Likewise.
6922 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6923 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6924 * monitor.c (monitor_xfer_memory): Likewise.
6925 (monitor_xfer_partial): Likewise.
6926 * procfs.c (procfs_xfer_partial): Likewise.
6927 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6928 * record-full.c (record_full_xfer_partial): Likewise.
6929 (record_full_core_xfer_partial): Likewise.
6930 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6931 (gdbsim_xfer_partial): Likewise.
6932 * remote.c (remote_write_bytes_aux): Likewise. All callers
6934 (remote_write_bytes, remote_read_bytes): Likewise. All
6936 (remote_flash_erase): Likewise. All callers updated.
6937 (remote_write_qxfer): Likewise. All callers updated.
6938 (remote_read_qxfer): Likewise. All callers updated.
6939 (remote_xfer_partial): Likewise.
6940 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6941 (rs6000_xfer_shared_libraries): Likewise.
6942 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6943 (sol_thread_xfer_partial): Likewise.
6944 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6945 (sparc_xfer_partial): Likewise.
6946 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6948 (spu_xfer_partial): Likewise.
6949 * spu-multiarch.c (spu_xfer_partial): Likewise.
6950 * tracepoint.c (tfile_xfer_partial): Likewise.
6951 * windows-nat.c (windows_xfer_memory): Likewise.
6952 (windows_xfer_shared_libraries): Likewise.
6953 (windows_xfer_partial): Likewise.
6954 * valprint.c: Replace 'target_xfer_error' with
6955 'target_xfer_status' in comments.
6957 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6959 Checked in by Joel Brobecker <brobecker@adacore.com>.
6960 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6962 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6964 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6965 function parameters.
6967 2014-02-10 Will Newton <will.newton@linaro.org>
6969 * elfread.c (elf_rel_plt_read): Look for a .got section if
6970 looking up .got.plt fails.
6971 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6972 on address passed to elf_gnu_ifunc_record_cache.
6973 (elf_gnu_ifunc_resolve_addr): Likewise.
6974 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6976 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6978 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6979 (X_RETTURN): New macro.
6980 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6982 * sparc64-tdep.c (sparc64_init_abi): Hook
6983 sparc_in_function_epilogue_p.
6985 2014-02-10 Gary Benson <gbenson@redhat.com>
6987 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6988 Rename name_matcher to symbol_matcher.
6990 2014-02-10 Gary Benson <gbenson@redhat.com>
6992 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6993 Use expand_symtabs_file_matcher_ftype and
6994 expand_symtabs_symbol_matcher_ftype.
6996 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6998 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6999 (struct ada_symbol_cache): New.
7000 (ada_free_symbol_cache): Forward declare.
7001 (struct ada_pspace_data): New.
7002 (ada_pspace_data_handle): New static global.
7003 (get_ada_pspace_data, ada_pspace_data_cleanup)
7004 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7005 (cache_space, cache): Delete, now folded inside struct
7007 (ada_get_symbol_cache): New function.
7008 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7010 (_initialize_ada_language): Remove initialization of cache_space.
7011 Move call to observer_attach_inferior_exit up, grouping it
7012 with the other observer registrations inside this function.
7013 Rename command to be more general. Add call to
7014 register_program_space_data_with_cleanup.
7016 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7018 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7019 ada_new_objfile_observer.
7020 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7021 (_initialize_tasks): Update uses of ada_new_objfile_observer
7022 and ada_tasks_normal_stop_observer.
7024 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7026 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7027 returned by the 'Length attribute to integer.
7029 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7031 * ada-lang.c (_initialize_ada_language): Initialize
7032 cache_space obstack.
7034 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7036 * ada-lang.c (HASH_SIZE): New macro.
7037 (struct cache_entry): New type.
7038 (cache_space, cache): New static globals.
7039 (ada_clear_symbol_cache, find_entry): New functions.
7040 (lookup_cached_symbol, cache_symbol): Implement.
7041 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7042 (_initialize_ada_language): Attach ada_new_objfile_observer
7043 and ada_free_objfile_observer.
7045 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7047 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7048 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7049 struct block * parameter.
7050 (ada_lookup_symbol_list_worker): Constify local variable "block".
7051 Remove cast which is no longer necessary.
7053 2014-02-10 Doug Evans <xdje42@gmail.com>
7055 Add Guile as an extension language.
7056 * NEWS: Mention Guile scripting.
7057 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7058 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7059 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7060 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7061 (CLIBS): Add GUILE_LIBS.
7062 (install-guile): New rule.
7063 (guile.o): New rule.
7064 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7065 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7066 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7067 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7068 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7069 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7070 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7071 * configure.ac: New option --with-guile.
7072 * configure: Regenerate.
7073 * config.in: Regenerate.
7074 * auto-load.c: Remove #include "python/python.h". Add #include
7075 "gdb/section-scripts.h".
7076 (source_section_scripts): Handle Guile scripts.
7077 (_initialize_auto_load): Add name of Guile objfile script to
7078 scripts-directory help text.
7079 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7080 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7081 (struct breakpoint): New member scm_bp_object.
7082 * defs.h (enum command_control_type): New value guile_control.
7083 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7085 (show_user): Update comment.
7086 (_initialize_cli_cmds): Update help text for "show user". Update help
7087 text for max-user-call-depth.
7088 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7090 (multi_line_command_p): Add guile_control.
7091 (print_command_lines): Handle guile_control.
7092 (execute_control_command, recurse_read_control_structure): Ditto.
7093 (process_next_line): Recognize "guile" commands.
7094 * disasm.c (gdb_disassemble_info): Make non-static.
7095 * disasm.h: #include "dis-asm.h".
7096 (struct gdbarch): Add forward decl.
7097 (gdb_disassemble_info): Declare.
7098 * extension.c: #include "guile/guile.h".
7099 (extension_languages): Add guile.
7100 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7101 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7102 * gdbtypes.c (get_unsigned_type_max): New function.
7103 (get_signed_type_minmax): New function.
7104 * gdbtypes.h (get_unsigned_type_max): Declare.
7105 (get_signed_type_minmax): Declare.
7106 * guile/README: New file.
7107 * guile/guile-internal.h: New file.
7108 * guile/guile.c: New file.
7109 * guile/guile.h: New file.
7110 * guile/scm-arch.c: New file.
7111 * guile/scm-auto-load.c: New file.
7112 * guile/scm-block.c: New file.
7113 * guile/scm-breakpoint.c: New file.
7114 * guile/scm-disasm.c: New file.
7115 * guile/scm-exception.c: New file.
7116 * guile/scm-frame.c: New file.
7117 * guile/scm-gsmob.c: New file.
7118 * guile/scm-iterator.c: New file.
7119 * guile/scm-lazy-string.c: New file.
7120 * guile/scm-math.c: New file.
7121 * guile/scm-objfile.c: New file.
7122 * guile/scm-ports.c: New file.
7123 * guile/scm-pretty-print.c: New file.
7124 * guile/scm-safe-call.c: New file.
7125 * guile/scm-string.c: New file.
7126 * guile/scm-symbol.c: New file.
7127 * guile/scm-symtab.c: New file.
7128 * guile/scm-type.c: New file.
7129 * guile/scm-utils.c: New file.
7130 * guile/scm-value.c: New file.
7131 * guile/lib/gdb.scm: New file.
7132 * guile/lib/gdb/boot.scm: New file.
7133 * guile/lib/gdb/experimental.scm: New file.
7134 * guile/lib/gdb/init.scm: New file.
7135 * guile/lib/gdb/iterator.scm: New file.
7136 * guile/lib/gdb/printing.scm: New file.
7137 * guile/lib/gdb/types.scm: New file.
7138 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7139 (VPATH): Add $(GUILE_SRCDIR).
7140 (GUILE_DIR): New variable.
7141 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7142 (all): Add stamp-guile dependency.
7143 (stamp-guile): New rule.
7144 (clean-guile, install-guile, uninstall-guile): New rules.
7145 (install-only): Add install-guile dependency.
7146 (uninstall): Add uninstall-guile dependency.
7147 (clean): Add clean-guile dependency.
7149 2014-02-09 Doug Evans <xdje42@gmail.com>
7151 Revert this patch (which I approved, mea culpa).
7153 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7155 * Makefile.in (all-lib): Remove.
7156 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7158 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7160 Fix Python stack corruption.
7161 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7164 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7166 * Makefile.in (all-lib): Remove.
7167 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7169 2014-02-07 Doug Evans <dje@google.com>
7171 * extension-priv.h (extension_language_script_ops): Add comment.
7172 (extension_language_ops): Add comment.
7173 (active_ext_lang_state): Fix typo in comment.
7175 2014-02-07 Pedro Alves <palves@redhat.com>
7177 PR breakpoints/16292
7178 * infrun.c (handle_signal_stop) <signal arrives while stepping
7179 over a breakpoint>: Switch back to the stepping thread.
7181 2014-02-07 Yao Qi <yao@codesourcery.com>
7183 * target.c (target_xfer_partial): Return zero if LEN is zero.
7185 2014-02-07 Yao Qi <yao@codesourcery.com>
7187 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7188 (ld_so_xfer_auxv): Likewise.
7189 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7190 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7191 * corelow.c (core_xfer_partial): Likewise.
7192 * ctf.c (ctf_xfer_partial): Likewise.
7193 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7194 (darwin_xfer_partial): Likewise.
7195 * exec.c (exec_xfer_partial): Likewise.
7196 * gnu-nat.c (gnu_xfer_partial): Likewise.
7197 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7198 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7199 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7200 * linux-nat.c (linux_xfer_siginfo): Likewise.
7201 (linux_proc_xfer_spu): Likewise.
7202 * procfs.c (procfs_xfer_partial): Likewise.
7203 * record-full.c (record_full_xfer_partial): Likewise.
7204 (record_full_core_xfer_partial): Likewise.
7205 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7206 * remote.c (remote_write_qxfer): Likewise.
7207 (remote_write_qxfer, remote_read_qxfer): Likewise.
7208 (remote_xfer_partial): Likewise.
7209 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7210 (rs6000_xfer_shared_libraries): Likewise.
7211 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7212 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7213 (spu_xfer_partial): Likewise.
7214 * target.c (memory_xfer_partial_1): Likewise.
7215 * tracepoint.c (tfile_xfer_partial): Likewise.
7216 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7217 (windows_xfer_partial): Likewise.
7219 2014-02-07 Yao Qi <yao@codesourcery.com>
7221 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7223 (core_xfer_shared_libraries_aix): Likewise.
7224 * gdbarch.c, gdbarch.h: Regenerated.
7225 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7226 ULONGEST. Change 'len_avail' type to ULONGEST.
7227 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7228 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7230 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7232 2014-02-07 Yao Qi <yao@codesourcery.com>
7234 * corefile.c (memory_error): Get 'exception' from ERR and pass
7235 'exception' to throw_error.
7237 2014-02-06 Doug Evans <xdje42@gmail.com>
7239 * configure.ac (libpython checking): Remove all but python.o from
7240 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7241 * configure: Regenerate.
7243 * Makefile.in (SFILES): Add extension.c.
7244 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7245 (COMMON_OBS): Add extension.o.
7246 * extension.h: New file.
7247 * extension-priv.h: New file.
7248 * extension.c: New file.
7250 * python/python-internal.h: #include "extension.h".
7251 (gdbpy_auto_load_enabled): Declare.
7252 (gdbpy_apply_val_pretty_printer): Declare.
7253 (gdbpy_apply_frame_filter): Declare.
7254 (gdbpy_preserve_values): Declare.
7255 (gdbpy_breakpoint_cond_says_stop): Declare.
7256 (gdbpy_breakpoint_has_cond): Declare.
7257 (void source_python_script_for_objfile): Delete.
7258 * python/python.c: #include "extension-priv.h".
7259 Delete inclusion of "observer.h".
7260 (extension_language_python): Moved here and renamed from
7261 script_language_python in py-auto-load.c.
7262 Redefined to be of type extension_language_defn.
7263 (python_extension_script_ops): New global.
7264 (python_extension_ops): New global.
7265 (struct python_env): New member previous_active.
7266 (restore_python_env): Call restore_active_ext_lang.
7267 (ensure_python_env): Call set_active_ext_lang.
7268 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7270 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7272 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7274 (gdbpy_eval_from_control_command): Renamed from
7275 eval_python_from_control_command, made static. New arg extlang.
7276 (gdbpy_source_script) Renamed from source_python_script, made static.
7278 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7279 result to int. New arg extlang.
7280 (gdbpy_source_objfile_script): Renamed from
7281 source_python_script_for_objfile, made static. New arg extlang.
7282 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7283 static. New args extlang, extlang_printers. Change result type to
7285 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7286 static. New arg extlang. Rename arg printers to extlang_printers
7287 and change type to ext_lang_type_printers *.
7288 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7289 static. Replace argument arg with extlang, extlang_printers.
7290 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7291 (!HAVE_PYTHON, source_python_script): Delete.
7292 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7293 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7294 (!HAVE_PYTHON, start_type_printers): Delete.
7295 (!HAVE_PYTHON, apply_type_printers): Delete.
7296 (!HAVE_PYTHON, free_type_printers): Delete.
7297 (_initialize_python): Delete call to observer_attach_before_prompt.
7298 (finalize_python): Set/restore active extension language.
7299 (gdbpy_finish_initialization) Renamed from
7300 finish_python_initialization, made static. New arg extlang.
7301 (gdbpy_initialized): New function.
7302 * python/python.h: #include "extension.h". Delete #include
7303 "value.h", "mi/mi-cmds.h".
7304 (extension_language_python): Declare.
7305 (GDBPY_AUTO_FILE_NAME): Delete.
7306 (enum py_bt_status): Moved to extension.h and renamed to
7308 (enum frame_filter_flags): Moved to extension.h.
7309 (enum py_frame_args): Moved to extension.h and renamed to
7310 ext_lang_frame_args.
7311 (finish_python_initialization): Delete.
7312 (eval_python_from_control_command): Delete.
7313 (source_python_script): Delete.
7314 (apply_val_pretty_printer): Delete.
7315 (apply_frame_filter): Delete.
7316 (preserve_python_values): Delete.
7317 (gdbpy_script_language_defn): Delete.
7318 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7319 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7321 * auto-load.c: #include "extension.h".
7322 (GDB_AUTO_FILE_NAME): Delete.
7323 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7324 (script_language_gdb): Delete, moved to extension.c and renamed to
7325 extension_language_gdb.
7326 (source_gdb_script_for_objfile): Delete.
7327 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7328 (loaded_script): Change type of language member to
7329 struct extension_language_defn *.
7330 (init_loaded_scripts_info): Initialize
7331 unsupported_script_warning_printed.
7332 (maybe_add_script): Make static. Change type of language arg to
7333 struct extension_language_defn *.
7334 (clear_section_scripts): Reset unsupported_script_warning_printed.
7335 (auto_load_objfile_script_1): Rewrite to use extension language API.
7336 (auto_load_objfile_script): Make public. Remove support-compiled-in
7337 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7338 (source_section_scripts): Rewrite to use extension language API.
7339 (load_auto_scripts_for_objfile): Rewrite to use
7340 auto_load_scripts_for_objfile.
7341 (collect_matching_scripts_data): Change type of language member to
7342 struct extension_language_defn *.
7343 (auto_load_info_scripts): Change type of language arg to
7344 struct extension_language_defn *.
7345 (unsupported_script_warning_print): New function.
7346 (script_not_found_warning_print): Make static.
7347 (_initialize_auto_load): Rewrite construction of scripts-directory
7349 * auto-load.h (struct objfile): Add forward decl.
7350 (struct script_language): Delete.
7351 (struct auto_load_pspace_info): Add forward decl.
7352 (struct extension_language_defn): Add forward decl.
7353 (maybe_add_script): Delete.
7354 (auto_load_objfile_script): Declare.
7355 (script_not_found_warning_print): Delete.
7356 (auto_load_info_scripts): Update prototype.
7357 (auto_load_gdb_scripts_enabled): Declare.
7358 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7359 auto_load_python_scripts_enabled and made public.
7360 (script_language_python): Delete, moved to python.c.
7361 (gdbpy_script_language_defn): Delete.
7362 (info_auto_load_python_scripts): Update to use
7363 extension_language_python.
7365 * breakpoint.c (condition_command): Replace call to
7366 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7367 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7368 with call to breakpoint_ext_lang_cond_says_stop.
7369 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7370 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7371 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7372 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7374 (local_setattro): Print name of extension language with existing
7377 * valprint.c (val_print, value_print): Update to call
7378 apply_ext_lang_val_pretty_printer.
7379 * cp-valprint.c (cp_print_value): Update call to
7380 apply_ext_lang_val_pretty_printer.
7381 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7382 (gdbpy_apply_val_pretty_printer): Renamed from
7383 apply_val_pretty_printer. New arg extlang.
7384 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7386 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7387 extension language API.
7388 * cli/cli-script.c (execute_control_command): Update to call
7389 eval_ext_lang_from_control_command.
7391 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7392 enum ext_lang_bt_status values. Update call to
7393 apply_ext_lang_frame_filter.
7394 (mi_cmd_stack_list_locals): Ditto.
7395 (mi_cmd_stack_list_args): Ditto.
7396 (mi_cmd_stack_list_variables): Ditto.
7397 * mi/mi-main.c: Delete #include "python/python-internal.h".
7398 Add #include "extension.h".
7399 (mi_cmd_list_features): Replace reference to python internal variable
7400 gdb_python_initialized with call to ext_lang_initialized_p.
7402 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7403 Update to use enum ext_lang_frame_args. Update to call
7404 apply_ext_lang_frame_filter.
7405 * python/py-framefilter.c (extract_sym): Update to use enum
7407 (extract_value, py_print_type, py_print_value): Ditto.
7408 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7409 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7410 (py_print_frame): Ditto.
7411 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7412 New arg extlang. Update to use enum ext_lang_bt_status.
7414 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7415 finish_python_initialization. Replace with call to
7416 finish_ext_lang_initialization.
7418 * typeprint.c (do_free_global_table): Update to call
7419 free_ext_lang_type_printers.
7420 (create_global_typedef_table): Update to call
7421 start_ext_lang_type_printers.
7422 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7423 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7424 (type_print_options): Change type of global_printers from "void *"
7425 to "struct ext_lang_type_printers *".
7427 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7428 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7429 (gdbpy_preserve_values): Renamed from preserve_python_values.
7431 (!HAVE_PYTHON, preserve_python_values): Delete.
7433 * utils.c (quit_flag): Delete, moved to extension.c.
7434 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7437 * eval.c: Delete #include "python/python.h".
7438 * main.c: Delete #include "python/python.h".
7440 * defs.h: Update comment.
7442 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7446 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7448 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7451 2014-02-05 Yao Qi <yao@codesourcery.com>
7453 * remote.c (remote_pass_signals): Remove local 'buf' and use
7455 (remote_program_signals): Likewise.
7457 2014-02-05 Yao Qi <yao@codesourcery.com>
7459 * ctf.c: Include "inferior.h" and "gdbthread.h".
7460 (CTF_PID): A new macro.
7461 (ctf_open): Call inferior_appeared and add_thread_silent.
7462 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7463 (ctf_thread_alive): New function.
7464 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7466 2014-02-05 Yao Qi <yao@codesourcery.com>
7470 2013-05-24 Yao Qi <yao@codesourcery.com>
7472 * tracepoint.c (TFILE_PID): Remove.
7473 (tfile_open): Don't add thread and inferior.
7474 (tfile_close): Don't set 'inferior_ptid'. Don't call
7475 exit_inferior_silent.
7476 (tfile_thread_alive): Remove.
7477 (init_tfile_ops): Don't set field 'to_thread_alive' of
7480 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7482 * remote.c (remote_start_remote): Call remote_check_symbols even
7483 if only symbol-file (not file) has been given.
7485 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7487 * gdbarch.sh (skip_entrypoint): New callback.
7488 * gdbarch.c, gdbarch.h: Regenerate.
7489 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7490 * infrun.c (fill_in_stop_func): Likewise.
7491 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7492 (ppc_elfv2_elf_make_msymbol_special): New function.
7493 (ppc_elfv2_skip_entrypoint): Likewise.
7494 (ppc_linux_init_abi): Install them for ELFv2.
7496 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7498 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7499 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7500 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7501 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7502 structures returned in GPRs.
7504 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7506 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7507 offset to the stack parameter list for the ELFv2 ABI.
7509 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7511 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7512 set_gdbarch_convert_from_func_ptr_addr and
7513 set_gdbarch_elf_make_msymbol_special for ELFv1.
7514 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7515 function descriptors on ELFv1.
7516 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7517 set up r12 at function entry.
7519 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7521 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7522 (struct gdbarch_tdep): New member elf_abi.
7524 * rs6000-tdep.c: Include "elf/ppc64.h".
7525 (rs6000_gdbarch_init): Detect ELF ABI version.
7527 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7530 within a register pair holding a DFP 128-bit value on little-endian.
7531 (ppc64_sysv_abi_return_value_base): Likewise.
7532 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7533 (dfp_pseudo_register_write): Likewise.
7535 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7537 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7538 offset on little-endian when passing _Decimal32.
7539 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7541 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7543 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7544 of the overlapped FP register within the VSX register on little-
7546 (efpr_pseudo_register_write): Likewise.
7548 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7550 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7551 offset on little-endian when passing small structures.
7553 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7555 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7556 (struct ppc64_sysv_argpos): New data structure.
7557 (ppc64_sysv_abi_push_float): Remove.
7558 (ppc64_sysv_abi_push_val): New function.
7559 (ppc64_sysv_abi_push_integer): Likewise.
7560 (ppc64_sysv_abi_push_freg): Likewise.
7561 (ppc64_sysv_abi_push_vreg): Likewise.
7562 (ppc64_sysv_abi_push_param): Likewise.
7563 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7564 (ppc64_sysv_abi_return_value_base): New function.
7565 (ppc64_sysv_abi_return_value): Refactor to use it.
7567 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7569 * NEWS: Document new target powerpc64le-*-linux*.
7571 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7573 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7574 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7576 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7577 register set used in ELF core dumps. Add floating-point register set.
7579 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7581 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7582 dwarf2_to_gdb[] table using symbolic constants. Adjust
7583 penultimate entry from number representing the PC register
7584 to symbolic constant representing the MDR register. Add
7585 constant for the PC register to the end of the table.
7587 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7589 * bsd-kvm.c: Include <sys/param.h>
7591 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7593 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7595 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7597 * ada-lang.h (clear_ada_sym_cache): Delete.
7599 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7601 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7603 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7605 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7606 the sigreturn register save area only if the syscall is
7609 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7611 * valops.c (value_slice): Minor reformatting.
7613 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7615 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7617 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7619 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7621 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7622 (ada_ignore_descriptive_types_p): New static global.
7623 (find_parallel_type_by_descriptive_type): Return immediately
7624 if ada_ignore_descriptive_types_p is set.
7625 (_initialize_ada_language): Register new commands "maintenance
7626 set ada", "maintenance show ada", "maintenance set ada
7627 ignore-descriptive-types" and "maintenance show ada
7628 ignore-descriptive-types".
7629 * NEWS: Add entry for new "maint ada set/show
7630 ignore-descriptive-types" commands.
7632 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7634 * record-btrace.c (record_btrace_close): Call btrace_teardown
7637 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7639 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7642 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7644 * ada-typeprint (type_is_full_subrange_of_target_type):
7646 (print_range): Add parameter bounds_prefered_p. If not set,
7647 try printing range types using the name of their base type.
7648 (print_range_type): Add parameter bounds_prefered_p.
7649 Use it in call to print_range.
7650 (print_array_type, ada_print_type): Update calls to print_range
7651 and print_range_type.
7653 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7655 * ada-typeprint.c (print_array_type, print_choices, print_range)
7656 (print_range_bound, print_dynamic_range_bound, print_range_type):
7659 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7661 * ada-typeprint.c (print_range): Add missing empty line
7662 after local declaration.
7664 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7666 * ada-valprint.c (print_optional_low_bound): Get index_type's
7667 target type for as long as it is a TYPE_CODE_RANGE.
7669 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7671 * procfs.c (procfs_make_note_section): Remove assertion and
7674 2014-01-24 Yao Qi <yao@codesourcery.com>
7676 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7677 * corelow.c (get_core_siginfo): Likewise.
7679 2014-01-24 Yao Qi <yao@codesourcery.com>
7681 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7682 ULONGEST. Don't check 'len' is negative.
7683 (remote_write_bytes): Change type of 'len' to ULONGEST.
7685 2014-01-23 Tom Tromey <tromey@redhat.com>
7688 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7689 Handle exception from frame.block.
7690 (FrameVars.fetch_frame_locals): Likewise.
7692 2014-01-23 Tom Tromey <tromey@redhat.com>
7695 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7696 on a NULL pointer. Move "goto error" to correct place.
7698 2014-01-23 Tom Tromey <tromey@redhat.com>
7701 * python/py-framefilter.c (apply_frame_filter): Call
7702 ensure_python_env after computing gdbarch.
7704 2014-01-23 Yao Qi <yao@codesourcery.com>
7706 * target.c (raw_memory_xfer_partial): Change argument type
7707 from void * to gdb_byte *.
7708 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7710 2014-01-22 Doug Evans <dje@google.com>
7712 New gdbserver option --debug-format=timestamp.
7715 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7717 * syscalls/s390x-linux.xml: New file.
7718 * syscalls/s390-linux.xml: New file.
7719 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7720 (XML_SYSCALL_FILENAME_S390X): Likewise.
7721 (op_svc): New enum value for SVC opcode.
7722 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7723 (s390_linux_get_syscall_number): New function.
7724 (s390_gdbarch_init): Register '*get_syscall_number' and the
7725 syscall xml file name.
7726 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7727 "s390-linux.xml" and "s390x-linux.xml".
7728 * NEWS: Announce new feature.
7730 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7732 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7734 2014-01-22 Pedro Alves <palves@redhat.com>
7736 * xtensa-config.c: Include defs.h.
7738 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7740 * common/common-utils.h: Add "ARI:" comment beside __func__
7743 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7745 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7746 documentation a bit.
7748 2014-01-21 Roland McGrath <mcgrathr@google.com>
7750 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7751 * configure: Regenerate.
7752 * aclocal.m4: Regenerate.
7753 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7754 New substituted variables.
7755 (install-strip): New target.
7756 (INSTALL_SCRIPT): New substituted variable.
7757 (FLAGS_TO_PASS): Add it.
7758 (install-only): Use $(INSTALL_SCRIPT) rather than
7759 $(INSTALL_PROGRAM) for gcore.
7761 2014-01-20 Tom Tromey <tromey@redhat.com>
7763 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7766 2014-01-20 Tom Tromey <tromey@redhat.com>
7768 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7769 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7770 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7771 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7772 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7773 (struct cmd_list_element) <flags>: Remove.
7774 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7775 doc_allocated>: New fields.
7776 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7778 * maint.c (maintenance_do_deprecate): Update.
7779 * top.c (execute_command): Update.
7781 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7783 * xtensa-linux-nat.c: Include asm/ptrace.h.
7785 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7787 * Makefile.in (SFILES): Add d-support.c.
7788 (COMMON_OBS): Add d-support.o.
7789 * d-lang.h (d_parse_symbol): Add comment, now defined in
7791 * d-lang.c (parse_call_convention)
7792 (parse_attributes, parse_function_types)
7793 (parse_function_args, parse_type, parse_identifier)
7794 (call_convention_p, d_parse_symbol): Move functions to ...
7795 * d-support.c: ... New file.
7797 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7799 * d-lang.h (d_parse_symbol): Add declaration.
7800 * d-lang.c (extract_identifiers)
7801 (extract_type_info): Remove functions.
7802 (parse_call_convention, parse_attributes)
7803 (parse_function_types, parse_function_args)
7804 (parse_type, parse_identifier, call_convention_p)
7805 (d_parse_symbol): New functions.
7806 (d_demangle): Use d_parse_symbol to demangle D symbols.
7808 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7810 * d-lang.h (struct builtin_d_type): New data type.
7811 (builtin_d_type): Add declaration.
7812 * d-lang.c (d_language_arch_info, build_d_types)
7813 (builtin_d_type): New functions.
7814 (enum d_primitive_types): New data type.
7815 (d_language_defn): Change c_language_arch_info to
7816 d_language_arch_info.
7817 (d_type_data): New static variable.
7818 (_initialize_d_language): Initialize d_type_data.
7820 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7822 * d-lang.h (d_main_name): Add declaration.
7823 * d-lang.c (d_main_name): New function.
7824 * symtab.c (find_main_name): Add call to d_main_name.
7826 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7828 * d-lang.c (d_language_defn): Change macro_expansion_c to
7831 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7833 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7835 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7837 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7838 gdb_exception" declaration.
7839 * remote.c (getpkt_or_notif_sane): Likewise.
7841 2014-01-17 Doug Evans <dje@google.com>
7843 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7844 function, contents of dirnames_to_char_ptr_vec_append moved here.
7845 (delim_string_to_char_ptr_vec): New function.
7846 (dirnames_to_char_ptr_vec_append): Rewrite.
7847 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7849 2014-01-17 Doug Evans <dje@google.com>
7851 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7853 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7854 #include "common-utils.h".
7855 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7856 * common/vec.h (VEC_ASSERT_PASS): Update.
7857 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7858 (MACH_CHECK_ERROR): Update.
7860 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7862 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7864 * gdbarch.h: Regenerate.
7866 2014-01-16 Tom Tromey <tromey@redhat.com>
7868 * value.c (struct value) <regnum>: Move earlier.
7870 2014-01-16 Tom Tromey <tromey@redhat.com>
7872 * remote.c (extended_remote_create_inferior): Rename from
7873 extended_remote_create_inferior_1. Add "ops" argument. Remove
7876 2014-01-16 Pedro Alves <palves@redhat.com>
7878 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7879 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7882 2014-01-16 Doug Evans <dje@google.com>
7884 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7888 * btrace.h (btrace_thread_flag): New.
7889 (struct btrace_thread_info) <flags>: New.
7890 * record-btrace.c (record_btrace_resume_thread)
7891 (record_btrace_find_thread_to_move, btrace_step_no_history)
7892 (btrace_step_stopped, record_btrace_start_replaying)
7893 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7894 (record_btrace_find_resume_thread): New.
7895 (record_btrace_resume, record_btrace_wait): Extend.
7896 (record_btrace_can_execute_reverse): New.
7897 (record_btrace_open): Fail in non-stop mode.
7898 (record_btrace_set_replay): Split into this, ...
7899 (record_btrace_stop_replaying): ... this, ...
7900 (record_btrace_clear_histories): ... and this.
7901 (init_record_btrace_ops): Init to_can_execute_reverse.
7902 * NEWS: Announce it.
7904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7906 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7907 (forward_target_decr_pc_after_break)
7908 (target_decr_pc_after_break): New.
7909 * target.c (forward_target_decr_pc_after_break)
7910 (target_decr_pc_after_break): New.
7911 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7912 instead of gdbarch_decr_pc_after_break.
7913 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7914 instead of gdbarch_decr_pc_after_break.
7915 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7916 instead of gdbarch_decr_pc_after_break.
7917 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7918 instead of gdbarch_decr_pc_after_break.
7919 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7920 instead of gdbarch_decr_pc_after_break.
7921 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7922 instead of gdbarch_decr_pc_after_break.
7924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7926 * btrace.c: Include regcache.h.
7927 (btrace_add_pc): New.
7928 (btrace_enable): Call btrace_add_pc.
7929 (btrace_is_empty): New.
7930 * btrace.h (btrace_is_empty): New.
7931 * record-btrace.c (require_btrace, record_btrace_info): Call
7934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7936 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7937 Support delta reads.
7938 (linux_disable_btrace): Change return type.
7939 * common/linux-btrace.h (linux_read_btrace): Change parameters
7940 and return type to allow error reporting. Update users.
7941 (linux_disable_btrace): Change return type. Update users.
7942 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7944 (btrace_error): New.
7945 (btrace_block) <begin>: Comment on BEGIN == 0.
7946 * btrace.c (btrace_compute_ftrace): Start from the end of
7948 (btrace_stitch_trace, btrace_clear_history): New.
7949 (btrace_fetch): Read delta trace, return if replaying.
7950 (btrace_clear): Move clear history code to btrace_clear_history.
7951 (parse_xml_btrace): Throw an error if parsing failed.
7952 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7953 and return type to allow error reporting.
7954 (target_read_btrace): Change parameters and return type to allow
7956 * target.c (target_read_btrace): Update.
7957 * remote.c (remote_read_btrace): Support delta reads. Pass
7959 * NEWS: Announce it.
7961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7963 * record.h (record_btrace_frame_unwind)
7964 (record_btrace_tailcall_frame_unwind): New declarations.
7965 * dwarf2-frame: Include record.h
7966 (dwarf2_frame_cfa): Throw an error for btrace frames.
7967 * record-btrace.c: Include hashtab.h.
7968 (btrace_get_bfun_name): New.
7969 (btrace_call_history): Call btrace_get_bfun_name.
7970 (struct btrace_frame_cache): New.
7972 (bfcache_hash, bfcache_eq, bfcache_new): New.
7973 (btrace_get_frame_function): New.
7974 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7975 (record_btrace_frame_this_id): Compute own id.
7976 (record_btrace_frame_prev_register): Provide PC, throw_error
7977 for all other registers.
7978 (record_btrace_frame_sniffer): Detect btrace frames.
7979 (record_btrace_tailcall_frame_sniffer): New.
7980 (record_btrace_frame_dealloc_cache): New.
7981 (record_btrace_frame_unwind): Add new functions.
7982 (record_btrace_tailcall_frame_unwind): New.
7983 (_initialize_record_btrace): Allocate cache.
7984 * btrace.c (btrace_clear): Call reinit_frame_cache.
7985 * NEWS: Announce it.
7987 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7989 * record-btrace.c (record_btrace_set_replay)
7990 (record_btrace_goto_begin, record_btrace_goto_end)
7991 (record_btrace_goto): New.
7992 (init_record_btrace_ops): Initialize them.
7993 * NEWS: Announce it.
7995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7997 * record-btrace.c (record_btrace_find_new_threads)
7998 (record_btrace_thread_alive): New.
7999 (init_record_btrace_ops): Initialize to_find_new_threads and
8002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8004 * record-btrace.c (record_btrace_resume): New.
8005 (record_btrace_wait): New.
8006 (init_record_btrace_ops): Initialize to_wait and to_resume.
8008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8010 * record-btrace.c (record_btrace_xfer_partial)
8011 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8012 (record_btrace_allow_memory_access): New.
8013 (init_record_btrace_ops): Initialize new methods.
8014 * target.c (raw_memory_xfer_partial): Bail out if target reports
8015 that this memory is not available.
8017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8019 * target.h (target_ops) <to_insert_breakpoint>
8020 <to_remove_breakpoint>: Add target_ops parameter.
8021 (forward_target_insert_breakpoint): New.
8022 (forward_target_remove_breakpoint): New.
8023 (memory_remove_breakpoint, memory_insert_breakpoint):
8024 Add target_ops parameter.
8025 * target.c (target_insert_breakpoint): Split into this and ...
8026 (forward_target_insert_breakpoint): ... this.
8027 (target_remove_breakpoint): Split into this and ...
8028 (forward_target_remove_breakpoint): ... this.
8029 (debug_to_insert_breakpoint): Add target_ops parameter.
8030 Call forward_target_insert_breakpoint.
8031 (debug_to_remove_breakpoint): Add target_ops parameter.
8032 Call forward_target_remove_breakpoint.
8033 (update_current_target): Do not inherit or default to_insert_breakpoint
8034 and to_remove_breakpoint.
8035 * corelow.c (ignore): Add target_ops parameter.
8036 * exec.c (ignore): Add target_ops parameter.
8037 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8038 Add target_ops parameter.
8039 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8040 Add target_ops parameter.
8041 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8042 Add target_ops parameter.
8043 * record-full.c (record_full_beneath_to_insert_breakpoint)
8044 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8045 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8046 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8047 (record_full_core_remove_breakpoint): Add target_ops parameter.
8049 (record_full_beneath_to_insert_breakpoint_ops)
8050 (record_full_beneath_to_remove_breakpoint_ops)
8051 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8052 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8053 tmp_to_remove_breakpoint_ops,
8054 record_full_beneath_to_insert_breakpoint_ops, and
8055 record_full_beneath_to_remove_breakpoint_ops.
8056 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8057 (m32r_remove_breakpoint): Add target_ops parameter.
8058 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8059 Add target_ops parameter.
8060 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8061 Add target_ops parameter.
8063 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8064 Markus Metzger <markus.t.metzger@intel.com>
8066 * record-btrace.c: Include frame-unwind.h.
8067 (record_btrace_frame_unwind_stop_reason)
8068 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8069 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8071 (init_record_btrace_ops): Install it.
8073 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8075 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8078 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8080 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8083 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8085 * frame-unwind.c: Include target.h.
8086 (frame_unwind_try_unwinder): New function with code from ...
8087 (frame_unwind_find_by_frame): ... here. New variable
8088 unwinder_from_target, call also target_get_unwinder)
8089 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8090 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8091 * target.h (struct target_ops): New fields to_get_unwinder and
8092 to_get_tailcall_unwinder.
8093 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8097 * record-btrace.c (record_btrace_fetch_registers)
8098 (record_btrace_store_registers)
8099 (record_btrace_to_prepare_to_store): New.
8100 (init_record_btrace_ops): Add the above.
8102 2014-01-16 Tom Tromey <tromey@redhat.com>
8104 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8105 * target.h (struct target_ops) <to_prepare_to_store>: Add
8107 (target_prepare_to_store): Add argument.
8108 * target.c (debug_to_prepare_to_store): Add argument.
8109 (update_current_target): Update.
8110 * remote.c (remote_prepare_to_store): Add 'self' argument.
8111 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8112 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8113 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8114 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8116 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8117 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8118 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8119 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8120 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8124 * btrace.h (replay) <replay>: New.
8125 (btrace_is_replaying): New.
8126 * btrace.c (btrace_clear): Free replay iterator.
8127 (btrace_is_replaying): New.
8128 * record-btrace.c (record_btrace_is_replaying): New.
8129 (record_btrace_info): Print insn number if replaying.
8130 (record_btrace_insn_history): Start at replay position.
8131 (record_btrace_call_history): Start at replay position.
8132 (init_record_btrace_ops): Init to_record_is_replaying.
8134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8136 * record-btrace.c (record_btrace_insn_history_range): Include
8138 (record_btrace_insn_history_from): Adjust range.
8139 (record_btrace_call_history_range): Include
8141 (record_btrace_call_history_from): Adjust range.
8142 * NEWS: Announce changes.
8144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8146 * record.h (enum record_print_flag)
8147 <record_print_indent_calls>: New.
8148 * record.c (get_call_history_modifiers): Recognize /c modifier.
8149 (_initialize_record): Document /c modifier.
8150 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8151 Reorder fields. Optionally indent the function name. Update
8153 * NEWS: Announce changes.
8155 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8157 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8161 * btrace.c (ftrace_new_function): Start counting at one.
8162 * record-btrace.c (record_btrace_info): Adjust number of calls
8164 * NEWS: Announce it.
8166 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8168 * record-btrace.c (btrace_call_history_insn_range): Print
8169 insn range as [begin, end].
8171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8173 * btrace.h (struct btrace_func_link): New.
8174 (enum btrace_function_flag): New.
8175 (struct btrace_inst): Rename to ...
8176 (struct btrace_insn): ...this. Update all users.
8177 (struct btrace_func) <ibegin, iend>: Remove.
8178 (struct btrace_func_link): New.
8179 (struct btrace_func): Rename to ...
8180 (struct btrace_function): ...this. Update all users.
8181 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8182 (number, level, flags>: New.
8183 (struct btrace_insn_iterator): Rename to ...
8184 (struct btrace_insn_history): ...this.
8186 (struct btrace_insn_iterator, btrace_call_iterator): New.
8187 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8188 (struct btrace_target_info) <begin, end, level>
8189 <insn_history, call_history>: New.
8190 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8191 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8192 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8193 (btrace_call_number, btrace_call_begin, btrace_call_end)
8194 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8195 (btrace_find_function_by_number, btrace_set_insn_history)
8196 (btrace_set_call_history): New.
8197 * btrace.c (btrace_init_insn_iterator)
8198 (btrace_init_func_iterator, compute_itrace): Remove.
8199 (ftrace_print_function_name, ftrace_print_filename)
8200 (ftrace_skip_file): Change
8202 (ftrace_init_func): Remove.
8203 (ftrace_debug): Use new btrace_function fields.
8204 (ftrace_function_switched): Also consider gaining and
8205 losing symbol information).
8206 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8207 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8208 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8210 (ftrace_new_function): Move. Remove debug print.
8211 (ftrace_update_lines, ftrace_update_insns): New.
8212 (ftrace_update_function): Check for call, ret, and jump.
8213 (compute_ftrace): Renamed to ...
8214 (btrace_compute_ftrace): ...this. Rewritten to compute call
8216 (btrace_fetch, btrace_clear): Updated.
8217 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8218 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8219 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8220 (btrace_call_number, btrace_call_begin, btrace_call_end)
8221 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8222 (btrace_find_function_by_number, btrace_set_insn_history)
8223 (btrace_set_call_history): New.
8224 * record-btrace.c (require_btrace): Use new btrace thread
8226 (record_btrace_info, btrace_insn_history)
8227 (record_btrace_insn_history, record_btrace_insn_history_range):
8228 Use new btrace thread info fields and new iterator.
8229 (btrace_func_history_src_line): Rename to ...
8230 (btrace_call_history_src_line): ...this. Use new btrace
8232 (btrace_func_history): Rename to ...
8233 (btrace_call_history): ...this. Use new btrace thread info
8234 fields and new iterator.
8235 (record_btrace_call_history, record_btrace_call_history_range):
8236 Use new btrace thread info fields and new iterator.
8238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8240 * frame.h (frame_id_build_unavailable_stack_special): New.
8241 * frame.c (frame_id_build_unavailable_stack_special): New.
8243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8245 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8246 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8247 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8249 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8250 (i386_insn_is_jump, i386_jmp_p): New.
8251 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8252 insn_is_jump to gdbarch.
8253 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8254 * gdbarch.h: Regenerated.
8255 * gdbarch.c: Regenerated.
8256 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8257 (default_insn_is_jump): New.
8258 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8259 (default_insn_is_jump): New.
8261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8263 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8265 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8266 (btrace_read_type) <btrace_read_new>: Change to ...
8267 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8271 * common/linux-btrace.c (linux_read_btrace): Free trace from
8274 2014-01-15 Doug Evans <dje@google.com>
8276 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8279 2014-01-15 Tom Tromey <tromey@redhat.com>
8281 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8282 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8283 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8284 (set_objfile_main_name): New function.
8285 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8286 language_of_main>: New fields.
8287 (set_objfile_main_name): Declare.
8288 * symtab.c (find_main_name): Loop over objfiles to find the main
8290 (set_main_name): Now static.
8291 (get_main_info): Add comment.
8292 * symtab.h (set_main_name): Don't declare.
8294 2014-01-15 Tom Tromey <tromey@redhat.com>
8296 * symtab.c (main_progspace_key): New global.
8297 (struct main_info): New.
8298 (name_of_main, language_of_main): Remove.
8299 (get_main_info, main_info_cleanup): New function.
8300 (set_main_name, main_name, main_language): Use get_main_info.
8301 (_initialize_symtab): Initialize main_progspace_key.
8303 2014-01-15 Tom Tromey <tromey@redhat.com>
8305 * dbxread.c (process_one_symbol): Update.
8306 * dwarf2read.c (read_partial_die): Update.
8307 * symfile.c (set_initial_language): Call main_language.
8308 * symtab.c (language_of_main): Now static.
8309 (set_main_name): Add 'lang' parameter.
8310 (find_main_name): Update.
8311 (main_language): New function.
8312 (symtab_observer_executable_changed): Update.
8313 * symtab.h (set_main_name): Update.
8314 (language_of_main): Remove.
8315 (main_language): Declare.
8317 2014-01-15 Tom Tromey <tromey@redhat.com>
8319 * symfile.c (init_entry_point_info): Use new "initialized" field.
8321 * objfiles.h (struct entry_point) <initialized>: New field.
8322 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8323 (struct objfile) <ei>: ...here. Remove.
8324 * objfiles.c (entry_point_address_query): Update.
8326 2014-01-15 Tom Tromey <tromey@redhat.com>
8328 * objfiles.c (entry_point_address_query): Relocate entry point
8330 (objfile_relocate1): Do not relocate entry point address.
8331 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8332 <the_bfd_section_index>: New field.
8333 * symfile.c (init_entry_point_info): Find the entry point's
8336 2014-01-15 Tom Tromey <tromey@redhat.com>
8338 * solib-frv.c (enable_break): Use entry_point_address_query.
8340 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8342 * NEWS: Add note on improved process record-replay on
8343 arm*-linux* targets.
8345 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8347 * arm-tdep.c (enum arm_record_result): New enum.
8348 (arm_record_unsupported_insn): New function.
8349 (arm_record_coproc_data_proc): Removed.
8350 (thumb2_record_ld_st_multiple): New function.
8351 (thumb2_record_ld_st_dual_ex_tbb): New function.
8352 (thumb2_record_data_proc_sreg_mimm): New function.
8353 (thumb2_record_ps_dest_generic): New function.
8354 (thumb2_record_branch_misc_cntrl): New function.
8355 (thumb2_record_str_single_data): New function.
8356 (thumb2_record_ld_mem_hints): New function.
8357 (thumb2_record_ld_word): New function.
8358 (thumb2_record_lmul_lmla_div): New function.
8359 (thumb2_record_decode_insn_handler): New function.
8360 (decode_insn): Add thumb32 instruction handlers.
8362 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8364 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8365 (struct arm_linux_record_tdep): Declare.
8366 (arm_canonicalize_syscall): New function.
8367 (arm_all_but_pc_registers_record): New function.
8368 (arm_linux_syscall_record): New function.
8369 (arm_linux_init_abi): Add syscall recording constructs.
8370 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8371 decoding. (arm_record_coproc_data_proc): Update arm syscall
8373 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8374 <arm_syscall_record>: New field.
8375 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8378 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8380 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8381 register for push instruction recording.
8383 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8385 * arm-tdep.c (thumb_record_misc): Update to correct logical
8386 error while recording ldm, ldmia and pop instructions.
8388 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8390 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8392 2014-01-15 Pedro Alves <palves@redhat.com>
8394 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8395 (go32_resume, go32_fetch_registers, store_register)
8396 (go32_store_registers, go32_prepare_to_store)
8397 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8398 (go32_create_inferior, go32_can_run, go32_terminal_init)
8399 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8402 2014-01-15 Tom Tromey <tromey@redhat.com>
8404 * target.h (async_callback_ftype): New typedef.
8405 (struct target_ops) <to_async>: Use it.
8407 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8409 * python/py-value.c (get_field_type): Remove unnecessary curly
8410 braces for single-statement if block.
8412 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8414 * python/py-type.c (convert_field): Add missing empty line
8417 2014-01-14 Doug Evans <dje@google.com>
8419 * symfile.h (expand_symtabs_matching): Renamed from
8420 expand_partial_symbol_names. Update prototype.
8421 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8422 * symfile.c (expand_symtabs_matching): Renamed from
8423 expand_partial_symbol_names. New args file_matcher, kind.
8424 Rename arg fun to symbol_matcher.
8425 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8426 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8427 ada_expand_partial_symbol_name.
8428 (ada_make_symbol_completion_list): Update to call
8429 expand_symtabs_matching.
8430 (ada_add_global_exceptions): Call expand_symtabs_matching.
8431 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8432 call map_symbol_filenames.
8433 * symtab.c (sources_info): Update to call map_symbol_filenames.
8434 (search_symbols): Call expand_symtabs_matching.
8435 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8436 (default_make_symbol_completion_list_break_on): Update to call
8437 expand_symtabs_matching.
8438 (make_source_files_completion_list): Update to call
8439 map_symbol_filenames.
8441 2014-01-14 Doug Evans <dje@google.com>
8443 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8444 (expand_symtabs_symbol_matcher_ftype): New typedef.
8445 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8446 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8447 * symfile.c (expand_partial_symbol_names): Update to use
8448 expand_symtabs_symbol_matcher_ftype.
8449 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8450 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8451 Arg name_matcher renamed to symbol_matcher.
8452 * psymtab.c (recursively_search_psymtabs): Update to use
8453 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8455 (expand_symtabs_matching_via_partial): Update to use
8456 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8457 Arg name_matcher renamed to symbol_matcher.
8459 2014-01-14 Doug Evans <dje@google.com>
8461 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8462 (map_partial_symbol_filenames): Ditto.
8463 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8464 (map_partial_symbol_filenames): Ditto.
8465 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8466 (map_partial_symbol_filenames): Ditto.
8467 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8468 (map_partial_symbol_filenames): Ditto.
8469 * symtab.c: Delete #include "psymtab.h".
8471 2014-01-14 Pedro Alves <palves@redhat.com>
8472 Tom Tromey <tromey@redhat.com>
8474 * infrun.c (use_displaced_stepping): Use find_record_target
8475 instead of RECORD_IS_USED.
8476 (adjust_pc_after_break): Use record_full_is_used instead of
8478 * record-btrace.c (record_btrace_open): Call record_preopen
8479 instead of checking RECORD_IS_USED.
8480 * record-full.c (record_full_shortname)
8481 (record_full_core_shortname): New globals.
8482 (record_full_is_used): New function.
8483 (find_full_open): Call record_preopen instead of checking
8485 (init_record_full_ops): Set the target's shortname to
8486 record_full_shortname.
8487 (init_record_full_core_ops): Set the target's shortname to
8488 record_full_core_shortname.
8489 * record-full.h (record_full_is_used): Declare.
8490 * record.c (find_record_target): Make extern.
8491 (record_preopen): New function.
8492 * record.h (RECORD_IS_USED): Delete macro.
8493 (find_record_target, record_preopen): Declare functions.
8495 2014-01-14 Yao Qi <yao@codesourcery.com>
8497 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8498 'len''s type to ULONGEST.
8499 (core_xfer_shared_libraries_aix): Likewise.
8500 * gdbarch.c, gdbarch.h: Regenerated.
8501 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8502 Change type of 'len' to ULONGEST.
8503 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8504 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8506 2014-01-14 Yao Qi <yao@codesourcery.com>
8508 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8509 type of 'len' to ULONGEST.
8510 (linux_xfer_osdata_processgroups): Likewise.
8511 (linux_xfer_osdata_threads): Likewise.
8512 (linux_xfer_osdata_fds): Likewise.
8513 (linux_xfer_osdata_isockets): Likewise.
8514 (linux_xfer_osdata_shm): Likewise.
8515 (linux_xfer_osdata_sem): Likewise.
8516 (linux_xfer_osdata_msg): Likewise.
8517 (linux_common_xfer_osdata): Likewise.
8518 (struct osdata_type) <getter>: Likewise.
8519 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8522 2014-01-14 Yao Qi <yao@codesourcery.com>
8524 * target.h (target_xfer_partial_ftype): Update.
8525 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8527 * aix-thread.c (aix_thread_xfer_partial): Change type of
8528 argument 'len' to ULONGEST.
8529 * auxv.c (procfs_xfer_auxv): Likewise.
8530 (ld_so_xfer_auxv): Likewise.
8531 (memory_xfer_auxv): Likewise.
8532 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8533 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8534 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8535 * corelow.c (core_xfer_partial): Likewise.
8536 * ctf.c (ctf_xfer_partial): Likewise.
8537 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8539 (darwin_read_dyld_info): Likewise.
8540 (darwin_xfer_partial): Likewise.
8541 * exec.c (section_table_xfer_memory_partial): Likewise.
8542 (exec_xfer_partial): Likewise.
8543 * exec.h (section_table_xfer_memory_partial): Update
8545 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8546 instead of plongest.
8547 (gnu_xfer_partial): Likewise.
8548 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8549 (ia64_hpux_xfer_solib_got): Likewise.
8550 (ia64_hpux_xfer_partial): Likewise.
8551 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8552 * inf-ptrace.c (inf_ptrace_xfer_partial):
8553 * inf-ttrace.c (inf_ttrace_xfer_partial):
8554 * linux-nat.c (linux_xfer_siginfo): Likewise.
8555 (linux_nat_xfer_partial): Likewise.
8556 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8557 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8558 * monitor.c (monitor_xfer_memory): Likewise.
8559 (monitor_xfer_partial): Likewise.
8560 * procfs.c (procfs_xfer_partial): Likewise.
8561 * record-full.c (record_full_xfer_partial): Likewise.
8562 (record_full_core_xfer_partial): Likewise.
8563 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8564 instead of plongest.
8565 (gdbsim_xfer_partial): Likewise.
8566 * remote.c (remote_xfer_partial): Likewise.
8567 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8568 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8571 (rs6000_xfer_shared_libraries): Likewise.
8572 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8573 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8574 (sparc_xfer_partial): Likewise.
8575 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8576 (spu_xfer_partial): Likewise.
8577 * spu-multiarch.c (spu_xfer_partial): Likewise.
8578 * target.c (target_read_live_memory): Likewise.
8579 (memory_xfer_live_readonly_partial): Likewise.
8580 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8581 (target_xfer_partial, default_xfer_partial): Likewise.
8582 (current_xfer_partial): Likewise.
8583 * tracepoint.c (tfile_xfer_partial): Likewise.
8584 * windows-nat.c (windows_xfer_memory): Likewise. Call
8585 pulongest instead of plongest.
8586 (windows_xfer_partial): Likewise.
8587 (windows_xfer_shared_libraries): Likewise.
8589 2014-01-14 Yao Qi <yao@codesourcery.com>
8591 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8592 target_xfer_partial_ftype.
8594 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8598 * valops.c (value_struct_elt_bitpos): New function
8599 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8600 object to 'None' if the field name is an empty string ("").
8601 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8602 attribute to look for a field when 'name' is 'None'.
8603 (get_field_type): New function
8605 2014-01-13 Doug Evans <dje@google.com>
8608 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8609 (try_open_dwop_file): Ditto.
8610 * gdb_bfd.c: #include "vec.h".
8611 (bfdp): New typedef.
8612 (struct gdb_bfd_data): New member included_bfds.
8613 (gdb_bfd_unref): Unref all included bfds.
8614 (gdb_bfd_record_inclusion): New function.
8615 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8617 2014-01-13 Tom Tromey <tromey@redhat.com>
8619 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8621 2014-01-13 Tom Tromey <tromey@redhat.com>
8623 * defs.h (use_windows): Remove.
8624 * gdb.c (main): Update.
8625 * main.c (captured_main, gdb_main): Update.
8626 * main.h (struct captured_main_args) <use_windows>: Remove.
8627 * top.c (use_windows): Remove.
8629 2014-01-13 Tom Tromey <tromey@redhat.com>
8631 * defs.h (deprecated_flush_hook): Remove.
8633 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8636 * linux-thread-db.c (try_thread_db_load): Add parameter
8637 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8638 (try_thread_db_load_from_pdir_1): Move it there from here.
8639 (try_thread_db_load_from_sdir): Update caller.
8640 (try_thread_db_load_from_dir): Move it there from here.
8642 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8644 * regformats/regdat.sh: Always rewrite the register file.
8646 2014-01-13 Pedro Alves <palves@redhat.com>
8648 * Makefile.in (CHECK_HEADERS): New variable.
8649 (check-headers:): New rule.
8651 2014-01-13 Tom Tromey <tromey@redhat.com>
8653 * cli/cli-setshow.c (do_set_command): Update.
8654 * defs.h (deprecated_set_hook): Remove.
8655 * top.c (deprecated_set_hook): Remove.
8657 2014-01-13 Pedro Alves <palves@redhat.com>
8659 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8660 the tracepoint if the PC is a pseudo-register.
8662 2014-01-13 Tom Tromey <tromey@redhat.com>
8664 * defs.h (XCALLOC): Remove.
8665 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8666 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8667 * dwarf2loc.c (allocate_piece_closure): Likewise.
8668 * elfread.c (elf_symfile_segments): Likewise.
8669 (elf_symfile_segments): Likewise.
8670 * gdbtypes.c (copy_type_recursive): Likewise.
8671 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8672 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8673 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8675 * mt-tdep.c (mt_gdbarch_init): Likewise.
8676 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8678 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8679 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8680 * registry.c (registry_alloc_data): Likewise.
8681 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8682 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8683 * serial.c (serial_fdopen_ops): Likewise.
8684 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8686 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8687 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8690 2014-01-13 Tom Tromey <tromey@redhat.com>
8692 * defs.h (XMALLOC): Remove.
8693 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8694 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8695 * cli-out.c (struct ui_out *): Likewise.
8696 * cli/cli-dump.c (add_dump_command): Likewise.
8697 (add_dump_command): Likewise.
8698 * complaints.c (get_complaints): Likewise.
8699 (find_complaint): Likewise.
8700 * dwarf2-frame.c (execute_cfa_program): Likewise.
8701 * dwarf2read.c (abbrev_table_read_table): Likewise.
8702 * gdbarch.sh: Likewise.
8703 * gdbarch.c: Rebuild.
8704 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8705 * interps.c (interp_new): Likewise.
8706 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8707 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8708 * mi/mi-console.c (mi_console_file_new): Likewise.
8709 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8710 * mi/mi-out.c (mi_out_new): Likewise.
8711 * mi/mi-parse.c (mi_parse): Likewise.
8712 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8713 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8714 * observer.c (xalloc_observer_list_node): Likewise.
8715 * regcache.c (regcache_xmalloc_1): Likewise.
8716 * reggroups.c (reggroup_new): Likewise.
8717 (_initialize_reggroup): Likewise.
8718 * registry.c (register_data_with_cleanup): Likewise.
8719 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8720 * ser-base.c (serial_ttystate): Likewise.
8721 * ser-mingw.c (make_pipe_state): Likewise.
8722 * ser-pipe.c (pipe_open): Likewise.
8723 * serial.c (serial_open): Likewise.
8724 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8725 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8726 (tui_alloc_win_info): Likewise.
8727 (tui_add_content_elements): Likewise.
8728 * tui/tui-file.c (tui_file_new): Likewise.
8729 * tui/tui-out.c (tui_out_new): Likewise.
8730 * ui-file.c (mem_file_new): Likewise.
8731 * ui-out.c (push_level): Likewise.
8732 (make_cleanup_ui_out_end): Likewise.
8733 (append_header_to_list): Likewise.
8734 (ui_out_new): Likewise.
8735 * user-regs.c (user_reg_add_builtin): Likewise.
8737 2014-01-13 Tom Tromey <tromey@redhat.com>
8739 * defs.h (XZALLOC): Remove.
8740 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8741 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8742 (get_ada_tasks_inferior_data): Likewise.
8743 * auto-load.c (get_auto_load_pspace_data): Likewise.
8744 * auxv.c (get_auxv_inferior_data): Likewise.
8745 * bfd-target.c (target_bfd_reopen): Likewise.
8746 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8747 (deprecated_insert_raw_breakpoint): Likewise.
8748 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8749 * corelow.c (core_open): Likewise.
8750 * darwin-nat.c (darwin_check_new_threads): Likewise.
8751 (darwin_attach_pid): Likewise.
8752 * dummy-frame.c (dummy_frame_push): Likewise.
8753 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8754 * dwarf2loc.c (allocate_piece_closure): Likewise.
8755 * elfread.c (elf_symfile_segments): Likewise.
8756 * eval.c (ptrmath_type_p): Likewise.
8757 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8758 * gdbtypes.c (alloc_type_arch): Likewise.
8759 (alloc_type_instance): Likewise.
8760 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8761 * inf-child.c (inf_child_can_use_agent): Likewise.
8762 * inflow.c (get_inflow_inferior_data): Likewise.
8763 * infrun.c (save_infcall_suspend_state): Likewise.
8764 * jit.c (jit_reader_load): Likewise.
8765 (get_jit_objfile_data): Likewise.
8766 (get_jit_program_space_data): Likewise.
8767 (jit_object_open_impl): Likewise.
8768 (jit_symtab_open_impl): Likewise.
8769 (jit_block_open_impl): Likewise.
8770 (jit_frame_sniffer): Likewise.
8771 * linux-fork.c (add_fork): Likewise.
8772 * maint.c (make_command_stats_cleanup): Likewise.
8773 * objfiles.c (get_objfile_pspace_data): Likewise.
8774 * opencl-lang.c (struct lval_closure): Likewise.
8775 * osdata.c (osdata_start_osdata): Likewise.
8776 * progspace.c (new_address_space): Likewise.
8777 (add_program_space): Likewise.
8778 * remote-sim.c (get_sim_inferior_data): Likewise.
8779 * sh-tdep.c (sh_gdbarch_init): Likewise.
8780 * skip.c (Ignore): Likewise.
8781 (skip_delete_command): Likewise.
8782 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8783 (library_list_start_library): Likewise.
8784 (solib_aix_current_sos): Likewise.
8785 * solib-darwin.c (get_darwin_info): Likewise.
8786 (darwin_current_sos): Likewise.
8787 * solib-dsbt.c (get_dsbt_info): Likewise.
8788 * solib-ia64-hpux.c (new_so_list): Likewise.
8789 (ia64_hpux_get_solib_linkage_addr): Likewise.
8790 * solib-spu.c (append_ocl_sos): Likewise.
8791 (spu_current_sos): Likewise.
8792 * solib-svr4.c (get_svr4_info): Likewise.
8793 (svr4_keep_data_in_core): Likewise.
8794 (library_list_start_library): Likewise.
8795 (svr4_default_sos): Likewise.
8796 (svr4_read_so_list): Likewise.
8797 * solib-target.c (library_list_start_library): Likewise.
8798 (solib_target_current_sos): Likewise.
8799 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8800 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8801 * symfile.c (default_symfile_segments): Likewise.
8802 * target-descriptions.c (tdesc_data_init): Likewise.
8803 (tdesc_create_reg): Likewise.
8804 (struct tdesc_type *): Likewise.
8805 (tdesc_create_vector): Likewise.
8806 (tdesc_set_struct_size): Likewise.
8807 (struct tdesc_type *): Likewise.
8808 (tdesc_free_feature): Likewise.
8809 (tdesc_create_feature): Likewise.
8810 * windows-nat.c (windows_add_thread): Likewise.
8811 (windows_make_so): Likewise.
8812 * xml-support.c (gdb_xml_body_text): Likewise.
8813 (gdb_xml_create_parser_and_cleanup): Likewise.
8814 (xml_process_xincludes): Likewise.
8815 * xml-syscall.c (allocate_syscalls_info): Likewise.
8816 (syscall_create_syscall_desc): Likewise.
8818 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8820 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8821 function, with code from i386_stap_parse_special_token.
8822 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8823 (i386_stap_parse_special_token): Move code to the two functions
8826 2014-01-09 Pedro Alves <palves@redhat.com>
8827 Hui Zhu <hui@codesourcery.com>
8830 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8831 bp_err_string. Don't mark the location shlib_disabled if the
8832 error thrown wasn't a generic or memory error. Catch errors
8833 thrown while inserting breakpoints in overlayed code. Output
8834 error message of software breakpoints.
8835 * remote.c (remote_insert_breakpoint): If this breakpoint has
8836 target-side commands but this stub doesn't support Z0 packets,
8837 throw NOT_SUPPORTED_ERROR error.
8838 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8839 * target.h (target_insert_breakpoint): Extend comment.
8840 (target_insert_hw_breakpoint): Add comment.
8842 2014-01-08 Pedro Alves <palves@redhat.com>
8844 * remote.c (remote_add_thread): Add threads silently if starting
8846 (remote_notice_new_inferior): If in all-stop, and starting up,
8847 don't call notice_new_inferior.
8848 (get_current_thread): New function, factored out from ...
8849 (add_current_inferior_and_thread): ... this. Adjust.
8850 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8851 found any thread, then select the remote's current thread as GDB's
8854 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8856 * NEWS: Create a new section for the next release branch.
8857 Rename the section of the current branch, now that it has
8860 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8862 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8863 * version.in: Bump version to 7.7.50.DATE-cvs.
8865 2014-01-08 Yao Qi <yao@codesourcery.com>
8867 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8868 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8869 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8871 2014-01-08 Yao Qi <yao@codesourcery.com>
8873 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8874 return value of bfd_get_filename to symbol_file_add_from_bfd.
8876 2014-01-08 Pierre Muller <muller@sourceware.org>
8879 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8880 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8881 to prim_record_mininal_symbol_and_info.
8882 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8883 in call to prim_record_minimal_symbol_and_info.
8884 (read_pe_exported_syms): Set index field of section_data.
8886 2014-01-07 Andrew Pinski <apinski@cavium.com>
8888 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8889 * features/aarch64.c: Regenerate.
8891 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8893 * target.c (return_null): Define.
8894 (update_current_target): Use it instead of return_zero for
8895 functions that return a pointer.
8897 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8899 * source.c (add_path): Fix check for duplicated paths in the previously
8902 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8904 * ada-lang.c: Remove duplicated include statements.
8905 * alphabsd-nat.c: Ditto.
8906 * amd64-darwin-tdep.c: Ditto.
8907 * amd64fbsd-nat.c: Ditto.
8908 * auto-load.c: Ditto.
8910 * breakpoint.c: Ditto.
8912 * fork-child.c: Ditto.
8913 * gdb_usleep.c: Ditto.
8914 * i386-darwin-tdep.c: Ditto.
8915 * i386fbsd-nat.c: Ditto.
8917 * inferior.c: Ditto.
8919 * linux-nat.c: Ditto.
8920 * linux-tdep.c: Ditto.
8921 * m68kbsd-nat.c: Ditto.
8922 * m68klinux-nat.c: Ditto.
8923 * microblaze-tdep.c: Ditto.
8924 * mips-linux-tdep.c: Ditto.
8925 * mn10300-tdep.c: Ditto.
8926 * nto-tdep.c: Ditto.
8927 * opencl-lang.c: Ditto.
8929 * printcmd.c: Ditto.
8930 * regcache.c: Ditto.
8931 * remote-m32r-sdi.c: Ditto.
8935 * tilegx-linux-nat.c: Ditto.
8936 * tilegx-tdep.c: Ditto.
8937 * tracepoint.c: Ditto.
8939 * vaxbsd-nat.c: Ditto.
8940 * windows-nat.c: Ditto.
8941 * xtensa-tdep.c: Ditto.
8943 2014-01-07 Yao Qi <yao@codesourcery.com>
8945 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8947 2014-01-07 Yao Qi <yao@codesourcery.com>
8948 Joel Brobecker <brobecker@adacore.com>
8950 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8951 (pdc_write_regs): Likewise.
8952 (fetch_regs_kernel_thread): Likewise.
8953 (store_regs_kernel_thread): Likewise.
8955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8957 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8958 tagged type objects to their actual type.
8960 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8962 * ada-valprint.c (print_field_values): Add "language" parameter.
8963 Update calls to print_field_values and print_variant_part.
8964 Pass new parameter "language" in call to val_print instead
8965 of "current_language". Replace call to ada_val_print by call
8967 (print_variant_part): Add "language" parameter.
8968 (ada_val_print_struct_union): Update call to print_field_values.
8970 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8972 * ada-valprint.c (ui_memcpy): Delete.
8973 (ada_print_floating): Update documentation. Add empty line
8974 between between function documentation and implementation.
8975 Delete variable "buffer". Use ui_file_xstrdup in place of
8976 ui_file_put. Minor adjustments following this change.
8978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8980 * ada-valprint.c (ada_val_print_string): New function,
8981 extracted from ada_val_print_array.
8982 (ada_val_print_array): Replace extracted code by call
8983 to ada_val_print_string followed by a return. Move
8984 "else" branch to the function's top block.
8986 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8988 * ada-valprint.c (ada_val_print_array): Move implementation
8989 down. Rename parameter "offset" and "val" into "offset_aligned"
8990 and "original_value" respectively. Add parameter "offset".
8992 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8994 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8995 re-organizing the code. Change the "???" message printed
8996 when target type is a TYPE_CODE_UNDEF into
8997 "<ref to undefined type>".
8999 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9001 * ada-valprint.c (print_record): Delete, implementation inlined...
9002 (ada_val_print_struct_union): ... here. Remove call to
9003 ada_check_typedef in inlined implementation.
9005 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9007 * ada-valprint.c (ada_val_print_gnat_array): New function,
9008 extracted from ada_val_print_1;
9009 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9010 (ada_val_print_flt, ada_val_print_struct_union)
9011 (ada_val_print_ref): Likewise.
9012 (ada_val_print_1): Delete variables i and elttype.
9013 Replace extracted-out code by call to corresponding
9016 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9018 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9020 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9022 * ada-valprint.c (ada_val_print_1): Replace calls to
9023 ada_val_print_1 by calls to val_print.
9025 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9027 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9028 Update calls to self accordingly. Replace calls to c_val_print
9029 by calls to val_print.
9031 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9033 * ada-valprint.c (print_record): Delete declaration.
9034 (adjust_type_signedness, ada_val_print_1): Likewise.
9035 (ada_val_print): Move function implementation down.
9036 (print_variant_part, print_field_values, print_record):
9037 Move function implementation up.
9039 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9041 * python/py-type.c (typy_get_name): New function.
9042 (type_object_getset): Add entry for attribute "name".
9043 * NEWS: Add entry mentioning this new attribute.
9045 2014-01-07 Yao Qi <yao@codesourcery.com>
9047 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9050 2014-01-07 Yao Qi <yao@codesourcery.com>
9052 * gnu-nat.c (info_port_rights): Add qualifier const to
9055 2014-01-07 Yao Qi <yao@codesourcery.com>
9057 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9059 2014-01-07 Yao Qi <yao@codesourcery.com>
9061 * gnu-nat.c (make_inf) Update declaration.
9062 (make_inf): Make it static.
9063 (inf_set_traced): Likewise.
9064 (inf_port_to_thread, inf_task_died_status): Likewise.
9066 2014-01-07 Yao Qi <yao@codesourcery.com>
9068 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9070 2014-01-07 Yao Qi <yao@codesourcery.com>
9072 * gnu-nat.c (_initialize_gnu_nat): Declare.
9074 2014-01-07 Yao Qi <yao@codesourcery.com>
9076 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9078 (struct gdbarch_info) <byte_order>: Change type to
9080 <byte_order_for_code>: Likewise.
9081 * gdbarch.c, gdbarch.h: Regenerated.
9083 2014-01-06 Sasha Smundak <asmundak@google.com>
9085 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9087 2014-01-06 Tom Tromey <tromey@redhat.com>
9089 * doublest.c (convert_doublest_to_floatformat): Use const, not
9091 * somread.c (som_symtab_read): Likewise.
9093 2014-01-07 Hui Zhu <hui@codesourcery.com>
9095 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9096 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9097 (gdb_bfd_fopen): Ditto.
9098 (gdb_bfd_openr): Ditto.
9099 (gdb_bfd_openw): Ditto.
9100 (gdb_bfd_openr_iovec): Ditto.
9101 (gdb_bfd_fdopenr): Ditto.
9102 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9103 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9105 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9107 * symfile-mem.c (symbol_file_add_from_memory): Removed
9108 gdb_bfd_stash_filename.
9110 2014-01-03 Doug Evans <dje@google.com>
9112 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9115 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9117 Update year range in copyright notice of all files.
9119 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9121 * top.c (print_gdb_version): Set copyright year to 2014.
9123 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9125 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9127 For older changes see ChangeLog-2013.
9133 version-control: never