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