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