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