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