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