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