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