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