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