[Ada] gdb.ada/complete.exp failure on x86_64-windows
[external/binutils.git] / gdb / ChangeLog
1 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
4         it starts with '<'.
5
6 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
7
8         * ada-lang.c (ada_is_redundant_range_encoding): New function.
9         (ada_is_redundant_index_type_desc): New function.
10         (to_fixed_array_type): Ignore parallel XA type if redundant.
11
12 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
13
14         * ada-lang.c (constrained_packed_array_type): Set the length
15         of the return array as if both bounds where zero if that
16         returned array's index type is dynamic.
17
18 2014-11-19  Yao Qi  <yao@codesourcery.com>
19
20         * config/i386/go32.mh (CC): Remove.
21
22 2014-11-18  Doug Evans  <xdje42@gmail.com>
23
24         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
25         updated.
26
27 2014-11-18  Doug Evans  <xdje42@gmail.com>
28
29         * buildsym.c (buildsym_objfile): New static global.
30         (buildsym_comp_dir): New static global.
31         (finish_block_internal): Delete arg objfile.  All callers updated.
32         (finish_block): Delete arg objfile.  All callers updated.
33         (start_subfile): Delete arg dirname.  All callers updated.
34         (patch_subfile_names): Update buildsym_comp_dir.
35         (get_macro_table): Delete arg objfile.  All callers updated.
36         (start_symtab): New arg objfile.  All callers updated.
37         Rename arg dirname to comp_dir.
38         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
39         (end_symtab_get_static_block): Delete arg objfile.  All callers
40         updated.
41         (end_symtab_without_blockvector): Ditto.
42         (end_symtab_with_blockvector): Ditto.
43         (end_symtab_from_static_block): Ditto.
44         (end_symtab): Ditto.
45         (end_expandable_symtab): Ditto.
46         (augment_type_symtab): Ditto.
47         * coffread.c (coff_start_symtab): New arg objfile.  All callers
48         updated.
49
50 2014-11-18  Doug Evans  <xdje42@gmail.com>
51
52         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
53         updated.
54
55 2014-11-18  Doug Evans  <xdje42@gmail.com>
56
57         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
58         symtab.dirname updated to use it.
59
60 2014-11-18  Doug Evans  <xdje42@gmail.com>
61
62         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
63         symtab.objfile updated to use it.
64
65 2014-11-18  Doug Evans  <xdje42@gmail.com>
66
67         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
68
69 2014-11-18  Doug Evans  <xdje42@gmail.com>
70
71         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
72         SYMBOL_OBJFILE.
73         * findvar.c (default_read_var_value): Ditto.
74         * jv-lang.c (add_class_symtab_symbol): Ditto.
75         * parse.c (operator_check_standard): Ditto.
76         * printcmd.c (address_info): Ditto.
77         * symtab.c (fixup_symbol_section): Ditto.
78         (skip_prologue_sal): Ditto.
79         * tracepoint.c (scope_info): Ditto.
80         * valops.c (find_function_in_inferior): Ditto.
81         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
82         * python/py-symbol.c (set_symbol): Ditto.
83
84 2014-11-18  Doug Evans  <xdje42@gmail.com>
85
86         * buildsym.c (main_subfile): New static global.
87         (free_subfiles_list): New function.
88         (start_symtab): Set main_subfile.
89         (restart_symtab): Replace init of subfiles, current_subfile with
90         call to free_subfiles_list.
91         (watch_main_source_file_lossage): Use main_subfile.
92         (reset_symtab_globals): Replace init of current_subfile with call
93         to free_subfiles_list.
94         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
95         functions, split out from ...
96         (end_symtab_from_static_block): ... here.  Rewrite to call them.
97
98 2014-11-18  Doug Evans  <xdje42@gmail.com>
99
100         The result of symtab expansion is always a primary symtab.
101         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
102         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
103         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
104         (psymtab_to_symtab): Add comment and assert.
105         (map_matching_symbols_psymtab): Remove unnecessary test for
106         non-primary symtab.
107
108 2014-11-15  Doug Evans  <xdje42@gmail.com>
109
110         PR symtab/17559
111         * symtab.c (find_pc_line_symtab): New function.
112         * symtab.h (find_pc_line_symtab): Declare.
113         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
114         find_pc_symtab.
115         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
116         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
117         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
118         * tui/tui-win.c (make_visible_with_new_height): Ditto.
119         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
120         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
121
122 2014-11-15  Doug Evans  <xdje42@gmail.com>
123
124         * symtab.c (expand_symtab_containing_pc): Renamed from
125         find_pc_sect_symtab_via_partial.  All callers updated.
126
127 2014-11-15  Yao Qi  <yao@codesourcery.com>
128
129         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
130
131 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
132
133         * common/common-defs.h: Move <stdarg.h> #include ahead of
134         <stdio.h> #include.
135
136 2014-11-14  Pedro Alves  <palves@redhat.com>
137
138         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
139         [!PHONY_ICONV] (gdb_iconv): New function.
140         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
141
142 2014-11-13  Doug Evans  <dje@google.com>
143
144         PR symtab/17591
145         * dwarf2read.c (find_slot_in_mapped_hash): Handle
146         "(anonymous namespace)".
147
148 2014-11-13  Doug Evans  <dje@google.com>
149
150         * dwarf2read.c (update_enumeration_type_from_children): Avoid
151         infinite loop.
152
153 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
154
155         * NEWS (maint set target-async): Fix typo.
156
157 2014-11-12  Pedro Alves  <palves@redhat.com>
158
159         * infrun.c (enum infwait_states, infwait_state): Delete.
160
161 2014-11-12  Pedro Alves  <palves@redhat.com>
162
163         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
164         Rewrite stepping over a permanent breakpoint.
165         (thread_still_needs_step_over, proceed): Don't set
166         stepping_over_breakpoint for permanent breakpoints.
167         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
168         single-step breakpoints out of the target on hardware step
169         targets.
170         (process_event_stop_test): If stepping a permanent breakpoint
171         doesn't hit the step-resume breakpoint, delete the step-resume
172         breakpoint.
173         (switch_back_to_stepped_thread): Also check if the stepped thread
174         has advanced already on hardware step targets.
175         (currently_stepping): Return true if the thread stepped a
176         breakpoint.
177
178 2014-11-12  Pedro Alves  <palves@redhat.com>
179
180         Mark locations as permanent, not the whole breakpoint.
181         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
182         (mark_breakpoints_out): Don't mark permanent breakpoints as
183         uninserted.
184         (breakpoint_init_inferior): Use mark_breakpoints_out.
185         (breakpoint_here_p): Adjust.
186         (bpstat_stop_status, describe_other_breakpoints): Remove handling
187         of permanent breakpoints.
188         (make_breakpoint_permanent): Mark each location as permanent,
189         instead of marking the breakpoint.
190         (add_location_to_breakpoint): If the location is permanent, mark
191         it as such, and as inserted.
192         (init_breakpoint_sal): Don't make the breakpoint permanent here.
193         (bp_location_compare, update_global_location_list): Adjust.
194         (update_breakpoint_locations): Don't make the breakpoint permanent
195         here.
196         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
197         breakpoints.
198         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
199         (struct bp_location) <permanent>: New field.
200         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
201         reference to bp_permanent.
202
203 2014-11-12  Pedro Alves  <palves@redhat.com>
204
205         * arch-utils.c (default_skip_permanent_breakpoint): New function.
206         * arch-utils.h (default_skip_permanent_breakpoint): New
207         declaration.
208         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
209         Install default_skip_permanent_breakpoint as default method.
210         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
211         (i386_gdbarch_init): Don't install it.
212         * infrun.c (resume): Assume there's always a
213         gdbarch_skip_permanent_breakpoint implementation.
214         * gdbarch.h, gdbarch.c: Regenerate.
215
216 2014-11-11  Daniel Colascione  <dancol@dancol.org>
217
218         Warn about cross-PID-namespace debugging.
219         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
220         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
221         * linux-thread-db.c (check_pid_namespace_match): New function.
222         (thread_db_inferior_created): Call it.
223
224 2014-11-10  Doug Evans  <xdje42@gmail.com>
225
226         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
227         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
228
229 2014-11-10  Doug Evans  <xdje42@gmail.com>
230
231         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
232
233 2014-11-10  Doug Evans  <xdje42@gmail.com>
234
235         PR symtab/17564
236         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
237         (lookup_static_symbol): Move definition to new location and rewrite.
238         (lookup_symbol_in_objfile): New function.
239         (lookup_symbol_global_iterator_cb): Call it.
240
241 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
242
243         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
244
245 2014-11-07  Pedro Alves  <palves@redhat.com>
246
247         * infrun.c (process_event_stop_test) <subroutine check>: Don't
248         check if we did a "nexti" inside a prologue.
249         * symtab.c (in_prologue): Delete function.
250         * symtab.h (in_prologue): Delete declaration.
251
252 2014-11-06  Doug Evans  <xdje42@gmail.com>
253
254         * symtab.h (lookup_global_symbol): Improve function comment.
255
256 2014-11-06  Doug Evans  <xdje42@gmail.com>
257
258         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
259         All callers updated.
260         * symtab.h (lookup_global_symbol): Update decl.
261         (lookup_static_symbol): Move decl to better location.
262
263 2014-11-06  Doug Evans  <xdje42@gmail.com>
264
265         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
266
267 2014-11-06  Doug Evans  <xdje42@gmail.com>
268
269         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
270         All callers updated.
271         (lookup_symbol_in_all_objfiles): Renamed from
272         lookup_symbol_aux_symtabs.  All callers updated.
273         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
274         All callers updated.
275         (lookup_symbol_in_objfile_symtabs): Renamed from
276         lookup_symbol_aux_objfile.  All callers updated.
277
278 2014-11-06  Doug Evans  <xdje42@gmail.com>
279
280         * symtab.c (lookup_symbol_in_block): Renamed from
281         lookup_symbol_aux_block.  All callers updated.
282
283 2014-11-06  Doug Evans  <xdje42@gmail.com>
284
285         * symtab.c (lookup_static_symbol): Renamed from
286         lookup_static_symbol_aux.  All callers updated.
287         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
288         All callers updated.
289
290 2014-11-06  Doug Evans  <xdje42@gmail.com>
291
292         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
293         * block.c (block_lookup_symbol): Use it.
294         * cp-support.c (make_symbol_overload_list_block): Use it.
295         * symtab.c (iterate_over_symbols): Use it.
296
297 2014-11-06  Doug Evans  <xdje42@gmail.com>
298
299         * symtab.c (lookup_block_symbol): Moved to ...
300         * block.c (block_lookup_symbol):  ... here and renamed.
301         All callers updated.
302         * block.h (block_lookup_symbol): Declare.
303         * symtab.h (lookup_block_symbol): Delete.
304
305 2014-11-06  Doug Evans  <xdje42@gmail.com>
306
307         * ada-lang.c (ada_make_symbol_completion_list): Use
308         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
309         * symtab.c (lookup_objfile_from_block): Ditto.
310
311 2014-11-06  Doug Evans  <xdje42@gmail.com>
312
313         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
314         TYPE_CODE_STRUCT.
315
316 2014-11-06  Doug Evans  <xdje42@gmail.com>
317
318         * objfiles.c (get_objfile_arch): Constify.
319         * objfiles.h (get_objfile_arch): Update prototype.
320         * solib.c (solib_global_lookup): Fetch arch from objfile,
321         not target_gdbarch.
322
323 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
324
325         * nios2-tdep.c (wild_insn): Delete.
326         (profiler_insn, irqentry_insn): Delete.
327         (nios2_match_sequence): Delete.
328         (nios2_analyze_prologue): Update comments.  Remove matching
329         of obsolete profiler_insn and irqentry_insn sequences.
330
331 2014-11-05  Alan Modra  <amodra@gmail.com>
332
333         * charset.c (convert_between_encodings): Shrink obstack using
334         obstack_blank_fast.
335         * minsyms.c (install_minimal_symbols): Likewise.
336         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
337         to char* before doing pointer arithmetic.
338
339 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
340
341         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
342
343 2014-11-04  Pedro Alves  <palves@redhat.com>
344
345         * breakpoint.c (breakpoint_thread_match): Delete function.
346         * breakpoint.h (breakpoint_thread_match): Delete declaration.
347
348 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
349
350         PR c++/17494
351         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
352         the method args also under EVAL_SKIP when evaluating method
353         calls under EVAL_SKIP.
354
355 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
356
357         * dwarf2loc.c (read_pieced_value): Do big endian
358         processing only if gdb_regnum is not -1.
359         (write_pieced_value): Ditto.
360
361 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
362
363         * arm-linux-tdep.c (arm_linux_init_abi): Use
364         info.byte_order_for_code to choose endianity of breakpoint
365         instructions snippets.
366
367 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
368
369         * arm-tdep.c (extract_arm_insn): Use
370         gdbarch_byte_order_for_code to read arm instruction.
371
372 2014-11-02  Doug Evans  <xdje42@gmail.com>
373
374         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
375
376 2014-11-02  Doug Evans  <xdje42@gmail.com>
377
378         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
379         main_subfile before returning.
380
381 2014-10-31  Doug Evans  <xdje42@gmail.com>
382
383         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
384         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
385
386 2014-10-31  Doug Evans  <xdje42@gmail.com>
387
388         * valops.c (value_cast_pointers): Fix whitespace.
389         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
390         Ditto.
391
392 2014-10-30  Doug Evans  <dje@google.com>
393
394         * NEWS: Mention ability add attributes to gdb.Objfile and
395         gdb.Progspace objects.
396         * python/py-objfile.c (objfile_object): New member dict.
397         (objfpy_dealloc): Py_XDECREF dict.
398         (objfpy_initialize): Initialize dict.
399         (objfile_getset): Add __dict__.
400         (objfile_object_type): Set tp_dictoffset member.
401         * python/py-progspace.c (progspace_object): New member dict.
402         (pspy_dealloc): Py_XDECREF dict.
403         (pspy_initialize): Initialize dict.
404         (pspace_getset): Add __dict__.
405         (pspace_object_type): Set tp_dictoffset member.
406
407 2014-10-30  Yao Qi  <yao@codesourcery.com>
408
409         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
410         replace '\\' with '\\\\'.
411
412 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
413
414         GDB 7.8.1 released.
415
416 2014-10-29  Pedro Alves  <palves@redhat.com>
417
418         PR gdb/17408
419         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
420         instead of assuming a thread with a stepping range is always
421         stepping.
422
423 2014-10-29  Pedro Alves  <palves@redhat.com>
424
425         PR python/17372
426         * event-top.c (change_line_handler): Call
427         gdb_rl_callback_handler_remove instead of
428         rl_callback_handler_remove.
429         (callback_handler_installed): New global.
430         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
431         (gdb_rl_callback_handler_reinstall): New functions.
432         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
433         gdb_rl_callback_handler_install instead of
434         rl_callback_handler_remove and rl_callback_handler_install.
435         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
436         instead of rl_callback_handler_remove.
437         * event-top.h (gdb_rl_callback_handler_remove)
438         (gdb_rl_callback_handler_install)
439         (gdb_rl_callback_handler_reinstall): New declarations.
440         * infrun.c (reinstall_readline_callback_handler_cleanup): New
441         cleanup function.
442         (fetch_inferior_event): Install it.
443         * top.c (gdb_readline_wrapper_line) Call
444         gdb_rl_callback_handler_remove instead of
445         rl_callback_handler_remove.
446         (gdb_readline_wrapper_cleanup): Don't call
447         rl_callback_handler_install.
448
449 2014-10-29  Pedro Alves  <palves@redhat.com>
450
451         * event-top.c (command_line_handler): Clear the first byte of
452         linebuffer, when it is first allocated.
453
454 2014-10-29  Pedro Alves  <palves@redhat.com>
455
456         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
457         TRY_CATCH.
458
459 2014-10-29  Pedro Alves  <palves@redhat.com>
460
461         PR tui/16138
462         PR tui/17519
463         * tui/tui-interp.c (tui_is_toplevel): Delete global.
464         (tui_allowed_p): Delete function.
465         * tui/tui.c: Include "interps.h".
466         (tui_enable): Don't use tui_allowed_p.  Error out here with
467         detailed error messages if the TUI is the top level interpreter,
468         or if output is not a terminal.  Use newterm instead of initscr,
469         and error out if initializing the terminal fails.  Also error out if
470         the terminal doesn't support cursor addressing.
471         * tui/tui.h (tui_allowed_p): Delete declaration.
472
473 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
474
475         * arm-tdep.c (arm_skip_stack_protector): Return early if
476         address loaded by first "ldr" instruction does not have
477         a corresponding minimal symbol.  Update comment.
478
479 2014-10-29  Yao Qi  <yao@codesourcery.com>
480
481         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
482         loaded address correctly of ldr instruction.
483
484 2014-10-28  Pedro Alves  <palves@redhat.com>
485
486         PR gdb/12623
487         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
488         field.
489         * infrun.c (resume) <stepping breakpoint instruction>: Set the
490         thread's stepped_breakpoint field.  Skip if reverse debugging.
491         Add comment.
492         (init_thread_stepping_state, handle_signal_stop): Clear the
493         thread's stepped_breakpoint field.
494
495 2014-10-27  Pedro Alves  <palves@redhat.com>
496
497         * remote.c (remote_thread_alive): New, factored out from ...
498         (remote_thread_alive): ... this.
499         (remote_update_thread_list): Bail out before deleting threads if
500         the target returned an empty list, and, the current thread has a
501         magic/fake ptid.
502
503 2014-10-27  Pedro Alves  <palves@redhat.com>
504
505         * infrun.c (handle_signal_stop): Also skip handlers when a random
506         signal arrives while handling a "stepi" or a "nexti".  Set the
507         thread's 'step_after_step_resume_breakpoint' flag.
508
509 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
510
511         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
512         (arm_record_ld_st_imm_offset): Reimplement to cover all
513         load/store cases for ARM opcode 010.
514         (arm_record_ld_st_multiple): Reimplement to cover all
515         load/store cases for ARM opcode 100.
516
517 2014-10-26  Doug Evans  <xdje42@gmail.com>
518
519         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
520
521 2014-10-26  Doug Evans  <xdje42@gmail.com>
522
523         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
524         parameter "kind" to "block_index".
525         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
526         "block_index".
527         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
528
529 2014-10-26  Doug Evans  <xdje42@gmail.com>
530
531         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
532
533 2014-10-26  Doug Evans  <xdje42@gmail.com>
534
535         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
536         obstack_alloc.
537
538 2014-10-26  Doug Evans  <xdje42@gmail.com>
539
540         * parser-defs.h (block_found): Move decl from here ...
541         * symtab.h (block_found): ... to here.
542
543 2014-10-26  Doug Evans  <xdje42@gmail.com>
544
545         * symtab.h (struct field_of_this_result): Fix typo in comment.
546         (lookup_symbol_in_language): Move function comment here.
547         (lookup_symbol): Improve function comment.
548         (basic_lookup_symbol_nonlocal): Ditto.
549         (lookup_symbol_static, lookup_symbol_global): Ditto.
550         (lookup_symbol_aux_block): Ditto.
551         (lookup_language_this): Add function comment.
552         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
553         function comment.
554         (lookup_block_symbol): Improve function comment.
555         (lookup_struct): Fix capitalization in function comment.
556         (lookup_transparent_type): Add function comment.
557         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
558         Improve function comment.
559         (lookup_objfile_from_block): Add function comment.
560         * symtab.c (lookup_symbol_in_language): Update function comment.
561         (lookup_symbol, lookup_language_this): Ditto.
562         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
563         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
564         (basic_lookup_symbol_nonlocal): Ditto.
565         (lookup_symbol_static, lookup_symbol_global): Ditto.
566         (lookup_transparent_type, lookup_block_symbol): Ditto.
567
568 2014-10-25  Doug Evans  <xdje42@gmail.com>
569
570         * symtab.c (types_info): Delete forward decl.
571         (functions_info, variables_info, sources_info): Ditto.
572         (_initialize_symtab): Rewrite forward decl to use
573         initialize_file_ftype.
574
575 2014-10-25  Doug Evans  <xdje42@gmail.com>
576
577         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
578
579 2014-10-25  Doug Evans  <xdje42@gmail.com>
580
581         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
582         of local var child_die.
583
584 2014-10-24  Don Breazeal  <donb@codesourcery.com>
585
586         * infrun.c (follow_fork_inferior): Update fork message printing
587         to use target_terminal_ours_for_output instead of
588         target_terminal_ours, to use _() for all format strings, to print
589         "vfork" instead of "fork" for vforks, and to add a detach message.
590         (handle_vfork_child_exec_or_exit): Update message printing to use
591         target_terminal_ours_for_output instead of target_terminal_ours, to
592         use _() for all format strings, and to fix some formatting.
593
594 2014-10-24  Pedro Alves  <palves@redhat.com>
595
596         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
597         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
598         * config/vax/vax.mh: Delete.
599         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
600         obsolete configurations section.
601         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
602         * vax-nat.c: Delete file.
603
604 2014-10-24  Pedro Alves  <palves@redhat.com>
605
606         * NEWS (Removed targets): Add OS/arch column.
607
608 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
609
610         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
611         on the arg type of a constructor only if it is of reference type.
612
613 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
614
615         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
616         accessors and constants from nios2 opcodes update.
617         (nios2_get_next_pc): Likewise.
618
619 2014-10-19  Doug Evans  <xdje42@gmail.com>
620
621         * gdbthread.h (set_running): Fix comment.
622         (set_executing, finish_thread_state): Fix comment.
623
624 2014-10-18  Doug Evans  <xdje42@gmail.com>
625
626         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
627
628 2014-10-17  Doug Evans  <dje@google.com>
629
630         * NEWS: Mention new event gdb.clear_objfiles.
631         * python/py-event.h (emit_clear_objfiles_event): Clear
632         * python/py-events.h (events_object): New member clear_objfiles.
633         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
634         event.
635         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
636         emit clear_objfiles event.
637         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
638         function.
639         (emit_clear_objfiles_event): New function.
640         (clear_objfiles): New event.
641         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
642         Declare.
643         * python/python.c (_initialize_python): Call
644         gdbpy_initialize_clear_objfiles_event.
645
646 2014-10-17  Doug Evans  <dje@google.com>
647
648         * NEWS: Mention new gdb.Objfile.progspace attribute.
649         * python/py-objfile.c (objfpy_get_progspace): New function.
650         (objfile_getset): New entry for "progspace".
651
652 2014-10-17  Pedro Alves  <palves@redhat.com>
653
654         PR gdb/17471
655         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
656         returns a copy of the input.
657         (run_command_1, continue_command, step_1, jump_command)
658         (signal_command, until_command, advance_command, finish_command)
659         (attach_command): Adjust and install a cleanup to free the
660         stripped args.
661
662 2014-10-17  Pedro Alves  <palves@redhat.com>
663
664         PR gdb/17300
665         * infcmd.c (continue_1): If continuing all threads in the
666         foreground, make sure the inferior's terminal settings are put in
667         effect.
668
669 2014-10-17  Pedro Alves  <palves@redhat.com>
670
671         PR gdb/17472
672         * annotate.c (annotate_breakpoints_invalid): Use
673         target_terminal_our_for_output instead of target_terminal_ours.
674         Give back the terminal to the target.
675         (annotate_frames_invalid): Likewise.
676
677 2014-10-17  Pedro Alves  <palves@redhat.com>
678
679         * target.c (enum terminal_state): New enum.
680         (terminal_state): New global.
681         (target_terminal_init): New function.
682         (target_terminal_inferior): Skip if inferior already owns the
683         terminal.
684         (target_terminal_ours, target_terminal_ours_for_output): New
685         functions.
686         * target.h (target_terminal_init): Convert to function prototype.
687         (target_terminal_ours_for_output): Convert to function prototype
688         and tweak comment.
689         (target_terminal_ours): Convert to function prototype and tweak
690         comment.
691         * windows-nat.c (do_initial_windows_stuff): Call
692         target_terminal_init instead of child_terminal_init_with_pgrp.
693
694 2014-10-17  Pedro Alves  <palves@redhat.com>
695
696         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
697         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
698         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
699         solib-osf.c.
700         * NEWS: Mention that support for alpha*-*-osf* has been removed.
701         * ada-lang.h [__alpha__ && __osf__]
702         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
703         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
704         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
705         GDB_OSABI_OSF1.
706         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
707         files.
708         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
709         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
710         * configure: Regenerate.
711         * configure.ac: Remove references to osf.
712         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
713         section.  Remove all other references to osf.
714         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
715         Remove all other references to osf.
716         * dec-thread.c: Delete file.
717         * defs.h (GDB_OSABI_OSF1): Delete.
718         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
719         defined.
720         * osabi.c (gdb_osabi_names): Delete "OSF/1".
721         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
722         Delete code.
723         (unconditionally_kill_inferior)
724         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
725         * solib-osf.c: Delete file.
726
727 2014-10-17  Pedro Alves  <palves@redhat.com>
728
729         * remote.c (clear_threads_listing_context): Move higher up, out of
730         the HAVE_LIBEXPAT guard.
731
732 2014-10-16  Tristan Gingold  <gingold@adacore.com>
733
734         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
735         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
736         on amd64.
737
738 2014-10-15  Pedro Alves  <palves@redhat.com>
739
740         * dec-thread.c (dec_thread_count_gdb_threads)
741         (dec_thread_add_gdb_thread): Delete.
742         (dec_thread_update_thread_list): Delete.
743         (dec_thread_find_new_threads): Rename to ...
744         (dec_thread_update_thread_list): ... this.  Delete GDB-size
745         threads that are no longer found in dec_thread_list.
746         (resync_thread_list): Delete.
747         (dec_thread_wait): Call dec_thread_update_thread_list instead of
748         resync_thread_list.
749
750 2014-10-15  Pedro Alves  <palves@redhat.com>
751
752         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
753         * remote.c (remote_update_thread_list): Skip calling prune_threads
754         if any thread listing method is supported, and instead walk over
755         the set of remote threads listed, deleting those that are not
756         found in GDB's thread list.
757
758 2014-10-15  Pedro Alves  <palves@redhat.com>
759
760         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
761         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
762         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
763         (bsd_uthread_target): Adjust.
764         * corelow.c (core_open): Adjust.
765         * dec-thread.c (dec_thread_find_new_threads): Update comment.
766         (dec_thread_update_thread_list): New function.
767         (init_dec_thread_ops): Adjust.
768         * gdbthread.h (prune_threads): New declaration.
769         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
770         (thread_db_update_thread_list): ... this.  Call prune_threads.
771         (init_thread_db_ops): Adjust.
772         * nto-procfs.c (procfs_find_new_threads): Rename to ...
773         (procfs_update_thread_list): ... this.  Call prune_threads.
774         (procfs_attach, procfs_create_inferior, init_procfs_targets):
775         Adjust.
776         * obsd-nat.c (obsd_find_new_threads): Rename to ...
777         (obsd_update_thread_list): ... this.  Call prune_threads.
778         (obsd_add_target): Adjust.
779         * procfs.c (procfs_target): Adjust.
780         (procfs_notice_thread): Update comment.
781         (procfs_find_new_threads): Rename to ...
782         (procfs_update_thread_list): ... this.  Call prune_threads.
783         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
784         comment.
785         (ravenscar_wait): Adjust.
786         (ravenscar_find_new_threads): Rename to ...
787         (ravenscar_update_thread_list): ... this.  Call prune_threads.
788         (init_ravenscar_thread_ops): Adjust.
789         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
790         (record_btrace_update_thread_list): ... this.  Adjust comment.
791         (init_record_btrace_ops): Adjust.
792         * remote.c (remote_threads_info): Rename to ...
793         (remote_update_thread_list): ... this.  Call prune_threads.
794         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
795         Adjust.
796         * sol-thread.c (check_for_thread_db): Adjust.
797         (sol_find_new_threads_callback): Rename to ...
798         (sol_update_thread_list_callback): ... this.
799         (sol_find_new_threads): Rename to ...
800         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
801         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
802         * target-delegates.c: Regenerate.
803         * target.c (target_find_new_threads): Rename to ...
804         (target_update_thread_list): ... this.
805         * target.h (struct target_ops): Rename to_find_new_threads field
806         to to_update_thread_list.
807         (target_find_new_threads): Rename to ...
808         (target_update_thread_list): ... this.
809         * thread.c (prune_threads): Make extern.
810         (update_thread_list): Adjust.
811
812 2014-10-15  Pedro Alves  <palves@redhat.com>
813
814         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
815         Add describing comment.  Return -1 if the qL packet is not
816         supported.
817         (struct thread_item, thread_item_t): Move higher up in
818         the file.  Add comments.
819         (struct threads_parsing_context): Move higher up in
820         the file, add comments, and remote to ...
821         (struct threads_listing_context): ... this.
822         (remote_newthread_step): Don't add the thread to GDB's thread
823         database here.  Instead push it to the thread_listing_context
824         list.
825         (remote_find_new_threads): Rename to ...
826         (remote_get_threads_with_ql): ... this.  Add target_ops and
827         targets_listing_context parameters.  Pass down context.
828         (start_thread): Adjust.
829         (clear_threads_parsing_context): Rename to ...
830         (clear_threads_listing_context): ... this.
831         (remote_get_threads_with_qxfer): New, with parts salvaged from old
832         remote_threads_info.
833         (remote_get_threads_with_qthreadinfo): Ditto.
834         (remote_threads_info): Reimplement.
835
836 2014-10-15  Pedro Alves  <palves@redhat.com>
837
838         * infrun.c (resume): Don't force displaced-stepping for all
839         single-steps on software single-stepping archs.
840
841 2014-10-15  Pedro Alves  <palves@redhat.com>
842
843         * breakpoint.c (single_step_breakpoints): Delete global.
844         (insert_single_step_breakpoint): Adjust to store the breakpoint
845         pointer in the current thread.
846         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
847         (cancel_single_step_breakpoints): Delete functions.
848         (breakpoint_has_location_inserted_here): Make extern.
849         (single_step_breakpoint_inserted_here_p): Adjust to walk the
850         breakpoint list.
851         * breakpoint.h (breakpoint_has_location_inserted_here): New
852         declaration.
853         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
854         (cancel_single_step_breakpoints): Remove declarations.
855         * gdbthread.h (struct thread_control_state)
856         <single_step_breakpoints>: New field.
857         (delete_single_step_breakpoints)
858         (thread_has_single_step_breakpoints_set)
859         (thread_has_single_step_breakpoint_here): New declarations.
860         * infrun.c (follow_exec): Also clear the single-step breakpoints.
861         (singlestep_breakpoints_inserted_p, singlestep_ptid)
862         (singlestep_pc): Delete globals.
863         (infrun_thread_ptid_changed): Remove references to removed
864         globals.
865         (resume_cleanups): Delete the current thread's single-step
866         breakpoints.
867         (maybe_software_singlestep): Remove references to removed globals.
868         (resume): Adjust to use thread_has_single_step_breakpoints_set and
869         delete_single_step_breakpoints.
870         (init_wait_for_inferior): Remove references to removed globals.
871         (delete_thread_infrun_breakpoints): Delete the thread's
872         single-step breakpoints too.
873         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
874         single-step breakpoints here.
875         (delete_stopped_threads_single_step_breakpoints): New function.
876         (adjust_pc_after_break): Adjust to use
877         thread_has_single_step_breakpoints_set.
878         (handle_inferior_event): Remove references to removed globals.
879         Use delete_stopped_threads_single_step_breakpoints.
880         (handle_signal_stop): Adjust to per-thread single-step
881         breakpoints.  Swap test order to do cheaper tests first.
882         (switch_back_to_stepped_thread): Extend debug output.  Remove
883         references to removed globals.
884         * record-full.c (record_full_wait_1): Adjust to per-thread
885         single-step breakpoints.
886         * thread.c (delete_single_step_breakpoints)
887         (thread_has_single_step_breakpoints_set)
888         (thread_has_single_step_breakpoint_here): New functions.
889         (clear_thread_inferior_resources): Also delete the thread's
890         single-step breakpoints.
891
892 2014-10-15  Pedro Alves  <palves@redhat.com>
893
894         * thread.c (delete_thread_breakpoint): New function.
895         (delete_step_resume_breakpoint)
896         (delete_exception_resume_breakpoint): Use it.
897         (delete_at_next_stop): New function.
898         (clear_thread_inferior_resources): Use delete_at_next_stop.
899
900 2014-10-15  Pedro Alves  <palves@redhat.com>
901
902         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
903         (breakpoint_inserted_here_p): ... here.  Remove special case for
904         software single-step breakpoints.
905         (find_non_raw_software_breakpoint_inserted_here): Inline ...
906         (software_breakpoint_inserted_here_p): ... here.  Remove special
907         case for software single-step breakpoints.
908         (bp_target_info_copy_insertion_state)
909         (deprecated_insert_raw_breakpoint)
910         (deprecated_remove_raw_breakpoint): Delete functions.
911         * breakpoint.h (deprecated_insert_raw_breakpoint)
912         (deprecated_remove_raw_breakpoint): Remove declarations.
913
914 2014-10-15  Pedro Alves  <palves@redhat.com>
915
916         PR breakpoints/9649
917         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
918         Delete array globals.
919         (single_step_breakpoints): New global.
920         (breakpoint_xfer_memory): Remove special handling for single-step
921         breakpoints.
922         (update_breakpoints_after_exec): Delete bp_single_step
923         breakpoints.
924         (detach_breakpoints): Remove special handling for single-step
925         breakpoints.
926         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
927         (bpstat_stop_status): Add comment.
928         (bpstat_what, bptype_string, print_one_breakpoint_location)
929         (adjust_breakpoint_address, init_bp_location): Handle
930         bp_single_step.
931         (new_single_step_breakpoint): New function.
932         (set_momentary_breakpoint, bkpt_remove_location): Remove special
933         handling for single-step breakpoints.
934         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
935         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
936         Rewrite.
937         (detach_single_step_breakpoints, find_single_step_breakpoint):
938         Delete functions.
939         (breakpoint_has_location_inserted_here): New function.
940         (single_step_breakpoint_inserted_here_p): Rewrite.
941         * breakpoint.h: Remove FIXME.
942         (enum bptype) <bp_single_step>: New enum value.
943         (insert_single_step_breakpoint): Update comment.
944         * infrun.c (resume_cleanups)
945         (delete_step_thread_step_resume_breakpoint): Remove single-step
946         breakpoints.
947         (fetch_inferior_event): Install a cleanup that removes infrun
948         breakpoints.
949         (switch_back_to_stepped_thread) <expect thread advanced also>:
950         Clear step-over info.
951
952 2014-10-15  Pedro Alves  <palves@redhat.com>
953
954         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
955         (delete_thread_infrun_breakpoints): New function, with parts
956         salvaged from delete_step_resume_breakpoint_callback.
957         (delete_step_thread_step_resume_breakpoint): Delete.
958         (for_each_just_stopped_thread_callback_func): New typedef.
959         (for_each_just_stopped_thread): New function.
960         (delete_just_stopped_threads_infrun_breakpoints): New function.
961         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
962         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
963         ... this.  Adjust.
964         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
965
966 2014-10-15  Pedro Alves  <palves@redhat.com>
967
968         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
969         trying to step past a non-steppable watchpoint.
970         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
971         field.
972         * infrun.c (struct step_over_info): Add new field
973         'nonsteppable_watchpoint_p' and adjust comments.
974         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
975         Adjust.
976         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
977         (stepping_past_nonsteppable_watchpoint): New function.
978         (step_over_info_valid_p): Also return true if stepping past a
979         nonsteppable watchpoint.
980         (proceed): Adjust call to set_step_over_info.  Remove reference to
981         init_infwait_state.
982         (init_wait_for_inferior): Remove reference to init_infwait_state.
983         (waiton_ptid): Delete global.
984         (struct execution_control_state)
985         <stepped_after_stopped_by_watchpoint>: Delete field.
986         (wait_for_inferior, fetch_inferior_event): Always pass
987         minus_one_ptid to target_wait.
988         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
989         field.
990         (init_infwait_state): Delete function.
991         (handle_inferior_event): Remove infwait_state handling.
992         (handle_signal_stop) <watchpoints handling>: Adjust after
993         stepped_after_stopped_by_watchpoint removal.  Don't remove
994         breakpoints here nor set infwait_state.  Set the thread's
995         stepping_over_watchpoint flag, and call keep_going instead.
996         (keep_going): Handle stepping_over_watchpoint.  Adjust
997         set_step_over_info calls.
998         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
999         function.
1000
1001 2014-10-15  Pedro Alves  <palves@redhat.com>
1002
1003         * infrun.c (step_over_info_valid_p): New function.
1004         (resume): Use step_over_info_valid_p instead of checking the
1005         threads's trap_expected flag.
1006
1007 2014-10-15  Doug Evans  <dje@google.com>
1008             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1009
1010         PR python/17364
1011         * python/lib/gdb/__init__.py (packages): Add "printer".
1012         * python/lib/gdb/command/bound_registers.py: Moved to ...
1013         * python/lib/gdb/printer/bound_registers.py: ... here.
1014         Add printer to global set of builtin printers.  Rename printer from
1015         "bound" to "mpx_bound128".
1016         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1017         registered as global "builtin" printer.
1018         (add_builtin_pretty_printer): New function.
1019         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1020         gdb/printer/__init__.py.
1021
1022 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1023
1024         * Makefile.in (SFILES): Remove d-support.c.
1025         (COMMON_OBS): Remove d-support.o.
1026         * d-lang.h (d_parse_symbol): Remove declaration.
1027         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1028         * d-support.c: Remove file.
1029
1030 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1031
1032         * gdb/infrun.c (process_event_stop_test): Apply
1033         gdbarch_addr_bits_remove to longjmp resume address.
1034
1035 2014-10-15  Pedro Alves  <palves@redhat.com>
1036
1037         * regformats/microblaze.dat: Delete file.
1038
1039 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1040
1041         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1042         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1043
1044 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1045
1046         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1047         as non-trivial.
1048
1049 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1050
1051         PR c++/13403
1052         PR c++/15154
1053         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1054         with qualified args.
1055
1056 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1057
1058         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1059         of the case where the second operand is a pointer.
1060         <BINOP_SUB>: Likewise.
1061
1062 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1063
1064         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1065         only if it is not NULL.
1066         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1067         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1068         (struct probe_ops) <clear_semaphore>: Likewise.
1069         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1070         not NULL.
1071         (stop_tracing): Likewise, for clear_semaphore.
1072
1073 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1074
1075         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1076         using language_c, instead of current_language.
1077
1078 2014-10-13  Doug Evans  <dje@google.com>
1079
1080         * python/py-objfile.c (objfpy_initialize): New function.
1081         (objfpy_new, objfile_to_objfile_object): Call it.
1082         * python/py-progspace.c (pspy_initialize): New function.
1083         (pspy_new, pspace_to_pspace_object): Call it.
1084
1085 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1086             Jan Kratochvil  <jan.kratochvil@redhat.com>
1087
1088         Fix "save breakpoints" for "catch" command.
1089         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1090         newline.
1091
1092 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1093
1094         Fix "save breakpoints" for "disable $bpnum" command.
1095         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1096
1097 2014-10-10  Pedro Alves  <palves@redhat.com>
1098
1099         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1100         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1101         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1102         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1103         and been removed.
1104         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1105         * configure.ac: Remove references to IRIX.
1106         * configure.host: Add *-*-irix* to the obsolete hosts section.
1107         Remove all other references to irix.
1108         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1109         Delete files.
1110
1111 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1112
1113         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1114         isn't valid, release the tdesc arch data and return NULL.
1115
1116 2014-10-10  Pedro Alves  <palves@redhat.com>
1117
1118         * linux-tdep.c: Include observer.h.
1119         (linux_inferior_data): New global.
1120         (struct linux_info): New structure.
1121         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1122         (get_linux_inferior_data): New functions.
1123         (linux_vsyscall_range): Rename to ...
1124         (linux_vsyscall_range_raw): ... this.
1125         (linux_vsyscall_range): New function; handles caching.
1126         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1127         inferior_exit and inferior_appeared observers.
1128
1129 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1130             Pedro Alves  <palves@redhat.com>
1131
1132         PR symtab/14466
1133         * solib-svr4.c (svr4_read_so_list): Rename to ...
1134         (svr4_current_sos_1): ... this and change the function comment.
1135         (svr4_current_sos): New function.
1136
1137 2014-10-10  Pedro Alves  <palves@redhat.com>
1138
1139         * arch-utils.c (default_vsyscall_range): New function.
1140         * arch-utils.h (default_vsyscall_range): New declaration.
1141         * gdbarch.sh (vsyscall_range): New hook.
1142         * gdbarch.h, gdbarch.c: Regenerate.
1143         * linux-tdep.c (linux_vsyscall_range): New function.
1144         (linux_init_abi): Install linux_vsyscall_range as
1145         vsyscall_range gdbarch hook.
1146         * memrange.c (address_in_mem_range): New function.
1147         * memrange.h (address_in_mem_range): New declaration.
1148         * symfile-mem.c (find_vdso_size): Delete function.
1149         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1150
1151 2014-10-10  Pedro Alves  <palves@redhat.com>
1152
1153         * infrun.c (normal_stop): Fix typo in comment.
1154
1155 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1156
1157         PR tdep/9390
1158         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1159         typo when using logical AND to determine instruction type.
1160
1161 2014-10-09  Yao Qi  <yao@codesourcery.com>
1162
1163         * infrun.c (handle_signal_stop): Remove local variable
1164         'printed'.
1165
1166 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1167
1168         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1169
1170 2014-10-08  Gary Benson  <gbenson@redhat.com>
1171
1172         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1173
1174 2014-10-08  Gary Benson  <gbenson@redhat.com>
1175
1176         * common/common-defs.h: Include common-exceptions.h.
1177         * exceptions.h: Do not include common-exceptions.h.
1178
1179 2014-10-08  Gary Benson  <gbenson@redhat.com>
1180
1181         * common/common-defs.h: Include cleanups.h.
1182         * common/common-exceptions.c: Do not include cleanups.h.
1183         * utils.h: Likewise.
1184
1185 2014-10-08  Gary Benson  <gbenson@redhat.com>
1186
1187         * ada-lang.c: Do not include exceptions.h.
1188         * ada-valprint.c: Likewise.
1189         * amd64-tdep.c: Likewise.
1190         * auto-load.c: Likewise.
1191         * block.c: Likewise.
1192         * break-catch-throw.c: Likewise.
1193         * breakpoint.c: Likewise.
1194         * btrace.c: Likewise.
1195         * c-lang.c: Likewise.
1196         * cli/cli-cmds.c: Likewise.
1197         * cli/cli-interp.c: Likewise.
1198         * cli/cli-script.c: Likewise.
1199         * completer.c: Likewise.
1200         * corefile.c: Likewise.
1201         * corelow.c: Likewise.
1202         * cp-abi.c: Likewise.
1203         * cp-support.c: Likewise.
1204         * cp-valprint.c: Likewise.
1205         * darwin-nat.c: Likewise.
1206         * dwarf2-frame-tailcall.c: Likewise.
1207         * dwarf2-frame.c: Likewise.
1208         * dwarf2loc.c: Likewise.
1209         * dwarf2read.c: Likewise.
1210         * eval.c: Likewise.
1211         * event-loop.c: Likewise.
1212         * event-top.c: Likewise.
1213         * f-valprint.c: Likewise.
1214         * frame-unwind.c: Likewise.
1215         * frame.c: Likewise.
1216         * gdbtypes.c: Likewise.
1217         * gnu-v2-abi.c: Likewise.
1218         * gnu-v3-abi.c: Likewise.
1219         * guile/scm-auto-load.c: Likewise.
1220         * guile/scm-breakpoint.c: Likewise.
1221         * guile/scm-cmd.c: Likewise.
1222         * guile/scm-frame.c: Likewise.
1223         * guile/scm-lazy-string.c: Likewise.
1224         * guile/scm-param.c: Likewise.
1225         * guile/scm-symbol.c: Likewise.
1226         * guile/scm-type.c: Likewise.
1227         * hppa-hpux-tdep.c: Likewise.
1228         * i386-tdep.c: Likewise.
1229         * inf-loop.c: Likewise.
1230         * infcall.c: Likewise.
1231         * infcmd.c: Likewise.
1232         * infrun.c: Likewise.
1233         * interps.c: Likewise.
1234         * interps.h: Likewise.
1235         * jit.c: Likewise.
1236         * linespec.c: Likewise.
1237         * linux-nat.c: Likewise.
1238         * linux-thread-db.c: Likewise.
1239         * m32r-rom.c: Likewise.
1240         * main.c: Likewise.
1241         * memory-map.c: Likewise.
1242         * mi/mi-cmd-break.c: Likewise.
1243         * mi/mi-cmd-stack.c: Likewise.
1244         * mi/mi-interp.c: Likewise.
1245         * mi/mi-main.c: Likewise.
1246         * monitor.c: Likewise.
1247         * nto-procfs.c: Likewise.
1248         * objc-lang.c: Likewise.
1249         * p-valprint.c: Likewise.
1250         * parse.c: Likewise.
1251         * ppc-linux-tdep.c: Likewise.
1252         * printcmd.c: Likewise.
1253         * probe.c: Likewise.
1254         * python/py-auto-load.c: Likewise.
1255         * python/py-breakpoint.c: Likewise.
1256         * python/py-cmd.c: Likewise.
1257         * python/py-finishbreakpoint.c: Likewise.
1258         * python/py-frame.c: Likewise.
1259         * python/py-framefilter.c: Likewise.
1260         * python/py-function.c: Likewise.
1261         * python/py-gdb-readline.c: Likewise.
1262         * python/py-inferior.c: Likewise.
1263         * python/py-infthread.c: Likewise.
1264         * python/py-lazy-string.c: Likewise.
1265         * python/py-linetable.c: Likewise.
1266         * python/py-param.c: Likewise.
1267         * python/py-prettyprint.c: Likewise.
1268         * python/py-symbol.c: Likewise.
1269         * python/py-type.c: Likewise.
1270         * python/py-value.c: Likewise.
1271         * python/python-internal.h: Likewise.
1272         * python/python.c: Likewise.
1273         * record-btrace.c: Likewise.
1274         * record-full.c: Likewise.
1275         * regcache.c: Likewise.
1276         * remote-fileio.c: Likewise.
1277         * remote-mips.c: Likewise.
1278         * remote.c: Likewise.
1279         * rs6000-aix-tdep.c: Likewise.
1280         * rs6000-nat.c: Likewise.
1281         * skip.c: Likewise.
1282         * solib-darwin.c: Likewise.
1283         * solib-dsbt.c: Likewise.
1284         * solib-frv.c: Likewise.
1285         * solib-ia64-hpux.c: Likewise.
1286         * solib-spu.c: Likewise.
1287         * solib-svr4.c: Likewise.
1288         * solib.c: Likewise.
1289         * spu-tdep.c: Likewise.
1290         * stack.c: Likewise.
1291         * stap-probe.c: Likewise.
1292         * symfile-mem.c: Likewise.
1293         * symmisc.c: Likewise.
1294         * target.c: Likewise.
1295         * thread.c: Likewise.
1296         * top.c: Likewise.
1297         * tracepoint.c: Likewise.
1298         * tui/tui-interp.c: Likewise.
1299         * typeprint.c: Likewise.
1300         * utils.c: Likewise.
1301         * valarith.c: Likewise.
1302         * valops.c: Likewise.
1303         * valprint.c: Likewise.
1304         * value.c: Likewise.
1305         * varobj.c: Likewise.
1306         * windows-nat.c: Likewise.
1307         * xml-support.c: Likewise.
1308
1309 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1310
1311         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1312         name implies.
1313         (extended_mips16_next_pc): Update accordingly.
1314
1315 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1316
1317         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1318         function.
1319         (micromips_instruction_is_compact_branch): Likewise.
1320         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1321         or a compact jump, reaching a jump delay slot, or seeing a
1322         second non-prologue instruction.
1323         (micromips_scan_prologue): Also terminate scanning upon seeing a
1324         compact branch or jump, or reaching a branch or jump delay slot.
1325         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1326         or jump delay slot, or seeing a second non-prologue instruction.
1327         (mips32_instruction_has_delay_slot): Retain instruction
1328         examination code only, update arguments accordingly and move
1329         instruction fetch pieces to...
1330         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1331         (micromips_instruction_has_delay_slot): Likewise and to...
1332         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1333         (mips16_instruction_has_delay_slot): Likewise and to...
1334         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1335         (mips_single_step_through_delay): Update accordingly.
1336         (mips_adjust_breakpoint_address): Likewise.
1337
1338 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1339
1340         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1341         !mustbe32 also return 1 for 32-bit instructions.
1342         (mips16_instruction_has_delay_slot): Likewise.  Add an
1343         explanatory comment.
1344
1345 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1346
1347         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1348         symbols special.
1349
1350 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1351
1352         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1353         update comments.
1354         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1355         for the breakpoint's address.  Don't preinitialize `placed_size'.
1356         (insert_bp_location): Set `reqstd_address' rather than
1357         `placed_address'.
1358         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1359         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1360         address.
1361         (bkpt_remove_location): Likewise.
1362         (deprecated_insert_raw_breakpoint): Likewise.
1363         (deprecated_remove_raw_breakpoint): Likewise.
1364         (find_single_step_breakpoint): Likewise.
1365         * mem-break.c (default_memory_insert_breakpoint): Use
1366         `reqstd_address' for the breakpoint's address.  Don't set
1367         `placed_address' or `placed_size' if breakpoint contents couldn't
1368         have been determined.
1369         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1370         the breakpoint's address.
1371         (remote_insert_hw_breakpoint): Likewise.  Don't set
1372         `placed_address' or `placed_size' if breakpoint couldn't have been
1373         set.
1374         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1375         `reqstd_address' for the breakpoint's address.
1376         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1377         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1378         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1379         * microblaze-linux-tdep.c
1380         (microblaze_linux_memory_remove_breakpoint): Likewise.
1381         * monitor.c (monitor_insert_breakpoint): Likewise.
1382         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1383         (procfs_insert_hw_breakpoint): Likewise.
1384         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1385         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1386         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1387         * remote-mips.c (mips_insert_breakpoint): Likewise.
1388         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1389
1390 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1391
1392         * valops.c (value_assign): Check for bit field assignments
1393         before calling architecture-specific register value
1394         conversion functions.
1395
1396 2014-10-03  Pierre Muller  <muller@sourceware.org>
1397
1398         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1399
1400 2014-10-02  Pedro Alves  <palves@redhat.com>
1401
1402         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1403         threads_are_executing.
1404         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1405         describing comment.
1406         * gdbthread.h (threads_are_executing): Declare.
1407         (handle_signal_stop) <random signals>: Don't print about the
1408         signal here if stopping.
1409         (end_stepping_range): Don't notify observers here.
1410         (normal_stop): Update the thread list.  If stopped by a random
1411         signal or a stepping range ended, notify observers.
1412         * thread.c (threads_executing): New global.
1413         (init_thread_list): Clear 'threads_executing'.
1414         (set_executing): Set or clear 'threads_executing'.
1415         (threads_are_executing): New function.
1416         (update_threads_executing): New function.
1417         (update_thread_list): Use it.
1418
1419 2014-10-02  Pedro Alves  <palves@redhat.com>
1420
1421         PR breakpoints/17431
1422         * breakpoint.c (update_breakpoints_after_exec): Don't create
1423         overlay, longjmp, std terminate nor exception breakpoints here.
1424
1425 2014-10-02  Pedro Alves  <palves@redhat.com>
1426
1427         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1428         Adjust comments.
1429         * inferior.c (find_inferior_for_program_space): Give preference to
1430         the current inferior.
1431         * inferior.h (find_inferior_for_program_space): Update comment.
1432         * progspace.c (switch_to_program_space_and_thread): Prefer the
1433         current inferior if it's bound to the program space requested.  If
1434         the inferior found doesn't have a PID yet, don't bother looking up
1435         a thread.
1436         * progspace.h (switch_to_program_space_and_thread): Adjust
1437         comment.
1438         * thread.c (any_thread_of_process, any_live_thread_of_process):
1439         Give preference to the current thread.
1440
1441 2014-10-01  Pedro Alves  <palves@redhat.com>
1442
1443         * breakpoint.c (insert_bp_location): Error out if inserting a
1444         software breakpoint at a read-only address.
1445         * target.c (memory_xfer_check_region): New function, factored out
1446         from ...
1447         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1448         ULONGEST.
1449         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1450         against the memory region attributes.
1451
1452 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1453
1454         * NEWS: Announce new exit-code field in -list-thread-groups
1455         output.
1456         * inferior.c (exit_inferior_1): Don't clear exit code.
1457         (inferior_appeared): Clear exit code.
1458         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1459         code.
1460
1461 2014-10-01  Pedro Alves  <palves@redhat.com>
1462
1463         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1464         GENERATED" along with emacs/vi read-only markers.
1465         * regformats/aarch64.dat: Regenerate.
1466         * regformats/arm-with-iwmmxt.dat: Regenerate.
1467         * regformats/arm-with-neon.dat: Regenerate.
1468         * regformats/arm-with-vfpv2.dat: Regenerate.
1469         * regformats/arm-with-vfpv3.dat: Regenerate.
1470         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1471         * regformats/i386/amd64-avx.dat: Regenerate.
1472         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1473         * regformats/i386/amd64-avx512.dat: Regenerate.
1474         * regformats/i386/amd64-linux.dat: Regenerate.
1475         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1476         * regformats/i386/amd64-mpx.dat: Regenerate.
1477         * regformats/i386/amd64.dat: Regenerate.
1478         * regformats/i386/i386-avx-linux.dat: Regenerate.
1479         * regformats/i386/i386-avx.dat: Regenerate.
1480         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1481         * regformats/i386/i386-avx512.dat: Regenerate.
1482         * regformats/i386/i386-linux.dat: Regenerate.
1483         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1484         * regformats/i386/i386-mmx.dat: Regenerate.
1485         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1486         * regformats/i386/i386-mpx.dat: Regenerate.
1487         * regformats/i386/i386.dat: Regenerate.
1488         * regformats/i386/x32-avx-linux.dat: Regenerate.
1489         * regformats/i386/x32-avx.dat: Regenerate.
1490         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1491         * regformats/i386/x32-avx512.dat: Regenerate.
1492         * regformats/i386/x32-linux.dat: Regenerate.
1493         * regformats/i386/x32.dat: Regenerate.
1494         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1495         * regformats/mips-dsp-linux.dat: Regenerate.
1496         * regformats/mips-linux.dat: Regenerate.
1497         * regformats/mips64-dsp-linux.dat: Regenerate.
1498         * regformats/mips64-linux.dat: Regenerate.
1499         * regformats/nios2-linux.dat: Regenerate.
1500         * regformats/rs6000/powerpc-32.dat: Regenerate.
1501         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1502         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1503         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1504         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1505         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1506         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1507         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1508         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1509         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1510         * regformats/s390-linux32.dat: Regenerate.
1511         * regformats/s390-linux32v1.dat: Regenerate.
1512         * regformats/s390-linux32v2.dat: Regenerate.
1513         * regformats/s390-linux64.dat: Regenerate.
1514         * regformats/s390-linux64v1.dat: Regenerate.
1515         * regformats/s390-linux64v2.dat: Regenerate.
1516         * regformats/s390-te-linux64.dat: Regenerate.
1517         * regformats/s390x-linux64.dat: Regenerate.
1518         * regformats/s390x-linux64v1.dat: Regenerate.
1519         * regformats/s390x-linux64v2.dat: Regenerate.
1520         * regformats/s390x-te-linux64.dat: Regenerate.
1521         * regformats/tic6x-c62x-linux.dat: Regenerate.
1522         * regformats/tic6x-c62x.dat: Regenerate.
1523         * regformats/tic6x-c64x-linux.dat: Regenerate.
1524         * regformats/tic6x-c64x.dat: Regenerate.
1525         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1526         * regformats/tic6x-c64xp.dat: Regenerate.
1527
1528 2014-10-01  Pedro Alves  <palves@redhat.com>
1529
1530         * features/Makefile: Update comments.
1531         (XMLTOC): List all xml files we build C files from.
1532         (clean-cfiles): New rule.
1533
1534 2014-10-01  Pedro Alves  <palves@redhat.com>
1535
1536         * features/i386/amd64-avx512-linux.c: Regenerate.
1537         * features/i386/amd64-avx512.c: Regenerate.
1538         * features/i386/x32-avx512-linux.c: Regenerate.
1539         * features/i386/x32-avx512.c: Regenerate.
1540
1541 2014-10-01  Pedro Alves  <palves@redhat.com>
1542
1543         * features/Makefile (WHICH): Remove arm-with-m,
1544         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1545
1546 2014-10-01  Pedro Alves  <palves@redhat.com>
1547
1548         * features/Makefile (clean): New rule.
1549
1550 2014-10-01  Pedro Alves  <palves@redhat.com>
1551
1552         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1553         (zmm14h): Add missing end quotes.
1554
1555 2014-10-01  Pedro Alves  <palves@redhat.com>
1556
1557         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1558         * features/aarch64.c: Regenerate.
1559
1560 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1561
1562         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1563         code so as to work with follow_fork_inferior.
1564         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1565         (inf_ttrace_create_inferior): Remove reference to
1566         inf_ttrace_vfork_ppid.
1567         (inf_ttrace_attach): Ditto.
1568         (inf_ttrace_detach): Ditto.
1569         (inf_ttrace_kill): Use current_inferior instead of
1570         inf_ttrace_vfork_ppid.
1571         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1572         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1573         inferior away from the parent.
1574         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1575         target_follow_fork.
1576         (follow_fork_inferior): New function.
1577         (follow_inferior_reset_breakpoints): Make function static.
1578         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1579         * linux-nat.c (linux_child_follow_fork): Move target-independent
1580         code to infrun.c:follow_fork_inferior.
1581
1582 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1583
1584         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1585         * gdbarch.c: Regenerate.
1586         * gdbarch.h: Likewise.
1587         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1588         gdbarch method 'regset_from_core_section'.
1589         (get_core_register_section): Remove handling for the case that
1590         regset == NULL and regset_from_core_section is defined.
1591         (get_core_registers): Drop check for deleted method.
1592         * procfs.c (procfs_do_thread_registers): Adjust comment.
1593
1594 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1595
1596         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1597         (linux_nat_make_corefile_notes): Remove.
1598         (linux_target_install_ops): Do not set target method
1599         'make_corefile_notes'.
1600         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1601         Remove field.
1602         (linux_corefile_thread_callback): Instead of args->collect, call
1603         linux_collect_thread_registers.
1604         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1605         NULL unless there is a regset iterator.
1606         (linux_make_corefile_notes_1): Remove.
1607         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1608         by linux_make_corefile_notes.
1609         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1610
1611 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1612
1613         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1614         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1615         Remove.
1616         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1617
1618 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1619
1620         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1621         (xtensa_iterate_over_regset_sections): New.
1622         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1623
1624 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1625
1626         * vax-tdep.c (vax_regset_from_core_section): Remove.
1627         (vax_iterate_over_regset_sections): New.
1628         (vax_gdbarch_init): Adjust gdbarch initialization.
1629
1630 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1631
1632         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1633         (tilegx_regset_from_core_section): Remove.
1634         (tilegx_iterate_over_regset_sections): New.
1635         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1636
1637 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1638
1639         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1640         (sparc_iterate_over_regset_sections): New.
1641         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1642         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1643         targets.
1644         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1645         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1646         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1647         target method 'make_corefile_notes'.
1648
1649 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1650
1651         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1652         'sizeof_gregset' and 'sizeof_fpregset'.
1653         * sh-tdep.c (sh_regset_from_core_section): Remove.
1654         (sh_iterate_over_regset_sections): New.
1655         (sh_gdbarch_init): Adjust gdbarch initialization.
1656         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1657         sizeof_fpregset.
1658         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1659         'sizeof_gregset'.
1660
1661 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1662
1663         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1664         (score7_linux_iterate_over_regset_sections): New.
1665         (score_gdbarch_init): Adjust gdbarch initialization.
1666
1667 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1668
1669         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1670         FreeBSD targets.
1671         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1672         method 'make_corefile_notes'.
1673         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1674         (ppcfbsd_regset_from_core_section): Remove.
1675         (ppcfbsd_iterate_over_regset_sections): New.
1676         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1677         initialization.
1678         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1679         (ppcnbsd_iterate_over_regset_sections): New.
1680         (ppcnbsd_init_abi): Adjust.
1681         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1682         (ppcobsd_iterate_over_regset_sections): New.
1683         (ppcobsd_init_abi): Adjust.
1684         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1685         (rs6000_aix_iterate_over_regset_sections): New.
1686         (rs6000_aix_init_osabi): Adjust.
1687
1688 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1689
1690         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1691         (nios2_regset_from_core_section): Remove.
1692         (nios2_iterate_over_regset_sections): New.
1693         (nios2_linux_init_abi): Adjust gdbarch initialization.
1694
1695 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1696
1697         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1698         (am33_iterate_over_regset_sections): New.
1699         (am33_linux_init_osabi): Adjust gdbarch initialization.
1700
1701 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1702
1703         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1704         (mips_linux_iterate_over_regset_sections): New.
1705         (mips_linux_init_abi): Adjust gdbarch initialization.
1706         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1707         (mips64obsd_iterate_over_regset_sections): New.
1708         (mips64obsd_init_abi): Adjust.
1709         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1710         (mipsnbsd_iterate_over_regset_sections): New.
1711         (mipsnbsd_init_abi): Adjust.
1712
1713 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1714
1715         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1716         (m88k_iterate_over_regset_sections): New.
1717         (m88k_gdbarch_init): Adjust gdbarch initialization.
1718
1719 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1720
1721         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1722         (ia64_linux_iterate_over_regset_sections): New.
1723         (ia64_linux_init_abi): Adjust gdbarch initialization.
1724
1725 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1726
1727         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1728         (m68kbsd_iterate_over_regset_sections): New.
1729         (m68kbsd_init_abi): Adjust gdbarch initialization.
1730         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1731         (m68k_linux_iterate_over_regset_sections): New.
1732         (m68k_linux_init_abi): Adjust gdbarch initialization.
1733
1734 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1735
1736         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1737         (m32r_linux_regset_from_core_section): Remove.
1738         (m32r_linux_iterate_over_regset_sections): New.
1739         (m32r_linux_init_abi): Adjust gdbarch initialization.
1740
1741 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1742
1743         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1744         (amd64obsd_iterate_over_regset_sections): New.
1745         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1746         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1747         Remove.
1748         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1749         regset_from_core_section initialization.
1750         * i386-tdep.c (i386_regset_from_core_section): Remove.
1751         (i386_iterate_over_regset_sections): New.
1752         (i386_gdbarch_init): Adjust gdbarch initialization.
1753         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1754         (i386_iterate_over_regset_sections): New prototype.
1755         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1756         Remove.
1757         (i386obsd_aout_iterate_over_regset_sections): New.
1758         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1759         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1760         targets.
1761         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1762         (amd64fbsd_init_abi): Call fbsd_init_abi.
1763         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1764         (i386fbsd4_init_abi): Call fbsd_init_abi.
1765         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1766         target method 'make_corefile_notes'.
1767         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1768
1769 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1770
1771         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1772         (hppa_hpux_iterate_over_regset_sections): New.
1773         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1774         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1775         (hppa_linux_iterate_over_regset_sections): New.
1776         (hppa_linux_init_abi): Adjust.
1777         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1778         (hppanbsd_iterate_over_regset_sections): New.
1779         (hppanbsd_init_abi): Adjust.
1780         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1781         (hppaobsd_iterate_over_regset_sections): New.
1782         (hppaobsd_init_abi): Adjust.
1783
1784 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1785
1786         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1787         (frv_linux_iterate_over_regset_sections): New.
1788         (frv_linux_init_abi): Adjust gdbarch initialization.
1789
1790 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1791
1792         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1793         (armbsd_iterate_over_regset_sections): New prototype.
1794         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1795         (armbsd_iterate_over_regset_sections): New.
1796         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1797         initialization.
1798
1799 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1800
1801         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1802         (alpha_linux_iterate_over_regset_sections): New.
1803         (alpha_linux_init_abi): Adjust gdbarch initialization.
1804         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1805         prototype.
1806         (alphanbsd_iterate_over_regset_sections): New prototype.
1807
1808 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1809
1810         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1811         Remove.
1812         (aarch64_linux_iterate_over_regset_sections): New.
1813         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1814
1815 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1816
1817         * fbsd-tdep.c: New file.
1818         * fbsd-tdep.h: New file.
1819         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1820         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1821         (ALLDEPFILES): Add fbsd-tdep.c.
1822
1823 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1824
1825         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1826         parameter.
1827         * gdbarch.h: Regenerate.
1828         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1829         iterator.
1830         (get_core_register_section): Add parameter 'regset' and use it, if
1831         set.  Add parameter 'min_size' and verify the bfd section size
1832         against it.
1833         (get_core_registers_cb): Add parameter 'regset' and pass it to
1834         get_core_register section.  For the "standard" register sections
1835         ".reg" and ".reg2", set an appropriate default for human_name.
1836         (get_core_registers): Don't abort when the gdbarch has an iterator
1837         but no regset_from_core_section.  Add NULL/0 for parameters
1838         'regset'/'min_size' in calls to get_core_register_section.
1839         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1840         'regset' and use it instead of calling the
1841         regset_from_core_section gdbarch method.
1842         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1843         * i386-tdep.c (i386_supply_xstateregset)
1844         (i386_collect_xstateregset, i386_xstateregset): Moved to
1845         i386-linux-tdep.c.
1846         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1847         .reg-xstate.
1848         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1849         core file support only if the regset iterator hasn't been set.
1850         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1851         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1852         Moved from i386-tdep.c and renamed to *_linux*.
1853         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1854         each callback invocation.  Allow any .reg-xstate size when reading
1855         from a core file.
1856         * amd64-tdep.c (amd64_supply_xstateregset)
1857         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1858         amd64-linux-tdep.c.
1859         (amd64_regset_from_core_section): Remove.
1860         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1861         install an amd64-specific regset_from_core_section gdbarch method.
1862         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1863         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1864         Moved from amd64-tdep.c and renamed to *_linux*.
1865         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1866         to each callback invocation.  Allow any .reg-xstate size when
1867         reading from a core file.
1868         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1869         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1870         each callback invocation.
1871         (arm_linux_init_abi): No longer set the regset_from_core_section
1872         gdbarch method.
1873         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1874         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1875         each callback invocation.
1876         (ppc_linux_init_abi): No longer set the regset_from_core_section
1877         gdbarch method.
1878         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1879         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1880         (s390_regset_from_core_section): Remove.
1881         (s390_iterate_over_regset_sections): Add regset parameter to each
1882         callback invocation.
1883         (s390_gdbarch_init): No longer set the regset_from_core_section
1884         gdbarch method.  Drop initialization of deleted tdep fields.
1885
1886 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1887
1888         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1889         (amd64_linux_iterate_over_regset_sections): New.
1890         (amd64_linux_init_abi_common): Don't install the regset section
1891         list, but the new iterator in gdbarch.
1892         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1893         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1894         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1895         (arm_linux_init_abi): Set iterator instead of section list.
1896         * corelow.c (get_core_registers_cb): New function, logic moved
1897         from...
1898         (get_core_registers): ...loop body here.  Use new iterator method
1899         instead of walking through the regset section list.
1900         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1901         'iterate_over_regset_sections'.  New typedef
1902         'iterate_over_regset_sections_cb'.
1903         * gdbarch.c: Regenerate.
1904         * gdbarch.h: Likewise.
1905         * i386-linux-tdep.c (i386_linux_regset_sections)
1906         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1907         Remove.
1908         (i386_linux_iterate_over_regset_sections): New.
1909         (i386_linux_init_abi): Don't choose a regset section list, but
1910         install new iterator in gdbarch.
1911         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1912         (linux_collect_regset_section_cb): New function, logic moved
1913         from...
1914         (linux_collect_thread_registers): ...loop body here.  Use iterator
1915         method instead of walking through list.
1916         (linux_make_corefile_notes_1): Check for presence of iterator
1917         method instead of regset section list.
1918         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1919         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1920         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1921         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1922         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1923         (ppc_linux_init_abi): Don't choose from above regset section
1924         lists, but install new iterator in gdbarch.
1925         * regset.h (struct core_regset_section): Remove.
1926         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1927         have_linux_v1, have_linux_v2, and have_tdb.
1928         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1929         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1930         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1931         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1932         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1933         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1934         new tdep fields.
1935         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1936         regset section lists, but install new iterator.
1937
1938 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1939
1940         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1941
1942 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1943
1944         * progspace.c (print_program_space): Don't prune program spaces
1945         before printing them.
1946
1947 2014-09-25  Pedro Alves  <palves@redhat.com>
1948
1949         * infrun.c (user_visible_resume_ptid): Don't check
1950         singlestep_breakpoints_inserted_p.
1951
1952 2014-09-25  Pedro Alves  <palves@redhat.com>
1953
1954         * breakpoint.c (should_be_inserted): Add debug output.
1955
1956 2014-09-25  Pedro Alves  <palves@redhat.com>
1957
1958         * infrun.c (stepping_past_instruction_at)
1959         (clear_exit_convenience_vars): Point at infrun.h instead of
1960         inferior.h.
1961         (handle_signal_stop): Fix typo.
1962
1963 2014-09-24  Yao Qi  <yao@codesourcery.com>
1964
1965         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1966         bitmask.
1967
1968 2014-09-22  Gary Benson  <gbenson@redhat.com>
1969
1970         * target.c (target_stop): Updated comment.
1971
1972 2014-09-22  Gary Benson  <gbenson@redhat.com>
1973
1974         * target/target.h (target_stop_ptid): Renamed as...
1975         (target_stop_and_wait): New function.  Updated comment.
1976         All uses updated.
1977         (target_continue_ptid): Renamed as...
1978         (target_continue_no_signal): New function.  Updated comment.
1979         All uses updated.
1980
1981 2014-09-22  Pedro Alves  <palves@redhat.com>
1982
1983         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1984         and "auto" merged.
1985         * breakpoint.c (enum ugll_insert_mode): New enum.
1986         (always_inserted_mode): Now a plain boolean.
1987         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1988         (breakpoints_always_inserted_mode): Delete.
1989         (breakpoints_should_be_inserted_now): New function.
1990         (insert_breakpoints): Pass UGLL_INSERT to
1991         update_global_location_list instead of calling
1992         insert_breakpoint_locations manually.
1993         (create_solib_event_breakpoint_1): New, factored out from ...
1994         (create_solib_event_breakpoint): ... this.
1995         (create_and_insert_solib_event_breakpoint): Use
1996         create_solib_event_breakpoint_1 instead of calling
1997         insert_breakpoint_locations manually.
1998         (update_global_location_list): Change parameter type from boolean
1999         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2000         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2001         (update_global_location_list_nothrow): Change parameter type from
2002         boolean to enum ugll_insert_mode.
2003         (_initialize_breakpoint): "breakpoint always-inserted" option is
2004         now a boolean command.  Update help text.
2005         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2006         (breakpoints_should_be_inserted_now): New declaration.
2007         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2008         Remove breakpoints_always_inserted_mode check.
2009         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2010         * remote.c (remote_start_remote): Likewise.
2011
2012 2014-09-22  Pedro Alves  <palves@redhat.com>
2013
2014         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2015         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2016         Instead, pass UGLL_INSERT to update_global_location_list.
2017         (update_global_location_list): Change parameter type from boolean
2018         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2019         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2020         (create_solib_event_breakpoint_1): New, factored out from ...
2021         (create_solib_event_breakpoint): ... this.
2022         (create_and_insert_solib_event_breakpoint): Use
2023         create_solib_event_breakpoint_1 instead of calling
2024         insert_breakpoint_locations manually.
2025         (update_global_location_list): Handle UGLL_INSERT.
2026
2027 2014-09-22  Pedro Alves  <palves@redhat.com>
2028
2029         * breakpoint.c (enum ugll_insert_mode): New enum.
2030         (update_global_location_list)
2031         (update_global_location_list_nothrow): Change parameter type from
2032         boolean to enum ugll_insert_mode.  All callers adjusted.
2033
2034 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2035
2036         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2037         SystemTap support in GDB.
2038
2039 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2040
2041         * linux-nat.c (linux_handle_extended_wait): Call
2042         linux_ptrace_get_extended_event.
2043         (wait_lwp): Call linux_is_extended_waitstatus.
2044         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2045         and linux_is_extended_waitstatus.
2046         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2047         linux_ptrace_get_extended_event.
2048         (linux_ptrace_get_extended_event): New function.
2049         (linux_is_extended_waitstatus): New function.
2050         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2051         (linux_is_extended_waitstatus): New declarations.
2052
2053 2014-09-19  Yao Qi  <yao@codesourcery.com>
2054
2055         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2056         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2057         comments.  Callers update.
2058         (dwarf_decode_lines): Likewise.
2059         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2060         comments.  Skip the line table if  'lowpc' is greater than
2061         'address'.  Don't check
2062         dwarf2_per_objfile->has_section_at_zero.
2063
2064 2014-09-18  Doug Evans  <dje@google.com>
2065
2066         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2067         * python/py-symtab.c (stpy_get_producer): New function.
2068         (symtab_object_getset): Add "producer" attribute.
2069
2070 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2071
2072         PR gdb/17384
2073         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2074         (do_captured_read_memory_integer): Remove.
2075         (safe_read_memory_integer): Use target_read_memory directly instead
2076         of catching errors in do_captured_read_memory_integer.
2077
2078 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2079
2080         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2081         not gdb/doc.
2082
2083 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2084
2085         * objc-lang.c (find_implementation_from_class): Remove dead code.
2086
2087 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2088
2089         PR cli/7233
2090         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2091         "fprintf_unfiltered (gdb_stdlog...)".
2092
2093 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2094
2095         PR breakpoints/12526
2096         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2097         val_bitsize.
2098         * breakpoint.c (watch_command_1): Use these fields to retain
2099         bitfield information.
2100         (extract_bitfield_from_watchpoint_value): New function.
2101         (watchpoint_check): Use it.
2102         (update_watchpoint): Use it.  Optimize the address and length of a
2103         HW watchpoint pointing to a bitfield.
2104         * value.h (unpack_value_bitfield): New prototype.
2105         * value.c (unpack_value_bitfield): Make extern.
2106
2107 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2108
2109         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2110         x86-dregs.o.
2111         * gnu-nat.c (inf_threads): New function.
2112         * gnu-nat.h (inf_threads_ftype): New typedef.
2113         (inf_threads): New declaration.
2114         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2115         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2116         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2117         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2118         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2119         (i386_gnu_dr_get_control): New functions.
2120         (reg_addr): New structure.
2121         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2122         i386 debugging register hooks.
2123         * NEWS: Mention this.
2124
2125 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2126
2127         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2128         vector data transfer instructions.
2129         (arm_record_coproc_data_proc): Updated.
2130
2131 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2132
2133         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2134         arm_record_exreg_ld_st_insn.
2135         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2136         load/store insns.
2137
2138 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2139
2140         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2141         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2142         processing instructions.
2143
2144 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2145
2146         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2147         for advance SIMD struct ld/st insn.
2148         (thumb2_record_decode_insn_handler): Replace stub handler with
2149         thumb2_record_asimd_struct_ld_st.
2150
2151 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2152
2153         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2154         for asimd, vfp and coprocessor insns.
2155         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2156         and coprocessor insns.
2157         (thumb2_record_coproc_insn): New function.
2158         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2159         handlers.
2160         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2161         opcode 110 insns.
2162
2163 2014-09-13  Doug Evans  <xdje42@gmail.com>
2164
2165         * NEWS: Mention new "queue-signal" command.
2166         * infcmd.c (queue_signal_command): New function.
2167         (_initialize_infcmd): Add new queue-signal command.
2168
2169 2014-09-13  Doug Evans  <xdje42@gmail.com>
2170
2171         * linux-nat.c (wait_lwp): Add debugging printf.
2172         (linux_nat_wait_1): Ditto.
2173
2174 2014-09-12  Pedro Alves  <palves@redhat.com>
2175
2176         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2177         (create_and_insert_solib_event_breakpoint): New functions.
2178         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2179         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2180         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2181         (remove_dbx_link_breakpoint): Delete function.
2182         (insert_dbx_link_bpt_in_file): Use
2183         create_and_insert_solib_event_breakpoint instead of
2184         deprecated_insert_raw_breakpoint.
2185         (procfs_wait): Don't check whether we hit __dbx_link here.
2186         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2187         here.
2188         * solib-irix.c (base_breakpoint): Delete global.
2189         (disable_break): Delete function.
2190         (enable_break): Use create_solib_event_breakpoint
2191         instead of deprecated_insert_raw_breakpoint.
2192         (irix_solib_handle_event): New function.
2193         (irix_solib_create_inferior_hook): Don't run the target or disable
2194         the mapping-complete breakpoint here.
2195         (_initialize_irix_solib): Install irix_solib_handle_event as
2196         so_ops->handle_event hook.
2197
2198 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2199             Ulrich Weigand  <uweigand@de.ibm.com>
2200
2201         PR tdep/17379
2202         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2203         instead of read_memory_unsigned_integer.
2204
2205 2014-09-12  Gary Benson  <gbenson@redhat.com>
2206
2207         * nat/linux-waitpid.c: Include common-defs.h.
2208         [GDBSERVER]: Add FIXME comment.
2209         [!GDBSERVER]: Don't include defs.h or signal.h.
2210         (linux_debug) [!GDBSERVER]: Remove empty block.
2211
2212 2014-09-12  Gary Benson  <gbenson@redhat.com>
2213
2214         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2215         Don't include defs.h or server.h.
2216
2217 2014-09-12  Gary Benson  <gbenson@redhat.com>
2218
2219         * nat/linux-btrace.c: Include common-defs.h.
2220         Don't include defs.h, server.h or gdbthread.h.
2221         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2222
2223 2014-09-12  Gary Benson  <gbenson@redhat.com>
2224
2225         * common/agent.c: Include common-defs.h.
2226         Don't include defs.h or server.h.
2227         * common/buffer.c: Likewise.
2228         * common/common-debug.c: Likewise.
2229         * common/common-utils.c: Likewise.
2230         * common/errors.c: Likewise.
2231         * common/filestuff.c: Likewise.
2232         * common/format.c: Likewise.
2233         * common/gdb_vecs.c: Likewise.
2234         * common/print-utils.c: Likewise.
2235         * common/ptid.c: Likewise.
2236         * common/rsp-low.c: Likewise.
2237         * common/signals.c: Likewise.
2238         * common/vec.c: Likewise.
2239         * common/xml-utils.c: Likewise.
2240         * nat/linux-osdata.c: Likewise.
2241         * nat/linux-procfs.c: Likewise.
2242         * nat/linux-ptrace.c: Likewise.
2243         * nat/mips-linux-watch.c: Likewise.
2244         * target/waitstatus.c: Likewise.
2245
2246 2014-09-12  Tom Tromey  <tromey@redhat.com>
2247             Gary Benson  <gbenson@redhat.com>
2248
2249         * common/common-regcache.h: New file.
2250         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2251         * regcache.h: Include common-regcache.h.
2252         (regcache_read_pc): Don't declare.
2253         * regcache.c (get_thread_regcache_for_ptid): New function.
2254         * nat/linux-btrace.c: Don't include regcache.h.
2255         Include common-regcache.h.
2256         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2257
2258 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2259
2260         * regcache.h (struct regset): Declare.
2261
2262 2014-09-11  Pedro Alves  <palves@redhat.com>
2263
2264         PR gdb/17347
2265         * main.c: Include "infrun.h".
2266         (catch_command_errors, catch_command_errors_const): Wait for the
2267         foreground command to complete.
2268         * top.c (maybe_wait_sync_command_done): New function, factored out
2269         from ...
2270         (maybe_wait_sync_command_done): ... here.
2271         * top.h (maybe_wait_sync_command_done): New declaration.
2272
2273 2014-09-11  Tom Tromey  <tromey@redhat.com>
2274             Gary Benson  <gbenson@redhat.com>
2275
2276         * common/symbol.h: New file.
2277         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2278         * minsyms.c (find_minimal_symbol_address): New function.
2279         * common/agent.c: Include common/symbol.h.
2280         [!GDBSERVER]: Don't include objfiles.h.
2281         (agent_look_up_symbols): Use find_minimal_symbol_address.
2282
2283 2014-09-11  Gary Benson  <gbenson@redhat.com>
2284
2285         * target/target.h (target_stop_ptid, target_continue_ptid):
2286         Declare.
2287         * target.c (target_stop_ptid, target_continue_ptid): New
2288         functions.
2289         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2290         (agent_run_command): Always use target_stop_ptid and
2291         target_continue_ptid.
2292
2293 2014-09-11  Tom Tromey  <tromey@redhat.com>
2294             Gary Benson  <gbenson@redhat.com>
2295
2296         * target/target.h: New file.
2297         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2298         * target.h: Include target/target.h.
2299         (target_read_memory, target_write_memory): Don't declare.
2300         * target.c (target_read_uint32): New function.
2301         * common/agent.c: Include target/target.h.
2302         [!GDBSERVER]: Don't include target.h.
2303         (helper_thread_id): Type changed to uint32_t.
2304         (agent_get_helper_thread_id): Use target_read_uint32.
2305         (agent_run_command): Always use target_read_memory and
2306         target_write_memory.
2307         (agent_capability): Type changed to uint32_t.
2308         (agent_capability_check): Use target_read_uint32.
2309
2310 2014-09-11  Gary Benson  <gbenson@redhat.com>
2311
2312         * common/common-debug.h (show_debug_regs): Declare.
2313         * common/common-debug.c (show_debug_regs): Define.
2314         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2315         all uses with show_debug_regs.  Replace all uses that considered
2316         debug_hw_points as a multi-value integer with straight boolean
2317         uses.
2318         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2319         with show_debug_regs.
2320         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2321         all uses with show_debug_regs.
2322         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2323         uses with show_debug_regs.
2324
2325 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2326
2327         * findvar.c (address_from_register): Handle targets requiring
2328         a special conversion routine even for plain pointer types.
2329
2330 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2331
2332         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2333         (store_register): Do not call exec_one_dummy_insn.
2334
2335 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2336
2337         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2338         dereference it first.  Use value_enclosing_type instead of
2339         value_type.
2340         (ada_array_length): Likewise.
2341
2342 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2343
2344         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2345         Adjust function implementation and documentation accordingly.
2346         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2347         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2348         Update call to ada_value_ptr_subscript.
2349
2350 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2351
2352         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2353         instead of VAL's type.
2354
2355 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2356
2357         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2358
2359 2014-09-09  Doug Evans  <xdje42@gmail.com>
2360
2361         PR guile/17367
2362         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2363         last parameter to pkg-config, not first.
2364         * configure.ac: Pass --with-guile provided pkg-config path to
2365         GDB_GUILE_PROGRAM_NAMES.
2366         * configure: Regenerate.
2367
2368 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2369
2370         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2371         Bertazi".
2372
2373 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2374
2375         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2376         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2377         the list of sections determining GDB_OSABI_IRIX.
2378
2379 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2380
2381         * MAINTAINERS (Write After Approval): Add "James Hogan".
2382
2383 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2384
2385         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2386
2387 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2388
2389         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2390
2391 2014-09-08  Doug Evans  <xdje42@gmail.com>
2392
2393         PR 17247
2394         * guile.c: #include <signal.h>.
2395         (_initialize_guile): Block SIGCHLD while initializing Guile.
2396
2397         Replaces the following, which is reverted.
2398
2399         2014-07-26  Doug Evans  <xdje42@gmail.com>
2400
2401         PR 17185
2402         * configure.ac: Add check for header gc/gc.h.
2403         Add check for function setenv.
2404         * configure: Regenerate.
2405         * config.in: Regenerate.
2406         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2407
2408 2014-09-08  Doug Evans  <xdje42@gmail.com>
2409
2410         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2411         with named constant.  Fix style of pointer comparison.
2412         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2413
2414 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2415
2416         PR gdb/17035
2417         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2418         decide whether we display the command on "show user".
2419         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2420         printing command name.
2421         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2422         * cli/cli-decode.c (cli_user_command_p): Create helper function
2423         to verify whether cmd_list_element is a user-defined command.
2424
2425 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2426
2427         PR python/17355
2428         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2429         Fix goto out of TRY_CATCH.
2430
2431 2014-09-06  Doug Evans  <xdje42@gmail.com>
2432             Tom Tromey  <tromey@redhat.com>
2433
2434         PR 15276
2435         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2436         $_any_caller_matches.
2437         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2438         * python/lib/gdb/function/caller_is.py: New file.
2439
2440 2014-09-06  Doug Evans  <xdje42@gmail.com>
2441
2442         * infcmd.c (program_info): Fix typo.
2443
2444 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2445
2446         PR gdb/17235
2447         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2448         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2449         subexpressions on SDT probes.
2450
2451 2014-09-04  Pedro Alves  <palves@redhat.com>
2452
2453         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2454         the input is only one character long.
2455
2456 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2457
2458         PR fortran/17237
2459         * f-valprint.c (f_val_print): Specify the correct print option to
2460         use when printing integer values.
2461
2462 2014-09-04  Gary Benson  <gbenson@redhat.com>
2463
2464         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2465         Remove code to cope with LWPs wrapped as PIDs.
2466         Add assertions to ensure no wrapped LWPs are passed.
2467
2468 2014-09-04  Pedro Alves  <palves@redhat.com>
2469
2470         * value.c (value_ranges_copy_adjusted): New function, factored out
2471         from ...
2472         (value_contents_copy_raw): ... here.
2473         (unpack_value_bits_as_long_1): Rename back to ...
2474         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2475         'result' parameters.  Change return type to LONGEST.
2476         (unpack_value_bits_as_long): Delete.
2477         (unpack_value_field_as_long_1): Delete.
2478         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2479         (unpack_value_bitfield): New function.
2480         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2481         (value_fetch_lazy): Use unpack_value_bitfield.
2482         * value.h (unpack_value_bits_as_long): Delete declaration.
2483
2484 2014-09-03  Sasha Smundak  <asmundak@google.com>
2485
2486         * python/py-frame.c (frapy_read_register): New function.
2487
2488 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2489
2490         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2491         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2492
2493 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2494
2495         PR python/16699
2496         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2497         function.
2498         (add_cmd): Set "completer_handle_brkchars" to NULL.
2499         * cli/cli-decode.h (struct cmd_list_element)
2500         <completer_handle_brkchars>: New field.
2501         * command.h (completer_ftype_void): New typedef.
2502         (set_cmd_completer_handle_brkchars): New prototype.
2503         * completer.c (set_gdb_completion_word_break_characters): New
2504         function.
2505         (complete_line_internal): Call "completer_handle_brkchars"
2506         callback from command.
2507         * completer.h: Include "command.h".
2508         (set_gdb_completion_word_break_characters): New prototype.
2509         * python/py-cmd.c (cmdpy_completer_helper): New function.
2510         (cmdpy_completer_handle_brkchars): New function.
2511         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2512         (cmdpy_init): Set completer_handle_brkchars to
2513         cmdpy_completer_handle_brkchars.
2514
2515 2014-09-03  Gary Benson  <gbenson@redhat.com>
2516
2517         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2518         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2519         Loop conditions changed to equivalent form.
2520         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2521         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2522         ALL_DEBUG_ADDRESS_REGISTERS.
2523
2524 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2525
2526         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2527         description fix.
2528
2529 2014-09-02  Doug Evans  <dje@google.com>
2530
2531         * typeprint.c (find_global_typedef): Fix comment.
2532
2533 2014-09-02  Gary Benson  <gbenson@redhat.com>
2534
2535         * i386-nat.h: Renamed as...
2536         * x86-nat.h: New file.  All type, function and variable name
2537         prefixes changed from "i386_" to "x86_".  All references updated.
2538         * i386-nat.c: Renamed as...
2539         * x86-nat.c: New file.  All type, function and variable name
2540         prefixes changed from "i386_" to "x86_".  All references updated.
2541         * common/i386-xstate.h: Renamed as...
2542         * common/x86-xstate.h: New file.  All type, function and variable
2543         name prefixes changed from "i386_" to "x86_".  All references
2544         updated.
2545         * nat/i386-cpuid.h: Renamed as...
2546         * nat/x86-cpuid.h: New file.  All type, function and variable name
2547         prefixes changed from "i386_" to "x86_".  All references updated.
2548         * nat/i386-gcc-cpuid.h: Renamed as...
2549         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2550         name prefixes changed from "i386_" to "x86_".  All references
2551         updated.
2552         * nat/i386-dregs.h: Renamed as...
2553         * nat/x86-dregs.h: New file.  All type, function and variable name
2554         prefixes changed from "i386_" to "x86_".  All references updated.
2555         * nat/i386-dregs.c: Renamed as...
2556         * nat/x86-dregs.c: New file.  All type, function and variable name
2557         prefixes changed from "i386_" to "x86_".  All references updated.
2558
2559 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2560
2561         * varobj.c (_initialize_varobj): Move to the end of file.
2562
2563 2014-08-29  Gary Benson  <gbenson@redhat.com>
2564
2565         * common/common-exceptions.h: New file.
2566         * common/common-exceptions.c: Likewise.
2567         * Makefile.in (SFILES): Add common/common-exceptions.c.
2568         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2569         (COMMON_OBS): Add common-exceptions.o.
2570         (common-exceptions.o): New rule.
2571         * exceptions.h (common-exceptions.h): Include.
2572         (gdb_setjmp.h): Do not include.
2573         (return_reason): Moved to common-exceptions.h.
2574         (enum return_reason): Likewise.
2575         (RETURN_MASK): Likewise.
2576         (typedef return_mask): Likewise.
2577         (enum errors): Likewise.
2578         (struct gdb_exception): Likewise.
2579         (exceptions_state_mc_init): Likewise.
2580         (exceptions_state_mc_action_iter): Likewise.
2581         (exceptions_state_mc_action_iter_1): Likewise.
2582         (TRY_CATCH): Likewise.
2583         (throw_exception): Likewise.
2584         (throw_verror): Likewise.
2585         (throw_vquit): Likewise.
2586         (throw_error): Likewise.
2587         (throw_quit): Likewise.
2588         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2589         (enum catcher_action): Likewise.
2590         (struct catcher): Likewise.
2591         (current_catcher): Likewise.
2592         (catcher_list_size): Likewise.
2593         (exceptions_state_mc_init): Likewise.
2594         (catcher_pop): Likewise.
2595         (exceptions_state_mc): Likewise.
2596         (exceptions_state_mc_action_iter): Likewise.
2597         (exceptions_state_mc_action_iter_1): Likewise.
2598         (throw_exception): Likewise.
2599         (exception_messages): Likewise.
2600         (exception_messages_size): Likewise.
2601         (throw_it): Likewise.
2602         (throw_verror): Likewise.
2603         (throw_vquit): Likewise.
2604         (throw_error): Likewise.
2605         (throw_quit): Likewise.
2606         (prepare_to_throw_exception): New function.
2607
2608 2014-08-29  Gary Benson  <gbenson@redhat.com>
2609
2610         * common/gdb_setjmp.h: New file.
2611         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2612         * configure.ac: Move sigsetjmp check...
2613         * common/common.m4: ...here.
2614         * configure: Regenerate.
2615         * cp-support.c (SIGJMP_BUF): Delete.
2616         (SIGSETJMP): Likewise.
2617         (SIGLONGJMP): Likewise.
2618         * exceptions.h (gdb_setjmp.h): Include.
2619         (setjmp.h): Do not include.
2620         (EXCEPTIONS_SIGJMP_BUF): Delete.
2621         (EXCEPTIONS_SIGSETJMP): Likewise.
2622         (EXCEPTIONS_SIGLONGJMP): Likewise.
2623         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2624         from gdb_setjmp.h.
2625         * exceptions.c: Likewise.
2626
2627 2014-08-29  Gary Benson  <gbenson@redhat.com>
2628
2629         * cleanups.h: Moved to...
2630         * common/cleanups.h: New file.
2631         * cleanups.c: Moved to...
2632         * common/cleanups.c: New file.  Include common-defs.h and
2633         cleanups.h.  Do not include defs.h.
2634         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2635         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2636         (cleanups.o): New rule.
2637
2638 2014-08-29  Gary Benson  <gbenson@redhat.com>
2639
2640         * common/errors.h (internal_warning): New declaration.
2641         (internal_vwarning): Likewise.
2642         * common/errors.c (internal_warning): New function.
2643         * utils.h (internal_warning): Don't declare.
2644         (internal_vwarning): Likewise.
2645         * utils.c (internal_warning): Removed.
2646
2647 2014-08-29  Gary Benson  <gbenson@redhat.com>
2648
2649         * main.c (captured_main): Use warning during startup.
2650         Prefix startup warning messages with command name.
2651
2652 2014-08-29  Gary Benson  <gbenson@redhat.com>
2653
2654         * main.c (captured_main): Handle usage errors with error.
2655
2656 2014-08-29  Gary Benson  <gbenson@redhat.com>
2657
2658         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2659         exit pair with a call to error.  Wrap the message with _().
2660
2661 2014-08-29  Gary Benson  <gbenson@redhat.com>
2662
2663         * main.c (captured_main): Replace a fprintf/exit
2664         pair with a call to error.  Wrap the message with _().
2665
2666 2014-08-29  Gary Benson  <gbenson@redhat.com>
2667
2668         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2669         pairs with calls to error.  Wrap the message with _().
2670
2671 2014-08-29  Gary Benson  <gbenson@redhat.com>
2672
2673         * utils.c (vwarning): Protect calls to target_terminal_ours
2674         and wrap_here.
2675
2676 2014-08-29  Gary Benson  <gbenson@redhat.com>
2677
2678         * exceptions.c (print_flush): Protect calls to
2679         target_terminal_ours and wrap_here.
2680
2681 2014-08-29  Gary Benson  <gbenson@redhat.com>
2682
2683         * utils.h (filtered_printing_initialized): New declaration.
2684         * utils.c (abort_with_message): New function.
2685         (internal_vproblem): Use abort_with_message for first level
2686         recursive internal problems, and if gdb_stderr is not set up.
2687         Protect calls to target_terminal_ours, begin_line and query.
2688
2689 2014-08-28  Doug Evans  <dje@google.com>
2690
2691         * symtab.c (in_prologue): Move definition to better spot.
2692         (skip_prologue_using_sal): Ditto.
2693
2694 2014-08-28  Doug Evans  <dje@google.com>
2695
2696         * symtab.c (find_function_start_sal): Move definition to better spot.
2697
2698 2014-08-28  Yao Qi  <yao@codesourcery.com>
2699
2700         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2701         found_stack_adjust in forward scan.  Remove condition check
2702         on found_stack_adjust which is always true.  Indent the code.
2703
2704 2014-08-28  Yao Qi  <yao@codesourcery.com>
2705
2706         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2707         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2708         (dwarf_decode_lines): Remove argument
2709         want_line_info.  Remove condition check on want_line_info.
2710         Callers update.
2711
2712 2014-08-27  Doug Evans  <dje@google.com>
2713
2714         * dwarf2read.c (dwarf_record_line): Fix typo.
2715
2716 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2717
2718         * target.h (struct target_ops::to_terminal_save_ours): Remove
2719         declaration.
2720         (target_terminal_save_ours): Remove macro.
2721         * target-delegates.c: Regenerate.
2722         * inf-child.c (inf_child_target): Don't set the nonexistent
2723         field to_terminal_save_ours.
2724         * inferior.h (child_terminal_save_ours): Remove declaration.
2725         * terminal.h (gdb_save_tty_state): New declaration.
2726         * inflow.c (child_terminal_save_ours): Rename to ...
2727         (gdb_save_tty_state): ... this.
2728         * tui/tui.c: Include terminal.h.
2729         (tui_enable): Use gdb_save_tty_state instead of
2730         target_terminal_save_ours.
2731         (tui_disable): Likewise.
2732
2733 2014-08-25  Doug Evans  <dje@google.com>
2734
2735         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2736         Pass NULL instead of 0 for context pointer.
2737
2738 2014-08-25  Yao Qi  <yao@codesourcery.com>
2739
2740         * dwarf2read.c: Fix grammatical error.
2741
2742 2014-08-24  Yao Qi  <yao@codesourcery.com>
2743
2744         * dwarf2read.c (scan_partial_symbols):  Update comments.
2745         Rename argument 'need_pc' with 'set_addrmap'.
2746         (add_partial_namespace): Rename argument 'need_pc' with
2747         'set_addrmap'.
2748         (add_partial_module): Likewise.
2749         (add_partial_subprogram): Likewise.  Update comments.
2750         (dwarf2_name): Fix typo.
2751
2752 2014-08-22  Doug Evans  <dje@google.com>
2753
2754         PR 17276
2755         * dwarf2read.c (dwarf_record_line_p): New function.
2756         (dwarf_decode_lines_1): Ignore subsequent line number entries
2757         for the same line if any entry had a non-zero discriminator.
2758
2759 2014-08-22  Doug Evans  <dje@google.com>
2760
2761         * buildsym.h (record_line_ftype): New typedef.
2762         (record_line): Use it.
2763         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2764         (dwarf_decode_lines_1): Call them.
2765
2766 2014-08-22  Yao Qi  <yao@codesourcery.com>
2767
2768         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2769         (ctf_end): Remove code.
2770
2771 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2772
2773         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2774         (linux_make_corefile_notes): call update_thread_list, protected against
2775         exceptions.
2776
2777 2014-08-21  Pedro Alves  <palves@redhat.com>
2778
2779         * infcmd.c (attach_command): Remove comment.
2780
2781 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2782
2783         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2784         unsigned LONGEST to ULONGEST.
2785
2786 2014-08-20  Pedro Alves  <palves@redhat.com>
2787
2788         * Makefile.in (check-read1): New rule.
2789
2790 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2791
2792         * value.c (value_from_contents_and_address): Strip resolved_type's
2793         typedef layers before checking its TYPE_DATA_LOCATION.
2794
2795 2014-08-20  Pedro Alves  <palves@redhat.com>
2796
2797         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2798
2799 2014-08-20  Yao Qi  <yao@codesourcery.com>
2800
2801         * amd64-tdep.c (amd64_classify): Add a blank line after the
2802         example.  Move "*/" to a new line.
2803         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2804         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2805         * dwarf2read.c (psymtab_include_file_name): Likewise.
2806
2807 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2808             Pedro Alves  <palves@redhat.com>
2809
2810         PR symtab/14604
2811         PR symtab/14605
2812         * ada-lang.c (coerce_unspec_val_to_type): Use
2813         value_contents_copy_raw.
2814         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2815         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2816         * cp-valprint.c (cp_print_value_fields): Let the common printing
2817         code handle optimized out values.
2818         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2819         * d-valprint.c (dynamic_array_type): Use
2820         value_bits_any_optimized_out.
2821         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2822         check_any_valid fields.
2823         (check_pieced_value_bits): Delete and inline ...
2824         (check_pieced_synthetic_pointer): ... here.
2825         (check_pieced_value_validity): Delete.
2826         (check_pieced_value_invalid): Delete.
2827         (pieced_value_funcs): Remove check_validity and check_any_valid
2828         fields.
2829         (read_pieced_value): Use mark_value_bits_optimized_out.
2830         (write_pieced_value): Switch to use
2831         mark_value_bytes_optimized_out.
2832         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2833         of assuming the whole value is optimized out.
2834         * findvar.c (read_frame_register_value): Remove special handling
2835         of optimized out registers.
2836         (value_from_register): Use mark_value_bytes_optimized_out.
2837         * frame-unwind.c (frame_unwind_got_optimized): Use
2838         mark_value_bytes_optimized_out.
2839         * jv-valprint.c (java_value_print): Adjust.
2840         (java_print_value_fields): Let the common printing code handle
2841         optimized out values.
2842         * mips-tdep.c (mips_print_register): Remove special handling of
2843         optimized out registers.
2844         * opencl-lang.c (lval_func_check_validity): Delete.
2845         (lval_func_check_any_valid): Delete.
2846         (opencl_value_funcs): Remove check_validity and check_any_valid
2847         fields.
2848         * p-valprint.c (pascal_object_print_value_fields): Let the common
2849         printing code handle optimized out values.
2850         * stack.c (read_frame_arg): Remove special handling of optimized
2851         out values.  Fetch both VAL and ENTRYVAL before comparing
2852         contents.  Adjust to value_available_contents_eq rename.
2853         * valprint.c (valprint_check_validity)
2854         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2855         (val_print_array_elements): Adjust.
2856         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2857         (value_bits_any_optimized_out): New function.
2858         (value_entirely_covered_by_range_vector): New function, factored
2859         out from value_entirely_unavailable.
2860         (value_entirely_unavailable): Reimplement.
2861         (value_entirely_optimized_out): New function.
2862         (insert_into_bit_range_vector): New function, factored out from
2863         mark_value_bits_unavailable.
2864         (mark_value_bits_unavailable): Reimplement.
2865         (struct ranges_and_idx): New struct.
2866         (find_first_range_overlap_and_match): New function, factored out
2867         from value_available_contents_bits_eq.
2868         (value_available_contents_bits_eq): Rename to ...
2869         (value_contents_bits_eq): ... this.  Check both unavailable
2870         contents and optimized out contents.
2871         (value_available_contents_eq): Rename to ...
2872         (value_contents_eq): ... this.
2873         (allocate_value_lazy): Remove reference to the old optimized_out
2874         boolean.
2875         (allocate_optimized_out_value): Use
2876         mark_value_bytes_optimized_out.
2877         (require_not_optimized_out): Adjust to check whether the
2878         optimized_out vec is empty.
2879         (ranges_copy_adjusted): New function, factored out from
2880         value_contents_copy_raw.
2881         (value_contents_copy_raw): Also copy the optimized out ranges.
2882         Assert the destination ranges aren't optimized out.
2883         (value_contents_copy): Update comment, remove call to
2884         require_not_optimized_out.
2885         (value_contents_equal): Adjust to check whether the optimized_out
2886         vec is empty.
2887         (set_value_optimized_out, value_optimized_out_const): Delete.
2888         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2889         New functions.
2890         (value_entirely_optimized_out, value_bits_valid): Delete.
2891         (value_copy): Take a VEC copy of the 'optimized_out' field.
2892         (value_primitive_field): Remove special handling of optimized out.
2893         (value_fetch_lazy): Assert that lazy values have no unavailable
2894         regions.  Use value_bits_any_optimized_out.  Remove some special
2895         handling for optimized out values.
2896         * value.h: Add intro comment about <optimized out> and
2897         <unavailable>.
2898         (struct lval_funcs): Remove check_validity and check_any_valid
2899         fields.
2900         (set_value_optimized_out, value_optimized_out_const): Remove.
2901         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2902         New declarations.
2903         (value_bits_any_optimized_out): New declaration.
2904         (value_bits_valid): Delete declaration.
2905         (value_available_contents_eq): Rename to ...
2906         (value_contents_eq): ... this, and extend comments.
2907
2908 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2909
2910         Fix -fsanitize=address on unreadable inferior strings.
2911         * valprint.c (val_print_string): Fix access before BUFFER.
2912
2913 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2914
2915         * target.c (target_struct_size): Remove.
2916         (target_struct_allocsize): Remove.
2917         (DEFAULT_ALLOCSIZE): Remove.
2918         (target_ops_p): New typedef.
2919         (DEF_VEC_P (target_ops_p)): New vector type.
2920         (target_structs): Change type to VEC (target_ops_p).
2921         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2922         (find_default_run_target): Rewrite for loop following changes to
2923         target_structs.
2924
2925 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2926
2927         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2928         Adjust code accordingly.  Adjust function description comment.
2929
2930 2014-08-19  Yao Qi  <yao@codesourcery.com>
2931
2932         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2933         types.
2934
2935 2014-08-19  Alan Modra  <amodra@gmail.com>
2936
2937         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2938         * config.in: Regenerate.
2939         * configure: Regenerate.
2940
2941 2014-08-19  Tom Tromey  <tromey@redhat.com>
2942             Gary Benson  <gbenson@redhat.com>
2943
2944         * common/common-debug.h: New file.
2945         * common/common-debug.c: Likewise.
2946         * debug.c: Likewise.
2947         * Makefile.in (SFILES): Add common/common-debug.c.
2948         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2949         (COMMON_OBS): Add common-debug.o and debug.o.
2950         (common-debug.o): New rule.
2951         * common/common-defs.h: Include common-debug.h.
2952         * common/agent.c (debug_agent_printf): New function.
2953         (DEBUG_AGENT): Redefine.
2954         * nat/i386-dregs.c (debug_printf): Undefine.
2955
2956 2014-08-19  Gary Benson  <gbenson@redhat.com>
2957
2958         * common/common-defs.h: Include print-utils.h.
2959         * utils.h: Do not include print-utils.h.
2960
2961 2014-08-19  Tom Tromey  <tromey@redhat.com>
2962             Gary Benson  <gbenson@redhat.com>
2963
2964         * common/common-types.h: New file.
2965         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2966         * common/common-defs.h: Include common-types.h.
2967         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2968         (ULONGEST): Remove.
2969
2970 2014-08-19  Tom Tromey  <tromey@redhat.com>
2971             Gary Benson  <gbenson@redhat.com>
2972
2973         * common/errors.h: New file.
2974         * common/errors.c: Likewise.
2975         * Makefile.in (SFILES): Add common/errors.c.
2976         (HFILES_NO_SRCDIR): Add common/errors.h.
2977         (COMMON_OBS): Add errors.o.
2978         (errors.o): New rule.
2979         * common/common-defs.h: Include errors.h.
2980         * utils.h (perror_with_name, error, verror, warning, vwarning):
2981         Don't declare.
2982         * common/common-utils.h: (malloc_failure, internal_error):
2983         Likewise.
2984
2985 2014-08-19  Gary Benson  <gbenson@redhat.com>
2986
2987         * utils.c (internal_vproblem): Always print the message.
2988
2989 2014-08-18  Doug Evans  <dje@google.com>
2990
2991         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2992
2993 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2994
2995         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2996         Return 0 if TYPE is dynamic.
2997         (print_range): Add handling of dynamic ranges.
2998
2999 2014-08-18  Keven Boell  <keven.boell@intel.com>
3000             Joel Brobecker  <brobecker@adacore.com>
3001
3002         * gdbtypes.h (struct main_type): Add field "data_location".
3003         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3004         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3005         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3006         a dynamic data location.
3007         (resolve_dynamic_type): Add DW_AT_data_location handling.
3008         (copy_recursive, copy_type): Copy the data_location information
3009         when present.
3010         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3011         * value.c (value_from_contents_and_address): Add
3012         DW_AT_data_location handling.
3013
3014 2014-08-18  Keven Boell  <keven.boell@intel.com>
3015             Joel Brobecker  <brobecker@adacore.com>
3016
3017         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3018         field "get_object_address".
3019         * dwarf2expr.c (execute_stack_op): Add handling for
3020         DW_OP_push_object_address.
3021         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3022         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3023         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3024         (dwarf_expr_get_obj_addr): New function.
3025         (dwarf_expr_ctx_funcs): Add get_object_address field.
3026         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3027         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3028         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3029         (needs_get_obj_addr): New function.
3030         (needs_frame_ctx_funcs): Add get_object_address field.
3031         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3032         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3033         (resolve_dynamic_array): Likewise.
3034
3035 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3036
3037         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3038         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3039         fixed value for records and unions for which some GNAT encodings
3040         are present.
3041
3042 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3043
3044         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3045         rewrite to avoid "else if" and "else" constructs.  Should be
3046         a no-op in practice.
3047
3048 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3049
3050         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3051         of lexical block.
3052
3053 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3054
3055         PR c++/17132
3056         * eval.c: Update all calls to find_overload_match.
3057         * valarith.c: Likewise.
3058         (value_user_defined_cpp_op, value_user_defined_op): New
3059         argument NOSIDE.  Update all callers.
3060         * valops.c (find_overload_match): New argument NOSIDE.
3061         * value.h (find_overload_match): Update signature.
3062
3063 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3064
3065         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3066         'items' methods instead of 'iteritems' method on dictionaries.
3067
3068 2014-08-15  Doug Evans  <dje@google.com>
3069
3070         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3071         closer to use.
3072
3073 2014-08-15  Doug Evans  <dje@google.com>
3074
3075         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3076
3077 2014-08-15  Doug Evans  <dje@google.com>
3078
3079         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3080
3081 2014-08-15  Doug Evans  <dje@google.com>
3082
3083         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3084         unused.
3085
3086 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3087
3088         * dcache.h: Include target.h, to avoid compile time warnings.
3089
3090 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3091
3092         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3093         frame_info" partial declaration.
3094         * gdbarch.h: Regenerate.
3095
3096 2014-08-15  Yao Qi  <yao@codesourcery.com>
3097
3098         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3099         Add parameter 'decode_for_pst_p'.  Callers update.
3100
3101 2014-08-13  Yao Qi  <yao@codesourcery.com>
3102
3103         PR build/17104
3104         * configure.ac: Use local variable 'pos'.
3105         * configure: Regenerated.
3106
3107 2014-08-11  Doug Evans  <dje@google.com>
3108
3109         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3110         message, it is redundant with "Reading symbols from ..." message.
3111
3112 2014-08-10  Doug Evans  <xdje42@gmail.com>
3113
3114         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3115
3116 2014-08-09  Yao Qi  <yao@codesourcery.com>
3117
3118         PR remote/9053
3119         * remote.c (remote_xfer_partial): Remove dead code.
3120
3121 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3122
3123         * ia64-linux-tdep.c: Include "regset.h".
3124         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3125         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3126         (ia64_linux_supply_fpregset): New function.
3127         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3128         (ia64_linux_regset_from_core_section): New function.
3129         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3130         method.
3131
3132 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3133
3134         * m68klinux-tdep.c: Include "regset.h".
3135         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3136         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3137         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3138         (m68k_linux_regset_from_core_section): New function.
3139         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3140         method.
3141
3142 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3143
3144         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3145         function.  Move logic to...
3146         (tilegx_linux_regmap): ... this new register map.
3147         (tilegx_linux_regset): Refer to register map, replace supply
3148         method by regcache_supply_regset, and add collect method.
3149         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3150         TILEGX_FIRST_EASY_REGNUM.
3151
3152 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3153
3154         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3155         that calls regcache_supply_regset and handles the EPC register
3156         separately.  Move main logic to...
3157         (score7_linux_gregmap): ... this new register map.
3158         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3159         (score7_linux_gregset): Refer to register map.  Add collect method.
3160         (score7_linux_regset_from_core_section): Replace
3161         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3162         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3163         (struct regset): Delete unused forward declaraction.
3164         (struct pt_regs): Delete structure definition.
3165         (elf_gregset_t): Delete typedef.
3166
3167 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3168
3169         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3170         (nios2_core_regset): Add collect method.
3171
3172 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3173
3174         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3175         platform-independent and don't write to read-only input buffer.
3176         (m32r_linux_collect_gregset): New function.
3177         (m32r_linux_gregset): Add collect method.
3178
3179 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3180
3181         * hppa-linux-tdep.c (greg_map): Rename to...
3182         (hppa_linux_gregmap): ... this.  Also convert to
3183         regcache_map_entry format.
3184         (hppa_linux_supply_regset): Delete function.
3185         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3186         (hppa_linux_fpregmap): ... this new register map.
3187         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3188         register map, replace supply method by regcache_supply_regset, and
3189         add collect method regcache_collect_regset.
3190
3191 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3192
3193         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3194         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3195         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3196         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3197         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3198         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3199         (frv_linux_supply_gregset): Replace main logic by call to
3200         regcache_supply_regset, but keep clearing gr32-gr63.
3201         (frv_linux_supply_fpregset): Delete function.
3202         (frv_linux_gregset): Refer to appropriate register map and add
3203         regcache_collect_regset as the collect method.
3204         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3205         by regcache_supply_regset.
3206
3207 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3208
3209         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3210         by call to alpha_supply_int_regs.
3211         (alpha_linux_collect_gregset): New function.
3212         (alpha_linux_supply_fpregset): Replace logic by call to
3213         alpha_supply_fp_regs.
3214         (alpha_linux_collect_fpregset): New function.
3215         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3216
3217 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3218
3219         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3220         by call to regcache_collect_regset.
3221         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3222         instead of aarch64_linux_supply_gregset/_fpregset.
3223         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3224         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3225         header file instead.
3226         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3227         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3228         functions.  Move logic to ...
3229         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3230         register maps.
3231         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3232         refer to new register maps, replace *_regset_from_core by
3233         regcache_supply_regset, and also use regcache_collect_regset.
3234         * aarch64-linux-tdep.h: Include "regset.h".
3235         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3236         Delete prototypes.
3237         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3238         macros, moved from C source file.
3239         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3240         variable declarations.
3241
3242 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3243
3244         * s390-linux-nat.c: Include "regset.h".
3245         (regmap_gregset): Delete macro.
3246         (s390_64_regmap_gregset): New register map for
3247         regcache_supply/_collect_regset.
3248         (s390_64_gregset): New regset.
3249         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3250         (regmap_fpregset): Delete macro.
3251         (s390_native_supply, s390_native_collect): Delete functions.
3252         (supply_gregset, fill_gregset): Replace s390-specific regmap
3253         handling by a call to regcache_supply/_collect_regset.
3254         (supply_fpregset, fill_fpregset): Call regcache_supply/
3255         _collect_regset instead of s390_native_supply/_collect.
3256         (fetch_regset, store_regset): Likewise.  Also change the last
3257         parameter to a regset instead of a regmap.
3258         (s390_linux_fetch_inferior_registers)
3259         (390_linux_store_inferior_registers): Adjust last parameter in
3260         calls to fetch_regset and store_regset.
3261         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3262         (s390_gregmap): ... this.  Also make static const and convert to
3263         regcache_map_entry format.
3264         (s390x_regmap_gregset): Delete.
3265         (s390_regmap_fpregset): Rename to...
3266         (s390_fpregmap): ... this.  Make static const and convert to
3267         regcache_map_entry format.
3268         (s390_regmap_upper, s390_regmap_last_break)
3269         (s390x_regmap_last_break, s390_regmap_system_call)
3270         (s390_regmap_tdb): Likewise.
3271         (s390_supply_regset, s390_collect_regset): Remove functions.
3272         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3273         s390_supply_regset.
3274         (s390_gregset, s390_fpregset, s390_upper_regset)
3275         (s390_last_break_regset, s390x_last_break_regset)
3276         (s390_system_call_regset, s390_tdb_regset): Make global and
3277         replace s390_supply/_collect_regset by regcache_supply/
3278         _collect_regset.
3279         (s390x_gregset): Delete.
3280         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3281         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3282         (s390_regmap_fpregset, s390_regmap_last_break)
3283         (s390x_regmap_last_break, s390_regmap_system_call)
3284         (s390_regmap_tdb): Delete global variable declarations.
3285         (s390_gregset, s390_fpregset, s390_last_break_regset)
3286         (s390x_last_break_regset, s390_system_call_regset)
3287         (s390_tdb_regset): New global variable declarations.
3288
3289 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3290
3291         * regcache.c: Include "regset.h".
3292         (regcache_transfer_regset): New local function.
3293         (regcache_supply_regset, regcache_collect_regset): New functions.
3294         * regcache.h (struct regcache_map_entry): New structure.
3295         (REGCACHE_MAP_SKIP): New enum value.
3296         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3297
3298 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3299
3300         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3301         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3302         (ppc_linux_collect_gregset ): Likewise.
3303         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3304         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3305         (ppc_collect_vrregset): Likewise.
3306         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3307         Likewise.
3308
3309 2014-08-07  Yao Qi  <yao@codesourcery.com>
3310
3311         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3312         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3313         * remote.c (remote_read_bytes): Likewise.
3314
3315 2014-08-07  Yao Qi  <yao@codesourcery.com>
3316
3317         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3318
3319 2014-08-07  Yao Qi  <yao@codesourcery.com>
3320
3321         PR remote/17230
3322         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3323         TARGET_XFER_OK instead of 0.
3324
3325 2014-08-07  Gary Benson  <gbenson@redhat.com>
3326
3327         * common/common-defs.h: Include errno.h.
3328         * defs.h: Do not include errno.h.
3329         * ada-typeprint.c: Likewise.
3330         * c-typeprint.c: Likewise.
3331         * core-regset.c: Likewise.
3332         * corefile.c: Likewise.
3333         * corelow.c: Likewise.
3334         * event-loop.c: Likewise.
3335         * f-typeprint.c: Likewise.
3336         * gnu-nat.c: Likewise.
3337         * go32-nat.c: Likewise.
3338         * i386gnu-nat.c: Likewise.
3339         * m2-typeprint.c: Likewise.
3340         * nat/linux-btrace.c: Likewise.
3341         * p-typeprint.c: Likewise.
3342         * procfs.c: Likewise.
3343         * remote-sim.c: Likewise.
3344         * rs6000-nat.c: Likewise.
3345         * target.c: Likewise.
3346         * typeprint.c: Likewise.
3347         * ui-file.c: Likewise.
3348         * valops.c: Likewise.
3349         * valprint.c: Likewise.
3350
3351 2014-08-07  Gary Benson  <gbenson@redhat.com>
3352
3353         * common/common-defs.h: Include string.h.
3354         * aarch64-tdep.c: Do not include string.h.
3355         * ada-exp.y: Likewise.
3356         * ada-lang.c: Likewise.
3357         * ada-lex.l: Likewise.
3358         * ada-typeprint.c: Likewise.
3359         * ada-valprint.c: Likewise.
3360         * aix-thread.c: Likewise.
3361         * alpha-linux-tdep.c: Likewise.
3362         * alpha-mdebug-tdep.c: Likewise.
3363         * alpha-nat.c: Likewise.
3364         * alpha-osf1-tdep.c: Likewise.
3365         * alpha-tdep.c: Likewise.
3366         * alphanbsd-tdep.c: Likewise.
3367         * amd64-dicos-tdep.c: Likewise.
3368         * amd64-linux-tdep.c: Likewise.
3369         * amd64-nat.c: Likewise.
3370         * amd64-sol2-tdep.c: Likewise.
3371         * amd64fbsd-tdep.c: Likewise.
3372         * amd64obsd-tdep.c: Likewise.
3373         * arch-utils.c: Likewise.
3374         * arm-linux-nat.c: Likewise.
3375         * arm-linux-tdep.c: Likewise.
3376         * arm-tdep.c: Likewise.
3377         * arm-wince-tdep.c: Likewise.
3378         * armbsd-tdep.c: Likewise.
3379         * armnbsd-nat.c: Likewise.
3380         * armnbsd-tdep.c: Likewise.
3381         * armobsd-tdep.c: Likewise.
3382         * avr-tdep.c: Likewise.
3383         * ax-gdb.c: Likewise.
3384         * ax-general.c: Likewise.
3385         * bcache.c: Likewise.
3386         * bfin-tdep.c: Likewise.
3387         * breakpoint.c: Likewise.
3388         * build-id.c: Likewise.
3389         * buildsym.c: Likewise.
3390         * c-exp.y: Likewise.
3391         * c-lang.c: Likewise.
3392         * c-typeprint.c: Likewise.
3393         * c-valprint.c: Likewise.
3394         * charset.c: Likewise.
3395         * cli-out.c: Likewise.
3396         * cli/cli-cmds.c: Likewise.
3397         * cli/cli-decode.c: Likewise.
3398         * cli/cli-dump.c: Likewise.
3399         * cli/cli-interp.c: Likewise.
3400         * cli/cli-logging.c: Likewise.
3401         * cli/cli-script.c: Likewise.
3402         * cli/cli-setshow.c: Likewise.
3403         * cli/cli-utils.c: Likewise.
3404         * coffread.c: Likewise.
3405         * common/agent.c: Likewise.
3406         * common/buffer.c: Likewise.
3407         * common/buffer.h: Likewise.
3408         * common/common-utils.c: Likewise.
3409         * common/filestuff.c: Likewise.
3410         * common/filestuff.c: Likewise.
3411         * common/format.c: Likewise.
3412         * common/print-utils.c: Likewise.
3413         * common/rsp-low.c: Likewise.
3414         * common/signals.c: Likewise.
3415         * common/vec.h: Likewise.
3416         * common/xml-utils.c: Likewise.
3417         * core-regset.c: Likewise.
3418         * corefile.c: Likewise.
3419         * corelow.c: Likewise.
3420         * cp-abi.c: Likewise.
3421         * cp-name-parser.y: Likewise.
3422         * cp-support.c: Likewise.
3423         * cp-valprint.c: Likewise.
3424         * cris-tdep.c: Likewise.
3425         * d-exp.y: Likewise.
3426         * darwin-nat.c: Likewise.
3427         * dbxread.c: Likewise.
3428         * dcache.c: Likewise.
3429         * demangle.c: Likewise.
3430         * dicos-tdep.c: Likewise.
3431         * disasm.c: Likewise.
3432         * doublest.c: Likewise.
3433         * dsrec.c: Likewise.
3434         * dummy-frame.c: Likewise.
3435         * dwarf2-frame.c: Likewise.
3436         * dwarf2loc.c: Likewise.
3437         * dwarf2read.c: Likewise.
3438         * elfread.c: Likewise.
3439         * environ.c: Likewise.
3440         * eval.c: Likewise.
3441         * event-loop.c: Likewise.
3442         * exceptions.c: Likewise.
3443         * exec.c: Likewise.
3444         * expprint.c: Likewise.
3445         * f-exp.y: Likewise.
3446         * f-lang.c: Likewise.
3447         * f-typeprint.c: Likewise.
3448         * f-valprint.c: Likewise.
3449         * fbsd-nat.c: Likewise.
3450         * findcmd.c: Likewise.
3451         * findvar.c: Likewise.
3452         * fork-child.c: Likewise.
3453         * frame.c: Likewise.
3454         * frv-linux-tdep.c: Likewise.
3455         * frv-tdep.c: Likewise.
3456         * gdb.c: Likewise.
3457         * gdb_bfd.c: Likewise.
3458         * gdbarch.c: Likewise.
3459         * gdbarch.sh: Likewise.
3460         * gdbtypes.c: Likewise.
3461         * gnu-nat.c: Likewise.
3462         * gnu-v2-abi.c: Likewise.
3463         * gnu-v3-abi.c: Likewise.
3464         * go-exp.y: Likewise.
3465         * go-lang.c: Likewise.
3466         * go32-nat.c: Likewise.
3467         * guile/guile.c: Likewise.
3468         * guile/scm-auto-load.c: Likewise.
3469         * hppa-hpux-tdep.c: Likewise.
3470         * hppa-linux-nat.c: Likewise.
3471         * hppanbsd-tdep.c: Likewise.
3472         * hppaobsd-tdep.c: Likewise.
3473         * i386-cygwin-tdep.c: Likewise.
3474         * i386-dicos-tdep.c: Likewise.
3475         * i386-linux-tdep.c: Likewise.
3476         * i386-nto-tdep.c: Likewise.
3477         * i386-sol2-tdep.c: Likewise.
3478         * i386-tdep.c: Likewise.
3479         * i386bsd-tdep.c: Likewise.
3480         * i386gnu-nat.c: Likewise.
3481         * i386nbsd-tdep.c: Likewise.
3482         * i386obsd-tdep.c: Likewise.
3483         * i387-tdep.c: Likewise.
3484         * ia64-libunwind-tdep.c: Likewise.
3485         * ia64-linux-nat.c: Likewise.
3486         * inf-child.c: Likewise.
3487         * inf-ptrace.c: Likewise.
3488         * inf-ttrace.c: Likewise.
3489         * infcall.c: Likewise.
3490         * infcmd.c: Likewise.
3491         * inflow.c: Likewise.
3492         * infrun.c: Likewise.
3493         * interps.c: Likewise.
3494         * iq2000-tdep.c: Likewise.
3495         * irix5-nat.c: Likewise.
3496         * jv-exp.y: Likewise.
3497         * jv-lang.c: Likewise.
3498         * jv-typeprint.c: Likewise.
3499         * jv-valprint.c: Likewise.
3500         * language.c: Likewise.
3501         * linux-fork.c: Likewise.
3502         * linux-nat.c: Likewise.
3503         * lm32-tdep.c: Likewise.
3504         * m2-exp.y: Likewise.
3505         * m2-typeprint.c: Likewise.
3506         * m32c-tdep.c: Likewise.
3507         * m32r-linux-nat.c: Likewise.
3508         * m32r-linux-tdep.c: Likewise.
3509         * m32r-rom.c: Likewise.
3510         * m32r-tdep.c: Likewise.
3511         * m68hc11-tdep.c: Likewise.
3512         * m68k-tdep.c: Likewise.
3513         * m68kbsd-tdep.c: Likewise.
3514         * m68klinux-nat.c: Likewise.
3515         * m68klinux-tdep.c: Likewise.
3516         * m88k-tdep.c: Likewise.
3517         * machoread.c: Likewise.
3518         * macrocmd.c: Likewise.
3519         * main.c: Likewise.
3520         * mdebugread.c: Likewise.
3521         * mem-break.c: Likewise.
3522         * memattr.c: Likewise.
3523         * memory-map.c: Likewise.
3524         * mep-tdep.c: Likewise.
3525         * mi/mi-cmd-break.c: Likewise.
3526         * mi/mi-cmd-disas.c: Likewise.
3527         * mi/mi-cmd-env.c: Likewise.
3528         * mi/mi-cmd-stack.c: Likewise.
3529         * mi/mi-cmd-var.c: Likewise.
3530         * mi/mi-cmds.c: Likewise.
3531         * mi/mi-console.c: Likewise.
3532         * mi/mi-getopt.c: Likewise.
3533         * mi/mi-interp.c: Likewise.
3534         * mi/mi-main.c: Likewise.
3535         * mi/mi-parse.c: Likewise.
3536         * microblaze-rom.c: Likewise.
3537         * microblaze-tdep.c: Likewise.
3538         * mingw-hdep.c: Likewise.
3539         * minidebug.c: Likewise.
3540         * minsyms.c: Likewise.
3541         * mips-irix-tdep.c: Likewise.
3542         * mips-linux-tdep.c: Likewise.
3543         * mips-tdep.c: Likewise.
3544         * mips64obsd-tdep.c: Likewise.
3545         * mipsnbsd-tdep.c: Likewise.
3546         * mipsread.c: Likewise.
3547         * mn10300-linux-tdep.c: Likewise.
3548         * mn10300-tdep.c: Likewise.
3549         * monitor.c: Likewise.
3550         * moxie-tdep.c: Likewise.
3551         * mt-tdep.c: Likewise.
3552         * nat/linux-btrace.c: Likewise.
3553         * nat/linux-osdata.c: Likewise.
3554         * nat/linux-procfs.c: Likewise.
3555         * nat/linux-ptrace.c: Likewise.
3556         * nat/linux-waitpid.c: Likewise.
3557         * nbsd-tdep.c: Likewise.
3558         * nios2-linux-tdep.c: Likewise.
3559         * nto-procfs.c: Likewise.
3560         * nto-tdep.c: Likewise.
3561         * objc-lang.c: Likewise.
3562         * objfiles.c: Likewise.
3563         * opencl-lang.c: Likewise.
3564         * osabi.c: Likewise.
3565         * osdata.c: Likewise.
3566         * p-exp.y: Likewise.
3567         * p-lang.c: Likewise.
3568         * p-typeprint.c: Likewise.
3569         * parse.c: Likewise.
3570         * posix-hdep.c: Likewise.
3571         * ppc-linux-nat.c: Likewise.
3572         * ppc-sysv-tdep.c: Likewise.
3573         * ppcfbsd-tdep.c: Likewise.
3574         * ppcnbsd-tdep.c: Likewise.
3575         * ppcobsd-tdep.c: Likewise.
3576         * printcmd.c: Likewise.
3577         * procfs.c: Likewise.
3578         * prologue-value.c: Likewise.
3579         * python/py-auto-load.c: Likewise.
3580         * python/py-gdb-readline.c: Likewise.
3581         * ravenscar-thread.c: Likewise.
3582         * regcache.c: Likewise.
3583         * registry.c: Likewise.
3584         * remote-fileio.c: Likewise.
3585         * remote-m32r-sdi.c: Likewise.
3586         * remote-mips.c: Likewise.
3587         * remote-notif.c: Likewise.
3588         * remote-sim.c: Likewise.
3589         * remote.c: Likewise.
3590         * reverse.c: Likewise.
3591         * rs6000-aix-tdep.c: Likewise.
3592         * ser-base.c: Likewise.
3593         * ser-go32.c: Likewise.
3594         * ser-mingw.c: Likewise.
3595         * ser-pipe.c: Likewise.
3596         * ser-tcp.c: Likewise.
3597         * ser-unix.c: Likewise.
3598         * serial.c: Likewise.
3599         * sh-tdep.c: Likewise.
3600         * sh64-tdep.c: Likewise.
3601         * shnbsd-tdep.c: Likewise.
3602         * skip.c: Likewise.
3603         * sol-thread.c: Likewise.
3604         * solib-dsbt.c: Likewise.
3605         * solib-frv.c: Likewise.
3606         * solib-osf.c: Likewise.
3607         * solib-som.c: Likewise.
3608         * solib-spu.c: Likewise.
3609         * solib-target.c: Likewise.
3610         * solib.c: Likewise.
3611         * somread.c: Likewise.
3612         * source.c: Likewise.
3613         * sparc-nat.c: Likewise.
3614         * sparc-sol2-tdep.c: Likewise.
3615         * sparc-tdep.c: Likewise.
3616         * sparc64-tdep.c: Likewise.
3617         * sparc64fbsd-tdep.c: Likewise.
3618         * sparc64nbsd-tdep.c: Likewise.
3619         * sparcnbsd-tdep.c: Likewise.
3620         * spu-linux-nat.c: Likewise.
3621         * spu-multiarch.c: Likewise.
3622         * spu-tdep.c: Likewise.
3623         * stabsread.c: Likewise.
3624         * stack.c: Likewise.
3625         * std-regs.c: Likewise.
3626         * symfile.c: Likewise.
3627         * symmisc.c: Likewise.
3628         * symtab.c: Likewise.
3629         * target.c: Likewise.
3630         * thread.c: Likewise.
3631         * tilegx-linux-nat.c: Likewise.
3632         * tilegx-tdep.c: Likewise.
3633         * top.c: Likewise.
3634         * tracepoint.c: Likewise.
3635         * tui/tui-command.c: Likewise.
3636         * tui/tui-data.c: Likewise.
3637         * tui/tui-disasm.c: Likewise.
3638         * tui/tui-file.c: Likewise.
3639         * tui/tui-layout.c: Likewise.
3640         * tui/tui-out.c: Likewise.
3641         * tui/tui-regs.c: Likewise.
3642         * tui/tui-source.c: Likewise.
3643         * tui/tui-stack.c: Likewise.
3644         * tui/tui-win.c: Likewise.
3645         * tui/tui-windata.c: Likewise.
3646         * tui/tui-winsource.c: Likewise.
3647         * typeprint.c: Likewise.
3648         * ui-file.c: Likewise.
3649         * ui-out.c: Likewise.
3650         * user-regs.c: Likewise.
3651         * utils.c: Likewise.
3652         * v850-tdep.c: Likewise.
3653         * valarith.c: Likewise.
3654         * valops.c: Likewise.
3655         * valprint.c: Likewise.
3656         * value.c: Likewise.
3657         * varobj.c: Likewise.
3658         * vax-tdep.c: Likewise.
3659         * vaxnbsd-tdep.c: Likewise.
3660         * vaxobsd-tdep.c: Likewise.
3661         * windows-nat.c: Likewise.
3662         * xcoffread.c: Likewise.
3663         * xml-support.c: Likewise.
3664         * xstormy16-tdep.c: Likewise.
3665         * xtensa-linux-nat.c: Likewise.
3666
3667 2014-08-07  Gary Benson  <gbenson@redhat.com>
3668
3669         * common/common-defs.h: Include gdb_assert.h.
3670         * aarch64-tdep.c: Do not include gdb_assert.h.
3671         * addrmap.c: Likewise.
3672         * aix-thread.c: Likewise.
3673         * alpha-linux-tdep.c: Likewise.
3674         * alpha-mdebug-tdep.c: Likewise.
3675         * alphanbsd-tdep.c: Likewise.
3676         * amd64-nat.c: Likewise.
3677         * amd64-tdep.c: Likewise.
3678         * amd64bsd-nat.c: Likewise.
3679         * amd64fbsd-nat.c: Likewise.
3680         * amd64fbsd-tdep.c: Likewise.
3681         * amd64nbsd-nat.c: Likewise.
3682         * amd64nbsd-tdep.c: Likewise.
3683         * amd64obsd-nat.c: Likewise.
3684         * amd64obsd-tdep.c: Likewise.
3685         * arch-utils.c: Likewise.
3686         * arm-tdep.c: Likewise.
3687         * armbsd-tdep.c: Likewise.
3688         * auxv.c: Likewise.
3689         * bcache.c: Likewise.
3690         * bfin-tdep.c: Likewise.
3691         * blockframe.c: Likewise.
3692         * breakpoint.c: Likewise.
3693         * bsd-kvm.c: Likewise.
3694         * bsd-uthread.c: Likewise.
3695         * buildsym.c: Likewise.
3696         * c-exp.y: Likewise.
3697         * c-lang.c: Likewise.
3698         * charset.c: Likewise.
3699         * cleanups.c: Likewise.
3700         * cli-out.c: Likewise.
3701         * cli/cli-decode.c: Likewise.
3702         * cli/cli-dump.c: Likewise.
3703         * cli/cli-logging.c: Likewise.
3704         * cli/cli-script.c: Likewise.
3705         * cli/cli-utils.c: Likewise.
3706         * coffread.c: Likewise.
3707         * common/common-utils.c: Likewise.
3708         * common/queue.h: Likewise.
3709         * common/signals.c: Likewise.
3710         * common/vec.h: Likewise.
3711         * complaints.c: Likewise.
3712         * completer.c: Likewise.
3713         * corelow.c: Likewise.
3714         * cp-abi.c: Likewise.
3715         * cp-name-parser.y: Likewise.
3716         * cp-namespace.c: Likewise.
3717         * cp-support.c: Likewise.
3718         * cris-tdep.c: Likewise.
3719         * dbxread.c: Likewise.
3720         * dictionary.c: Likewise.
3721         * doublest.c: Likewise.
3722         * dsrec.c: Likewise.
3723         * dummy-frame.c: Likewise.
3724         * dwarf2-frame-tailcall.c: Likewise.
3725         * dwarf2-frame.c: Likewise.
3726         * dwarf2expr.c: Likewise.
3727         * dwarf2loc.c: Likewise.
3728         * dwarf2read.c: Likewise.
3729         * eval.c: Likewise.
3730         * event-loop.c: Likewise.
3731         * exceptions.c: Likewise.
3732         * expprint.c: Likewise.
3733         * f-valprint.c: Likewise.
3734         * fbsd-nat.c: Likewise.
3735         * findvar.c: Likewise.
3736         * frame-unwind.c: Likewise.
3737         * frame.c: Likewise.
3738         * frv-tdep.c: Likewise.
3739         * gcore.c: Likewise.
3740         * gdb-dlfcn.c: Likewise.
3741         * gdb_bfd.c: Likewise.
3742         * gdbarch.c: Likewise.
3743         * gdbarch.sh: Likewise.
3744         * gdbtypes.c: Likewise.
3745         * gnu-nat.c: Likewise.
3746         * gnu-v3-abi.c: Likewise.
3747         * go-lang.c: Likewise.
3748         * guile/scm-exception.c: Likewise.
3749         * guile/scm-gsmob.c: Likewise.
3750         * guile/scm-lazy-string.c: Likewise.
3751         * guile/scm-math.c: Likewise.
3752         * guile/scm-pretty-print.c: Likewise.
3753         * guile/scm-safe-call.c: Likewise.
3754         * guile/scm-utils.c: Likewise.
3755         * guile/scm-value.c: Likewise.
3756         * h8300-tdep.c: Likewise.
3757         * hppa-hpux-nat.c: Likewise.
3758         * hppa-tdep.c: Likewise.
3759         * hppanbsd-tdep.c: Likewise.
3760         * hppaobsd-tdep.c: Likewise.
3761         * i386-darwin-nat.c: Likewise.
3762         * i386-darwin-tdep.c: Likewise.
3763         * i386-nto-tdep.c: Likewise.
3764         * i386-tdep.c: Likewise.
3765         * i386bsd-nat.c: Likewise.
3766         * i386fbsd-tdep.c: Likewise.
3767         * i386gnu-nat.c: Likewise.
3768         * i386nbsd-tdep.c: Likewise.
3769         * i386obsd-tdep.c: Likewise.
3770         * i387-tdep.c: Likewise.
3771         * ia64-libunwind-tdep.c: Likewise.
3772         * ia64-tdep.c: Likewise.
3773         * inf-ptrace.c: Likewise.
3774         * inf-ttrace.c: Likewise.
3775         * infcall.c: Likewise.
3776         * infcmd.c: Likewise.
3777         * infrun.c: Likewise.
3778         * inline-frame.c: Likewise.
3779         * interps.c: Likewise.
3780         * jv-lang.c: Likewise.
3781         * jv-typeprint.c: Likewise.
3782         * linux-fork.c: Likewise.
3783         * linux-nat.c: Likewise.
3784         * linux-thread-db.c: Likewise.
3785         * m32c-tdep.c: Likewise.
3786         * m32r-linux-nat.c: Likewise.
3787         * m32r-tdep.c: Likewise.
3788         * m68k-tdep.c: Likewise.
3789         * m68kbsd-nat.c: Likewise.
3790         * m68kbsd-tdep.c: Likewise.
3791         * m88k-tdep.c: Likewise.
3792         * machoread.c: Likewise.
3793         * macroexp.c: Likewise.
3794         * macrotab.c: Likewise.
3795         * maint.c: Likewise.
3796         * mdebugread.c: Likewise.
3797         * memory-map.c: Likewise.
3798         * mep-tdep.c: Likewise.
3799         * mi/mi-common.c: Likewise.
3800         * microblaze-tdep.c: Likewise.
3801         * mingw-hdep.c: Likewise.
3802         * mips-linux-nat.c: Likewise.
3803         * mips-linux-tdep.c: Likewise.
3804         * mips-tdep.c: Likewise.
3805         * mips64obsd-tdep.c: Likewise.
3806         * mipsnbsd-tdep.c: Likewise.
3807         * mn10300-linux-tdep.c: Likewise.
3808         * mn10300-tdep.c: Likewise.
3809         * moxie-tdep.c: Likewise.
3810         * mt-tdep.c: Likewise.
3811         * nat/linux-btrace.c: Likewise.
3812         * nat/linux-osdata.c: Likewise.
3813         * nat/linux-ptrace.c: Likewise.
3814         * nat/mips-linux-watch.c: Likewise.
3815         * nios2-linux-tdep.c: Likewise.
3816         * nios2-tdep.c: Likewise.
3817         * objc-lang.c: Likewise.
3818         * objfiles.c: Likewise.
3819         * obsd-nat.c: Likewise.
3820         * opencl-lang.c: Likewise.
3821         * osabi.c: Likewise.
3822         * parse.c: Likewise.
3823         * ppc-linux-nat.c: Likewise.
3824         * ppc-sysv-tdep.c: Likewise.
3825         * ppcfbsd-nat.c: Likewise.
3826         * ppcfbsd-tdep.c: Likewise.
3827         * ppcnbsd-nat.c: Likewise.
3828         * ppcnbsd-tdep.c: Likewise.
3829         * ppcobsd-nat.c: Likewise.
3830         * ppcobsd-tdep.c: Likewise.
3831         * printcmd.c: Likewise.
3832         * procfs.c: Likewise.
3833         * prologue-value.c: Likewise.
3834         * psymtab.c: Likewise.
3835         * python/py-lazy-string.c: Likewise.
3836         * python/py-value.c: Likewise.
3837         * regcache.c: Likewise.
3838         * reggroups.c: Likewise.
3839         * registry.c: Likewise.
3840         * remote-sim.c: Likewise.
3841         * remote.c: Likewise.
3842         * rs6000-aix-tdep.c: Likewise.
3843         * rs6000-tdep.c: Likewise.
3844         * s390-linux-tdep.c: Likewise.
3845         * score-tdep.c: Likewise.
3846         * ser-base.c: Likewise.
3847         * ser-mingw.c: Likewise.
3848         * sh-tdep.c: Likewise.
3849         * sh64-tdep.c: Likewise.
3850         * solib-darwin.c: Likewise.
3851         * solib-spu.c: Likewise.
3852         * solib-svr4.c: Likewise.
3853         * source.c: Likewise.
3854         * sparc-nat.c: Likewise.
3855         * sparc-sol2-tdep.c: Likewise.
3856         * sparc-tdep.c: Likewise.
3857         * sparc64-sol2-tdep.c: Likewise.
3858         * sparc64-tdep.c: Likewise.
3859         * sparc64fbsd-tdep.c: Likewise.
3860         * sparc64nbsd-tdep.c: Likewise.
3861         * sparc64obsd-tdep.c: Likewise.
3862         * sparcnbsd-tdep.c: Likewise.
3863         * sparcobsd-tdep.c: Likewise.
3864         * spu-multiarch.c: Likewise.
3865         * spu-tdep.c: Likewise.
3866         * stabsread.c: Likewise.
3867         * stack.c: Likewise.
3868         * symfile.c: Likewise.
3869         * symtab.c: Likewise.
3870         * target-descriptions.c: Likewise.
3871         * target-memory.c: Likewise.
3872         * target.c: Likewise.
3873         * tic6x-linux-tdep.c: Likewise.
3874         * tic6x-tdep.c: Likewise.
3875         * tilegx-linux-nat.c: Likewise.
3876         * tilegx-tdep.c: Likewise.
3877         * top.c: Likewise.
3878         * tramp-frame.c: Likewise.
3879         * tui/tui-out.c: Likewise.
3880         * tui/tui-winsource.c: Likewise.
3881         * ui-out.c: Likewise.
3882         * user-regs.c: Likewise.
3883         * utils.c: Likewise.
3884         * v850-tdep.c: Likewise.
3885         * valops.c: Likewise.
3886         * value.c: Likewise.
3887         * varobj.c: Likewise.
3888         * vax-nat.c: Likewise.
3889         * xml-syscall.c: Likewise.
3890         * xml-tdesc.c: Likewise.
3891         * xstormy16-tdep.c: Likewise.
3892         * xtensa-linux-nat.c: Likewise.
3893         * xtensa-tdep.c: Likewise.
3894
3895 2014-08-07  Gary Benson  <gbenson@redhat.com>
3896
3897         * common/common-defs.h: Include common-utils.h.
3898         * defs.h: Do not include common-utils.h.
3899         * common/gdb_assert.h: Likewise.
3900         * darwin-nat.h: Likewise.
3901         * nat/linux-btrace.c: Likewise.
3902         * target/waitstatus.h: Likewise.
3903
3904 2014-08-07  Gary Benson  <gbenson@redhat.com>
3905
3906         * common/common-defs.h: Include ptid.h.
3907         * defs.h: Do not include ptid.h.
3908         * inferior.h: Likewise.
3909         * infrun.h: Likewise.
3910         * nat/linux-btrace.h: Likewise.
3911         * nat/linux-osdata.h: Likewise.
3912         * target/waitstatus.h: Likewise.
3913
3914 2014-08-07  Gary Benson  <gbenson@redhat.com>
3915
3916         * common/common-defs.h: Include gdb_locale.h.
3917         * defs.h: Do not include gdb_locale.h.
3918
3919 2014-08-07  Gary Benson  <gbenson@redhat.com>
3920
3921         * common/common-defs.h: Include gdb/signals.h.
3922         * defs.h: Do not include gdb/signals.h.
3923
3924 2014-08-07  Gary Benson  <gbenson@redhat.com>
3925
3926         * common/common-defs.h: Include pathmax.h.
3927         * defs.h: Do not include pathmax.h.
3928
3929 2014-08-07  Gary Benson  <gbenson@redhat.com>
3930
3931         * common/common-defs.h: Include libiberty.h.
3932         * defs.h: Do not include libiberty.h.
3933         * common/queue.h: Likewise.
3934         * cp-name-parser.y: Likewise.
3935         * mi/mi-cmd-catch.c: Likewise.
3936         * python/python.c: Likewise.
3937
3938 2014-08-07  Gary Benson  <gbenson@redhat.com>
3939
3940         * common/common-defs.h: Include ansidecl.h.
3941         * defs.h: Do not include ansidecl.h.
3942         * common/buffer.h: Likewise.
3943         * common/common-utils.h: Likewise.
3944
3945 2014-08-07  Gary Benson  <gbenson@redhat.com>
3946
3947         * common/common-defs.h: Include stddef.h.
3948         * defs.h: Do not include stddef.h.
3949         * common/common-utils.h: Likewise.
3950         * amd64fbsd-nat.c: Likewise.
3951         * bcache.c: Likewise.
3952         * charset.c: Likewise.
3953         * common/buffer.h: Likewise.
3954         * common/vec.h: Likewise.
3955         * i386bsd-nat.c: Likewise.
3956         * nat/linux-btrace.h: Likewise.
3957         * ppcfbsd-nat.c: Likewise.
3958         * ppcnbsd-tdep.h: Likewise.
3959         * ppcobsd-nat.c: Likewise.
3960         * ppcobsd-tdep.h: Likewise.
3961         * python/py-gdb-readline.c: Likewise.
3962
3963 2014-08-07  Gary Benson  <gbenson@redhat.com>
3964
3965         * common/common-defs.h: Include stdarg.h.
3966         * defs.h: Do not include stdarg.h.
3967         * ada-lang.c: Likewise.
3968         * common/common-utils.h: Likewise.
3969         * guile/scm-string.c: Likewise.
3970         * guile/scm-utils.c: Likewise.
3971         * m32c-tdep.c: Likewise.
3972
3973 2014-08-07  Gary Benson  <gbenson@redhat.com>
3974
3975         * common/common-defs.h: Include stdlib.h.
3976         * defs.h: Do not include stdlib.h.
3977         * addrmap.c: Likewise.
3978         * bcache.c: Likewise.
3979         * common/buffer.c: Likewise.
3980         * common/common-utils.c: Likewise.
3981         * cp-name-parser.y: Likewise.
3982         * go32-nat.c: Likewise.
3983         * mn10300-linux-tdep.c: Likewise.
3984         * nat/linux-osdata.c: Likewise.
3985         * tui/tui.c: Likewise.
3986         * windows-nat.c: Likewise.
3987
3988 2014-08-07  Gary Benson  <gbenson@redhat.com>
3989
3990         * common/common-defs.h: Include stdio.h.
3991         * defs.h: Do not include stdio.h.
3992         * ada-lang.c: Likewise.
3993         * common/buffer.c: Likewise.
3994         * common/common-utils.c: Likewise.
3995         * cp-name-parser.y: Likewise.
3996         * gnu-nat.c: Likewise.
3997         * go32-nat.c: Likewise.
3998         * i386gnu-nat.c: Likewise.
3999         * proc-api.c: Likewise.
4000         * proc-events.c: Likewise.
4001         * proc-flags.c: Likewise.
4002         * proc-why.c: Likewise.
4003         * python/python-internal.h: Likewise.
4004         * target-memory.c: Likewise.
4005         * tui/tui-io.c: Likewise.
4006         * tui/tui.c: Likewise.
4007
4008 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4009
4010         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4011         (scan_dyntag_auxv): Same.
4012
4013 2014-08-06  Yao Qi  <yao@codesourcery.com>
4014
4015         * amd64-linux-nat.c: Remove duplicated include
4016         "x86-linux-nat.h".
4017         * i386-linux-nat.c: Likewise.
4018
4019 2014-08-06  Yao Qi  <yao@codesourcery.com>
4020
4021         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4022         operand" with "Special opcode" in comments.
4023
4024 2014-08-05  Gary Benson  <gbenson@redhat.com>
4025
4026         * interps.c (initialize_interps): Remove prototype.
4027         (interpreter_initialized): Remove static global.
4028         (interp_add): Do not call initialize_interps.
4029         (initialize_interps): Remove function.
4030
4031 2014-08-05  Gary Benson  <gbenson@redhat.com>
4032
4033         * utils.c (vwarning): Remove spurious va_end.
4034
4035 2014-08-05  Alan Modra  <amodra@gmail.com>
4036
4037         * charset.c (convert_between_encodings): Cast result of obstack_base.
4038         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4039         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4040         (read_unwind_info): Use size_t for some locals.
4041         * jit.c (finalize_symtab): Likewise.
4042         * utils.c (hashtab_obstack_allocate): Likewise.
4043         * symmisc.c (print_objfile_statistics): Update format strings.
4044
4045 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4046
4047         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4048         (Changes in GDB 7.8): ... here.
4049
4050 2014-08-04  Tom Tromey  <tromey@redhat.com>
4051
4052         * target.c (set_targetdebug): New function.
4053         (initialize_targets): Pass set_targetdebug when creating "set
4054         debug target".
4055
4056 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4057
4058         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4059         if detecting a variable-sized field that is not the last field.
4060         Fix struct type length computation.
4061
4062 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4063
4064         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4065         Add debug trace.
4066
4067 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4068
4069         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4070         Remove "+ 8" offset in computation of CHAIN_VMA.
4071
4072 2014-07-31  Doug Evans  <dje@google.com>
4073
4074         * inflow.c (child_terminal_inferior): Add comment.
4075         (child_terminal_ours_for_output): Add comment.
4076         (child_terminal_ours): Add comment.
4077         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4078         (linux_nat_terminal_ours): Add comment.
4079
4080 2014-07-31  Gary Benson  <gbenson@redhat.com>
4081
4082         * common/btrace-common.h: Do not include defs.h or server.h.
4083         * nat/mips-linux-watch.h: Likewise.
4084         * gdb-dlfcn.h: Do not include defs.h.
4085         * tracefile.h: Likewise.
4086
4087 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4088
4089         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4090
4091 2014-07-30  Tom Tromey  <tromey@redhat.com>
4092
4093         * bsd-kvm.c (bsd_kvm_open): Constify.
4094         * corelow.c (core_open): Constify.
4095         * ctf.c (ctf_open): Constify.
4096         * dbug-rom.c (dbug_open): Constify.
4097         * exec.c (exec_open): Constify.
4098         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4099         * microblaze-rom.c (picobug_open): Constify.
4100         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4101         Constify.
4102         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4103         * record-btrace.c (record_btrace_open): Constify.
4104         * record-full.c (record_full_core_open_1, record_full_open_1)
4105         (record_full_open): Constify.
4106         * remote-m32r-sdi.c (m32r_open): Constify.
4107         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4108         (rockhopper_open, lsi_open): Constify.
4109         * remote-sim.c (gdbsim_open): Constify.
4110         * remote.c (remote_open, extended_remote_open, remote_open_1):
4111         Constify.
4112         * target.h (struct target_ops) <to_open>: Make "arg" const.
4113         * tracefile-tfile.c (tfile_open): Constify.
4114
4115 2014-07-30  Tom Tromey  <tromey@redhat.com>
4116
4117         * breakpoint.c (map_breakpoint_numbers): Update.
4118         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4119         (get_number_const): New function.
4120         (get_number): Rewrite using get_number_const.
4121         (init_number_or_range): Make "string" const.
4122         (number_is_in_list): Make "list" const.
4123         * cli/cli-utils.h (get_number_const): Declare.
4124         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4125         (init_number_or_range, number_is_in_list): Update.
4126         * printcmd.c (map_display_numbers): Update.
4127         * value.c (value_from_history_ref): Constify.
4128         * value.h (value_from_history_ref): Update.
4129
4130 2014-07-30  Tom Tromey  <tromey@redhat.com>
4131
4132         * corefile.c (hook_type, call_extra_exec_file_hooks)
4133         (specify_exec_file_hook): Constify.
4134         * exec.c (exec_file_attach): Make "filename" const.
4135         * gdbcore.h (deprecated_exec_file_display_hook)
4136         (specify_exec_file_hook, exec_file_attach): Constify.
4137         * main.c (captured_main): Use catch_command_errors_const.
4138
4139 2014-07-30  Tom Tromey  <tromey@redhat.com>
4140
4141         * target.c (open_target): New function.
4142         (add_target_with_completer, add_deprecated_target_alias): Use
4143         set_cmd_sfunc, set_cmd_context.
4144         (debug_to_open): Remove.
4145         (setup_target_debug): Update.
4146
4147 2014-07-30  Yao Qi  <yao@codesourcery.com>
4148
4149         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4150         comments.
4151         * parse.c (exp_iterate): Update comments.
4152
4153 2014-07-30  Gary Benson  <gbenson@redhat.com>
4154
4155         * common/common-defs.h: New file.
4156         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4157         * defs.h: Include common-defs.h.
4158         Do not include config.h or build-gnulib/config.h.
4159
4160 2014-07-30  Gary Benson  <gbenson@redhat.com>
4161
4162         * common/common-utils.h: Do not include config.h.
4163         * nat/linux-btrace.h: Likewise.
4164
4165 2014-07-30  Gary Benson  <gbenson@redhat.com>
4166
4167         * btrace.c: Include defs.h.
4168         * common/ptid.c: Include defs.h or server.h as appropriate.
4169         * nat/mips-linux-watch.c: Likewise.
4170
4171 2014-07-29  Tom Tromey  <tromey@redhat.com>
4172
4173         * target.c (target_is_pushed): Simplify.
4174
4175 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4176
4177         GDB 7.8 released.
4178
4179 2014-07-29  Yao Qi  <yao@codesourcery.com>
4180
4181         PR gdb/17206
4182         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4183
4184 2014-07-28  Doug Evans  <xdje42@gmail.com>
4185
4186         PR guile/17203
4187         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4188         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4189         parameters.
4190
4191 2014-07-28  Will Newton  <will.newton@linaro.org>
4192
4193         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4194         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4195         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4196         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4197         (THUMB2_EABI_SYSCALL): Likewise.
4198         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4199         struct tramp_frame.
4200         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4201         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4202
4203 2014-07-27  Doug Evans  <xdje42@gmail.com>
4204
4205         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4206
4207 2014-07-27  Doug Evans  <xdje42@gmail.com>
4208
4209         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4210
4211 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4212             Doug Evans  <xdje42@gmail.com>
4213
4214         PR guile/17146
4215         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4216         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4217         * configure.ac: Try to use guild to compile an scm file, if it fails
4218         then disable guile support.
4219         * configure: Regenerate.
4220         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4221         GUILE_FILE_LIST.
4222         (GUILE_COMPILED_FILES): New variable.
4223         (GUILE_FILES) Update.
4224         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4225         (stamp-guile): Compile scm files.
4226         * guile/guile.c (boot_guile_support): New function.
4227         (standard_throw_args_p): New function.
4228         (print_standard_throw_error, print_throw_error): New functions.
4229         (handle_boot_error): New function.
4230         (initialize_scheme_side): Rewrite to call boot_guile_support.
4231         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4232         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4233
4234 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4235             Doug Evans  <xdje42@gmail.com>
4236
4237         PR guile/17146
4238         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4239         * guile/lib/gdb/support.scm: New file.
4240         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4241         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4242         All uses updated.
4243         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4244         All uses updated.
4245         (%assert-type): Ditto, and renamed to assert-type.
4246         (%exception-print-style): Delete.
4247
4248 2014-07-26  Doug Evans  <xdje42@gmail.com>
4249
4250         PR build/17105
4251         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4252         * configure: Regenerate.
4253         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4254         PYTHON_FILES.
4255         (PYTHON_FILES): New variable.
4256         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4257         (GUILE_FILES): New variable.
4258         (stamp-python, install-python, uninstall-python): Handle empty
4259         file list.
4260         (stamp-guile, install-guile, uninstall-guile): Ditto.
4261
4262 2014-07-26  Doug Evans  <xdje42@gmail.com>
4263
4264         PR guile/17177
4265         * guile/lib/gdb.scm (pretty-printers): Export.
4266         (set-pretty-printers!): Export.
4267         * guile/lib/gdb/printing.scm (gdb module): Update.
4268         (prepend-pretty-printer!, append-pretty-printer!): Update.
4269         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4270         (pretty_printer_list_var): Delete.
4271         (pretty_printer_list): New static global.
4272         (gdbscm_pretty_printers): New function.
4273         (gdbscm_set_pretty_printers_x): New function.
4274         (ppscm_find_pretty_printer_from_gdb): Update.
4275         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4276         (gdbscm_initialize_pretty_printers): Update.
4277
4278 2014-07-26  Doug Evans  <xdje42@gmail.com>
4279
4280         PR 17185
4281         * configure.ac: Add check for header gc/gc.h.
4282         Add check for function setenv.
4283         * configure: Regenerate.
4284         * config.in: Regenerate.
4285         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4286
4287 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4288
4289         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4290         variation in gdbarch matching.
4291
4292 2014-07-25  Tom Tromey  <tromey@redhat.com>
4293
4294         * exec.c (using_exec_ops): Remove.
4295         (exec_close_1): Update.  Remove extraneous block, reindent.
4296         (add_target_sections): Use target_is_pushed.
4297
4298 2014-07-25  Pedro Alves  <palves@redhat.com>
4299
4300         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4301         * monitor.c (monitor_create_inferior): Likewise.
4302         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4303         * remote-sim.c (gdbsim_create_inferior): Likewise.
4304         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4305         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4306         * windows-nat.c (do_initial_windows_stuff): Likewise.
4307
4308 2014-07-25  Pedro Alves  <palves@redhat.com>
4309
4310         * NEWS: Mention signal passing and "signal" command changes.
4311         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4312         comment.
4313         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4314         call.
4315         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4316         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4317         (jump_command): Adjust clear_proceed_status call.
4318         (signal_command): Warn if other thread that are resumed have
4319         signals that will be delivered.  Adjust clear_proceed_status call.
4320         (until_next_command, finish_command)
4321         (proceed_after_attach_callback, attach_command_post_wait)
4322         (attach_command): Adjust clear_proceed_status call.
4323         * infrun.c (proceed_after_vfork_done): Likewise.
4324         (proceed_after_attach_callback): Adjust comment.
4325         (clear_proceed_status_thread): Clear stop_signal if not in pass
4326         state.
4327         (clear_proceed_status_callback): Delete.
4328         (clear_proceed_status): New 'step' parameter.  Only clear the
4329         proceed status of threads the command being prepared is about to
4330         resume.
4331         (proceed): If passed in an explicit signal, override stop_signal
4332         with it.  Don't pass the last stop signal to the thread we're
4333         resuming.
4334         (init_wait_for_inferior): Adjust clear_proceed_status call.
4335         (switch_back_to_stepped_thread): Clear the signal if it should not
4336         be passed.
4337         * infrun.h (clear_proceed_status): New 'step' parameter.
4338         (user_visible_resume_ptid): Add comment.
4339         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4340         signal is in pass state.
4341         * remote.c (append_pending_thread_resumptions): Likewise.
4342         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4343
4344 2014-07-25  Tom Tromey  <tromey@redhat.com>
4345
4346         * target.h (target_stopped_data_address)
4347         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4348         parentheses.
4349
4350 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4351
4352         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4353         comments.
4354         (avr_pointer_to_address): Likewise.
4355
4356 2014-07-24  Tom Tromey  <tromey@redhat.com>
4357
4358         * monitor.c (compile_pattern): Update.
4359         * target.h (struct target_ops) <to_shortname, to_longname,
4360         to_doc>: Now const.
4361
4362 2014-07-24  Tom Tromey  <tromey@redhat.com>
4363
4364         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4365         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4366         (add_info_alias, add_com): Make "doc" const.
4367         (print_doc_line): Make "str" const.
4368         (delete_cmd): Update.
4369         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4370         (print_doc_line): Update.
4371         * cli/cli-script.c (document_command): Update.
4372         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4373         (add_com, add_info, add_info_alias): Update.
4374         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4375         * python/py-cmd.c (cmdpy_destroyer): Update.
4376
4377 2014-07-24  Tom Tromey  <tromey@redhat.com>
4378
4379         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4380         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4381         (help_cmd_list): Constify.
4382         (lookup_cmd): Update.
4383         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4384         const.
4385         (help_cmd_list, apropos_cmd): Update.
4386         * cli/cli-script.c (show_user): Update.
4387         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4388         * cli/cli-setshow.h (cmd_show_list): Update.
4389         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4390         (cmd_show_list): Update.
4391         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4392         * python/py-cmd.c (cmdpy_destroyer): Update.
4393
4394 2014-07-24  Tom Tromey  <tromey@redhat.com>
4395
4396         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4397         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4398         const.
4399         * command.h (deprecate_cmd): Update.
4400         * maint.c (maintenance_do_deprecate): Add casts.
4401
4402 2014-07-24  Tom Tromey  <tromey@redhat.com>
4403
4404         * cli/cli-decode.c (help_cmd): Make parameter "const".
4405         * cli/cli-decode.h (help_cmd): Update.
4406
4407 2014-07-24  Tom Tromey  <tromey@redhat.com>
4408
4409         * stack.c (up_silently_base, down_silently_base): Make argument
4410         const.
4411
4412 2014-07-24  Tom Tromey  <tromey@redhat.com>
4413
4414         * solib.c (solib_add): Make "pattern" const.
4415         * solib.h (solib_add): Update.
4416
4417 2014-07-24  Tom Tromey  <tromey@redhat.com>
4418
4419         * remote.c (remote_serial_open, print_packet, putpkt)
4420         (putpkt_binary): Constify.
4421         * remote.h (putpkt): Update.
4422
4423 2014-07-24  Tom Tromey  <tromey@redhat.com>
4424
4425         * monitor.c (monitor_open): Make "args" const.
4426         * monitor.h (monitor_open): Update.
4427
4428 2014-07-24  Tom Tromey  <tromey@redhat.com>
4429
4430         * maint.c (match_bfd_flags): Make "string" const.
4431         (print_bfd_section_info): Remove casts.
4432         (print_objfile_section_info): Make "string" const.
4433
4434 2014-07-24  Tom Tromey  <tromey@redhat.com>
4435
4436         * inf-child.c (inf_child_open_target): Make "arg" const.
4437         * inf-child.h (inf_child_open_target): Update.
4438
4439 2014-07-24  Tom Tromey  <tromey@redhat.com>
4440
4441         * environ.c (unset_in_environ): Make "var" const.
4442         * environ.h (unset_in_environ): Update.
4443
4444 2014-07-24  Tom Tromey  <tromey@redhat.com>
4445
4446         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4447         Make "cmd" const.
4448         (scan_filename_with_cleanup): Likewise.
4449         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4450         Make arguments const.
4451         (restore_command): Update.
4452
4453 2014-07-24  Pedro Alves  <palves@redhat.com>
4454
4455         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4456
4457 2014-07-24  Tom Tromey  <tromey@redhat.com>
4458             Gary Benson  <gbenson@redhat.com>
4459
4460         * nat/linux-ptrace.c (additional_flags): New global.
4461         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4462         additional_flags; don't check GDBSERVER.
4463         (linux_ptrace_set_additional_flags): New function.
4464         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4465         Declare.
4466         * linux-nat.c (_initialize_linux_nat): Call
4467         linux_ptrace_set_additional_flags.
4468
4469 2014-07-24  Tom Tromey  <tromey@redhat.com>
4470
4471         * make-target-delegates (munge_type, write_debugmethod): New
4472         functions.
4473         (debug_names): New global.
4474         ($TARGET_DEBUG_PRINTER): New global.
4475         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4476         name.
4477         Write debug methods.  Generate init_debug_target.
4478         * target-debug.h: New file.
4479         * target-delegates.c: Rebuild.
4480         * target.c: Include target-debug.h.
4481         (debug_target): Hoist definition.
4482         (target_kill, target_get_section_table, target_memory_map)
4483         (target_flash_erase, target_flash_done, target_detach)
4484         (target_disconnect, target_wait, target_resume)
4485         (target_pass_signals, target_program_signals, target_follow_fork)
4486         (target_mourn_inferior, target_search_memory)
4487         (target_thread_address_space, target_close)
4488         (target_find_new_threads, target_core_of_thread)
4489         (target_verify_memory, target_insert_mask_watchpoint)
4490         (target_remove_mask_watchpoint): Remove targetdebug code.
4491         (debug_to_post_attach, debug_to_prepare_to_store)
4492         (debug_to_files_info, debug_to_insert_breakpoint)
4493         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4494         (debug_to_region_ok_for_hw_watchpoint)
4495         (debug_to_can_accel_watchpoint_condition)
4496         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4497         (debug_to_watchpoint_addr_within_range)
4498         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4499         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4500         (debug_to_terminal_init, debug_to_terminal_inferior)
4501         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4502         (debug_to_terminal_save_ours, debug_to_terminal_info)
4503         (debug_to_load, debug_to_post_startup_inferior)
4504         (debug_to_insert_fork_catchpoint)
4505         (debug_to_remove_fork_catchpoint)
4506         (debug_to_insert_vfork_catchpoint)
4507         (debug_to_remove_vfork_catchpoint)
4508         (debug_to_insert_exec_catchpoint)
4509         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4510         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4511         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4512         (setup_target_debug): Call init_debug_target.
4513         * target.h (TARGET_DEBUG_PRINTER): New macro.
4514         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4515         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4516
4517 2014-07-24  Gary Benson  <gbenson@redhat.com>
4518
4519         * exceptions.h (throw_vfatal): Renamed to...
4520         (throw_vquit): New declaration.
4521         (throw_quit): Likewise.
4522         * exceptions.c (throw_vfatal): Renamed to...
4523         (throw_vquit): New function.
4524         (throw_quit): Likewise.
4525         (throw_error): Call throw_verror rather than throw_it.
4526         * utils.h (vfatal): Removed.
4527         (fatal): Likewise.
4528         * utils.c (vfatal): Removed.
4529         (fatal): Likewise.
4530         (internal_verror): Replaced call to fatal with call to throw_quit.
4531         (quit): Replaced calls to fatal with calls to throw_quit.
4532
4533 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4534
4535         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4536         target_read_code.
4537
4538 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4539
4540         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4541         less than zero in conditional expression.
4542
4543 2014-07-23  Tom Tromey  <tromey@redhat.com>
4544
4545         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4546         ($INTRO_PART): Don't match whitespace.
4547         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4548         argument matching.
4549         ($METHOD): Add $METHOD_TRAILER.
4550         (trim): Rewrite.
4551         (scan_target_h): New sub.
4552         Change main loop not to collect state.
4553         * target-delegates.c: Rebuild.
4554
4555 2014-07-23  Gary Benson  <gbenson@redhat.com>
4556
4557         * cp-support.c (gdb_demangle): Fix build on systems without
4558         sigaltstack.
4559
4560 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4561
4562         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4563         for reference entry value target data value.
4564
4565 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4566
4567         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4568         value_available_contents_eq.
4569
4570 2014-07-22  Pedro Alves  <palves@redhat.com>
4571
4572         * value.c (allocate_optimized_out_value): Don't mark value as
4573         non-lazy.
4574
4575 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4576
4577         * MAINTAINERS (Write After Approval): Update my email address.
4578
4579 2014-07-20  Doug Evans  <dje@google.com>
4580
4581         PR server/17147
4582         * remote.c (putpkt_binary): Add text to error message.
4583
4584 2014-07-20  Yao Qi  <yao@codesourcery.com>
4585
4586         * eval.c: Remove "Chill" from comments.
4587         * gdbtypes.h: Likewise.
4588         * symtab.h: Likewise.
4589
4590 2014-07-20  Yao Qi  <yao@codesourcery.com>
4591
4592         * std-operator.def: Update comments to TERNOP_SLICE.
4593
4594 2014-07-20  Yao Qi  <yao@codesourcery.com>
4595
4596         * std-operator.def: Remove BINOP_RANGE.
4597         * breakpoint.c (watchpoint_exp_is_const): Update.
4598         * expprint.c (dump_subexp_body_standard): Likewise.
4599         * eval.c (init_array_element): Remove dead code.
4600         (evaluate_subexp_standard): Likewise.
4601
4602 2014-07-20  Yao Qi  <yao@codesourcery.com>
4603
4604         * std-operator.def: Remove BINOP_IN.
4605         * breakpoint.c (watchpoint_exp_is_const): Update.
4606         * eval.c (evaluate_subexp_standard): Likewise.
4607         * expprint.c (dump_subexp_body_standard): Likewise.
4608
4609 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4610
4611         * microblaze-tdep.c (microblaze_register_names): Add
4612         the rshr and rslr register names.
4613         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4614         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4615         Use of tdesc_numbered_register. Use of
4616         microblaze_register_g_packet_guesses. Use of
4617         tdesc_use_registers. Use of set_gdbarch_register_type.
4618         (microblaze_register_g_packet_guesses): New.
4619         * microblaze-tdep.h (microblaze_reg_num): Add
4620         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4621         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4622         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4623         * features/microblaze-core.xml: New file.
4624         * features/microblaze-stack-protect.xml: New file.
4625         * features/microblaze-with-stack-protect.c: New file.
4626         * features/microblaze-with-stack-protect.xml: New file.
4627         * features/microblaze.xml: New file.
4628         * features/microblaze.c: New file.
4629         * features/Makefile (microblaze-with-stack-protect): Add
4630         microblaze-with-stack-protect microblaze and microblaze-expedite.
4631         * regformats/microblaze-with-stack-protect.dat: New file.
4632         * regformats/microblaze.dat: New file.
4633         * doc/gdb.texinfo (MicroBlaze Features): Added.
4634
4635 2014-07-18  Tom Tromey  <tromey@redhat.com>
4636
4637         * exec.c (exec_ops): Now static.
4638         * exec.h (exec_ops): Don't declare.
4639
4640 2014-07-18  Tom Tromey  <tromey@redhat.com>
4641
4642         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4643         to find_target_beneath.
4644         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4645         find_target_beneath.
4646         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4647
4648 2014-07-18  Tom Tromey  <tromey@redhat.com>
4649
4650         PR gdb/17130:
4651         * utils.c (quit): Use target_supports_terminal_ours.
4652         * target.h (target_supports_terminal_ours): Declare.
4653         * target.c (target_supports_delete_record): Don't check
4654         to_delete_record against NULL.
4655         (target_supports_terminal_ours): New function.
4656
4657 2014-07-18  Tom Tromey  <tromey@redhat.com>
4658
4659         PR gdb/17130:
4660         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4661         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4662         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4663         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4664         * windows-nat.c (windows_xfer_partial): Always delegate.
4665         * record-btrace.c (record_btrace_xfer_partial): Simplify
4666         delegation.
4667         (record_btrace_fetch_registers, record_btrace_store_registers)
4668         (record_btrace_prepare_to_store, record_btrace_resume)
4669         (record_btrace_wait, record_btrace_find_new_threads)
4670         (record_btrace_thread_alive): Likewise.
4671         * procfs.c (procfs_xfer_partial): Always delegate.
4672         * corelow.c (core_xfer_partial): Always delegate.
4673         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4674
4675 2014-07-18  Tom Tromey  <tromey@redhat.com>
4676
4677         * exec.c (exec_make_note_section): Move earlier.
4678
4679 2014-07-17  Doug Evans  <dje@google.com>
4680
4681         PR gdb/17170
4682         * maint.c (count_symtabs_and_blocks): Handle NULL
4683         current_program_space.
4684         (report_command_stats): Check global enabled flag in addition to
4685         recorded enabled flag.
4686         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4687
4688 2014-07-16  Pedro Alves  <palves@redhat.com>
4689
4690         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4691
4692 2014-07-16  Tom Tromey  <tromey@redhat.com>
4693
4694         * target.h (struct target_ops) <to_delete_record>: Reformat
4695         comment.
4696
4697 2014-07-16  Tom Tromey  <tromey@redhat.com>
4698
4699         * target-delegates.c: Rebuild.
4700
4701 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4702
4703         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4704         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4705         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4706         (avr_pointer_to_address): Likewise.
4707         (avr_address_class_type_flags): New function.
4708         (avr_address_class_type_flags_to_name): Likewise.
4709         (avr_address_class_name_to_type_flags): Likewise.
4710         (avr_gdbarch_init): Set address_class_type_flags,
4711         address_class_type_flags_to_name and
4712         address_class_name_to_type_flags.
4713
4714 2014-07-15  Pedro Alves  <palves@redhat.com>
4715
4716         * linux-nat.c (kill_callback): Save errno and work with saved
4717         copy.
4718
4719 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4720
4721         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4722
4723 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4724
4725         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4726         breakpoint support correctly.
4727
4728 2014-07-14  Pedro Alves  <palves@redhat.com>
4729
4730         * utils.c (prompt_for_continue): Call target_terminal_ours.
4731
4732 2014-07-14  Pedro Alves  <palves@redhat.com>
4733
4734         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4735         catch_errors.  Don't re-enable stdin or notify observers where,
4736         and rethrow error.
4737         (fetch_inferior_event_wrapper): Delete.
4738
4739 2014-07-14  Pedro Alves  <palves@redhat.com>
4740
4741         PR gdb/17072
4742         * top.c: Include "inf-loop.h".
4743         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4744         field.
4745         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4746         was async before.
4747         (gdb_readline_wrapper): Store whether the target is async, and
4748         make it sync.
4749
4750 2014-07-14  Pedro Alves  <palves@redhat.com>
4751
4752         PR gdb/17072
4753         * top.c (gdb_readline_wrapper_line): Tweak comment.
4754         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4755         the input handler callback.
4756
4757 2014-07-14  Pedro Alves  <palves@redhat.com>
4758
4759         PR gdb/17072
4760         * main.c: Include event-top.h.
4761         (handle_command_errors): New function.
4762         (catch_command_errors, catch_command_errors_const): Use it.
4763
4764 2014-07-14  Pedro Alves  <palves@redhat.com>
4765
4766         * exceptions.c (catch_command_errors, catch_command_errors_const):
4767         Moved to main.c.
4768         * exceptions.h (catch_command_errors_ftype)
4769         (catch_command_errors_const_ftype): Moved to main.c.
4770         (catch_command_errors, catch_command_errors_const): Delete
4771         declarations.
4772         * main.c (catch_command_errors_ftype)
4773         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4774         (catch_command_errors, catch_command_errors_const)): Moved here
4775         from exceptions.c and make static.
4776
4777 2014-07-14  Pedro Alves  <palves@redhat.com>
4778
4779         * exceptions.c (print_any_exception): Delete.
4780         (catch_exceptions_with_msg): Use exception_print instead of
4781         print_any_exception.
4782         (catch_errors): Use exception_fprintf instead of
4783         print_any_exception.
4784         (catch_command_errors, catch_command_errors_const): Use
4785         exception_print instead of print_any_exception.
4786
4787 2014-07-14  Pedro Alves  <palves@redhat.com>
4788
4789         * infcall.c (run_inferior_call): Set 'sync_execution' while
4790         running the inferior call.
4791
4792 2014-07-14  Pedro Alves  <palves@redhat.com>
4793
4794         * value.c (value_contents_equal): Delete function.
4795         * value.h (value_contents_equal): Delete declaration.
4796
4797 2014-07-14  Tom Tromey  <tromey@redhat.com>
4798
4799         PR exp/17106:
4800         * gdbtypes.c (is_dynamic_type_internal): New function, from
4801         is_dynamic_type.
4802         (is_dynamic_type): Rewrite.
4803         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4804         (resolve_dynamic_struct): Likewise.
4805         (resolve_dynamic_type_internal): New function, from
4806         resolve_dynamic_type.
4807         (resolve_dynamic_type): Rewrite.
4808
4809 2014-07-14  Tom Tromey  <tromey@redhat.com>
4810
4811         * target.c (target_require_runnable): Also check record_stratum.
4812         Update comment.
4813
4814 2014-07-11  Yao Qi  <yao@codesourcery.com>
4815
4816         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4817         thumb_instruction_restores_sp return true.
4818
4819 2014-07-11  Yao Qi  <yao@codesourcery.com>
4820
4821         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4822         (thumb_in_function_epilogue_p): Call
4823         thumb_instruction_restores_sp.
4824
4825 2014-07-11  Yao Qi  <yao@codesourcery.com>
4826
4827         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4828         'add sp, #imm'.
4829         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4830
4831 2014-07-11  Gary Benson  <gbenson@redhat.com>
4832
4833         * amd64-linux-nat.c (gdbcore.h): Remove include.
4834         (regset.h): Likewise.
4835         (nat/linux-btrace.h): Likewise.
4836         (btrace.h): Likewise.
4837         (gdb_assert.h): Likewise.
4838         (string.h): Likewise.
4839         (sys/uio.h): Likewise.
4840         (sys/debugreg.h): Likewise.
4841         (sys/syscall.h): Likewise.
4842         (sys/procfs.h): Likewise.
4843         (sys/user.h): Likewise.
4844         (asm/ptrace.h): Likewise.
4845         (i386-nat.h): Likewise.
4846         * i386-linux-nat.c (i386-nat.h): Likewise.
4847         (regset.h): Likewise.
4848         (target.h): Likewise.
4849         (linux-nat.h): Likewise.
4850         (nat/linux-btrace.h): Likewise.
4851         (btrace.h): Likewise.
4852         (gdb_assert.h): Likewise.
4853         (string.h): Likewise.
4854         (sys/uio.h): Likewise.
4855         (sys/user.h): Likewise.
4856         (sys/procfs.h): Likewise.
4857         (sys/reg.h): Likewise.
4858         (sys/debugreg.h): Likewise.
4859         (ORIG_EAX): Remove definition.
4860
4861 2014-07-11  Gary Benson  <gbenson@redhat.com>
4862
4863         * i386-linux-nat.h: New file.
4864         * x86-linux-nat.h: Likewise.
4865         * x86-linux-nat.c: Likewise.
4866         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4867         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4868         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4869         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4870         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4871         (PTRACE_SETREGSET): Likewise.
4872         (arch_lwp_info): Now in x86-linux-nat.c.
4873         (have_ptrace_getregset): Now in x86-linux-nat.h.
4874         (x86_linux_dr_get): Now in x86-linux-nat.c.
4875         (x86_linux_dr_set): Likewise.
4876         (x86_linux_dr_get_addr): Likewise.
4877         (x86_linux_dr_get_control): Likewise.
4878         (x86_linux_dr_get_status): Likewise.
4879         (update_debug_registers_callback): Likewise.
4880         (x86_linux_dr_set_control): Likewise.
4881         (x86_linux_dr_set_addr): Likewise.
4882         (x86_linux_prepare_to_resume): Likewise.
4883         (x86_linux_new_thread): Likewise.
4884         (x86_linux_new_fork): Likewise.
4885         (x86_linux_get_thread_area): Likewise.
4886         (super_post_startup_inferior): Likewise.
4887         (x86_linux_child_post_startup_inferior): Likewise.
4888         (AMD64_LINUX_USER64_CS): Likewise.
4889         (AMD64_LINUX_X32_DS): Likewise.
4890         (x86_linux_read_description): Likewise.
4891         (x86_linux_enable_btrace): Likewise.
4892         (x86_linux_disable_btrace): Likewise.
4893         (x86_linux_teardown_btrace): Likewise.
4894         (x86_linux_read_btrace): Likewise.
4895         (x86_linux_create_target): Likewise.
4896         (x86_linux_add_target): Likewise.
4897         * i386-linux-nat.c (x86-linux-nat.h): New include.
4898         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4899         (PTRACE_SETREGSET): Likewise.
4900         (arch_lwp_info): Now in x86-linux-nat.c.
4901         (have_ptrace_getregset): Now in x86-linux-nat.h.
4902         (x86_linux_dr_get): Now in x86-linux-nat.c.
4903         (x86_linux_dr_set): Likewise.
4904         (x86_linux_dr_get_addr): Likewise.
4905         (x86_linux_dr_get_control): Likewise.
4906         (x86_linux_dr_get_status): Likewise.
4907         (update_debug_registers_callback): Likewise.
4908         (x86_linux_dr_set_control): Likewise.
4909         (x86_linux_dr_set_addr): Likewise.
4910         (x86_linux_prepare_to_resume): Likewise.
4911         (x86_linux_new_thread): Likewise.
4912         (x86_linux_new_fork): Likewise.
4913         (x86_linux_get_thread_area): Likewise.
4914         (super_post_startup_inferior): Likewise.
4915         (x86_linux_child_post_startup_inferior): Likewise.
4916         (AMD64_LINUX_USER64_CS): Likewise.
4917         (AMD64_LINUX_X32_DS): Likewise.
4918         (x86_linux_read_description): Likewise.
4919         (x86_linux_enable_btrace): Likewise.
4920         (x86_linux_disable_btrace): Likewise.
4921         (x86_linux_teardown_btrace): Likewise.
4922         (x86_linux_read_btrace): Likewise.
4923         (x86_linux_create_target): Likewise.
4924         (x86_linux_add_target): Likewise.
4925
4926 2014-07-11  Gary Benson  <gbenson@redhat.com>
4927
4928         * amd64-linux-nat.c: Comment and whitespace changes.
4929         * i386-linux-nat.c: Comment and whitespace changes.
4930
4931 2014-07-11  Gary Benson  <gbenson@redhat.com>
4932
4933         * amd64-linux-nat.c (x86_linux_create_target): New function.
4934         (x86_linux_add_target): Likewise.
4935         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4936         * i386-linux-nat.c (x86_linux_create_target): New function.
4937         (x86_linux_add_target): Likewise.
4938         (_initialize_i386_linux_nat): Delegate to the above new functions.
4939
4940 2014-07-11  Gary Benson  <gbenson@redhat.com>
4941
4942         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4943         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4944         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4945         (ps_get_thread_area): Delegate to the above.
4946
4947 2014-07-11  Gary Benson  <gbenson@redhat.com>
4948
4949         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4950         x86_linux_read_description.  All uses updated.  amd64-specific
4951         code conditionalized.  Conditionalized i386-specific code added.
4952         Redundant cast removed.
4953         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4954         x86_linux_read_description.  All uses updated.  i386-specific
4955         code conditionalized.  Conditionalized amd64-specific code added.
4956         One sizeof replaced with the actual type it is describing.
4957
4958 2014-07-11  Gary Benson  <gbenson@redhat.com>
4959
4960         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4961         x86_linux_dr_get.  All uses updated.
4962         (amd64_linux_dr_set): Renamed to
4963         x86_linux_dr_set.  All uses updated.
4964         (amd64_linux_dr_get_addr): Renamed to
4965         x86_linux_dr_get_addr.  All uses updated.
4966         (amd64_linux_dr_get_control): Renamed to
4967         x86_linux_dr_get_control.  All uses updated.
4968         (amd64_linux_dr_get_status): Renamed to
4969         x86_linux_dr_get_status.  All uses updated.
4970         (amd64_linux_dr_set_control): Renamed to
4971         x86_linux_dr_set_control.  All uses updated.
4972         (amd64_linux_dr_set_addr): Renamed to
4973         x86_linux_dr_set_addr.  All uses updated.
4974         (amd64_linux_prepare_to_resume): Renamed to
4975         x86_linux_prepare_to_resume.  All uses updated.
4976         (amd64_linux_new_thread): Renamed to
4977         x86_linux_new_thread.  All uses updated.
4978         (amd64_linux_new_fork): Renamed to
4979         x86_linux_new_fork.  All uses updated.
4980         (amd64_linux_child_post_startup_inferior): Renamed to
4981         x86_linux_child_post_startup_inferior.  All uses updated.
4982         (amd64_linux_enable_btrace): Renamed to
4983         x86_linux_enable_btrace.  All uses updated.
4984         (amd64_linux_disable_btrace): Renamed to
4985         x86_linux_disable_btrace.  All uses updated.
4986         (amd64_linux_teardown_btrace): Renamed to
4987         x86_linux_teardown_btrace.  All uses updated.
4988         (amd64_linux_read_btrace): Renamed to
4989         x86_linux_read_btrace.  All uses updated.
4990         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4991         x86_linux_dr_get.  All uses updated.
4992         (i386_linux_dr_set): Renamed to
4993         x86_linux_dr_set.  All uses updated.
4994         (i386_linux_dr_get_addr): Renamed to
4995         x86_linux_dr_get_addr.  All uses updated.
4996         (i386_linux_dr_get_control): Renamed to
4997         x86_linux_dr_get_control.  All uses updated.
4998         (i386_linux_dr_get_status): Renamed to
4999         x86_linux_dr_get_status.  All uses updated.
5000         (i386_linux_dr_set_control): Renamed to
5001         x86_linux_dr_set_control.  All uses updated.
5002         (i386_linux_dr_set_addr): Renamed to
5003         x86_linux_dr_set_addr.  All uses updated.
5004         (i386_linux_prepare_to_resume): Renamed to
5005         x86_linux_prepare_to_resume.  All uses updated.
5006         (i386_linux_new_thread): Renamed to
5007         x86_linux_new_thread.  All uses updated.
5008         (i386_linux_new_fork): Renamed to
5009         x86_linux_new_fork.  All uses updated.
5010         (i386_linux_child_post_startup_inferior): Renamed to
5011         x86_linux_child_post_startup_inferior.  All uses updated.
5012         (i386_linux_enable_btrace): Renamed to
5013         x86_linux_enable_btrace.  All uses updated.
5014         (i386_linux_disable_btrace): Renamed to
5015         x86_linux_disable_btrace.  All uses updated.
5016         (i386_linux_teardown_btrace): Renamed to
5017         x86_linux_teardown_btrace.  All uses updated.
5018         (i386_linux_read_btrace): Renamed to
5019         x86_linux_read_btrace.  All uses updated.
5020
5021 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5022
5023         * remote.c (extended_remote_post_attach): New function.
5024         (init_extended_remote_ops): Install it as to_post_attach method.
5025
5026 2014-07-09  Pedro Alves  <palves@redhat.com>
5027
5028         * infcmd.c (attach_command_post_wait): Don't call
5029         target_terminal_inferior here.
5030         (attach_command): Call it here instead.
5031
5032 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5033
5034         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5035         field.
5036         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5037         from varobj.c, with additional checks.
5038         (c_varobj_ops): Fill in is_path_expr_parent field.
5039         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5040         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5041         field.
5042         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5043         ops method.
5044         (varobj_default_is_path_expr_parent): New function.
5045         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5046         (varobj_default_is_path_expr_parent): Declare new function.
5047
5048 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5049
5050         * infcmd.c (finish_backward): Turn internal error into normal error.
5051
5052 2014-07-07  Pedro Alves  <palves@redhat.com>
5053
5054         PR gdb/17096
5055         * remote.c (async_handle_remote_sigint)
5056         (async_handle_remote_sigint_twice): Call
5057         gdb_call_async_signal_handler instead of
5058         mark_async_signal_handler.
5059
5060 2014-07-07  Tom Tromey  <tromey@redhat.com>
5061
5062         * target-delegates.c: Rebuild.
5063         * target.c (target_info_record): Remove.
5064         * record.c (info_record_command): Unconditionally call
5065         to_info_record.
5066         * target.h (struct target_ops) <to_info_record>: Use
5067         TARGET_DEFAULT_IGNORE.
5068         (target_info_record): Remove.
5069
5070 2014-07-07  Tom Tromey  <tromey@redhat.com>
5071
5072         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5073         TARGET_DEFAULT_NORETURN.
5074         * target.c (generic_tls_error): New function.
5075         (target_translate_tls_address): Don't search target stack.
5076         * target-delegates.c: Rebuild.
5077         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5078         stack.
5079         * linux-thread-db.c (thread_db_get_thread_local_address):
5080         Unconditionally call beneath target.
5081
5082 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5083
5084         * cli/cli-logging.c (pop_output_files): Assign targerr to
5085         gdb_stdtargerr.
5086
5087 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5088
5089         * MAINTAINERS (Write After Approval): Update my email address.
5090
5091 2014-07-02  Gary Benson  <gbenson@redhat.com>
5092
5093         * proc-service.c (ps_xfer_memory): Update comment.
5094         (ps_pstop): Remove unused function.
5095         (ps_pcontinue): Likewise.
5096         (ps_lstop): Likewise.
5097         (ps_lcontinue): Likewise.
5098         (ps_lgetxregsize): Likewise.
5099         (ps_lgetxregs): Likewise.
5100         (ps_lsetxregs): Likewise.
5101         (ps_plog): Likewise.
5102         (ps_ptread): Likewise.
5103         (ps_ptwrite): Likewise.
5104
5105 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5106
5107         * dwarf2read.c (add_array_cv_type): New function.
5108         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5109         (read_tag_volatile_type): Likewise.
5110
5111 2014-07-01  Tom Tromey  <tromey@redhat.com>
5112
5113         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5114         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5115         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5116         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5117         * command.h (cmd_cfunc_ftype): Move earlier.
5118         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5119         (add_com, add_info): Use cmd_cfunc_ftype.
5120
5121 2014-06-30  Tom Tromey  <tromey@redhat.com>
5122
5123         * symtab.c (operator_chars): Make parameters and return type
5124         const.
5125         (file_matches): Make "files" const.
5126         (struct search_symbols_data) <files>: Now const.
5127         (search_symbols): Make "regexp" and "files" parameters const.
5128         Update.
5129         (symtab_symbol_info): Remove cast.
5130         (rbreak_command): Update.
5131         * symtab.h (search_symbols): Update.
5132
5133 2014-06-27  Yao Qi  <yao@codesourcery.com>
5134
5135         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5136         Change parameter type to 'struct thread_info *'.  Caller
5137         updated.
5138         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5139         Update declaration.
5140         * dummy-frame.c (struct dummy_frame_id): New.
5141         (dummy_frame_id_eq): New function.
5142         (struct dummy_frame) <id>: Change its type to 'struct
5143         dummy_frame_id'.
5144         (dummy_frame_push): Add parameter ptid and save it in
5145         dummy_frame_id.
5146         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5147         inferior_ptid.
5148         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5149         to inferior_ptid.
5150         (lookup_dummy_frame): Change parameter type to 'struct
5151         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5152         instead of frame_id_eq.
5153         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5154         Update comments.  Compose dummy_frame_id and pass it to
5155         lookup_dummy_frame.
5156         (dummy_frame_discard): Add parameter ptid.
5157         (dummy_frame_sniffer): Compose dummy_frame_id and call
5158         dummy_frame_id_eq instead of frame_id_eq.
5159         (fprint_dummy_frames): Print ptid.
5160         * dummy-frame.h: Remove comments.
5161         (dummy_frame_push): Add ptid in declaration.
5162         (dummy_frame_pop, dummy_frame_discard): Likewise.
5163
5164 2014-06-26  Tom Tromey  <tromey@redhat.com>
5165
5166         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5167         * command.h (error_no_arg): Update.
5168
5169 2014-06-26  Tom Tromey  <tromey@redhat.com>
5170
5171         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5172         (do_show_command): Make "arg" const.
5173         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5174
5175 2014-06-26  Tom Tromey  <tromey@redhat.com>
5176
5177         * record-full.c (record_full_get_bookmark): Make "args" const.
5178         (record_full_goto_bookmark): Make "raw_bookmark" const.
5179         * record.c (record_goto): New function.
5180         (cmd_record_goto): Use it.  Now static.
5181         * record.h (record_goto): Declare.
5182         (cmd_record_goto): Remove declaration.
5183         * target-delegates.c: Rebuild.
5184         * target.h (struct target_ops) <to_get_bookmark,
5185         to_goto_bookmark>: Make parameter const.
5186
5187 2014-06-26  Tom Tromey  <tromey@redhat.com>
5188
5189         * defs.h (generic_load): Update.
5190         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5191         * monitor.c (monitor_load): Make "args" const.
5192         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5193         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5194         const.
5195         (mips_load): Make "file" const.
5196         * remote-sim.c (gdbsim_load): Make "args" const.
5197         * remote.c (remote_load): Make "name" const.
5198         * symfile.c (generic_load): Make "args" const.
5199         * target-delegates.c: Rebuild.
5200         * target.c (target_load): Make "arg" const.
5201         (debug_to_load): Make "args" const.
5202         * target.h (struct target_ops) <to_load>: Make parameter const.
5203         (target_load): Update.
5204
5205 2014-06-26  Tom Tromey  <tromey@redhat.com>
5206
5207         PR symtab/16902:
5208         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5209         (dwarf2_physname, read_partial_die)
5210         (guess_partial_die_structure_name, fixup_partial_die)
5211         (guess_full_die_structure_name, anonymous_struct_prefix)
5212         (dwarf2_name): Use per-BFD obstack.
5213
5214 2014-06-26  Yao Qi  <yao@codesourcery.com>
5215
5216         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5217         dummyframe and this_id into inner block below.
5218
5219 2014-06-26  Yao Qi  <yao@codesourcery.com>
5220
5221         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5222         with "signal_pass[0]" in the initialization of signal_pass.
5223
5224 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5225
5226         * record-btrace.c (record_btrace_generating_corefile)
5227         (record_btrace_prepare_to_generate_core)
5228         (record_btrace_done_generating_core): New.
5229         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5230         (record_btrace_store_registers, record_btrace_prepare_to_store):
5231         Forward request when generating a core file.
5232         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5233         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5234         to_done_generating_core.
5235
5236 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5237
5238         * target.h (target_ops) <to_prepare_to_generate_core>
5239         <to_done_generating_core>: New.
5240         (target_prepare_to_generate_core, target_done_generating_core): New.
5241         * target.c (target_prepare_to_generate_core)
5242         (target_done_generating_core): New.
5243         * target-delegates.c: Regenerate.
5244         * gcore.c: (write_gcore_file): Rename to ...
5245         (write_gcore_file_1): ...this.
5246         (write_gcore_file): Call target_prepare_to_generate_core
5247         and target_done_generating_core.
5248
5249 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5250
5251         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5252         * gcore.c (write_gcore_file): Free memory returned from
5253         make_corefile_notes.
5254         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5255         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5256
5257 2014-06-24  Yao Qi  <yao@codesourcery.com>
5258
5259         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5260         (arm_linux_init_abi): Set skip_trampoline_code with
5261         gdbarch_skip_trampoline_code instead of
5262         find_solib_trampoline_target.
5263
5264 2014-06-24  Yao Qi  <yao@codesourcery.com>
5265
5266         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5267         arm_skip_bx_reg returns non-zero.
5268
5269 2014-06-24  Yao Qi  <yao@codesourcery.com>
5270
5271         * arm-tdep.c (arm_skip_bx_reg): New function.
5272         (arm_skip_stub): Call arm_skip_bx_reg.
5273
5274 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5275
5276         * MAINTAINERS: Add myself as write-after-approval maintainer.
5277
5278 2014-06-23  Pedro Alves  <palves@redhat.com>
5279
5280         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5281         DR_CONTROL before setting DR0..DR3.
5282         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5283         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5284         bits of DR_CONTROL related to the debug register slot being
5285         disabled.  If all slots are vacant, clear local slowdown as well,
5286         and assert DR_CONTROL is 0.
5287
5288 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5289
5290         * python/lib/gdb/command/xmethods.py
5291         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5292         current progspace only if the string "progspace" matches LOCUS_RE.
5293
5294 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5295
5296         Fix --with-system-readline with readline-6.3 patch 5.
5297         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5298         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5299         types.
5300
5301 2014-06-20  Tom Tromey  <tromey@redhat.com>
5302
5303         * dwarf2read.c (dw2_get_real_path): Use correct type in
5304         OBSTACK_CALLOC.
5305         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5306
5307 2014-06-20  Gary Benson  <gbenson@redhat.com>
5308
5309         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5310         * common/glibc_thread_db.h: Likewise.
5311         * common/i386-cpuid.h: Likewise.
5312         * common/i386-gcc-cpuid.h: Likewise.
5313         * common/linux-btrace.h: Likewise.
5314         * common/linux-osdata.h: Likewise.
5315         * common/linux-procfs.h: Likewise.
5316         * common/linux-ptrace.h: Likewise.
5317         * common/mips-linux-watch.h: Likewise.
5318         * common/linux-btrace.c: Moved to nat.
5319         * common/linux-osdata.c: Likewise.
5320         * common/linux-procfs.c: Likewise.
5321         * common/linux-ptrace.c: Likewise.
5322         * common/mips-linux-watch.c: Likewise.
5323         * nat/gdb_thread_db.h: Moved from common.
5324         * nat/glibc_thread_db.h: Likewise.
5325         * nat/i386-cpuid.h: Likewise.
5326         * nat/i386-gcc-cpuid.h: Likewise.
5327         * nat/linux-btrace.c: Likewise.
5328         * nat/linux-btrace.h: Likewise.
5329         * nat/linux-osdata.c: Likewise.
5330         * nat/linux-osdata.h: Likewise.
5331         * nat/linux-procfs.c: Likewise.
5332         * nat/linux-procfs.h: Likewise.
5333         * nat/linux-ptrace.c: Likewise.
5334         * nat/linux-ptrace.h: Likewise.
5335         * nat/mips-linux-watch.c: Likewise.
5336         * nat/mips-linux-watch.h: Likewise.
5337         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5338         (object file files): Reordered.
5339         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5340         of glibc_thread_db.h.
5341
5342 2014-06-20  Gary Benson  <gbenson@redhat.com>
5343
5344         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5345         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5346         (i386_dr_low): Likewise.
5347         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5348         (i386_dr_low_set_addr): Likewise.
5349         (i386_dr_low_get_addr): Likewise.
5350         (i386_dr_low_can_set_control): Likewise.
5351         (i386_dr_low_set_control): Likewise.
5352         (i386_dr_low_get_control): Likewise.
5353         (i386_dr_low_get_status): Likewise.
5354         (i386_get_debug_register_length): Likewise.
5355         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5356         (i386_dr_low): Likewise.
5357         * nat/i386-dregs.c (i386-low.h): Remove include.
5358         (i386-nat.h): Likewise.
5359         (nat/i386-dregs.h): New include.
5360         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5361         (i386_dr_low_set_addr): Likewise.
5362         (i386_dr_low_get_addr): Likewise.
5363         (i386_dr_low_can_set_control): Likewise.
5364         (i386_dr_low_set_control): Likewise.
5365         (i386_dr_low_get_control): Likewise.
5366         (i386_dr_low_get_status): Likewise.
5367         (i386_get_debug_register_length): Likewise.
5368         (debug_hw_points): Likewise.
5369
5370 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5371
5372         * Makefile.in (SFILES): Add d-exp.y.
5373         (YYFILES): Add d-exp.c.
5374         (YYOBJ): Add d-exp.o.
5375         (local-maintainer-clean): Delete d-exp.c.
5376         * d-exp.y: New file.
5377         * d-lang.h (d_parse): New declaration.
5378         (d_error): New declaration.
5379         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5380         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5381         PREC_ORDER operators.
5382         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5383
5384 2014-06-19  Yao Qi  <yao@codesourcery.com>
5385
5386         * gdbthread.h (any_running): Remove the declaration.
5387         * thread.c (any_running): Remove.
5388
5389 2014-06-19  Yao Qi  <yao@codesourcery.com>
5390
5391         * gdbthread.h (struct thread_info) <state>: Change its type to
5392         'enum thread_state'.  Update comments.
5393
5394 2014-06-19  Pedro Alves  <palves@redhat.com>
5395
5396         * gdbthread.h (ALL_THREADS): Delete.
5397         (ALL_NON_EXITED_THREADS): New macro.
5398         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5399         instead of ALL_THREADS.
5400         * infrun.c (find_thread_needs_step_over)
5401         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5402         instead of ALL_THREADS.
5403         * record-btrace.c (record_btrace_open)
5404         (record_btrace_stop_recording, record_btrace_close)
5405         (record_btrace_is_replaying, record_btrace_resume)
5406         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5407         * remote.c (append_pending_thread_resumptions): Likewise.
5408         * thread.c (thread_apply_all_command): Likewise.
5409
5410 2014-06-19  Gary Benson  <gbenson@redhat.com>
5411
5412         * i386-nat.c (i386_stopped_by_watchpoint):
5413         Use i386_dr_stopped_by_watchpoint.
5414         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5415         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5416
5417 2014-06-19  Gary Benson  <gbenson@redhat.com>
5418
5419         * nat/i386-dregs.c: New file.
5420         * Makefile.in (i386-dregs.o): New rule.
5421         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5422         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5423         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5424         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5425         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5426         * config/i386/go32.mh (NATDEPFILES): Likewise.
5427         * config/i386/linux.mh (NATDEPFILES): Likewise.
5428         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5429         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5430         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5431         * i386-nat.h (debug_hw_points): New declaration.
5432         * i386-nat.c (breakpoint.h): Remove include.
5433         (command.h): Likewise.
5434         (target.h): Likewise.
5435         (gdb_assert.h): Likewise.
5436         (debug_hw_points): Made nonstatic.
5437         (debug_printf): Now in i386-dregs.c.
5438         (TARGET_HAS_DR_LEN_8): Likewise.
5439         (DR_CONTROL_SHIFT): Likewise.
5440         (DR_CONTROL_SIZE): Likewise.
5441         (DR_RW_EXECUTE): Likewise.
5442         (DR_RW_WRITE): Likewise.
5443         (DR_RW_READ): Likewise.
5444         (DR_RW_IORW): Likewise.
5445         (DR_LEN_1): Likewise.
5446         (DR_LEN_2): Likewise.
5447         (DR_LEN_4): Likewise.
5448         (DR_LEN_8): Likewise.
5449         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5450         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5451         (DR_ENABLE_SIZE): Likewise.
5452         (DR_LOCAL_SLOWDOWN): Likewise.
5453         (DR_GLOBAL_SLOWDOWN): Likewise.
5454         (DR_CONTROL_RESERVED): Likewise.
5455         (I386_DR_CONTROL_MASK): Likewise.
5456         (I386_DR_VACANT): Likewise.
5457         (I386_DR_LOCAL_ENABLE): Likewise.
5458         (I386_DR_GLOBAL_ENABLE): Likewise.
5459         (I386_DR_DISABLE): Likewise.
5460         (I386_DR_SET_RW_LEN): Likewise.
5461         (I386_DR_GET_RW_LEN): Likewise.
5462         (I386_DR_WATCH_HIT): Likewise.
5463         (i386_wp_op_t): Likewise.
5464         (i386_show_dr): Likewise.
5465         (i386_length_and_rw_bits): Likewise.
5466         (i386_insert_aligned_watchpoint): Likewise.
5467         (i386_remove_aligned_watchpoint): Likewise.
5468         (i386_handle_nonaligned_watchpoint): Likewise.
5469         (i386_update_inferior_debug_regs): Likewise.
5470         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5471         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5472         (i386_region_ok_for_watchpoint):
5473         Use i386_dr_region_ok_for_watchpoint.
5474         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5475
5476 2014-06-19  Gary Benson  <gbenson@redhat.com>
5477
5478         * i386-nat.c (i386_insert_hw_breakpoint): Use
5479         i386_insert_watchpoint.
5480         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5481
5482 2014-06-19  Gary Benson  <gbenson@redhat.com>
5483
5484         * i386-nat.c (i386_dr_show): Renamed to
5485         i386_show_dr and made static.  All uses updated.
5486         (i386_dr_length_and_rw_bits): Renamed to
5487         i386_length_and_rw_bits and made static.
5488         All uses updated.
5489         (i386_dr_insert_aligned_watchpoint): Renamed to
5490         i386_insert_aligned_watchpoint and made static.
5491         All uses updated.
5492         (i386_dr_remove_aligned_watchpoint): Renamed to
5493         i386_remove_aligned_watchpoint and made static.
5494         All uses updated.
5495         (i386_dr_update_inferior_debug_regs): Renamed to
5496         i386_update_inferior_debug_regs and made static.
5497         All uses updated.
5498         * nat/i386-dregs.h (i386_dr_show): Removed.
5499         (i386_dr_length_and_rw_bits): Likewise.
5500         (i386_dr_insert_aligned_watchpoint): Likewise.
5501         (i386_dr_remove_aligned_watchpoint): Likewise.
5502         (i386_dr_update_inferior_debug_regs): Likewise.
5503
5504 2014-06-19  Gary Benson  <gbenson@redhat.com>
5505
5506         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5507         * configure: Regenerate.
5508         * config.in: Likewise.
5509         * main.c (signal.h): New include.
5510         (setup_alternate_signal_stack): New function.
5511         (captured_main): Call the above.
5512         * cp-support.c (signal.h): New include.
5513         (catch_demangler_crashes): New flag.
5514         (SIGJMP_BUF): New define.
5515         (SIGSETJMP): Likewise.
5516         (SIGLONGJMP): Likewise.
5517         (gdb_demangle_jmp_buf): New static global.
5518         (gdb_demangle_attempt_core_dump): Likewise.
5519         (gdb_demangle_signal_handler): New function.
5520         (gdb_demangle): If catch_demangler_crashes is set, install the
5521         above signal handler before calling bfd_demangle, and restore
5522         the original signal handler afterwards.  Display the offending
5523         symbol and call demangler_warning the first time a segmentation
5524         fault is caught.
5525         (_initialize_cp_support): New maint set/show command.
5526
5527 2014-06-19  Gary Benson  <gbenson@redhat.com>
5528
5529         * utils.h (resource_limit_kind): New enum.
5530         (can_dump_core): New declaration.
5531         (warn_cant_dump_core): Likewise.
5532         (dump_core): Likewise.
5533         * utils.c (dump_core): Made nonstatic.  Added new
5534         parameter "limit_kind".
5535         (can_dump_core): Made nonstatic. Moved printing code to...
5536         (warn_cant_dump_core): New function.
5537         (can_dump_core_warn): Likewise.
5538         (internal_vproblem): Replace calls to can_dump_core with
5539         calls to can_dump_core_warn.  Supply new argument to each.
5540
5541 2014-06-19  Gary Benson  <gbenson@redhat.com>
5542
5543         * utils.h (demangler_vwarning): New declaration.
5544         (demangler_warning): Likewise.
5545         * utils.c (struct internal_problem)
5546         <user_settable_should_quit>: New field.
5547         <user_settable_should_dump_core>: Likewise
5548         (internal_error_problem): Add values for above new fields.
5549         (internal_warning_problem): Likewise.
5550         (demangler_warning_problem): New static global.
5551         (demangler_vwarning): New function.
5552         (demangler_warning): Likewise.
5553         (add_internal_problem_command): Selectively add commands.
5554         (_initialize_utils): New internal problem command.
5555         * maint.c (maintenance_demangler_warning): New function.
5556         (_initialize_maint_cmds): New command.
5557
5558 2014-06-18  Tom Tromey  <tromey@redhat.com>
5559
5560         * f-valprint.c (info_common_command_for_block): Update.
5561         * symtab.h (struct general_symbol_info) <common_block>: Now
5562         const.
5563
5564 2014-06-18  Tom Tromey  <tromey@redhat.com>
5565
5566         * symtab.h (struct symtab) <blockvector>: Now const.
5567         * ada-lang.c (ada_add_global_exceptions): Update.
5568         * buildsym.c (augment_type_symtab): Update.
5569         * dwarf2read.c (dw2_lookup_symbol): Update.
5570         * jit.c (finalize_symtab): Update.
5571         * jv-lang.c (add_class_symtab_symbol): Update.
5572         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5573         Update.
5574         * objfiles.c (objfile_relocate1): Update.
5575         * psymtab.c (lookup_symbol_aux_psymtabs)
5576         (maintenance_check_psymtabs): Update.
5577         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5578         Update.
5579         * spu-tdep.c (spu_catch_start): Update.
5580         * symmisc.c (dump_symtab_1): Update.
5581         * symtab.c (lookup_global_symbol_from_objfile)
5582         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5583         (basic_lookup_transparent_type_quick)
5584         (basic_lookup_transparent_type, find_pc_sect_symtab)
5585         (find_pc_sect_line, search_symbols): Update.
5586         * block.c (find_block_in_blockvector): Make "bl" const.
5587         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5588         const.
5589         (blockvector_contains_pc): Make "bv" const.
5590         (block_for_pc_sect): Update.
5591         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5592         (blockvector_contains_pc): Update.
5593         * breakpoint.c (resolve_sal_pc): Update.
5594         * inline-frame.c (block_starting_point_at): Update.
5595
5596 2014-06-18  Tom Tromey  <tromey@redhat.com>
5597
5598         * completer.c (complete_line): Make "line_buffer" const.
5599         * completer.h (complete_line): Update.
5600
5601 2014-06-18  Tom Tromey  <tromey@redhat.com>
5602
5603         * symtab.c (add_macro_name): Remove unneeded cast.
5604
5605 2014-06-18  Tom Tromey  <tromey@redhat.com>
5606
5607         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5608         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5609
5610 2014-06-18  Tom Tromey  <tromey@redhat.com>
5611
5612         * probe.c (info_probes_for_ops): Make "arg" const.
5613         * probe.h (info_probes_for_ops): Update.
5614
5615 2014-06-18  Tom Tromey  <tromey@redhat.com>
5616
5617         * varobj.c (varobj_create): Update.
5618         * valops.c (value_of_this): Update.
5619         * tracepoint.c (add_local_symbols, scope_info): Update.
5620         * symtab.h (struct general_symbol_info) <block>: Now const.
5621         * symtab.c (skip_prologue_sal)
5622         (default_make_symbol_completion_list_break_on)
5623         (skip_prologue_using_sal): Update.
5624         * stack.h (iterate_over_block_locals)
5625         (iterate_over_block_local_vars): Update.
5626         * stack.c (print_frame_args): Update.
5627         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5628         parameter const.
5629         (get_selected_block): Make return type const.
5630         * python/py-frame.c (frapy_block): Update.
5631         * python/py-block.c (gdbpy_block_for_pc): Update.
5632         * p-exp.y (%union) <bval>: Now const.
5633         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5634         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5635         * m2-exp.y (%union) <bval>: Now const.
5636         * linespec.c (get_current_search_block): Make return type const.
5637         (create_sals_line_offset, find_label_symbols): Update.
5638         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5639         Update.
5640         (block_starting_point_at): Make "block" const.
5641         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5642         (check_exception_resume): Update.
5643         * guile/scm-frame.c (gdbscm_frame_block): Update.
5644         * guile/scm-block.c (gdbscm_lookup_block): Update.
5645         * frame.h (get_frame_block): Update.
5646         (get_selected_block): Make return type const.
5647         * frame.c (frame_id_inner): Update.
5648         * f-valprint.c (info_common_command_for_block)
5649         (info_common_command): Update.
5650         * dwarf2loc.c (dwarf2_find_location_expression)
5651         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5652         (locexpr_describe_location_piece): Update.
5653         * c-exp.y (%union) <bval>: Now const.
5654         * breakpoint.c (resolve_sal_pc): Update.
5655         * blockframe.c (get_frame_block):Make return type const.
5656         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5657         (block_innermost_frame): Update.
5658         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5659         (block_for_pc, block_for_pc_sect): Update.
5660         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5661         'pblock' const.
5662         (block_for_pc_sect, block_for_pc): Make return type const.
5663         * ax-gdb.c (gen_expr): Update.
5664         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5665         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5666         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5667         (ada_read_var_value): Update.
5668         * ada-exp.y (struct name_info) <block>: Now const.
5669         (%union): Likewise.
5670         (block_lookup): Constify.
5671
5672 2014-06-18  Gary Benson  <gbenson@redhat.com>
5673
5674         * nat/i386-dregs.h: New file.
5675         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5676         * i386-nat.h (i386-dregs.h): New include.
5677         (DR_FIRSTADDR): Now in i386-dregs.h.
5678         (DR_LASTADDR): Likewise.
5679         (DR_NADDR): Likewise.
5680         (DR_STATUS): Likewise.
5681         (DR_CONTROL): Likewise.
5682         (i386_debug_reg_state): Likewise.
5683         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5684
5685 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5686
5687         * breakpoint.c (set_longjmp_breakpoint): Call
5688         momentary_breakpoint_from_master with additional argument.
5689         (set_longjmp_breakpoint_for_call_dummy): Call
5690         momentary_breakpoint_from_master with additional argument.
5691         (set_std_terminate_breakpoint): Call
5692         momentary_breakpoint_from_master with additional argument.
5693         (momentary_breakpoint_from_master): Add argument to function
5694         definition and use it to initialize structure member flag.
5695         (clone_momentary_breakpoint): Call
5696         momentary_breakpoint_from_master with additional argument.
5697         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5698         member flags set in momentary_breakpoint_from_master.
5699
5700 2014-06-18  Gary Benson  <gbenson@redhat.com>
5701
5702         * i386-nat.c (i386_show_dr): Renamed to
5703         i386_dr_show and made nonstatic.  All uses updated.
5704         (i386_length_and_rw_bits): Renamed to
5705         i386_dr_length_and_rw_bits and made nonstatic.
5706         All uses updated.
5707         (i386_insert_aligned_watchpoint): Renamed to
5708         i386_dr_insert_aligned_watchpoint and made nonstatic.
5709         All uses updated.
5710         (i386_remove_aligned_watchpoint): Renamed to
5711         i386_dr_remove_aligned_watchpoint and made nonstatic.
5712         All uses updated.
5713         (i386_update_inferior_debug_regs): Renamed to
5714         i386_dr_update_inferior_debug_regs and made nonstatic.
5715         All uses updated.
5716
5717 2014-06-18  Gary Benson  <gbenson@redhat.com>
5718
5719         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5720         (i386_dr_low_can_set_control): Likewise.
5721         (i386_dr_low_set_addr): Likewise.
5722         (i386_dr_low_set_control): Likewise.
5723         (i386_dr_low_get_addr): Likewise.
5724         (i386_dr_low_get_status): Likewise.
5725         (i386_dr_low_get_control): Likewise.
5726         (i386_insert_aligned_watchpoint): Use new macros.
5727         (i386_update_inferior_debug_regs): Likewise.
5728         (i386_stopped_data_address): Likewise.
5729
5730 2014-06-18  Gary Benson  <gbenson@redhat.com>
5731
5732         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5733         New parameter.  All uses updated.
5734
5735 2014-06-18  Gary Benson  <gbenson@redhat.com>
5736
5737         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5738         All uses updated.
5739
5740 2014-06-18  Gary Benson  <gbenson@redhat.com>
5741
5742         * i386-nat.c (debug_printf): New macro.
5743         (i386_get_debug_register_length): Likewise.
5744         (TARGET_HAS_DR_LEN_8): Use above macro.
5745         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5746         and printf_unfiltered.  Use phex to format values.
5747
5748 2014-06-18  Gary Benson  <gbenson@redhat.com>
5749
5750         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5751         Make const.
5752
5753 2014-06-18  Gary Benson  <gbenson@redhat.com>
5754
5755         * i386-nat.c: Comment changes.
5756
5757 2014-06-18  Gary Benson  <gbenson@redhat.com>
5758
5759         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5760
5761 2014-06-18  Gary Benson  <gbenson@redhat.com>
5762
5763         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5764         (i386_insert_aligned_watchpoint): Likewise.
5765         (i386_remove_aligned_watchpoint): Likewise.
5766         (i386_handle_nonaligned_watchpoint): Likewise.
5767
5768 2014-06-18  Gary Benson  <gbenson@redhat.com>
5769
5770         * i386-nat.c: Whitespace changes.
5771
5772 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5773
5774         * MAINTAINERS: Update Roland McGrath's email address.
5775         Thanks to Sergio Durigan Junior for pointing out that he left
5776         Red Hat a while ago, and giving me a current address.
5777
5778 2014-06-17  Tom Tromey  <tromey@redhat.com>
5779
5780         * utils.h (savestring): Remove declaration.
5781
5782 2014-06-17  Tom Tromey  <tromey@redhat.com>
5783
5784         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5785
5786 2014-06-16  Keith Seitz  <keiths@redhat.com>
5787
5788         PR mi/15863
5789         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5790         to update the varobj if inferior_ptid is null_ptid.
5791
5792 2014-06-16  Tom Tromey  <tromey@redhat.com>
5793
5794         * target.h (struct target_ops) <to_info_proc>: Make parameter
5795         const.
5796         (target_info_proc): Update.
5797         * target.c (target_info_proc): Make "args" const.
5798         * procfs.c (procfs_info_proc): Update.
5799         * linux-tdep.c (linux_info_proc): Update.
5800         (linux_core_info_proc_mappings): Make "args" const.
5801         (linux_core_info_proc): Update.
5802         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5803         * gdbarch.c: Rebuild.
5804         * gdbarch.h: Rebuild.
5805         * corelow.c (core_info_proc): Update.
5806
5807 2014-06-16  Tom Tromey  <tromey@redhat.com>
5808
5809         * target.h (struct target_ops) <to_disconnect>: Make parameter
5810         const.
5811         (target_disconnect): Update.
5812         * target.c (target_disconnect): Make "args" const.
5813         * target-delegates.c: Rebuild.
5814         * remote.c (remote_disconnect): Update.
5815         * record.h (record_disconnect): Update.
5816         * record.c (record_disconnect): Update.
5817         * inf-child.c (inf_child_disconnect): Update.
5818
5819 2014-06-16  Tom Tromey  <tromey@redhat.com>
5820
5821         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5822         * target.c (debug_to_rcmd, default_rcmd): Update.
5823         * target-delegates.c: Rebuild.
5824         * remote.c (remote_rcmd): Update.
5825         * monitor.c (monitor_rcmd): Update.
5826
5827 2014-06-16  Pedro Alves  <palves@redhat.com>
5828
5829         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5830         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5831         have OBJF_SHARED set.
5832         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5833         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5834         instead of OBJF_USERLOADED.
5835         * objfiles.h (OBJF_SHARED): Update comment.
5836         (userloaded_objfile_contains_address_p): Rename to ...
5837         (shared_objfile_contains_address_p): ... this, and update
5838         comments.
5839         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5840         new objfile.
5841         (remove_symbol_file_command): Skip objfiles that don't have
5842         OBJF_SHARED set.
5843
5844 2014-06-16  Tom Tromey  <tromey@redhat.com>
5845
5846         * minsyms.h (prim_record_minimal_symbol)
5847         (prim_record_minimal_symbol_and_info): Update comments.
5848
5849 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5850
5851         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5852         or --without-guile, according to how GDB was built.
5853
5854 2014-06-13  Tom Tromey  <tromey@redhat.com>
5855
5856         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5857         to help_list.
5858         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5859         to help_list.
5860         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5861         help_list.
5862         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5863         help_list.Pass all_commands, not -1, to help_list.
5864         * cli/cli-dump.c (dump_command, append_command)
5865         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5866         (binary_dump_command, binary_append_command): Pass all_commands,
5867         not -1, to help_list.
5868         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5869         -1, to help_list.
5870         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5871         -1, to help_list.
5872         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5873         help_list.
5874         * top.c (set_history): Pass all_commands, not -1, to help_list.
5875         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5876         all_commands, not -1, to help_list.
5877         * symfile.c (overlay_command): Pass all_commands, not -1, to
5878         help_list.
5879         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5880         help_list.
5881         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5882         help_list.
5883         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5884         -1, to help_list.
5885         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5886         not -1, to help_list.
5887         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5888         not -1, to help_list.
5889         * maint.c (maintenance_command, maintenance_info_command)
5890         (maintenance_print_command, maintenance_set_cmd): Pass
5891         all_commands, not -1, to help_list.
5892         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5893         help_list.
5894         * language.c (set_check): Pass all_commands, not -1, to help_list.
5895         * infcmd.c (unset_command): Pass all_commands, not -1, to
5896         help_list.
5897         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5898         help_list.
5899         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5900         help_list.
5901         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5902         help_list.
5903         * breakpoint.c (save_command): Pass all_commands, not -1, to
5904         help_list.
5905         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5906         all_commands, not -1, to help_list.
5907
5908 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5909
5910         * regcache.c (struct register_to_invalidate): New structure.
5911         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5912         functions.
5913         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5914
5915 2014-06-12  Yao Qi  <yao@codesourcery.com>
5916
5917         * varobj.c (varobj_get_num_children): Call
5918         varobj_is_dynamic_p.
5919         (varobj_list_children): Likewise.
5920         (varobj_update): Likewise.  Update comments.
5921
5922 2014-06-12  Yao Qi  <yao@codesourcery.com>
5923
5924         * varobj.c (varobj_pretty_printed_p): Rename to ...
5925         (varobj_is_dynamic_p): ... this.  New function.
5926         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5927         (varobj_is_dynamic_p): Declare.
5928         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5929         (mi_print_value_p, varobj_update_one): Likewise.
5930
5931 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5932             Yao Qi  <yao@codesourcery.com>
5933
5934         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5935         (varobj_get_iterator): Wrap up code for pretty-printer by
5936         "#if HAVE_PYTHON" and "#endif".
5937         (update_dynamic_varobj_children): Likewise.
5938
5939 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5940             Yao Qi  <yao@codesourcery.com>
5941
5942         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5943         gdb_python_initialized is false.  Move some code from varobj.c.
5944         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5945         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5946         (struct varobj_item): Moved to varobj-iter.h".
5947         (varobj_clear_saved_item): New function.
5948         (update_dynamic_varobj_children): Move python-related code to
5949         py-varobj.c.
5950         (free_variable): Call varobj_clear_saved_item and
5951         varobj_iter_delete.
5952
5953 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5954             Yao Qi  <yao@codesourcery.com>
5955
5956         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5957         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5958         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5959         (py-varobj.o): New rule.
5960         * python/py-varobj.c: New file.
5961         * python/python-internal.h (py_varobj_get_iterator): Declare.
5962         * varobj-iter.h: New file.
5963         * varobj.c: Include "varobj-iter.h"
5964         (struct varobj) <child_iter>: Change its type from "PyObject *"
5965         to "struct varobj_iter *".
5966         <saved_item>: Likewise.
5967         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5968         [HAVE_PYTHON] (varobj_get_iterator): New function.
5969         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5970         python-specific code to python/py-varobj.c.
5971         (install_visualizer): Call varobj_iter_delete instead of
5972         Py_XDECREF.
5973         * varobj.h (varobj_ensure_python_env): Declare.
5974
5975 2014-06-12  Yao Qi  <yao@codesourcery.com>
5976
5977         * varobj.c (struct varobj_item): New structure.
5978         (create_child_with_value): Update declaration.
5979         (varobj_add_child): Replace arguments 'name' and 'value' with
5980         'item'.  All callers updated.
5981         (install_dynamic_child): Likewise.
5982         (update_dynamic_varobj_children): Likewise.
5983         (varobj_add_child): Likewise.
5984         (create_child_with_value): Likewise.
5985
5986 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5987
5988         * NEWS: Create a new section for the next release branch.
5989         Rename the section of the current branch, now that it has
5990         been cut.
5991
5992 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5993
5994         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5995         * version.in: Bump version to 7.8.50.DATE-cvs.
5996
5997 2014-06-11  Pedro Alves  <palves@redhat.com>
5998
5999         PR remote/17028
6000         * ser-mingw.c (net_windows_socket_check_pending): New function.
6001         (net_windows_select_thread): Ignore spurious wakeups.  Use
6002         net_windows_socket_check_pending.
6003         (net_windows_wait_handle): Check for pending events with
6004         ioctlsocket, through net_windows_socket_check_pending, instead of
6005         checking the socket's event.
6006
6007 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6008
6009         * python/python-internal.h (gdb_PyObject_GetAttrString)
6010         (gdb_PyObject_HasAttrString): New inline function definitions.
6011         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6012         char * of the second argument to PyObject_GetAttrString.
6013
6014 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6015
6016         * serial.c (serial_write): Fix index of character to be printed
6017         in call to serial_logchar when serial debug traces are enabled.
6018
6019 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6020
6021         * gdbtypes (resolve_dynamic_range): Add function description.
6022
6023 2014-06-09  Pedro Alves  <palves@redhat.com>
6024
6025         * linux-nat.c (linux_child_follow_fork): Initialize status with
6026         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6027         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6028         state.
6029
6030 2014-06-09  Gary Benson  <gbenson@redhat.com>
6031
6032         * common/signals.c (gdb_signal_from_host): Reorder to separate
6033         the always-available ANSI-standard signals from the signals that
6034         require checking.
6035         (do_gdb_signal_to_host): Likewise.
6036         * proc-events.c (signal_table): Likewise.
6037
6038 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6039
6040         * common/linux-ptrace.c (linux_disable_event_reporting): New
6041         function.
6042         * common/linux-ptrace.h (linux_disable_event_reporting): New
6043         declaration.
6044         * linux-nat.c (linux_child_follow_fork): Do a single step before
6045         detach.
6046
6047 2014-06-07  Keith Seitz  <keiths@redhat.com>
6048
6049         Revert:
6050         PR c++/16253
6051         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6052         from symbol_matches_domain in symtab.c. All local callers
6053         of symbol_matches_domain updated.
6054         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6055         search STRUCT_DOMAIN.
6056         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6057         independently.  standard_lookup will do that automatically.
6058         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6059         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6060         (cp_lookup_symbol_in_namespace): Likewise.
6061         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6062         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6063         may return a STRUCT_DOMAIN match.
6064         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6065         * cp-support.c: Include language.h.
6066         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6067         VAR_DOMAIN.
6068         * psymtab.c (match_partial_symbol): Compare the requested
6069         domain with the symbol's domain directly.
6070         (lookup_partial_symbol): Likewise.
6071         * symtab.c (lookup_symbol_in_language): Explain when/why
6072         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6073         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6074         appropriate languages.
6075         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6076         and moved to ada-lang.c
6077         (lookup_block_symbol): Explain that this function only returns
6078         symbol matching the requested DOMAIN.
6079         Compare the requested domain with the symbol's domain directly.
6080         (iterate_over_symbols): Compare the requested domain with the
6081         symbol's domain directly.
6082         * symtab.h (symbol_matches_domain): Remove.
6083
6084 2014-06-06  Doug Evans  <xdje42@gmail.com>
6085
6086         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6087         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6088         (gdbscm_guile_version_is_at_least): Declare.
6089         (gdbscm_scm_string_to_int): Declare.
6090         * guile/guile.c (gdbscm_guile_major_version): New global.
6091         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6092         (guile_datadir): New static global.
6093         (gdbscm_guile_data_directory): New function.
6094         (initialize_scheme_side): Update.
6095         (misc_guile_functions): Add guile-data-directory.
6096         (initialize_gdb_module): Fetch guile version number.
6097         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6098         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6099         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6100         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6101         comments.
6102         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6103         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6104         * guile/scm-value.c (gdbscm_value_to_string): Only call
6105         scm_port_conversion_strategy if Guile version >= 2.0.6.
6106
6107 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6108
6109         * main.c (print_gdb_help): Add -q and --silent.
6110
6111 2014-06-06  Gary Benson  <gbenson@redhat.com>
6112
6113         * common/signals.c: Remove preprocessor conditionals for
6114         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6115         SIGSEGV and SIGTERM.
6116         * proc-events.c: Likewise.
6117
6118 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6119
6120         * symfile.c (symfile_free_objfile): Remove restriction to
6121         OBJF_USERLOADED.
6122         * symfile-mem.c (symbol_file_add_from_memory): Call
6123         add_target_sections_of_objfile.
6124
6125 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6126
6127         * guile/scm-value.c (gdbscm_history_append_x): Use
6128         'vlscm_get_value_smob_arg_unsafe' instead of
6129         'vlscm_scm_to_value'.
6130
6131 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6132
6133         PR mi/15806
6134         * utils.c (printchar): Don't escape at all if quoter is NUL.
6135         Update function documentation to clarify effect of parameter
6136         QUOTER.
6137         * remote.c (escape_buffer): Pass '\\' as the quoter to
6138         fputstrn_unfiltered.
6139         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6140         generate the output.
6141         (mi_solib_unloaded): Same.
6142
6143 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6144
6145         * development.sh: Delete.
6146         * Makefile.in (config.status): Adjust dependency on development.sh.
6147         * configure.ac: Adjust development.sh source call.
6148         * configure: Regenerate.
6149
6150 2014-06-04  Doug Evans  <xdje42@gmail.com>
6151
6152         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6153         is_scheme_bkpt, spec.
6154         (bpscm_make_breakpoint_smob): Initialize new members.
6155         (gdbscm_create_breakpoint_x): Split into two ...
6156         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6157         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6158         (scheme_function breakpoint_functions): Update.
6159         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6160         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6161         register-breakpoint!.
6162
6163 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6164
6165         PR server/17023
6166         * mem-break.c (z_type_supported): Return zero if
6167         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6168
6169 2014-06-04  Tom Tromey  <tromey@redhat.com>
6170
6171         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6172         value_from_contents_and_address_unresolved.
6173         (ada_template_to_fixed_record_type_1): Likewise.
6174         (ada_which_variant_applies): Likewise.
6175         * value.h (value_from_contents_and_address_unresolved): Declare.
6176         * value.c (value_from_contents_and_address_unresolved): New
6177         function.
6178         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6179         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6180         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6181
6182 2014-06-04  Tom Tromey  <tromey@redhat.com>
6183
6184         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6185
6186 2014-06-04  Tom Tromey  <tromey@redhat.com>
6187
6188         * procfs.c (procfs_attach): Make "args" const.
6189         * windows-nat.c (windows_attach): Make "args" const.
6190         * nto-procfs.c (procfs_attach): Make "args" const.
6191         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6192         * go32-nat.c (go32_attach): Make "args" const.
6193         * gnu-nat.c (gnu_attach): Make "args" const.
6194         * darwin-nat.c (darwin_attach): Make "args" const.
6195         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6196         * linux-nat.c (linux_nat_attach): Make "args" const.
6197         * remote.c (extended_remote_attach_1, extended_remote_attach):
6198         Make "args" const.
6199         * target.h (struct target_ops) <to_attach>: Make "args" const.
6200         (find_default_attach): Likewise.
6201         * utils.c (parse_pid_to_attach): Make "args" const.
6202         * utils.h (parse_pid_to_attach): Update.
6203
6204 2014-06-04  Tom Tromey  <tromey@redhat.com>
6205
6206         * target-delegates.c: Rebuild.
6207         * target.c (default_thread_address_space): New function.
6208         (target_thread_address_space): Simplify.
6209         * target.h (struct target_ops) <to_thread_address_space>: Add
6210         TARGET_DEFAULT_FUNC.
6211
6212 2014-06-04  Doug Evans  <xdje42@gmail.com>
6213
6214         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6215
6216 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6217
6218         * record-btrace.c: Include event-loop.h and inf-loop.h.
6219         (record_btrace_resume_exec_dir)
6220         (record_btrace_async_inferior_event_handler)
6221         (record_btrace_handle_async_inferior_event): New.
6222         (record_btrace_open): Create async event handler.
6223         (record_btrace_close): Delete async event handler.
6224         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6225         Mark async event handler.
6226         (record_btrace_execution_direction): New.
6227         (init_record_btrace_ops): Initialize to_execution_direction.
6228
6229 2014-06-03  Doug Evans  <xdje42@gmail.com>
6230
6231         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6232         (gdbscm_make_parameter): Ditto.
6233
6234 2014-06-03  Doug Evans  <dje@google.com>
6235
6236         * exec.c (exec_close_1): Call clear_section_table instead of
6237         resize_section_table.
6238         (clear_section_table): New function.
6239         (resize_section_table): Make static.  Rename arg num_added to
6240         adjustment.
6241         * exec.h (clear_section_table): Declare.
6242         (resize_section_table): Delete.
6243         * progspace.c (release_program_space): Call clear_section_table
6244         instead of resize_section_table.
6245
6246 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6247
6248         * NEWS (Python Scripting): Add entry about the new xmethods
6249         feature.
6250
6251 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6252
6253         * python/py-xmethods.c: New file.
6254         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6255         (objfpy_dealloc): XDECREF on the new xmethods field.
6256         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6257         field.
6258         (objfpy_get_xmethods): New function.
6259         (objfile_getset): New entry 'xmethods'.
6260         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6261         (pspy_dealloc): XDECREF on the new xmethods field.
6262         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6263         field.
6264         (pspy_get_xmethods): New function.
6265         (pspace_getset): New entry 'xmethods'.
6266         * python/python-internal.h: Add declarations for new functions.
6267         * python/python.c (_initialize_python): Invoke
6268         gdbpy_initialize_xmethods.
6269         * python/lib/gdb/__init__.py (xmethods): New
6270         attribute.
6271         * python/lib/gdb/xmethod.py: New file.
6272         * python/lib/gdb/command/xmethods.py: New file.
6273
6274 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6275
6276         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6277         best match method returned by find_overload_match is an xmethod.
6278         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6279         the best matching operator returned by find_overload_match is an
6280         xmethod.
6281         * valops.c: #include "extension.h".
6282         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6283         Return void.  The list of matching source methods is returned in
6284         "fn_list" and a vector of matching debug method workers is
6285         returned in "xm_worker_vec".  Update all callers.
6286         (value_find_oload_method_list): Likewise.
6287         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6288         non-NULL, then the index of the best matching method in this
6289         vector is returned.  Update all callers.
6290         (find_overload_match): Include xmethods while performing overload
6291         resolution.
6292
6293 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6294
6295         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6296         * extension-priv.h (struct extension_language_ops): Add the
6297         xmethod interface.
6298         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6299         get_matching_xmethod_workers, get_xmethod_argtypes,
6300         invoke_xmethod, free_xmethod_worker,
6301         free_xmethod_worker_vec): New functions.
6302         * extension.h: #include "common/vec.h".
6303         New function declarations.
6304         (struct xmethod_worker): New struct.
6305         (VEC (xmethod_worker_ptr)): New vector type.
6306         (xmethod_worker_ptr): New typedef.
6307         (xmethod_worker_vec): Likewise.
6308         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6309         builtin_type.
6310         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6311         (struct builtin_type): New field "xmethod".
6312         * valarith.c (value_ptradd): Assert that the value argument is not
6313         lval_xcallable.
6314         * valops.c (value_must_coerce_to_target): Return 0 for
6315         lval_xcallable values.
6316         * value.c (struct value): New field XM_WORKER in the field
6317         LOCATION.
6318         (value_address, value_raw_address): Return 0 for lval_xcallable
6319         values.
6320         (set_value_address): Assert that the value is not an
6321         lval_xcallable.
6322         (value_free): Free the associated xmethod worker when freeing
6323         lval_xcallable values.
6324         (set_value_component_location): Assert that the WHOLE value is not
6325         lval_xcallable.
6326         (value_of_xmethod, call_xmethod): New functions.
6327         * value.h: Declare "struct xmethod_worker".
6328         Declare new functions value_of_xmethod, call_xmethod.
6329
6330 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6331             Pedro Alves  <palves@redhat.com>
6332
6333         PR breakpoints/17000
6334         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6335         New function, extracted from software_breakpoint_inserted_here_p.
6336         (software_breakpoint_inserted_here_p): Replace factored out code
6337         by call to find_non_raw_software_breakpoint_inserted_here.
6338         (bp_target_info_copy_insertion_state): New function.
6339         (bkpt_insert_location): Handle the case of a single-step
6340         breakpoint already inserted at the same address.
6341         (bkpt_remove_location): Handle the case of a single-step
6342         breakpoint still inserted at the same address.
6343         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6344         breakpoint already inserted at the same address.
6345         (deprecated_remove_raw_breakpoint): Handle the case of a
6346         non-raw breakpoint still inserted at the same address.
6347         (find_single_step_breakpoint): New function, extracted from
6348         single_step_breakpoint_inserted_here_p.
6349         (find_single_step_breakpoint): New function,
6350         factored out from single_step_breakpoint_inserted_here_p.
6351         (single_step_breakpoint_inserted_here_p): Reimplement.
6352
6353 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6354
6355         Pushed by Joel Brobecker  <brobecker@adacore.com>
6356         * source.c (show_substitute_path_command): Fix display of matching
6357         substitution rules.
6358
6359 2014-06-03  Gary Benson  <gbenson@redhat.com>
6360
6361         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6362
6363 2014-06-02  Doug Evans  <xdje42@gmail.com>
6364
6365         Add parameter support for Guile.
6366         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6367         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6368         (scm-param.o): New rule.
6369         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6370         (gdbscm_misc_error): Declare.
6371         (gdbscm_canonicalize_command_name): Declare.
6372         (gdbscm_scm_to_host_string): Declare.
6373         (gdbscm_scm_from_host_string): Declare.
6374         (gdbscm_initialize_parameters): Declare.
6375         * guile/guile.c (initialize_gdb_module): Call
6376         gdbscm_initialize_parameters.
6377         * guile/lib/gdb.scm: Export parameter symbols.
6378         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6379         cmdscm_canonicalize_name and made public.  All callers updated.
6380         * guile/scm-exception.c (gdbscm_misc_error): New function.
6381         * guile/scm-param.c: New file.
6382         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6383         (gdbscm_scm_to_host_string): New function.
6384         (gdbscm_scm_from_host_string): New function.
6385         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6386
6387 2014-06-02  Doug Evans  <xdje42@gmail.com>
6388
6389         Add command support for Guile.
6390         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6391         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6392         (scm-cmd.o): New rule.
6393         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6394         (gdbscm_user_error_p): Declare.
6395         (gdbscm_parse_command_name): Declare.
6396         (gdbscm_valid_command_class_p): Declare.
6397         (gdbscm_initialize_commands): Declare.
6398         * guile/guile.c (initialize_gdb_module): Call
6399         gdbscm_initialize_commands.
6400         * guile/lib/gdb.scm: Export command symbols.
6401         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6402         (throw-user-error): New function.
6403         * guile/scm-cmd.c: New file.
6404         * guile/scm-exception.c (user_error_symbol): New static global.
6405         (gdbscm_user_error_p): New function.
6406         (gdbscm_initialize_exceptions): Set user_error_symbol.
6407         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6408
6409 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6410
6411         * top.c (command_loop): Handle comments here...
6412         (command_line_input): ... not here.
6413
6414 2014-06-02  Doug Evans  <xdje42@gmail.com>
6415
6416         Add progspace support for Guile.
6417         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6418         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6419         (scm-progspace.o): New rule.
6420         * guile/guile-internal.h (pspace_smob): New typedef.
6421         (psscm_pspace_smob_pretty_printers): Declare.
6422         (psscm_pspace_smob_from_pspace): Declare.
6423         (psscm_scm_from_pspace): Declare.
6424         * guile/guile.c (initialize_gdb_module): Call
6425         gdbscm_initialize_pspaces.
6426         * guile/lib/gdb.scm: Export progspace symbols.
6427         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6428         support.
6429         (append-pretty-printer!): Ditto.
6430         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6431         Implement.
6432         * guile/scm-progspace.c: New file.
6433
6434 2014-06-03  Alan Modra  <amodra@gmail.com>
6435
6436         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6437         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6438
6439 2014-06-02  Doug Evans  <dje@google.com>
6440
6441         Add support for skeletonless type units.
6442         * dwarf2read.c (struct dwarf2_per_objfile): New member
6443         n_allocated_type_units.
6444         (struct dwarf2_per_objfile) <tu_stats>: New member
6445         nr_all_type_units_reallocs.
6446         (create_signatured_type_table_from_index): Initialize
6447         n_allocated_type_units
6448         (create_all_type_units): Ditto.
6449         (add_type_unit): Move up in file.  New arg slot.
6450         All callers updated.  Increase space for all_type_units more
6451         efficiently.
6452         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6453         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6454         (lookup_dwp_signatured_type): Ditto.
6455         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6456         All callers updated.
6457         (build_type_psymtabs_1): Leave type_unit_groups as
6458         NULL if no TUs present.
6459         (print_tu_stats): New function.
6460         (process_skeletonless_type_unit): New function.
6461         (process_dwo_file_for_skeletonless_type_units): New
6462         function.
6463         (process_skeletonless_type_units): New function.
6464         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6465         Call print tu_stats if debugging enabled.
6466
6467 2014-06-02  Pedro Alves  <palves@redhat.com>
6468
6469         * breakpoint.c (build_target_command_list): Don't build a command
6470         list if we have any duplicate location that isn't a dprintf.
6471
6472 2014-06-02  Pedro Alves  <palves@redhat.com>
6473
6474         * breakpoint.c (dprintf_breakpoint_hit): New function.
6475         (initialize_breakpoint_ops): Install it as dprintf's
6476         breakpoint_hit method.
6477
6478 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6479
6480         * source.c (substitute_path_rule_matches): Simplify using
6481         filename_ncmp instead of FILENAME_CMP.
6482
6483 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6484
6485         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6486
6487 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6488
6489         * configure.ac: When Guile is available, check for the
6490         availability of 'scm_new_smob'.
6491         * configure, config.h.in: Regenerate.
6492         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6493         function.
6494
6495 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6496
6497         * frame.c (struct frame_info): Add stop_string field.
6498         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6499         (get_prev_frame_always): Old content moved into
6500         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6501         TRY_CATCH, handle MEMORY_ERROR exceptions.
6502         (frame_stop_reason_string): New function definition.
6503         * frame.h (unwind_stop_reason_to_string): Extend comment to
6504         mention frame_stop_reason_string.
6505         (frame_stop_reason_string): New function declaration.
6506         * stack.c (frame_info): Switch to frame_stop_reason_string.
6507         (backtrace_command_1): Switch to frame_stop_reason_string.
6508         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6509         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6510         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6511
6512 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6513
6514         * frame.c (frame_stop_reason_string): Rename to ...
6515         (unwind_stop_reason_to_string): this.
6516         * frame.h (frame_stop_reason_string): Rename to ...
6517         (unwind_stop_reason_to_string): this.
6518         * stack.c (frame_info): Update call to frame_stop_reason_string.
6519         (backtrace_command_1): Likewise.
6520         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6521         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6522
6523 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6524
6525         * frame.c (remove_prev_frame): New function.
6526         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6527         remove_prev_frame.
6528
6529 2014-05-29  Pedro Alves  <palves@redhat.com>
6530
6531         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6532         and make it const.  When a single-step decays to a continue,
6533         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6534         to step to user_visible_resume_ptid, not what we ask the
6535         target to do.
6536
6537 2014-05-29  Pedro Alves  <palves@redhat.com>
6538
6539         * infrun.c (process_event_stop_test, handle_step_into_function)
6540         (handle_step_into_function_backward): Adjust.
6541         Don't set the even thread's stop_step and call stop_waiting before
6542         calling end_stepping_range.  Instead do that ...
6543         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6544
6545 2014-05-29  Pedro Alves  <palves@redhat.com>
6546
6547         * infrun.c (stop_stepping): Rename to ...
6548         (stop_waiting): ... this.
6549         (proceed): Update comment.
6550         (process_event_stop_test, handle_inferior_event)
6551         (handle_signal_stop, handle_step_into_function)
6552         (handle_step_into_function_backward): Update.
6553
6554 2014-05-29  Pedro Alves  <palves@redhat.com>
6555
6556         * infcall.c (run_inferior_call): Don't check whether the current
6557         thread is running after the proceed call.
6558
6559 2014-05-29  Pedro Alves  <palves@redhat.com>
6560             Tom Tromey  <tromey@redhat.com>
6561
6562         * NEWS: Mention "maint set target-async", "set mi-async", and that
6563         background execution commands are now always available.
6564         * target.h (target_async_permitted): Update comment.
6565         * target.c (target_async_permitted, target_async_permitted_1):
6566         Default to 1.
6567         (set_target_async_command): Rename to ...
6568         (maint_set_target_async_command): ... this.
6569         (show_target_async_command): Rename to ...
6570         (maint_show_target_async_command): ... this.
6571         (_initialize_target): Adjust.
6572         * infcmd.c (prepare_execution_command): Make extern.
6573         * inferior.h (prepare_execution_command): Declare.
6574         * infrun.c (set_observer_mode): Leave target async alone.
6575         * mi/mi-interp.c (mi_interpreter_init): Install
6576         mi_on_sync_execution_done as sync_execution_done observer.
6577         (mi_on_sync_execution_done): New function.
6578         (mi_execute_command_input_handler): Don't print the prompt if we
6579         just started a synchronous command with an async target.
6580         (mi_on_resume): Check sync_execution before printing prompt.
6581         * mi/mi-main.h (mi_async_p): Declare.
6582         * mi/mi-main.c: Include gdbcmd.h.
6583         (mi_async_p): New function.
6584         (mi_async, mi_async_1): New globals.
6585         (set_mi_async_command, show_mi_async_command, mi_async): New
6586         functions.
6587         (exec_continue): Call prepare_execution_command.
6588         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6589         (mi_execute_async_cli_command): Use mi_async_p.
6590         (_initialize_mi_main): Install "set mi-async".  Make
6591         "target-async" a deprecated alias.
6592
6593 2014-05-29  Pedro Alves  <palves@redhat.com>
6594
6595         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6596         (_initialize_cli_interp): Adjust.
6597         * event-loop.c: Include "observer.h".
6598         (start_event_loop): Notify 'command_error' observers instead of
6599         calling display_gdb_prompt.  Remove FIXME comment.
6600         * event-top.c (display_gdb_prompt): Remove call into the
6601         interpreters.
6602         * inf-loop.c: Include "observer.h".
6603         (inferior_event_handler): Notify 'command_error' observers instead
6604         of calling display_gdb_prompt.
6605         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6606         observers instead of calling display_gdb_prompt.
6607         * interps.c (interp_set): Don't call display_gdb_prompt.
6608         (current_interp_display_prompt_p): Delete.
6609         * interps.h (interp_prompt_p): Delete declaration.
6610         (interp_prompt_p_ftype): Delete.
6611         (struct interp_procs) <prompt_proc_p>: Delete field.
6612         (current_interp_display_prompt_p): Delete declaration.
6613         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6614         (_initialize_mi_interp): Adjust.
6615         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6616         'command_error' observers.
6617         (tui_on_sync_execution_done, tui_on_command_error): New
6618         functions.
6619         (tui_display_prompt_p): Delete.
6620         (_initialize_tui_interp): Adjust.
6621
6622 2014-05-29  Pedro Alves  <palves@redhat.com>
6623
6624         PR gdb/13860
6625         * cli/cli-interp.c: Include infrun.h and observer.h.
6626         (cli_uiout, cli_interp): New globals.
6627         (cli_on_signal_received, cli_on_end_stepping_range)
6628         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6629         functions.
6630         (cli_interpreter_init): Install them as 'end_stepping_range',
6631         'signal_received' 'signal_exited', 'exited' and 'no_history'
6632         observers.
6633         (_initialize_cli_interp): Remove cli_interp local.
6634         * infrun.c (handle_inferior_event): Call the several stop reason
6635         observers instead of printing the stop reason directly.
6636         (end_stepping_range): New function.
6637         (print_end_stepping_range_reason, print_signal_exited_reason)
6638         (print_exited_reason, print_signal_received_reason)
6639         (print_no_history_reason): Make static, and add an uiout
6640         parameter.  Print to that instead of to CURRENT_UIOUT.
6641         * infrun.h (print_end_stepping_range_reason)
6642         (print_signal_exited_reason, print_exited_reason)
6643         (print_signal_received_reason print_no_history_reason): New
6644         declarations.
6645         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6646         'mi_uiout'.
6647         <cli_uiout>: New field.
6648         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6649         uiout for CLI output.  Install 'signal_received',
6650         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6651         observers.
6652         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6653         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6654         (mi_on_no_history): New functions.
6655         (ui_out_free_cleanup): Delete function.
6656         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6657         instead use the one already stored in the MI interpreter data.
6658         (mi_ui_out): Adjust.
6659         * tui/tui-interp.c: Include infrun.h and observer.h.
6660         (tui_interp): New global.
6661         (tui_on_signal_received, tui_on_end_stepping_range)
6662         (tui_on_signal_exited, tui_on_exited)
6663         (tui_on_no_history): New functions.
6664         (tui_init): Install them as 'end_stepping_range',
6665         'signal_received' 'signal_exited', 'exited' and 'no_history'
6666         observers.
6667         (_initialize_tui_interp): Delete tui_interp local.
6668
6669 2014-05-29  Pedro Alves  <palves@redhat.com>
6670
6671         PR gdb/15713
6672         * linux-nat.c (linux_nat_resume_callback): Rename the second
6673         parameter to 'except'.  Skip LP if it points to EXCEPT.
6674         (linux_nat_resume): Don't mark the event lwp as not stopped
6675         before resuming sibling lwps.  Instead ask
6676         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6677         stopped after actually resuming it.
6678         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6679         resuming it.
6680         (wait_lwp): Mark the lwp as stopped here.
6681         (stop_wait_callback): Mark the lwp as not stopped right after
6682         resuming it.  Don't mark lwps as stopped here.
6683         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6684         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6685
6686 2014-05-29  Pedro Alves  <palves@redhat.com>
6687
6688         PR PR15693
6689         * infrun.c (resume): Determine how much to resume depending on
6690         whether the caller wanted a step, not whether we can hardware step
6691         the target.  Mark all threads that we intend to run as running,
6692         unless we're calling an inferior function.
6693         (normal_stop): If the thread is running an infcall, don't finish
6694         thread state.
6695         * target.c (target_resume): Don't mark threads as running here.
6696
6697 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6698
6699         * serial.c (_initialize_serial): Remove support for
6700         the "set remotebaud" and "show remotebaud" commands.
6701         * NEWS: Add entry documenting the removal of that command.
6702
6703 2014-05-28  Yao Qi  <yao@codesourcery.com>
6704
6705         * charset.c: Fix typo in comments.
6706
6707 2014-05-27  Gary Benson  <gbenson@redhat.com>
6708
6709         * utils.c (internal_vproblem): Prompt for a bug report.
6710
6711 2014-05-26  Andy Wingo  <wingo@igalia.com>
6712
6713         * guile/scm-arch.c (arscm_mark_arch_smob):
6714         * guile/scm-block.c (bkscm_mark_block_smob)
6715         (bkscm_mark_block_syms_progress_smob):
6716         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6717         * guile/scm-exception.c (exscm_mark_exception_smob):
6718         * guile/scm-frame.c (frscm_mark_frame_smob):
6719         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6720         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6721         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6722         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6723         (ppscm_mark_pretty_printer_worker_smob):
6724         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6725         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6726         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6727         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6728         mark functions.
6729         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6730         function.
6731
6732 2014-05-26  Andy Wingo  <wingo@igalia.com>
6733             Doug Evans  <xdje42@gmail.com>
6734
6735         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6736         empty_base_class.  All uses updated.
6737         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6738         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6739         Adapt all callers.
6740         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6741         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6742         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6743         (gdbscm_gsmob_has_property_p, add_property_name)
6744         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6745         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6746         (gdb-object-has-property?, gdb-object-properties): Remove.
6747         (gdb-object-kind): Renamed from gsmob-kind.
6748
6749 2014-05-26  Andy Wingo  <wingo@igalia.com>
6750
6751         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6752         * configure: Regenerate.
6753
6754 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6755
6756         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6757
6758 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6759
6760         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6761         (replay_memory_access_read_only, replay_memory_access_read_write)
6762         (replay_memory_access_types, replay_memory_access)
6763         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6764         (cmd_set_record_btrace, cmd_show_record_btrace)
6765         (cmd_show_replay_memory_access): New.
6766         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6767         (record_btrace_remove_breakpoint): Replace
6768         record_btrace_allow_memory_access with replay_memory_access.
6769         (_initialize_record_btrace): Add commands.
6770         * NEWS: Announce it.
6771
6772 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6773
6774         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6775
6776 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6777
6778         * MAINTAINERS (Write After Approval): Move self back from
6779         paper trail.
6780
6781 2014-05-22  Pedro Alves  <palves@redhat.com>
6782
6783         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6784         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6785         (disable_randomization, enum exec_direction_kind)
6786         (execution_direction, stop_registers, start_remote)
6787         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6788         (wait_for_inferior, normal_stop, get_last_target_status)
6789         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6790         (insert_step_resume_breakpoint_at_sal)
6791         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6792         (set_step_info, print_stop_event, signal_stop_state)
6793         (signal_print_state, signal_pass_state, signal_stop_update)
6794         (signal_print_update, signal_pass_update)
6795         (update_signals_program_target, clear_exit_convenience_vars)
6796         (displaced_step_dump_bytes, update_observer_mode)
6797         (signal_catch_update, gdb_signal_from_command): Move
6798         declarations ...
6799         * infrun.h: ... to this new file.
6800         * amd64-tdep.c: Include infrun.h.
6801         * annotate.c: Include infrun.h.
6802         * arch-utils.c: Include infrun.h.
6803         * arm-linux-tdep.c: Include infrun.h.
6804         * arm-tdep.c: Include infrun.h.
6805         * break-catch-sig.c: Include infrun.h.
6806         * breakpoint.c: Include infrun.h.
6807         * common/agent.c: Include infrun.h instead of inferior.h.
6808         * corelow.c: Include infrun.h.
6809         * event-top.c: Include infrun.h.
6810         * go32-nat.c: Include infrun.h.
6811         * i386-tdep.c: Include infrun.h.
6812         * inf-loop.c: Include infrun.h.
6813         * infcall.c: Include infrun.h.
6814         * infcmd.c: Include infrun.h.
6815         * infrun.c: Include infrun.h.
6816         * linux-fork.c: Include infrun.h.
6817         * linux-nat.c: Include infrun.h.
6818         * linux-thread-db.c: Include infrun.h.
6819         * monitor.c: Include infrun.h.
6820         * nto-tdep.c: Include infrun.h.
6821         * procfs.c: Include infrun.h.
6822         * record-btrace.c: Include infrun.h.
6823         * record-full.c: Include infrun.h.
6824         * remote-m32r-sdi.c: Include infrun.h.
6825         * remote-mips.c: Include infrun.h.
6826         * remote-notif.c: Include infrun.h.
6827         * remote-sim.c: Include infrun.h.
6828         * remote.c: Include infrun.h.
6829         * reverse.c: Include infrun.h.
6830         * rs6000-tdep.c: Include infrun.h.
6831         * s390-linux-tdep.c: Include infrun.h.
6832         * solib-irix.c: Include infrun.h.
6833         * solib-osf.c: Include infrun.h.
6834         * solib-svr4.c: Include infrun.h.
6835         * target.c: Include infrun.h.
6836         * top.c: Include infrun.h.
6837         * windows-nat.c: Include infrun.h.
6838         * mi/mi-interp.c: Include infrun.h.
6839         * mi/mi-main.c: Include infrun.h.
6840         * python/py-threadevent.c: Include infrun.h.
6841
6842 2014-05-22  Pedro Alves  <palves@redhat.com>
6843
6844         * infrun.c (handle_inferior_event): Store the exit code for
6845         --return-child-result here, instead of ...
6846         (print_exited_reason): ... here.
6847
6848 2014-05-21  Pedro Alves  <palves@redhat.com>
6849
6850         PR gdb/13860
6851         * gdbthread.h (struct thread_control_state): New field
6852         `command_interp'.
6853         * infrun.c (follow_fork): Copy the new thread control field to the
6854         child fork thread.
6855         (clear_proceed_status_thread): Clear the new thread control field.
6856         (proceed): Set the new thread control field.
6857         * interps.h (command_interp): Declare.
6858         * interps.c (command_interpreter): New global.
6859         (command_interp): New function.
6860         (interp_exec): Set `command_interpreter' while here.
6861         * cli-out.c (cli_uiout_dtor): New function.
6862         (cli_ui_out_impl): Install it.
6863         * mi/mi-interp.c: Include cli-out.h.
6864         (mi_cmd_interpreter_exec): Add comment.
6865         (restore_current_uiout_cleanup): New function.
6866         (ui_out_free_cleanup): New function.
6867         (mi_on_normal_stop): If finishing an execution command started by
6868         a CLI command, or any kind of breakpoint-like event triggered,
6869         print the stop event to the output (CLI) stream.
6870         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6871
6872 2014-05-21  Pedro Alves  <palves@redhat.com>
6873
6874         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6875         current source line having changed.
6876         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6877         * infrun.c (normal_stop): Adjust call to
6878         set_current_sal_from_frame.
6879         * source.c (clear_lines_listed_range): New function.
6880         (set_current_source_symtab_and_line, identify_source_line): Clear
6881         the lines listed range.
6882         (line_info): Handle the first "info line" after the current source
6883         line having changed.
6884         * stack.c (print_stack_frame): Remove center handling.
6885         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6886         center sal.line.
6887
6888 2014-05-21  Pedro Alves  <palves@redhat.com>
6889
6890         * inf-child.c (inf_child_mourn_inferior): New function.
6891         * inf-child.h (inf_child_mourn_inferior): New declaration.
6892         * darwin-nat.c (darwin_mourn_inferior): Use
6893         inf_child_mourn_inferior.
6894         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6895         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6896         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6897         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6898         * windows-nat.c (windows_mourn_inferior): Likewise.
6899
6900 2014-05-21  Doug Evans  <xdje42@gmail.com>
6901
6902         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6903
6904 2014-05-21  Doug Evans  <xdje42@gmail.com>
6905
6906         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6907         (gdbscm_out_of_range_error): Ditto.
6908         (gdbscm_memory_error): Ditto.
6909         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6910         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6911         (gdbscm_out_of_range_error): Update.
6912         (gdbscm_memory_error): Update.
6913         (gdbscm_scm_to_target_string_unsafe): Delete.
6914
6915 2014-05-21  Pedro Alves  <palves@redhat.com>
6916
6917         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6918         globals.
6919         (inf_child_open_target): New function.
6920         (inf_child_open): Use inf_child_open_target to push the target
6921         instead of erroring out.
6922         (inf_child_disconnect, inf_child_close)
6923         (inf_child_maybe_unpush_target): New functions.
6924         (inf_child_target): Install inf_child_disconnect and
6925         inf_child_close.  Store a pointer to the returned object.
6926         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6927         declarations.
6928         * target.c (auto_connect_native_target): New global.
6929         (show_default_run_target): New function.
6930         (find_default_run_target): Return NULL if automatically connecting
6931         to the native target is disabled.
6932         (_initialize_target): Install set/show auto-connect-native-target.
6933         * NEWS: Mention "set auto-connect-native-target", and "target
6934         native".
6935         * linux-nat.c (super_close): New global.
6936         (linux_nat_close): Call super_close.
6937         (linux_nat_add_target): Store a pointer to the base class's
6938         to_close method.
6939         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6940         inf_child_maybe_unpush.
6941         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6942         already pushed.
6943         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6944         the inferior.  Use inf_child_maybe_unpush_target.
6945         (inf_ttrace_attach): Don't push the target if it is already
6946         pushed.
6947         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6948         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6949         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6950         (darwin_attach_pid): Don't push the target if it is already
6951         pushed.
6952         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6953         mourning the inferior.  Use inf_child_maybe_unpush_target.
6954         (gnu_detach): Use inf_child_maybe_unpush_target.
6955         * go32-nat.c (go32_create_inferior): Don't push the target if it
6956         is already pushed.
6957         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6958         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6959         (procfs_open): Rename to ...
6960         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6961         comments.  Can target_preopen before changing node.  Call
6962         inf_child_open_target to push the target explicitly.
6963         (procfs_attach): Don't push the target if it is already pushed.
6964         (procfs_detach): Use inf_child_maybe_unpush_target.
6965         (procfs_create_inferior): Don't push the target if it is already
6966         pushed.
6967         (nto_native_ops): New global.
6968         (procfs_open): Reimplement.
6969         (procfs_native_open): New function.
6970         (init_procfs_targets): Install procfs_native_open as to_open of
6971         "target native".  Store a pointer to the "native" target in
6972         nto_native_ops.
6973         * procfs.c (procfs_attach): Don't push the target if it is already
6974         pushed.
6975         (procfs_detach): Use inf_child_maybe_unpush_target.
6976         (procfs_mourn_inferior): Only unpush the target after mourning the
6977         inferior.  Use inf_child_maybe_unpush_target.
6978         (procfs_init_inferior): Don't push the target if it is already
6979         pushed.
6980         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6981         if it is already pushed.
6982
6983 2014-05-21  Pedro Alves  <palves@redhat.com>
6984
6985         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6986         and "procfs" targets are now called "native" instead.
6987
6988 2014-05-21  Pedro Alves  <palves@redhat.com>
6989
6990         * go32-nat.c (go32_open): Delete.
6991         (go32_target): Don't override the to_open method.
6992
6993 2014-05-21  Pedro Alves  <palves@redhat.com>
6994
6995         * nto-procfs.c (procfs_can_run): New function.
6996         (nto_procfs_ops): New global.
6997         (init_procfs_targets): New, based on procfs_target.  Install
6998         "target native" in addition to "target procfs".
6999         (_initialize_procfs): Call init_procfs_targets instead of adding
7000         the target here.
7001
7002 2014-05-21  Pedro Alves  <palves@redhat.com>
7003
7004         * windows-nat.c (windows_target): Don't override to_shortname,
7005         to_longname or to_doc.
7006
7007 2014-05-21  Pedro Alves  <palves@redhat.com>
7008
7009         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7010         to_doc.
7011
7012 2014-05-21  Pedro Alves  <palves@redhat.com>
7013
7014         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7015         to_shortname, to_longname or to_doc.
7016
7017 2014-05-21  Pedro Alves  <palves@redhat.com>
7018
7019         * go32-nat.c (go32_target): Don't override to_shortname,
7020         to_longname or to_doc.
7021
7022 2014-05-21  Pedro Alves  <palves@redhat.com>
7023
7024         * inf-child.c (inf_child_open): Remove mention of "child".
7025         (inf_child_target): Rename target to "native" instead of "child".
7026
7027 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7028
7029         * Makefile.in (SFILES): Delete "regset.c".
7030         (COMMON_OBS): Delete "regset.o".
7031         * regset.c: Remove.
7032         * regset.h (regset_alloc): Delete prototype.
7033
7034 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7035
7036         * sparc-linux-tdep.c (sparc32_linux_gregset)
7037         (sparc32_linux_fpregset): New static regset structures.
7038         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7039         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7040         'fpregset' fields.
7041         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7042         (sparc64_linux_fpregset): New static regset structures.
7043         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7044         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7045         New static regset structures.
7046         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7047         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7048         New static regset structures.
7049         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7050         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7051         New static regset structures.
7052         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7053         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7054         New static regset structures.
7055         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7056
7057 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7058
7059         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7060         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7061         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7062         for all regmap types and variables.
7063         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7064         (sparc32_linux_supply_core_gregset)
7065         (sparc32_linux_collect_core_gregset)
7066         (sparc32_linux_supply_core_fpregset)
7067         (sparc32_linux_collect_core_fpregset): Likewise.
7068         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7069         (sparc_gregmap, sparc_fpregmap): ... these.
7070         (sparc_supply_gregset, sparc_collect_gregset)
7071         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7072         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7073         (_initialize_sparc_nat): Rename regmaps.
7074         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7075         (sparc_gregmap, sparc_fpregmap): ... these.
7076         (sparc_supply_gregset, sparc_collect_gregset)
7077         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7078         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7079         Rename macros to...
7080         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7081         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7082         Likewise.
7083         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7084         Rename to...
7085         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7086         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7087         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7088         regmaps.
7089         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7090         (sparc32_bsd_fpregset): Rename to...
7091         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7092         (sparc32_bsd_fpregmap): ... these.
7093         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7094         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7095         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7096         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7097         (struct sparc_gregmap, struct sparc_fpregmap)
7098         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7099         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7100         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7101         (sparc32_supply_regset, sparc32_collect_gregset)
7102         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7103         prototypes.
7104         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7105         (sparc64_linux_ptrace_gregmap): ... this.
7106         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7107         (_initialize_sparc64_linux_nat): Rename regmaps.
7108         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7109         (sparc64_linux_core_gregmap): ... this.
7110         (sparc64_linux_supply_core_gregset)
7111         (sparc64_linux_collect_core_gregset)
7112         (sparc64_linux_supply_core_fpregset)
7113         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7114         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7115         (sparc64_sol2_fpregset): Rename to...
7116         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7117         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7118         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7119         regmaps.
7120         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7121         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7122         (sparc64_bsd_fpregset): Rename to...
7123         (struct sparc_gregmap, sparc64_sol2_gregmap)
7124         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7125         (sparc64_bsd_fpregmap): ... these.
7126         (sparc64_supply_gregset, sparc64_collect_gregset)
7127         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7128         prototypes.
7129         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7130         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7131         (sparc64fbsd_gregmap): ... this.
7132         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7133         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7134         Rename regmaps.
7135         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7136         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7137         (sparc64nbsd_collect_fpregset): Likewise.
7138         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7139         (sparc64nbsd_gregmap): ... this.
7140         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7141         regmaps.
7142         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7143         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7144         (sparc64obsd_gregmap): ... this.
7145         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7146         regmaps.
7147         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7148         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7149         (sparc32nbsd_gregmap): ... this.
7150         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7151         regmaps.
7152
7153 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7154
7155         * score-tdep.c (score7_linux_gregset): New static regset
7156         structure.
7157         (score7_linux_regset_from_core_section): Remove dynamic regset
7158         allocation.
7159         (score_gdbarch_init): Drop allocation of tdep structure.
7160         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7161
7162 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7163
7164         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7165         regset structures.
7166         (am33_regset_from_core_section): Remove dynamic regset
7167         allocations.
7168
7169 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7170
7171         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7172         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7173         structures.
7174         (mips_linux_regset_from_core_section): Remove dynamic regset
7175         allocations.
7176         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7177         'gregset64', 'fpregset', and 'fpregset64'.
7178         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7179         deleted tdep fields.
7180
7181 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7182
7183         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7184         regset structures.
7185         (amd64_regset_from_core_section): Remove dynamic regset
7186         allocations.
7187         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7188         structure.
7189         (amd64obsd_regset_from_core_section): Remove dynamic regset
7190         allocation.
7191         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7192         Likewise.
7193         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7194         x86-common regset supply function.
7195         * i386-tdep.c (i386_collect_gregset): Make static.
7196         (i386_gregset): New global regset structure.
7197         (i386_fpregset, i386_xstateregset): New static regset structures.
7198         (i386_regset_from_core_section): Remove dynamic regset
7199         allocations.
7200         (i386_gdbarch_init): Remove initialization of tdep fields
7201         'gregset', 'fpregset', and 'xstateregset'.
7202         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7203         'fpregset', and 'xstateregset'.
7204         (i386_collect_gregset): Remove prototype.
7205         (i386_gregset): New declaration.
7206         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7207         structure.
7208         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7209         allocation.
7210
7211 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7212
7213         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7214         (arm_linux_vfpregset): New static regset structures.
7215         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7216         regset structures.
7217         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7218         and 'vfpregset' fields.
7219
7220 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7221
7222         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7223         (aarch64_linux_fpregset): New static regset structures.
7224         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7225         of regset structures.
7226         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7227         'fpregset' fields.
7228
7229 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7230
7231         * regset.h (struct regset): Remove gdbarch field.
7232         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7233         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7234         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7235         Likewise.
7236         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7237         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7238         (ppc32_linux_vsxregset): Likewise.
7239         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7240         via the regcache instead of the regset.
7241         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7242         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7243         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7244         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7245         Likewise.
7246
7247 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7248
7249         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7250         Constify structures.
7251         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7252         (alphanbsd_aout_gregset): Likewise.
7253         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7254         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7255         Likewise.
7256         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7257         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7258         Likewise.
7259         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7260         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7261         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7262         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7263         * m88k-tdep.c (m88k_gregset): Likewise.
7264         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7265         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7266         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7267         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7268         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7269         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7270         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7271         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7272         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7273         Likewise.
7274         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7275         * sh-tdep.h (sh_corefile_gregset): Likewise.
7276         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7277         * vax-tdep.c (vax_gregset): Likewise.
7278
7279 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7280
7281         Fix TLS access for -static -pthread.
7282         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7283         (try_thread_db_load_1): Initialize it.
7284         (thread_db_get_thread_local_address): Call it if LM is zero.
7285         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7286         * target.h (struct target_ops) (to_get_thread_local_address): Add
7287         load_module_addr comment.
7288
7289 2014-05-21  Pedro Alves  <palves@redhat.com>
7290
7291         * dcache.c (dcache_read_memory_partial): If reading the cache line
7292         fails, fallback to reading just the memory the caller wanted.
7293
7294 2014-05-20  Doug Evans  <dje@google.com>
7295
7296         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7297         instead of get_current_arch.
7298
7299 2014-05-20  Pedro Alves  <palves@redhat.com>
7300
7301         * NEWS: Mention that compare-sections now works with all targets.
7302
7303         * remote.c (PACKET_qCRC): New enum value.
7304         (remote_verify_memory): Don't send qCRC if the target has no
7305         execution.  Use packet_support/packet_ok.  If the target doesn't
7306         support the qCRC packet, fallback to a deep memory copy.
7307         (compare_sections_command): Say "target image" instead of "remote
7308         executable".
7309         (_initialize_remote): Add PACKET_qCRC to the list of config
7310         packets that have no associated command.  Extend comment.
7311         * target.c (simple_verify_memory, default_verify_memory): New
7312         function.
7313         * target.h (struct target_ops) <to_verify_memory>: Default to
7314         default_verify_memory.
7315         (simple_verify_memory): New declaration.
7316         * target-delegates.c: Regenerate.
7317
7318 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7319
7320         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7321
7322 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7323             Yao Qi  <yao@codesourcery.com>
7324
7325         PR backtrace/16558
7326         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7327         and change address of sp and pc.
7328
7329 2014-05-19  Tom Tromey  <tromey@redhat.com>
7330
7331         * gdbtypes.c (rank_function): Use XNEWVEC.
7332         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7333
7334 2014-05-19  Doug Evans  <dje@google.com>
7335
7336         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7337         build_type_unit_groups and moved closer to only caller.  Remove
7338         arguments.  All references updated.  Remove outdated .gdb_index
7339         comment.
7340         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7341         build_type_psymtabs_1.
7342
7343 2014-05-19  Doug Evans  <dje@google.com>
7344
7345         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7346         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7347         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7348         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7349         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7350         (add_type_unit_group_to_table): Delete.
7351
7352 2014-05-19  Doug Evans  <dje@google.com>
7353
7354         * eval.c (evaluate_subexp_standard): Add some comments.
7355
7356 2014-05-17  Doug Evans  <xdje42@gmail.com>
7357
7358         * progspace.c (remove_program_space): Delete, unused.
7359         * progspace.h (remove_program_space): Ditto.
7360
7361 2014-05-17  Doug Evans  <xdje42@gmail.com>
7362
7363         * inferior.c (prune_inferiors): Fix comment.
7364         (remove_inferior_command): Call prune_program_spaces.
7365
7366 2014-05-16  Doug Evans  <dje@google.com>
7367
7368         New command line option -D.
7369         * NEWS: Mention it.
7370         * main.c (set_gdb_data_directory): New function.
7371         (captured_main): Recognize -D.  Flag error for --data-directory "".
7372         Call set_gdb_data_directory.
7373         (print_gdb_help): Print --data-directory, -D.
7374         * main.h (set_gdb_data_directory): Declare.
7375         * top.c (staged_gdb_datadir): New static global.
7376         (set_gdb_datadir): Call set_gdb_data_directory
7377         (show_gdb_datadir): New function.
7378         (init_main): Update init of data-directory parameter.
7379
7380 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7381
7382         Import the "dirfd" gnulib module.
7383         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7384         * gnulib/aclocal.m4: Update.
7385         * gnulib/config.in: Update.
7386         * gnulib/configure: Update.
7387         * gnulib/import/Makefile.am: Update.
7388         * gnulib/import/Makefile.in: Update.
7389         * gnulib/import/dirfd.c: New.
7390         * gnulib/import/m4/dirfd.m4: New.
7391         * gnulib/import/m4/gnulib-cache.m4: Update.
7392         * gnulib/import/m4/gnulib-comp.m4: Update.
7393
7394 2014-05-16  Pierre Muller  <muller@sourceware.org>
7395             Yao Qi  <yao@codesourcery.com>
7396
7397         * valprint.c (print_wchar): Move the code on checking whether
7398         W is a printable wide char to the default branch of switch
7399         statement below.  Call wchar_printable instead of gdb_iswprint.
7400
7401 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7402
7403         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7404         ldr.w and ldrd instructions.
7405
7406 2014-05-15  Doug Evans  <dje@google.com>
7407
7408         * dwarf2read.c (read_structure_type): Delete outdated comments.
7409
7410 2014-05-14  Tom Tromey  <tromey@redhat.com>
7411
7412         * macrocmd.c (print_macro_definition): Reindent.
7413
7414 2014-05-13  Doug Evans  <xdje42@gmail.com>
7415
7416         * python/py-cmd.c (cmdpy_completer): Add comment.
7417         (completers): Make const.
7418
7419 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7420
7421         * infrun.c (resume): Remove should_resume (unused).  Move up
7422         declaration of resume_ptid.
7423
7424 2014-05-13  Tom Tromey  <tromey@redhat.com>
7425
7426         * language.h (unop_type_check): Remove.
7427         (binop_type_check): Don't declare.
7428
7429 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7430
7431         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7432         call to regcache_raw_collect.
7433
7434 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7435
7436         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7437         mi_console->quote as the quoting character.
7438
7439 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7440
7441         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7442
7443 2014-04-29  Tom Tromey  <tromey@redhat.com>
7444
7445         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7446         "show debug varobj".
7447
7448 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7449
7450         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7451         * aarch64-tdep.c (aarch64_software_single_step): New function.
7452         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7453         with aarch64_software_single_step.
7454
7455 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7456
7457         GDB 7.7.1 released.
7458
7459 2014-05-05  Keith Seitz  <keiths@redhat.com>
7460
7461         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7462         variable or history value is successfully parsed.
7463
7464 2014-05-05  Yao Qi  <yao@codesourcery.com>
7465             Pedro Alves  <palves@redhat.com>
7466
7467         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7468         address of blocks that intersects the requested range.  Trim
7469         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7470         sections.
7471         * ctf.c (ctf_xfer_partial): Likewise.
7472
7473 2014-05-05  Yao Qi  <yao@codesourcery.com>
7474
7475         * printcmd.c (display_command): Remove the check to
7476         target_has_execution.
7477
7478 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7479
7480         * ppcobsd-nat.c: Include "obsd-nat.h".
7481         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7482         add_target.
7483         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7484
7485 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7486
7487         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7488         and 16-bit signed and unsigned arguments.  Update comment.
7489         (stap_parse_probe_arguments): Extend code to handle such
7490         arguments.  Use warning instead of complaint to notify about
7491         unrecognized bitness.
7492
7493 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7494
7495         PR breakpoints/16889
7496         * stap-probe.c (stap_parse_probe_arguments): Simplify
7497         check for non-prefixed probes (i.e., probes whose
7498         arguments do not start with "N@").  Always set the
7499         argument type to a sane value.
7500
7501 2014-05-01  David Taylor  <dtaylor@emc.com>
7502
7503         * remote.c (compare_sections_command): Add -r option to compare
7504         all loadable read-only sections.
7505
7506 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7507
7508         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7509         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7510         Update all callers.
7511         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7512         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7513         Remove unused CORE_ADDR argument.  Update all callers.
7514
7515 2014-04-29  Pedro Alves  <palves@redhat.com>
7516
7517         * remote.c (struct packet_config) <detect>: Extend comment.
7518         (add_packet_config_cmd): Don't set the config's detect or support
7519         fields here.
7520         (init_all_packet_configs): Also initialize the config's 'detect'
7521         field.
7522         (reset_all_packet_configs_support): New function.
7523         (remote_open_1): Call reset_all_packet_configs_support instead of
7524         init_all_packet_configs.
7525         (_initialize_remote): Initialize all packet configs.  Assert that
7526         all packets have an associated command, except a few known
7527         outliers.
7528
7529 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7530
7531         * dwarf2read.c (read_subrange_type): Handle dynamic
7532         DW_AT_lower_bound attributes.
7533
7534 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7535
7536         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7537         dynamic bounds before computing its upper bound.
7538         (ada_discrete_type_low_bound): Same as above with the lower bound.
7539
7540 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7541
7542         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7543         range types.  Adjust the array handling implementation to
7544         take advantage of this change.
7545         (resolve_dynamic_range): New function, mostly extracted from
7546         resolve_dynamic_bounds.
7547         (resolve_dynamic_array): New function, mostly extracted from
7548         resolve_dynamic_bounds.
7549         (resolve_dynamic_bounds): Delete.
7550         (resolve_dynamic_type): Reimplement.  Add handling of
7551         TYPE_CODE_RANGE types.
7552
7553 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7554
7555         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7556         handling of parallel ___XA types.
7557
7558 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7559
7560         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7561         unnecessary second call to static_unwrap_type.
7562
7563 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7564
7565         * stack.c (print_frame_info): Call do_gdb_disassembly with
7566         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7567
7568 2014-04-26  Doug Evans  <xdje42@gmail.com>
7569
7570         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7571
7572 2014-04-25  Pedro Alves  <palves@redhat.com>
7573
7574         PR server/16255
7575         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7576         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7577         and newline from built string.
7578         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7579         (linux_ptrace_attach_fail_reason): ... this.
7580         * linux-nat.c (linux_nat_attach): Adjust to use
7581         linux_ptrace_attach_fail_reason.
7582
7583 2014-04-25  Pedro Alves  <palves@redhat.com>
7584
7585         * remote.c (struct remote_state): Remove multi_process_aware,
7586         non_stop_aware, cond_tracepoints, cond_breakpoints,
7587         breakpoint_commands, fast_tracepoints, static_tracepoints,
7588         install_in_trace, disconnected_tracing,
7589         enable_disable_tracepoints, string_tracing, and
7590         augmented_libraries_svr4_read fields.
7591         (remote_multi_process_p): Move further below in the file.
7592         (struct packet_config): Add comments.
7593         (update_packet_config): Delete function.
7594         (show_packet_config_cmd): Use packet_config_support.
7595         (add_packet_config_cmd): Use NULL as set callback.
7596         (packet_ok): "set remote foo-packet"-style commands no longer
7597         change config->supported -- adjust.
7598         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7599         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7600         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7601         (PACKET_QNonStop, PACKET_multiprocess_feature)
7602         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7603         (PACKET_DisconnectedTracing_feature)
7604         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7605         (set_remote_protocol_packet_cmd): Delete function.
7606         (packet_config_support, packet_support): New functions.
7607         (set_remote_protocol_Z_packet_cmd): Don't call
7608         update_packet_config.
7609         (remote_query_attached, remote_pass_signals)
7610         (remote_program_signals, remote_threads_info)
7611         (remote_threads_extra_info, remote_start_remote): Use
7612         packet_support.
7613         (remote_start_remote): Use packet_config_support and
7614         packet_support.
7615         (init_all_packet_configs): Set all packets to unknown support,
7616         instead of calling update_packet_config.
7617         (remote_check_symbols): Use packet_support.
7618         (remote_supported_packet): Unconditionally set the packet config's
7619         support status.
7620         (remote_multi_process_feature, remote_non_stop_feature)
7621         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7622         (remote_breakpoint_commands_feature)
7623         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7624         (remote_install_in_trace_feature)
7625         (remote_disconnected_tracing_feature)
7626         (remote_enable_disable_tracepoint_feature)
7627         (remote_string_tracing_feature)
7628         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7629         (remote_protocol_features): Adjust to use remote_supported_packet
7630         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7631         "ConditionalTracepoints", "ConditionalBreakpoints",
7632         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7633         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7634         "EnableDisableTracepoints", and "tracenz".
7635         (remote_query_supported): Use packet_support.
7636         (remote_open_1): Adjust.
7637         (extended_remote_attach_1): Use packet_support.  Switch on the
7638         result of packet_ok instead of checking whether the packet ended
7639         up disabled.
7640         (remote_vcont_resume): Use packet_support.
7641         (remote_resume, remote_stop_ns, fetch_register_using_p)
7642         (remote_prepare_to_store, store_register_using_P)
7643         (check_binary_download, remote_write_bytes): Use packet_support.
7644         (remote_vkill): Use packet_support.  Switch on the result of
7645         packet_ok instead of checking whether the packet ended up
7646         disabled.
7647         (extended_remote_supports_disable_randomization): Use
7648         packet_support.
7649         (extended_remote_run): Switch on the result of packet_ok instead
7650         of checking whether the packet ended up disabled.
7651         (remote_insert_breakpoint, remote_remove_breakpoint)
7652         (remote_insert_watchpoint, remote_remove_watchpoint)
7653         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7654         packet_support.
7655         (remote_search_memory): Use packet_config_support.
7656         (remote_get_thread_local_address, remote_get_tib_address)
7657         (remote_hostio_send_command, remote_can_execute_reverse): Use
7658         packet_support.
7659         (remote_supports_cond_tracepoints)
7660         (remote_supports_cond_breakpoints)
7661         (remote_supports_fast_tracepoints)
7662         (remote_supports_static_tracepoints)
7663         (remote_supports_install_in_trace)
7664         (remote_supports_enable_disable_tracepoint)
7665         (remote_supports_string_tracing)
7666         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7667         the packet config says the feature is enabled or disabled.
7668         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7669         (remote_get_trace_status): Use packet_support.
7670         (remote_set_disconnected_tracing): Adjust to check whether the
7671         feature is enabled with packet_support.
7672         (remote_set_trace_buffer_size, remote_use_agent)
7673         (remote_can_use_agent, remote_supports_btrace): Use
7674         packet_support.
7675         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7676         Use packet_config_support.
7677         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7678         the packet config says the feature is enabled or disabled.
7679         (set_range_stepping): Use packet_support.
7680
7681 2014-04-25  Tom Tromey  <tromey@redhat.com>
7682
7683         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7684         argument.
7685
7686 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7687
7688         * NEWS: Mention support for C99 variable length arrays.
7689
7690 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7691
7692         * ada-lang.c (standard_exc): Expand introductory comment.
7693
7694 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7695             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7696
7697         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7698         AVX512 registers.
7699         (amd64_linux_read_description): Add code to handle AVX512 xstate
7700         mask and return respective tdesc.
7701         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7702         and features/i386/x32-avx512-linux.c.
7703         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7704         (amd64_linux_core_read_description): Add code to handle AVX512
7705         xstate mask and return respective tdesc.
7706         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7707         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7708         calculation.
7709         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7710         (tdesc_amd64_avx512_linux): New prototype.
7711         (tdesc_x32_avx512_linux): Likewise.
7712         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7713         features/i386/x32-avx512.c.
7714         (amd64_ymm_avx512_names): New register names for pseudo
7715         registers YMM16-31.
7716         (amd64_ymmh_avx512_names): New register names for raw registers
7717         YMMH16-31.
7718         (amd64_k_names): New register names for K registers.
7719         (amd64_zmmh_names): New register names for ZMM raw registers.
7720         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7721         (amd64_xmm_avx512_names): New register names for XMM16-31
7722         registers.
7723         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7724         registers.
7725         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7726         if feature is present.
7727         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7728         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7729         (AMD64_NUM_REGS): Adjust to new number of registers.
7730         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7731         registers supplied via XSTATE by AVX512 registers.
7732         (i386_linux_read_description): Add case for AVX512.
7733         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7734         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7735         (i386_linux_core_read_description): Add case for AVX512.
7736         (i386_linux_init_abi): Install supported register note section
7737         for AVX512.
7738         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7739         AVX512.
7740         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7741         registers to be number of zmm7h + 1.
7742         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7743         * i386-tdep.c: Include features/i386/i386-avx512.c.
7744         (i386_zmm_names): Add ZMM pseudo register names array.
7745         (i386_zmmh_names): Add ZMM raw register names array.
7746         (i386_k_names): Add K raw register names array.
7747         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7748         registers. AVX512 has 16 more ZMM registers than there are YMM
7749         registers.
7750         (i386_zmmh_regnum_p): Add function to look up register number of
7751         ZMM raw registers.
7752         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7753         (i386_k_regnum_p): Likewise for K raw registers.
7754         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7755         registers added by AVX512.
7756         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7757         registers added by AVX512.
7758         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7759         added by AVX512.
7760         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7761         (i386_pseudo_register_name): Add ZMM pseudo registers.
7762         (i386_zmm_type): Construct and return vector registers type for ZMM
7763         registers.
7764         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7765         ZMM0-31 pseudo registers and K registers.
7766         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7767         and YMM16-31 registers from register cache.
7768         (i386_pseudo_register_write): Add code to write  K, ZMM and
7769         YMM16-31 registers.
7770         (i386_register_reggroup_p): Add code to include/exclude AVX512
7771         registers in/from respective register groups.
7772         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7773         registers if feature is present in xcr0.
7774         (i386_gdbarch_init): Add code to initialize AVX512 feature
7775         variables in tdep structure, wire in pseudo registers and call
7776         initialize_tdesc_i386_avx512.
7777         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7778         variables.
7779         (i386_regnum): Add AVX512 registers.
7780         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7781         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7782         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7783         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7784         512 bits wide.
7785         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7786         (i386_ymm_avx512_regnum_p): Likewise.
7787         (i386_k_regnum_p): Likewise.
7788         (i386_zmm_regnum_p): Likewise.
7789         (i386_zmmh_regnum_p): Likewise.
7790         * i387-tdep.c : Update year in copyright notice.
7791         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7792         XSAVE buffer.
7793         (XSAVE_YMM_AVX512_ADDR): New macro.
7794         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7795         XSAVE buffer.
7796         (XSAVE_XMM_AVX512_ADDR): New macro.
7797         (xsave_avx512_k_offset): New table for K register offsets in
7798         XSAVE buffer.
7799         (XSAVE_AVX512_K_ADDR): New macro.
7800         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7801         in XSAVE buffer.
7802         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7803         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7804         buffer.
7805         (i387_collect_xsave): Add code to collect AVX512 registers from
7806         XSAVE buffer.
7807         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7808         of XMM16-31 registers.
7809         (I387_NUM_K_REGS): New define for number of K registers.
7810         (I387_K0_REGNUM): New define for K0 register number.
7811         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7812         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7813         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7814         registers.
7815         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7816         (I387_XMM16_REGNUM): New define for XMM16 register number.
7817         (I387_YMM0_REGNUM): New define for YMM0 register number.
7818         (I387_KEND_REGNUM): New define for last K register number.
7819         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7820         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7821         number.
7822         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7823         number.
7824         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7825         size.
7826         * features/Makefile: Add AVX512 related files.
7827         * features/i386/32bit-avx512.xml: New file.
7828         * features/i386/64bit-avx512.xml: Likewise.
7829         * features/i386/amd64-avx512-linux.c: Likewise.
7830         * features/i386/amd64-avx512-linux.xml: Likewise.
7831         * features/i386/amd64-avx512.c: Likewise.
7832         * features/i386/amd64-avx512.xml: Likewise.
7833         * features/i386/i386-avx512-linux.c: Likewise.
7834         * features/i386/i386-avx512-linux.xml: Likewise.
7835         * features/i386/i386-avx512.c: Likewise.
7836         * features/i386/i386-avx512.xml: Likewise.
7837         * features/i386/x32-avx512-linux.c: Likewise.
7838         * features/i386/x32-avx512-linux.xml: Likewise.
7839         * features/i386/x32-avx512.c: Likewise.
7840         * features/i386/x32-avx512.xml: Likewise.
7841         * regformats/i386/amd64-avx512-linux.dat: New file.
7842         * regformats/i386/amd64-avx512.dat: Likewise.
7843         * regformats/i386/i386-avx512-linux.dat: Likewise.
7844         * regformats/i386/i386-avx512.dat: Likewise.
7845         * regformats/i386/x32-avx512-linux.dat: Likewise.
7846         * regformats/i386/x32-avx512.dat: Likewise.
7847         * NEWS: Add note about new support for AVX512.
7848
7849
7850 2014-04-23  Pedro Alves  <palves@redhat.com>
7851
7852         * breakpoint.c (insert_bp_location): Tolerate errors if the
7853         breakpoint is set in a user-loaded objfile.
7854         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7855         location is marked shlib_disabled.  If the breakpoint is set in a
7856         user-loaded objfile is a GDB-side memory breakpoint, validate it
7857         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7858         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7859         flag.
7860         * mem-break.c (memory_validate_breakpoint): New function.
7861         * objfiles.c (userloaded_objfile_contains_address_p): New
7862         function.
7863         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7864         * target.h (memory_validate_breakpoint): New declaration.
7865
7866 2014-04-23  Pedro Alves  <palves@redhat.com>
7867
7868         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7869         the breakpoint is set in a shared library, only suppress
7870         errors for software breakpoints, not hardware breakpoints.
7871
7872 2014-04-22  Pedro Alves  <palves@redhat.com>
7873
7874         * infrun.c (schedlock_applies): New function, factored out from
7875         find_thread_needs_step_over.
7876         (find_thread_needs_step_over): Use it.
7877         (switch_back_to_stepped_thread): Always clear trap_expected if the
7878         step over is finished.  Return early if scheduler locking applies.
7879         Look for the stepping thread and a potential step-over thread with
7880         a single loop.
7881         (currently_stepping_or_nexting_callback): Delete.
7882
7883 2014-04-22  Nick Clifton  <nickc@redhat.com>
7884
7885         * NEWS: Mention that ARM sim now supports tracing.
7886
7887 2014-04-22  Yao Qi  <yao@codesourcery.com>
7888
7889         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7890         to ...
7891         * tracefile.c (tracefile_fetch_registers): ... it.  New
7892         function.
7893         * tracefile.h (tracefile_fetch_registers): Declare.
7894         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7895         tracefile_fetch_registers.
7896
7897 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7898
7899         PR gdb/14018
7900         * windows-nat.c (thread_rec): Don't display a warning when
7901         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7902         fails for any reason, set th->suspended to -1, so that we don't
7903         try to resume such a thread.  Also, don't return NULL in these
7904         cases, to avoid completely ruin the session due to "PC register is
7905         not available" error.
7906         (do_windows_fetch_inferior_registers): Check errors in
7907         GetThreadContext call.
7908         (windows_continue): Accept an additional argument KILLED; if not
7909         zero, ignore errors in the SetThreadContext call, since the
7910         inferior was killed and is shutting down.
7911         (windows_resume, get_windows_debug_event)
7912         (windows_create_inferior, windows_mourn_inferior)
7913         (windows_kill_inferior): All callers of windows_continue changed
7914         to adjust to its new calling sequence.
7915
7916 2014-04-19  Yao Qi  <yao@codesourcery.com>
7917
7918         * ctf.c (ctf_open): Call post_create_inferior.
7919
7920 2014-04-19  Yao Qi  <yao@codesourcery.com>
7921
7922         * ctf.c (handle_id): New static variable.
7923         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7924         value.  Get the declaration of event "register" and get length
7925         of field "contents".
7926
7927 2014-04-19  Yao Qi  <yao@codesourcery.com>
7928
7929         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7930
7931 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7932
7933         * valops.c (oload_method_static): Remove unnecessary argument
7934         METHOD.  Update all callers.
7935
7936 2014-04-18  Pedro alves  <palves@redhat.com>
7937             Tom Tromey  <tromey@redhat.com>
7938
7939         PR backtrace/15558
7940         * frame.c (get_prev_frame_1): Rename to ...
7941         (get_prev_frame_always): ... this, and make extern.  Adjust.
7942         (skip_artificial_frames): Use get_prev_frame_always.
7943         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7944         (get_frame_unwind_stop_reason): Adjust to rename.
7945         * frame.h (get_prev_frame_always): Declare.
7946         * inline-frame.c: Include frame.h.
7947         (inline_frame_this_id): Use get_prev_frame_always.
7948
7949 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7950
7951         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7952         code by using bfd_mach_o_get_base_address.
7953
7954 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7955
7956         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7957         (spu_ax_pseudo_register_collect): New function.
7958         (spu_ax_pseudo_register_push_stack): Likewise.
7959         (spu_dwarf_reg_to_regnum): Likewise.
7960         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7961
7962 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7963
7964         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7965         Replace FRAME argument with FRAME_ID.
7966         * gdbarch.c, gdbarch.h: Regenerate.
7967         * findvar.c (default_value_from_register): Add GDBARCH argument;
7968         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7969         (value_from_register): Update call to gdbarch_value_from_register.
7970         * value.h (default_value_from_register): Update prototype.
7971         * s390-linux-tdep.c (s390_value_from_register): Update interface
7972         and call to default_value_from_register.
7973         * spu-tdep.c (spu_value_from_register): Likewise.
7974
7975         * findvar.c (address_from_register): Remove TYPE argument.
7976         Do not call value_from_register; use gdbarch_value_from_register
7977         with null_frame_id instead.
7978         * value.h (address_from_register): Update prototype.
7979         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7980         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7981         address_from_register interface change.
7982
7983 2014-04-17  Yao Qi  <yao@codesourcery.com>
7984
7985         * gdbtypes.h: Update comments to link to types and macros'
7986         definitions.
7987
7988 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7989
7990         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7991
7992 2014-04-16  Keith Seitz  <keiths@redhat.com>
7993
7994         PR gdb/15827
7995         * dwarf2read.c (skip_one_die): Check that all relative-offset
7996         sibling DIEs fall within range of the current reader's buffer.
7997         (read_partial_die): Likewise.
7998
7999 2014-04-16  Keith Seitz  <keiths@redhat.com>
8000
8001         PR c++/16597
8002         * cp-namespace.c (lookup_symbol_file): If the type name of
8003         `this' is NULL, return immediately.
8004
8005 2014-04-14  Keith Seitz  <keiths@redhat.com>
8006
8007         PR c++/16253
8008         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8009         from symbol_matches_domain in symtab.c. All local callers
8010         of symbol_matches_domain updated.
8011         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8012         search STRUCT_DOMAIN.
8013         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8014         independently.  standard_lookup will do that automatically.
8015         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8016         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8017         (cp_lookup_symbol_in_namespace): Likewise.
8018         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8019         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8020         may return a STRUCT_DOMAIN match.
8021         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8022         * cp-support.c: Include language.h.
8023         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8024         VAR_DOMAIN.
8025         * psymtab.c (match_partial_symbol): Compare the requested
8026         domain with the symbol's domain directly.
8027         (lookup_partial_symbol): Likewise.
8028         * symtab.c (lookup_symbol_in_language): Explain when/why
8029         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8030         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8031         appropriate languages.
8032         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8033         and moved to ada-lang.c
8034         (lookup_block_symbol): Explain that this function only returns
8035         symbol matching the requested DOMAIN.
8036         Compare the requested domain with the symbol's domain directly.
8037         (iterate_over_symbols): Compare the requested domain with the
8038         symbol's domain directly.
8039         * symtab.h (symbol_matches_domain): Remove.
8040
8041 2014-04-14  Tom Tromey  <tromey@redhat.com>
8042
8043         PR c++/15246:
8044         * c-exp.y (type_aggregate_p): New function.
8045         (qualified_name, classify_inner_name): Use it.
8046         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8047         and TYPE_TARGET_TYPE of an enum type.
8048         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8049         an enum type.
8050         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8051         handle TYPE_DECLARED_CLASS.
8052         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8053         types.
8054         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8055         * valops.c (enum_constant_from_type): New function.
8056         (value_aggregate_elt): Use it.
8057         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8058         TYPE_CODE_ENUM.
8059
8060 2014-04-14  Tom Tromey  <tromey@redhat.com>
8061
8062         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8063         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8064         const.
8065         * value.h (value_aggregate_elt): Update.
8066
8067 2014-04-14  Tom Tromey  <tromey@redhat.com>
8068
8069         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8070
8071 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8072
8073         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8074         (evaluate_subexp_standard): Pass noside argument.
8075         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8076         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8077         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8078         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8079         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8080
8081 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8082
8083         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8084         points to a constant blob.
8085
8086 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8087
8088         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8089         property and store it as the high bound and flag the range accordingly.
8090         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8091         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8092         * gdbtypes.h (enum range_flags): New enum.
8093         (struct range_bounds): Add flags member.
8094
8095 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8096
8097         * c-typeprint.c (c_type_print_varspec_suffix): Added
8098         check for not yet resolved high bound. If unresolved, print
8099         "variable length" string to the console instead of random
8100         length.
8101
8102 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8103
8104         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8105         value.
8106         (ada_template_to_fixed_record_type_1): Likewise.
8107         (ada_to_fixed_type_1): Likewise.
8108         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8109         (cp_print_value): Likewise.
8110         * d-valprint.c (dynamic_array_type): Likewise.
8111         * findvar.c (address_of_variable): Likewise.
8112         * jv-valprint.c (java_value_print): Likewise.
8113         * valops.c (value_ind): Likewise.
8114         * value.c (coerce_ref): Likewise.
8115
8116 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8117
8118         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8119         value and retrieve the dynamic type size.
8120
8121 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8122
8123         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8124         passed to sizeof is dynamic evaluate the argument to compute the length.
8125
8126 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8127             Joel Brobecker  <brobecker@adacore.com>
8128
8129         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8130         (dwarf2_evaluate_property): New function.
8131         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8132         * dwarf2read.c (attr_to_dynamic_prop): New function.
8133         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8134         attribute.
8135         * gdbtypes.c: Include dwarf2loc.h.
8136         (is_dynamic_type): New function.
8137         (resolve_dynamic_type): New function.
8138         (resolve_dynamic_bounds): New function.
8139         (get_type_length): New function.
8140         (check_typedef): Use get_type_length to compute type length.
8141         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8142         (TYPE_LOW_BOUND_KIND): New macro.
8143         (is_dynamic_type): New function prototype.
8144         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8145         to resolve dynamic properties of the type. Update comment.
8146         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8147
8148 2014-04-14  Richard Henderson  <rth@redhat.com>
8149
8150         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8151
8152 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8153             Doug Evans  <xdje42@gmail.com>
8154
8155         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8156         dereference TYPE_CODE_REF values.
8157
8158 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8159
8160         Revert the following changes due to regressions:
8161
8162         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8163         (dwarf2_evaluate_property): New function.
8164         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8165         * dwarf2read.c (attr_to_dynamic_prop): New function.
8166         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8167         attribute.
8168         * gdbtypes.c: Include dwarf2loc.h.
8169         (is_dynamic_type): New function.
8170         (resolve_dynamic_type): New function.
8171         (resolve_dynamic_bounds): New function.
8172         (get_type_length): New function.
8173         (check_typedef): Use get_type_length to compute type length.
8174         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8175         (TYPE_LOW_BOUND_KIND): New macro.
8176         (is_dynamic_type): New function prototype.
8177         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8178         to resolve dynamic properties of the type. Update comment.
8179         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8180
8181         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8182         passed to sizeof is dynamic evaluate the argument to compute the length.
8183
8184         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8185         value and retrieve the dynamic type size.
8186
8187         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8188         (ada_template_to_fixed_record_type_1): Likewise.
8189         (ada_to_fixed_type_1): Likewise.
8190         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8191         (cp_print_value): Likewise.
8192         * d-valprint.c (dynamic_array_type): Likewise.
8193         * eval.c (evaluate_subexp_with_coercion): Likewise.
8194         * findvar.c (address_of_variable): Likewise.
8195         * jv-valprint.c (java_value_print): Likewise.
8196         * valops.c (value_ind): Likewise.
8197         * value.c (coerce_ref): Likewise.
8198
8199         * c-typeprint.c (c_type_print_varspec_suffix): Added
8200         check for not yet resolved high bound. If unresolved, print
8201         "variable length" string to the console instead of random
8202         length.
8203
8204         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8205         property and store it as the high bound and flag the range accordingly.
8206         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8207         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8208         * gdbtypes.h (enum range_flags): New enum.
8209         (struct range_bounds): Add flags member.
8210
8211         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8212         points to a constant blob.
8213
8214         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8215         (evaluate_subexp_standard): Pass noside argument.
8216         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8217         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8218         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8219         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8220         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8221
8222 2014-04-11  Keith Seitz  <keiths@redhat.com>
8223
8224         PR c++/16675
8225         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8226         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8227         reference types.
8228
8229 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8230
8231         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8232         (evaluate_subexp_standard): Pass noside argument.
8233         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8234         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8235         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8236         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8237         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8238
8239 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8240
8241         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8242         points to a constant blob.
8243
8244 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8245
8246         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8247         property and store it as the high bound and flag the range accordingly.
8248         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8249         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8250         * gdbtypes.h (enum range_flags): New enum.
8251         (struct range_bounds): Add flags member.
8252
8253 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8254
8255         * c-typeprint.c (c_type_print_varspec_suffix): Added
8256         check for not yet resolved high bound. If unresolved, print
8257         "variable length" string to the console instead of random
8258         length.
8259
8260 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8261
8262         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8263         (ada_template_to_fixed_record_type_1): Likewise.
8264         (ada_to_fixed_type_1): Likewise.
8265         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8266         (cp_print_value): Likewise.
8267         * d-valprint.c (dynamic_array_type): Likewise.
8268         * eval.c (evaluate_subexp_with_coercion): Likewise.
8269         * findvar.c (address_of_variable): Likewise.
8270         * jv-valprint.c (java_value_print): Likewise.
8271         * valops.c (value_ind): Likewise.
8272         * value.c (coerce_ref): Likewise.
8273
8274 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8275
8276         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8277         value and retrieve the dynamic type size.
8278
8279 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8280
8281         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8282         passed to sizeof is dynamic evaluate the argument to compute the length.
8283
8284 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8285
8286         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8287         (dwarf2_evaluate_property): New function.
8288         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8289         * dwarf2read.c (attr_to_dynamic_prop): New function.
8290         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8291         attribute.
8292         * gdbtypes.c: Include dwarf2loc.h.
8293         (is_dynamic_type): New function.
8294         (resolve_dynamic_type): New function.
8295         (resolve_dynamic_bounds): New function.
8296         (get_type_length): New function.
8297         (check_typedef): Use get_type_length to compute type length.
8298         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8299         (TYPE_LOW_BOUND_KIND): New macro.
8300         (is_dynamic_type): New function prototype.
8301         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8302         to resolve dynamic properties of the type. Update comment.
8303         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8304
8305 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8306
8307         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8308         declaring high/low bounds and change uses accordingly. Call
8309         create_range_type instead of create_static_range_type.
8310         * gdbtypes.c (create_range_type): New function.
8311         (create_range_type): Convert bounds into struct bound_prop and pass
8312         them to create_range_type.
8313         * gdbtypes.h (struct bound_prop): New struct.
8314         (create_range_type): New function prototype.
8315         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8316         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8317         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8318         part of the bound.
8319         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8320
8321 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8322
8323         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8324         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8325         * ada-lang.c: All uses of create_range_type updated.
8326         * coffread.c: All uses of create_range_type updated.
8327         * dwarf2read.c: All uses of create_range_type updated.
8328         * f-exp.y: All uses of create_range_type updated.
8329         * m2-valprint.c: All uses of create_range_type updated.
8330         * mdebugread.c: All uses of create_range_type updated.
8331         * stabsread.c: All uses of create_range_type updated.
8332         * valops.c: All uses of create_range_type updated.
8333         * valprint.c: All uses of create_range_type updated.
8334
8335 2014-04-10  Pedro Alves  <palves@redhat.com>
8336
8337         * breakpoint.c (single_step_breakpoints)
8338         (single_step_gdbarch): Move up in the file.
8339         (one_breakpoint_xfer_memory): New function, factored out from ...
8340         (breakpoint_xfer_memory): ... here.  Also process single-step
8341         breakpoints.
8342
8343 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8344
8345         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8346         comments.
8347         (darwin_decode_exception_message): Free port only after use.
8348
8349 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8350
8351         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8352         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8353         when setting the size of call_length.
8354
8355 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8356
8357         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8358         dereference TYPE_CODE_REF values.
8359
8360 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8361
8362         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8363         end of warning message.
8364
8365 2014-04-03  Doug Evans  <dje@google.com>
8366
8367         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8368         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8369
8370 2014-04-02  Alan Modra  <amodra@gmail.com>
8371
8372         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8373         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8374         (struct symbol_file_add_from_memory_args): Add size field.
8375         (find_vdso_size): New function.
8376         (add_vsyscall_page): Attempt to find vdso size.
8377
8378 2014-04-01  Doug Evans  <dje@google.com>
8379
8380         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8381
8382 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8383
8384         * darwin-nat.c (darwin_encode_reply): Add prototype.
8385         (darwin_decode_exception_message): Reply to unknown inferiors.
8386         (darwin_decode_message): Handle message by id.  Ignore message
8387         to unknown inferior.
8388         (darwin_wait): Discard unknown messages, add debug trace.
8389
8390 2014-03-31  Doug Evans  <dje@google.com>
8391
8392         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8393         comp_dir_string.
8394
8395 2014-03-31  Doug Evans  <dje@google.com>
8396
8397         New option "set print symbol-loading".
8398         * NEWS: Mention it.
8399         * solib.c (solib_read_symbols): Only print symbol loading messages
8400         if requested.
8401         (solib_add): If symbol loading is in "brief" mode, notify user
8402         symbols are being loaded.
8403         (reload_shared_libraries_1): Ditto.
8404         * symfile.c (print_symbol_loading_off): New static global.
8405         (print_symbol_loading_brief): New static global.
8406         (print_symbol_loading_full): New static global.
8407         (print_symbol_loading_enums): New static global.
8408         (print_symbol_loading): New static global.
8409         (print_symbol_loading_p): New function.
8410         (symbol_file_add_with_addrs): Only print symbol loading messages
8411         if requested.
8412         (_initialize_symfile): Register "print symbol-loading" set/show
8413         command.
8414         * symfile.h (print_symbol_loading_p): Declare.
8415
8416 2014-03-30  Doug Evans  <xdje42@gmail.com>
8417
8418         * infrun.c (set_last_target_status): New function.
8419         (handle_inferior_event): Call it.
8420
8421 2014-03-30  Doug Evans  <xdje42@gmail.com>
8422
8423         * inferior.h (enum stop_kind): Improve comment.
8424
8425 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8426
8427         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8428         a reference, strip the reference layer before calling
8429         the lang_ops value_has_mutated callback.
8430
8431 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8432
8433         Remove some globals from our parser.
8434         * language.c (unk_lang_parser): Add "struct parser_state"
8435         argument.
8436         * language.h (struct language_defn) <la_parser>: Likewise.
8437         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8438         (initialize_expout): Add "struct parser_state" argument.
8439         Rewrite function to use the parser state.
8440         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8441         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8442         write_exp_elt_longcst, write_exp_elt_dblcst,
8443         write_exp_elt_decfloatcst, write_exp_elt_type,
8444         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8445         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8446         write_dollar_variable): Likewise.
8447         (parse_exp_in_context_1): Use parser state.
8448         (insert_type_address_space): Add "struct parser_state" argument.
8449         Use parser state.
8450         (increase_expout_size): New function.
8451         * parser-defs.h: Forward declare "struct language_defn" and
8452         "struct parser_state".
8453         (expout, expout_size, expout_ptr): Remove extern declarations.
8454         (parse_gdbarch, parse_language): Rewrite macro declarations to
8455         accept the parser state.
8456         (struct parser_state): New struct.
8457         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8458         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8459         write_exp_elt_decfloatcst, write_exp_elt_type,
8460         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8461         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8462         write_exp_msymbol, write_dollar_variable,
8463         mark_struct_expression, insert_type_address_space): Add "struct
8464         parser_state" argument.
8465         (increase_expout_size): New function.
8466         * utils.c (do_clear_parser_state): New function.
8467         (make_cleanup_clear_parser_state): Likewise.
8468         * utils.h (make_cleanup_clear_parser_state): New function
8469         prototype.
8470         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8471         Update calls to write_exp* in order to pass the parser state.
8472         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8473         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8474         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8475         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8476         * stap-probe.c (stap_parse_register_operand): Likewise.
8477         (stap_parse_single_operand): Likewise.
8478         (stap_parse_argument_1): Likewise.
8479         (stap_parse_argument): Use parser state.
8480         * stap-probe.h: Include "parser-defs.h".
8481         (struct stap_parse_info) <pstate>: New field.
8482         * c-exp.y (parse_type): Rewrite to use parser state.
8483         (yyparse): Redefine to c_parse_internal.
8484         (pstate): New global variable.
8485         (parse_number): Add "struct parser_state" argument.
8486         (write_destructor_name): Likewise.
8487         (type_exp): Update calls to write_exp* and similars in order to
8488         use parser state.
8489         (exp1, exp, variable, qualified_name, space_identifier,
8490         typename, typebase): Likewise.
8491         (write_destructor_name, parse_number, lex_one_token,
8492         classify_name, classify_inner_name, c_parse): Add "struct
8493         parser_state" argument.  Update function to use parser state.
8494         * c-lang.h: Forward declare "struct parser_state".
8495         (c_parse): Add "struct parser_state" argument.
8496         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8497         (yyparse): Redefine macro to ada_parse_internal.
8498         (pstate): New variable.
8499         (write_int, write_object_renaming, write_var_or_type,
8500         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8501         type_int, type_long, type_long_long, type_float, type_double,
8502         type_long_double, type_char, type_boolean, type_system_address):
8503         Add "struct parser_state" argument.
8504         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8505         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8506         var_or_type, aggregate, aggregate_component_list,
8507         positional_list, others, component_group,
8508         component_associations): Update calls to write_exp* and similar
8509         functions in order to use parser state.
8510         (ada_parse, write_var_from_sym, write_int,
8511         write_exp_op_with_string, write_object_renaming,
8512         find_primitive_type, write_selectors, write_ambiguous_var,
8513         write_var_or_type, write_name_assoc, type_int, type_long,
8514         type_long_long, type_float, type_double, type_long_double,
8515         type_char, type_boolean, type_system_address): Add "struct
8516         parser_state" argument.  Adjust function to use parser state.
8517         * ada-lang.c (parse): Likewise.
8518         * ada-lang.h: Forward declare "struct parser_state".
8519         (ada_parse): Add "struct parser_state" argument.
8520         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8521         calls to both functions.
8522         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8523         parser state.
8524         (yyparse): Redefine macro to f_parse_internal.
8525         (pstate): New variable.
8526         (parse_number): Add "struct parser_state" argument.
8527         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8528         and similars in order to use parser state.
8529         (parse_number): Adjust code to use parser state.
8530         (yylex): Likewise.
8531         (f_parse): New function.
8532         * f-lang.h: Forward declare "struct parser_state".
8533         (f_parse): Add "struct parser_state" argument.
8534         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8535         parser state.
8536         (yyparse): Redefine macro for java_parse_internal.
8537         (pstate): New variable.
8538         (push_expression_name, push_expression_name, insert_exp): Add
8539         "struct parser_state" argument.
8540         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8541         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8542         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8543         PostIncrementExpression, PostDecrementExpression,
8544         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8545         UnaryExpressionNotPlusMinus, CastExpression,
8546         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8547         RelationalExpression, EqualityExpression, AndExpression,
8548         ExclusiveOrExpression, InclusiveOrExpression,
8549         ConditionalAndExpression, ConditionalOrExpression,
8550         ConditionalExpression, Assignment, LeftHandSide): Update
8551         calls to write_exp* and similars in order to use parser state.
8552         (parse_number): Ajust code to use parser state.
8553         (yylex): Likewise.
8554         (java_parse): New function.
8555         (push_variable): Add "struct parser_state" argument.  Adjust
8556         code to user parser state.
8557         (push_fieldnames, push_qualified_expression_name,
8558         push_expression_name, insert_exp): Likewise.
8559         * jv-lang.h: Forward declare "struct parser_state".
8560         (java_parse): Add "struct parser_state" argument.
8561         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8562         parser state.
8563         (yyparse): Redefine macro to m2_parse_internal.
8564         (pstate): New variable.
8565         (type_exp, exp, fblock, variable, type): Update calls to
8566         write_exp* and similars to use parser state.
8567         (yylex): Likewise.
8568         (m2_parse): New function.
8569         * m2-lang.h: Forward declare "struct parser_state".
8570         (m2_parse): Add "struct parser_state" argument.
8571         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8572         * objc-lang.h: Forward declare "struct parser_state".
8573         (end_msglist): Add "struct parser_state" argument.
8574         * p-exp.y (parse_type): Rewrite macro to use parser state.
8575         (yyparse): Redefine macro to pascal_parse_internal.
8576         (pstate): New variable.
8577         (parse_number): Add "struct parser_state" argument.
8578         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8579         write_exp* and similars in order to use parser state.
8580         (parse_number, yylex): Adjust code to use parser state.
8581         (pascal_parse): New function.
8582         * p-lang.h: Forward declare "struct parser_state".
8583         (pascal_parse): Add "struct parser_state" argument.
8584         * go-exp.y (parse_type): Rewrite macro to use parser state.
8585         (yyparse): Redefine macro to go_parse_internal.
8586         (pstate): New variable.
8587         (parse_number): Add "struct parser_state" argument.
8588         (type_exp, exp1, exp, variable, type): Update calls to
8589         write_exp* and similars in order to use parser state.
8590         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8591         to use parser state.
8592         (go_parse): Likewise.
8593         * go-lang.h: Forward declare "struct parser_state".
8594         (go_parse): Add "struct parser_state" argument.
8595
8596 2014-03-27  Doug Evans  <dje@google.com>
8597
8598         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8599
8600 2014-03-27  Doug Evans  <dje@google.com>
8601
8602         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8603         Remove argument abbrev_section.  All callers updated.
8604
8605 2014-03-27  Doug Evans  <dje@google.com>
8606
8607         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8608         addr_base, ranges_base.
8609
8610 2014-03-26  Keith Seitz  <keiths@redhat.com>
8611
8612         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8613         types, not VAR_DOMAIN.
8614
8615 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8616
8617         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8618         "ra" registers.
8619         * features/nios2-linux.c: Regenerated.
8620         * features/nios2.c: Regenerated.
8621
8622 2014-03-25  Pedro Alves  <palves@redhat.com>
8623
8624         * cli/cli-script.c (script_from_file): Force the interpreter to
8625         sync mode.
8626
8627 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8628
8629         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8630         small stack allocation.
8631
8632 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8633
8634         * darwin-nat.c (exc_server): Remove unused prototype.
8635         (darwin_dump_message): Correctly display data on x86_64.
8636         (darwin_encode_reply): Fix style.
8637         Add comments and fix indentation.
8638
8639 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8640
8641         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8642
8643 2014-03-22  Doug Evans  <xdje42@gmail.com>
8644
8645         * infcmd.c: Whitespace fixes.
8646         (interrupt_command): Merge two function comments into one.
8647
8648 2014-03-22  Doug Evans  <xdje42@gmail.com>
8649
8650         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8651         All uses updated.
8652
8653 2014-03-22  Yao Qi  <yao@codesourcery.com>
8654
8655         * remote.c (target_read_live_memory): Remove.
8656         (memory_xfer_live_readonly_partial): Rename it to
8657         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8658         All callers updated.  Call remote_read_bytes_1
8659         instead of target_read_live_memory.
8660         * tracepoint.c (set_traceframe_number): Remove.
8661         (make_cleanup_restore_traceframe_number): Likewise .
8662         * tracepoint.h (set_traceframe_number): Remove declaration.
8663         (make_cleanup_restore_traceframe_number): Likewise.
8664
8665 2014-03-22  Yao Qi  <yao@codesourcery.com>
8666
8667         * remote.c (remote_read_bytes): Move code on reading from the
8668         remote stub to ...
8669         (remote_read_bytes_1): ... here.  New function.
8670
8671 2014-03-22  Yao Qi  <yao@codesourcery.com>
8672
8673         * ctf.c (ctf_xfer_partial): Check the return value of
8674         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8675         return TARGET_XFER_UNAVAILABLE.
8676         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8677         * target.c (target_read_live_memory): Move it to remote.c.
8678         (memory_xfer_live_readonly_partial): Likewise.
8679         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8680         * remote.c (target_read_live_memory): Moved from target.c.
8681         (memory_xfer_live_readonly_partial): Likewise.
8682         (remote_read_bytes): Factored out from
8683         memory_xfer_partial_1.
8684
8685 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8686
8687         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8688         NULL pointer.
8689
8690 2014-03-21  Pedro Alves  <palves@redhat.com>
8691
8692         * infrun.c (normal_stop): Extend comment.
8693
8694 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8695             Pedro Alves  <palves@redhat.com>
8696
8697         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8698         static buffer.
8699         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8700         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8701         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8702
8703 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8704
8705         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8706         `z' formatted output modifier.
8707
8708 2014-03-20  Tom Tromey  <tromey@redhat.com>
8709             Sergio Durigan Junior  <sergiodj@redhat.com>
8710
8711         * probe.c (parse_probes): Turn assert into an ordinary error.
8712         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8713         exceptions when parsing probes.  Rearrange the code for clarity.
8714
8715 2014-03-20  Tom Tromey  <tromey@redhat.com>
8716
8717         PR gdb/14135
8718         * top.c (execute_command): Only dispatch events if the command
8719         started the target.
8720
8721 2014-03-20  Tom Tromey  <tromey@redhat.com>
8722
8723         PR cli/15718
8724         * infcall.c: Include event-top.h.
8725         (run_inferior_call): Call async_disable_stdin if needed.
8726
8727 2014-03-20  Pedro Alves  <palves@redhat.com>
8728
8729         * infrun.c (prepare_to_proceed): Delete.
8730         (thread_still_needs_step_over): New function.
8731         (find_thread_needs_step_over): New function.
8732         (proceed): If the current thread needs a step-over, set its
8733         steping_over_breakpoint flag.  Adjust to use
8734         find_thread_needs_step_over instead of prepare_to_proceed.
8735         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8736         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8737         breakpoint.
8738         (switch_back_to_stepped_thread): Step over breakpoints of all
8739         threads not the stepping thread, before switching back to the
8740         stepping thread.
8741
8742 2014-03-20  Pedro Alves  <palves@redhat.com>
8743
8744         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8745         extern.
8746         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8747         * infrun.c (saved_singlestep_ptid)
8748         (stepping_past_singlestep_breakpoint): Delete.
8749         (resume): Remove stepping_past_singlestep_breakpoint handling.
8750         (proceed): Store the prev_pc of the stepping thread too.
8751         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8752         singlestep_pc.
8753         (enum infwait_states): Delete infwait_thread_hop_state.
8754         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8755         field.
8756         (handle_inferior_event): Adjust.
8757         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8758         handling and the thread-hop code.  Before removing single-step
8759         breakpoints, check whether the thread hit a single-step breakpoint
8760         of another thread.  If it did, the trap is not a random signal.
8761         (switch_back_to_stepped_thread): If the event thread hit a
8762         single-step breakpoint, unblock it before switching to the
8763         stepping thread.  Handle the case of the stepped thread having
8764         advanced already.
8765         (keep_going): Handle the case of the current thread moving past a
8766         single-step breakpoint.
8767
8768 2014-03-20  Pedro Alves  <palves@redhat.com>
8769
8770         PR breakpoints/7143
8771         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8772         are being stepped over.
8773         (breakpoint_address_match): Make extern.
8774         * breakpoint.h (breakpoint_address_match): New declaration.
8775         * inferior.h (stepping_past_instruction_at): New declaration.
8776         * infrun.c (struct step_over_info): New type.
8777         (step_over_info): New global.
8778         (set_step_over_info, clear_step_over_info)
8779         (stepping_past_instruction_at): New functions.
8780         (handle_inferior_event): Clear the step-over info when
8781         trap_expected is cleared.
8782         (resume): Remove now stale comment.
8783         (clear_proceed_status): Clear step-over info.
8784         (proceed): Adjust step-over handling to set or clear the step-over
8785         info instead of removing all breakpoints.
8786         (handle_signal_stop): When setting up a thread-hop, don't remove
8787         breakpoints here.
8788         (stop_stepping): Clear step-over info.
8789         (keep_going): Adjust step-over handling to set or clear step-over
8790         info and then always inserting breakpoints, instead of removing
8791         all breakpoints when stepping over one.
8792
8793 2014-03-20  Pedro Alves  <palves@redhat.com>
8794
8795         * infrun.c (previous_inferior_ptid): Adjust comment.
8796         (deferred_step_ptid): Delete.
8797         (infrun_thread_ptid_changed, prepare_to_proceed)
8798         (init_wait_for_inferior): Adjust.
8799         (handle_signal_stop): Delete deferred_step_ptid handling.
8800
8801 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8802
8803         PR gdb/15358
8804         * defs.h (sync_quit_force_run): New declaration.
8805         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8806         * event-top.c (async_sigterm_handler): New declaration.
8807         (async_sigterm_token): New variable.
8808         (async_init_signals): Create also async_sigterm_token.
8809         (async_sigterm_handler): New function.
8810         (sync_quit_force_run): New variable.
8811         (handle_sigterm): Replace quit_force call by other calls.
8812         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8813
8814 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8815
8816         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8817         offset into SPE pseudo registers.
8818
8819 2014-03-18  Pedro Alves  <palves@redhat.com>
8820
8821         PR gdb/13860
8822         * inferior.h (print_stop_event): Declare.
8823         * infrun.c (print_stop_event): New, factored out from ...
8824         (normal_stop): ... this.
8825         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8826         of bpstat_print/print_stack_frame.
8827
8828 2014-03-17  Tom Tromey  <tromey@redhat.com>
8829
8830         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8831
8832 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8833
8834         * ada-lang.c (decode_constrained_packed_array): Perform a
8835         minimal coercion for reference with coerce_ref instead of
8836         ada_coerce_ref.
8837
8838 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8839
8840         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8841         (darwin_solib_create_inferior_hook): Emit a warning if version
8842         is unhandled.
8843
8844 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8845
8846         * python/py-value.c (get_field_flag): Cast flag_name argument to
8847         PyObject_GetAttrString to support Python 2.4.
8848
8849 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8850
8851         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8852         (Global Maintainers): Remove Jan Kratochvil.
8853
8854 2014-03-14  Pedro Alves  <palves@redhat.com>
8855
8856         * inferior.h (terminal_ours_for_output): Rename to ...
8857         (child_terminal_ours_for_output): ... this.
8858         (terminal_save_ours): Rename to ...
8859         (child_terminal_save_ours): ... this.
8860         (terminal_ours): Rename to ...
8861         (child_terminal_ours): ... this.
8862         (terminal_inferior): Rename to ...
8863         (child_terminal_inferior): ... this.
8864         (terminal_init_inferior): Rename to ...
8865         (child_terminal_init_inferior): ... this.
8866         (terminal_init_inferior_with_pgrp): Rename to ...
8867         (child_terminal_init_inferior_with_pgrp): ... this.
8868         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8869         (child_terminal_init_with_pgrp): ... this.
8870         (terminal_save_ours): Rename to ...
8871         (child_terminal_save_ours): ... this.
8872         (terminal_init_inferior): Rename to ...
8873         (child_terminal_init): ... this.  Adjust.
8874         (terminal_inferior): Rename to ...
8875         (child_terminal_inferior): ... this.
8876         (terminal_ours_for_output): Rename to ...
8877         (child_terminal_ours_for_output): ... this.  Adjust.
8878         (terminal_ours): Rename to ...
8879         (child_terminal_ours): ... this.
8880         (terminal_ours_1): Rename to ...
8881         (child_terminal_ours_1): ... this.  Adjust.
8882         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8883         * windows-nat.c (do_initial_windows_stuff): Adjust.
8884         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8885         (gnu_terminal_init): ... this.  Adjust.
8886         (gnu_target): Adjust.
8887         * inf-child.c (inf_child_target): Adjust.
8888
8889 2014-03-13  Doug Evans  <xdje42@gmail.com>
8890
8891         PR guile/16612
8892         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8893         new eq?-hashtab.
8894
8895 2014-03-13  Doug Evans  <xdje42@gmail.com>
8896
8897         * value.c (record_latest_value): Call release_value_or_incref
8898         instead of release_value.
8899
8900 2014-03-13  Pedro Alves  <palves@redhat.com>
8901
8902         * procfs.c (procfs_target): Don't override to_shortname,
8903         to_longname or to_doc.
8904
8905 2014-03-13  Pedro Alves  <palves@redhat.com>
8906
8907         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8908         Unix in user visible strings.
8909
8910 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8911
8912         * gdbtypes.h: Annotate comments for Doxygen, add a page
8913         block comment with some general info.
8914
8915 2014-03-12  Pedro Alves  <palves@redhat.com>
8916
8917         * infcmd.c (prepare_execution_command): New function, factored out
8918         from several execution commands.
8919         (run_command_1, continue_command, step_1, jump_command)
8920         (signal_command, until_command, advance_command, finish_command)
8921         (attach_command): Use prepare_execution_command.
8922
8923 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8924
8925         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8926         (MAX_BPTS): Define.
8927         (MAX_WPTS): Define.
8928         (struct arm_linux_thread_points): Removed.
8929         (struct arm_linux_process_info): New.
8930         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8931         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8932         (arm_linux_find_breakpoints_by_tid): Removed.
8933         (struct arch_lwp_info): New.
8934         (arm_linux_find_process_pid): New functions.
8935         (arm_linux_add_process): New functions.
8936         (arm_linux_process_info_get): New functions.
8937         (arm_linux_forget_process): New function.
8938         (arm_linux_get_debug_reg_state): New function.
8939         (struct update_registers_data): New.
8940         (update_registers_callback): New function.
8941         (arm_linux_insert_hw_breakpoint1): Updated.
8942         (arm_linux_remove_hw_breakpoint1): Updated.
8943         (arm_linux_insert_hw_breakpoint): Updated.
8944         (arm_linux_remove_hw_breakpoint): Updated.
8945         (arm_linux_insert_watchpoint): Updated.
8946         (arm_linux_remove_watchpoint): Updated.
8947         (arm_linux_new_thread): Updated.
8948         (arm_linux_prepare_to_resume): New function.
8949         (arm_linux_new_fork): New function.
8950         (_initialize_arm_linux_nat): Updated.
8951
8952 2014-03-12  Pedro Alves  <palves@redhat.com>
8953
8954         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8955
8956 2014-03-12  Tom Tromey  <tromey@redhat.com>
8957
8958         * inf-child.c (return_zero): New function.
8959         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8960         * aix-thread.c (aix_thread_inferior_created): New function.
8961         (aix_thread_attach): Remove.
8962         (init_aix_thread_ops): Don't set to_attach.
8963         (_initialize_aix_thread): Register inferior_created observer.
8964         * corelow.c (init_core_ops): Don't set to_attach or
8965         to_create_inferior.
8966         * exec.c (init_exec_ops): Don't set to_attach or
8967         to_create_inferior.
8968         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8969         target calls.
8970         (attach_command): Use find_attach_target.  Make direct target
8971         calls.
8972         * record-btrace.c (init_record_btrace_ops): Don't set
8973         to_create_inferior.
8974         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8975         Remove.
8976         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8977         set to_create_inferior.
8978         * target.c (complete_target_initialization): Add assertion.
8979         (target_create_inferior): Remove.
8980         (find_default_attach, find_default_create_inferior): Remove.
8981         (find_attach_target, find_run_target): New functions.
8982         (find_default_is_async_p, find_default_can_async_p)
8983         (target_supports_non_stop, target_attach): Remove.
8984         (init_dummy_target): Don't set to_create_inferior or
8985         to_supports_non_stop.
8986         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8987         TARGET_DEFAULT_FUNC.
8988         <to_create_inferior>: Add comment.
8989         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8990         TARGET_DEFAULT_RETURN.
8991         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8992         (find_attach_target, find_run_target): Declare.
8993         (target_create_inferior): Remove.
8994         (target_has_execution_1): Update comment.
8995         (target_supports_non_stop): Remove.
8996         * target-delegates.c: Rebuild.
8997
8998 2014-03-12  Pedro Alves  <palves@redhat.com>
8999
9000         * inf-child.h: Update comment to not mention Unix.
9001
9002 2014-03-12  Pedro Alves  <palves@redhat.com>
9003
9004         * inf-child.c: Update top comment to not mention Unix.  Add
9005         generic comment describing how this target is meant to be used.
9006         (inf_child_post_attach, inf_child_post_startup_inferior)
9007         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9008         Unix in comment.
9009
9010 2014-03-12  Pedro Alves  <palves@redhat.com>
9011
9012         * nto-procfs.c: Include inf-child.h.
9013         (procfs_ops): Delete global.
9014         (procfs_can_run): Delete method.
9015         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9016         target pointer instead of referencing procfs_ops.
9017         (procfs_prepare_to_store): Delete.
9018         (init_procfs_ops): Delete function.
9019         (procfs_target): New function, based on init_procfs_ops, but
9020         inherit inf_child_target.
9021         (_initialize_procfs): Use procfs_target.
9022
9023 2014-03-12  Pedro Alves  <palves@redhat.com>
9024
9025         * windows-nat.c: Include inf-child.h.
9026         (windows_ops): Delete global.
9027         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9028         methods.
9029         (init_windows_ops): Delete function.
9030         (windows_target): New function, based on init_windows_ops, but
9031         inherit inf_child_target.
9032         (_initialize_windows_nat): Use windows_target.  Install x86
9033         specific target methods here.
9034
9035 2014-03-10  Doug Evans  <xdje42@gmail.com>
9036
9037         * guile/guile.c (call_initialize_gdb_module): New function.
9038         (initialize_guile): Replace call to scm_init_guile with call to
9039         scm_with_guile.
9040
9041 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9042
9043         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9044         in call to TYPE_CODE macro.
9045
9046 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9047
9048         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9049         Resolve tagged types to full view.
9050
9051 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9052
9053         * target.h (target_insert_breakpoint): Remove "hardware" from its
9054         comments.
9055
9056 2014-03-07  Doug Evans  <dje@google.com>
9057
9058         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9059
9060 2014-03-07  Doug Evans  <dje@google.com>
9061
9062         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9063         Remove unused local comp_dir_attr.  Assert exactly one of
9064         stub_comp_unit_die, stub_comp_dir is non-NULL.
9065
9066 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9067
9068         * target.h (complete_target_initialization, add_target):
9069         Add comment.
9070
9071 2014-03-07  Pedro Alves  <palves@redhat.com>
9072
9073         * go32-nat.c: Include inf-child.h.
9074         (go32_ops): Delete global.
9075         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9076         Delete methods.
9077         (go32_create_inferior): Push the passed in target pointer instead
9078         of referencing go32_ops.
9079         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9080         (go32_target): New function, based on init_go32_ops, but inherit
9081         inf_child_target.
9082         (_initialize_go32_nat): Use go32_target.  Move parts of
9083         init_go32_ops here.
9084
9085 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9086
9087         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9088         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9089         SYMBOL_VALUE_ADDRESS.
9090         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9091
9092 2014-03-06  Yao Qi  <yao@codesourcery.com>
9093
9094         * breakpoint.c (get_tracepoint_by_number): Remove argument
9095         optional_p.  All callers updated.  Adjust comments.  Update
9096         output message.
9097         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9098
9099 2014-03-06  Yao Qi  <yao@codesourcery.com>
9100
9101         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9102         early if get_number returns zero.  Use 'p' instead of 'args'.
9103
9104 2014-03-06  Yao Qi  <yao@codesourcery.com>
9105
9106         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9107         message.
9108
9109 2014-03-06  Yao Qi  <yao@codesourcery.com>
9110
9111         PR breakpoints/16508
9112         * tracepoint.c (check_trace_running): New function.
9113         (trace_find_command): Move code to check_trace_running and
9114         call check_trace_running.
9115         (trace_find_pc_command): Likewise.
9116         (trace_find_tracepoint_command): Likewise.
9117         (trace_find_line_command): Likewise.
9118         (trace_find_range_command): Likewise.
9119         * tracepoint.h (check_trace_running): Likewise.
9120         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9121
9122 2014-03-06  Yao Qi  <yao@codesourcery.com>
9123
9124         * target.h (struct target_ops) <to_traceframe_info>: Use
9125         TARGET_DEFAULT_NORETURN (tcomplain ()).
9126         * target-delegates.c: Regenerated.
9127
9128 2014-03-05  Pedro Alves  <palves@redhat.com>
9129
9130         PR gdb/16575
9131         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9132         void.  Update comment.
9133         (dcache_xfer_memory): Delete.
9134         (dcache_read_memory_partial): New, based on the read bits of
9135         dcache_xfer_memory.
9136         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9137         adjust.  Discard cache lines if the reason for the update was
9138         error.
9139         * dcache.h (dcache_xfer_memory): Delete declaration.
9140         (dcache_read_memory_partial): New declaration.
9141         (dcache_update): Update prototype.
9142         * target.c (raw_memory_xfer_partial): Update the dcache here.
9143         (memory_xfer_partial_1): Don't handle dcache writes here.
9144
9145 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9146
9147         * remote-sim.c (gdbsim_load): Add const to prog.
9148
9149 2014-03-03  Tom Tromey  <tromey@redhat.com>
9150
9151         * elfread.c (probe_key): Change to bfd_data.
9152         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9153         now per-BFD, not per-objfile.
9154         * stap-probe.c (stap_probe_destroy): Update comment.
9155         (handle_stap_probe): Allocate on the per-BFD obstack.
9156
9157 2014-03-03  Tom Tromey  <tromey@redhat.com>
9158
9159         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9160         * breakpoint.c (create_longjmp_master_breakpoint): Use
9161         get_probe_address.
9162         (add_location_to_breakpoint, bkpt_probe_insert_location)
9163         (bkpt_probe_remove_location): Update.
9164         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9165         * elfread.c (elf_symfile_relocate_probe): Remove.
9166         (elf_probe_fns): Update.
9167         (insert_exception_resume_breakpoint): Change type of "probe"
9168         parameter to bound_probe.
9169         (check_exception_resume): Update.
9170         * objfiles.c (objfile_relocate1): Don't relocate probes.
9171         * probe.c (bound_probe_s): New typedef.
9172         (parse_probes): Use get_probe_address.  Set sal's objfile.
9173         (find_probe_by_pc): Return a bound_probe.
9174         (collect_probes): Return a VEC(bound_probe_s).
9175         (compare_probes): Update.
9176         (gen_ui_out_table_header_info): Change type of "probes"
9177         parameter.  Update.
9178         (info_probes_for_ops): Update.
9179         (get_probe_address): New function.
9180         (probe_safe_evaluate_at_pc): Update.
9181         * probe.h (struct probe_ops) <get_probe_address>: New field.
9182         <set_semaphore, clear_semaphore>: Add objfile parameter.
9183         (struct probe) <objfile>: Remove field.
9184         <arch>: New field.
9185         <address>: Update comment.
9186         (struct bound_probe): New.
9187         (find_probe_by_pc): Return a bound_probe.
9188         (get_probe_address): Declare.
9189         * solib-svr4.c (struct probe_and_action) <address>: New field.
9190         (hash_probe_and_action, equal_probe_and_action): Update.
9191         (register_solib_event_probe): Add address parameter.
9192         (solib_event_probe_at): Update.
9193         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9194         get_probe_address.
9195         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9196         (stap_get_probe_address): New function.
9197         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9198         (compile_probe_arg): Update.
9199         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9200         address.
9201         (handle_stap_probe): Don't relocate the probe.
9202         (stap_relocate): Remove.
9203         (stap_gen_info_probes_table_values): Update.
9204         (stap_probe_ops): Remove stap_relocate.
9205         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9206         (debug_sym_probe_fns): Update.
9207         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9208         * symtab.c (init_sal): Use memset.
9209         * symtab.h (struct symtab_and_line) <objfile>: New field.
9210         * tracepoint.c (start_tracing, stop_tracing): Update.
9211
9212 2014-03-03  Tom Tromey  <tromey@redhat.com>
9213
9214         * probe.h (parse_probes, find_probe_by_pc)
9215         (find_probes_in_objfile): Fix comments.
9216
9217 2014-03-02  Doug Evans  <xdje42@gmail.com>
9218
9219         * infrun.c (handle_signal_stop): Replace test for
9220         TARGET_WAITKIND_STOPPED with an assert.
9221
9222 2014-03-02  Doug Evans  <xdje42@gmail.com>
9223
9224         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9225
9226 2014-03-02  Doug Evans  <xdje42@gmail.com>
9227
9228         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9229
9230 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9231
9232         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9233
9234 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9235
9236         * i386obsd-nat.c: Include "obsd-nat.h".
9237         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9238         add_target.
9239         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9240
9241 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9242
9243         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9244
9245 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9246
9247         * mips64obsd-nat.c: Include "obsd-nath".
9248         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9249         add_target
9250         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9251
9252 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9253
9254         * amd64obsd-nat.c: Include "obsd-nat,h.
9255         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9256         add_target.
9257         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9258
9259 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9260
9261         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9262         (find_overload_match): Update call to find_oload_champ.
9263         (find_oload_champ_namespace_loop): Likewise
9264
9265 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9266
9267         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9268
9269         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9270         * config/sparc/obsd64.mh: New file.
9271         * sparc64obsd-nat.c: New file.
9272
9273         * obsd-nat.h: New file.
9274         * obsd-nat.c: New file.
9275         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9276         (ALLDEPFILES): Add obsd-nat.c.
9277
9278 2014-02-28  Tom Tromey  <tromey@redhat.com>
9279
9280         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9281         * cli-out.h (cli_ui_out_impl): Now const.
9282         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9283         * ui-out.c (struct ui_out) <impl>: Now const.
9284         (default_ui_out_impl): Now const.
9285         (ui_out_new): Make 'impl' parameter const.
9286         * ui-out.h (ui_out_new): Update.
9287
9288 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9289
9290         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9291
9292 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9293
9294         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9295
9296 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9297
9298         Additional PR 8882 fix.
9299         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9300
9301 2014-02-27  Pedro Alves  <palves@redhat.com>
9302
9303         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9304         isn't set.
9305
9306 2014-02-27  Pedro Alves  <palves@redhat.com>
9307
9308         PR 12702
9309         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9310         * nat/linux-waitpid.c: Include string.h.
9311         (status_to_str): Moved here and made extern.
9312         * nat/linux-waitpid.h (status_to_str): New declaration.
9313
9314 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9315
9316         PR 12702
9317         * infrun.c (ptid_match): Move ...
9318         * common/ptid.c (ptid_match): ... here.
9319         * inferior.h (ptid_match): Move ...
9320         * common/ptid.h (ptid_match): ... here.
9321
9322 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9323
9324         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9325         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9326         gdb_target_obs.
9327
9328 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9329
9330         * obsd-tdep.c (obsd_auxv_parse): New function.
9331         (obsd_init_abi): Set auxv_parse.
9332
9333         * gdbarch.sh (auxv_parse): New.
9334         * gdbarch.h: Regenerated.
9335         * gdbarch.c: Regenerated.
9336         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9337
9338 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9339
9340         * guile/scm-value.c (gdbscm_history_append_x): New function.
9341         (value_functions): Add it.
9342
9343 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9344
9345         * dwarf2read.c (attr_value_as_address): New function.
9346         (dwarf2_find_base_address, read_call_site_scope): Use
9347         attr_value_as_address in place of DW_ADDR.
9348         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9349         the low and high addresses.  Slight rework of the handling
9350         of the high pc being a constant form, and limit it to
9351         DWARF verson 4 or higher.
9352         (dwarf2_record_block_ranges): Likewise.
9353         (read_partial_die): Likewise.
9354         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9355
9356 2014-02-26  Tom Tromey  <tromey@redhat.com>
9357
9358         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9359
9360 2014-02-26  Tom Tromey  <tromey@redhat.com>
9361
9362         * elfread.c (elf_read_minimal_symbols): Return early if
9363         minimal symbols have already been read.  Add "ei" parameter.
9364         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9365         * minsyms.c (prim_record_minimal_symbol_full): Update.
9366         * objfiles.h (struct objstats) <n_minsyms>: Move...
9367         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9368         * symmisc.c (print_objfile_statistics): Update.
9369
9370 2014-02-26  Tom Tromey  <tromey@redhat.com>
9371
9372         * elfread.c (elf_read_minimal_symbols): New function, from
9373         elf_symfile_read.
9374         (elf_symfile_read): Call it.
9375
9376 2014-02-26  Tom Tromey  <tromey@redhat.com>
9377
9378         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9379         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9380         (lookup_minimal_symbol_solib_trampoline)
9381         (lookup_minimal_symbol_by_pc_section_1)
9382         (lookup_minimal_symbol_and_objfile): Update.
9383         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9384         Don't allocate a minimal symbol if minsyms have already been read.
9385         (build_minimal_symbol_hash_tables): Update.
9386         (install_minimal_symbols): Do nothing if minsyms already read.
9387         Use the per-BFD obstack.
9388         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9389         * objfiles.c (allocate_objfile): Call
9390         terminate_minimal_symbol_table later.
9391         (have_minimal_symbols): Update.
9392         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9393         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9394         Move from struct objfile.
9395         <minsyms_read>: New field.
9396         (struct objfile) <msymbols, minimal_symbol_count,
9397         msymbol_hash, msymbol_demangled_hash>: Move.
9398         (ALL_OBJFILE_MSYMBOLS): Update.
9399         * symfile.c (read_symbols): Set minsyms_read.
9400         (reread_symbols): Update.
9401         * symmisc.c (dump_objfile, dump_msymbols): Update.
9402
9403 2014-02-26  Tom Tromey  <tromey@redhat.com>
9404
9405         * minsyms.c (msymbols_sort): Remove.
9406         * minsyms.h (msymbols_sort): Remove.
9407         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9408         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9409         * elfread.c (elf_symtab_read): Don't add section offsets.
9410         * xcoffread.c (record_minimal_symbol): Don't add section offset
9411         to minimal symbol address.
9412         * somread.c (text_offset, data_offset): Remove.
9413         (som_symtab_read): Don't add section offsets to minimal symbol
9414         addresses.
9415         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9416         Don't add section offsets to minimal symbols.
9417         * coffread.c (coff_symtab_read): Don't add section offsets
9418         to minimal symbol addresses.
9419         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9420         to minimal symbol addresses.
9421         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9422         section offset to minimal symbol addresses.
9423         * mdebugread.c (parse_partial_symbols): Don't add section
9424         offset to minimal symbol addresses.
9425         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9426         offset to minimal symbol addresses.
9427
9428 2014-02-26  Tom Tromey  <tromey@redhat.com>
9429
9430         * ada-lang.c (ada_main_name): Update.
9431         (ada_add_standard_exceptions): Update.
9432         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9433         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9434         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9435         * auxv.c (ld_so_xfer_auxv): Update.
9436         * avr-tdep.c (avr_scan_prologue): Update.
9437         * ax-gdb.c (gen_var_ref): Update.
9438         * blockframe.c (get_pc_function_start)
9439         (find_pc_partial_function_gnu_ifunc): Update.
9440         * breakpoint.c (create_overlay_event_breakpoint)
9441         (create_longjmp_master_breakpoint)
9442         (create_std_terminate_master_breakpoint)
9443         (create_exception_master_breakpoint): Update.
9444         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9445         * c-valprint.c (c_val_print): Update.
9446         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9447         * common/agent.c (agent_look_up_symbols): Update.
9448         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9449         * dwarf2loc.c (call_site_to_target_addr): Update.
9450         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9451         * elfread.c (elf_gnu_ifunc_record_cache)
9452         (elf_gnu_ifunc_resolve_by_got): Update.
9453         * findvar.c (default_read_var_value): Update.
9454         * frame.c (inside_main_func): Update.
9455         * frv-tdep.c (frv_frame_this_id): Update.
9456         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9457         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9458         Update.
9459         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9460         (hppa_hpux_find_dummy_bpaddr): Update.
9461         * hppa-tdep.c (hppa_symbol_address): Update.
9462         * infcmd.c (until_next_command): Update.
9463         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9464         Update.
9465         * linespec.c (minsym_found, add_minsym): Update.
9466         * linux-nat.c (get_signo): Update.
9467         * linux-thread-db.c (inferior_has_bug): Update.
9468         * m32c-tdep.c (m32c_return_value)
9469         (m32c_m16c_address_to_pointer): Update.
9470         * m32r-tdep.c (m32r_frame_this_id): Update.
9471         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9472         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9473         * maint.c (maintenance_translate_address): Update.
9474         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9475         (frob_address): New function.
9476         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9477         frob_address.  Rename parameter to "pc_in".
9478         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9479         addresses.
9480         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9481         Update.
9482         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9483         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9484         * objc-lang.c (find_objc_msgsend): Update.
9485         * objfiles.c (objfile_relocate1): Update.
9486         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9487         * p-valprint.c (pascal_val_print): Update.
9488         * parse.c (write_exp_msymbol): Update.
9489         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9490         (ppc_elfv2_skip_entrypoint): Update.
9491         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9492         * printcmd.c (build_address_symbolic, msym_info)
9493         (address_info): Update.
9494         * proc-service.c (ps_pglobal_lookup): Update.
9495         * psymtab.c (find_pc_sect_psymtab_closer)
9496         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9497         Change msymbol parameter to bound_minimal_symbol.
9498         * ravenscar-thread.c (get_running_thread_id): Update.
9499         * remote.c (remote_check_symbols): Update.
9500         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9501         address.
9502         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9503         * solib-dsbt.c (lm_base): Update.
9504         * solib-frv.c (lm_base, main_got): Update.
9505         * solib-irix.c (locate_base): Update.
9506         * solib-som.c (som_solib_create_inferior_hook)
9507         (link_map_start): Update.
9508         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9509         * solib-svr4.c (elf_locate_base, enable_break): Update.
9510         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9511         (flush_ea_cache): Update.
9512         * stabsread.c (define_symbol, scan_file_globals): Update.
9513         * stack.c (find_frame_funname): Update.
9514         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9515         (debug_qf_find_pc_sect_symtab): Update.
9516         * symfile.c (simple_read_overlay_table)
9517         (simple_overlay_update): Update.
9518         * symfile.h (struct quick_symbol_functions)
9519         <find_pc_sect_symtab>: Change type of msymbol to
9520         bound_minimal_symbol.
9521         * symmisc.c (dump_msymbols): Update.
9522         * symtab.c (find_pc_sect_symtab_via_partial)
9523         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9524         (search_symbols, print_msymbol_info): Update.
9525         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9526         (MSYMBOL_VALUE_ADDRESS): Redefine.
9527         (BMSYMBOL_VALUE_ADDRESS): New macro.
9528         * tracepoint.c (scope_info): Update.
9529         * tui/tui-disasm.c (tui_find_disassembly_address)
9530         (tui_get_begin_asm_address): Update.
9531         * valops.c (find_function_in_inferior): Update.
9532         * value.c (value_static_field, value_fn_field): Update.
9533
9534 2014-02-26  Tom Tromey  <tromey@redhat.com>
9535
9536         * ada-lang.c (ada_update_initial_language): Update.
9537         (ada_main_name, ada_has_this_exception_support): Update.
9538         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9539         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9540         * arm-tdep.c (arm_skip_stub): Update.
9541         * auxv.c (ld_so_xfer_auxv): Update.
9542         * avr-tdep.c (avr_scan_prologue): Update.
9543         * ax-gdb.c (gen_var_ref): Update.
9544         * breakpoint.c (struct breakpoint_objfile_data)
9545         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9546         type to bound_minimal_symbol.
9547         (create_overlay_event_breakpoint)
9548         (create_longjmp_master_breakpoint)
9549         (create_std_terminate_master_breakpoint)
9550         (create_exception_master_breakpoint): Update.
9551         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9552         * c-exp.y (classify_name): Update.
9553         * coffread.c (coff_symfile_read): Update.
9554         * common/agent.c (agent_look_up_symbols): Update.
9555         * d-lang.c (d_main_name): Update.
9556         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9557         * dec-thread.c (enable_dec_thread): Update.
9558         * dwarf2loc.c (call_site_to_target_addr): Update.
9559         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9560         * eval.c (evaluate_subexp_standard): Update.
9561         * findvar.c (struct minsym_lookup_data) <result>: Change type
9562         to bound_minimal_symbol.
9563         <objfile>: Remove.
9564         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9565         * frame.c (inside_main_func): Update.
9566         * frv-tdep.c (frv_frame_this_id): Update.
9567         * gcore.c (call_target_sbrk): Update.
9568         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9569         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9570         Update.
9571         * go-lang.c (go_main_name): Update.
9572         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9573         (hppa_hpux_find_import_stub_for_addr): Update.
9574         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9575         Update.  Change return type.
9576         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9577         type.
9578         * jit.c (jit_breakpoint_re_set_internal): Update.
9579         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9580         Update.
9581         * linux-nat.c (get_signo): Update.
9582         * linux-thread-db.c (inferior_has_bug): Update
9583         * m32c-tdep.c (m32c_return_value)
9584         (m32c_m16c_address_to_pointer): Update.
9585         * m32r-tdep.c (m32r_frame_this_id): Update.
9586         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9587         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9588         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9589         lookup_minimal_symbol.  Change return type.
9590         (lookup_minimal_symbol): Remove.
9591         (lookup_bound_minimal_symbol): Update.
9592         (lookup_minimal_symbol_text): Change return type.
9593         (lookup_minimal_symbol_solib_trampoline): Change return type.
9594         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9595         (lookup_minimal_symbol_solib_trampoline): Change return type.
9596         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9597         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9598         (value_nsstring, find_imps): Update.
9599         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9600         * p-lang.c (pascal_main_name): Update.
9601         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9602         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9603         * proc-service.c (ps_pglobal_lookup): Update.
9604         * ravenscar-thread.c (get_running_thread_msymbol): Change
9605         return type.
9606         (has_ravenscar_runtime, get_running_thread_id): Update.
9607         * remote.c (remote_check_symbols): Update.
9608         * sol-thread.c (ps_pglobal_lookup): Update.
9609         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9610         * solib-dsbt.c (lm_base): Update.
9611         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9612         Update.
9613         * solib-irix.c (locate_base): Update.
9614         * solib-som.c (som_solib_create_inferior_hook)
9615         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9616         Update.
9617         * solib-spu.c (spu_enable_break): Update.
9618         * solib-svr4.c (elf_locate_base, enable_break): Update.
9619         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9620         (flush_ea_cache): Update.
9621         * stabsread.c (define_symbol): Update.
9622         * symfile.c (simple_read_overlay_table): Update.
9623         * symtab.c (find_pc_sect_line): Update.
9624         * tracepoint.c (scope_info): Update.
9625         * tui-disasm.c (tui_get_begin_asm_address): Update.
9626         * value.c (value_static_field): Update.
9627
9628 2014-02-26  Tom Tromey  <tromey@redhat.com>
9629
9630         * minsyms.c (prim_record_minimal_symbol_full): Use
9631         SET_MSYMBOL_VALUE_ADDRESS.
9632         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9633         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9634         SET_MSYMBOL_VALUE_ADDRESS.
9635         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9636         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9637
9638 2014-02-26  Tom Tromey  <tromey@redhat.com>
9639
9640         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9641         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9642         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9643         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9644         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9645         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9646         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9647         * ada-lang.c (ada_main_name): Update.
9648         (ada_lookup_simple_minsym): Update.
9649         (ada_make_symbol_completion_list): Update.
9650         (ada_add_standard_exceptions): Update.
9651         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9652         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9653         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9654         * arm-tdep.c (skip_prologue_function): Update.
9655         (arm_skip_stack_protector, arm_skip_stub): Update.
9656         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9657         (arm_wince_skip_main_prologue): Update.
9658         * auxv.c (ld_so_xfer_auxv): Update.
9659         * avr-tdep.c (avr_scan_prologue): Update.
9660         * ax-gdb.c (gen_var_ref): Update.
9661         * block.c (call_site_for_pc): Update.
9662         * blockframe.c (get_pc_function_start): Update.
9663         (find_pc_partial_function_gnu_ifunc): Update.
9664         * breakpoint.c (create_overlay_event_breakpoint): Update.
9665         (create_longjmp_master_breakpoint): Update.
9666         (create_std_terminate_master_breakpoint): Update.
9667         (create_exception_master_breakpoint): Update.
9668         (resolve_sal_pc): Update.
9669         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9670         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9671         Update.
9672         * c-valprint.c (c_val_print): Update.
9673         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9674         * coffread.c (coff_symfile_read): Update.
9675         * common/agent.c (agent_look_up_symbols): Update.
9676         * dbxread.c (find_stab_function_addr): Update.
9677         (end_psymtab): Update.
9678         * dwarf2loc.c (call_site_to_target_addr): Update.
9679         (func_verify_no_selftailcall): Update.
9680         (tailcall_dump): Update.
9681         (call_site_find_chain_1): Update.
9682         (dwarf_expr_reg_to_entry_parameter): Update.
9683         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9684         (elf_gnu_ifunc_resolve_by_got): Update.
9685         * f-valprint.c (info_common_command): Update.
9686         * findvar.c (read_var_value): Update.
9687         * frame.c (get_prev_frame_1): Update.
9688         (inside_main_func): Update.
9689         * frv-tdep.c (frv_skip_main_prologue): Update.
9690         (frv_frame_this_id): Update.
9691         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9692         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9693         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9694         (gnuv3_skip_trampoline): Update.
9695         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9696         (hppa64_hpux_in_solib_call_trampoline): Update.
9697         (hppa_hpux_skip_trampoline_code): Update.
9698         (hppa64_hpux_search_dummy_call_sequence): Update.
9699         (hppa_hpux_find_import_stub_for_addr): Update.
9700         (hppa_hpux_find_dummy_bpaddr): Update.
9701         * hppa-tdep.c (hppa_symbol_address)
9702         (hppa_lookup_stub_minimal_symbol): Update.
9703         * i386-tdep.c (i386_skip_main_prologue): Update.
9704         (i386_pe_skip_trampoline_code): Update.
9705         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9706         * infcall.c (get_function_name): Update.
9707         * infcmd.c (until_next_command): Update.
9708         * jit.c (jit_breakpoint_re_set_internal): Update.
9709         (jit_inferior_init): Update.
9710         * linespec.c (minsym_found): Update.
9711         (add_minsym): Update.
9712         * linux-fork.c (info_checkpoints_command): Update.
9713         * linux-nat.c (get_signo): Update.
9714         * linux-thread-db.c (inferior_has_bug): Update.
9715         * m32c-tdep.c (m32c_return_value): Update.
9716         (m32c_m16c_address_to_pointer): Update.
9717         (m32c_m16c_pointer_to_address): Update.
9718         * m32r-tdep.c (m32r_frame_this_id): Update.
9719         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9720         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9721         * maint.c (maintenance_translate_address): Update.
9722         * minsyms.c (add_minsym_to_hash_table): Update.
9723         (add_minsym_to_demangled_hash_table): Update.
9724         (msymbol_objfile): Update.
9725         (lookup_minimal_symbol): Update.
9726         (iterate_over_minimal_symbols): Update.
9727         (lookup_minimal_symbol_text): Update.
9728         (lookup_minimal_symbol_by_pc_name): Update.
9729         (lookup_minimal_symbol_solib_trampoline): Update.
9730         (lookup_minimal_symbol_by_pc_section_1): Update.
9731         (lookup_minimal_symbol_and_objfile): Update.
9732         (prim_record_minimal_symbol_full): Update.
9733         (compare_minimal_symbols): Update.
9734         (compact_minimal_symbols): Update.
9735         (build_minimal_symbol_hash_tables): Update.
9736         (install_minimal_symbols): Update.
9737         (terminate_minimal_symbol_table): Update.
9738         (find_solib_trampoline_target): Update.
9739         (minimal_symbol_upper_bound): Update.
9740         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9741         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9742         (mips_skip_pic_trampoline_code): Update.
9743         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9744         * objc-lang.c (selectors_info): Update.
9745         (classes_info): Update.
9746         (find_methods): Update.
9747         (find_imps): Update.
9748         (find_objc_msgsend): Update.
9749         * objfiles.c (objfile_relocate1): Update.
9750         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9751         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9752         * p-valprint.c (pascal_val_print): Update.
9753         * parse.c (write_exp_msymbol): Update.
9754         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9755         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9756         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9757         * printcmd.c (build_address_symbolic): Update.
9758         (sym_info): Update.
9759         (address_info): Update.
9760         * proc-service.c (ps_pglobal_lookup): Update.
9761         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9762         (find_pc_sect_psymtab): Update.
9763         * python/py-framefilter.c (py_print_frame): Update.
9764         * ravenscar-thread.c (get_running_thread_id): Update.
9765         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9766         Update.
9767         * remote.c (remote_check_symbols): Update.
9768         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9769         (rs6000_skip_trampoline_code): Update.
9770         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9771         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9772         * solib-dsbt.c (lm_base): Update.
9773         * solib-frv.c (lm_base): Update.
9774         (main_got): Update.
9775         * solib-irix.c (locate_base): Update.
9776         * solib-som.c (som_solib_create_inferior_hook): Update.
9777         (som_solib_desire_dynamic_linker_symbols): Update.
9778         (link_map_start): Update.
9779         * solib-spu.c (spu_enable_break): Update.
9780         (ocl_enable_break): Update.
9781         * solib-svr4.c (elf_locate_base): Update.
9782         (enable_break): Update.
9783         * spu-tdep.c (spu_get_overlay_table): Update.
9784         (spu_catch_start): Update.
9785         (flush_ea_cache): Update.
9786         * stabsread.c (define_symbol): Update.
9787         (scan_file_globals): Update.
9788         * stack.c (find_frame_funname): Update.
9789         (frame_info): Update.
9790         * symfile.c (simple_read_overlay_table): Update.
9791         (simple_overlay_update): Update.
9792         * symmisc.c (dump_msymbols): Update.
9793         * symtab.c (fixup_section): Update.
9794         (find_pc_sect_line): Update.
9795         (skip_prologue_sal): Update.
9796         (search_symbols): Update.
9797         (print_msymbol_info): Update.
9798         (rbreak_command): Update.
9799         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9800         (completion_list_objc_symbol): Update.
9801         (default_make_symbol_completion_list_break_on): Update.
9802         * tracepoint.c (scope_info): Update.
9803         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9804         (tui_get_begin_asm_address): Update.
9805         * valops.c (find_function_in_inferior): Update.
9806         * value.c (value_static_field): Update.
9807         (value_fn_field): Update.
9808
9809 2014-02-26  Tom Tromey  <tromey@redhat.com>
9810
9811         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9812         bound minimal symbols.  Move code that knows about minsym
9813         table layout...
9814         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9815         function.
9816         * minsyms.h (minimal_symbol_upper_bound): Declare.
9817         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9818         minimal_symbol_upper_bound.
9819
9820 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9821
9822         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9823         Use the type's name if its basic type does not have a tag.
9824
9825 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9826
9827         * dwarf2read.c (read_subrange_type): Add comment.
9828
9829 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9830
9831         * dwarf2read.c (update_enumeration_type_from_children): New
9832         function, mostly extracted from process_structure_scope.
9833         (read_enumeration_type): Call update_enumeration_type_from_children.
9834         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9835         and flag_flag_enum fields.
9836
9837 2014-02-26  Pedro Alves  <palves@redhat.com>
9838
9839         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9840         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9841         to_xfer_partial method.
9842
9843 2014-02-26  Pedro Alves  <palves@redhat.com>
9844
9845         * target.c (complete_target_initialization): Don't install
9846         default_xfer_partial as to_xfer_partial hook.
9847         (nomemory): Delete.
9848         (update_current_target): Don't INHERIT nor de_fault
9849         deprecated_xfer_memory.  Delete de_fault macro.
9850         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9851         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9852         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9853         field.
9854
9855 2014-02-26  Pedro Alves  <palves@redhat.com>
9856
9857         * go32-nat.c (my_write_child): New function.
9858         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9859         (go32_xfer_partial): New function.
9860         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9861         Instead install a to_xfer_partial hook.
9862
9863 2014-02-26  Pedro Alves  <palves@redhat.com>
9864
9865         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9866         to_xfer_partial helper.  Rewrite.
9867         (procfs_xfer_partial): New function.
9868         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9869         Install a to_xfer_partial hook.
9870
9871 2014-02-26  Pedro Alves  <palves@redhat.com>
9872
9873         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9874         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9875         (m32r_xfer_partial): New function.
9876         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9877         Install a to_xfer_partial hook.
9878
9879 2014-02-26  Pedro Alves  <palves@redhat.com>
9880
9881         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9882         helper.
9883         (mips_xfer_partial): New function.
9884         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9885         hook.  Install a to_xfer_partial hook.
9886
9887 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9888
9889         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9890         * gdbtypes.c (create_array_type_with_stride): New function,
9891         renaming create_array_type, but with an added parameter
9892         called "bit_stride".
9893         (create_array_type): Re-implement using
9894         create_array_type_with_stride.
9895         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9896         and DW_AT_bit_stride attributes.
9897
9898 2014-02-26  Pedro Alves  <palves@redhat.com>
9899
9900         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9901         task-specific breakpoints.
9902
9903 2014-02-25  Pedro Alves  <palves@redhat.com>
9904
9905         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9906         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9907
9908 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9909
9910         * defs.h: Annotate comments for Doxygen.
9911
9912 2014-02-25  Tom Tromey  <tromey@redhat.com>
9913
9914         * target.h (target_ignore): Don't declare.
9915         * target.c (target_ignore): Remove.
9916
9917 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9918
9919         PR gdb/16626
9920         * auto-load.c (auto_load_objfile_script_1): Change filename to
9921         debugfile.
9922
9923 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9924
9925         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9926         documentation.  Adjust prototype to match the target_ops
9927         to_xfer_partial method.  Adjust implementation accordingly.
9928
9929 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9930
9931         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9932         to_traceframe_info.
9933
9934 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9935
9936         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9937         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9938         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9939         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9940         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9941         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9942         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9943         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9944         New constants.
9945         (rl78_register_type): Use a data pointer type for SP and
9946         new pseudo registers mentioned above.  Use a 16 bit integer
9947         type for all other register pairs.
9948         (rl78_register_name, rl78_g10_register_name): Update for
9949         new pseudo registers.
9950         (rl78_pseudo_register_read): Likewise.
9951         (rl78_pseudo_register_write): Likewise.
9952         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9953         to the newly added pseudo registers.
9954
9955 2014-02-24  Doug Evans  <dje@google.com>
9956
9957         * value.c (record_latest_value): Fix comment.
9958         * printcmd.c (print_command_1): Remove code to handle -1 return from
9959         record_latest_value.
9960
9961 2014-02-24  Pedro Alves  <palves@redhat.com>
9962
9963         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9964         deprecated_xfer_memory hook.
9965         (procfs_xfer_partial): Call procfs_xfer_memory instead
9966         of the deprecated_xfer_memory target hook.
9967         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9968         helper.
9969
9970 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9971
9972         * windows-nat.c (windows_xfer_shared_libraries): Return
9973         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9974         requested object is TARGET_OBJECT_LIBRARIES.
9975
9976 2014-02-24  Yao Qi  <yao@codesourcery.com>
9977
9978         * target.h (enum target_xfer_status)
9979         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9980         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9981         explicitly.  New.
9982         * corefile.c (memory_error_message): User updated.
9983         * exec.c (section_table_read_available_memory): Likewise.
9984         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9985         * target.c (target_xfer_status_to_string): Likewise.
9986         (raw_memory_xfer_partial): Likewise.
9987         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9988         * valops.c (read_value_memory): Likewise.
9989         * exec.h: Update comments.
9990
9991 2014-02-24  Yao Qi  <yao@codesourcery.com>
9992
9993         * target.c (target_xfer_status_to_string): Rename argument err
9994         to status.
9995         * target.h (target_xfer_status_to_string): Update declaration.
9996         Replace target_xfer_error_to_string with
9997         target_xfer_status_to_string in comment.
9998
9999 2014-02-24  Yao Qi  <yao@codesourcery.com>
10000
10001         * mips-linux-nat.c (super_close): Update its type.
10002         (mips_linux_close): Pass 'self' to super_close.
10003
10004 2014-02-24  Yao Qi  <yao@codesourcery.com>
10005
10006         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10007         * corefile.c (read_memory): Adjusted.
10008         * target.c (target_write_with_progress): Adjusted.
10009
10010 2014-02-23  Yao Qi  <yao@codesourcery.com>
10011
10012         Revert two patches:
10013
10014         2013-10-25  Yao Qi  <yao@codesourcery.com>
10015
10016         * remote.c (remote_traceframe_info): Return early if
10017         traceframe is not selected.
10018
10019         2013-07-19  Yao Qi  <yao@codesourcery.com>
10020
10021         * target.c (update_current_target): Change the default action
10022         of 'to_traceframe_info' from tcomplain to return_zero.
10023         * target.h (struct target_ops) <to_traceframe_info>: Add more
10024         comments.
10025
10026 2014-02-23  Yao Qi  <yao@codesourcery.com>
10027
10028         * valops.c (read_value_memory): Rewrite it.  Call
10029         target_xfer_partial in a loop.
10030         * exec.h (section_table_available_memory): Remove declaration.
10031         Move comments to ...
10032         * exec.c (section_table_available_memory): ... here.  Make it
10033         static.
10034
10035 2014-02-23  Yao Qi  <yao@codesourcery.com>
10036
10037         * exec.c (section_table_read_available_memory): New function.
10038         * exec.h (section_table_read_available_memory): Declare.
10039         * ctf.c (ctf_xfer_partial): Call
10040         section_table_read_available_memory.
10041         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10042
10043 2014-02-23  Yao Qi  <yao@codesourcery.com>
10044
10045         * ctf.c (ctf_xfer_partial): Move code to ...
10046         * exec.c (exec_read_partial_read_only): ... it.  New function.
10047         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10048         * tracefile.c: Include "exec.h".
10049         * exec.h (exec_read_partial_read_only): Declare.
10050
10051 2014-02-23  Yao Qi  <yao@codesourcery.com>
10052
10053         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10054         (tfile_has_memory): Remove.
10055         (init_tfile_ops): Don't set fields to_has_all_memory and
10056         to_has_memory of tfile_ops.
10057         * tracefile.c (tracefile_has_all_memory): New function.
10058         (tracefile_has_memory): New function.
10059         (init_tracefile_ops): Initialize fields to_has_all_memory and
10060         to_has_memory of 'ops'.
10061
10062 2014-02-23  Yao Qi  <yao@codesourcery.com>
10063
10064         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10065         (ctf_thread_alive, ctf_get_trace_status): Remove.
10066         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10067         init_tracefile_ops.
10068         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10069         (tfile_has_stack, tfile_has_registers): Remove.
10070         (tfile_thread_alive): Remove.
10071         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10072         init_tracefile_ops.
10073         * tracefile.c (tracefile_has_stack): New function.
10074         (tracefile_has_registers): New function.
10075         (tracefile_thread_alive): New function.
10076         (tracefile_get_trace_status): New function.
10077         (init_tracefile_ops): New function.
10078         * tracefile.h (init_tracefile_ops): Declare.
10079
10080 2014-02-23  Yao Qi  <yao@codesourcery.com>
10081
10082         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10083         (O_LARGEFILE): Likewise.
10084         (tfile_ops): Likewise.
10085         (TRACE_HEADER_SIZE): Likewise.
10086         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10087         (cur_data_size): Likewise.
10088         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10089         (tfile_close, tfile_files_info): Likewise.
10090         (tfile_get_trace_status): Likewise.
10091         (tfile_get_tracepoint_status): Likewise.
10092         (tfile_get_traceframe_address): Likewise.
10093         (tfile_trace_find, match_blocktype): Likewise.
10094         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10095         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10096         (tfile_get_trace_state_variable_value): Likewise.
10097         (tfile_has_all_memory, tfile_has_memory): Likewise.
10098         (tfile_has_stack, tfile_has_registers): Likewise.
10099         (tfile_thread_alive, build_traceframe_info): Likewise.
10100         (tfile_traceframe_info, init_tfile_ops): Likewise.
10101         (_initialize_tracepoint): Don't call init_tfile_ops
10102         and add_target_with_completer.
10103         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10104         exec.h, completer.h and filenames.h.
10105         (_initialize_tracefile_tfile): New function.
10106
10107 2014-02-23  Yao Qi  <yao@codesourcery.com>
10108
10109         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10110         tracefile-tfile.o.
10111         (HFILES_NO_SRCDIR): Add tracefile.h.
10112         * ctf.c: Include "tracefile.h".
10113         * tracefile.h: New file.
10114         * tracefile.c: New file
10115         * tracefile-tfile.c: New file.
10116         * tracepoint.c: Include "tracefile.h".
10117         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10118         (stop_reason_names): Add const.
10119         (trace_file_writer_xfree): Move it to tracefile.c.
10120         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10121         (trace_save_ctf): Likewise.
10122         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10123         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10124         (tfile_write_header, tfile_write_regblock_type): Likewise.
10125         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10126         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10127         (tfile_write_raw_data, tfile_end): Likewise.
10128         (tfile_trace_file_writer_new): Likewise.
10129         (free_uploaded_tp): Make it extern.
10130         (free_uploaded_tsv): Make it extern.
10131         (_initialize_tracepoint): Move code to register command 'tsave'
10132         to tracefile.c.
10133         * tracepoint.h (stop_reason_names): Declare.
10134         (struct trace_frame_write_ops): Move it to tracefile.h.
10135         (struct trace_file_write_ops): Likewise.
10136         (struct trace_file_writer): Likewise.
10137         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10138
10139 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10140
10141         PR gdb/16594
10142         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10143         process name.
10144         (get_cores_used_by_process): New parameter num_cores, use it.
10145         (linux_xfer_osdata_processes): Pass num_cores to it.
10146         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10147         process name.
10148
10149 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10150
10151         * target.c (memory_xfer_partial): Fix length arg in call to
10152         breakpoint_xfer_memory.
10153
10154 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10155
10156         PR tdep/16397
10157         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10158         number comes after the + or - signs.  Adjust length of register
10159         name to be extracted.
10160
10161 2014-02-20  Tom Tromey  <tromey@redhat.com>
10162
10163         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10164         (ada_varobj_ops): Mark "extern".
10165
10166 2014-02-20  Tom Tromey  <tromey@redhat.com>
10167
10168         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10169
10170 2014-02-20  Doug Evans  <xdje42@gmail.com>
10171
10172         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10173         All callers updated.
10174         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10175         All callers updated.
10176         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10177         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10178
10179 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10180             Joel Brobecker  <brobecker@adacore.com>
10181             Doug Evans  <xdje42@gmail.com>
10182
10183         PR symtab/16581
10184         * dwarf2read.c (struct die_info): New member in_process.
10185         (reset_die_in_process): New function.
10186         (process_die): Set it at the start, reset when returning.
10187         (inherit_abstract_dies): Only call process_die if origin_child_die
10188         not already being processed.
10189
10190 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10191
10192         * windows-nat.c (handle_unload_dll): Add function documentation.
10193         (do_initial_windows_stuff): Add comment explaining why we wait
10194         until after inferior initialization has finished before
10195         processing all DLLs.
10196
10197 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10198
10199         * windows-nat.c (get_module_name): Delete.
10200         (windows_get_exec_module_filename): New function, mostly
10201         inspired from get_module_name.
10202         (windows_pid_to_exec_file): Replace call to get_module_name
10203         by call to windows_get_exec_module_filename.
10204
10205 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10206
10207         * windows-nat.c (handle_load_dll): Rewrite this function's
10208         introductory comment.  Remove code using get_module_name
10209         to get the DLL's name.
10210
10211 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10212
10213         * windows-nat.c (get_windows_debug_event): Ignore
10214         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10215         if windows_initialization_done == 0.
10216         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10217         Adjust implementation to always load all DLLs.
10218         (do_initial_windows_stuff): Replace call to
10219         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10220
10221 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10222
10223         * windows-nat.c (_initialize_windows_nat): Deprecate the
10224         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10225         and "assf" aliases into commands, and deprecate them as well.
10226         * NEWS: Add entry explaining that "dll-symbols" and its two
10227         aliases are now deprecated.
10228
10229 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10230
10231         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10232         new-line in debug string.  Remove trailing spaces.
10233
10234 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10235
10236         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10237
10238 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10239
10240         * NEWS: Add entry for the new feature
10241         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10242         and class values.
10243
10244 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10245
10246         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10247
10248 2014-02-19  Pedro Alves  <palves@redhat.com>
10249
10250         * common/ptid.h (struct ptid): Mention that process_stratum
10251         targets should prefer ptid.lwp.
10252
10253 2014-02-19  Pedro Alves  <palves@redhat.com>
10254
10255         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10256         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10257         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10258         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10259         store remote thread ids rather than ptid.tid.
10260         (_initialize_remote): Adjust.
10261
10262 2014-02-19  Tom Tromey  <tromey@redhat.com>
10263
10264         * target.c (target_get_unwinder): Rewrite.
10265         (target_get_tailcall_unwinder): Rewrite.
10266         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10267         (record_btrace_to_get_tailcall_unwinder): New function.
10268         (init_record_btrace_ops): Update.
10269         * target.h (struct target_ops) <to_get_unwinder,
10270         to_get_tailcall_unwinder>: Now function pointers.  Use
10271         TARGET_DEFAULT_RETURN.
10272
10273 2014-02-19  Tom Tromey  <tromey@redhat.com>
10274
10275         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10276         argument.
10277         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10278
10279 2014-02-19  Tom Tromey  <tromey@redhat.com>
10280
10281         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10282         directly.
10283         * target-delegates.c: Rebuild.
10284         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10285         TARGET_DEFAULT_FUNC.
10286         * target.c (default_target_decr_pc_after_break): Rename from
10287         forward_target_decr_pc_after_break.  Simplify.
10288         (target_decr_pc_after_break): Rely on delegation.
10289
10290 2014-02-19  Tom Tromey  <tromey@redhat.com>
10291
10292         * target.c (update_current_target): Do not INHERIT to_doc or
10293         to_magic.  Do not de_fault to_open or to_close.
10294
10295 2014-02-19  Tom Tromey  <tromey@redhat.com>
10296
10297         * gcore.h (objfile_find_memory_regions): Declare.
10298         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10299         "self" argument.
10300         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10301         * exec.c: Include gcore.h.
10302         (exec_set_find_memory_regions): Remove.
10303         (exec_find_memory_regions): Remove.
10304         (exec_do_find_memory_regions): Remove.
10305         (init_exec_ops): Update.
10306         * defs.h (exec_set_find_memory_regions): Remove.
10307
10308 2014-02-19  Tom Tromey  <tromey@redhat.com>
10309
10310         * target-delegates.c: Rebuild.
10311         * target.h (struct target_ops) <to_extra_thread_info,
10312         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10313         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10314         not 0, in TARGET_DEFAULT_RETURN.
10315
10316 2014-02-19  Tom Tromey  <tromey@redhat.com>
10317
10318         * target.c (complete_target_initialization): Remove casts.  Use
10319         return_zero_has_execution.
10320         (return_zero): Add "ignore" argument.
10321         (return_zero_has_execution): New function.
10322         (init_dummy_target): Remove casts.  Use
10323         return_zero_has_execution.
10324
10325 2014-02-19  Tom Tromey  <tromey@redhat.com>
10326
10327         * target.c (update_current_target): Update comments.  Do not
10328         INHERIT to_stratum.
10329
10330 2014-02-19  Tom Tromey  <tromey@redhat.com>
10331
10332         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10333         needed.
10334         * corelow.c (core_read_description): Delegate when needed.
10335         * remote.c (remote_read_description): Delegate when needed.
10336         * target-delegates.c: Rebuild.
10337         * target.c (target_read_description): Rewrite.
10338         * target.h (struct target_ops) <to_read_description>: Update
10339         comment.  Use TARGET_DEFAULT_RETURN.
10340
10341 2014-02-19  Tom Tromey  <tromey@redhat.com>
10342
10343         * target-delegates.c: Rebuild.
10344         * target.c (update_current_target): Don't inherit or default
10345         to_can_run.
10346         (find_default_run_target): Check against delegate_can_run.
10347         * target.h (struct target_ops) <to_can_run>: Use
10348         TARGET_DEFAULT_RETURN.
10349
10350 2014-02-19  Tom Tromey  <tromey@redhat.com>
10351
10352         * target-delegates.c: Rebuild.
10353         * target.c (target_disconnect): Unconditionally delegate.
10354         * target.h (struct target_ops) <to_disconnect>: Use
10355         TARGET_DEFAULT_NORETURN.
10356
10357 2014-02-19  Tom Tromey  <tromey@redhat.com>
10358
10359         * record.c (record_stop): Unconditionally delegate.
10360         * target-delegates.c: Rebuild.
10361         * target.c (target_stop_recording): Unconditionally delegate.
10362         * target.h (struct target_ops) <to_stop_recording>: Use
10363         TARGET_DEFAULT_IGNORE.
10364
10365 2014-02-19  Tom Tromey  <tromey@redhat.com>
10366
10367         * target-delegates.c: Rebuild.
10368         * target.c (target_enable_btrace): Unconditionally delegate.
10369         * target.h (struct target_ops) <to_enable_btrace>: Use
10370         TARGET_DEFAULT_NORETURN.
10371
10372 2014-02-19  Tom Tromey  <tromey@redhat.com>
10373
10374         * target-delegates.c: Rebuild.
10375         * target.c (target_read_btrace): Unconditionally delegate.
10376         * target.h (struct target_ops) <to_read_btrace>: Use
10377         TARGET_DEFAULT_NORETURN.
10378
10379 2014-02-19  Tom Tromey  <tromey@redhat.com>
10380
10381         * target-delegates.c: Rebuild.
10382         * target.c (target_teardown_btrace): Unconditionally delegate.
10383         * target.h (struct target_ops) <to_teardown_btrace>: Use
10384         TARGET_DEFAULT_NORETURN.
10385
10386 2014-02-19  Tom Tromey  <tromey@redhat.com>
10387
10388         * target-delegates.c: Rebuild.
10389         * target.c (target_disable_btrace): Unconditionally delegate.
10390         * target.h (struct target_ops) <to_disable_btrace>: Use
10391         TARGET_DEFAULT_NORETURN.
10392
10393 2014-02-19  Tom Tromey  <tromey@redhat.com>
10394
10395         * target-delegates.c: Rebuild.
10396         * target.c (default_search_memory): New function.
10397         (simple_search_memory): Update comment.
10398         (target_search_memory): Unconditionally delegate.
10399         * target.h (struct target_ops) <to_search_memory>: Use
10400         TARGET_DEFAULT_FUNC.
10401
10402 2014-02-19  Tom Tromey  <tromey@redhat.com>
10403
10404         * auxv.c (default_auxv_parse): No longer static.
10405         (target_auxv_parse): Unconditionally delegate.
10406         * auxv.h (default_auxv_parse): Declare.
10407         * target-delegates.c: Rebuild.
10408         * target.c: Include auxv.h.
10409         * target.h (struct target_ops) <to_auxv_parse>: Use
10410         TARGET_DEFAULT_FUNC.
10411
10412 2014-02-19  Tom Tromey  <tromey@redhat.com>
10413
10414         * target-delegates.c: Rebuild.
10415         * target.c (target_memory_map): Unconditionally delegate.
10416         * target.h (struct target_ops) <to_memory_map>: Use
10417         TARGET_DEFAULT_RETURN.
10418
10419 2014-02-19  Tom Tromey  <tromey@redhat.com>
10420
10421         * target-delegates.c: Rebuild.
10422         * target.c (target_thread_alive): Unconditionally delegate.
10423         * target.h (struct target_ops) <to_thread_alive>: Use
10424         TARGET_DEFAULT_RETURN.
10425
10426 2014-02-19  Tom Tromey  <tromey@redhat.com>
10427
10428         * target-delegates.c: Rebuild.
10429         * target.c (target_save_record): Unconditionally delegate.
10430         * target.h (struct target_ops) <to_save_record>: Use
10431         TARGET_DEFAULT_NORETURN.
10432
10433 2014-02-19  Tom Tromey  <tromey@redhat.com>
10434
10435         * target-delegates.c: Rebuild.
10436         * target.c (target_delete_record): Unconditionally delegate.
10437         * target.h (struct target_ops) <to_delete_record>: Use
10438         TARGET_DEFAULT_NORETURN.
10439
10440 2014-02-19  Tom Tromey  <tromey@redhat.com>
10441
10442         * target-delegates.c: Rebuild.
10443         * target.c (target_record_is_replaying): Unconditionally
10444         delegate.
10445         * target.h (struct target_ops) <to_record_is_replaying>: Use
10446         TARGET_DEFAULT_RETURN.
10447
10448 2014-02-19  Tom Tromey  <tromey@redhat.com>
10449
10450         * target-delegates.c: Rebuild.
10451         * target.c (target_goto_record_begin): Unconditionally delegate.
10452         * target.h (struct target_ops) <to_goto_record_begin>: Use
10453         TARGET_DEFAULT_NORETURN.
10454
10455 2014-02-19  Tom Tromey  <tromey@redhat.com>
10456
10457         * target-delegates.c: Rebuild.
10458         * target.c (target_goto_record_end): Unconditionally delegate.
10459         * target.h (struct target_ops) <to_goto_record_end>: Use
10460         TARGET_DEFAULT_NORETURN.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * target-delegates.c: Rebuild.
10465         * target.c (target_goto_record): Unconditionally delegate.
10466         * target.h (struct target_ops) <to_goto_record>: Use
10467         TARGET_DEFAULT_NORETURN.
10468
10469 2014-02-19  Tom Tromey  <tromey@redhat.com>
10470
10471         * target-delegates.c: Rebuild.
10472         * target.c (target_insn_history): Unconditionally delegate.
10473         * target.h (struct target_ops) <to_insn_history>: Use
10474         TARGET_DEFAULT_NORETURN.
10475
10476 2014-02-19  Tom Tromey  <tromey@redhat.com>
10477
10478         * target-delegates.c: Rebuild.
10479         * target.c (target_insn_history_from): Unconditionally delegate.
10480         * target.h (struct target_ops) <to_insn_history_from>: Use
10481         TARGET_DEFAULT_NORETURN.
10482
10483 2014-02-19  Tom Tromey  <tromey@redhat.com>
10484
10485         * target-delegates.c: Rebuild.
10486         * target.c (target_insn_history_range): Unconditionally delegate.
10487         * target.h (struct target_ops) <to_insn_history_range>: Use
10488         TARGET_DEFAULT_NORETURN.
10489
10490 2014-02-19  Tom Tromey  <tromey@redhat.com>
10491
10492         * target-delegates.c: Rebuild.
10493         * target.c (target_call_history): Unconditionally delegate.
10494         * target.h (struct target_ops) <to_call_history>: Use
10495         TARGET_DEFAULT_NORETURN.
10496
10497 2014-02-19  Tom Tromey  <tromey@redhat.com>
10498
10499         * target-delegates.c: Rebuild.
10500         * target.c (target_call_history_from): Unconditionally delegate.
10501         * target.h (struct target_ops) <to_call_history_from>: Use
10502         TARGET_DEFAULT_NORETURN.
10503
10504 2014-02-19  Tom Tromey  <tromey@redhat.com>
10505
10506         * target-delegates.c: Rebuild.
10507         * target.c (target_call_history_range): Unconditionally delegate.
10508         * target.h (struct target_ops) <to_call_history_range>: Use
10509         TARGET_DEFAULT_NORETURN.
10510
10511 2014-02-19  Tom Tromey  <tromey@redhat.com>
10512
10513         * target-delegates.c: Rebuild.
10514         * target.c (target_verify_memory): Unconditionally delegate.
10515         * target.h (struct target_ops) <to_verify_memory>: Use
10516         TARGET_DEFAULT_NORETURN.
10517
10518 2014-02-19  Tom Tromey  <tromey@redhat.com>
10519
10520         * target-delegates.c: Rebuild.
10521         * target.c (target_core_of_thread): Unconditionally delegate.
10522         * target.h (struct target_ops) <to_core_of_thread>: Use
10523         TARGET_DEFAULT_RETURN.
10524
10525 2014-02-19  Tom Tromey  <tromey@redhat.com>
10526
10527         * target-delegates.c: Rebuild.
10528         * target.c (target_flash_done): Unconditionally delegate.
10529         * target.h (struct target_ops) <to_flash_done>: Use
10530         TARGET_DEFAULT_NORETURN.
10531
10532 2014-02-19  Tom Tromey  <tromey@redhat.com>
10533
10534         * target-delegates.c: Rebuild.
10535         * target.c (target_flash_erase): Unconditionally delegate.
10536         * target.h (struct target_ops) <to_flash_erase>: Use
10537         TARGET_DEFAULT_NORETURN.
10538
10539 2014-02-19  Tom Tromey  <tromey@redhat.com>
10540
10541         * target-delegates.c: Rebuild.
10542         * target.c (target_get_section_table): Unconditionally delegate.
10543         * target.h (struct target_ops) <to_get_section_table>: Use
10544         TARGET_DEFAULT_RETURN.
10545
10546 2014-02-19  Tom Tromey  <tromey@redhat.com>
10547
10548         * target-delegates.c: Rebuild.
10549         * target.c (target_pid_to_str): Unconditionally delegate.
10550         (init_dummy_target): Don't initialize to_pid_to_str.
10551         (default_pid_to_str): Rename from dummy_pid_to_str.
10552         * target.h (struct target_ops) <to_pid_to_str>: Use
10553         TARGET_DEFAULT_FUNC.
10554
10555 2014-02-19  Tom Tromey  <tromey@redhat.com>
10556
10557         * target-delegates.c: Rebuild.
10558         * target.c (target_find_new_threads): Unconditionally delegate.
10559         * target.h (struct target_ops) <to_find_new_threads>: Use
10560         TARGET_DEFAULT_RETURN.
10561
10562 2014-02-19  Tom Tromey  <tromey@redhat.com>
10563
10564         * target-delegates.c: Rebuild.
10565         * target.c (target_program_signals): Unconditionally delegate.
10566         * target.h (struct target_ops) <to_program_signals>: Use
10567         TARGET_DEFAULT_IGNORE.
10568
10569 2014-02-19  Tom Tromey  <tromey@redhat.com>
10570
10571         * target-delegates.c: Rebuild.
10572         * target.c (target_pass_signals): Unconditionally delegate.
10573         * target.h (struct target_ops) <to_pass_signals>: Use
10574         TARGET_DEFAULT_IGNORE.
10575
10576 2014-02-19  Tom Tromey  <tromey@redhat.com>
10577
10578         * target-delegates.c: Rebuild.
10579         * target.c (default_mourn_inferior): New function.
10580         (target_mourn_inferior): Unconditionally delegate.
10581         * target.h (struct target_ops) <to_mourn_inferior>: Use
10582         TARGET_DEFAULT_FUNC.
10583
10584 2014-02-19  Tom Tromey  <tromey@redhat.com>
10585
10586         * target-delegates.c: Rebuild.
10587         * target.c (default_follow_fork): New function.
10588         (target_follow_fork): Unconditionally delegate.
10589         * target.h (struct target_ops) <to_follow_fork>: Use
10590         TARGET_DEFAULT_FUNC.
10591
10592 2014-02-19  Tom Tromey  <tromey@redhat.com>
10593
10594         * target-delegates.c: Rebuild.
10595         * target.c (target_kill): Unconditionally delegate.
10596         * target.h (struct target_ops) <to_kill>: Use
10597         TARGET_DEFAULT_NORETURN.
10598
10599 2014-02-19  Tom Tromey  <tromey@redhat.com>
10600
10601         * target-delegates.c: Rebuild.
10602         * target.c (target_masked_watch_num_registers): Unconditionally
10603         delegate.
10604         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10605         Use TARGET_DEFAULT_RETURN.
10606
10607 2014-02-19  Tom Tromey  <tromey@redhat.com>
10608
10609         * target-delegates.c: Rebuild.
10610         * target.c (target_remove_mask_watchpoint): Unconditionally
10611         delegate.
10612         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10613         TARGET_DEFAULT_RETURN.
10614
10615 2014-02-19  Tom Tromey  <tromey@redhat.com>
10616
10617         * target-delegates.c: Rebuild.
10618         * target.c (target_insert_mask_watchpoint): Unconditionally
10619         delegate.
10620         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10621         TARGET_DEFAULT_RETURN.
10622
10623 2014-02-19  Tom Tromey  <tromey@redhat.com>
10624
10625         * target-delegates.c: Rebuild.
10626         * target.c (target_ranged_break_num_registers): Unconditionally
10627         delegate.
10628         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10629         Use TARGET_DEFAULT_RETURN.
10630
10631 2014-02-19  Tom Tromey  <tromey@redhat.com>
10632
10633         * target-delegates.c: Rebuild.
10634         * target.c (target_fetch_registers): Unconditionally delegate.
10635         * target.h (struct target_ops) <to_fetch_registers>: Use
10636         TARGET_DEFAULT_NORETURN.
10637
10638 2014-02-19  Tom Tromey  <tromey@redhat.com>
10639
10640         * target-delegates.c: Rebuild.
10641         * target.c (update_current_target): Don't inherit or default
10642         to_stop.
10643         * target.h (struct target_ops) <to_stop>: Use
10644         TARGET_DEFAULT_IGNORE.
10645
10646 2014-02-19  Tom Tromey  <tromey@redhat.com>
10647
10648         * target-delegates.c: Rebuild.
10649         * target.c (update_current_target): Don't inherit or default
10650         to_can_run_breakpoint_commands.
10651         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10652         Use TARGET_DEFAULT_RETURN.
10653
10654 2014-02-19  Tom Tromey  <tromey@redhat.com>
10655
10656         * target-delegates.c: Rebuild.
10657         * target.c (update_current_target): Don't inherit or default
10658         to_supports_evaluation_of_breakpoint_conditions.
10659         * target.h (struct target_ops)
10660         <to_supports_evaluation_of_breakpoint_conditions>: Use
10661         TARGET_DEFAULT_RETURN.
10662
10663 2014-02-19  Tom Tromey  <tromey@redhat.com>
10664
10665         * target-delegates.c: Rebuild.
10666         * target.c (update_current_target): Don't inherit or default
10667         to_augmented_libraries_svr4_read.
10668         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10669         Use TARGET_DEFAULT_RETURN.
10670
10671 2014-02-19  Tom Tromey  <tromey@redhat.com>
10672
10673         * target-delegates.c: Rebuild.
10674         * target.c (update_current_target): Don't inherit or default
10675         to_can_use_agent.
10676         * target.h (struct target_ops) <to_can_use_agent>: Use
10677         TARGET_DEFAULT_RETURN.
10678
10679 2014-02-19  Tom Tromey  <tromey@redhat.com>
10680
10681         * target-delegates.c: Rebuild.
10682         * target.c (update_current_target): Don't inherit or default
10683         to_use_agent.
10684         * target.h (struct target_ops) <to_use_agent>: Use
10685         TARGET_DEFAULT_NORETURN.
10686
10687 2014-02-19  Tom Tromey  <tromey@redhat.com>
10688
10689         * target-delegates.c: Rebuild.
10690         * target.c (update_current_target): Don't inherit or default
10691         to_traceframe_info.
10692         (return_null): Remove.
10693         * target.h (struct target_ops) <to_traceframe_info>: Use
10694         TARGET_DEFAULT_RETURN.
10695
10696 2014-02-19  Tom Tromey  <tromey@redhat.com>
10697
10698         * target-delegates.c: Rebuild.
10699         * target.c (update_current_target): Don't inherit or default
10700         to_static_tracepoint_markers_by_strid.
10701         * target.h (struct target_ops)
10702         <to_static_tracepoint_markers_by_strid>: Use
10703         TARGET_DEFAULT_NORETURN.
10704
10705 2014-02-19  Tom Tromey  <tromey@redhat.com>
10706
10707         * target-delegates.c: Rebuild.
10708         * target.c (update_current_target): Don't inherit or default
10709         to_static_tracepoint_marker_at.
10710         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10711         Use TARGET_DEFAULT_RETURN.
10712
10713 2014-02-19  Tom Tromey  <tromey@redhat.com>
10714
10715         * target-delegates.c: Rebuild.
10716         * target.c (update_current_target): Don't inherit or default
10717         to_set_permissions.
10718         * target.h (struct target_ops) <to_set_permissions>: Use
10719         TARGET_DEFAULT_IGNORE.
10720
10721 2014-02-19  Tom Tromey  <tromey@redhat.com>
10722
10723         * target-delegates.c: Rebuild.
10724         * target.c (update_current_target): Don't inherit or default
10725         to_get_tib_address.
10726         * target.h (struct target_ops) <to_get_tib_address>: Use
10727         TARGET_DEFAULT_NORETURN.
10728
10729 2014-02-19  Tom Tromey  <tromey@redhat.com>
10730
10731         * target-delegates.c: Rebuild.
10732         * target.c (update_current_target): Don't inherit or default
10733         to_set_trace_notes.
10734         * target.h (struct target_ops) <to_set_trace_notes>: Use
10735         TARGET_DEFAULT_RETURN.
10736
10737 2014-02-19  Tom Tromey  <tromey@redhat.com>
10738
10739         * target-delegates.c: Rebuild.
10740         * target.c (update_current_target): Don't initialize
10741         to_set_trace_buffer_size.
10742         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10743         TARGET_DEFAULT_IGNORE.
10744
10745 2014-02-19  Tom Tromey  <tromey@redhat.com>
10746
10747         * target-delegates.c: Rebuild.
10748         * target.c (update_current_target): Don't inherit or default
10749         to_set_circular_trace_buffer.
10750         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10751         TARGET_DEFAULT_IGNORE.
10752
10753 2014-02-19  Tom Tromey  <tromey@redhat.com>
10754
10755         * target-delegates.c: Rebuild.
10756         * target.c (update_current_target): Don't inherit or default
10757         to_set_disconnected_tracing.
10758         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10759         TARGET_DEFAULT_IGNORE.
10760
10761 2014-02-19  Tom Tromey  <tromey@redhat.com>
10762
10763         * target-delegates.c: Rebuild.
10764         * target.c (update_current_target): Don't inherit or default
10765         to_get_min_fast_tracepoint_insn_len.
10766         (return_minus_one): Remove.
10767         * target.h (struct target_ops)
10768         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10769
10770 2014-02-19  Tom Tromey  <tromey@redhat.com>
10771
10772         * target-delegates.c: Rebuild.
10773         * target.c (update_current_target): Don't inherit or default
10774         to_get_raw_trace_data.
10775         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10776         TARGET_DEFAULT_NORETURN.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * target-delegates.c: Rebuild.
10781         * target.c (update_current_target): Don't inherit or default
10782         to_upload_trace_state_variables.
10783         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10784         Use TARGET_DEFAULT_RETURN.
10785
10786 2014-02-19  Tom Tromey  <tromey@redhat.com>
10787
10788         * target-delegates.c: Rebuild.
10789         * target.c (update_current_target): Don't inherit or default
10790         to_upload_tracepoints.
10791         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10792         TARGET_DEFAULT_RETURN.
10793
10794 2014-02-19  Tom Tromey  <tromey@redhat.com>
10795
10796         * target-delegates.c: Rebuild.
10797         * target.c (update_current_target): Don't inherit or default
10798         to_save_trace_data.
10799         * target.h (struct target_ops) <to_save_trace_data>: Use
10800         TARGET_DEFAULT_NORETURN.
10801
10802 2014-02-19  Tom Tromey  <tromey@redhat.com>
10803
10804         * target-delegates.c: Rebuild.
10805         * target.c (update_current_target): Don't inherit or default
10806         to_get_trace_state_variable_value.
10807         * target.h (struct target_ops)
10808         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10809
10810 2014-02-19  Tom Tromey  <tromey@redhat.com>
10811
10812         * target-delegates.c: Rebuild.
10813         * target.c (update_current_target): Don't inherit or default
10814         to_trace_find.
10815         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10816
10817 2014-02-19  Tom Tromey  <tromey@redhat.com>
10818
10819         * target-delegates.c: Rebuild.
10820         * target.c (update_current_target): Don't inherit or default
10821         to_trace_stop.
10822         * target.h (struct target_ops) <to_trace_stop>: Use
10823         TARGET_DEFAULT_NORETURN.
10824
10825 2014-02-19  Tom Tromey  <tromey@redhat.com>
10826
10827         * target-delegates.c: Rebuild.
10828         * target.c (update_current_target): Don't inherit or default
10829         to_get_tracepoint_status.
10830         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10831         TARGET_DEFAULT_NORETURN.
10832
10833 2014-02-19  Tom Tromey  <tromey@redhat.com>
10834
10835         * target-delegates.c: Rebuild.
10836         * target.c (update_current_target): Don't inherit or default
10837         to_get_trace_status.
10838         * target.h (struct target_ops) <to_get_trace_status>: Use
10839         TARGET_DEFAULT_RETURN.
10840
10841 2014-02-19  Tom Tromey  <tromey@redhat.com>
10842
10843         * target-delegates.c: Rebuild.
10844         * target.c (update_current_target): Don't inherit or default
10845         to_trace_start.
10846         * target.h (struct target_ops) <to_trace_start>: Use
10847         TARGET_DEFAULT_NORETURN.
10848
10849 2014-02-19  Tom Tromey  <tromey@redhat.com>
10850
10851         * target-delegates.c: Rebuild.
10852         * target.c (update_current_target): Don't inherit or default
10853         to_trace_set_readonly_regions.
10854         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10855         Use TARGET_DEFAULT_NORETURN.
10856
10857 2014-02-19  Tom Tromey  <tromey@redhat.com>
10858
10859         * target-delegates.c: Rebuild.
10860         * target.c (update_current_target): Don't inherit or default
10861         to_disable_tracepoint.
10862         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10863         TARGET_DEFAULT_NORETURN.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * target-delegates.c: Rebuild.
10868         * target.c (update_current_target): Don't inherit or default
10869         to_enable_tracepoint.
10870         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10871         TARGET_DEFAULT_NORETURN.
10872
10873 2014-02-19  Tom Tromey  <tromey@redhat.com>
10874
10875         * target-delegates.c: Rebuild.
10876         * target.c (update_current_target): Don't inherit or default
10877         to_download_trace_state_variable.
10878         * target.h (struct target_ops) <to_download_trace_state_variable>:
10879         Use TARGET_DEFAULT_NORETURN.
10880
10881 2014-02-19  Tom Tromey  <tromey@redhat.com>
10882
10883         * target-delegates.c: Rebuild.
10884         * target.c (update_current_target): Don't inherit or default
10885         to_can_download_tracepoint.
10886         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10887         TARGET_DEFAULT_RETURN.
10888
10889 2014-02-19  Tom Tromey  <tromey@redhat.com>
10890
10891         * target-delegates.c: Rebuild.
10892         * target.c (update_current_target): Don't inherit or default
10893         to_download_tracepoint.
10894         * target.h (struct target_ops) <to_download_tracepoint>: Use
10895         TARGET_DEFAULT_NORETURN.
10896
10897 2014-02-19  Tom Tromey  <tromey@redhat.com>
10898
10899         * target-delegates.c: Rebuild.
10900         * target.c (update_current_target): Don't inherit or default
10901         to_trace_init.
10902         * target.h (struct target_ops) <to_trace_init>: Use
10903         TARGET_DEFAULT_RETURN.
10904
10905 2014-02-19  Tom Tromey  <tromey@redhat.com>
10906
10907         * target-delegates.c: Rebuild.
10908         * target.c (update_current_target): Don't inherit or default
10909         to_supports_string_tracing.
10910         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10911         TARGET_DEFAULT_RETURN.
10912
10913 2014-02-19  Tom Tromey  <tromey@redhat.com>
10914
10915         * target-delegates.c: Rebuild.
10916         * target.c (update_current_target): Don't inherit or default
10917         to_supports_enable_disable_tracepoint.
10918         * target.h (struct target_ops)
10919         <to_supports_enable_disable_tracepoint>: Use
10920         TARGET_DEFAULT_RETURN.
10921
10922 2014-02-19  Tom Tromey  <tromey@redhat.com>
10923
10924         * target-delegates.c: Rebuild.
10925         * target.c (update_current_target): Don't inherit or default
10926         to_supports_multi_process.
10927         * target.h (struct target_ops) <to_supports_multi_process>: Use
10928         TARGET_DEFAULT_RETURN.
10929
10930 2014-02-19  Tom Tromey  <tromey@redhat.com>
10931
10932         * target-delegates.c: Rebuild.
10933         * target.c (update_current_target): Don't inherit or default
10934         to_get_ada_task_ptid.
10935         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10936         TARGET_DEFAULT_FUNC.
10937
10938 2014-02-19  Tom Tromey  <tromey@redhat.com>
10939
10940         * target-delegates.c: Rebuild.
10941         * target.c (update_current_target): Don't inherit or default
10942         to_thread_architecture.
10943         * target.h (struct target_ops) <to_thread_architecture>: Use
10944         TARGET_DEFAULT_FUNC.
10945
10946 2014-02-19  Tom Tromey  <tromey@redhat.com>
10947
10948         * target-delegates.c: Rebuild.
10949         * target.c (update_current_target): Don't inherit or default
10950         to_execution_direction.
10951         * target.h (struct target_ops) <to_execution_direction>: Use
10952         TARGET_DEFAULT_FUNC.
10953
10954 2014-02-19  Tom Tromey  <tromey@redhat.com>
10955
10956         * target-delegates.c: Rebuild.
10957         * target.c (update_current_target): Don't inherit or default
10958         to_can_execute_reverse.
10959         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10960         TARGET_DEFAULT_RETURN.
10961         (target_can_execute_reverse): Unconditionally delegate.
10962
10963 2014-02-19  Tom Tromey  <tromey@redhat.com>
10964
10965         * target-delegates.c: Rebuild.
10966         * target.c (update_current_target): Don't inherit or default
10967         to_goto_bookmark.
10968         (dummy_goto_bookmark): Remove.
10969         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10970         * target.h (struct target_ops) <to_goto_bookmark>: Use
10971         TARGET_DEFAULT_NORETURN.
10972
10973 2014-02-19  Tom Tromey  <tromey@redhat.com>
10974
10975         * target-delegates.c: Rebuild.
10976         * target.c (update_current_target): Don't inherit or default
10977         to_get_bookmark.
10978         (dummy_get_bookmark): Remove.
10979         (init_dummy_target): Don't inherit or default to_get_bookmark.
10980         * target.h (struct target_ops) <to_get_bookmark>: Use
10981         TARGET_DEFAULT_NORETURN
10982
10983 2014-02-19  Tom Tromey  <tromey@redhat.com>
10984
10985         * target-delegates.c: Rebuild.
10986         * target.c (update_current_target): Don't inherit or default
10987         to_make_corefile_notes.
10988         (init_dummy_target): Don't initialize to_make_corefile_notes.
10989         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10990         TARGET_DEFAULT_FUNC.
10991
10992 2014-02-19  Tom Tromey  <tromey@redhat.com>
10993
10994         * target-delegates.c: Rebuild.
10995         * target.c (update_current_target): Don't inherit or default
10996         to_find_memory_regions.
10997         (init_dummy_target): Don't initialize to_find_memory_regions.
10998         * target.h (struct target_ops) <to_find_memory_regions>: Use
10999         TARGET_DEFAULT_FUNC.
11000
11001 2014-02-19  Tom Tromey  <tromey@redhat.com>
11002
11003         * target-delegates.c: Rebuild.
11004         * target.c (update_current_target): Don't inherit or default
11005         to_log_command.
11006         * target.h (struct target_ops) <to_log_command>: Use
11007         TARGET_DEFAULT_IGNORE.
11008         (target_log_command): Unconditionally delegate.
11009
11010 2014-02-19  Tom Tromey  <tromey@redhat.com>
11011
11012         * target-delegates.c: Rebuild.
11013         * target.c (update_current_target): Don't inherit or default
11014         to_pid_to_exec_file.
11015         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11016         TARGET_DEFAULT_RETURN.
11017
11018 2014-02-19  Tom Tromey  <tromey@redhat.com>
11019
11020         * target-delegates.c: Rebuild.
11021         * target.c (update_current_target): Don't inherit or default
11022         to_thread_name.
11023         (target_thread_name): Unconditionally delegate.
11024         * target.h (struct target_ops) <to_thread_name>: Use
11025         TARGET_DEFAULT_RETURN.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target-delegates.c: Rebuild.
11030         * target.c (update_current_target): Don't inherit or default
11031         to_extra_thread_info.
11032         * target.h (struct target_ops) <to_extra_thread_info>: Use
11033         TARGET_DEFAULT_RETURN.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target-delegates.c: Rebuild.
11038         * target.c (update_current_target): Don't inherit or default
11039         to_has_exited.
11040         * target.h (struct target_ops) <to_has_exited>: Use
11041         TARGET_DEFAULT_RETURN..
11042
11043 2014-02-19  Tom Tromey  <tromey@redhat.com>
11044
11045         * target-delegates.c: Rebuild.
11046         * target.c (update_current_target): Don't inherit or default
11047         to_set_syscall_catchpoint.
11048         (return_one): Remove.
11049         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11050         TARGET_DEFAULT_RETURN.
11051
11052 2014-02-19  Tom Tromey  <tromey@redhat.com>
11053
11054         * target-delegates.c: Rebuild.
11055         * target.c (update_current_target): Don't inherit or default
11056         to_insert_exec_catchpoint.
11057         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11058         TARGET_DEFAULT_RETURN.
11059
11060 2014-01-08  Tom Tromey  <tromey@redhat.com>
11061
11062         * target-delegates.c: Rebuild.
11063         * target.c (update_current_target): Don't inherit or default
11064         to_insert_exec_catchpoint.
11065         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11066         TARGET_DEFAULT_RETURN.
11067
11068 2014-02-19  Tom Tromey  <tromey@redhat.com>
11069
11070         * target-delegates.c: Rebuild.
11071         * target.c (update_current_target): Don't inherit or default
11072         to_remove_vfork_catchpoint.
11073         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11074         TARGET_DEFAULT_RETURN.
11075
11076 2014-02-19  Tom Tromey  <tromey@redhat.com>
11077
11078         * target-delegates.c: Rebuild.
11079         * target.c (update_current_target): Don't inherit or default
11080         to_insert_vfork_catchpoint.
11081         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11082         TARGET_DEFAULT_RETURN.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target-delegates.c: Rebuild.
11087         * target.c (update_current_target): Don't inherit or default
11088         to_remove_fork_catchpoint.
11089         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11090         TARGET_DEFAULT_RETURN.
11091
11092 2014-02-19  Tom Tromey  <tromey@redhat.com>
11093
11094         * target-delegates.c: Rebuild.
11095         * target.c (update_current_target): Don't inherit or default
11096         to_insert_fork_catchpoint.
11097         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11098         TARGET_DEFAULT_RETURN.
11099
11100 2014-02-19  Tom Tromey  <tromey@redhat.com>
11101
11102         * target-delegates.c: Rebuild.
11103         * target.c (update_current_target): Don't inherit or default
11104         to_post_startup_inferior.
11105         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11106         TARGET_DEFAULT_IGNORE.
11107
11108 2014-02-19  Tom Tromey  <tromey@redhat.com>
11109
11110         * target-delegates.c: Rebuild.
11111         * target.c (update_current_target): Don't inherit or default
11112         to_load.
11113         * target.h (struct target_ops) <to_load>: Use
11114         TARGET_DEFAULT_NORETURN.
11115
11116 2014-02-19  Tom Tromey  <tromey@redhat.com>
11117
11118         * target-delegates.c: Rebuild.
11119         * target.c (update_current_target): Don't inherit or default
11120         to_terminal_info.
11121         * target.h (struct target_ops) <to_terminal_info>: Use
11122         TARGET_DEFAULT_FUNC.
11123
11124 2014-02-19  Tom Tromey  <tromey@redhat.com>
11125
11126         * target-delegates.c: Rebuild.
11127         * target.c (update_current_target): Don't inherit or default
11128         to_terminal_save_ours.
11129         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11130         TARGET_DEFAULT_IGNORE.
11131
11132 2014-02-19  Tom Tromey  <tromey@redhat.com>
11133
11134         * target-delegates.c: Rebuild.
11135         * target.c (update_current_target): Don't inherit or default
11136         to_terminal_ours.
11137         * target.h (struct target_ops) <to_terminal_ours>: Use
11138         TARGET_DEFAULT_IGNORE.
11139
11140 2014-02-19  Tom Tromey  <tromey@redhat.com>
11141
11142         * target-delegates.c: Rebuild.
11143         * target.c (update_current_target): Don't inherit or default
11144         to_terminal_ours_for_output.
11145         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11146         TARGET_DEFAULT_IGNORE.
11147
11148 2014-02-19  Tom Tromey  <tromey@redhat.com>
11149
11150         * target-delegates.c: Rebuild.
11151         * target.c (update_current_target): Don't inherit or default
11152         to_terminal_inferior.
11153         * target.h (struct target_ops) <to_terminal_inferior>: Use
11154         TARGET_DEFAULT_IGNORE.
11155
11156 2014-02-19  Tom Tromey  <tromey@redhat.com>
11157
11158         * target-delegates.c: Rebuild.
11159         * target.c (update_current_target): Don't inherit or default
11160         to_terminal_init.
11161         * target.h (struct target_ops) <to_terminal_init>: Use
11162         TARGET_DEFAULT_IGNORE.
11163
11164 2014-02-19  Tom Tromey  <tromey@redhat.com>
11165
11166         * target-delegates.c: Rebuild.
11167         * target.c (update_current_target): Don't inherit or default
11168         to_can_accel_watchpoint_condition.
11169         * target.h (struct target_ops)
11170         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11171
11172 2014-02-19  Tom Tromey  <tromey@redhat.com>
11173
11174         * target-delegates.c: Rebuild.
11175         * target.c (update_current_target): Don't inherit or default
11176         to_region_ok_for_hw_watchpoint.
11177         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11178         Use TARGET_DEFAULT_FUNC.
11179
11180 2014-02-19  Tom Tromey  <tromey@redhat.com>
11181
11182         * target-delegates.c: Rebuild.
11183         * target.c (update_current_target): Don't inherit or default
11184         to_watchpoint_addr_within_range.
11185         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11186         Use TARGET_DEFAULT_FUNC.
11187
11188 2014-02-19  Tom Tromey  <tromey@redhat.com>
11189
11190         * target-delegates.c: Rebuild.
11191         * target.c (update_current_target): Don't inherit or default
11192         to_remove_watchpoint.
11193         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11194         TARGET_DEFAULT_NORETURN.
11195
11196 2014-02-19  Tom Tromey  <tromey@redhat.com>
11197
11198         * target-delegates.c: Rebuild.
11199         * target.c (update_current_target): Don't inherit or default
11200         to_insert_watchpoint.
11201         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11202         TARGET_DEFAULT_RETURN.
11203
11204 2014-02-19  Tom Tromey  <tromey@redhat.com>
11205
11206         * target-delegates.c: Rebuild.
11207         * target.c (update_current_target): Don't inherit or default
11208         to_remove_hw_breakpoint.
11209         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11210         TARGET_DEFAULT_RETURN.
11211
11212 2014-02-19  Tom Tromey  <tromey@redhat.com>
11213
11214         * target-delegates.c: Rebuild.
11215         * target.c (update_current_target): Don't inherit or default
11216         to_insert_hw_breakpoint.
11217         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11218         TARGET_DEFAULT_RETURN.
11219
11220 2014-02-19  Tom Tromey  <tromey@redhat.com>
11221
11222         * target-delegates.c: Rebuild.
11223         * target.c (update_current_target): Don't inherit or default
11224         to_can_use_hw_breakpoint.
11225         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11226         TARGET_DEFAULT_RETURN.
11227
11228 2014-02-19  Tom Tromey  <tromey@redhat.com>
11229
11230         * target-delegates.c: Rebuild.
11231         * target.c (update_current_target): Don't inherit or default
11232         to_files_info.
11233         * target.h (struct target_ops) <to_files_info>: Use
11234         TARGET_DEFAULT_IGNORE.
11235
11236 2014-02-19  Tom Tromey  <tromey@redhat.com>
11237
11238         * target-delegates.c: Rebuild.
11239         * target.c (update_current_target): Don't inherit or default
11240         to_store.
11241         * target.h (struct target_ops) <to_store>: Use
11242         TARGET_DEFAULT_NORETURN.
11243
11244 2014-02-19  Tom Tromey  <tromey@redhat.com>
11245
11246         * target-delegates.c: Rebuild.
11247         * target.c (update_current_target): Don't inherit or default
11248         to_post_attach.
11249         * target.h (struct target_ops) <to_post_attach>: Use
11250         TARGET_DEFAULT_IGNORE.
11251
11252 2014-02-19  Tom Tromey  <tromey@redhat.com>
11253
11254         * target-delegates.c: Rebuild.
11255         * target.c (update_current_target): Don't inherit or default
11256         to_rcmd.
11257         (default_rcmd): New function.
11258         (do_monitor_command): Unconditionally delegate.
11259         * target.h (struct target_ops) <to_rmcd>: Use
11260         TARGET_DEFAULT_FUNC.
11261
11262 2014-02-19  Tom Tromey  <tromey@redhat.com>
11263
11264         * target-delegates.c: Rebuild.
11265         * target.c (init_dummy_target): Don't initialize to_attach.
11266         (target_attach): Unconditionally delegate.
11267         * target.h (struct target_ops) <to_attach>: Use
11268         TARGET_DEFAULT_FUNC.
11269
11270 2014-02-19  Tom Tromey  <tromey@redhat.com>
11271
11272         * target-delegates.c: Rebuild.
11273         * target.c (target_detach): Unconditionally delegate.
11274         (init_dummy_target): Don't initialize to_detach.
11275         * target.h (struct target_ops) <to_detach>: Use
11276         TARGET_DEFAULT_IGNORE.
11277
11278 2014-02-19  Tom Tromey  <tromey@redhat.com>
11279
11280         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11281         Add argument.
11282         (target_augmented_libraries_svr4_read): Add argument.
11283         * target.c (update_current_target): Update.
11284         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11285         argument.
11286
11287 2014-02-19  Tom Tromey  <tromey@redhat.com>
11288
11289         * target.h (struct target_ops) <to_call_history_range>: Add
11290         argument.
11291         * target.c (target_call_history_range): Add argument.
11292         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11293         argument.
11294         (record_btrace_call_history_from): Update.
11295
11296 2014-02-19  Tom Tromey  <tromey@redhat.com>
11297
11298         * target.h (struct target_ops) <to_call_history_from>: Add
11299         argument.
11300         * target.c (target_call_history_from): Add argument.
11301         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11302         argument.
11303
11304 2014-02-19  Tom Tromey  <tromey@redhat.com>
11305
11306         * target.h (struct target_ops) <to_call_history>: Add argument.
11307         * target.c (target_call_history): Add argument.
11308         * record-btrace.c (record_btrace_call_history): Add 'self'
11309         argument.
11310
11311 2014-02-19  Tom Tromey  <tromey@redhat.com>
11312
11313         * target.h (struct target_ops) <to_insn_history_range>: Add
11314         argument.
11315         * target.c (target_insn_history_range): Add argument.
11316         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11317         argument.
11318         (record_btrace_insn_history_from): Update.
11319
11320 2014-02-19  Tom Tromey  <tromey@redhat.com>
11321
11322         * target.h (struct target_ops) <to_insn_history_from>: Add
11323         argument.
11324         * target.c (target_insn_history_from): Add argument.
11325         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11326         argument.
11327
11328 2014-02-19  Tom Tromey  <tromey@redhat.com>
11329
11330         * target.h (struct target_ops) <to_insn_history>: Add argument.
11331         * target.c (target_insn_history): Add argument.
11332         * record-btrace.c (record_btrace_insn_history): Add 'self'
11333         argument.
11334
11335 2014-02-19  Tom Tromey  <tromey@redhat.com>
11336
11337         * target.h (struct target_ops) <to_goto_record>: Add argument.
11338         * target.c (target_goto_record): Add argument.
11339         * record-full.c (record_full_goto): Add 'self' argument.
11340         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11341
11342 2014-02-19  Tom Tromey  <tromey@redhat.com>
11343
11344         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11345         * target.c (target_goto_record_end): Add argument.
11346         * record-full.c (record_full_goto_end): Add 'self' argument.
11347         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11348
11349 2014-02-19  Tom Tromey  <tromey@redhat.com>
11350
11351         * target.h (struct target_ops) <to_goto_record_begin>: Add
11352         argument.
11353         * target.c (target_goto_record_begin): Add argument.
11354         * record-full.c (record_full_goto_begin): Add 'self' argument.
11355         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11356         argument.
11357
11358 2014-02-19  Tom Tromey  <tromey@redhat.com>
11359
11360         * target.h (struct target_ops) <to_record_is_replaying>: Add
11361         argument.
11362         * target.c (target_record_is_replaying): Add argument.
11363         * record-full.c (record_full_is_replaying): Add 'self' argument.
11364         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11365         argument.
11366         (record_btrace_xfer_partial, record_btrace_store_registers)
11367         (record_btrace_prepare_to_store, record_btrace_resume)
11368         (record_btrace_wait, record_btrace_decr_pc_after_break)
11369         (record_btrace_find_new_threads, record_btrace_thread_alive):
11370         Update.
11371
11372 2014-02-19  Tom Tromey  <tromey@redhat.com>
11373
11374         * target.h (struct target_ops) <to_delete_record>: Add argument.
11375         * target.c (target_delete_record): Add argument.
11376         * record-full.c (record_full_delete): Add 'self' argument.
11377
11378 2014-02-19  Tom Tromey  <tromey@redhat.com>
11379
11380         * target.h (struct target_ops) <to_save_record>: Add argument.
11381         * target.c (target_save_record): Add argument.
11382         * record-full.c (record_full_save): Add 'self' argument.
11383         (record_full_save): Add 'self' argument.
11384
11385 2014-02-19  Tom Tromey  <tromey@redhat.com>
11386
11387         * target.h (struct target_ops) <to_info_record>: Add argument.
11388         * target.c (target_info_record): Add argument.
11389         * record.c (info_record_command): Add argument.
11390         * record-full.c (record_full_info): Add 'self' argument.
11391         * record-btrace.c (record_btrace_info): Add 'self' argument.
11392
11393 2014-02-19  Tom Tromey  <tromey@redhat.com>
11394
11395         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11396         * target.c (target_stop_recording): Add argument.
11397         * record.c (record_stop): Add argument.
11398         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11399         argument.
11400
11401 2014-02-19  Tom Tromey  <tromey@redhat.com>
11402
11403         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11404         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11405         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11406         argument.
11407         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11408         (_initialize_amd64_linux_nat): Use it.
11409         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11410         (_initialize_i386_linux_nat): Use it.
11411
11412 2014-02-19  Tom Tromey  <tromey@redhat.com>
11413
11414         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11415         * target.c (target_teardown_btrace): Add argument.
11416         * remote.c (remote_teardown_btrace): Add 'self' argument.
11417         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11418         argument.
11419         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11420         argument.
11421
11422 2014-02-19  Tom Tromey  <tromey@redhat.com>
11423
11424         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11425         * target.c (target_disable_btrace): Add argument.
11426         * remote.c (remote_disable_btrace): Add 'self' argument.
11427         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11428         argument.
11429         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11430         argument.
11431
11432 2014-02-19  Tom Tromey  <tromey@redhat.com>
11433
11434         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11435         * target.c (target_enable_btrace): Add argument.
11436         * remote.c (remote_enable_btrace): Add 'self' argument.
11437         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11438         argument.
11439         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11440         argument.
11441
11442 2014-02-19  Tom Tromey  <tromey@redhat.com>
11443
11444         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11445         (target_can_use_agent): Add argument.
11446         * target.c (update_current_target): Update.
11447         * remote.c (remote_can_use_agent): Add 'self' argument.
11448         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11449
11450 2014-02-19  Tom Tromey  <tromey@redhat.com>
11451
11452         * target.h (struct target_ops) <to_use_agent>: Add argument.
11453         (target_use_agent): Add argument.
11454         * target.c (update_current_target): Update.
11455         * remote.c (remote_use_agent): Add 'self' argument.
11456         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11457
11458 2014-02-19  Tom Tromey  <tromey@redhat.com>
11459
11460         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11461         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11462         (target_traceframe_info): Add argument.
11463         * target.c (update_current_target): Update.
11464         * remote.c (remote_traceframe_info): Add 'self' argument.
11465         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11466
11467 2014-02-19  Tom Tromey  <tromey@redhat.com>
11468
11469         * target.h (target_static_tracepoint_markers_by_strid): Add
11470         argument.
11471         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11472         'self' argument.
11473         * target.c (update_current_target): Update.
11474         * remote.c (struct target_ops)
11475         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11476         * linux-nat.c (struct target_ops)
11477         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11478
11479 2014-02-19  Tom Tromey  <tromey@redhat.com>
11480
11481         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11482         Add argument.
11483         (target_static_tracepoint_marker_at): Add argument.
11484         * target.c (update_current_target): Update.
11485         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11486         argument.
11487
11488 2014-02-19  Tom Tromey  <tromey@redhat.com>
11489
11490         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11491         (target_set_permissions): Add argument.
11492         * target.c (update_current_target): Update.
11493         * remote.c (remote_set_permissions): Add 'self' argument.
11494         (remote_start_remote): Update.
11495
11496 2014-02-19  Tom Tromey  <tromey@redhat.com>
11497
11498         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11499         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11500         (target_get_tib_address): Add argument.
11501         * target.c (update_current_target): Update.
11502         * remote.c (remote_get_tib_address): Add 'self' argument.
11503
11504 2014-02-19  Tom Tromey  <tromey@redhat.com>
11505
11506         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11507         (target_set_trace_notes): Add argument.
11508         * target.c (update_current_target): Update.
11509         * remote.c (remote_set_trace_notes): Add 'self' argument.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11514         argument.
11515         (target_set_trace_buffer_size): Add argument.
11516         * target.c (update_current_target): Update.
11517         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11518
11519 2014-02-19  Tom Tromey  <tromey@redhat.com>
11520
11521         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11522         argument.
11523         (target_set_circular_trace_buffer): Add argument.
11524         * target.c (update_current_target): Update.
11525         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11526         argument.
11527
11528 2014-02-19  Tom Tromey  <tromey@redhat.com>
11529
11530         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11531         argument.
11532         (target_set_disconnected_tracing): Add argument.
11533         * target.c (update_current_target): Update.
11534         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11535
11536 2014-02-19  Tom Tromey  <tromey@redhat.com>
11537
11538         * target.h (struct target_ops)
11539         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11540         (target_get_min_fast_tracepoint_insn_len): Add argument.
11541         * target.c (update_current_target): Update.
11542         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11543         argument.
11544
11545 2014-02-19  Tom Tromey  <tromey@redhat.com>
11546
11547         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11548         argument.
11549         (target_get_raw_trace_data): Add argument.
11550         * target.c (update_current_target): Update.
11551         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11552
11553 2014-02-19  Tom Tromey  <tromey@redhat.com>
11554
11555         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11556         Add argument.
11557         (target_upload_trace_state_variables): Add argument.
11558         * target.c (update_current_target): Update.
11559         * remote.c (remote_upload_trace_state_variables): Add 'self'
11560         argument.
11561         (remote_start_remote): Update.
11562
11563 2014-02-19  Tom Tromey  <tromey@redhat.com>
11564
11565         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11566         argument.
11567         (target_upload_tracepoints): Add argument.
11568         * target.c (update_current_target): Update.
11569         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11570         (remote_start_remote): Update.
11571
11572 2014-02-19  Tom Tromey  <tromey@redhat.com>
11573
11574         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11575         (target_save_trace_data): Add argument.
11576         * target.c (update_current_target): Update.
11577         * remote.c (remote_save_trace_data): Add 'self' argument.
11578
11579 2014-02-19  Tom Tromey  <tromey@redhat.com>
11580
11581         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11582         argument.
11583         * target.h (struct target_ops)
11584         <to_get_trace_state_variable_value>: Add argument.
11585         (target_get_trace_state_variable_value): Add argument.
11586         * target.c (update_current_target): Update.
11587         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11588         argument.
11589         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11590
11591 2014-02-19  Tom Tromey  <tromey@redhat.com>
11592
11593         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11594         * target.h (struct target_ops) <to_trace_find>: Add argument.
11595         (target_trace_find): Add argument.
11596         * target.c (update_current_target): Update.
11597         * remote.c (remote_trace_find): Add 'self' argument.
11598         * ctf.c (ctf_trace_find): Add 'self' argument.
11599
11600 2014-02-19  Tom Tromey  <tromey@redhat.com>
11601
11602         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11603         (target_trace_stop): Add argument.
11604         * target.c (update_current_target): Update.
11605         * remote.c (remote_trace_stop): Add 'self' argument.
11606
11607 2014-02-19  Tom Tromey  <tromey@redhat.com>
11608
11609         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11610         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11611         argument.
11612         (target_get_tracepoint_status): Add argument.
11613         * target.c (update_current_target): Update.
11614         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11615
11616 2014-02-19  Tom Tromey  <tromey@redhat.com>
11617
11618         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11619         * target.h (struct target_ops) <to_get_trace_status>: Add
11620         argument.
11621         (target_get_trace_status): Add argument.
11622         * target.c (update_current_target): Update.
11623         * remote.c (remote_get_trace_status): Add 'self' argument.
11624         (remote_start_remote, remote_can_download_tracepoint): Update.
11625         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11626
11627 2014-02-19  Tom Tromey  <tromey@redhat.com>
11628
11629         * target.h (struct target_ops) <to_trace_start>: Add argument.
11630         (target_trace_start): Add argument.
11631         * target.c (update_current_target): Update.
11632         * remote.c (remote_trace_start): Add 'self' argument.
11633
11634 2014-02-19  Tom Tromey  <tromey@redhat.com>
11635
11636         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11637         Add argument.
11638         (target_trace_set_readonly_regions): Add argument.
11639         * target.c (update_current_target): Update.
11640         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11641         argument.
11642
11643 2014-02-19  Tom Tromey  <tromey@redhat.com>
11644
11645         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11646         argument.
11647         (target_disable_tracepoint): Add argument.
11648         * target.c (update_current_target): Update.
11649         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11650
11651 2014-02-19  Tom Tromey  <tromey@redhat.com>
11652
11653         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11654         argument.
11655         (target_enable_tracepoint): Add argument.
11656         * target.c (update_current_target): Update.
11657         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11658
11659 2014-02-19  Tom Tromey  <tromey@redhat.com>
11660
11661         * target.h (struct target_ops) <to_download_trace_state_variable>:
11662         Add argument.
11663         (target_download_trace_state_variable): Add argument.
11664         * target.c (update_current_target): Update.
11665         * remote.c (remote_download_trace_state_variable): Add 'self'
11666         argument.
11667
11668 2014-02-19  Tom Tromey  <tromey@redhat.com>
11669
11670         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11671         argument.
11672         (target_can_download_tracepoint): Add argument.
11673         * target.c (update_current_target): Update.
11674         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11675
11676 2014-02-19  Tom Tromey  <tromey@redhat.com>
11677
11678         * target.h (struct target_ops) <to_download_tracepoint>: Add
11679         argument.
11680         (target_download_tracepoint): Add argument.
11681         * target.c (update_current_target): Update.
11682         * remote.c (remote_download_tracepoint): Add 'self' argument.
11683
11684 2014-02-19  Tom Tromey  <tromey@redhat.com>
11685
11686         * target.h (struct target_ops) <to_trace_init>: Add argument.
11687         (target_trace_init): Add argument.
11688         * target.c (update_current_target): Update.
11689         * remote.c (remote_trace_init): Add 'self' argument.
11690
11691 2014-02-19  Tom Tromey  <tromey@redhat.com>
11692
11693         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11694         * target.c (target_fileio_readlink): Add argument.
11695         * remote.c (remote_hostio_readlink): Add 'self' argument.
11696         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11697
11698 2014-02-19  Tom Tromey  <tromey@redhat.com>
11699
11700         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11701         * target.c (target_fileio_unlink): Add argument.
11702         * remote.c (remote_hostio_unlink): Add 'self' argument.
11703         (remote_file_delete): Update.
11704         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11705
11706 2014-02-19  Tom Tromey  <tromey@redhat.com>
11707
11708         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11709         * target.c (target_fileio_close): Add argument.
11710         * remote.c (remote_hostio_close): Add 'self' argument.
11711         (remote_hostio_close_cleanup): Update.
11712         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11713         Update.
11714         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11715
11716 2014-02-19  Tom Tromey  <tromey@redhat.com>
11717
11718         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11719         * target.c (target_fileio_pread): Add argument.
11720         * remote.c (remote_hostio_pread): Add 'self' argument.
11721         (remote_bfd_iovec_pread, remote_file_get): Update.
11722         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11723
11724 2014-02-19  Tom Tromey  <tromey@redhat.com>
11725
11726         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11727         * target.c (target_fileio_pwrite): Add argument.
11728         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11729         (remote_file_put): Update.
11730         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11731
11732 2014-02-19  Tom Tromey  <tromey@redhat.com>
11733
11734         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11735         * target.c (target_fileio_open): Add argument.
11736         * remote.c (remote_hostio_open): Add 'self' argument.
11737         (remote_bfd_iovec_open): Add 'self' argument.
11738         (remote_file_put): Add 'self' argument.
11739         (remote_file_get): Add 'self' argument.
11740         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11741
11742 2014-02-19  Tom Tromey  <tromey@redhat.com>
11743
11744         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11745         Add argument.
11746         (target_can_run_breakpoint_commands): Add argument.
11747         * target.c (update_current_target): Update.
11748         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11749         argument.
11750         (remote_insert_breakpoint): Add 'self' argument.
11751         (remote_insert_hw_breakpoint): Add 'self' argument.
11752         (remote_can_run_breakpoint_commands): Add 'self' argument.
11753
11754 2014-02-19  Tom Tromey  <tromey@redhat.com>
11755
11756         * target.h (struct target_ops)
11757         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11758         (target_supports_evaluation_of_breakpoint_conditions): Add
11759         argument.
11760         * target.c (update_current_target): Update.
11761         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11762         argument.
11763         (remote_insert_breakpoint): Add 'self' argument.
11764         (remote_insert_hw_breakpoint): Add 'self' argument.
11765         (remote_supports_cond_breakpoints): Add 'self' argument.
11766
11767 2014-02-19  Tom Tromey  <tromey@redhat.com>
11768
11769         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11770         argument.
11771         (target_supports_string_tracing): Add argument.
11772         * target.c (update_current_target): Update.
11773         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11774
11775 2014-02-19  Tom Tromey  <tromey@redhat.com>
11776
11777         * target.h (struct target_ops)
11778         <to_supports_disable_randomization>: Add argument.
11779         * target.c (find_default_supports_disable_randomization): Add
11780         argument.
11781         (target_supports_disable_randomization): Add argument.
11782         (find_default_supports_disable_randomization): Add 'self'
11783         argument.
11784         * remote.c (extended_remote_supports_disable_randomization): Add
11785         'self' argument.
11786         (remote_supports_disable_randomization): Add 'self' argument.
11787         (extended_remote_create_inferior): Update.
11788         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11789         'self' argument.
11790
11791 2014-02-19  Tom Tromey  <tromey@redhat.com>
11792
11793         * target.h (struct target_ops)
11794         <to_supports_enable_disable_tracepoint>: Add argument.
11795         (target_supports_enable_disable_tracepoint): Add argument.
11796         * target.c (update_current_target): Update.
11797         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11798         argument.
11799
11800 2014-02-19  Tom Tromey  <tromey@redhat.com>
11801
11802         * target.h (struct target_ops) <to_supports_multi_process>: Add
11803         argument.
11804         (target_supports_multi_process): Add argument.
11805         * target.c (update_current_target): Update.
11806         * remote.c (remote_supports_multi_process): Add 'self' argument.
11807         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11808         argument.
11809         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11810         argument.
11811
11812 2014-02-19  Tom Tromey  <tromey@redhat.com>
11813
11814         * target.h (struct target_ops) <to_execution_direction>: Add
11815         argument.
11816         (target_execution_direction): Add argument.
11817         * target.c (default_execution_direction): Add 'self' argument.
11818         * record-full.c (record_full_execution_direction): Add 'self'
11819         argument.
11820
11821 2014-02-19  Tom Tromey  <tromey@redhat.com>
11822
11823         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11824         argument.
11825         (target_can_execute_reverse): Add argument.
11826         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11827         * record-full.c (record_full_can_execute_reverse): Add 'self'
11828         argument.
11829         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11830         argument.
11831
11832 2014-02-19  Tom Tromey  <tromey@redhat.com>
11833
11834         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11835         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11836         argument.
11837         (target_get_ada_task_ptid): Add argument.
11838         * target.c (update_current_target): Update.
11839         (default_get_ada_task_ptid): Add 'self' argument.
11840         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11841         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11842         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11843         argument.
11844         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11845         argument.
11846         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11847         argument.
11848         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11849         argument.
11850         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11851         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11852         argument.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11857         (target_goto_bookmark): Add argument.
11858         * target.c (dummy_goto_bookmark): Add 'self' argument.
11859         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11860
11861 2014-02-19  Tom Tromey  <tromey@redhat.com>
11862
11863         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11864         (target_get_bookmark): Add argument.
11865         * target.c (dummy_get_bookmark): Add 'self' argument.
11866         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11867
11868 2014-02-19  Tom Tromey  <tromey@redhat.com>
11869
11870         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11871         argument.
11872         (target_make_corefile_notes): Add argument.
11873         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11874         * procfs.c (procfs_make_note_section): Add 'self' argument.
11875         (procfs_make_note_section): Add 'self' argument.
11876         (procfs_make_note_section): Add 'self' argument.
11877         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11878         argument.
11879         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11880         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11881         * exec.c (exec_make_note_section): Add 'self' argument.
11882         (exec_make_note_section): Add 'self' argument.
11883
11884 2014-02-19  Tom Tromey  <tromey@redhat.com>
11885
11886         * target.h (struct target_ops) <to_find_memory_regions>: Add
11887         argument.
11888         (target_find_memory_regions): Add argument.
11889         * target.c (dummy_find_memory_regions): Add 'self' argument.
11890         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11891         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11892         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11893         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11894         * exec. (exec_do_find_memory_regions): New global.
11895         (exec_set_find_memory_regions): Rewrite.
11896         (exec_find_memory_regions): New function.
11897         (init_exec_ops): Use exec_find_memory_regions.
11898
11899 2014-02-19  Tom Tromey  <tromey@redhat.com>
11900
11901         * target.h (struct target_ops) <to_supports_non_stop>: Add
11902         argument.
11903         * target.c (find_default_supports_non_stop): Add argument.
11904         (target_supports_non_stop): Add argument.
11905         (find_default_supports_non_stop): Add 'self' argument.
11906         * remote.c (remote_supports_non_stop): Add 'self' argument.
11907         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11908
11909 2014-02-19  Tom Tromey  <tromey@redhat.com>
11910
11911         * target.h (struct target_ops) <to_log_command>: Add argument.
11912         (target_log_command): Add argument.
11913         * serial.h (serial_log_command): Add 'self' argument.
11914         * serial.c (serial_log_command): Add 'self' argument.
11915
11916 2014-02-19  Tom Tromey  <tromey@redhat.com>
11917
11918         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11919         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11920         argument.
11921         (target_pid_to_exec_file): Add argument.
11922         * target.c (debug_to_pid_to_exec_file): Add argument.
11923         (update_current_target): Update.
11924         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11925         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11926         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11927         (linux_handle_extended_wait): Update.
11928         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11929         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11930         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11931         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11932
11933 2014-02-19  Tom Tromey  <tromey@redhat.com>
11934
11935         * target.h (struct target_ops) <to_rcmd>: Add argument.
11936         (target_rcmd): Add argument.
11937         * target.c (debug_to_rcmd): Add argument.
11938         (update_current_target, do_monitor_command): Update.
11939         * remote.c (remote_rcmd): Add 'self' argument.
11940         * monitor.c (monitor_rcmd): Add 'self' argument.
11941
11942 2014-02-19  Tom Tromey  <tromey@redhat.com>
11943
11944         * windows-nat.c (windows_stop): Add 'self' argument.
11945         * target.h (struct target_ops) <to_stop>: Add argument.
11946         * target.c (target_stop): Add argument.
11947         (debug_to_stop): Add argument.
11948         (update_current_target): Update.
11949         * remote.c (remote_stop): Add 'self' argument.
11950         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11951         (gdbsim_cntrl_c): Update.
11952         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11953         * procfs.c (procfs_stop): Add 'self' argument.
11954         * nto-procfs.c (procfs_stop): Add 'self' argument.
11955         * monitor.c (monitor_stop): Add 'self' argument.
11956         (monitor_open): Update.
11957         * linux-nat.c (linux_nat_stop): Add argument.
11958         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11959         * gnu-nat.c (gnu_stop): Add 'self' argument.
11960         * darwin-nat.c (darwin_stop): Add 'self' argument.
11961
11962 2014-02-19  Tom Tromey  <tromey@redhat.com>
11963
11964         * target.h (struct target_ops) <to_thread_name>: Add argument.
11965         * target.c (target_thread_name): Add argument.
11966         (update_current_target): Update.
11967         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11968
11969 2014-02-19  Tom Tromey  <tromey@redhat.com>
11970
11971         * target.h (struct target_ops) <to_extra_thread_info>: Add
11972         argument.
11973         (target_extra_thread_info): Add argument.
11974         * target.c (update_current_target): Update.
11975         * remote.c (remote_threads_extra_info): Add 'self' argument.
11976         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11977         argument.
11978         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11979         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11980         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11981         argument.
11982         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11983         argument.
11984         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11985         argument.
11986         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11987         argument.
11988
11989 2014-02-19  Tom Tromey  <tromey@redhat.com>
11990
11991         * target.h (struct target_ops) <to_program_signals>: Add argument.
11992         * target.c (target_program_signals): Add argument.
11993         * remote.c (remote_program_signals): Add 'self' argument.
11994
11995 2014-02-19  Tom Tromey  <tromey@redhat.com>
11996
11997         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11998         * target.c (target_pass_signals): Add argument.
11999         * remote.c (remote_pass_signals): Add 'self' argument.
12000         (remote_start_remote): Update.
12001         * procfs.c (procfs_pass_signals): Add 'self' argument.
12002         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12003         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12004         (linux_nat_create_inferior, linux_nat_attach): Update.
12005
12006 2014-02-19  Tom Tromey  <tromey@redhat.com>
12007
12008         * windows-nat.c (windows_can_run): Add 'self' argument.
12009         * target.h (struct target_ops) <to_can_run>: Add argument.
12010         (target_can_run): Add argument.
12011         * target.c (debug_to_can_run): Add argument.
12012         (update_current_target): Update.
12013         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12014         * inf-child.c (inf_child_can_run): Add 'self' argument.
12015         * go32-nat.c (go32_can_run): Add 'self' argument.
12016
12017 2014-02-19  Tom Tromey  <tromey@redhat.com>
12018
12019         * target.h (struct target_ops) <to_has_exited>: Add argument.
12020         (target_has_exited): Add argument.
12021         * target.c (debug_to_has_exited): Add argument.
12022         (update_current_target): Update.
12023
12024 2014-02-19  Tom Tromey  <tromey@redhat.com>
12025
12026         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12027         argument.
12028         (target_set_syscall_catchpoint): Add argument.
12029         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12030         argument.
12031         * target.c (update_current_target): Update.
12032
12033 2014-02-19  Tom Tromey  <tromey@redhat.com>
12034
12035         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12036         argument.
12037         (target_remove_exec_catchpoint): Add argument.
12038         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12039         (update_current_target): Update.
12040         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12041         argument.
12042
12043 2014-02-19  Tom Tromey  <tromey@redhat.com>
12044
12045         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12046         argument.
12047         (target_insert_exec_catchpoint): Add argument.
12048         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12049         (update_current_target): Update.
12050         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12051         argument.
12052
12053 2014-02-19  Tom Tromey  <tromey@redhat.com>
12054
12055         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12056         argument.
12057         (target_remove_vfork_catchpoint): Add argument.
12058         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12059         (update_current_target): Update.
12060         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12061         argument.
12062
12063 2014-02-19  Tom Tromey  <tromey@redhat.com>
12064
12065         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12066         argument.
12067         (target_insert_vfork_catchpoint): Add argument.
12068         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12069         (update_current_target): Update.
12070         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12071         argument.
12072
12073 2014-02-19  Tom Tromey  <tromey@redhat.com>
12074
12075         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12076         argument.
12077         (target_remove_fork_catchpoint): Add argument.
12078         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12079         (update_current_target): Update.
12080         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12081         argument.
12082
12083 2014-02-19  Tom Tromey  <tromey@redhat.com>
12084
12085         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12086         argument.
12087         (target_insert_fork_catchpoint): Add argument.
12088         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12089         (update_current_target): Update.
12090         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12091         argument.
12092
12093 2014-02-19  Tom Tromey  <tromey@redhat.com>
12094
12095         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12096         argument.
12097         (target_post_startup_inferior): Add argument.
12098         * target.c (debug_to_post_startup_inferior): Add argument.
12099         (update_current_target): Update.
12100         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12101         argument.
12102         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12103         argument.
12104         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12105         argument.
12106         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12107         argument.
12108         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12109         'self' argument.
12110         (super_post_startup_inferior): Likewise.
12111         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12112         'self' argument.
12113         (super_post_startup_inferior): Likewise.
12114         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12115         Add 'self' argument.
12116         (super_post_startup_inferior): Likewise.
12117
12118 2014-02-19  Tom Tromey  <tromey@redhat.com>
12119
12120         * target.h (struct target_ops) <to_load>: Add argument.
12121         * target.c (target_load): Add argument.
12122         (debug_to_load): Add argument.
12123         (update_current_target): Update.
12124         * remote.c (remote_load): Add 'self' argument.
12125         * remote-sim.c (gdbsim_load): Add 'self' argument.
12126         * remote-mips.c (mips_load): Add 'self' argument.
12127         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12128         * monitor.c (monitor_load): Add 'self' argument.
12129         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12130
12131 2014-02-19  Tom Tromey  <tromey@redhat.com>
12132
12133         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12134         (target_terminal_info): Add argument.
12135         * target.c (debug_to_terminal_info): Add argument.
12136         (default_terminal_info): Likewise.
12137         * inflow.c (child_terminal_info): Add 'self' argument.
12138         * inferior.h (child_terminal_info): Add 'self' argument.
12139         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12140
12141 2014-02-19  Tom Tromey  <tromey@redhat.com>
12142
12143         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12144         argument.
12145         (target_terminal_save_ours): Add argument.
12146         * target.c (debug_to_terminal_save_ours): Add argument.
12147         (update_current_target): Update.
12148         * inflow.c (terminal_save_ours): Add 'self' argument.
12149         * inferior.h (terminal_save_ours): Add 'self' argument.
12150
12151 2014-02-19  Tom Tromey  <tromey@redhat.com>
12152
12153         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12154         (target_terminal_ours): Add argument.
12155         * target.c (debug_to_terminal_ours): Add argument.
12156         (update_current_target): Update.
12157         * remote.c (remote_terminal_ours): Add 'self' argument.
12158         (remote_close): Update.
12159         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12160         * inflow.c (terminal_ours): Add 'self' argument.
12161         * inferior.h (terminal_ours): Add 'self' argument.
12162         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12163
12164 2014-02-19  Pedro Alves  <palves@redhat.com>
12165             Tom Tromey  <tromey@redhat.com>
12166
12167         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12168         argument.
12169         (target_terminal_ours_for_output): Add argument.
12170         * target.c (debug_to_terminal_ours_for_output): Add argument.
12171         (update_current_target): Update.
12172         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12173         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12174         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12175
12176 2014-02-19  Tom Tromey  <tromey@redhat.com>
12177
12178         * target.h (struct target_ops) <to_terminal_inferior>: Add
12179         argument.
12180         * target.c (target_terminal_inferior): Add argument.
12181         (update_current_target): Update.
12182         * remote.c (remote_terminal_inferior): Add 'self' argument.
12183         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12184         * inflow.c (terminal_inferior): Add 'self' argument.
12185         * inferior.h (terminal_inferior): Add 'self' argument.
12186         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12187         (go32_terminal_inferior): Add 'self' argument.
12188
12189 2014-02-19  Tom Tromey  <tromey@redhat.com>
12190
12191         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12192         (target_terminal_init): Add argument.
12193         * target.c (debug_to_terminal_init): Add argument.
12194         (update_current_target): Update.
12195         * inflow.c (terminal_init_inferior): Add 'self' argument.
12196         * inferior.h (terminal_init_inferior): Add 'self' argument.
12197         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12198         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12199
12200 2014-02-19  Tom Tromey  <tromey@redhat.com>
12201
12202         * target.h (struct target_ops)
12203         <to_can_accel_watchpoint_condition>: Add argument.
12204         (target_can_accel_watchpoint_condition): Add argument.
12205         * target.c (debug_to_can_accel_watchpoint_condition): Add
12206         argument.
12207         (update_current_target): Update.
12208         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12209         'self' argument.
12210
12211 2014-02-19  Tom Tromey  <tromey@redhat.com>
12212
12213         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12214         Add argument.
12215         (target_region_ok_for_hw_watchpoint): Add argument.
12216         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12217         (default_region_ok_for_hw_watchpoint): Add argument.
12218         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12219         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12220         argument.
12221         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12222         argument.
12223         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12224         argument.
12225         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12226         'self' argument.
12227         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12228         'self' argument.
12229         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12230         'self' argument.
12231         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12232         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12233         'self' argument.
12234         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12235         Add 'self' argument.
12236
12237 2014-02-19  Tom Tromey  <tromey@redhat.com>
12238
12239         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12240         argument.
12241         (target_insert_watchpoint): Add argument.
12242         * target.c (debug_to_insert_watchpoint): Add argument.
12243         (update_current_target): Update.
12244         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12245         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12246         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12247         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12248         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12249         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12250         argument.
12251         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12252         (procfs_insert_hw_watchpoint): Add 'self' argument.
12253         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12254         argument.
12255         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12256         argument.
12257         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12258         argument.
12259         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12260         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12261         argument.
12262         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12263         'self' argument.
12264
12265 2014-02-19  Tom Tromey  <tromey@redhat.com>
12266
12267         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12268         argument.
12269         (target_remove_watchpoint): Add argument.
12270         * target.c (debug_to_remove_watchpoint): Add argument.
12271         (update_current_target): Update.
12272         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12273         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12274         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12275         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12276         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12277         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12278         argument.
12279         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12280         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12281         argument.
12282         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12283         argument.
12284         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12285         argument.
12286         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12287         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12288         argument.
12289         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12290         'self' argument.
12291
12292 2014-02-19  Tom Tromey  <tromey@redhat.com>
12293
12294         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12295         argument.
12296         (target_remove_hw_breakpoint): Add argument.
12297         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12298         (update_current_target): Update.
12299         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12300         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12301         argument.
12302         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12303         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12304         argument.
12305         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12306         'self' argument.
12307
12308 2014-02-19  Tom Tromey  <tromey@redhat.com>
12309
12310         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12311         argument.
12312         (target_insert_hw_breakpoint): Add argument.
12313         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12314         (update_current_target): Update.
12315         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12316         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12317         argument.
12318         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12319         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12320         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12321         argument.
12322         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12323         'self' argument.
12324
12325 2014-02-19  Tom Tromey  <tromey@redhat.com>
12326
12327         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12328         argument.
12329         (target_can_use_hardware_watchpoint): Add argument.
12330         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12331         (update_current_target): Update.
12332         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12333         argument.
12334         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12335         argument.
12336         * remote.c (remote_check_watch_resources): Add 'self' argument.
12337         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12338         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12339         argument.
12340         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12341         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12342         argument.
12343         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12344         argument.
12345         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12346         argument.
12347         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12348         argument.
12349         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12350         argument.
12351         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12352         argument.
12353         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12354         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12355         argument.
12356         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12357         'self' argument.
12358
12359 2014-02-19  Tom Tromey  <tromey@redhat.com>
12360
12361         * target.h (struct target_ops) <to_post_attach>: Add argument.
12362         (target_post_attach): Add argument.
12363         * target.c (debug_to_post_attach): Add argument.
12364         (update_current_target): Update.
12365         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12366         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12367         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12368         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12369         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12370
12371 2014-02-19  Tom Tromey  <tromey@redhat.com>
12372
12373         * windows-nat.c (windows_close): Add 'self' argument.
12374         * tracepoint.c (tfile_close): Add 'self' argument.
12375         * target.h (struct target_ops) <to_close>: Add argument.
12376         * target.c (target_close): Add argument.
12377         (update_current_target): Update.
12378         * remote.c (remote_close): Add 'self' argument.
12379         * remote-sim.c (gdbsim_close): Add 'self' argument.
12380         * remote-mips.c (mips_close): Add 'self' argument.
12381         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12382         * record-full.c (record_full_close): Add 'self' argument.
12383         * record-btrace.c (record_btrace_close): Add 'self' argument.
12384         * monitor.h (monitor_close): Add 'self' argument.
12385         * monitor.c (monitor_close): Add 'self' argument.
12386         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12387         * linux-nat.c (linux_nat_close): Add argument.
12388         * go32-nat.c (go32_close): Add 'self' argument.
12389         * exec.c (exec_close_1): Add 'self' argument.
12390         * ctf.c (ctf_close): Add 'self' argument.
12391         * corelow.c (core_close): Add 'self' argument.
12392         (core_close_cleanup): Update.
12393         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12394         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12395
12396 2014-02-19  Tom Tromey  <tromey@redhat.com>
12397
12398         * remote.c (remote_load): New function.
12399         (init_remote_ops): Use it.
12400
12401 2014-02-19  Tom Tromey  <tromey@redhat.com>
12402
12403         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12404         argument.
12405         * common/linux-btrace.h (linux_supports_btrace): Update.
12406         * remote.c (remote_supports_btrace): Add "self" argument.
12407         * target-delegates.c: Rebuild.
12408         * target.c (target_supports_btrace): Remove.
12409         * target.h (struct target_ops) <to_supports_btrace>: Add
12410         target_ops argument.
12411         (target_supports_btrace): New define.
12412
12413 2014-02-19  Tom Tromey  <tromey@redhat.com>
12414
12415         * record-full.c (record_full_beneath_to_resume_ops)
12416         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12417         (record_full_beneath_to_wait)
12418         (record_full_beneath_to_store_registers_ops)
12419         (record_full_beneath_to_store_registers)
12420         (record_full_beneath_to_xfer_partial_ops)
12421         (record_full_beneath_to_xfer_partial)
12422         (record_full_beneath_to_insert_breakpoint_ops)
12423         (record_full_beneath_to_insert_breakpoint)
12424         (record_full_beneath_to_remove_breakpoint_ops)
12425         (record_full_beneath_to_remove_breakpoint)
12426         (record_full_beneath_to_stopped_by_watchpoint)
12427         (record_full_beneath_to_stopped_data_address)
12428         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12429         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12430         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12431         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12432         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12433         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12434         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12435         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12436         (record_full_resume, record_full_wait_1)
12437         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12438         (record_full_store_registers, record_full_xfer_partial)
12439         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12440         (record_full_async, record_full_core_xfer_partial): Use target
12441         delegation.
12442         * target-delegates.c: Rebuild.
12443         * target.c (current_xfer_partial): Remove.
12444         (update_current_target): Do not INHERIT or de_fault
12445         to_insert_breakpoint, to_remove_breakpoint,
12446         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12447         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12448         (default_xfer_partial): Simplify.
12449         (current_xfer_partial): Remove.
12450         (target_wait, target_resume): Simplify.
12451         (find_default_can_async_p, find_default_is_async_p): Update.
12452         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12453         to_xfer_partial, to_stopped_by_watchpoint,
12454         to_stopped_data_address.
12455         (target_store_registers): Simplify.
12456         (forward_target_remove_breakpoint)
12457         (forward_target_insert_breakpoint): Remove.
12458         (target_remove_breakpoint, target_insert_breakpoint)
12459         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12460         * target.h (struct target_ops) <to_resume, to_wait,
12461         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12462         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12463         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12464         markup.
12465         (forward_target_remove_breakpoint)
12466         (forward_target_insert_breakpoint): Remove.
12467         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12468         directly.
12469         (record_btrace_insert_breakpoint): Delegate directly.
12470
12471 2014-02-19  Tom Tromey  <tromey@redhat.com>
12472
12473         PR build/7701:
12474         * target-delegates.c: New file.
12475         * target.c: Include target-delegates.c.
12476         (init_dummy_target): Call install_dummy_methods.
12477         (complete_target_initialization): Call install_delegators.
12478         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12479         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12480         * make-target-delegates: New file.
12481
12482 2014-02-19  Tom Tromey  <tromey@redhat.com>
12483
12484         * record.c (find_record_target): Use find_target_at.
12485         * target.c (find_target_at): New function.
12486         * target.h (find_target_at): Declare.
12487
12488 2014-02-19  Tom Tromey  <tromey@redhat.com>
12489
12490         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12491         Add 'ops' argument.
12492         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12493         'ops' argument.
12494         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12495         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12496         'ops' argument.
12497         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12498         argument.
12499         * linux-nat.c (save_sigtrap): Update.
12500         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12501         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12502         (linux_nat_close): Update.
12503         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12504         argument.
12505         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12506         argument.
12507         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12508         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12509         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12510         (tmp_to_async): Add 'ops' argument.
12511         (record_full_stopped_by_watchpoint, record_full_async)
12512         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12513         argument.
12514         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12515         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12516         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12517         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12518         (remote_is_async_p, remote_async): Add 'ops' argument.
12519         (remote_stopped_data_address): Update.
12520         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12521         * target.c (update_current_target)
12522         (find_default_can_async_p, find_default_is_async_p): Update.
12523         (init_dummy_target): Update.
12524         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12525         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12526         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12527         (target_can_async_p, target_is_async_p, target_async)
12528         (target_stopped_by_watchpoint): Update.
12529
12530 2014-02-19  Yao Qi  <yao@codesourcery.com>
12531
12532         PR gdb/16220
12533         * gdbarch.sh: Remove startup_gdbarch.
12534         * gdbarch.c: Regenerated.
12535         * gdbarch.h: Likewise.
12536
12537 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12538
12539         * rl78-tdep.c (rl78_g10_register_name): New function.
12540         (rl78_return_value): Add g10 support.
12541         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12542         g10.
12543
12544 2014-02-17  Doug Evans  <xdje42@gmail.com>
12545
12546         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12547         (SUBDIR_GUILE_SRCS): Ditto.
12548         (scm-gsmob.o): Ditto.
12549
12550 2014-02-17  Yao Qi  <yao@codesourcery.com>
12551
12552         * gnu-nat.c (ILL_RPC): Declare defined function.
12553
12554 2014-02-17  Yao Qi  <yao@codesourcery.com>
12555
12556         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12557         mach_msg_type_number_t.
12558         (gnu_write_inferior): Likewise.
12559
12560 2014-02-17  Yao Qi  <yao@codesourcery.com>
12561
12562         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12563         in format string.
12564         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12565         (inf_validate_procs, inf_signal): Likewise.
12566         (S_exception_raise_request): Likewise.
12567         (do_mach_notify_dead_name): Likewise.
12568         (steal_exc_port): Likewise.
12569         (gnu_read_inferior): Change 'copy_count''s type to
12570         mach_msg_type_number_t.
12571         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12572         format string.
12573
12574 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12575
12576         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12577         flag.  Adjust all users; in particular...
12578         (gnu_wait): ..., don't decrement its value in here...
12579         (gnu_create_inferior): ..., and instead set the flag in here,
12580         around the startup_inferior call, and call that one with
12581         START_INFERIOR_TRAPS_EXPECTED.
12582
12583         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12584         (ILL_RPC): ... new macro.
12585         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12586         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12587         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12588         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12589         functions with ILL_RPC macro.
12590         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12591         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12592         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12593         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12594         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12595         (S_proc_getlogin_reply, S_proc_getsid_reply)
12596         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12597         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12598         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12599         (S_proc_getnports_reply, S_proc_is_important_reply)
12600         (S_proc_get_code_reply): New stub functions, generated with
12601         ILL_RPC macro.
12602
12603         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12604         collected the type check structures.
12605
12606         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12607
12608 2014-02-14  Doug Evans  <dje@google.com>
12609
12610         * target.c (target_write_partial): Fix result type.
12611
12612 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12613
12614         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12615         the proper offsets to access fpregset_t.
12616
12617 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12618
12619         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12620         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12621         * h8300-tdep.c (setmachinelist): Remove global.
12622         * hppa-tdep.c (hppa_sigtramp): Remove global.
12623         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12624         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12625         * ravenscar-thread.c (update_target_observer): Remove global.
12626         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12627
12628 2014-02-12  Tom Tromey  <tromey@redhat.com>
12629
12630         * common/rsp-low.c: Update comments.
12631         * common/rsp-low.h: Update comments.
12632
12633 2014-02-12  Tom Tromey  <tromey@redhat.com>
12634
12635         * common/rsp-low.c (convert_ascii_to_int): Remove.
12636         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12637
12638 2014-02-12  Tom Tromey  <tromey@redhat.com>
12639
12640         * common/rsp-low.h (unhexify): Don't declare.
12641         * common/rsp-low.c (unhexify): Remove.
12642
12643 2014-02-12  Tom Tromey  <tromey@redhat.com>
12644
12645         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12646         * common/rsp-low.c (convert_int_to_ascii): Remove.
12647
12648 2014-02-12  Tom Tromey  <tromey@redhat.com>
12649
12650         * common/rsp-low.h (hexify): Don't declare.
12651         * common/rsp-low.c (hexify): Remove.
12652
12653 2014-02-12  Tom Tromey  <tromey@redhat.com>
12654
12655         * common/rsp-low.c (hexify): Never take strlen of argument.
12656
12657 2014-02-12  Tom Tromey  <tromey@redhat.com>
12658
12659         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12660         * remote.c (extended_remote_run, remote_rcmd)
12661         (remote_download_trace_state_variable, remote_save_trace_data)
12662         (remote_set_trace_notes): Update.
12663         * tracepoint.c (encode_source_string, tfile_write_status)
12664         (tfile_write_uploaded_tsv): Update.
12665
12666 2014-02-12  Tom Tromey  <tromey@redhat.com>
12667
12668         * tracepoint.c: Include rsp-low.h.
12669         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12670         * remote.c: Include rsp-low.h.
12671         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12672         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12673         (remote_unescape_input): Move to common/rsp-low.c.
12674         * common/rsp-low.h: New file.
12675         * common/rsp-low.c: New file.
12676         * Makefile.in (SFILES): Add common/rsp-low.c.
12677         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12678         (COMMON_OBS): Add rsp-low.o.
12679         (rsp-low.o): New target.
12680
12681 2014-02-12  Tom Tromey  <tromey@redhat.com>
12682
12683         * utils.h: Include print-utils.h.
12684         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12685         (int_string, core_addr_to_string, core_addr_to_string_nz)
12686         (hex_string, hex_string_custom): Don't declare.
12687         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12688         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12689         (hex_string_custom, int_string, core_addr_to_string)
12690         (core_addr_to_string_nz, host_address_to_string): Move to
12691         common/print-utils.c.
12692         * common/print-utils.h: New file.
12693         * common/print-utils.c: New file
12694         * Makefile.in (SFILES): Add common/print-utils.c.
12695         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12696         (COMMON_OBS): Add print-utils.o.
12697         (print-utils.o): New target.
12698
12699 2014-02-12  Tom Tromey  <tromey@redhat.com>
12700
12701         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12702
12703 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12704
12705         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12706
12707 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12708
12709         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12710         if a PT_IO ptrace request returns sucessfully but indicates that 0
12711         bytes were transferred.
12712
12713 2014-02-12  Pedro Alves  <palves@redhat.com>
12714             Kevin Buettner <kevinb@redhat.com>
12715
12716         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12717         TYPE_INSTANCE_FLAG_CODE_SPACE.
12718
12719 2014-02-12  Pedro Alves  <palves@redhat.com>
12720
12721         * h8300-tdep.c (pseudo_from_raw_register)
12722         (raw_from_pseudo_register): New functions.
12723         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12724         them.
12725
12726 2014-02-12  Pedro Alves  <palves@redhat.com>
12727
12728         * h8300-tdep.c (h8300_register_sim_regno): New function.
12729         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12730         gdbarch_register_sim_regno hook.
12731
12732 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12733
12734         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12735
12736 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12737
12738         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12739
12740 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12741
12742         * obsd-tdep.h (obsd_init_abi): New prototype.
12743         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12744         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12745         (obsd_init_abi): New functions.
12746         * i386obsd-tdep.c: Include "obsd-tdep.h".
12747         (i386obsd_init_abi): Call obsd_init_abi.
12748         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12749         (amd64obsd_init_abi): Call obsd_init_abi.
12750         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12751         obsd-tdep.c to gdb_target_obs.
12752
12753 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12754
12755         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12756         double float arguments to 16-byte in the argument slots.
12757
12758 2014-02-11  Doug Evans  <xdje42@gmail.com>
12759
12760         * configure.ac: Don't crash if pkg-config is not found and guile
12761         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12762         in guile checks.
12763         * configure: Regenerate.
12764
12765 2014-02-11  Yao Qi  <yao@codesourcery.com>
12766
12767         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12768         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12769         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12770         * gnu-nat.c (gnu_xfer_memory): Likewise.
12771         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12772         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12773         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12774         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12775
12776 2014-02-11  Yao Qi  <yao@codesourcery.com>
12777
12778         * target.h (enum target_xfer_error): Rename to ...
12779         (enum target_xfer_status): ... it.  New.  All users updated.
12780         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12781         New.
12782         (TARGET_XFER_STATUS_ERROR_P): New macro.
12783         (target_xfer_error_to_string): Remove declaration.
12784         (target_xfer_status_to_string): Declare.
12785         (target_xfer_partial_ftype): Adjust it.
12786         (struct target_ops) <to_xfer_partial>: Return
12787         target_xfer_status.  Add argument xfered_len.  Update
12788         comments.
12789         * target.c (target_xfer_error_to_string): Rename to ...
12790         (target_xfer_status_to_string): ... it.  New.  All callers
12791         updated.
12792         (target_read_live_memory): Likewise.  Call target_xfer_partial
12793         instead of target_read.
12794         (memory_xfer_live_readonly_partial): Return
12795         target_xfer_status.  Add argument xfered_len.
12796         (raw_memory_xfer_partial): Likewise.
12797         (memory_xfer_partial_1): Likewise.
12798         (memory_xfer_partial): Likewise.
12799         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12800         properly.  Update debug message.
12801         (default_xfer_partial, current_xfer_partial): Likewise.
12802         (target_write_partial): Likewise.
12803         (target_read_partial): Likewise.  All callers updated.
12804         (read_whatever_is_readable): Likewise.
12805         (target_write_with_progress): Likewise.
12806         (target_read_alloc_1): Likewise.
12807
12808         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12809         * auxv.c (procfs_xfer_auxv): Likewise.
12810         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12811         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12812         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12813         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12814         * corefile.c (read_memory): Adjust.
12815         * corelow.c (core_xfer_partial): Likewise.
12816         * ctf.c (ctf_xfer_partial): Likewise.
12817         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12818         updated.
12819         (darwin_xfer_partial): Likewise.
12820         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12821         callers updated.
12822         (exec_xfer_partial): Likewise.
12823         * exec.h (section_table_xfer_memory_partial): Update
12824         declaration.
12825         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12826         negative.
12827         (gnu_xfer_partial): Likewise.
12828         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12829         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12830         (ia64_hpux_xfer_solib_got): Likewise.
12831         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12832         type of 'partial_len' to ULONGEST.
12833         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12834         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12835         (linux_nat_xfer_partial): Likewise.
12836         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12837         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12838         * monitor.c (monitor_xfer_memory): Likewise.
12839         (monitor_xfer_partial): Likewise.
12840         * procfs.c (procfs_xfer_partial): Likewise.
12841         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12842         * record-full.c (record_full_xfer_partial): Likewise.
12843         (record_full_core_xfer_partial): Likewise.
12844         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12845         (gdbsim_xfer_partial): Likewise.
12846         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12847         updated.
12848         (remote_write_bytes, remote_read_bytes): Likewise.  All
12849         callers updated.
12850         (remote_flash_erase): Likewise.  All callers updated.
12851         (remote_write_qxfer): Likewise.  All callers updated.
12852         (remote_read_qxfer): Likewise.  All callers updated.
12853         (remote_xfer_partial): Likewise.
12854         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12855         (rs6000_xfer_shared_libraries): Likewise.
12856         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12857         (sol_thread_xfer_partial): Likewise.
12858         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12859         (sparc_xfer_partial): Likewise.
12860         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12861         updated.
12862         (spu_xfer_partial): Likewise.
12863         * spu-multiarch.c (spu_xfer_partial): Likewise.
12864         * tracepoint.c (tfile_xfer_partial): Likewise.
12865         * windows-nat.c (windows_xfer_memory): Likewise.
12866         (windows_xfer_shared_libraries): Likewise.
12867         (windows_xfer_partial): Likewise.
12868         * valprint.c: Replace 'target_xfer_error' with
12869         'target_xfer_status' in comments.
12870
12871 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12872
12873         Checked in by Joel Brobecker <brobecker@adacore.com>.
12874         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12875
12876 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12877
12878         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12879         function parameters.
12880
12881 2014-02-10  Will Newton  <will.newton@linaro.org>
12882
12883         * elfread.c (elf_rel_plt_read): Look for a .got section if
12884         looking up .got.plt fails.
12885         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12886         on address passed to elf_gnu_ifunc_record_cache.
12887         (elf_gnu_ifunc_resolve_addr): Likewise.
12888         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12889
12890 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12891
12892         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12893         (X_RETTURN): New macro.
12894         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12895
12896         * sparc64-tdep.c (sparc64_init_abi): Hook
12897         sparc_in_function_epilogue_p.
12898
12899 2014-02-10  Gary Benson  <gbenson@redhat.com>
12900
12901         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12902         Rename name_matcher to symbol_matcher.
12903
12904 2014-02-10  Gary Benson  <gbenson@redhat.com>
12905
12906         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12907         Use expand_symtabs_file_matcher_ftype and
12908         expand_symtabs_symbol_matcher_ftype.
12909
12910 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12911
12912         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12913         (struct ada_symbol_cache): New.
12914         (ada_free_symbol_cache): Forward declare.
12915         (struct ada_pspace_data): New.
12916         (ada_pspace_data_handle): New static global.
12917         (get_ada_pspace_data, ada_pspace_data_cleanup)
12918         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12919         (cache_space, cache): Delete, now folded inside struct
12920         ada_pspace_data.
12921         (ada_get_symbol_cache): New function.
12922         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12923         implementation.
12924         (_initialize_ada_language): Remove initialization of cache_space.
12925         Move call to observer_attach_inferior_exit up, grouping it
12926         with the other observer registrations inside this function.
12927         Rename command to be more general.  Add call to
12928         register_program_space_data_with_cleanup.
12929
12930 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12931
12932         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12933         ada_new_objfile_observer.
12934         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12935         (_initialize_tasks): Update uses of ada_new_objfile_observer
12936         and ada_tasks_normal_stop_observer.
12937
12938 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12939
12940         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12941         returned by the 'Length attribute to integer.
12942
12943 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12944
12945         * ada-lang.c (_initialize_ada_language): Initialize
12946         cache_space obstack.
12947
12948 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12949
12950         * ada-lang.c (HASH_SIZE): New macro.
12951         (struct cache_entry): New type.
12952         (cache_space, cache): New static globals.
12953         (ada_clear_symbol_cache, find_entry): New functions.
12954         (lookup_cached_symbol, cache_symbol): Implement.
12955         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12956         (_initialize_ada_language): Attach ada_new_objfile_observer
12957         and ada_free_objfile_observer.
12958
12959 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12960
12961         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12962         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12963         struct block * parameter.
12964         (ada_lookup_symbol_list_worker): Constify local variable "block".
12965         Remove cast which is no longer necessary.
12966
12967 2014-02-10  Doug Evans  <xdje42@gmail.com>
12968
12969         Add Guile as an extension language.
12970         * NEWS: Mention Guile scripting.
12971         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12972         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12973         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12974         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12975         (CLIBS): Add GUILE_LIBS.
12976         (install-guile): New rule.
12977         (guile.o): New rule.
12978         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12979         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12980         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12981         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12982         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12983         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12984         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12985         * configure.ac: New option --with-guile.
12986         * configure: Regenerate.
12987         * config.in: Regenerate.
12988         * auto-load.c: Remove #include "python/python.h".  Add #include
12989         "gdb/section-scripts.h".
12990         (source_section_scripts): Handle Guile scripts.
12991         (_initialize_auto_load): Add name of Guile objfile script to
12992         scripts-directory help text.
12993         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12994         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12995         (struct breakpoint): New member scm_bp_object.
12996         * defs.h (enum command_control_type): New value guile_control.
12997         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12998         "extension.h".
12999         (show_user): Update comment.
13000         (_initialize_cli_cmds): Update help text for "show user".  Update help
13001         text for max-user-call-depth.
13002         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13003         "extension.h".
13004         (multi_line_command_p): Add guile_control.
13005         (print_command_lines): Handle guile_control.
13006         (execute_control_command, recurse_read_control_structure): Ditto.
13007         (process_next_line): Recognize "guile" commands.
13008         * disasm.c (gdb_disassemble_info): Make non-static.
13009         * disasm.h: #include "dis-asm.h".
13010         (struct gdbarch): Add forward decl.
13011         (gdb_disassemble_info): Declare.
13012         * extension.c: #include "guile/guile.h".
13013         (extension_languages): Add guile.
13014         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13015         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13016         * gdbtypes.c (get_unsigned_type_max): New function.
13017         (get_signed_type_minmax): New function.
13018         * gdbtypes.h (get_unsigned_type_max): Declare.
13019         (get_signed_type_minmax): Declare.
13020         * guile/README: New file.
13021         * guile/guile-internal.h: New file.
13022         * guile/guile.c: New file.
13023         * guile/guile.h: New file.
13024         * guile/scm-arch.c: New file.
13025         * guile/scm-auto-load.c: New file.
13026         * guile/scm-block.c: New file.
13027         * guile/scm-breakpoint.c: New file.
13028         * guile/scm-disasm.c: New file.
13029         * guile/scm-exception.c: New file.
13030         * guile/scm-frame.c: New file.
13031         * guile/scm-gsmob.c: New file.
13032         * guile/scm-iterator.c: New file.
13033         * guile/scm-lazy-string.c: New file.
13034         * guile/scm-math.c: New file.
13035         * guile/scm-objfile.c: New file.
13036         * guile/scm-ports.c: New file.
13037         * guile/scm-pretty-print.c: New file.
13038         * guile/scm-safe-call.c: New file.
13039         * guile/scm-string.c: New file.
13040         * guile/scm-symbol.c: New file.
13041         * guile/scm-symtab.c: New file.
13042         * guile/scm-type.c: New file.
13043         * guile/scm-utils.c: New file.
13044         * guile/scm-value.c: New file.
13045         * guile/lib/gdb.scm: New file.
13046         * guile/lib/gdb/boot.scm: New file.
13047         * guile/lib/gdb/experimental.scm: New file.
13048         * guile/lib/gdb/init.scm: New file.
13049         * guile/lib/gdb/iterator.scm: New file.
13050         * guile/lib/gdb/printing.scm: New file.
13051         * guile/lib/gdb/types.scm: New file.
13052         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13053         (VPATH): Add $(GUILE_SRCDIR).
13054         (GUILE_DIR): New variable.
13055         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13056         (all): Add stamp-guile dependency.
13057         (stamp-guile): New rule.
13058         (clean-guile, install-guile, uninstall-guile): New rules.
13059         (install-only): Add install-guile dependency.
13060         (uninstall): Add uninstall-guile dependency.
13061         (clean): Add clean-guile dependency.
13062
13063 2014-02-09  Doug Evans  <xdje42@gmail.com>
13064
13065         Revert this patch (which I approved, mea culpa).
13066
13067         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13068
13069         * Makefile.in (all-lib): Remove.
13070         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13071
13072 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13073
13074         Fix Python stack corruption.
13075         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13076         gdb_py_longest.
13077
13078 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13079
13080         * Makefile.in (all-lib): Remove.
13081         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13082
13083 2014-02-07  Doug Evans  <dje@google.com>
13084
13085         * extension-priv.h (extension_language_script_ops): Add comment.
13086         (extension_language_ops): Add comment.
13087         (active_ext_lang_state): Fix typo in comment.
13088
13089 2014-02-07  Pedro Alves  <palves@redhat.com>
13090
13091         PR breakpoints/16292
13092         * infrun.c (handle_signal_stop) <signal arrives while stepping
13093         over a breakpoint>: Switch back to the stepping thread.
13094
13095 2014-02-07  Yao Qi  <yao@codesourcery.com>
13096
13097         * target.c (target_xfer_partial): Return zero if LEN is zero.
13098
13099 2014-02-07  Yao Qi  <yao@codesourcery.com>
13100
13101         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13102         (ld_so_xfer_auxv): Likewise.
13103         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13104         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13105         * corelow.c (core_xfer_partial): Likewise.
13106         * ctf.c (ctf_xfer_partial): Likewise.
13107         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13108         (darwin_xfer_partial): Likewise.
13109         * exec.c (exec_xfer_partial): Likewise.
13110         * gnu-nat.c (gnu_xfer_partial): Likewise.
13111         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13112         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13113         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13114         * linux-nat.c (linux_xfer_siginfo): Likewise.
13115         (linux_proc_xfer_spu): Likewise.
13116         * procfs.c (procfs_xfer_partial): Likewise.
13117         * record-full.c (record_full_xfer_partial): Likewise.
13118         (record_full_core_xfer_partial): Likewise.
13119         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13120         * remote.c (remote_write_qxfer): Likewise.
13121         (remote_write_qxfer, remote_read_qxfer): Likewise.
13122         (remote_xfer_partial): Likewise.
13123         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13124         (rs6000_xfer_shared_libraries): Likewise.
13125         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13126         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13127         (spu_xfer_partial): Likewise.
13128         * target.c (memory_xfer_partial_1): Likewise.
13129         * tracepoint.c (tfile_xfer_partial): Likewise.
13130         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13131         (windows_xfer_partial): Likewise.
13132
13133 2014-02-07  Yao Qi  <yao@codesourcery.com>
13134
13135         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13136         comments.
13137         (core_xfer_shared_libraries_aix): Likewise.
13138         * gdbarch.c, gdbarch.h: Regenerated.
13139         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13140         ULONGEST.  Change 'len_avail' type to ULONGEST.
13141         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13142         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13143         declaration.
13144         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13145
13146 2014-02-07  Yao Qi  <yao@codesourcery.com>
13147
13148         * corefile.c (memory_error): Get 'exception' from ERR and pass
13149         'exception' to throw_error.
13150
13151 2014-02-06  Doug Evans  <xdje42@gmail.com>
13152
13153         * configure.ac (libpython checking): Remove all but python.o from
13154         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13155         * configure: Regenerate.
13156
13157         * Makefile.in (SFILES): Add extension.c.
13158         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13159         (COMMON_OBS): Add extension.o.
13160         * extension.h: New file.
13161         * extension-priv.h: New file.
13162         * extension.c: New file.
13163
13164         * python/python-internal.h: #include "extension.h".
13165         (gdbpy_auto_load_enabled): Declare.
13166         (gdbpy_apply_val_pretty_printer): Declare.
13167         (gdbpy_apply_frame_filter): Declare.
13168         (gdbpy_preserve_values): Declare.
13169         (gdbpy_breakpoint_cond_says_stop): Declare.
13170         (gdbpy_breakpoint_has_cond): Declare.
13171         (void source_python_script_for_objfile): Delete.
13172         * python/python.c: #include "extension-priv.h".
13173         Delete inclusion of "observer.h".
13174         (extension_language_python): Moved here and renamed from
13175         script_language_python in py-auto-load.c.
13176         Redefined to be of type extension_language_defn.
13177         (python_extension_script_ops): New global.
13178         (python_extension_ops): New global.
13179         (struct python_env): New member previous_active.
13180         (restore_python_env): Call restore_active_ext_lang.
13181         (ensure_python_env): Call set_active_ext_lang.
13182         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13183         New arg extlang.
13184         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13185         New arg extlang.
13186         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13187         New arg extlang.
13188         (gdbpy_eval_from_control_command): Renamed from
13189         eval_python_from_control_command, made static.  New arg extlang.
13190         (gdbpy_source_script) Renamed from source_python_script, made static.
13191         New arg extlang.
13192         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13193         result to int.  New arg extlang.
13194         (gdbpy_source_objfile_script): Renamed from
13195         source_python_script_for_objfile, made static.  New arg extlang.
13196         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13197         static.  New args extlang, extlang_printers.  Change result type to
13198         "void".
13199         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13200         static.  New arg extlang.  Rename arg printers to extlang_printers
13201         and change type to ext_lang_type_printers *.
13202         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13203         static.  Replace argument arg with extlang, extlang_printers.
13204         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13205         (!HAVE_PYTHON, source_python_script): Delete.
13206         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13207         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13208         (!HAVE_PYTHON, start_type_printers): Delete.
13209         (!HAVE_PYTHON, apply_type_printers): Delete.
13210         (!HAVE_PYTHON, free_type_printers): Delete.
13211         (_initialize_python): Delete call to observer_attach_before_prompt.
13212         (finalize_python): Set/restore active extension language.
13213         (gdbpy_finish_initialization) Renamed from
13214         finish_python_initialization, made static.  New arg extlang.
13215         (gdbpy_initialized): New function.
13216         * python/python.h: #include "extension.h".  Delete #include
13217         "value.h", "mi/mi-cmds.h".
13218         (extension_language_python): Declare.
13219         (GDBPY_AUTO_FILE_NAME): Delete.
13220         (enum py_bt_status): Moved to extension.h and renamed to
13221         ext_lang_bt_status.
13222         (enum frame_filter_flags): Moved to extension.h.
13223         (enum py_frame_args): Moved to extension.h and renamed to
13224         ext_lang_frame_args.
13225         (finish_python_initialization): Delete.
13226         (eval_python_from_control_command): Delete.
13227         (source_python_script): Delete.
13228         (apply_val_pretty_printer): Delete.
13229         (apply_frame_filter): Delete.
13230         (preserve_python_values): Delete.
13231         (gdbpy_script_language_defn): Delete.
13232         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13233         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13234
13235         * auto-load.c: #include "extension.h".
13236         (GDB_AUTO_FILE_NAME): Delete.
13237         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13238         (script_language_gdb): Delete, moved to extension.c and renamed to
13239         extension_language_gdb.
13240         (source_gdb_script_for_objfile): Delete.
13241         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13242         (loaded_script): Change type of language member to
13243         struct extension_language_defn *.
13244         (init_loaded_scripts_info): Initialize
13245         unsupported_script_warning_printed.
13246         (maybe_add_script): Make static.  Change type of language arg to
13247         struct extension_language_defn *.
13248         (clear_section_scripts): Reset unsupported_script_warning_printed.
13249         (auto_load_objfile_script_1): Rewrite to use extension language API.
13250         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13251         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13252         (source_section_scripts): Rewrite to use extension language API.
13253         (load_auto_scripts_for_objfile): Rewrite to use
13254         auto_load_scripts_for_objfile.
13255         (collect_matching_scripts_data): Change type of language member to
13256         struct extension_language_defn *.
13257         (auto_load_info_scripts): Change type of language arg to
13258         struct extension_language_defn *.
13259         (unsupported_script_warning_print): New function.
13260         (script_not_found_warning_print): Make static.
13261         (_initialize_auto_load): Rewrite construction of scripts-directory
13262         help.
13263         * auto-load.h (struct objfile): Add forward decl.
13264         (struct script_language): Delete.
13265         (struct auto_load_pspace_info): Add forward decl.
13266         (struct extension_language_defn): Add forward decl.
13267         (maybe_add_script): Delete.
13268         (auto_load_objfile_script): Declare.
13269         (script_not_found_warning_print): Delete.
13270         (auto_load_info_scripts): Update prototype.
13271         (auto_load_gdb_scripts_enabled): Declare.
13272         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13273         auto_load_python_scripts_enabled and made public.
13274         (script_language_python): Delete, moved to python.c.
13275         (gdbpy_script_language_defn): Delete.
13276         (info_auto_load_python_scripts): Update to use
13277         extension_language_python.
13278
13279         * breakpoint.c (condition_command): Replace call to
13280         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13281         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13282         with call to breakpoint_ext_lang_cond_says_stop.
13283         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13284         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13285         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13286         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13287         New arg slang.
13288         (local_setattro): Print name of extension language with existing
13289         stop condition.
13290
13291         * valprint.c (val_print, value_print): Update to call
13292         apply_ext_lang_val_pretty_printer.
13293         * cp-valprint.c (cp_print_value): Update call to
13294         apply_ext_lang_val_pretty_printer.
13295         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13296         (gdbpy_apply_val_pretty_printer): Renamed from
13297         apply_val_pretty_printer.  New arg extlang.
13298         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13299
13300         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13301         extension language API.
13302         * cli/cli-script.c (execute_control_command): Update to call
13303         eval_ext_lang_from_control_command.
13304
13305         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13306         enum ext_lang_bt_status values.  Update call to
13307         apply_ext_lang_frame_filter.
13308         (mi_cmd_stack_list_locals): Ditto.
13309         (mi_cmd_stack_list_args): Ditto.
13310         (mi_cmd_stack_list_variables): Ditto.
13311         * mi/mi-main.c: Delete #include "python/python-internal.h".
13312         Add #include "extension.h".
13313         (mi_cmd_list_features): Replace reference to python internal variable
13314         gdb_python_initialized with call to ext_lang_initialized_p.
13315
13316         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13317         Update to use enum ext_lang_frame_args.  Update to call
13318         apply_ext_lang_frame_filter.
13319         * python/py-framefilter.c (extract_sym): Update to use enum
13320         ext_lang_bt_status.
13321         (extract_value, py_print_type, py_print_value): Ditto.
13322         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13323         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13324         (py_print_frame): Ditto.
13325         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13326         New arg extlang.  Update to use enum ext_lang_bt_status.
13327
13328         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13329         finish_python_initialization.  Replace with call to
13330         finish_ext_lang_initialization.
13331
13332         * typeprint.c (do_free_global_table): Update to call
13333         free_ext_lang_type_printers.
13334         (create_global_typedef_table): Update to call
13335         start_ext_lang_type_printers.
13336         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13337         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13338         (type_print_options): Change type of global_printers from "void *"
13339         to "struct ext_lang_type_printers *".
13340
13341         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13342         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13343         (gdbpy_preserve_values): Renamed from preserve_python_values.
13344         New arg extlang.
13345         (!HAVE_PYTHON, preserve_python_values): Delete.
13346
13347         * utils.c (quit_flag): Delete, moved to extension.c.
13348         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13349         extension.c.
13350
13351         * eval.c: Delete #include "python/python.h".
13352         * main.c: Delete #include "python/python.h".
13353
13354         * defs.h: Update comment.
13355
13356 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13357
13358         GDB 7.7 released.
13359
13360 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13361
13362         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13363         defined.
13364
13365 2014-02-05  Yao Qi  <yao@codesourcery.com>
13366
13367         * remote.c (remote_pass_signals): Remove local 'buf' and use
13368         rs->buf.
13369         (remote_program_signals): Likewise.
13370
13371 2014-02-05  Yao Qi  <yao@codesourcery.com>
13372
13373         * ctf.c: Include "inferior.h" and "gdbthread.h".
13374         (CTF_PID): A new macro.
13375         (ctf_open): Call inferior_appeared and add_thread_silent.
13376         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13377         (ctf_thread_alive): New function.
13378         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13379
13380 2014-02-05  Yao Qi  <yao@codesourcery.com>
13381
13382         Revert this patch:
13383
13384         2013-05-24  Yao Qi  <yao@codesourcery.com>
13385
13386         * tracepoint.c (TFILE_PID): Remove.
13387         (tfile_open): Don't add thread and inferior.
13388         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13389         exit_inferior_silent.
13390         (tfile_thread_alive): Remove.
13391         (init_tfile_ops): Don't set field 'to_thread_alive' of
13392         tfile_ops.
13393
13394 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13395
13396         * remote.c (remote_start_remote): Call remote_check_symbols even
13397         if only symbol-file (not file) has been given.
13398
13399 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13400
13401         * gdbarch.sh (skip_entrypoint): New callback.
13402         * gdbarch.c, gdbarch.h: Regenerate.
13403         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13404         * infrun.c (fill_in_stop_func): Likewise.
13405         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13406         (ppc_elfv2_elf_make_msymbol_special): New function.
13407         (ppc_elfv2_skip_entrypoint): Likewise.
13408         (ppc_linux_init_abi): Install them for ELFv2.
13409
13410 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13411
13412         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13413         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13414         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13415         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13416         structures returned in GPRs.
13417
13418 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13419
13420         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13421         offset to the stack parameter list for the ELFv2 ABI.
13422
13423 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13424
13425         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13426         set_gdbarch_convert_from_func_ptr_addr and
13427         set_gdbarch_elf_make_msymbol_special for ELFv1.
13428         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13429         function descriptors on ELFv1.
13430         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13431         set up r12 at function entry.
13432
13433 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13434
13435         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13436         (struct gdbarch_tdep): New member elf_abi.
13437
13438         * rs6000-tdep.c: Include "elf/ppc64.h".
13439         (rs6000_gdbarch_init): Detect ELF ABI version.
13440
13441 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13442
13443         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13444         within a register pair holding a DFP 128-bit value on little-endian.
13445         (ppc64_sysv_abi_return_value_base): Likewise.
13446         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13447         (dfp_pseudo_register_write): Likewise.
13448
13449 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13450
13451         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13452         offset on little-endian when passing _Decimal32.
13453         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13454
13455 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13456
13457         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13458         of the overlapped FP register within the VSX register on little-
13459         endian platforms.
13460         (efpr_pseudo_register_write): Likewise.
13461
13462 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13463
13464         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13465         offset on little-endian when passing small structures.
13466
13467 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13468
13469         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13470         (struct ppc64_sysv_argpos): New data structure.
13471         (ppc64_sysv_abi_push_float): Remove.
13472         (ppc64_sysv_abi_push_val): New function.
13473         (ppc64_sysv_abi_push_integer): Likewise.
13474         (ppc64_sysv_abi_push_freg): Likewise.
13475         (ppc64_sysv_abi_push_vreg): Likewise.
13476         (ppc64_sysv_abi_push_param): Likewise.
13477         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13478         (ppc64_sysv_abi_return_value_base): New function.
13479         (ppc64_sysv_abi_return_value): Refactor to use it.
13480
13481 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13482
13483         * NEWS: Document new target powerpc64le-*-linux*.
13484
13485 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13486
13487         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13488         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13489         core dumps.
13490         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13491         register set used in ELF core dumps.  Add floating-point register set.
13492
13493 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13494
13495         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13496         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13497         penultimate entry from number representing the PC register
13498         to symbolic constant representing the MDR register.  Add
13499         constant for the PC register to the end of the table.
13500
13501 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13502
13503         * bsd-kvm.c: Include <sys/param.h>
13504
13505 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13506
13507         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13508
13509 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13510
13511         * ada-lang.h (clear_ada_sym_cache): Delete.
13512
13513 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13514
13515         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13516
13517 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13518
13519         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13520           the sigreturn register save area only if the syscall is
13521           sigreturn.
13522
13523 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13524
13525         * valops.c (value_slice): Minor reformatting.
13526
13527 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13528
13529         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13530
13531 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13532
13533         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13534         New static globals.
13535         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13536         (ada_ignore_descriptive_types_p): New static global.
13537         (find_parallel_type_by_descriptive_type): Return immediately
13538         if ada_ignore_descriptive_types_p is set.
13539         (_initialize_ada_language): Register new commands "maintenance
13540         set ada", "maintenance show ada", "maintenance set ada
13541         ignore-descriptive-types" and "maintenance show ada
13542         ignore-descriptive-types".
13543         * NEWS: Add entry for new "maint ada set/show
13544         ignore-descriptive-types" commands.
13545
13546 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13547
13548         * record-btrace.c (record_btrace_close): Call btrace_teardown
13549         for all threads.
13550
13551 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13552
13553         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13554         "ui-out.h".
13555
13556 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13557
13558         * ada-typeprint (type_is_full_subrange_of_target_type):
13559         New function.
13560         (print_range): Add parameter bounds_prefered_p.  If not set,
13561         try printing range types using the name of their base type.
13562         (print_range_type): Add parameter bounds_prefered_p.
13563         Use it in call to print_range.
13564         (print_array_type, ada_print_type): Update calls to print_range
13565         and print_range_type.
13566
13567 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13568
13569         * ada-typeprint.c (print_array_type, print_choices, print_range)
13570         (print_range_bound, print_dynamic_range_bound, print_range_type):
13571         Remove declaration.
13572
13573 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13574
13575         * ada-typeprint.c (print_range): Add missing empty line
13576         after local declaration.
13577
13578 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13579
13580         * ada-valprint.c (print_optional_low_bound): Get index_type's
13581         target type for as long as it is a TYPE_CODE_RANGE.
13582
13583 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13584
13585         * procfs.c (procfs_make_note_section): Remove assertion and
13586         associated comment.
13587
13588 2014-01-24  Yao Qi  <yao@codesourcery.com>
13589
13590         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13591         * corelow.c (get_core_siginfo): Likewise.
13592
13593 2014-01-24  Yao Qi  <yao@codesourcery.com>
13594
13595         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13596         ULONGEST.  Don't check 'len' is negative.
13597         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13598
13599 2014-01-23  Tom Tromey  <tromey@redhat.com>
13600
13601         PR python/16485:
13602         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13603         Handle exception from frame.block.
13604         (FrameVars.fetch_frame_locals): Likewise.
13605
13606 2014-01-23  Tom Tromey  <tromey@redhat.com>
13607
13608         PR python/16487:
13609         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13610         on a NULL pointer.  Move "goto error" to correct place.
13611
13612 2014-01-23  Tom Tromey  <tromey@redhat.com>
13613
13614         PR python/16491:
13615         * python/py-framefilter.c (apply_frame_filter): Call
13616         ensure_python_env after computing gdbarch.
13617
13618 2014-01-23  Yao Qi  <yao@codesourcery.com>
13619
13620         * target.c (raw_memory_xfer_partial): Change argument type
13621         from void * to gdb_byte *.
13622         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13623
13624 2014-01-22  Doug Evans  <dje@google.com>
13625
13626         New gdbserver option --debug-format=timestamp.
13627         * NEWS: Mention it.
13628
13629 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13630
13631         * syscalls/s390x-linux.xml: New file.
13632         * syscalls/s390-linux.xml: New file.
13633         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13634         (XML_SYSCALL_FILENAME_S390X): Likewise.
13635         (op_svc): New enum value for SVC opcode.
13636         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13637         (s390_linux_get_syscall_number): New function.
13638         (s390_gdbarch_init): Register '*get_syscall_number' and the
13639         syscall xml file name.
13640         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13641         "s390-linux.xml" and "s390x-linux.xml".
13642         * NEWS: Announce new feature.
13643
13644 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13645
13646         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13647
13648 2014-01-22  Pedro Alves  <palves@redhat.com>
13649
13650         * xtensa-config.c: Include defs.h.
13651
13652 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13653
13654         * common/common-utils.h: Add "ARI:" comment beside __func__
13655         reference.
13656
13657 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13658
13659         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13660         documentation a bit.
13661
13662 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13663
13664         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13665         * configure: Regenerate.
13666         * aclocal.m4: Regenerate.
13667         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13668         New substituted variables.
13669         (install-strip): New target.
13670         (INSTALL_SCRIPT): New substituted variable.
13671         (FLAGS_TO_PASS): Add it.
13672         (install-only): Use $(INSTALL_SCRIPT) rather than
13673         $(INSTALL_PROGRAM) for gcore.
13674
13675 2014-01-20  Tom Tromey  <tromey@redhat.com>
13676
13677         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13678         together.
13679
13680 2014-01-20  Tom Tromey  <tromey@redhat.com>
13681
13682         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13683         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13684         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13685         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13686         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13687         (struct cmd_list_element) <flags>: Remove.
13688         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13689         doc_allocated>: New fields.
13690         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13691         bitfields.
13692         * maint.c (maintenance_do_deprecate): Update.
13693         * top.c (execute_command): Update.
13694
13695 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13696
13697         * xtensa-linux-nat.c: Include asm/ptrace.h.
13698
13699 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13700
13701         * Makefile.in (SFILES): Add d-support.c.
13702         (COMMON_OBS): Add d-support.o.
13703         * d-lang.h (d_parse_symbol): Add comment, now defined in
13704         d-support.c.
13705         * d-lang.c (parse_call_convention)
13706         (parse_attributes, parse_function_types)
13707         (parse_function_args, parse_type, parse_identifier)
13708         (call_convention_p, d_parse_symbol): Move functions to ...
13709         * d-support.c: ... New file.
13710
13711 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13712
13713         * d-lang.h (d_parse_symbol): Add declaration.
13714         * d-lang.c (extract_identifiers)
13715         (extract_type_info): Remove functions.
13716         (parse_call_convention, parse_attributes)
13717         (parse_function_types, parse_function_args)
13718         (parse_type, parse_identifier, call_convention_p)
13719         (d_parse_symbol): New functions.
13720         (d_demangle): Use d_parse_symbol to demangle D symbols.
13721
13722 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13723
13724         * d-lang.h (struct builtin_d_type): New data type.
13725         (builtin_d_type): Add declaration.
13726         * d-lang.c (d_language_arch_info, build_d_types)
13727         (builtin_d_type): New functions.
13728         (enum d_primitive_types): New data type.
13729         (d_language_defn): Change c_language_arch_info to
13730         d_language_arch_info.
13731         (d_type_data): New static variable.
13732         (_initialize_d_language): Initialize d_type_data.
13733
13734 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13735
13736         * d-lang.h (d_main_name): Add declaration.
13737         * d-lang.c (d_main_name): New function.
13738         * symtab.c (find_main_name): Add call to d_main_name.
13739
13740 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13741
13742         * d-lang.c (d_language_defn): Change macro_expansion_c to
13743         macro_expansion_no.
13744
13745 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13746
13747         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13748
13749 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13750
13751         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13752         gdb_exception" declaration.
13753         * remote.c (getpkt_or_notif_sane): Likewise.
13754
13755 2014-01-17  Doug Evans  <dje@google.com>
13756
13757         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13758         function, contents of dirnames_to_char_ptr_vec_append moved here.
13759         (delim_string_to_char_ptr_vec): New function.
13760         (dirnames_to_char_ptr_vec_append): Rewrite.
13761         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13762
13763 2014-01-17  Doug Evans  <dje@google.com>
13764
13765         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13766         and moved here ...
13767         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13768         #include "common-utils.h".
13769         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13770         * common/vec.h (VEC_ASSERT_PASS): Update.
13771         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13772         (MACH_CHECK_ERROR): Update.
13773
13774 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13775
13776         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13777         comments.
13778         * gdbarch.h: Regenerate.
13779
13780 2014-01-16  Tom Tromey  <tromey@redhat.com>
13781
13782         * value.c (struct value) <regnum>: Move earlier.
13783
13784 2014-01-16  Tom Tromey  <tromey@redhat.com>
13785
13786         * remote.c (extended_remote_create_inferior): Rename from
13787         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13788         old implementation.
13789
13790 2014-01-16  Pedro Alves  <palves@redhat.com>
13791
13792         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13793         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13794         the backchain.
13795
13796 2014-01-16  Doug Evans  <dje@google.com>
13797
13798         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13799
13800 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13801
13802         * btrace.h (btrace_thread_flag): New.
13803         (struct btrace_thread_info) <flags>: New.
13804         * record-btrace.c (record_btrace_resume_thread)
13805         (record_btrace_find_thread_to_move, btrace_step_no_history)
13806         (btrace_step_stopped, record_btrace_start_replaying)
13807         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13808         (record_btrace_find_resume_thread): New.
13809         (record_btrace_resume, record_btrace_wait): Extend.
13810         (record_btrace_can_execute_reverse): New.
13811         (record_btrace_open): Fail in non-stop mode.
13812         (record_btrace_set_replay): Split into this, ...
13813         (record_btrace_stop_replaying): ... this, ...
13814         (record_btrace_clear_histories): ... and this.
13815         (init_record_btrace_ops): Init to_can_execute_reverse.
13816         * NEWS: Announce it.
13817
13818 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13819
13820         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13821         (forward_target_decr_pc_after_break)
13822         (target_decr_pc_after_break): New.
13823         * target.c (forward_target_decr_pc_after_break)
13824         (target_decr_pc_after_break): New.
13825         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13826         instead of gdbarch_decr_pc_after_break.
13827         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13828         instead of gdbarch_decr_pc_after_break.
13829         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13830         instead of gdbarch_decr_pc_after_break.
13831         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13832         instead of gdbarch_decr_pc_after_break.
13833         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13834         instead of gdbarch_decr_pc_after_break.
13835         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13836         instead of gdbarch_decr_pc_after_break.
13837
13838 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13839
13840         * btrace.c: Include regcache.h.
13841         (btrace_add_pc): New.
13842         (btrace_enable): Call btrace_add_pc.
13843         (btrace_is_empty): New.
13844         * btrace.h (btrace_is_empty): New.
13845         * record-btrace.c (require_btrace, record_btrace_info): Call
13846         btrace_is_empty.
13847
13848 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13849
13850         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13851         Support delta reads.
13852         (linux_disable_btrace): Change return type.
13853         * common/linux-btrace.h (linux_read_btrace): Change parameters
13854         and return type to allow error reporting.  Update users.
13855         (linux_disable_btrace): Change return type.  Update users.
13856         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13857         New.
13858         (btrace_error): New.
13859         (btrace_block) <begin>: Comment on BEGIN == 0.
13860         * btrace.c (btrace_compute_ftrace): Start from the end of
13861         the current trace.
13862         (btrace_stitch_trace, btrace_clear_history): New.
13863         (btrace_fetch): Read delta trace, return if replaying.
13864         (btrace_clear): Move clear history code to btrace_clear_history.
13865         (parse_xml_btrace): Throw an error if parsing failed.
13866         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13867         and return type to allow error reporting.
13868         (target_read_btrace): Change parameters and return type to allow
13869         error reporting.
13870         * target.c (target_read_btrace): Update.
13871         * remote.c (remote_read_btrace): Support delta reads.  Pass
13872         errors on.
13873         * NEWS: Announce it.
13874
13875 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13876
13877         * record.h (record_btrace_frame_unwind)
13878         (record_btrace_tailcall_frame_unwind): New declarations.
13879         * dwarf2-frame: Include record.h
13880         (dwarf2_frame_cfa): Throw an error for btrace frames.
13881         * record-btrace.c: Include hashtab.h.
13882         (btrace_get_bfun_name): New.
13883         (btrace_call_history): Call btrace_get_bfun_name.
13884         (struct btrace_frame_cache): New.
13885         (bfcache): New.
13886         (bfcache_hash, bfcache_eq, bfcache_new): New.
13887         (btrace_get_frame_function): New.
13888         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13889         (record_btrace_frame_this_id): Compute own id.
13890         (record_btrace_frame_prev_register): Provide PC, throw_error
13891         for all other registers.
13892         (record_btrace_frame_sniffer): Detect btrace frames.
13893         (record_btrace_tailcall_frame_sniffer): New.
13894         (record_btrace_frame_dealloc_cache): New.
13895         (record_btrace_frame_unwind): Add new functions.
13896         (record_btrace_tailcall_frame_unwind): New.
13897         (_initialize_record_btrace): Allocate cache.
13898         * btrace.c (btrace_clear): Call reinit_frame_cache.
13899         * NEWS: Announce it.
13900
13901 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13902
13903         * record-btrace.c (record_btrace_set_replay)
13904         (record_btrace_goto_begin, record_btrace_goto_end)
13905         (record_btrace_goto): New.
13906         (init_record_btrace_ops): Initialize them.
13907         * NEWS: Announce it.
13908
13909 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13910
13911         * record-btrace.c (record_btrace_find_new_threads)
13912         (record_btrace_thread_alive): New.
13913         (init_record_btrace_ops): Initialize to_find_new_threads and
13914         to_thread_alive.
13915
13916 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13917
13918         * record-btrace.c (record_btrace_resume): New.
13919         (record_btrace_wait): New.
13920         (init_record_btrace_ops): Initialize to_wait and to_resume.
13921
13922 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13923
13924         * record-btrace.c (record_btrace_xfer_partial)
13925         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13926         (record_btrace_allow_memory_access): New.
13927         (init_record_btrace_ops): Initialize new methods.
13928         * target.c (raw_memory_xfer_partial): Bail out if target reports
13929         that this memory is not available.
13930
13931 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13932
13933         * target.h (target_ops) <to_insert_breakpoint>
13934         <to_remove_breakpoint>: Add target_ops parameter.
13935         (forward_target_insert_breakpoint): New.
13936         (forward_target_remove_breakpoint): New.
13937         (memory_remove_breakpoint, memory_insert_breakpoint):
13938         Add target_ops parameter.
13939         * target.c (target_insert_breakpoint): Split into this and ...
13940         (forward_target_insert_breakpoint): ... this.
13941         (target_remove_breakpoint): Split into this and ...
13942         (forward_target_remove_breakpoint): ... this.
13943         (debug_to_insert_breakpoint): Add target_ops parameter.
13944         Call forward_target_insert_breakpoint.
13945         (debug_to_remove_breakpoint): Add target_ops parameter.
13946         Call forward_target_remove_breakpoint.
13947         (update_current_target): Do not inherit or default to_insert_breakpoint
13948         and to_remove_breakpoint.
13949         * corelow.c (ignore): Add target_ops parameter.
13950         * exec.c (ignore): Add target_ops parameter.
13951         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13952         Add target_ops parameter.
13953         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13954         Add target_ops parameter.
13955         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13956         Add target_ops parameter.
13957         * record-full.c (record_full_beneath_to_insert_breakpoint)
13958         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13959         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13960         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13961         (record_full_core_remove_breakpoint): Add target_ops parameter.
13962         Update users.
13963         (record_full_beneath_to_insert_breakpoint_ops)
13964         (record_full_beneath_to_remove_breakpoint_ops)
13965         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13966         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13967         tmp_to_remove_breakpoint_ops,
13968         record_full_beneath_to_insert_breakpoint_ops, and
13969         record_full_beneath_to_remove_breakpoint_ops.
13970         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13971         (m32r_remove_breakpoint): Add target_ops parameter.
13972         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13973         Add target_ops parameter.
13974         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13975         Add target_ops parameter.
13976
13977 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13978             Markus Metzger  <markus.t.metzger@intel.com>
13979
13980         * record-btrace.c: Include frame-unwind.h.
13981         (record_btrace_frame_unwind_stop_reason)
13982         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13983         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13984         New.
13985         (init_record_btrace_ops): Install it.
13986
13987 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13988
13989         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13990         get_prev_frame_1.
13991
13992 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13993
13994         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13995         earlier.
13996
13997 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13998
13999         * frame-unwind.c: Include target.h.
14000         (frame_unwind_try_unwinder): New function with code from ...
14001         (frame_unwind_find_by_frame): ... here.  New variable
14002         unwinder_from_target, call also target_get_unwinder)
14003         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14004         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14005         * target.h (struct target_ops): New fields to_get_unwinder and
14006         to_get_tailcall_unwinder.
14007         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14008
14009 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14010
14011         * record-btrace.c (record_btrace_fetch_registers)
14012         (record_btrace_store_registers)
14013         (record_btrace_to_prepare_to_store): New.
14014         (init_record_btrace_ops): Add the above.
14015
14016 2014-01-16  Tom Tromey  <tromey@redhat.com>
14017
14018         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14019         * target.h (struct target_ops) <to_prepare_to_store>: Add
14020         argument.
14021         (target_prepare_to_store): Add argument.
14022         * target.c (debug_to_prepare_to_store): Add argument.
14023         (update_current_target): Update.
14024         * remote.c (remote_prepare_to_store): Add 'self' argument.
14025         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14026         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14027         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14028         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14029         argument.
14030         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14031         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14032         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14033         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14034         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14035
14036 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14037
14038         * btrace.h (replay) <replay>: New.
14039         (btrace_is_replaying): New.
14040         * btrace.c (btrace_clear): Free replay iterator.
14041         (btrace_is_replaying): New.
14042         * record-btrace.c (record_btrace_is_replaying): New.
14043         (record_btrace_info): Print insn number if replaying.
14044         (record_btrace_insn_history): Start at replay position.
14045         (record_btrace_call_history): Start at replay position.
14046         (init_record_btrace_ops): Init to_record_is_replaying.
14047
14048 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14049
14050         * record-btrace.c (record_btrace_insn_history_range): Include
14051         end.
14052         (record_btrace_insn_history_from): Adjust range.
14053         (record_btrace_call_history_range): Include
14054         end.
14055         (record_btrace_call_history_from): Adjust range.
14056         * NEWS: Announce changes.
14057
14058 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14059
14060         * record.h (enum record_print_flag)
14061         <record_print_indent_calls>: New.
14062         * record.c (get_call_history_modifiers): Recognize /c modifier.
14063         (_initialize_record): Document /c modifier.
14064         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14065         Reorder fields.  Optionally indent the function name.  Update
14066         all users.
14067         * NEWS: Announce changes.
14068
14069 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14070
14071         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14072
14073 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14074
14075         * btrace.c (ftrace_new_function): Start counting at one.
14076         * record-btrace.c (record_btrace_info): Adjust number of calls
14077         and insns.
14078         * NEWS: Announce it.
14079
14080 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14081
14082         * record-btrace.c (btrace_call_history_insn_range): Print
14083         insn range as [begin, end].
14084
14085 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14086
14087         * btrace.h (struct btrace_func_link): New.
14088         (enum btrace_function_flag): New.
14089         (struct btrace_inst): Rename to ...
14090         (struct btrace_insn): ...this. Update all users.
14091         (struct btrace_func) <ibegin, iend>: Remove.
14092         (struct btrace_func_link): New.
14093         (struct btrace_func): Rename to ...
14094         (struct btrace_function): ...this. Update all users.
14095         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14096         (number, level, flags>: New.
14097         (struct btrace_insn_iterator): Rename to ...
14098         (struct btrace_insn_history): ...this.
14099         Update all users.
14100         (struct btrace_insn_iterator, btrace_call_iterator): New.
14101         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14102         (struct btrace_target_info) <begin, end, level>
14103         <insn_history, call_history>: New.
14104         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14105         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14106         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14107         (btrace_call_number, btrace_call_begin, btrace_call_end)
14108         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14109         (btrace_find_function_by_number, btrace_set_insn_history)
14110         (btrace_set_call_history): New.
14111         * btrace.c (btrace_init_insn_iterator)
14112         (btrace_init_func_iterator, compute_itrace): Remove.
14113         (ftrace_print_function_name, ftrace_print_filename)
14114         (ftrace_skip_file): Change
14115         parameter to const.
14116         (ftrace_init_func): Remove.
14117         (ftrace_debug): Use new btrace_function fields.
14118         (ftrace_function_switched): Also consider gaining and
14119         losing symbol information).
14120         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14121         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14122         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14123         New.
14124         (ftrace_new_function): Move. Remove debug print.
14125         (ftrace_update_lines, ftrace_update_insns): New.
14126         (ftrace_update_function): Check for call, ret, and jump.
14127         (compute_ftrace): Renamed to ...
14128         (btrace_compute_ftrace): ...this. Rewritten to compute call
14129         stack.
14130         (btrace_fetch, btrace_clear): Updated.
14131         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14132         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14133         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14134         (btrace_call_number, btrace_call_begin, btrace_call_end)
14135         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14136         (btrace_find_function_by_number, btrace_set_insn_history)
14137         (btrace_set_call_history): New.
14138         * record-btrace.c (require_btrace): Use new btrace thread
14139         info fields.
14140         (record_btrace_info, btrace_insn_history)
14141         (record_btrace_insn_history, record_btrace_insn_history_range):
14142         Use new btrace thread info fields and new iterator.
14143         (btrace_func_history_src_line): Rename to ...
14144         (btrace_call_history_src_line): ...this. Use new btrace
14145         thread info fields.
14146         (btrace_func_history): Rename to ...
14147         (btrace_call_history): ...this. Use new btrace thread info
14148         fields and new iterator.
14149         (record_btrace_call_history, record_btrace_call_history_range):
14150         Use new btrace thread info fields and new iterator.
14151
14152 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14153
14154         * frame.h (frame_id_build_unavailable_stack_special): New.
14155         * frame.c (frame_id_build_unavailable_stack_special): New.
14156
14157 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14158
14159         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14160         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14161         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14162         to gdbarch.
14163         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14164         (i386_insn_is_jump, i386_jmp_p): New.
14165         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14166         insn_is_jump to gdbarch.
14167         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14168         * gdbarch.h: Regenerated.
14169         * gdbarch.c: Regenerated.
14170         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14171         (default_insn_is_jump): New.
14172         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14173         (default_insn_is_jump): New.
14174
14175 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14176
14177         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14178         Change to ...
14179         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14180         (btrace_read_type) <btrace_read_new>: Change to ...
14181         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14182
14183 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14184
14185         * common/linux-btrace.c (linux_read_btrace): Free trace from
14186         previous iteration.
14187
14188 2014-01-15  Doug Evans  <dje@google.com>
14189
14190         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14191         uint32_t.
14192
14193 2014-01-15  Tom Tromey  <tromey@redhat.com>
14194
14195         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14196         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14197         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14198         (set_objfile_main_name): New function.
14199         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14200         language_of_main>: New fields.
14201         (set_objfile_main_name): Declare.
14202         * symtab.c (find_main_name): Loop over objfiles to find the main
14203         name and language.
14204         (set_main_name): Now static.
14205         (get_main_info): Add comment.
14206         * symtab.h (set_main_name): Don't declare.
14207
14208 2014-01-15  Tom Tromey  <tromey@redhat.com>
14209
14210         * symtab.c (main_progspace_key): New global.
14211         (struct main_info): New.
14212         (name_of_main, language_of_main): Remove.
14213         (get_main_info, main_info_cleanup): New function.
14214         (set_main_name, main_name, main_language): Use get_main_info.
14215         (_initialize_symtab): Initialize main_progspace_key.
14216
14217 2014-01-15  Tom Tromey  <tromey@redhat.com>
14218
14219         * dbxread.c (process_one_symbol): Update.
14220         * dwarf2read.c (read_partial_die): Update.
14221         * symfile.c (set_initial_language): Call main_language.
14222         * symtab.c (language_of_main): Now static.
14223         (set_main_name): Add 'lang' parameter.
14224         (find_main_name): Update.
14225         (main_language): New function.
14226         (symtab_observer_executable_changed): Update.
14227         * symtab.h (set_main_name): Update.
14228         (language_of_main): Remove.
14229         (main_language): Declare.
14230
14231 2014-01-15  Tom Tromey  <tromey@redhat.com>
14232
14233         * symfile.c (init_entry_point_info): Use new "initialized" field.
14234         Update.
14235         * objfiles.h (struct entry_point) <initialized>: New field.
14236         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14237         (struct objfile) <ei>: ...here.  Remove.
14238         * objfiles.c (entry_point_address_query): Update.
14239
14240 2014-01-15  Tom Tromey  <tromey@redhat.com>
14241
14242         * objfiles.c (entry_point_address_query): Relocate entry point
14243         address.
14244         (objfile_relocate1): Do not relocate entry point address.
14245         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14246         <the_bfd_section_index>: New field.
14247         * symfile.c (init_entry_point_info): Find the entry point's
14248         section.
14249
14250 2014-01-15  Tom Tromey  <tromey@redhat.com>
14251
14252         * solib-frv.c (enable_break): Use entry_point_address_query.
14253
14254 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14255
14256         * NEWS: Add note on improved process record-replay on
14257         arm*-linux* targets.
14258
14259 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14260
14261         * arm-tdep.c (enum arm_record_result): New enum.
14262         (arm_record_unsupported_insn): New function.
14263         (arm_record_coproc_data_proc): Removed.
14264         (thumb2_record_ld_st_multiple): New function.
14265         (thumb2_record_ld_st_dual_ex_tbb): New function.
14266         (thumb2_record_data_proc_sreg_mimm): New function.
14267         (thumb2_record_ps_dest_generic): New function.
14268         (thumb2_record_branch_misc_cntrl): New function.
14269         (thumb2_record_str_single_data): New function.
14270         (thumb2_record_ld_mem_hints): New function.
14271         (thumb2_record_ld_word): New function.
14272         (thumb2_record_lmul_lmla_div): New function.
14273         (thumb2_record_decode_insn_handler): New function.
14274         (decode_insn): Add thumb32 instruction handlers.
14275
14276 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14277
14278         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14279         (struct arm_linux_record_tdep): Declare.
14280         (arm_canonicalize_syscall): New function.
14281         (arm_all_but_pc_registers_record): New function.
14282         (arm_linux_syscall_record): New function.
14283         (arm_linux_init_abi): Add syscall recording constructs.
14284         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14285         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14286         decoding.
14287         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14288         <arm_syscall_record>: New field.
14289         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14290         gdb_target_obs.
14291
14292 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14293
14294         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14295         register for push instruction recording.
14296
14297 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14298
14299         * arm-tdep.c (thumb_record_misc): Update to correct logical
14300         error while recording ldm, ldmia and pop instructions.
14301
14302 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14303
14304         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14305
14306 2014-01-15  Pedro Alves  <palves@redhat.com>
14307
14308         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14309         (go32_resume, go32_fetch_registers, store_register)
14310         (go32_store_registers, go32_prepare_to_store)
14311         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14312         (go32_create_inferior, go32_can_run, go32_terminal_init)
14313         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14314         declarations.
14315
14316 2014-01-15  Tom Tromey  <tromey@redhat.com>
14317
14318         * target.h (async_callback_ftype): New typedef.
14319         (struct target_ops) <to_async>: Use it.
14320
14321 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14322
14323         * python/py-value.c (get_field_type): Remove unnecessary curly
14324         braces for single-statement if block.
14325
14326 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14327
14328         * python/py-type.c (convert_field): Add missing empty line
14329         after declarations.
14330
14331 2014-01-14  Doug Evans  <dje@google.com>
14332
14333         * symfile.h (expand_symtabs_matching): Renamed from
14334         expand_partial_symbol_names.  Update prototype.
14335         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14336         * symfile.c (expand_symtabs_matching): Renamed from
14337         expand_partial_symbol_names.  New args file_matcher, kind.
14338         Rename arg fun to symbol_matcher.
14339         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14340         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14341         ada_expand_partial_symbol_name.
14342         (ada_make_symbol_completion_list): Update to call
14343         expand_symtabs_matching.
14344         (ada_add_global_exceptions): Call expand_symtabs_matching.
14345         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14346         call map_symbol_filenames.
14347         * symtab.c (sources_info): Update to call map_symbol_filenames.
14348         (search_symbols): Call expand_symtabs_matching.
14349         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14350         (default_make_symbol_completion_list_break_on): Update to call
14351         expand_symtabs_matching.
14352         (make_source_files_completion_list): Update to call
14353         map_symbol_filenames.
14354
14355 2014-01-14  Doug Evans  <dje@google.com>
14356
14357         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14358         (expand_symtabs_symbol_matcher_ftype): New typedef.
14359         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14360         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14361         * symfile.c (expand_partial_symbol_names): Update to use
14362         expand_symtabs_symbol_matcher_ftype.
14363         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14364         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14365         Arg name_matcher renamed to symbol_matcher.
14366         * psymtab.c (recursively_search_psymtabs): Update to use
14367         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14368         sym_matcher.
14369         (expand_symtabs_matching_via_partial): Update to use
14370         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14371         Arg name_matcher renamed to symbol_matcher.
14372
14373 2014-01-14  Doug Evans  <dje@google.com>
14374
14375         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14376         (map_partial_symbol_filenames): Ditto.
14377         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14378         (map_partial_symbol_filenames): Ditto.
14379         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14380         (map_partial_symbol_filenames): Ditto.
14381         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14382         (map_partial_symbol_filenames): Ditto.
14383         * symtab.c: Delete #include "psymtab.h".
14384
14385 2014-01-14  Pedro Alves  <palves@redhat.com>
14386             Tom Tromey  <tromey@redhat.com>
14387
14388         * infrun.c (use_displaced_stepping): Use find_record_target
14389         instead of RECORD_IS_USED.
14390         (adjust_pc_after_break): Use record_full_is_used instead of
14391         RECORD_IS_USED.
14392         * record-btrace.c (record_btrace_open): Call record_preopen
14393         instead of checking RECORD_IS_USED.
14394         * record-full.c (record_full_shortname)
14395         (record_full_core_shortname): New globals.
14396         (record_full_is_used): New function.
14397         (find_full_open): Call record_preopen instead of checking
14398         RECORD_IS_USED.
14399         (init_record_full_ops): Set the target's shortname to
14400         record_full_shortname.
14401         (init_record_full_core_ops): Set the target's shortname to
14402         record_full_core_shortname.
14403         * record-full.h (record_full_is_used): Declare.
14404         * record.c (find_record_target): Make extern.
14405         (record_preopen): New function.
14406         * record.h (RECORD_IS_USED): Delete macro.
14407         (find_record_target, record_preopen): Declare functions.
14408
14409 2014-01-14  Yao Qi  <yao@codesourcery.com>
14410
14411         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14412         'len''s type to ULONGEST.
14413         (core_xfer_shared_libraries_aix): Likewise.
14414         * gdbarch.c, gdbarch.h: Regenerated.
14415         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14416         Change type of 'len' to ULONGEST.
14417         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14418         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14419
14420 2014-01-14  Yao Qi  <yao@codesourcery.com>
14421
14422         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14423         type of 'len' to ULONGEST.
14424         (linux_xfer_osdata_processgroups): Likewise.
14425         (linux_xfer_osdata_threads): Likewise.
14426         (linux_xfer_osdata_fds): Likewise.
14427         (linux_xfer_osdata_isockets): Likewise.
14428         (linux_xfer_osdata_shm): Likewise.
14429         (linux_xfer_osdata_sem): Likewise.
14430         (linux_xfer_osdata_msg): Likewise.
14431         (linux_common_xfer_osdata): Likewise.
14432         (struct osdata_type) <getter>: Likewise.
14433         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14434         the declaration.
14435
14436 2014-01-14  Yao Qi  <yao@codesourcery.com>
14437
14438         * target.h (target_xfer_partial_ftype): Update.
14439         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14440         ULONGEST.
14441         * aix-thread.c (aix_thread_xfer_partial): Change type of
14442         argument 'len' to ULONGEST.
14443         * auxv.c (procfs_xfer_auxv): Likewise.
14444         (ld_so_xfer_auxv): Likewise.
14445         (memory_xfer_auxv): Likewise.
14446         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14447         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14448         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14449         * corelow.c (core_xfer_partial): Likewise.
14450         * ctf.c (ctf_xfer_partial): Likewise.
14451         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14452         '%u'.
14453         (darwin_read_dyld_info): Likewise.
14454         (darwin_xfer_partial): Likewise.
14455         * exec.c (section_table_xfer_memory_partial): Likewise.
14456         (exec_xfer_partial): Likewise.
14457         * exec.h (section_table_xfer_memory_partial): Update
14458         declaration.
14459         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14460         instead of plongest.
14461         (gnu_xfer_partial): Likewise.
14462         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14463         (ia64_hpux_xfer_solib_got): Likewise.
14464         (ia64_hpux_xfer_partial): Likewise.
14465         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14466         * inf-ptrace.c (inf_ptrace_xfer_partial):
14467         * inf-ttrace.c (inf_ttrace_xfer_partial):
14468         * linux-nat.c (linux_xfer_siginfo): Likewise.
14469         (linux_nat_xfer_partial): Likewise.
14470         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14471         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14472         * monitor.c (monitor_xfer_memory): Likewise.
14473         (monitor_xfer_partial): Likewise.
14474         * procfs.c (procfs_xfer_partial): Likewise.
14475         * record-full.c (record_full_xfer_partial): Likewise.
14476         (record_full_core_xfer_partial): Likewise.
14477         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14478         instead of plongest.
14479         (gdbsim_xfer_partial): Likewise.
14480         * remote.c (remote_xfer_partial): Likewise.
14481         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14482         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14483         declaration.
14484         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14485         (rs6000_xfer_shared_libraries): Likewise.
14486         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14487         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14488         (sparc_xfer_partial): Likewise.
14489         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14490         (spu_xfer_partial): Likewise.
14491         * spu-multiarch.c (spu_xfer_partial): Likewise.
14492         * target.c (target_read_live_memory): Likewise.
14493         (memory_xfer_live_readonly_partial): Likewise.
14494         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14495         (target_xfer_partial, default_xfer_partial): Likewise.
14496         (current_xfer_partial): Likewise.
14497         * tracepoint.c (tfile_xfer_partial): Likewise.
14498         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14499         pulongest instead of plongest.
14500         (windows_xfer_partial): Likewise.
14501         (windows_xfer_shared_libraries): Likewise.
14502
14503 2014-01-14  Yao Qi  <yao@codesourcery.com>
14504
14505         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14506         target_xfer_partial_ftype.
14507
14508 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14509
14510         PR python/15464
14511         PR python/16113
14512         * valops.c (value_struct_elt_bitpos): New function
14513         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14514         object to 'None' if the field name is an empty string ("").
14515         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14516         attribute to look for a field when 'name' is 'None'.
14517         (get_field_type): New function
14518
14519 2014-01-13  Doug Evans  <dje@google.com>
14520
14521         PR symtab/16426
14522         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14523         (try_open_dwop_file): Ditto.
14524         * gdb_bfd.c: #include "vec.h".
14525         (bfdp): New typedef.
14526         (struct gdb_bfd_data): New member included_bfds.
14527         (gdb_bfd_unref): Unref all included bfds.
14528         (gdb_bfd_record_inclusion): New function.
14529         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14530
14531 2014-01-13  Tom Tromey  <tromey@redhat.com>
14532
14533         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14534
14535 2014-01-13  Tom Tromey  <tromey@redhat.com>
14536
14537         * defs.h (use_windows): Remove.
14538         * gdb.c (main): Update.
14539         * main.c (captured_main, gdb_main): Update.
14540         * main.h (struct captured_main_args) <use_windows>: Remove.
14541         * top.c (use_windows): Remove.
14542
14543 2014-01-13  Tom Tromey  <tromey@redhat.com>
14544
14545         * defs.h (deprecated_flush_hook): Remove.
14546
14547 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14548
14549         PR threads/16216
14550         * linux-thread-db.c (try_thread_db_load): Add parameter
14551         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14552         (try_thread_db_load_from_pdir_1): Move it there from here.
14553         (try_thread_db_load_from_sdir): Update caller.
14554         (try_thread_db_load_from_dir): Move it there from here.
14555
14556 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14557
14558         * regformats/regdat.sh: Always rewrite the register file.
14559
14560 2014-01-13  Pedro Alves  <palves@redhat.com>
14561
14562         * Makefile.in (CHECK_HEADERS): New variable.
14563         (check-headers:): New rule.
14564
14565 2014-01-13  Tom Tromey  <tromey@redhat.com>
14566
14567         * cli/cli-setshow.c (do_set_command): Update.
14568         * defs.h (deprecated_set_hook): Remove.
14569         * top.c (deprecated_set_hook): Remove.
14570
14571 2014-01-13  Pedro Alves  <palves@redhat.com>
14572
14573         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14574         the tracepoint if the PC is a pseudo-register.
14575
14576 2014-01-13  Tom Tromey  <tromey@redhat.com>
14577
14578         * defs.h (XCALLOC): Remove.
14579         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14580         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14581         * dwarf2loc.c (allocate_piece_closure): Likewise.
14582         * elfread.c (elf_symfile_segments): Likewise.
14583         (elf_symfile_segments): Likewise.
14584         * gdbtypes.c (copy_type_recursive): Likewise.
14585         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14586         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14587         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14588         XCALLOC.
14589         * mt-tdep.c (mt_gdbarch_init): Likewise.
14590         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14591         XCALLOC.
14592         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14593         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14594         * registry.c (registry_alloc_data): Likewise.
14595         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14596         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14597         * serial.c (serial_fdopen_ops): Likewise.
14598         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14599         XCALLOC.
14600         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14601         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14602         not XCALLOC.
14603
14604 2014-01-13  Tom Tromey  <tromey@redhat.com>
14605
14606         * defs.h (XMALLOC): Remove.
14607         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14608         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14609         * cli-out.c (struct ui_out *): Likewise.
14610         * cli/cli-dump.c (add_dump_command): Likewise.
14611         (add_dump_command): Likewise.
14612         * complaints.c (get_complaints): Likewise.
14613         (find_complaint): Likewise.
14614         * dwarf2-frame.c (execute_cfa_program): Likewise.
14615         * dwarf2read.c (abbrev_table_read_table): Likewise.
14616         * gdbarch.sh: Likewise.
14617         * gdbarch.c: Rebuild.
14618         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14619         * interps.c (interp_new): Likewise.
14620         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14621         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14622         * mi/mi-console.c (mi_console_file_new): Likewise.
14623         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14624         * mi/mi-out.c (mi_out_new): Likewise.
14625         * mi/mi-parse.c (mi_parse): Likewise.
14626         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14627         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14628         * observer.c (xalloc_observer_list_node): Likewise.
14629         * regcache.c (regcache_xmalloc_1): Likewise.
14630         * reggroups.c (reggroup_new): Likewise.
14631         (_initialize_reggroup): Likewise.
14632         * registry.c (register_data_with_cleanup): Likewise.
14633         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14634         * ser-base.c (serial_ttystate): Likewise.
14635         * ser-mingw.c (make_pipe_state): Likewise.
14636         * ser-pipe.c (pipe_open): Likewise.
14637         * serial.c (serial_open): Likewise.
14638         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14639         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14640         (tui_alloc_win_info): Likewise.
14641         (tui_add_content_elements): Likewise.
14642         * tui/tui-file.c (tui_file_new): Likewise.
14643         * tui/tui-out.c (tui_out_new): Likewise.
14644         * ui-file.c (mem_file_new): Likewise.
14645         * ui-out.c (push_level): Likewise.
14646         (make_cleanup_ui_out_end): Likewise.
14647         (append_header_to_list): Likewise.
14648         (ui_out_new): Likewise.
14649         * user-regs.c (user_reg_add_builtin): Likewise.
14650
14651 2014-01-13  Tom Tromey  <tromey@redhat.com>
14652
14653         * defs.h (XZALLOC): Remove.
14654         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14655         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14656         (get_ada_tasks_inferior_data): Likewise.
14657         * auto-load.c (get_auto_load_pspace_data): Likewise.
14658         * auxv.c (get_auxv_inferior_data): Likewise.
14659         * bfd-target.c (target_bfd_reopen): Likewise.
14660         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14661         (deprecated_insert_raw_breakpoint): Likewise.
14662         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14663         * corelow.c (core_open): Likewise.
14664         * darwin-nat.c (darwin_check_new_threads): Likewise.
14665         (darwin_attach_pid): Likewise.
14666         * dummy-frame.c (dummy_frame_push): Likewise.
14667         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14668         * dwarf2loc.c (allocate_piece_closure): Likewise.
14669         * elfread.c (elf_symfile_segments): Likewise.
14670         * eval.c (ptrmath_type_p): Likewise.
14671         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14672         * gdbtypes.c (alloc_type_arch): Likewise.
14673         (alloc_type_instance): Likewise.
14674         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14675         * inf-child.c (inf_child_can_use_agent): Likewise.
14676         * inflow.c (get_inflow_inferior_data): Likewise.
14677         * infrun.c (save_infcall_suspend_state): Likewise.
14678         * jit.c (jit_reader_load): Likewise.
14679         (get_jit_objfile_data): Likewise.
14680         (get_jit_program_space_data): Likewise.
14681         (jit_object_open_impl): Likewise.
14682         (jit_symtab_open_impl): Likewise.
14683         (jit_block_open_impl): Likewise.
14684         (jit_frame_sniffer): Likewise.
14685         * linux-fork.c (add_fork): Likewise.
14686         * maint.c (make_command_stats_cleanup): Likewise.
14687         * objfiles.c (get_objfile_pspace_data): Likewise.
14688         * opencl-lang.c (struct lval_closure): Likewise.
14689         * osdata.c (osdata_start_osdata): Likewise.
14690         * progspace.c (new_address_space): Likewise.
14691         (add_program_space): Likewise.
14692         * remote-sim.c (get_sim_inferior_data): Likewise.
14693         * sh-tdep.c (sh_gdbarch_init): Likewise.
14694         * skip.c (Ignore): Likewise.
14695         (skip_delete_command): Likewise.
14696         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14697         (library_list_start_library): Likewise.
14698         (solib_aix_current_sos): Likewise.
14699         * solib-darwin.c (get_darwin_info): Likewise.
14700         (darwin_current_sos): Likewise.
14701         * solib-dsbt.c (get_dsbt_info): Likewise.
14702         * solib-ia64-hpux.c (new_so_list): Likewise.
14703         (ia64_hpux_get_solib_linkage_addr): Likewise.
14704         * solib-spu.c (append_ocl_sos): Likewise.
14705         (spu_current_sos): Likewise.
14706         * solib-svr4.c (get_svr4_info): Likewise.
14707         (svr4_keep_data_in_core): Likewise.
14708         (library_list_start_library): Likewise.
14709         (svr4_default_sos): Likewise.
14710         (svr4_read_so_list): Likewise.
14711         * solib-target.c (library_list_start_library): Likewise.
14712         (solib_target_current_sos): Likewise.
14713         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14714         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14715         * symfile.c (default_symfile_segments): Likewise.
14716         * target-descriptions.c (tdesc_data_init): Likewise.
14717         (tdesc_create_reg): Likewise.
14718         (struct tdesc_type *): Likewise.
14719         (tdesc_create_vector): Likewise.
14720         (tdesc_set_struct_size): Likewise.
14721         (struct tdesc_type *): Likewise.
14722         (tdesc_free_feature): Likewise.
14723         (tdesc_create_feature): Likewise.
14724         * windows-nat.c (windows_add_thread): Likewise.
14725         (windows_make_so): Likewise.
14726         * xml-support.c (gdb_xml_body_text): Likewise.
14727         (gdb_xml_create_parser_and_cleanup): Likewise.
14728         (xml_process_xincludes): Likewise.
14729         * xml-syscall.c (allocate_syscalls_info): Likewise.
14730         (syscall_create_syscall_desc): Likewise.
14731
14732 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14733
14734         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14735         function, with code from i386_stap_parse_special_token.
14736         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14737         (i386_stap_parse_special_token): Move code to the two functions
14738         above; simplify it.
14739
14740 2014-01-09  Pedro Alves  <palves@redhat.com>
14741             Hui Zhu  <hui@codesourcery.com>
14742
14743         PR gdb/16101
14744         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14745         bp_err_string.  Don't mark the location shlib_disabled if the
14746         error thrown wasn't a generic or memory error.  Catch errors
14747         thrown while inserting breakpoints in overlayed code.  Output
14748         error message of software breakpoints.
14749         * remote.c (remote_insert_breakpoint): If this breakpoint has
14750         target-side commands but this stub doesn't support Z0 packets,
14751         throw NOT_SUPPORTED_ERROR error.
14752         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14753         * target.h (target_insert_breakpoint): Extend comment.
14754         (target_insert_hw_breakpoint): Add comment.
14755
14756 2014-01-08  Pedro Alves  <palves@redhat.com>
14757
14758         * remote.c (remote_add_thread): Add threads silently if starting
14759         up.
14760         (remote_notice_new_inferior): If in all-stop, and starting up,
14761         don't call notice_new_inferior.
14762         (get_current_thread): New function, factored out from ...
14763         (add_current_inferior_and_thread): ... this.  Adjust.
14764         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14765         found any thread, then select the remote's current thread as GDB's
14766         current thread too.
14767
14768 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14769
14770         * NEWS: Create a new section for the next release branch.
14771         Rename the section of the current branch, now that it has
14772         been cut.
14773
14774 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14775
14776         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14777         * version.in: Bump version to 7.7.50.DATE-cvs.
14778
14779 2014-01-08  Yao Qi  <yao@codesourcery.com>
14780
14781         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14782         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14783         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14784
14785 2014-01-08  Yao Qi  <yao@codesourcery.com>
14786
14787         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14788         return value of bfd_get_filename to symbol_file_add_from_bfd.
14789
14790 2014-01-08  Pierre Muller  <muller@sourceware.org>
14791
14792         Fix PR16201.
14793         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14794         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14795         to prim_record_mininal_symbol_and_info.
14796         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14797         in call to prim_record_minimal_symbol_and_info.
14798         (read_pe_exported_syms): Set index field of section_data.
14799
14800 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14801
14802         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14803         * features/aarch64.c: Regenerate.
14804
14805 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14806
14807         * target.c (return_null): Define.
14808         (update_current_target): Use it instead of return_zero for
14809         functions that return a pointer.
14810
14811 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14812
14813         * source.c (add_path): Fix check for duplicated paths in the previously
14814         included paths.
14815
14816 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14817
14818         * ada-lang.c: Remove duplicated include statements.
14819         * alphabsd-nat.c: Ditto.
14820         * amd64-darwin-tdep.c: Ditto.
14821         * amd64fbsd-nat.c: Ditto.
14822         * auto-load.c: Ditto.
14823         * ax-gdb.c: Ditto.
14824         * breakpoint.c: Ditto.
14825         * dbxread.c: Ditto.
14826         * fork-child.c: Ditto.
14827         * gdb_usleep.c: Ditto.
14828         * i386-darwin-tdep.c: Ditto.
14829         * i386fbsd-nat.c: Ditto.
14830         * infcmd.c: Ditto.
14831         * inferior.c: Ditto.
14832         * jv-lang.c: Ditto.
14833         * linux-nat.c: Ditto.
14834         * linux-tdep.c: Ditto.
14835         * m68kbsd-nat.c: Ditto.
14836         * m68klinux-nat.c: Ditto.
14837         * microblaze-tdep.c: Ditto.
14838         * mips-linux-tdep.c: Ditto.
14839         * mn10300-tdep.c: Ditto.
14840         * nto-tdep.c: Ditto.
14841         * opencl-lang.c: Ditto.
14842         * osdata.c: Ditto.
14843         * printcmd.c: Ditto.
14844         * regcache.c: Ditto.
14845         * remote-m32r-sdi.c: Ditto.
14846         * remote.c: Ditto.
14847         * symfile.c: Ditto.
14848         * symtab.c: Ditto.
14849         * tilegx-linux-nat.c: Ditto.
14850         * tilegx-tdep.c: Ditto.
14851         * tracepoint.c: Ditto.
14852         * valops.c: Ditto.
14853         * vaxbsd-nat.c: Ditto.
14854         * windows-nat.c: Ditto.
14855         * xtensa-tdep.c: Ditto.
14856
14857 2014-01-07  Yao Qi  <yao@codesourcery.com>
14858
14859         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14860
14861 2014-01-07  Yao Qi  <yao@codesourcery.com>
14862             Joel Brobecker  <brobecker@adacore.com>
14863
14864         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14865         (pdc_write_regs): Likewise.
14866         (fetch_regs_kernel_thread): Likewise.
14867         (store_regs_kernel_thread): Likewise.
14868
14869 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14870
14871         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14872         tagged type objects to their actual type.
14873
14874 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14875
14876         * ada-valprint.c (print_field_values): Add "language" parameter.
14877         Update calls to print_field_values and print_variant_part.
14878         Pass new parameter "language" in call to val_print instead
14879         of "current_language".  Replace call to ada_val_print by call
14880         to val_print.
14881         (print_variant_part): Add "language" parameter.
14882         (ada_val_print_struct_union): Update call to print_field_values.
14883
14884 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14885
14886         * ada-valprint.c (ui_memcpy): Delete.
14887         (ada_print_floating): Update documentation.  Add empty line
14888         between between function documentation and implementation.
14889         Delete variable "buffer".  Use ui_file_xstrdup in place of
14890         ui_file_put.  Minor adjustments following this change.
14891
14892 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14893
14894         * ada-valprint.c (ada_val_print_string): New function,
14895         extracted from ada_val_print_array.
14896         (ada_val_print_array): Replace extracted code by call
14897         to ada_val_print_string followed by a return.  Move
14898         "else" branch to the function's top block.
14899
14900 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14901
14902         * ada-valprint.c (ada_val_print_array): Move implementation
14903         down.  Rename parameter "offset" and "val" into "offset_aligned"
14904         and "original_value" respectively.  Add parameter "offset".
14905
14906 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14907
14908         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14909         re-organizing the code. Change the "???" message printed
14910         when target type is a TYPE_CODE_UNDEF into
14911         "<ref to undefined type>".
14912
14913 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14914
14915         * ada-valprint.c (print_record): Delete, implementation inlined...
14916         (ada_val_print_struct_union): ... here.  Remove call to
14917         ada_check_typedef in inlined implementation.
14918
14919 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14920
14921         * ada-valprint.c (ada_val_print_gnat_array): New function,
14922         extracted from ada_val_print_1;
14923         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14924         (ada_val_print_flt, ada_val_print_struct_union)
14925         (ada_val_print_ref): Likewise.
14926         (ada_val_print_1): Delete variables i and elttype.
14927         Replace extracted-out code by call to corresponding
14928         new functions.
14929
14930 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14931
14932         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14933
14934 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14935
14936         * ada-valprint.c (ada_val_print_1): Replace calls to
14937         ada_val_print_1 by calls to val_print.
14938
14939 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14940
14941         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14942         Update calls to self accordingly.  Replace calls to c_val_print
14943         by calls to val_print.
14944
14945 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14946
14947         * ada-valprint.c (print_record): Delete declaration.
14948         (adjust_type_signedness, ada_val_print_1): Likewise.
14949         (ada_val_print): Move function implementation down.
14950         (print_variant_part, print_field_values, print_record):
14951         Move function implementation up.
14952
14953 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14954
14955         * python/py-type.c (typy_get_name): New function.
14956         (type_object_getset): Add entry for attribute "name".
14957         * NEWS: Add entry mentioning this new attribute.
14958
14959 2014-01-07  Yao Qi  <yao@codesourcery.com>
14960
14961         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14962         statement.
14963
14964 2014-01-07  Yao Qi  <yao@codesourcery.com>
14965
14966         * gnu-nat.c (info_port_rights): Add qualifier const to
14967         argument args.
14968
14969 2014-01-07  Yao Qi  <yao@codesourcery.com>
14970
14971         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14972
14973 2014-01-07  Yao Qi  <yao@codesourcery.com>
14974
14975         * gnu-nat.c (make_inf) Update declaration.
14976         (make_inf): Make it static.
14977         (inf_set_traced): Likewise.
14978         (inf_port_to_thread, inf_task_died_status): Likewise.
14979
14980 2014-01-07  Yao Qi  <yao@codesourcery.com>
14981
14982         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14983
14984 2014-01-07  Yao Qi  <yao@codesourcery.com>
14985
14986         * gnu-nat.c (_initialize_gnu_nat): Declare.
14987
14988 2014-01-07  Yao Qi  <yao@codesourcery.com>
14989
14990         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14991         'enum bfd_endian'.
14992         (struct gdbarch_info) <byte_order>: Change type to
14993         'enum bfd_endian'.
14994         <byte_order_for_code>: Likewise.
14995         * gdbarch.c, gdbarch.h: Regenerated.
14996
14997 2014-01-06  Sasha Smundak  <asmundak@google.com>
14998
14999         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15000
15001 2014-01-06  Tom Tromey  <tromey@redhat.com>
15002
15003         * doublest.c (convert_doublest_to_floatformat): Use const, not
15004         CONST.
15005         * somread.c (som_symtab_read): Likewise.
15006
15007 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15008
15009         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15010         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15011         (gdb_bfd_fopen): Ditto.
15012         (gdb_bfd_openr): Ditto.
15013         (gdb_bfd_openw): Ditto.
15014         (gdb_bfd_openr_iovec): Ditto.
15015         (gdb_bfd_fdopenr): Ditto.
15016         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15017         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15018         with xstrdup.
15019         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15020         with xstrdup.
15021         * symfile-mem.c (symbol_file_add_from_memory): Removed
15022         gdb_bfd_stash_filename.
15023
15024 2014-01-03  Doug Evans  <dje@google.com>
15025
15026         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15027         output.
15028
15029 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15030
15031         Update year range in copyright notice of all files.
15032
15033 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15034
15035         * top.c (print_gdb_version): Set copyright year to 2014.
15036
15037 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15038
15039         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15040
15041 For older changes see ChangeLog-2013.
15042 \f
15043 Local Variables:
15044 mode: change-log
15045 left-margin: 8
15046 fill-column: 74
15047 version-control: never
15048 coding: utf-8
15049 End: