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