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