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