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