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