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