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