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