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