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