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