symtab.h (lookup_global_symbol): Improve function comment.
[external/binutils.git] / gdb / ChangeLog
1 2014-11-06  Doug Evans  <xdje42@gmail.com>
2
3         * symtab.h (lookup_global_symbol): Improve function comment.
4
5 2014-11-06  Doug Evans  <xdje42@gmail.com>
6
7         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
8         All callers updated.
9         * symtab.h (lookup_global_symbol): Update decl.
10         (lookup_static_symbol): Move decl to better location.
11
12 2014-11-06  Doug Evans  <xdje42@gmail.com>
13
14         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
15
16 2014-11-06  Doug Evans  <xdje42@gmail.com>
17
18         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
19         All callers updated.
20         (lookup_symbol_in_all_objfiles): Renamed from
21         lookup_symbol_aux_symtabs.  All callers updated.
22         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
23         All callers updated.
24         (lookup_symbol_in_objfile_symtabs): Renamed from
25         lookup_symbol_aux_objfile.  All callers updated.
26
27 2014-11-06  Doug Evans  <xdje42@gmail.com>
28
29         * symtab.c (lookup_symbol_in_block): Renamed from
30         lookup_symbol_aux_block.  All callers updated.
31
32 2014-11-06  Doug Evans  <xdje42@gmail.com>
33
34         * symtab.c (lookup_static_symbol): Renamed from
35         lookup_static_symbol_aux.  All callers updated.
36         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
37         All callers updated.
38
39 2014-11-06  Doug Evans  <xdje42@gmail.com>
40
41         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
42         * block.c (block_lookup_symbol): Use it.
43         * cp-support.c (make_symbol_overload_list_block): Use it.
44         * symtab.c (iterate_over_symbols): Use it.
45
46 2014-11-06  Doug Evans  <xdje42@gmail.com>
47
48         * symtab.c (lookup_block_symbol): Moved to ...
49         * block.c (block_lookup_symbol):  ... here and renamed.
50         All callers updated.
51         * block.h (block_lookup_symbol): Declare.
52         * symtab.h (lookup_block_symbol): Delete.
53
54 2014-11-06  Doug Evans  <xdje42@gmail.com>
55
56         * ada-lang.c (ada_make_symbol_completion_list): Use
57         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
58         * symtab.c (lookup_objfile_from_block): Ditto.
59
60 2014-11-06  Doug Evans  <xdje42@gmail.com>
61
62         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
63         TYPE_CODE_STRUCT.
64
65 2014-11-06  Doug Evans  <xdje42@gmail.com>
66
67         * objfiles.c (get_objfile_arch): Constify.
68         * objfiles.h (get_objfile_arch): Update prototype.
69         * solib.c (solib_global_lookup): Fetch arch from objfile,
70         not target_gdbarch.
71
72 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
73
74         * nios2-tdep.c (wild_insn): Delete.
75         (profiler_insn, irqentry_insn): Delete.
76         (nios2_match_sequence): Delete.
77         (nios2_analyze_prologue): Update comments.  Remove matching
78         of obsolete profiler_insn and irqentry_insn sequences.
79
80 2014-11-05  Alan Modra  <amodra@gmail.com>
81
82         * charset.c (convert_between_encodings): Shrink obstack using
83         obstack_blank_fast.
84         * minsyms.c (install_minimal_symbols): Likewise.
85         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
86         to char* before doing pointer arithmetic.
87
88 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
89
90         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
91
92 2014-11-04  Pedro Alves  <palves@redhat.com>
93
94         * breakpoint.c (breakpoint_thread_match): Delete function.
95         * breakpoint.h (breakpoint_thread_match): Delete declaration.
96
97 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
98
99         PR c++/17494
100         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
101         the method args also under EVAL_SKIP when evaluating method
102         calls under EVAL_SKIP.
103
104 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
105
106         * dwarf2loc.c (read_pieced_value): Do big endian
107         processing only if gdb_regnum is not -1.
108         (write_pieced_value): Ditto.
109
110 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
111
112         * arm-linux-tdep.c (arm_linux_init_abi): Use
113         info.byte_order_for_code to choose endianity of breakpoint
114         instructions snippets.
115
116 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
117
118         * arm-tdep.c (extract_arm_insn): Use
119         gdbarch_byte_order_for_code to read arm instruction.
120
121 2014-11-02  Doug Evans  <xdje42@gmail.com>
122
123         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
124
125 2014-11-02  Doug Evans  <xdje42@gmail.com>
126
127         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
128         main_subfile before returning.
129
130 2014-10-31  Doug Evans  <xdje42@gmail.com>
131
132         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
133         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
134
135 2014-10-31  Doug Evans  <xdje42@gmail.com>
136
137         * valops.c (value_cast_pointers): Fix whitespace.
138         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
139         Ditto.
140
141 2014-10-30  Doug Evans  <dje@google.com>
142
143         * NEWS: Mention ability add attributes to gdb.Objfile and
144         gdb.Progspace objects.
145         * python/py-objfile.c (objfile_object): New member dict.
146         (objfpy_dealloc): Py_XDECREF dict.
147         (objfpy_initialize): Initialize dict.
148         (objfile_getset): Add __dict__.
149         (objfile_object_type): Set tp_dictoffset member.
150         * python/py-progspace.c (progspace_object): New member dict.
151         (pspy_dealloc): Py_XDECREF dict.
152         (pspy_initialize): Initialize dict.
153         (pspace_getset): Add __dict__.
154         (pspace_object_type): Set tp_dictoffset member.
155
156 2014-10-30  Yao Qi  <yao@codesourcery.com>
157
158         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
159         replace '\\' with '\\\\'.
160
161 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
162
163         GDB 7.8.1 released.
164
165 2014-10-29  Pedro Alves  <palves@redhat.com>
166
167         PR gdb/17408
168         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
169         instead of assuming a thread with a stepping range is always
170         stepping.
171
172 2014-10-29  Pedro Alves  <palves@redhat.com>
173
174         PR python/17372
175         * event-top.c (change_line_handler): Call
176         gdb_rl_callback_handler_remove instead of
177         rl_callback_handler_remove.
178         (callback_handler_installed): New global.
179         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
180         (gdb_rl_callback_handler_reinstall): New functions.
181         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
182         gdb_rl_callback_handler_install instead of
183         rl_callback_handler_remove and rl_callback_handler_install.
184         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
185         instead of rl_callback_handler_remove.
186         * event-top.h (gdb_rl_callback_handler_remove)
187         (gdb_rl_callback_handler_install)
188         (gdb_rl_callback_handler_reinstall): New declarations.
189         * infrun.c (reinstall_readline_callback_handler_cleanup): New
190         cleanup function.
191         (fetch_inferior_event): Install it.
192         * top.c (gdb_readline_wrapper_line) Call
193         gdb_rl_callback_handler_remove instead of
194         rl_callback_handler_remove.
195         (gdb_readline_wrapper_cleanup): Don't call
196         rl_callback_handler_install.
197
198 2014-10-29  Pedro Alves  <palves@redhat.com>
199
200         * event-top.c (command_line_handler): Clear the first byte of
201         linebuffer, when it is first allocated.
202
203 2014-10-29  Pedro Alves  <palves@redhat.com>
204
205         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
206         TRY_CATCH.
207
208 2014-10-29  Pedro Alves  <palves@redhat.com>
209
210         PR tui/16138
211         PR tui/17519
212         * tui/tui-interp.c (tui_is_toplevel): Delete global.
213         (tui_allowed_p): Delete function.
214         * tui/tui.c: Include "interps.h".
215         (tui_enable): Don't use tui_allowed_p.  Error out here with
216         detailed error messages if the TUI is the top level interpreter,
217         or if output is not a terminal.  Use newterm instead of initscr,
218         and error out if initializing the terminal fails.  Also error out if
219         the terminal doesn't support cursor addressing.
220         * tui/tui.h (tui_allowed_p): Delete declaration.
221
222 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
223
224         * arm-tdep.c (arm_skip_stack_protector): Return early if
225         address loaded by first "ldr" instruction does not have
226         a corresponding minimal symbol.  Update comment.
227
228 2014-10-29  Yao Qi  <yao@codesourcery.com>
229
230         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
231         loaded address correctly of ldr instruction.
232
233 2014-10-28  Pedro Alves  <palves@redhat.com>
234
235         PR gdb/12623
236         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
237         field.
238         * infrun.c (resume) <stepping breakpoint instruction>: Set the
239         thread's stepped_breakpoint field.  Skip if reverse debugging.
240         Add comment.
241         (init_thread_stepping_state, handle_signal_stop): Clear the
242         thread's stepped_breakpoint field.
243
244 2014-10-27  Pedro Alves  <palves@redhat.com>
245
246         * remote.c (remote_thread_alive): New, factored out from ...
247         (remote_thread_alive): ... this.
248         (remote_update_thread_list): Bail out before deleting threads if
249         the target returned an empty list, and, the current thread has a
250         magic/fake ptid.
251
252 2014-10-27  Pedro Alves  <palves@redhat.com>
253
254         * infrun.c (handle_signal_stop): Also skip handlers when a random
255         signal arrives while handling a "stepi" or a "nexti".  Set the
256         thread's 'step_after_step_resume_breakpoint' flag.
257
258 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
259
260         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
261         (arm_record_ld_st_imm_offset): Reimplement to cover all
262         load/store cases for ARM opcode 010.
263         (arm_record_ld_st_multiple): Reimplement to cover all
264         load/store cases for ARM opcode 100.
265
266 2014-10-26  Doug Evans  <xdje42@gmail.com>
267
268         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
269
270 2014-10-26  Doug Evans  <xdje42@gmail.com>
271
272         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
273         parameter "kind" to "block_index".
274         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
275         "block_index".
276         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
277
278 2014-10-26  Doug Evans  <xdje42@gmail.com>
279
280         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
281
282 2014-10-26  Doug Evans  <xdje42@gmail.com>
283
284         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
285         obstack_alloc.
286
287 2014-10-26  Doug Evans  <xdje42@gmail.com>
288
289         * parser-defs.h (block_found): Move decl from here ...
290         * symtab.h (block_found): ... to here.
291
292 2014-10-26  Doug Evans  <xdje42@gmail.com>
293
294         * symtab.h (struct field_of_this_result): Fix typo in comment.
295         (lookup_symbol_in_language): Move function comment here.
296         (lookup_symbol): Improve function comment.
297         (basic_lookup_symbol_nonlocal): Ditto.
298         (lookup_symbol_static, lookup_symbol_global): Ditto.
299         (lookup_symbol_aux_block): Ditto.
300         (lookup_language_this): Add function comment.
301         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
302         function comment.
303         (lookup_block_symbol): Improve function comment.
304         (lookup_struct): Fix capitalization in function comment.
305         (lookup_transparent_type): Add function comment.
306         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
307         Improve function comment.
308         (lookup_objfile_from_block): Add function comment.
309         * symtab.c (lookup_symbol_in_language): Update function comment.
310         (lookup_symbol, lookup_language_this): Ditto.
311         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
312         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
313         (basic_lookup_symbol_nonlocal): Ditto.
314         (lookup_symbol_static, lookup_symbol_global): Ditto.
315         (lookup_transparent_type, lookup_block_symbol): Ditto.
316
317 2014-10-25  Doug Evans  <xdje42@gmail.com>
318
319         * symtab.c (types_info): Delete forward decl.
320         (functions_info, variables_info, sources_info): Ditto.
321         (_initialize_symtab): Rewrite forward decl to use
322         initialize_file_ftype.
323
324 2014-10-25  Doug Evans  <xdje42@gmail.com>
325
326         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
327
328 2014-10-25  Doug Evans  <xdje42@gmail.com>
329
330         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
331         of local var child_die.
332
333 2014-10-24  Don Breazeal  <donb@codesourcery.com>
334
335         * infrun.c (follow_fork_inferior): Update fork message printing
336         to use target_terminal_ours_for_output instead of
337         target_terminal_ours, to use _() for all format strings, to print
338         "vfork" instead of "fork" for vforks, and to add a detach message.
339         (handle_vfork_child_exec_or_exit): Update message printing to use
340         target_terminal_ours_for_output instead of target_terminal_ours, to
341         use _() for all format strings, and to fix some formatting.
342
343 2014-10-24  Pedro Alves  <palves@redhat.com>
344
345         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
346         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
347         * config/vax/vax.mh: Delete.
348         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
349         obsolete configurations section.
350         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
351         * vax-nat.c: Delete file.
352
353 2014-10-24  Pedro Alves  <palves@redhat.com>
354
355         * NEWS (Removed targets): Add OS/arch column.
356
357 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
358
359         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
360         on the arg type of a constructor only if it is of reference type.
361
362 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
363
364         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
365         accessors and constants from nios2 opcodes update.
366         (nios2_get_next_pc): Likewise.
367
368 2014-10-19  Doug Evans  <xdje42@gmail.com>
369
370         * gdbthread.h (set_running): Fix comment.
371         (set_executing, finish_thread_state): Fix comment.
372
373 2014-10-18  Doug Evans  <xdje42@gmail.com>
374
375         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
376
377 2014-10-17  Doug Evans  <dje@google.com>
378
379         * NEWS: Mention new event gdb.clear_objfiles.
380         * python/py-event.h (emit_clear_objfiles_event): Clear
381         * python/py-events.h (events_object): New member clear_objfiles.
382         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
383         event.
384         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
385         emit clear_objfiles event.
386         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
387         function.
388         (emit_clear_objfiles_event): New function.
389         (clear_objfiles): New event.
390         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
391         Declare.
392         * python/python.c (_initialize_python): Call
393         gdbpy_initialize_clear_objfiles_event.
394
395 2014-10-17  Doug Evans  <dje@google.com>
396
397         * NEWS: Mention new gdb.Objfile.progspace attribute.
398         * python/py-objfile.c (objfpy_get_progspace): New function.
399         (objfile_getset): New entry for "progspace".
400
401 2014-10-17  Pedro Alves  <palves@redhat.com>
402
403         PR gdb/17471
404         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
405         returns a copy of the input.
406         (run_command_1, continue_command, step_1, jump_command)
407         (signal_command, until_command, advance_command, finish_command)
408         (attach_command): Adjust and install a cleanup to free the
409         stripped args.
410
411 2014-10-17  Pedro Alves  <palves@redhat.com>
412
413         PR gdb/17300
414         * infcmd.c (continue_1): If continuing all threads in the
415         foreground, make sure the inferior's terminal settings are put in
416         effect.
417
418 2014-10-17  Pedro Alves  <palves@redhat.com>
419
420         PR gdb/17472
421         * annotate.c (annotate_breakpoints_invalid): Use
422         target_terminal_our_for_output instead of target_terminal_ours.
423         Give back the terminal to the target.
424         (annotate_frames_invalid): Likewise.
425
426 2014-10-17  Pedro Alves  <palves@redhat.com>
427
428         * target.c (enum terminal_state): New enum.
429         (terminal_state): New global.
430         (target_terminal_init): New function.
431         (target_terminal_inferior): Skip if inferior already owns the
432         terminal.
433         (target_terminal_ours, target_terminal_ours_for_output): New
434         functions.
435         * target.h (target_terminal_init): Convert to function prototype.
436         (target_terminal_ours_for_output): Convert to function prototype
437         and tweak comment.
438         (target_terminal_ours): Convert to function prototype and tweak
439         comment.
440         * windows-nat.c (do_initial_windows_stuff): Call
441         target_terminal_init instead of child_terminal_init_with_pgrp.
442
443 2014-10-17  Pedro Alves  <palves@redhat.com>
444
445         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
446         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
447         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
448         solib-osf.c.
449         * NEWS: Mention that support for alpha*-*-osf* has been removed.
450         * ada-lang.h [__alpha__ && __osf__]
451         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
452         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
453         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
454         GDB_OSABI_OSF1.
455         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
456         files.
457         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
458         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
459         * configure: Regenerate.
460         * configure.ac: Remove references to osf.
461         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
462         section.  Remove all other references to osf.
463         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
464         Remove all other references to osf.
465         * dec-thread.c: Delete file.
466         * defs.h (GDB_OSABI_OSF1): Delete.
467         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
468         defined.
469         * osabi.c (gdb_osabi_names): Delete "OSF/1".
470         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
471         Delete code.
472         (unconditionally_kill_inferior)
473         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
474         * solib-osf.c: Delete file.
475
476 2014-10-17  Pedro Alves  <palves@redhat.com>
477
478         * remote.c (clear_threads_listing_context): Move higher up, out of
479         the HAVE_LIBEXPAT guard.
480
481 2014-10-16  Tristan Gingold  <gingold@adacore.com>
482
483         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
484         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
485         on amd64.
486
487 2014-10-15  Pedro Alves  <palves@redhat.com>
488
489         * dec-thread.c (dec_thread_count_gdb_threads)
490         (dec_thread_add_gdb_thread): Delete.
491         (dec_thread_update_thread_list): Delete.
492         (dec_thread_find_new_threads): Rename to ...
493         (dec_thread_update_thread_list): ... this.  Delete GDB-size
494         threads that are no longer found in dec_thread_list.
495         (resync_thread_list): Delete.
496         (dec_thread_wait): Call dec_thread_update_thread_list instead of
497         resync_thread_list.
498
499 2014-10-15  Pedro Alves  <palves@redhat.com>
500
501         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
502         * remote.c (remote_update_thread_list): Skip calling prune_threads
503         if any thread listing method is supported, and instead walk over
504         the set of remote threads listed, deleting those that are not
505         found in GDB's thread list.
506
507 2014-10-15  Pedro Alves  <palves@redhat.com>
508
509         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
510         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
511         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
512         (bsd_uthread_target): Adjust.
513         * corelow.c (core_open): Adjust.
514         * dec-thread.c (dec_thread_find_new_threads): Update comment.
515         (dec_thread_update_thread_list): New function.
516         (init_dec_thread_ops): Adjust.
517         * gdbthread.h (prune_threads): New declaration.
518         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
519         (thread_db_update_thread_list): ... this.  Call prune_threads.
520         (init_thread_db_ops): Adjust.
521         * nto-procfs.c (procfs_find_new_threads): Rename to ...
522         (procfs_update_thread_list): ... this.  Call prune_threads.
523         (procfs_attach, procfs_create_inferior, init_procfs_targets):
524         Adjust.
525         * obsd-nat.c (obsd_find_new_threads): Rename to ...
526         (obsd_update_thread_list): ... this.  Call prune_threads.
527         (obsd_add_target): Adjust.
528         * procfs.c (procfs_target): Adjust.
529         (procfs_notice_thread): Update comment.
530         (procfs_find_new_threads): Rename to ...
531         (procfs_update_thread_list): ... this.  Call prune_threads.
532         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
533         comment.
534         (ravenscar_wait): Adjust.
535         (ravenscar_find_new_threads): Rename to ...
536         (ravenscar_update_thread_list): ... this.  Call prune_threads.
537         (init_ravenscar_thread_ops): Adjust.
538         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
539         (record_btrace_update_thread_list): ... this.  Adjust comment.
540         (init_record_btrace_ops): Adjust.
541         * remote.c (remote_threads_info): Rename to ...
542         (remote_update_thread_list): ... this.  Call prune_threads.
543         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
544         Adjust.
545         * sol-thread.c (check_for_thread_db): Adjust.
546         (sol_find_new_threads_callback): Rename to ...
547         (sol_update_thread_list_callback): ... this.
548         (sol_find_new_threads): Rename to ...
549         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
550         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
551         * target-delegates.c: Regenerate.
552         * target.c (target_find_new_threads): Rename to ...
553         (target_update_thread_list): ... this.
554         * target.h (struct target_ops): Rename to_find_new_threads field
555         to to_update_thread_list.
556         (target_find_new_threads): Rename to ...
557         (target_update_thread_list): ... this.
558         * thread.c (prune_threads): Make extern.
559         (update_thread_list): Adjust.
560
561 2014-10-15  Pedro Alves  <palves@redhat.com>
562
563         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
564         Add describing comment.  Return -1 if the qL packet is not
565         supported.
566         (struct thread_item, thread_item_t): Move higher up in
567         the file.  Add comments.
568         (struct threads_parsing_context): Move higher up in
569         the file, add comments, and remote to ...
570         (struct threads_listing_context): ... this.
571         (remote_newthread_step): Don't add the thread to GDB's thread
572         database here.  Instead push it to the thread_listing_context
573         list.
574         (remote_find_new_threads): Rename to ...
575         (remote_get_threads_with_ql): ... this.  Add target_ops and
576         targets_listing_context parameters.  Pass down context.
577         (start_thread): Adjust.
578         (clear_threads_parsing_context): Rename to ...
579         (clear_threads_listing_context): ... this.
580         (remote_get_threads_with_qxfer): New, with parts salvaged from old
581         remote_threads_info.
582         (remote_get_threads_with_qthreadinfo): Ditto.
583         (remote_threads_info): Reimplement.
584
585 2014-10-15  Pedro Alves  <palves@redhat.com>
586
587         * infrun.c (resume): Don't force displaced-stepping for all
588         single-steps on software single-stepping archs.
589
590 2014-10-15  Pedro Alves  <palves@redhat.com>
591
592         * breakpoint.c (single_step_breakpoints): Delete global.
593         (insert_single_step_breakpoint): Adjust to store the breakpoint
594         pointer in the current thread.
595         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
596         (cancel_single_step_breakpoints): Delete functions.
597         (breakpoint_has_location_inserted_here): Make extern.
598         (single_step_breakpoint_inserted_here_p): Adjust to walk the
599         breakpoint list.
600         * breakpoint.h (breakpoint_has_location_inserted_here): New
601         declaration.
602         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
603         (cancel_single_step_breakpoints): Remove declarations.
604         * gdbthread.h (struct thread_control_state)
605         <single_step_breakpoints>: New field.
606         (delete_single_step_breakpoints)
607         (thread_has_single_step_breakpoints_set)
608         (thread_has_single_step_breakpoint_here): New declarations.
609         * infrun.c (follow_exec): Also clear the single-step breakpoints.
610         (singlestep_breakpoints_inserted_p, singlestep_ptid)
611         (singlestep_pc): Delete globals.
612         (infrun_thread_ptid_changed): Remove references to removed
613         globals.
614         (resume_cleanups): Delete the current thread's single-step
615         breakpoints.
616         (maybe_software_singlestep): Remove references to removed globals.
617         (resume): Adjust to use thread_has_single_step_breakpoints_set and
618         delete_single_step_breakpoints.
619         (init_wait_for_inferior): Remove references to removed globals.
620         (delete_thread_infrun_breakpoints): Delete the thread's
621         single-step breakpoints too.
622         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
623         single-step breakpoints here.
624         (delete_stopped_threads_single_step_breakpoints): New function.
625         (adjust_pc_after_break): Adjust to use
626         thread_has_single_step_breakpoints_set.
627         (handle_inferior_event): Remove references to removed globals.
628         Use delete_stopped_threads_single_step_breakpoints.
629         (handle_signal_stop): Adjust to per-thread single-step
630         breakpoints.  Swap test order to do cheaper tests first.
631         (switch_back_to_stepped_thread): Extend debug output.  Remove
632         references to removed globals.
633         * record-full.c (record_full_wait_1): Adjust to per-thread
634         single-step breakpoints.
635         * thread.c (delete_single_step_breakpoints)
636         (thread_has_single_step_breakpoints_set)
637         (thread_has_single_step_breakpoint_here): New functions.
638         (clear_thread_inferior_resources): Also delete the thread's
639         single-step breakpoints.
640
641 2014-10-15  Pedro Alves  <palves@redhat.com>
642
643         * thread.c (delete_thread_breakpoint): New function.
644         (delete_step_resume_breakpoint)
645         (delete_exception_resume_breakpoint): Use it.
646         (delete_at_next_stop): New function.
647         (clear_thread_inferior_resources): Use delete_at_next_stop.
648
649 2014-10-15  Pedro Alves  <palves@redhat.com>
650
651         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
652         (breakpoint_inserted_here_p): ... here.  Remove special case for
653         software single-step breakpoints.
654         (find_non_raw_software_breakpoint_inserted_here): Inline ...
655         (software_breakpoint_inserted_here_p): ... here.  Remove special
656         case for software single-step breakpoints.
657         (bp_target_info_copy_insertion_state)
658         (deprecated_insert_raw_breakpoint)
659         (deprecated_remove_raw_breakpoint): Delete functions.
660         * breakpoint.h (deprecated_insert_raw_breakpoint)
661         (deprecated_remove_raw_breakpoint): Remove declarations.
662
663 2014-10-15  Pedro Alves  <palves@redhat.com>
664
665         PR breakpoints/9649
666         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
667         Delete array globals.
668         (single_step_breakpoints): New global.
669         (breakpoint_xfer_memory): Remove special handling for single-step
670         breakpoints.
671         (update_breakpoints_after_exec): Delete bp_single_step
672         breakpoints.
673         (detach_breakpoints): Remove special handling for single-step
674         breakpoints.
675         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
676         (bpstat_stop_status): Add comment.
677         (bpstat_what, bptype_string, print_one_breakpoint_location)
678         (adjust_breakpoint_address, init_bp_location): Handle
679         bp_single_step.
680         (new_single_step_breakpoint): New function.
681         (set_momentary_breakpoint, bkpt_remove_location): Remove special
682         handling for single-step breakpoints.
683         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
684         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
685         Rewrite.
686         (detach_single_step_breakpoints, find_single_step_breakpoint):
687         Delete functions.
688         (breakpoint_has_location_inserted_here): New function.
689         (single_step_breakpoint_inserted_here_p): Rewrite.
690         * breakpoint.h: Remove FIXME.
691         (enum bptype) <bp_single_step>: New enum value.
692         (insert_single_step_breakpoint): Update comment.
693         * infrun.c (resume_cleanups)
694         (delete_step_thread_step_resume_breakpoint): Remove single-step
695         breakpoints.
696         (fetch_inferior_event): Install a cleanup that removes infrun
697         breakpoints.
698         (switch_back_to_stepped_thread) <expect thread advanced also>:
699         Clear step-over info.
700
701 2014-10-15  Pedro Alves  <palves@redhat.com>
702
703         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
704         (delete_thread_infrun_breakpoints): New function, with parts
705         salvaged from delete_step_resume_breakpoint_callback.
706         (delete_step_thread_step_resume_breakpoint): Delete.
707         (for_each_just_stopped_thread_callback_func): New typedef.
708         (for_each_just_stopped_thread): New function.
709         (delete_just_stopped_threads_infrun_breakpoints): New function.
710         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
711         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
712         ... this.  Adjust.
713         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
714
715 2014-10-15  Pedro Alves  <palves@redhat.com>
716
717         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
718         trying to step past a non-steppable watchpoint.
719         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
720         field.
721         * infrun.c (struct step_over_info): Add new field
722         'nonsteppable_watchpoint_p' and adjust comments.
723         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
724         Adjust.
725         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
726         (stepping_past_nonsteppable_watchpoint): New function.
727         (step_over_info_valid_p): Also return true if stepping past a
728         nonsteppable watchpoint.
729         (proceed): Adjust call to set_step_over_info.  Remove reference to
730         init_infwait_state.
731         (init_wait_for_inferior): Remove reference to init_infwait_state.
732         (waiton_ptid): Delete global.
733         (struct execution_control_state)
734         <stepped_after_stopped_by_watchpoint>: Delete field.
735         (wait_for_inferior, fetch_inferior_event): Always pass
736         minus_one_ptid to target_wait.
737         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
738         field.
739         (init_infwait_state): Delete function.
740         (handle_inferior_event): Remove infwait_state handling.
741         (handle_signal_stop) <watchpoints handling>: Adjust after
742         stepped_after_stopped_by_watchpoint removal.  Don't remove
743         breakpoints here nor set infwait_state.  Set the thread's
744         stepping_over_watchpoint flag, and call keep_going instead.
745         (keep_going): Handle stepping_over_watchpoint.  Adjust
746         set_step_over_info calls.
747         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
748         function.
749
750 2014-10-15  Pedro Alves  <palves@redhat.com>
751
752         * infrun.c (step_over_info_valid_p): New function.
753         (resume): Use step_over_info_valid_p instead of checking the
754         threads's trap_expected flag.
755
756 2014-10-15  Doug Evans  <dje@google.com>
757             Walfred Tedeschi  <walfred.tedeschi@intel.com>
758
759         PR python/17364
760         * python/lib/gdb/__init__.py (packages): Add "printer".
761         * python/lib/gdb/command/bound_registers.py: Moved to ...
762         * python/lib/gdb/printer/bound_registers.py: ... here.
763         Add printer to global set of builtin printers.  Rename printer from
764         "bound" to "mpx_bound128".
765         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
766         registered as global "builtin" printer.
767         (add_builtin_pretty_printer): New function.
768         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
769         gdb/printer/__init__.py.
770
771 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
772
773         * Makefile.in (SFILES): Remove d-support.c.
774         (COMMON_OBS): Remove d-support.o.
775         * d-lang.h (d_parse_symbol): Remove declaration.
776         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
777         * d-support.c: Remove file.
778
779 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
780
781         * gdb/infrun.c (process_event_stop_test): Apply
782         gdbarch_addr_bits_remove to longjmp resume address.
783
784 2014-10-15  Pedro Alves  <palves@redhat.com>
785
786         * regformats/microblaze.dat: Delete file.
787
788 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
789
790         * features/Makefile (microblaze-expedite): Replace pc with rpc.
791         * regformats/microblaze-with-stack-protect.dat: Regenerate.
792
793 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
794
795         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
796         as non-trivial.
797
798 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
799
800         PR c++/13403
801         PR c++/15154
802         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
803         with qualified args.
804
805 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
806
807         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
808         of the case where the second operand is a pointer.
809         <BINOP_SUB>: Likewise.
810
811 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
812
813         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
814         only if it is not NULL.
815         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
816         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
817         (struct probe_ops) <clear_semaphore>: Likewise.
818         * tracepoint.c (start_tracing): Call set_semaphore only if it is
819         not NULL.
820         (stop_tracing): Likewise, for clear_semaphore.
821
822 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
823
824         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
825         using language_c, instead of current_language.
826
827 2014-10-13  Doug Evans  <dje@google.com>
828
829         * python/py-objfile.c (objfpy_initialize): New function.
830         (objfpy_new, objfile_to_objfile_object): Call it.
831         * python/py-progspace.c (pspy_initialize): New function.
832         (pspy_new, pspace_to_pspace_object): Call it.
833
834 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
835             Jan Kratochvil  <jan.kratochvil@redhat.com>
836
837         Fix "save breakpoints" for "catch" command.
838         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
839         newline.
840
841 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
842
843         Fix "save breakpoints" for "disable $bpnum" command.
844         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
845
846 2014-10-10  Pedro Alves  <palves@redhat.com>
847
848         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
849         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
850         (HFILES_NO_SRCDIR): Remove solib-irix.h.
851         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
852         and been removed.
853         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
854         * configure.ac: Remove references to IRIX.
855         * configure.host: Add *-*-irix* to the obsolete hosts section.
856         Remove all other references to irix.
857         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
858         Delete files.
859
860 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
861
862         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
863         isn't valid, release the tdesc arch data and return NULL.
864
865 2014-10-10  Pedro Alves  <palves@redhat.com>
866
867         * linux-tdep.c: Include observer.h.
868         (linux_inferior_data): New global.
869         (struct linux_info): New structure.
870         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
871         (get_linux_inferior_data): New functions.
872         (linux_vsyscall_range): Rename to ...
873         (linux_vsyscall_range_raw): ... this.
874         (linux_vsyscall_range): New function; handles caching.
875         (_initialize_linux_tdep): Register linux_inferior_data.  Install
876         inferior_exit and inferior_appeared observers.
877
878 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
879             Pedro Alves  <palves@redhat.com>
880
881         PR symtab/14466
882         * solib-svr4.c (svr4_read_so_list): Rename to ...
883         (svr4_current_sos_1): ... this and change the function comment.
884         (svr4_current_sos): New function.
885
886 2014-10-10  Pedro Alves  <palves@redhat.com>
887
888         * arch-utils.c (default_vsyscall_range): New function.
889         * arch-utils.h (default_vsyscall_range): New declaration.
890         * gdbarch.sh (vsyscall_range): New hook.
891         * gdbarch.h, gdbarch.c: Regenerate.
892         * linux-tdep.c (linux_vsyscall_range): New function.
893         (linux_init_abi): Install linux_vsyscall_range as
894         vsyscall_range gdbarch hook.
895         * memrange.c (address_in_mem_range): New function.
896         * memrange.h (address_in_mem_range): New declaration.
897         * symfile-mem.c (find_vdso_size): Delete function.
898         (add_vsyscall_page): Use gdbarch_vsyscall_range.
899
900 2014-10-10  Pedro Alves  <palves@redhat.com>
901
902         * infrun.c (normal_stop): Fix typo in comment.
903
904 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
905
906         PR tdep/9390
907         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
908         typo when using logical AND to determine instruction type.
909
910 2014-10-09  Yao Qi  <yao@codesourcery.com>
911
912         * infrun.c (handle_signal_stop): Remove local variable
913         'printed'.
914
915 2014-10-08  Stan Shebs  <stan@codesourcery.com>
916
917         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
918
919 2014-10-08  Gary Benson  <gbenson@redhat.com>
920
921         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
922
923 2014-10-08  Gary Benson  <gbenson@redhat.com>
924
925         * common/common-defs.h: Include common-exceptions.h.
926         * exceptions.h: Do not include common-exceptions.h.
927
928 2014-10-08  Gary Benson  <gbenson@redhat.com>
929
930         * common/common-defs.h: Include cleanups.h.
931         * common/common-exceptions.c: Do not include cleanups.h.
932         * utils.h: Likewise.
933
934 2014-10-08  Gary Benson  <gbenson@redhat.com>
935
936         * ada-lang.c: Do not include exceptions.h.
937         * ada-valprint.c: Likewise.
938         * amd64-tdep.c: Likewise.
939         * auto-load.c: Likewise.
940         * block.c: Likewise.
941         * break-catch-throw.c: Likewise.
942         * breakpoint.c: Likewise.
943         * btrace.c: Likewise.
944         * c-lang.c: Likewise.
945         * cli/cli-cmds.c: Likewise.
946         * cli/cli-interp.c: Likewise.
947         * cli/cli-script.c: Likewise.
948         * completer.c: Likewise.
949         * corefile.c: Likewise.
950         * corelow.c: Likewise.
951         * cp-abi.c: Likewise.
952         * cp-support.c: Likewise.
953         * cp-valprint.c: Likewise.
954         * darwin-nat.c: Likewise.
955         * dwarf2-frame-tailcall.c: Likewise.
956         * dwarf2-frame.c: Likewise.
957         * dwarf2loc.c: Likewise.
958         * dwarf2read.c: Likewise.
959         * eval.c: Likewise.
960         * event-loop.c: Likewise.
961         * event-top.c: Likewise.
962         * f-valprint.c: Likewise.
963         * frame-unwind.c: Likewise.
964         * frame.c: Likewise.
965         * gdbtypes.c: Likewise.
966         * gnu-v2-abi.c: Likewise.
967         * gnu-v3-abi.c: Likewise.
968         * guile/scm-auto-load.c: Likewise.
969         * guile/scm-breakpoint.c: Likewise.
970         * guile/scm-cmd.c: Likewise.
971         * guile/scm-frame.c: Likewise.
972         * guile/scm-lazy-string.c: Likewise.
973         * guile/scm-param.c: Likewise.
974         * guile/scm-symbol.c: Likewise.
975         * guile/scm-type.c: Likewise.
976         * hppa-hpux-tdep.c: Likewise.
977         * i386-tdep.c: Likewise.
978         * inf-loop.c: Likewise.
979         * infcall.c: Likewise.
980         * infcmd.c: Likewise.
981         * infrun.c: Likewise.
982         * interps.c: Likewise.
983         * interps.h: Likewise.
984         * jit.c: Likewise.
985         * linespec.c: Likewise.
986         * linux-nat.c: Likewise.
987         * linux-thread-db.c: Likewise.
988         * m32r-rom.c: Likewise.
989         * main.c: Likewise.
990         * memory-map.c: Likewise.
991         * mi/mi-cmd-break.c: Likewise.
992         * mi/mi-cmd-stack.c: Likewise.
993         * mi/mi-interp.c: Likewise.
994         * mi/mi-main.c: Likewise.
995         * monitor.c: Likewise.
996         * nto-procfs.c: Likewise.
997         * objc-lang.c: Likewise.
998         * p-valprint.c: Likewise.
999         * parse.c: Likewise.
1000         * ppc-linux-tdep.c: Likewise.
1001         * printcmd.c: Likewise.
1002         * probe.c: Likewise.
1003         * python/py-auto-load.c: Likewise.
1004         * python/py-breakpoint.c: Likewise.
1005         * python/py-cmd.c: Likewise.
1006         * python/py-finishbreakpoint.c: Likewise.
1007         * python/py-frame.c: Likewise.
1008         * python/py-framefilter.c: Likewise.
1009         * python/py-function.c: Likewise.
1010         * python/py-gdb-readline.c: Likewise.
1011         * python/py-inferior.c: Likewise.
1012         * python/py-infthread.c: Likewise.
1013         * python/py-lazy-string.c: Likewise.
1014         * python/py-linetable.c: Likewise.
1015         * python/py-param.c: Likewise.
1016         * python/py-prettyprint.c: Likewise.
1017         * python/py-symbol.c: Likewise.
1018         * python/py-type.c: Likewise.
1019         * python/py-value.c: Likewise.
1020         * python/python-internal.h: Likewise.
1021         * python/python.c: Likewise.
1022         * record-btrace.c: Likewise.
1023         * record-full.c: Likewise.
1024         * regcache.c: Likewise.
1025         * remote-fileio.c: Likewise.
1026         * remote-mips.c: Likewise.
1027         * remote.c: Likewise.
1028         * rs6000-aix-tdep.c: Likewise.
1029         * rs6000-nat.c: Likewise.
1030         * skip.c: Likewise.
1031         * solib-darwin.c: Likewise.
1032         * solib-dsbt.c: Likewise.
1033         * solib-frv.c: Likewise.
1034         * solib-ia64-hpux.c: Likewise.
1035         * solib-spu.c: Likewise.
1036         * solib-svr4.c: Likewise.
1037         * solib.c: Likewise.
1038         * spu-tdep.c: Likewise.
1039         * stack.c: Likewise.
1040         * stap-probe.c: Likewise.
1041         * symfile-mem.c: Likewise.
1042         * symmisc.c: Likewise.
1043         * target.c: Likewise.
1044         * thread.c: Likewise.
1045         * top.c: Likewise.
1046         * tracepoint.c: Likewise.
1047         * tui/tui-interp.c: Likewise.
1048         * typeprint.c: Likewise.
1049         * utils.c: Likewise.
1050         * valarith.c: Likewise.
1051         * valops.c: Likewise.
1052         * valprint.c: Likewise.
1053         * value.c: Likewise.
1054         * varobj.c: Likewise.
1055         * windows-nat.c: Likewise.
1056         * xml-support.c: Likewise.
1057
1058 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1059
1060         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1061         name implies.
1062         (extended_mips16_next_pc): Update accordingly.
1063
1064 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1065
1066         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1067         function.
1068         (micromips_instruction_is_compact_branch): Likewise.
1069         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1070         or a compact jump, reaching a jump delay slot, or seeing a
1071         second non-prologue instruction.
1072         (micromips_scan_prologue): Also terminate scanning upon seeing a
1073         compact branch or jump, or reaching a branch or jump delay slot.
1074         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1075         or jump delay slot, or seeing a second non-prologue instruction.
1076         (mips32_instruction_has_delay_slot): Retain instruction
1077         examination code only, update arguments accordingly and move
1078         instruction fetch pieces to...
1079         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1080         (micromips_instruction_has_delay_slot): Likewise and to...
1081         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1082         (mips16_instruction_has_delay_slot): Likewise and to...
1083         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1084         (mips_single_step_through_delay): Update accordingly.
1085         (mips_adjust_breakpoint_address): Likewise.
1086
1087 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1088
1089         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1090         !mustbe32 also return 1 for 32-bit instructions.
1091         (mips16_instruction_has_delay_slot): Likewise.  Add an
1092         explanatory comment.
1093
1094 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1095
1096         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1097         symbols special.
1098
1099 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1100
1101         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1102         update comments.
1103         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1104         for the breakpoint's address.  Don't preinitialize `placed_size'.
1105         (insert_bp_location): Set `reqstd_address' rather than
1106         `placed_address'.
1107         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1108         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1109         address.
1110         (bkpt_remove_location): Likewise.
1111         (deprecated_insert_raw_breakpoint): Likewise.
1112         (deprecated_remove_raw_breakpoint): Likewise.
1113         (find_single_step_breakpoint): Likewise.
1114         * mem-break.c (default_memory_insert_breakpoint): Use
1115         `reqstd_address' for the breakpoint's address.  Don't set
1116         `placed_address' or `placed_size' if breakpoint contents couldn't
1117         have been determined.
1118         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1119         the breakpoint's address.
1120         (remote_insert_hw_breakpoint): Likewise.  Don't set
1121         `placed_address' or `placed_size' if breakpoint couldn't have been
1122         set.
1123         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1124         `reqstd_address' for the breakpoint's address.
1125         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1126         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1127         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1128         * microblaze-linux-tdep.c
1129         (microblaze_linux_memory_remove_breakpoint): Likewise.
1130         * monitor.c (monitor_insert_breakpoint): Likewise.
1131         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1132         (procfs_insert_hw_breakpoint): Likewise.
1133         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1134         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1135         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1136         * remote-mips.c (mips_insert_breakpoint): Likewise.
1137         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1138
1139 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1140
1141         * valops.c (value_assign): Check for bit field assignments
1142         before calling architecture-specific register value
1143         conversion functions.
1144
1145 2014-10-03  Pierre Muller  <muller@sourceware.org>
1146
1147         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1148
1149 2014-10-02  Pedro Alves  <palves@redhat.com>
1150
1151         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1152         threads_are_executing.
1153         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1154         describing comment.
1155         * gdbthread.h (threads_are_executing): Declare.
1156         (handle_signal_stop) <random signals>: Don't print about the
1157         signal here if stopping.
1158         (end_stepping_range): Don't notify observers here.
1159         (normal_stop): Update the thread list.  If stopped by a random
1160         signal or a stepping range ended, notify observers.
1161         * thread.c (threads_executing): New global.
1162         (init_thread_list): Clear 'threads_executing'.
1163         (set_executing): Set or clear 'threads_executing'.
1164         (threads_are_executing): New function.
1165         (update_threads_executing): New function.
1166         (update_thread_list): Use it.
1167
1168 2014-10-02  Pedro Alves  <palves@redhat.com>
1169
1170         PR breakpoints/17431
1171         * breakpoint.c (update_breakpoints_after_exec): Don't create
1172         overlay, longjmp, std terminate nor exception breakpoints here.
1173
1174 2014-10-02  Pedro Alves  <palves@redhat.com>
1175
1176         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1177         Adjust comments.
1178         * inferior.c (find_inferior_for_program_space): Give preference to
1179         the current inferior.
1180         * inferior.h (find_inferior_for_program_space): Update comment.
1181         * progspace.c (switch_to_program_space_and_thread): Prefer the
1182         current inferior if it's bound to the program space requested.  If
1183         the inferior found doesn't have a PID yet, don't bother looking up
1184         a thread.
1185         * progspace.h (switch_to_program_space_and_thread): Adjust
1186         comment.
1187         * thread.c (any_thread_of_process, any_live_thread_of_process):
1188         Give preference to the current thread.
1189
1190 2014-10-01  Pedro Alves  <palves@redhat.com>
1191
1192         * breakpoint.c (insert_bp_location): Error out if inserting a
1193         software breakpoint at a read-only address.
1194         * target.c (memory_xfer_check_region): New function, factored out
1195         from ...
1196         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1197         ULONGEST.
1198         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1199         against the memory region attributes.
1200
1201 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1202
1203         * NEWS: Announce new exit-code field in -list-thread-groups
1204         output.
1205         * inferior.c (exit_inferior_1): Don't clear exit code.
1206         (inferior_appeared): Clear exit code.
1207         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1208         code.
1209
1210 2014-10-01  Pedro Alves  <palves@redhat.com>
1211
1212         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1213         GENERATED" along with emacs/vi read-only markers.
1214         * regformats/aarch64.dat: Regenerate.
1215         * regformats/arm-with-iwmmxt.dat: Regenerate.
1216         * regformats/arm-with-neon.dat: Regenerate.
1217         * regformats/arm-with-vfpv2.dat: Regenerate.
1218         * regformats/arm-with-vfpv3.dat: Regenerate.
1219         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1220         * regformats/i386/amd64-avx.dat: Regenerate.
1221         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1222         * regformats/i386/amd64-avx512.dat: Regenerate.
1223         * regformats/i386/amd64-linux.dat: Regenerate.
1224         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1225         * regformats/i386/amd64-mpx.dat: Regenerate.
1226         * regformats/i386/amd64.dat: Regenerate.
1227         * regformats/i386/i386-avx-linux.dat: Regenerate.
1228         * regformats/i386/i386-avx.dat: Regenerate.
1229         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1230         * regformats/i386/i386-avx512.dat: Regenerate.
1231         * regformats/i386/i386-linux.dat: Regenerate.
1232         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1233         * regformats/i386/i386-mmx.dat: Regenerate.
1234         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1235         * regformats/i386/i386-mpx.dat: Regenerate.
1236         * regformats/i386/i386.dat: Regenerate.
1237         * regformats/i386/x32-avx-linux.dat: Regenerate.
1238         * regformats/i386/x32-avx.dat: Regenerate.
1239         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1240         * regformats/i386/x32-avx512.dat: Regenerate.
1241         * regformats/i386/x32-linux.dat: Regenerate.
1242         * regformats/i386/x32.dat: Regenerate.
1243         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1244         * regformats/mips-dsp-linux.dat: Regenerate.
1245         * regformats/mips-linux.dat: Regenerate.
1246         * regformats/mips64-dsp-linux.dat: Regenerate.
1247         * regformats/mips64-linux.dat: Regenerate.
1248         * regformats/nios2-linux.dat: Regenerate.
1249         * regformats/rs6000/powerpc-32.dat: Regenerate.
1250         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1251         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1252         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1253         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1254         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1255         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1256         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1257         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1258         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1259         * regformats/s390-linux32.dat: Regenerate.
1260         * regformats/s390-linux32v1.dat: Regenerate.
1261         * regformats/s390-linux32v2.dat: Regenerate.
1262         * regformats/s390-linux64.dat: Regenerate.
1263         * regformats/s390-linux64v1.dat: Regenerate.
1264         * regformats/s390-linux64v2.dat: Regenerate.
1265         * regformats/s390-te-linux64.dat: Regenerate.
1266         * regformats/s390x-linux64.dat: Regenerate.
1267         * regformats/s390x-linux64v1.dat: Regenerate.
1268         * regformats/s390x-linux64v2.dat: Regenerate.
1269         * regformats/s390x-te-linux64.dat: Regenerate.
1270         * regformats/tic6x-c62x-linux.dat: Regenerate.
1271         * regformats/tic6x-c62x.dat: Regenerate.
1272         * regformats/tic6x-c64x-linux.dat: Regenerate.
1273         * regformats/tic6x-c64x.dat: Regenerate.
1274         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1275         * regformats/tic6x-c64xp.dat: Regenerate.
1276
1277 2014-10-01  Pedro Alves  <palves@redhat.com>
1278
1279         * features/Makefile: Update comments.
1280         (XMLTOC): List all xml files we build C files from.
1281         (clean-cfiles): New rule.
1282
1283 2014-10-01  Pedro Alves  <palves@redhat.com>
1284
1285         * features/i386/amd64-avx512-linux.c: Regenerate.
1286         * features/i386/amd64-avx512.c: Regenerate.
1287         * features/i386/x32-avx512-linux.c: Regenerate.
1288         * features/i386/x32-avx512.c: Regenerate.
1289
1290 2014-10-01  Pedro Alves  <palves@redhat.com>
1291
1292         * features/Makefile (WHICH): Remove arm-with-m,
1293         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1294
1295 2014-10-01  Pedro Alves  <palves@redhat.com>
1296
1297         * features/Makefile (clean): New rule.
1298
1299 2014-10-01  Pedro Alves  <palves@redhat.com>
1300
1301         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1302         (zmm14h): Add missing end quotes.
1303
1304 2014-10-01  Pedro Alves  <palves@redhat.com>
1305
1306         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1307         * features/aarch64.c: Regenerate.
1308
1309 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1310
1311         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1312         code so as to work with follow_fork_inferior.
1313         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1314         (inf_ttrace_create_inferior): Remove reference to
1315         inf_ttrace_vfork_ppid.
1316         (inf_ttrace_attach): Ditto.
1317         (inf_ttrace_detach): Ditto.
1318         (inf_ttrace_kill): Use current_inferior instead of
1319         inf_ttrace_vfork_ppid.
1320         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1321         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1322         inferior away from the parent.
1323         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1324         target_follow_fork.
1325         (follow_fork_inferior): New function.
1326         (follow_inferior_reset_breakpoints): Make function static.
1327         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1328         * linux-nat.c (linux_child_follow_fork): Move target-independent
1329         code to infrun.c:follow_fork_inferior.
1330
1331 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1332
1333         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1334         * gdbarch.c: Regenerate.
1335         * gdbarch.h: Likewise.
1336         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1337         gdbarch method 'regset_from_core_section'.
1338         (get_core_register_section): Remove handling for the case that
1339         regset == NULL and regset_from_core_section is defined.
1340         (get_core_registers): Drop check for deleted method.
1341         * procfs.c (procfs_do_thread_registers): Adjust comment.
1342
1343 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1344
1345         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1346         (linux_nat_make_corefile_notes): Remove.
1347         (linux_target_install_ops): Do not set target method
1348         'make_corefile_notes'.
1349         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1350         Remove field.
1351         (linux_corefile_thread_callback): Instead of args->collect, call
1352         linux_collect_thread_registers.
1353         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1354         NULL unless there is a regset iterator.
1355         (linux_make_corefile_notes_1): Remove.
1356         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1357         by linux_make_corefile_notes.
1358         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1359
1360 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1361
1362         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1363         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1364         Remove.
1365         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1366
1367 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1368
1369         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1370         (xtensa_iterate_over_regset_sections): New.
1371         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1372
1373 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1374
1375         * vax-tdep.c (vax_regset_from_core_section): Remove.
1376         (vax_iterate_over_regset_sections): New.
1377         (vax_gdbarch_init): Adjust gdbarch initialization.
1378
1379 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1380
1381         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1382         (tilegx_regset_from_core_section): Remove.
1383         (tilegx_iterate_over_regset_sections): New.
1384         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1385
1386 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1387
1388         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1389         (sparc_iterate_over_regset_sections): New.
1390         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1391         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1392         targets.
1393         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1394         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1395         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1396         target method 'make_corefile_notes'.
1397
1398 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1399
1400         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1401         'sizeof_gregset' and 'sizeof_fpregset'.
1402         * sh-tdep.c (sh_regset_from_core_section): Remove.
1403         (sh_iterate_over_regset_sections): New.
1404         (sh_gdbarch_init): Adjust gdbarch initialization.
1405         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1406         sizeof_fpregset.
1407         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1408         'sizeof_gregset'.
1409
1410 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1411
1412         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1413         (score7_linux_iterate_over_regset_sections): New.
1414         (score_gdbarch_init): Adjust gdbarch initialization.
1415
1416 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1417
1418         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1419         FreeBSD targets.
1420         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1421         method 'make_corefile_notes'.
1422         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1423         (ppcfbsd_regset_from_core_section): Remove.
1424         (ppcfbsd_iterate_over_regset_sections): New.
1425         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
1426         initialization.
1427         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1428         (ppcnbsd_iterate_over_regset_sections): New.
1429         (ppcnbsd_init_abi): Adjust.
1430         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1431         (ppcobsd_iterate_over_regset_sections): New.
1432         (ppcobsd_init_abi): Adjust.
1433         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1434         (rs6000_aix_iterate_over_regset_sections): New.
1435         (rs6000_aix_init_osabi): Adjust.
1436
1437 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1438
1439         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1440         (nios2_regset_from_core_section): Remove.
1441         (nios2_iterate_over_regset_sections): New.
1442         (nios2_linux_init_abi): Adjust gdbarch initialization.
1443
1444 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1445
1446         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1447         (am33_iterate_over_regset_sections): New.
1448         (am33_linux_init_osabi): Adjust gdbarch initialization.
1449
1450 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1451
1452         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1453         (mips_linux_iterate_over_regset_sections): New.
1454         (mips_linux_init_abi): Adjust gdbarch initialization.
1455         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1456         (mips64obsd_iterate_over_regset_sections): New.
1457         (mips64obsd_init_abi): Adjust.
1458         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1459         (mipsnbsd_iterate_over_regset_sections): New.
1460         (mipsnbsd_init_abi): Adjust.
1461
1462 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1463
1464         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1465         (m88k_iterate_over_regset_sections): New.
1466         (m88k_gdbarch_init): Adjust gdbarch initialization.
1467
1468 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1469
1470         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1471         (ia64_linux_iterate_over_regset_sections): New.
1472         (ia64_linux_init_abi): Adjust gdbarch initialization.
1473
1474 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1475
1476         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1477         (m68kbsd_iterate_over_regset_sections): New.
1478         (m68kbsd_init_abi): Adjust gdbarch initialization.
1479         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1480         (m68k_linux_iterate_over_regset_sections): New.
1481         (m68k_linux_init_abi): Adjust gdbarch initialization.
1482
1483 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1484
1485         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1486         (m32r_linux_regset_from_core_section): Remove.
1487         (m32r_linux_iterate_over_regset_sections): New.
1488         (m32r_linux_init_abi): Adjust gdbarch initialization.
1489
1490 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1491
1492         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1493         (amd64obsd_iterate_over_regset_sections): New.
1494         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1495         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1496         Remove.
1497         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
1498         regset_from_core_section initialization.
1499         * i386-tdep.c (i386_regset_from_core_section): Remove.
1500         (i386_iterate_over_regset_sections): New.
1501         (i386_gdbarch_init): Adjust gdbarch initialization.
1502         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1503         (i386_iterate_over_regset_sections): New prototype.
1504         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1505         Remove.
1506         (i386obsd_aout_iterate_over_regset_sections): New.
1507         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1508         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1509         targets.
1510         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1511         (amd64fbsd_init_abi): Call fbsd_init_abi.
1512         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1513         (i386fbsd4_init_abi): Call fbsd_init_abi.
1514         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1515         target method 'make_corefile_notes'.
1516         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1517
1518 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1519
1520         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1521         (hppa_hpux_iterate_over_regset_sections): New.
1522         (hppa_hpux_init_abi): Adjust gdbarch initialization.
1523         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1524         (hppa_linux_iterate_over_regset_sections): New.
1525         (hppa_linux_init_abi): Adjust.
1526         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1527         (hppanbsd_iterate_over_regset_sections): New.
1528         (hppanbsd_init_abi): Adjust.
1529         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1530         (hppaobsd_iterate_over_regset_sections): New.
1531         (hppaobsd_init_abi): Adjust.
1532
1533 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1534
1535         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1536         (frv_linux_iterate_over_regset_sections): New.
1537         (frv_linux_init_abi): Adjust gdbarch initialization.
1538
1539 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1540
1541         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1542         (armbsd_iterate_over_regset_sections): New prototype.
1543         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1544         (armbsd_iterate_over_regset_sections): New.
1545         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1546         initialization.
1547
1548 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1549
1550         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1551         (alpha_linux_iterate_over_regset_sections): New.
1552         (alpha_linux_init_abi): Adjust gdbarch initialization.
1553         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1554         prototype.
1555         (alphanbsd_iterate_over_regset_sections): New prototype.
1556
1557 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1558
1559         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1560         Remove.
1561         (aarch64_linux_iterate_over_regset_sections): New.
1562         (aarch64_linux_init_abi): Adjust gdbarch initialization.
1563
1564 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1565
1566         * fbsd-tdep.c: New file.
1567         * fbsd-tdep.h: New file.
1568         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1569         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1570         (ALLDEPFILES): Add fbsd-tdep.c.
1571
1572 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1573
1574         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1575         parameter.
1576         * gdbarch.h: Regenerate.
1577         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1578         iterator.
1579         (get_core_register_section): Add parameter 'regset' and use it, if
1580         set.  Add parameter 'min_size' and verify the bfd section size
1581         against it.
1582         (get_core_registers_cb): Add parameter 'regset' and pass it to
1583         get_core_register section.  For the "standard" register sections
1584         ".reg" and ".reg2", set an appropriate default for human_name.
1585         (get_core_registers): Don't abort when the gdbarch has an iterator
1586         but no regset_from_core_section.  Add NULL/0 for parameters
1587         'regset'/'min_size' in calls to get_core_register_section.
1588         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1589         'regset' and use it instead of calling the
1590         regset_from_core_section gdbarch method.
1591         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1592         * i386-tdep.c (i386_supply_xstateregset)
1593         (i386_collect_xstateregset, i386_xstateregset): Moved to
1594         i386-linux-tdep.c.
1595         (i386_regset_from_core_section): Drop handling for .reg-xfp and
1596         .reg-xstate.
1597         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
1598         core file support only if the regset iterator hasn't been set.
1599         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1600         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1601         Moved from i386-tdep.c and renamed to *_linux*.
1602         (i386_linux_iterate_over_regset_sections): Add regset parameter to
1603         each callback invocation.  Allow any .reg-xstate size when reading
1604         from a core file.
1605         * amd64-tdep.c (amd64_supply_xstateregset)
1606         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1607         amd64-linux-tdep.c.
1608         (amd64_regset_from_core_section): Remove.
1609         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
1610         install an amd64-specific regset_from_core_section gdbarch method.
1611         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1612         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1613         Moved from amd64-tdep.c and renamed to *_linux*.
1614         (amd64_linux_iterate_over_regset_sections): Add regset parameter
1615         to each callback invocation.  Allow any .reg-xstate size when
1616         reading from a core file.
1617         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1618         (arm_linux_iterate_over_regset_sections): Add regset parameter to
1619         each callback invocation.
1620         (arm_linux_init_abi): No longer set the regset_from_core_section
1621         gdbarch method.
1622         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1623         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1624         each callback invocation.
1625         (ppc_linux_init_abi): No longer set the regset_from_core_section
1626         gdbarch method.
1627         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1628         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1629         (s390_regset_from_core_section): Remove.
1630         (s390_iterate_over_regset_sections): Add regset parameter to each
1631         callback invocation.
1632         (s390_gdbarch_init): No longer set the regset_from_core_section
1633         gdbarch method.  Drop initialization of deleted tdep fields.
1634
1635 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1636
1637         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1638         (amd64_linux_iterate_over_regset_sections): New.
1639         (amd64_linux_init_abi_common): Don't install the regset section
1640         list, but the new iterator in gdbarch.
1641         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1642         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
1643         (arm_linux_iterate_over_regset_sections): ...here.  New function.
1644         (arm_linux_init_abi): Set iterator instead of section list.
1645         * corelow.c (get_core_registers_cb): New function, logic moved
1646         from...
1647         (get_core_registers): ...loop body here.  Use new iterator method
1648         instead of walking through the regset section list.
1649         * gdbarch.sh: Remove 'core_regset_sections'.  New method
1650         'iterate_over_regset_sections'.  New typedef
1651         'iterate_over_regset_sections_cb'.
1652         * gdbarch.c: Regenerate.
1653         * gdbarch.h: Likewise.
1654         * i386-linux-tdep.c (i386_linux_regset_sections)
1655         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1656         Remove.
1657         (i386_linux_iterate_over_regset_sections): New.
1658         (i386_linux_init_abi): Don't choose a regset section list, but
1659         install new iterator in gdbarch.
1660         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1661         (linux_collect_regset_section_cb): New function, logic moved
1662         from...
1663         (linux_collect_thread_registers): ...loop body here.  Use iterator
1664         method instead of walking through list.
1665         (linux_make_corefile_notes_1): Check for presence of iterator
1666         method instead of regset section list.
1667         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1668         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1669         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1670         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
1671         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
1672         (ppc_linux_init_abi): Don't choose from above regset section
1673         lists, but install new iterator in gdbarch.
1674         * regset.h (struct core_regset_section): Remove.
1675         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1676         have_linux_v1, have_linux_v2, and have_tdb.
1677         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1678         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1679         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1680         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1681         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
1682         (s390_iterate_over_regset_sections): ...here.  New function.  Use
1683         new tdep fields.
1684         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
1685         regset section lists, but install new iterator.
1686
1687 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
1688
1689         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1690
1691 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
1692
1693         * progspace.c (print_program_space): Don't prune program spaces
1694         before printing them.
1695
1696 2014-09-25  Pedro Alves  <palves@redhat.com>
1697
1698         * infrun.c (user_visible_resume_ptid): Don't check
1699         singlestep_breakpoints_inserted_p.
1700
1701 2014-09-25  Pedro Alves  <palves@redhat.com>
1702
1703         * breakpoint.c (should_be_inserted): Add debug output.
1704
1705 2014-09-25  Pedro Alves  <palves@redhat.com>
1706
1707         * infrun.c (stepping_past_instruction_at)
1708         (clear_exit_convenience_vars): Point at infrun.h instead of
1709         inferior.h.
1710         (handle_signal_stop): Fix typo.
1711
1712 2014-09-24  Yao Qi  <yao@codesourcery.com>
1713
1714         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1715         bitmask.
1716
1717 2014-09-22  Gary Benson  <gbenson@redhat.com>
1718
1719         * target.c (target_stop): Updated comment.
1720
1721 2014-09-22  Gary Benson  <gbenson@redhat.com>
1722
1723         * target/target.h (target_stop_ptid): Renamed as...
1724         (target_stop_and_wait): New function.  Updated comment.
1725         All uses updated.
1726         (target_continue_ptid): Renamed as...
1727         (target_continue_no_signal): New function.  Updated comment.
1728         All uses updated.
1729
1730 2014-09-22  Pedro Alves  <palves@redhat.com>
1731
1732         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1733         and "auto" merged.
1734         * breakpoint.c (enum ugll_insert_mode): New enum.
1735         (always_inserted_mode): Now a plain boolean.
1736         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1737         (breakpoints_always_inserted_mode): Delete.
1738         (breakpoints_should_be_inserted_now): New function.
1739         (insert_breakpoints): Pass UGLL_INSERT to
1740         update_global_location_list instead of calling
1741         insert_breakpoint_locations manually.
1742         (create_solib_event_breakpoint_1): New, factored out from ...
1743         (create_solib_event_breakpoint): ... this.
1744         (create_and_insert_solib_event_breakpoint): Use
1745         create_solib_event_breakpoint_1 instead of calling
1746         insert_breakpoint_locations manually.
1747         (update_global_location_list): Change parameter type from boolean
1748         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1749         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1750         (update_global_location_list_nothrow): Change parameter type from
1751         boolean to enum ugll_insert_mode.
1752         (_initialize_breakpoint): "breakpoint always-inserted" option is
1753         now a boolean command.  Update help text.
1754         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1755         (breakpoints_should_be_inserted_now): New declaration.
1756         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1757         Remove breakpoints_always_inserted_mode check.
1758         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1759         * remote.c (remote_start_remote): Likewise.
1760
1761 2014-09-22  Pedro Alves  <palves@redhat.com>
1762
1763         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1764         (insert_breakpoints): Don't call insert_breakpoint_locations here.
1765         Instead, pass UGLL_INSERT to update_global_location_list.
1766         (update_global_location_list): Change parameter type from boolean
1767         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
1768         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1769         (create_solib_event_breakpoint_1): New, factored out from ...
1770         (create_solib_event_breakpoint): ... this.
1771         (create_and_insert_solib_event_breakpoint): Use
1772         create_solib_event_breakpoint_1 instead of calling
1773         insert_breakpoint_locations manually.
1774         (update_global_location_list): Handle UGLL_INSERT.
1775
1776 2014-09-22  Pedro Alves  <palves@redhat.com>
1777
1778         * breakpoint.c (enum ugll_insert_mode): New enum.
1779         (update_global_location_list)
1780         (update_global_location_list_nothrow): Change parameter type from
1781         boolean to enum ugll_insert_mode.  All callers adjusted.
1782
1783 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
1784
1785         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1786         SystemTap support in GDB.
1787
1788 2014-09-19  Don Breazeal  <donb@codesourcery.com>
1789
1790         * linux-nat.c (linux_handle_extended_wait): Call
1791         linux_ptrace_get_extended_event.
1792         (wait_lwp): Call linux_is_extended_waitstatus.
1793         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1794         and linux_is_extended_waitstatus.
1795         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1796         linux_ptrace_get_extended_event.
1797         (linux_ptrace_get_extended_event): New function.
1798         (linux_is_extended_waitstatus): New function.
1799         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1800         (linux_is_extended_waitstatus): New declarations.
1801
1802 2014-09-19  Yao Qi  <yao@codesourcery.com>
1803
1804         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1805         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
1806         comments.  Callers update.
1807         (dwarf_decode_lines): Likewise.
1808         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
1809         comments.  Skip the line table if  'lowpc' is greater than
1810         'address'.  Don't check
1811         dwarf2_per_objfile->has_section_at_zero.
1812
1813 2014-09-18  Doug Evans  <dje@google.com>
1814
1815         * NEWS: Mention new "producer" attribute of gdb.Symtab.
1816         * python/py-symtab.c (stpy_get_producer): New function.
1817         (symtab_object_getset): Add "producer" attribute.
1818
1819 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
1820
1821         PR gdb/17384
1822         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1823         (do_captured_read_memory_integer): Remove.
1824         (safe_read_memory_integer): Use target_read_memory directly instead
1825         of catching errors in do_captured_read_memory_integer.
1826
1827 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
1828
1829         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1830         not gdb/doc.
1831
1832 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1833
1834         * objc-lang.c (find_implementation_from_class): Remove dead code.
1835
1836 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1837
1838         PR cli/7233
1839         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1840         "fprintf_unfiltered (gdb_stdlog...)".
1841
1842 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
1843
1844         PR breakpoints/12526
1845         * breakpoint.h (struct watchpoint): New fields val_bitpos and
1846         val_bitsize.
1847         * breakpoint.c (watch_command_1): Use these fields to retain
1848         bitfield information.
1849         (extract_bitfield_from_watchpoint_value): New function.
1850         (watchpoint_check): Use it.
1851         (update_watchpoint): Use it.  Optimize the address and length of a
1852         HW watchpoint pointing to a bitfield.
1853         * value.h (unpack_value_bitfield): New prototype.
1854         * value.c (unpack_value_bitfield): Make extern.
1855
1856 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1857
1858         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1859         x86-dregs.o.
1860         * gnu-nat.c (inf_threads): New function.
1861         * gnu-nat.h (inf_threads_ftype): New typedef.
1862         (inf_threads): New declaration.
1863         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1864         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1865         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1866         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1867         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1868         (i386_gnu_dr_get_control): New functions.
1869         (reg_addr): New structure.
1870         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1871         i386 debugging register hooks.
1872         * NEWS: Mention this.
1873
1874 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1875
1876         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1877         vector data transfer instructions.
1878         (arm_record_coproc_data_proc): Updated.
1879
1880 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1881
1882         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1883         arm_record_exreg_ld_st_insn.
1884         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1885         load/store insns.
1886
1887 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1888
1889         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1890         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1891         processing instructions.
1892
1893 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1894
1895         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1896         for advance SIMD struct ld/st insn.
1897         (thumb2_record_decode_insn_handler): Replace stub handler with
1898         thumb2_record_asimd_struct_ld_st.
1899
1900 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
1901
1902         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1903         for asimd, vfp and coprocessor insns.
1904         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1905         and coprocessor insns.
1906         (thumb2_record_coproc_insn): New function.
1907         (thumb2_record_decode_insn_handler): Update coprocessor insns record
1908         handlers.
1909         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1910         opcode 110 insns.
1911
1912 2014-09-13  Doug Evans  <xdje42@gmail.com>
1913
1914         * NEWS: Mention new "queue-signal" command.
1915         * infcmd.c (queue_signal_command): New function.
1916         (_initialize_infcmd): Add new queue-signal command.
1917
1918 2014-09-13  Doug Evans  <xdje42@gmail.com>
1919
1920         * linux-nat.c (wait_lwp): Add debugging printf.
1921         (linux_nat_wait_1): Ditto.
1922
1923 2014-09-12  Pedro Alves  <palves@redhat.com>
1924
1925         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1926         (create_and_insert_solib_event_breakpoint): New functions.
1927         * breakpoint.h (create_and_insert_solib_event_breakpoint)
1928         (remove_solib_event_breakpoints_at_next_stop): New declarations.
1929         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1930         (remove_dbx_link_breakpoint): Delete function.
1931         (insert_dbx_link_bpt_in_file): Use
1932         create_and_insert_solib_event_breakpoint instead of
1933         deprecated_insert_raw_breakpoint.
1934         (procfs_wait): Don't check whether we hit __dbx_link here.
1935         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1936         here.
1937         * solib-irix.c (base_breakpoint): Delete global.
1938         (disable_break): Delete function.
1939         (enable_break): Use create_solib_event_breakpoint
1940         instead of deprecated_insert_raw_breakpoint.
1941         (irix_solib_handle_event): New function.
1942         (irix_solib_create_inferior_hook): Don't run the target or disable
1943         the mapping-complete breakpoint here.
1944         (_initialize_irix_solib): Install irix_solib_handle_event as
1945         so_ops->handle_event hook.
1946
1947 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1948             Ulrich Weigand  <uweigand@de.ibm.com>
1949
1950         PR tdep/17379
1951         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1952         instead of read_memory_unsigned_integer.
1953
1954 2014-09-12  Gary Benson  <gbenson@redhat.com>
1955
1956         * nat/linux-waitpid.c: Include common-defs.h.
1957         [GDBSERVER]: Add FIXME comment.
1958         [!GDBSERVER]: Don't include defs.h or signal.h.
1959         (linux_debug) [!GDBSERVER]: Remove empty block.
1960
1961 2014-09-12  Gary Benson  <gbenson@redhat.com>
1962
1963         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1964         Don't include defs.h or server.h.
1965
1966 2014-09-12  Gary Benson  <gbenson@redhat.com>
1967
1968         * nat/linux-btrace.c: Include common-defs.h.
1969         Don't include defs.h, server.h or gdbthread.h.
1970         * nat/linux-btrace.h (struct target_ops): New forward declaration.
1971
1972 2014-09-12  Gary Benson  <gbenson@redhat.com>
1973
1974         * common/agent.c: Include common-defs.h.
1975         Don't include defs.h or server.h.
1976         * common/buffer.c: Likewise.
1977         * common/common-debug.c: Likewise.
1978         * common/common-utils.c: Likewise.
1979         * common/errors.c: Likewise.
1980         * common/filestuff.c: Likewise.
1981         * common/format.c: Likewise.
1982         * common/gdb_vecs.c: Likewise.
1983         * common/print-utils.c: Likewise.
1984         * common/ptid.c: Likewise.
1985         * common/rsp-low.c: Likewise.
1986         * common/signals.c: Likewise.
1987         * common/vec.c: Likewise.
1988         * common/xml-utils.c: Likewise.
1989         * nat/linux-osdata.c: Likewise.
1990         * nat/linux-procfs.c: Likewise.
1991         * nat/linux-ptrace.c: Likewise.
1992         * nat/mips-linux-watch.c: Likewise.
1993         * target/waitstatus.c: Likewise.
1994
1995 2014-09-12  Tom Tromey  <tromey@redhat.com>
1996             Gary Benson  <gbenson@redhat.com>
1997
1998         * common/common-regcache.h: New file.
1999         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2000         * regcache.h: Include common-regcache.h.
2001         (regcache_read_pc): Don't declare.
2002         * regcache.c (get_thread_regcache_for_ptid): New function.
2003         * nat/linux-btrace.c: Don't include regcache.h.
2004         Include common-regcache.h.
2005         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2006
2007 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2008
2009         * regcache.h (struct regset): Declare.
2010
2011 2014-09-11  Pedro Alves  <palves@redhat.com>
2012
2013         PR gdb/17347
2014         * main.c: Include "infrun.h".
2015         (catch_command_errors, catch_command_errors_const): Wait for the
2016         foreground command to complete.
2017         * top.c (maybe_wait_sync_command_done): New function, factored out
2018         from ...
2019         (maybe_wait_sync_command_done): ... here.
2020         * top.h (maybe_wait_sync_command_done): New declaration.
2021
2022 2014-09-11  Tom Tromey  <tromey@redhat.com>
2023             Gary Benson  <gbenson@redhat.com>
2024
2025         * common/symbol.h: New file.
2026         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2027         * minsyms.c (find_minimal_symbol_address): New function.
2028         * common/agent.c: Include common/symbol.h.
2029         [!GDBSERVER]: Don't include objfiles.h.
2030         (agent_look_up_symbols): Use find_minimal_symbol_address.
2031
2032 2014-09-11  Gary Benson  <gbenson@redhat.com>
2033
2034         * target/target.h (target_stop_ptid, target_continue_ptid):
2035         Declare.
2036         * target.c (target_stop_ptid, target_continue_ptid): New
2037         functions.
2038         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2039         (agent_run_command): Always use target_stop_ptid and
2040         target_continue_ptid.
2041
2042 2014-09-11  Tom Tromey  <tromey@redhat.com>
2043             Gary Benson  <gbenson@redhat.com>
2044
2045         * target/target.h: New file.
2046         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2047         * target.h: Include target/target.h.
2048         (target_read_memory, target_write_memory): Don't declare.
2049         * target.c (target_read_uint32): New function.
2050         * common/agent.c: Include target/target.h.
2051         [!GDBSERVER]: Don't include target.h.
2052         (helper_thread_id): Type changed to uint32_t.
2053         (agent_get_helper_thread_id): Use target_read_uint32.
2054         (agent_run_command): Always use target_read_memory and
2055         target_write_memory.
2056         (agent_capability): Type changed to uint32_t.
2057         (agent_capability_check): Use target_read_uint32.
2058
2059 2014-09-11  Gary Benson  <gbenson@redhat.com>
2060
2061         * common/common-debug.h (show_debug_regs): Declare.
2062         * common/common-debug.c (show_debug_regs): Define.
2063         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2064         all uses with show_debug_regs.  Replace all uses that considered
2065         debug_hw_points as a multi-value integer with straight boolean
2066         uses.
2067         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2068         with show_debug_regs.
2069         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2070         all uses with show_debug_regs.
2071         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2072         uses with show_debug_regs.
2073
2074 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2075
2076         * findvar.c (address_from_register): Handle targets requiring
2077         a special conversion routine even for plain pointer types.
2078
2079 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2080
2081         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2082         (store_register): Do not call exec_one_dummy_insn.
2083
2084 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2085
2086         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2087         dereference it first.  Use value_enclosing_type instead of
2088         value_type.
2089         (ada_array_length): Likewise.
2090
2091 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2092
2093         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2094         Adjust function implementation and documentation accordingly.
2095         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2096         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2097         Update call to ada_value_ptr_subscript.
2098
2099 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2100
2101         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2102         instead of VAL's type.
2103
2104 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2105
2106         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2107
2108 2014-09-09  Doug Evans  <xdje42@gmail.com>
2109
2110         PR guile/17367
2111         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2112         last parameter to pkg-config, not first.
2113         * configure.ac: Pass --with-guile provided pkg-config path to
2114         GDB_GUILE_PROGRAM_NAMES.
2115         * configure: Regenerate.
2116
2117 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2118
2119         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2120         Bertazi".
2121
2122 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2123
2124         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2125         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2126         the list of sections determining GDB_OSABI_IRIX.
2127
2128 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2129
2130         * MAINTAINERS (Write After Approval): Add "James Hogan".
2131
2132 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2133
2134         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2135
2136 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2137
2138         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2139
2140 2014-09-08  Doug Evans  <xdje42@gmail.com>
2141
2142         PR 17247
2143         * guile.c: #include <signal.h>.
2144         (_initialize_guile): Block SIGCHLD while initializing Guile.
2145
2146         Replaces the following, which is reverted.
2147
2148         2014-07-26  Doug Evans  <xdje42@gmail.com>
2149
2150         PR 17185
2151         * configure.ac: Add check for header gc/gc.h.
2152         Add check for function setenv.
2153         * configure: Regenerate.
2154         * config.in: Regenerate.
2155         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2156
2157 2014-09-08  Doug Evans  <xdje42@gmail.com>
2158
2159         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2160         with named constant.  Fix style of pointer comparison.
2161         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2162
2163 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2164
2165         PR gdb/17035
2166         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2167         decide whether we display the command on "show user".
2168         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2169         printing command name.
2170         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2171         * cli/cli-decode.c (cli_user_command_p): Create helper function
2172         to verify whether cmd_list_element is a user-defined command.
2173
2174 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2175
2176         PR python/17355
2177         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2178         Fix goto out of TRY_CATCH.
2179
2180 2014-09-06  Doug Evans  <xdje42@gmail.com>
2181             Tom Tromey  <tromey@redhat.com>
2182
2183         PR 15276
2184         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2185         $_any_caller_matches.
2186         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2187         * python/lib/gdb/function/caller_is.py: New file.
2188
2189 2014-09-06  Doug Evans  <xdje42@gmail.com>
2190
2191         * infcmd.c (program_info): Fix typo.
2192
2193 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2194
2195         PR gdb/17235
2196         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2197         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2198         subexpressions on SDT probes.
2199
2200 2014-09-04  Pedro Alves  <palves@redhat.com>
2201
2202         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2203         the input is only one character long.
2204
2205 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2206
2207         PR fortran/17237
2208         * f-valprint.c (f_val_print): Specify the correct print option to
2209         use when printing integer values.
2210
2211 2014-09-04  Gary Benson  <gbenson@redhat.com>
2212
2213         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2214         Remove code to cope with LWPs wrapped as PIDs.
2215         Add assertions to ensure no wrapped LWPs are passed.
2216
2217 2014-09-04  Pedro Alves  <palves@redhat.com>
2218
2219         * value.c (value_ranges_copy_adjusted): New function, factored out
2220         from ...
2221         (value_contents_copy_raw): ... here.
2222         (unpack_value_bits_as_long_1): Rename back to ...
2223         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2224         'result' parameters.  Change return type to LONGEST.
2225         (unpack_value_bits_as_long): Delete.
2226         (unpack_value_field_as_long_1): Delete.
2227         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2228         (unpack_value_bitfield): New function.
2229         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2230         (value_fetch_lazy): Use unpack_value_bitfield.
2231         * value.h (unpack_value_bits_as_long): Delete declaration.
2232
2233 2014-09-03  Sasha Smundak  <asmundak@google.com>
2234
2235         * python/py-frame.c (frapy_read_register): New function.
2236
2237 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2238
2239         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2240         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2241
2242 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2243
2244         PR python/16699
2245         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2246         function.
2247         (add_cmd): Set "completer_handle_brkchars" to NULL.
2248         * cli/cli-decode.h (struct cmd_list_element)
2249         <completer_handle_brkchars>: New field.
2250         * command.h (completer_ftype_void): New typedef.
2251         (set_cmd_completer_handle_brkchars): New prototype.
2252         * completer.c (set_gdb_completion_word_break_characters): New
2253         function.
2254         (complete_line_internal): Call "completer_handle_brkchars"
2255         callback from command.
2256         * completer.h: Include "command.h".
2257         (set_gdb_completion_word_break_characters): New prototype.
2258         * python/py-cmd.c (cmdpy_completer_helper): New function.
2259         (cmdpy_completer_handle_brkchars): New function.
2260         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2261         (cmdpy_init): Set completer_handle_brkchars to
2262         cmdpy_completer_handle_brkchars.
2263
2264 2014-09-03  Gary Benson  <gbenson@redhat.com>
2265
2266         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2267         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2268         Loop conditions changed to equivalent form.
2269         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2270         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2271         ALL_DEBUG_ADDRESS_REGISTERS.
2272
2273 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2274
2275         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2276         description fix.
2277
2278 2014-09-02  Doug Evans  <dje@google.com>
2279
2280         * typeprint.c (find_global_typedef): Fix comment.
2281
2282 2014-09-02  Gary Benson  <gbenson@redhat.com>
2283
2284         * i386-nat.h: Renamed as...
2285         * x86-nat.h: New file.  All type, function and variable name
2286         prefixes changed from "i386_" to "x86_".  All references updated.
2287         * i386-nat.c: Renamed as...
2288         * x86-nat.c: New file.  All type, function and variable name
2289         prefixes changed from "i386_" to "x86_".  All references updated.
2290         * common/i386-xstate.h: Renamed as...
2291         * common/x86-xstate.h: New file.  All type, function and variable
2292         name prefixes changed from "i386_" to "x86_".  All references
2293         updated.
2294         * nat/i386-cpuid.h: Renamed as...
2295         * nat/x86-cpuid.h: New file.  All type, function and variable name
2296         prefixes changed from "i386_" to "x86_".  All references updated.
2297         * nat/i386-gcc-cpuid.h: Renamed as...
2298         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2299         name prefixes changed from "i386_" to "x86_".  All references
2300         updated.
2301         * nat/i386-dregs.h: Renamed as...
2302         * nat/x86-dregs.h: New file.  All type, function and variable name
2303         prefixes changed from "i386_" to "x86_".  All references updated.
2304         * nat/i386-dregs.c: Renamed as...
2305         * nat/x86-dregs.c: New file.  All type, function and variable name
2306         prefixes changed from "i386_" to "x86_".  All references updated.
2307
2308 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2309
2310         * varobj.c (_initialize_varobj): Move to the end of file.
2311
2312 2014-08-29  Gary Benson  <gbenson@redhat.com>
2313
2314         * common/common-exceptions.h: New file.
2315         * common/common-exceptions.c: Likewise.
2316         * Makefile.in (SFILES): Add common/common-exceptions.c.
2317         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2318         (COMMON_OBS): Add common-exceptions.o.
2319         (common-exceptions.o): New rule.
2320         * exceptions.h (common-exceptions.h): Include.
2321         (gdb_setjmp.h): Do not include.
2322         (return_reason): Moved to common-exceptions.h.
2323         (enum return_reason): Likewise.
2324         (RETURN_MASK): Likewise.
2325         (typedef return_mask): Likewise.
2326         (enum errors): Likewise.
2327         (struct gdb_exception): Likewise.
2328         (exceptions_state_mc_init): Likewise.
2329         (exceptions_state_mc_action_iter): Likewise.
2330         (exceptions_state_mc_action_iter_1): Likewise.
2331         (TRY_CATCH): Likewise.
2332         (throw_exception): Likewise.
2333         (throw_verror): Likewise.
2334         (throw_vquit): Likewise.
2335         (throw_error): Likewise.
2336         (throw_quit): Likewise.
2337         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2338         (enum catcher_action): Likewise.
2339         (struct catcher): Likewise.
2340         (current_catcher): Likewise.
2341         (catcher_list_size): Likewise.
2342         (exceptions_state_mc_init): Likewise.
2343         (catcher_pop): Likewise.
2344         (exceptions_state_mc): Likewise.
2345         (exceptions_state_mc_action_iter): Likewise.
2346         (exceptions_state_mc_action_iter_1): Likewise.
2347         (throw_exception): Likewise.
2348         (exception_messages): Likewise.
2349         (exception_messages_size): Likewise.
2350         (throw_it): Likewise.
2351         (throw_verror): Likewise.
2352         (throw_vquit): Likewise.
2353         (throw_error): Likewise.
2354         (throw_quit): Likewise.
2355         (prepare_to_throw_exception): New function.
2356
2357 2014-08-29  Gary Benson  <gbenson@redhat.com>
2358
2359         * common/gdb_setjmp.h: New file.
2360         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2361         * configure.ac: Move sigsetjmp check...
2362         * common/common.m4: ...here.
2363         * configure: Regenerate.
2364         * cp-support.c (SIGJMP_BUF): Delete.
2365         (SIGSETJMP): Likewise.
2366         (SIGLONGJMP): Likewise.
2367         * exceptions.h (gdb_setjmp.h): Include.
2368         (setjmp.h): Do not include.
2369         (EXCEPTIONS_SIGJMP_BUF): Delete.
2370         (EXCEPTIONS_SIGSETJMP): Likewise.
2371         (EXCEPTIONS_SIGLONGJMP): Likewise.
2372         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2373         from gdb_setjmp.h.
2374         * exceptions.c: Likewise.
2375
2376 2014-08-29  Gary Benson  <gbenson@redhat.com>
2377
2378         * cleanups.h: Moved to...
2379         * common/cleanups.h: New file.
2380         * cleanups.c: Moved to...
2381         * common/cleanups.c: New file.  Include common-defs.h and
2382         cleanups.h.  Do not include defs.h.
2383         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2384         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2385         (cleanups.o): New rule.
2386
2387 2014-08-29  Gary Benson  <gbenson@redhat.com>
2388
2389         * common/errors.h (internal_warning): New declaration.
2390         (internal_vwarning): Likewise.
2391         * common/errors.c (internal_warning): New function.
2392         * utils.h (internal_warning): Don't declare.
2393         (internal_vwarning): Likewise.
2394         * utils.c (internal_warning): Removed.
2395
2396 2014-08-29  Gary Benson  <gbenson@redhat.com>
2397
2398         * main.c (captured_main): Use warning during startup.
2399         Prefix startup warning messages with command name.
2400
2401 2014-08-29  Gary Benson  <gbenson@redhat.com>
2402
2403         * main.c (captured_main): Handle usage errors with error.
2404
2405 2014-08-29  Gary Benson  <gbenson@redhat.com>
2406
2407         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2408         exit pair with a call to error.  Wrap the message with _().
2409
2410 2014-08-29  Gary Benson  <gbenson@redhat.com>
2411
2412         * main.c (captured_main): Replace a fprintf/exit
2413         pair with a call to error.  Wrap the message with _().
2414
2415 2014-08-29  Gary Benson  <gbenson@redhat.com>
2416
2417         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2418         pairs with calls to error.  Wrap the message with _().
2419
2420 2014-08-29  Gary Benson  <gbenson@redhat.com>
2421
2422         * utils.c (vwarning): Protect calls to target_terminal_ours
2423         and wrap_here.
2424
2425 2014-08-29  Gary Benson  <gbenson@redhat.com>
2426
2427         * exceptions.c (print_flush): Protect calls to
2428         target_terminal_ours and wrap_here.
2429
2430 2014-08-29  Gary Benson  <gbenson@redhat.com>
2431
2432         * utils.h (filtered_printing_initialized): New declaration.
2433         * utils.c (abort_with_message): New function.
2434         (internal_vproblem): Use abort_with_message for first level
2435         recursive internal problems, and if gdb_stderr is not set up.
2436         Protect calls to target_terminal_ours, begin_line and query.
2437
2438 2014-08-28  Doug Evans  <dje@google.com>
2439
2440         * symtab.c (in_prologue): Move definition to better spot.
2441         (skip_prologue_using_sal): Ditto.
2442
2443 2014-08-28  Doug Evans  <dje@google.com>
2444
2445         * symtab.c (find_function_start_sal): Move definition to better spot.
2446
2447 2014-08-28  Yao Qi  <yao@codesourcery.com>
2448
2449         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2450         found_stack_adjust in forward scan.  Remove condition check
2451         on found_stack_adjust which is always true.  Indent the code.
2452
2453 2014-08-28  Yao Qi  <yao@codesourcery.com>
2454
2455         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2456         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2457         (dwarf_decode_lines): Remove argument
2458         want_line_info.  Remove condition check on want_line_info.
2459         Callers update.
2460
2461 2014-08-27  Doug Evans  <dje@google.com>
2462
2463         * dwarf2read.c (dwarf_record_line): Fix typo.
2464
2465 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2466
2467         * target.h (struct target_ops::to_terminal_save_ours): Remove
2468         declaration.
2469         (target_terminal_save_ours): Remove macro.
2470         * target-delegates.c: Regenerate.
2471         * inf-child.c (inf_child_target): Don't set the nonexistent
2472         field to_terminal_save_ours.
2473         * inferior.h (child_terminal_save_ours): Remove declaration.
2474         * terminal.h (gdb_save_tty_state): New declaration.
2475         * inflow.c (child_terminal_save_ours): Rename to ...
2476         (gdb_save_tty_state): ... this.
2477         * tui/tui.c: Include terminal.h.
2478         (tui_enable): Use gdb_save_tty_state instead of
2479         target_terminal_save_ours.
2480         (tui_disable): Likewise.
2481
2482 2014-08-25  Doug Evans  <dje@google.com>
2483
2484         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2485         Pass NULL instead of 0 for context pointer.
2486
2487 2014-08-25  Yao Qi  <yao@codesourcery.com>
2488
2489         * dwarf2read.c: Fix grammatical error.
2490
2491 2014-08-24  Yao Qi  <yao@codesourcery.com>
2492
2493         * dwarf2read.c (scan_partial_symbols):  Update comments.
2494         Rename argument 'need_pc' with 'set_addrmap'.
2495         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
2496         'set_addrmap'.
2497         (add_partial_module): Likewise.
2498         (add_partial_subprogram): Likewise.  Update comments.
2499         (dwarf2_name): Fix typo.
2500
2501 2014-08-22  Doug Evans  <dje@google.com>
2502
2503         PR 17276
2504         * dwarf2read.c (dwarf_record_line_p): New function.
2505         (dwarf_decode_lines_1): Ignore subsequent line number entries
2506         for the same line if any entry had a non-zero discriminator.
2507
2508 2014-08-22  Doug Evans  <dje@google.com>
2509
2510         * buildsym.h (record_line_ftype): New typedef.
2511         (record_line): Use it.
2512         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2513         (dwarf_decode_lines_1): Call them.
2514
2515 2014-08-22  Yao Qi  <yao@codesourcery.com>
2516
2517         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2518         (ctf_end): Remove code.
2519
2520 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2521
2522         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2523         (linux_make_corefile_notes): call update_thread_list, protected against
2524         exceptions.
2525
2526 2014-08-21  Pedro Alves  <palves@redhat.com>
2527
2528         * infcmd.c (attach_command): Remove comment.
2529
2530 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
2531
2532         * aarch64-linux-nat.c (dr_changed_t): Change the type from
2533         unsigned LONGEST to ULONGEST.
2534
2535 2014-08-20  Pedro Alves  <palves@redhat.com>
2536
2537         * Makefile.in (check-read1): New rule.
2538
2539 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
2540
2541         * value.c (value_from_contents_and_address): Strip resolved_type's
2542         typedef layers before checking its TYPE_DATA_LOCATION.
2543
2544 2014-08-20  Pedro Alves  <palves@redhat.com>
2545
2546         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2547
2548 2014-08-20  Yao Qi  <yao@codesourcery.com>
2549
2550         * amd64-tdep.c (amd64_classify): Add a blank line after the
2551         example.  Move "*/" to a new line.
2552         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2553         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2554         * dwarf2read.c (psymtab_include_file_name): Likewise.
2555
2556 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
2557             Pedro Alves  <palves@redhat.com>
2558
2559         PR symtab/14604
2560         PR symtab/14605
2561         * ada-lang.c (coerce_unspec_val_to_type): Use
2562         value_contents_copy_raw.
2563         * ada-valprint.c (val_print_packed_array_elements): Adjust.
2564         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2565         * cp-valprint.c (cp_print_value_fields): Let the common printing
2566         code handle optimized out values.
2567         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2568         * d-valprint.c (dynamic_array_type): Use
2569         value_bits_any_optimized_out.
2570         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2571         check_any_valid fields.
2572         (check_pieced_value_bits): Delete and inline ...
2573         (check_pieced_synthetic_pointer): ... here.
2574         (check_pieced_value_validity): Delete.
2575         (check_pieced_value_invalid): Delete.
2576         (pieced_value_funcs): Remove check_validity and check_any_valid
2577         fields.
2578         (read_pieced_value): Use mark_value_bits_optimized_out.
2579         (write_pieced_value): Switch to use
2580         mark_value_bytes_optimized_out.
2581         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2582         of assuming the whole value is optimized out.
2583         * findvar.c (read_frame_register_value): Remove special handling
2584         of optimized out registers.
2585         (value_from_register): Use mark_value_bytes_optimized_out.
2586         * frame-unwind.c (frame_unwind_got_optimized): Use
2587         mark_value_bytes_optimized_out.
2588         * jv-valprint.c (java_value_print): Adjust.
2589         (java_print_value_fields): Let the common printing code handle
2590         optimized out values.
2591         * mips-tdep.c (mips_print_register): Remove special handling of
2592         optimized out registers.
2593         * opencl-lang.c (lval_func_check_validity): Delete.
2594         (lval_func_check_any_valid): Delete.
2595         (opencl_value_funcs): Remove check_validity and check_any_valid
2596         fields.
2597         * p-valprint.c (pascal_object_print_value_fields): Let the common
2598         printing code handle optimized out values.
2599         * stack.c (read_frame_arg): Remove special handling of optimized
2600         out values.  Fetch both VAL and ENTRYVAL before comparing
2601         contents.  Adjust to value_available_contents_eq rename.
2602         * valprint.c (valprint_check_validity)
2603         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2604         (val_print_array_elements): Adjust.
2605         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2606         (value_bits_any_optimized_out): New function.
2607         (value_entirely_covered_by_range_vector): New function, factored
2608         out from value_entirely_unavailable.
2609         (value_entirely_unavailable): Reimplement.
2610         (value_entirely_optimized_out): New function.
2611         (insert_into_bit_range_vector): New function, factored out from
2612         mark_value_bits_unavailable.
2613         (mark_value_bits_unavailable): Reimplement.
2614         (struct ranges_and_idx): New struct.
2615         (find_first_range_overlap_and_match): New function, factored out
2616         from value_available_contents_bits_eq.
2617         (value_available_contents_bits_eq): Rename to ...
2618         (value_contents_bits_eq): ... this.  Check both unavailable
2619         contents and optimized out contents.
2620         (value_available_contents_eq): Rename to ...
2621         (value_contents_eq): ... this.
2622         (allocate_value_lazy): Remove reference to the old optimized_out
2623         boolean.
2624         (allocate_optimized_out_value): Use
2625         mark_value_bytes_optimized_out.
2626         (require_not_optimized_out): Adjust to check whether the
2627         optimized_out vec is empty.
2628         (ranges_copy_adjusted): New function, factored out from
2629         value_contents_copy_raw.
2630         (value_contents_copy_raw): Also copy the optimized out ranges.
2631         Assert the destination ranges aren't optimized out.
2632         (value_contents_copy): Update comment, remove call to
2633         require_not_optimized_out.
2634         (value_contents_equal): Adjust to check whether the optimized_out
2635         vec is empty.
2636         (set_value_optimized_out, value_optimized_out_const): Delete.
2637         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2638         New functions.
2639         (value_entirely_optimized_out, value_bits_valid): Delete.
2640         (value_copy): Take a VEC copy of the 'optimized_out' field.
2641         (value_primitive_field): Remove special handling of optimized out.
2642         (value_fetch_lazy): Assert that lazy values have no unavailable
2643         regions.  Use value_bits_any_optimized_out.  Remove some special
2644         handling for optimized out values.
2645         * value.h: Add intro comment about <optimized out> and
2646         <unavailable>.
2647         (struct lval_funcs): Remove check_validity and check_any_valid
2648         fields.
2649         (set_value_optimized_out, value_optimized_out_const): Remove.
2650         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2651         New declarations.
2652         (value_bits_any_optimized_out): New declaration.
2653         (value_bits_valid): Delete declaration.
2654         (value_available_contents_eq): Rename to ...
2655         (value_contents_eq): ... this, and extend comments.
2656
2657 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2658
2659         Fix -fsanitize=address on unreadable inferior strings.
2660         * valprint.c (val_print_string): Fix access before BUFFER.
2661
2662 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
2663
2664         * target.c (target_struct_size): Remove.
2665         (target_struct_allocsize): Remove.
2666         (DEFAULT_ALLOCSIZE): Remove.
2667         (target_ops_p): New typedef.
2668         (DEF_VEC_P (target_ops_p)): New vector type.
2669         (target_structs): Change type to VEC (target_ops_p).
2670         (add_target_with_completer): Replace "push" code by VEC_safe_push.
2671         (find_default_run_target): Rewrite for loop following changes to
2672         target_structs.
2673
2674 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
2675
2676         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2677         Adjust code accordingly.  Adjust function description comment.
2678
2679 2014-08-19  Yao Qi  <yao@codesourcery.com>
2680
2681         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2682         types.
2683
2684 2014-08-19  Alan Modra  <amodra@gmail.com>
2685
2686         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2687         * config.in: Regenerate.
2688         * configure: Regenerate.
2689
2690 2014-08-19  Tom Tromey  <tromey@redhat.com>
2691             Gary Benson  <gbenson@redhat.com>
2692
2693         * common/common-debug.h: New file.
2694         * common/common-debug.c: Likewise.
2695         * debug.c: Likewise.
2696         * Makefile.in (SFILES): Add common/common-debug.c.
2697         (HFILES_NO_SRCDIR): Add common/common-debug.h.
2698         (COMMON_OBS): Add common-debug.o and debug.o.
2699         (common-debug.o): New rule.
2700         * common/common-defs.h: Include common-debug.h.
2701         * common/agent.c (debug_agent_printf): New function.
2702         (DEBUG_AGENT): Redefine.
2703         * nat/i386-dregs.c (debug_printf): Undefine.
2704
2705 2014-08-19  Gary Benson  <gbenson@redhat.com>
2706
2707         * common/common-defs.h: Include print-utils.h.
2708         * utils.h: Do not include print-utils.h.
2709
2710 2014-08-19  Tom Tromey  <tromey@redhat.com>
2711             Gary Benson  <gbenson@redhat.com>
2712
2713         * common/common-types.h: New file.
2714         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2715         * common/common-defs.h: Include common-types.h.
2716         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2717         (ULONGEST): Remove.
2718
2719 2014-08-19  Tom Tromey  <tromey@redhat.com>
2720             Gary Benson  <gbenson@redhat.com>
2721
2722         * common/errors.h: New file.
2723         * common/errors.c: Likewise.
2724         * Makefile.in (SFILES): Add common/errors.c.
2725         (HFILES_NO_SRCDIR): Add common/errors.h.
2726         (COMMON_OBS): Add errors.o.
2727         (errors.o): New rule.
2728         * common/common-defs.h: Include errors.h.
2729         * utils.h (perror_with_name, error, verror, warning, vwarning):
2730         Don't declare.
2731         * common/common-utils.h: (malloc_failure, internal_error):
2732         Likewise.
2733
2734 2014-08-19  Gary Benson  <gbenson@redhat.com>
2735
2736         * utils.c (internal_vproblem): Always print the message.
2737
2738 2014-08-18  Doug Evans  <dje@google.com>
2739
2740         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2741
2742 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2743
2744         * ada-typeprint.c (type_is_full_subrange_of_target_type):
2745         Return 0 if TYPE is dynamic.
2746         (print_range): Add handling of dynamic ranges.
2747
2748 2014-08-18  Keven Boell  <keven.boell@intel.com>
2749             Joel Brobecker  <brobecker@adacore.com>
2750
2751         * gdbtypes.h (struct main_type): Add field "data_location".
2752         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2753         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2754         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2755         a dynamic data location.
2756         (resolve_dynamic_type): Add DW_AT_data_location handling.
2757         (copy_recursive, copy_type): Copy the data_location information
2758         when present.
2759         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2760         * value.c (value_from_contents_and_address): Add
2761         DW_AT_data_location handling.
2762
2763 2014-08-18  Keven Boell  <keven.boell@intel.com>
2764             Joel Brobecker  <brobecker@adacore.com>
2765
2766         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2767         field "get_object_address".
2768         * dwarf2expr.c (execute_stack_op): Add handling for
2769         DW_OP_push_object_address.
2770         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2771         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2772         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2773         (dwarf_expr_get_obj_addr): New function.
2774         (dwarf_expr_ctx_funcs): Add get_object_address field.
2775         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2776         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
2777         (dwarf2_evaluate_property): Add parameter "address".  Use it.
2778         (needs_get_obj_addr): New function.
2779         (needs_frame_ctx_funcs): Add get_object_address field.
2780         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2781         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
2782         (resolve_dynamic_array): Likewise.
2783
2784 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2785
2786         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2787         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2788         fixed value for records and unions for which some GNAT encodings
2789         are present.
2790
2791 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2792
2793         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2794         rewrite to avoid "else if" and "else" constructs.  Should be
2795         a no-op in practice.
2796
2797 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
2798
2799         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2800         of lexical block.
2801
2802 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2803
2804         PR c++/17132
2805         * eval.c: Update all calls to find_overload_match.
2806         * valarith.c: Likewise.
2807         (value_user_defined_cpp_op, value_user_defined_op): New
2808         argument NOSIDE.  Update all callers.
2809         * valops.c (find_overload_match): New argument NOSIDE.
2810         * value.h (find_overload_match): Update signature.
2811
2812 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
2813
2814         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2815         'items' methods instead of 'iteritems' method on dictionaries.
2816
2817 2014-08-15  Doug Evans  <dje@google.com>
2818
2819         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2820         closer to use.
2821
2822 2014-08-15  Doug Evans  <dje@google.com>
2823
2824         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2825
2826 2014-08-15  Doug Evans  <dje@google.com>
2827
2828         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2829
2830 2014-08-15  Doug Evans  <dje@google.com>
2831
2832         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2833         unused.
2834
2835 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
2836
2837         * dcache.h: Include target.h, to avoid compile time warnings.
2838
2839 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
2840
2841         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
2842         frame_info" partial declaration.
2843         * gdbarch.h: Regenerate.
2844
2845 2014-08-15  Yao Qi  <yao@codesourcery.com>
2846
2847         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2848         Add parameter 'decode_for_pst_p'.  Callers update.
2849
2850 2014-08-13  Yao Qi  <yao@codesourcery.com>
2851
2852         PR build/17104
2853         * configure.ac: Use local variable 'pos'.
2854         * configure: Regenerated.
2855
2856 2014-08-11  Doug Evans  <dje@google.com>
2857
2858         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2859         message, it is redundant with "Reading symbols from ..." message.
2860
2861 2014-08-10  Doug Evans  <xdje42@gmail.com>
2862
2863         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2864
2865 2014-08-09  Yao Qi  <yao@codesourcery.com>
2866
2867         PR remote/9053
2868         * remote.c (remote_xfer_partial): Remove dead code.
2869
2870 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2871
2872         * ia64-linux-tdep.c: Include "regset.h".
2873         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2874         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2875         (ia64_linux_supply_fpregset): New function.
2876         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2877         (ia64_linux_regset_from_core_section): New function.
2878         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2879         method.
2880
2881 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2882
2883         * m68klinux-tdep.c: Include "regset.h".
2884         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2885         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2886         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2887         (m68k_linux_regset_from_core_section): New function.
2888         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2889         method.
2890
2891 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2892
2893         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2894         function.  Move logic to...
2895         (tilegx_linux_regmap): ... this new register map.
2896         (tilegx_linux_regset): Refer to register map, replace supply
2897         method by regcache_supply_regset, and add collect method.
2898         * tilegx-tdep.h (enum tilegx_regnum): New enum value
2899         TILEGX_FIRST_EASY_REGNUM.
2900
2901 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2902
2903         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2904         that calls regcache_supply_regset and handles the EPC register
2905         separately.  Move main logic to...
2906         (score7_linux_gregmap): ... this new register map.
2907         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2908         (score7_linux_gregset): Refer to register map.  Add collect method.
2909         (score7_linux_regset_from_core_section): Replace
2910         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2911         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2912         (struct regset): Delete unused forward declaraction.
2913         (struct pt_regs): Delete structure definition.
2914         (elf_gregset_t): Delete typedef.
2915
2916 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2917
2918         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2919         (nios2_core_regset): Add collect method.
2920
2921 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2922
2923         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2924         platform-independent and don't write to read-only input buffer.
2925         (m32r_linux_collect_gregset): New function.
2926         (m32r_linux_gregset): Add collect method.
2927
2928 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2929
2930         * hppa-linux-tdep.c (greg_map): Rename to...
2931         (hppa_linux_gregmap): ... this.  Also convert to
2932         regcache_map_entry format.
2933         (hppa_linux_supply_regset): Delete function.
2934         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
2935         (hppa_linux_fpregmap): ... this new register map.
2936         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2937         register map, replace supply method by regcache_supply_regset, and
2938         add collect method regcache_collect_regset.
2939
2940 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2941
2942         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2943         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2944         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2945         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2946         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2947         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2948         (frv_linux_supply_gregset): Replace main logic by call to
2949         regcache_supply_regset, but keep clearing gr32-gr63.
2950         (frv_linux_supply_fpregset): Delete function.
2951         (frv_linux_gregset): Refer to appropriate register map and add
2952         regcache_collect_regset as the collect method.
2953         (frv_linux_fpregset): Likewise.  Also exchange the supply method
2954         by regcache_supply_regset.
2955
2956 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2957
2958         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2959         by call to alpha_supply_int_regs.
2960         (alpha_linux_collect_gregset): New function.
2961         (alpha_linux_supply_fpregset): Replace logic by call to
2962         alpha_supply_fp_regs.
2963         (alpha_linux_collect_fpregset): New function.
2964         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2965
2966 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2967
2968         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2969         by call to regcache_collect_regset.
2970         (supply_gregset, supply_fpregset): Call regcache_supply_regset
2971         instead of aarch64_linux_supply_gregset/_fpregset.
2972         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2973         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2974         header file instead.
2975         (aarch64_linux_supply_gregset, supply_gregset_from_core)
2976         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2977         functions.  Move logic to ...
2978         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2979         register maps.
2980         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2981         refer to new register maps, replace *_regset_from_core by
2982         regcache_supply_regset, and also use regcache_collect_regset.
2983         * aarch64-linux-tdep.h: Include "regset.h".
2984         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2985         Delete prototypes.
2986         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2987         macros, moved from C source file.
2988         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2989         variable declarations.
2990
2991 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2992
2993         * s390-linux-nat.c: Include "regset.h".
2994         (regmap_gregset): Delete macro.
2995         (s390_64_regmap_gregset): New register map for
2996         regcache_supply/_collect_regset.
2997         (s390_64_gregset): New regset.
2998         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2999         (regmap_fpregset): Delete macro.
3000         (s390_native_supply, s390_native_collect): Delete functions.
3001         (supply_gregset, fill_gregset): Replace s390-specific regmap
3002         handling by a call to regcache_supply/_collect_regset.
3003         (supply_fpregset, fill_fpregset): Call regcache_supply/
3004         _collect_regset instead of s390_native_supply/_collect.
3005         (fetch_regset, store_regset): Likewise.  Also change the last
3006         parameter to a regset instead of a regmap.
3007         (s390_linux_fetch_inferior_registers)
3008         (390_linux_store_inferior_registers): Adjust last parameter in
3009         calls to fetch_regset and store_regset.
3010         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3011         (s390_gregmap): ... this.  Also make static const and convert to
3012         regcache_map_entry format.
3013         (s390x_regmap_gregset): Delete.
3014         (s390_regmap_fpregset): Rename to...
3015         (s390_fpregmap): ... this.  Make static const and convert to
3016         regcache_map_entry format.
3017         (s390_regmap_upper, s390_regmap_last_break)
3018         (s390x_regmap_last_break, s390_regmap_system_call)
3019         (s390_regmap_tdb): Likewise.
3020         (s390_supply_regset, s390_collect_regset): Remove functions.
3021         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3022         s390_supply_regset.
3023         (s390_gregset, s390_fpregset, s390_upper_regset)
3024         (s390_last_break_regset, s390x_last_break_regset)
3025         (s390_system_call_regset, s390_tdb_regset): Make global and
3026         replace s390_supply/_collect_regset by regcache_supply/
3027         _collect_regset.
3028         (s390x_gregset): Delete.
3029         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3030         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3031         (s390_regmap_fpregset, s390_regmap_last_break)
3032         (s390x_regmap_last_break, s390_regmap_system_call)
3033         (s390_regmap_tdb): Delete global variable declarations.
3034         (s390_gregset, s390_fpregset, s390_last_break_regset)
3035         (s390x_last_break_regset, s390_system_call_regset)
3036         (s390_tdb_regset): New global variable declarations.
3037
3038 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3039
3040         * regcache.c: Include "regset.h".
3041         (regcache_transfer_regset): New local function.
3042         (regcache_supply_regset, regcache_collect_regset): New functions.
3043         * regcache.h (struct regcache_map_entry): New structure.
3044         (REGCACHE_MAP_SKIP): New enum value.
3045         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3046
3047 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3048
3049         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3050         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3051         (ppc_linux_collect_gregset ): Likewise.
3052         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3053         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3054         (ppc_collect_vrregset): Likewise.
3055         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3056         Likewise.
3057
3058 2014-08-07  Yao Qi  <yao@codesourcery.com>
3059
3060         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3061         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3062         * remote.c (remote_read_bytes): Likewise.
3063
3064 2014-08-07  Yao Qi  <yao@codesourcery.com>
3065
3066         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3067
3068 2014-08-07  Yao Qi  <yao@codesourcery.com>
3069
3070         PR remote/17230
3071         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3072         TARGET_XFER_OK instead of 0.
3073
3074 2014-08-07  Gary Benson  <gbenson@redhat.com>
3075
3076         * common/common-defs.h: Include errno.h.
3077         * defs.h: Do not include errno.h.
3078         * ada-typeprint.c: Likewise.
3079         * c-typeprint.c: Likewise.
3080         * core-regset.c: Likewise.
3081         * corefile.c: Likewise.
3082         * corelow.c: Likewise.
3083         * event-loop.c: Likewise.
3084         * f-typeprint.c: Likewise.
3085         * gnu-nat.c: Likewise.
3086         * go32-nat.c: Likewise.
3087         * i386gnu-nat.c: Likewise.
3088         * m2-typeprint.c: Likewise.
3089         * nat/linux-btrace.c: Likewise.
3090         * p-typeprint.c: Likewise.
3091         * procfs.c: Likewise.
3092         * remote-sim.c: Likewise.
3093         * rs6000-nat.c: Likewise.
3094         * target.c: Likewise.
3095         * typeprint.c: Likewise.
3096         * ui-file.c: Likewise.
3097         * valops.c: Likewise.
3098         * valprint.c: Likewise.
3099
3100 2014-08-07  Gary Benson  <gbenson@redhat.com>
3101
3102         * common/common-defs.h: Include string.h.
3103         * aarch64-tdep.c: Do not include string.h.
3104         * ada-exp.y: Likewise.
3105         * ada-lang.c: Likewise.
3106         * ada-lex.l: Likewise.
3107         * ada-typeprint.c: Likewise.
3108         * ada-valprint.c: Likewise.
3109         * aix-thread.c: Likewise.
3110         * alpha-linux-tdep.c: Likewise.
3111         * alpha-mdebug-tdep.c: Likewise.
3112         * alpha-nat.c: Likewise.
3113         * alpha-osf1-tdep.c: Likewise.
3114         * alpha-tdep.c: Likewise.
3115         * alphanbsd-tdep.c: Likewise.
3116         * amd64-dicos-tdep.c: Likewise.
3117         * amd64-linux-tdep.c: Likewise.
3118         * amd64-nat.c: Likewise.
3119         * amd64-sol2-tdep.c: Likewise.
3120         * amd64fbsd-tdep.c: Likewise.
3121         * amd64obsd-tdep.c: Likewise.
3122         * arch-utils.c: Likewise.
3123         * arm-linux-nat.c: Likewise.
3124         * arm-linux-tdep.c: Likewise.
3125         * arm-tdep.c: Likewise.
3126         * arm-wince-tdep.c: Likewise.
3127         * armbsd-tdep.c: Likewise.
3128         * armnbsd-nat.c: Likewise.
3129         * armnbsd-tdep.c: Likewise.
3130         * armobsd-tdep.c: Likewise.
3131         * avr-tdep.c: Likewise.
3132         * ax-gdb.c: Likewise.
3133         * ax-general.c: Likewise.
3134         * bcache.c: Likewise.
3135         * bfin-tdep.c: Likewise.
3136         * breakpoint.c: Likewise.
3137         * build-id.c: Likewise.
3138         * buildsym.c: Likewise.
3139         * c-exp.y: Likewise.
3140         * c-lang.c: Likewise.
3141         * c-typeprint.c: Likewise.
3142         * c-valprint.c: Likewise.
3143         * charset.c: Likewise.
3144         * cli-out.c: Likewise.
3145         * cli/cli-cmds.c: Likewise.
3146         * cli/cli-decode.c: Likewise.
3147         * cli/cli-dump.c: Likewise.
3148         * cli/cli-interp.c: Likewise.
3149         * cli/cli-logging.c: Likewise.
3150         * cli/cli-script.c: Likewise.
3151         * cli/cli-setshow.c: Likewise.
3152         * cli/cli-utils.c: Likewise.
3153         * coffread.c: Likewise.
3154         * common/agent.c: Likewise.
3155         * common/buffer.c: Likewise.
3156         * common/buffer.h: Likewise.
3157         * common/common-utils.c: Likewise.
3158         * common/filestuff.c: Likewise.
3159         * common/filestuff.c: Likewise.
3160         * common/format.c: Likewise.
3161         * common/print-utils.c: Likewise.
3162         * common/rsp-low.c: Likewise.
3163         * common/signals.c: Likewise.
3164         * common/vec.h: Likewise.
3165         * common/xml-utils.c: Likewise.
3166         * core-regset.c: Likewise.
3167         * corefile.c: Likewise.
3168         * corelow.c: Likewise.
3169         * cp-abi.c: Likewise.
3170         * cp-name-parser.y: Likewise.
3171         * cp-support.c: Likewise.
3172         * cp-valprint.c: Likewise.
3173         * cris-tdep.c: Likewise.
3174         * d-exp.y: Likewise.
3175         * darwin-nat.c: Likewise.
3176         * dbxread.c: Likewise.
3177         * dcache.c: Likewise.
3178         * demangle.c: Likewise.
3179         * dicos-tdep.c: Likewise.
3180         * disasm.c: Likewise.
3181         * doublest.c: Likewise.
3182         * dsrec.c: Likewise.
3183         * dummy-frame.c: Likewise.
3184         * dwarf2-frame.c: Likewise.
3185         * dwarf2loc.c: Likewise.
3186         * dwarf2read.c: Likewise.
3187         * elfread.c: Likewise.
3188         * environ.c: Likewise.
3189         * eval.c: Likewise.
3190         * event-loop.c: Likewise.
3191         * exceptions.c: Likewise.
3192         * exec.c: Likewise.
3193         * expprint.c: Likewise.
3194         * f-exp.y: Likewise.
3195         * f-lang.c: Likewise.
3196         * f-typeprint.c: Likewise.
3197         * f-valprint.c: Likewise.
3198         * fbsd-nat.c: Likewise.
3199         * findcmd.c: Likewise.
3200         * findvar.c: Likewise.
3201         * fork-child.c: Likewise.
3202         * frame.c: Likewise.
3203         * frv-linux-tdep.c: Likewise.
3204         * frv-tdep.c: Likewise.
3205         * gdb.c: Likewise.
3206         * gdb_bfd.c: Likewise.
3207         * gdbarch.c: Likewise.
3208         * gdbarch.sh: Likewise.
3209         * gdbtypes.c: Likewise.
3210         * gnu-nat.c: Likewise.
3211         * gnu-v2-abi.c: Likewise.
3212         * gnu-v3-abi.c: Likewise.
3213         * go-exp.y: Likewise.
3214         * go-lang.c: Likewise.
3215         * go32-nat.c: Likewise.
3216         * guile/guile.c: Likewise.
3217         * guile/scm-auto-load.c: Likewise.
3218         * hppa-hpux-tdep.c: Likewise.
3219         * hppa-linux-nat.c: Likewise.
3220         * hppanbsd-tdep.c: Likewise.
3221         * hppaobsd-tdep.c: Likewise.
3222         * i386-cygwin-tdep.c: Likewise.
3223         * i386-dicos-tdep.c: Likewise.
3224         * i386-linux-tdep.c: Likewise.
3225         * i386-nto-tdep.c: Likewise.
3226         * i386-sol2-tdep.c: Likewise.
3227         * i386-tdep.c: Likewise.
3228         * i386bsd-tdep.c: Likewise.
3229         * i386gnu-nat.c: Likewise.
3230         * i386nbsd-tdep.c: Likewise.
3231         * i386obsd-tdep.c: Likewise.
3232         * i387-tdep.c: Likewise.
3233         * ia64-libunwind-tdep.c: Likewise.
3234         * ia64-linux-nat.c: Likewise.
3235         * inf-child.c: Likewise.
3236         * inf-ptrace.c: Likewise.
3237         * inf-ttrace.c: Likewise.
3238         * infcall.c: Likewise.
3239         * infcmd.c: Likewise.
3240         * inflow.c: Likewise.
3241         * infrun.c: Likewise.
3242         * interps.c: Likewise.
3243         * iq2000-tdep.c: Likewise.
3244         * irix5-nat.c: Likewise.
3245         * jv-exp.y: Likewise.
3246         * jv-lang.c: Likewise.
3247         * jv-typeprint.c: Likewise.
3248         * jv-valprint.c: Likewise.
3249         * language.c: Likewise.
3250         * linux-fork.c: Likewise.
3251         * linux-nat.c: Likewise.
3252         * lm32-tdep.c: Likewise.
3253         * m2-exp.y: Likewise.
3254         * m2-typeprint.c: Likewise.
3255         * m32c-tdep.c: Likewise.
3256         * m32r-linux-nat.c: Likewise.
3257         * m32r-linux-tdep.c: Likewise.
3258         * m32r-rom.c: Likewise.
3259         * m32r-tdep.c: Likewise.
3260         * m68hc11-tdep.c: Likewise.
3261         * m68k-tdep.c: Likewise.
3262         * m68kbsd-tdep.c: Likewise.
3263         * m68klinux-nat.c: Likewise.
3264         * m68klinux-tdep.c: Likewise.
3265         * m88k-tdep.c: Likewise.
3266         * machoread.c: Likewise.
3267         * macrocmd.c: Likewise.
3268         * main.c: Likewise.
3269         * mdebugread.c: Likewise.
3270         * mem-break.c: Likewise.
3271         * memattr.c: Likewise.
3272         * memory-map.c: Likewise.
3273         * mep-tdep.c: Likewise.
3274         * mi/mi-cmd-break.c: Likewise.
3275         * mi/mi-cmd-disas.c: Likewise.
3276         * mi/mi-cmd-env.c: Likewise.
3277         * mi/mi-cmd-stack.c: Likewise.
3278         * mi/mi-cmd-var.c: Likewise.
3279         * mi/mi-cmds.c: Likewise.
3280         * mi/mi-console.c: Likewise.
3281         * mi/mi-getopt.c: Likewise.
3282         * mi/mi-interp.c: Likewise.
3283         * mi/mi-main.c: Likewise.
3284         * mi/mi-parse.c: Likewise.
3285         * microblaze-rom.c: Likewise.
3286         * microblaze-tdep.c: Likewise.
3287         * mingw-hdep.c: Likewise.
3288         * minidebug.c: Likewise.
3289         * minsyms.c: Likewise.
3290         * mips-irix-tdep.c: Likewise.
3291         * mips-linux-tdep.c: Likewise.
3292         * mips-tdep.c: Likewise.
3293         * mips64obsd-tdep.c: Likewise.
3294         * mipsnbsd-tdep.c: Likewise.
3295         * mipsread.c: Likewise.
3296         * mn10300-linux-tdep.c: Likewise.
3297         * mn10300-tdep.c: Likewise.
3298         * monitor.c: Likewise.
3299         * moxie-tdep.c: Likewise.
3300         * mt-tdep.c: Likewise.
3301         * nat/linux-btrace.c: Likewise.
3302         * nat/linux-osdata.c: Likewise.
3303         * nat/linux-procfs.c: Likewise.
3304         * nat/linux-ptrace.c: Likewise.
3305         * nat/linux-waitpid.c: Likewise.
3306         * nbsd-tdep.c: Likewise.
3307         * nios2-linux-tdep.c: Likewise.
3308         * nto-procfs.c: Likewise.
3309         * nto-tdep.c: Likewise.
3310         * objc-lang.c: Likewise.
3311         * objfiles.c: Likewise.
3312         * opencl-lang.c: Likewise.
3313         * osabi.c: Likewise.
3314         * osdata.c: Likewise.
3315         * p-exp.y: Likewise.
3316         * p-lang.c: Likewise.
3317         * p-typeprint.c: Likewise.
3318         * parse.c: Likewise.
3319         * posix-hdep.c: Likewise.
3320         * ppc-linux-nat.c: Likewise.
3321         * ppc-sysv-tdep.c: Likewise.
3322         * ppcfbsd-tdep.c: Likewise.
3323         * ppcnbsd-tdep.c: Likewise.
3324         * ppcobsd-tdep.c: Likewise.
3325         * printcmd.c: Likewise.
3326         * procfs.c: Likewise.
3327         * prologue-value.c: Likewise.
3328         * python/py-auto-load.c: Likewise.
3329         * python/py-gdb-readline.c: Likewise.
3330         * ravenscar-thread.c: Likewise.
3331         * regcache.c: Likewise.
3332         * registry.c: Likewise.
3333         * remote-fileio.c: Likewise.
3334         * remote-m32r-sdi.c: Likewise.
3335         * remote-mips.c: Likewise.
3336         * remote-notif.c: Likewise.
3337         * remote-sim.c: Likewise.
3338         * remote.c: Likewise.
3339         * reverse.c: Likewise.
3340         * rs6000-aix-tdep.c: Likewise.
3341         * ser-base.c: Likewise.
3342         * ser-go32.c: Likewise.
3343         * ser-mingw.c: Likewise.
3344         * ser-pipe.c: Likewise.
3345         * ser-tcp.c: Likewise.
3346         * ser-unix.c: Likewise.
3347         * serial.c: Likewise.
3348         * sh-tdep.c: Likewise.
3349         * sh64-tdep.c: Likewise.
3350         * shnbsd-tdep.c: Likewise.
3351         * skip.c: Likewise.
3352         * sol-thread.c: Likewise.
3353         * solib-dsbt.c: Likewise.
3354         * solib-frv.c: Likewise.
3355         * solib-osf.c: Likewise.
3356         * solib-som.c: Likewise.
3357         * solib-spu.c: Likewise.
3358         * solib-target.c: Likewise.
3359         * solib.c: Likewise.
3360         * somread.c: Likewise.
3361         * source.c: Likewise.
3362         * sparc-nat.c: Likewise.
3363         * sparc-sol2-tdep.c: Likewise.
3364         * sparc-tdep.c: Likewise.
3365         * sparc64-tdep.c: Likewise.
3366         * sparc64fbsd-tdep.c: Likewise.
3367         * sparc64nbsd-tdep.c: Likewise.
3368         * sparcnbsd-tdep.c: Likewise.
3369         * spu-linux-nat.c: Likewise.
3370         * spu-multiarch.c: Likewise.
3371         * spu-tdep.c: Likewise.
3372         * stabsread.c: Likewise.
3373         * stack.c: Likewise.
3374         * std-regs.c: Likewise.
3375         * symfile.c: Likewise.
3376         * symmisc.c: Likewise.
3377         * symtab.c: Likewise.
3378         * target.c: Likewise.
3379         * thread.c: Likewise.
3380         * tilegx-linux-nat.c: Likewise.
3381         * tilegx-tdep.c: Likewise.
3382         * top.c: Likewise.
3383         * tracepoint.c: Likewise.
3384         * tui/tui-command.c: Likewise.
3385         * tui/tui-data.c: Likewise.
3386         * tui/tui-disasm.c: Likewise.
3387         * tui/tui-file.c: Likewise.
3388         * tui/tui-layout.c: Likewise.
3389         * tui/tui-out.c: Likewise.
3390         * tui/tui-regs.c: Likewise.
3391         * tui/tui-source.c: Likewise.
3392         * tui/tui-stack.c: Likewise.
3393         * tui/tui-win.c: Likewise.
3394         * tui/tui-windata.c: Likewise.
3395         * tui/tui-winsource.c: Likewise.
3396         * typeprint.c: Likewise.
3397         * ui-file.c: Likewise.
3398         * ui-out.c: Likewise.
3399         * user-regs.c: Likewise.
3400         * utils.c: Likewise.
3401         * v850-tdep.c: Likewise.
3402         * valarith.c: Likewise.
3403         * valops.c: Likewise.
3404         * valprint.c: Likewise.
3405         * value.c: Likewise.
3406         * varobj.c: Likewise.
3407         * vax-tdep.c: Likewise.
3408         * vaxnbsd-tdep.c: Likewise.
3409         * vaxobsd-tdep.c: Likewise.
3410         * windows-nat.c: Likewise.
3411         * xcoffread.c: Likewise.
3412         * xml-support.c: Likewise.
3413         * xstormy16-tdep.c: Likewise.
3414         * xtensa-linux-nat.c: Likewise.
3415
3416 2014-08-07  Gary Benson  <gbenson@redhat.com>
3417
3418         * common/common-defs.h: Include gdb_assert.h.
3419         * aarch64-tdep.c: Do not include gdb_assert.h.
3420         * addrmap.c: Likewise.
3421         * aix-thread.c: Likewise.
3422         * alpha-linux-tdep.c: Likewise.
3423         * alpha-mdebug-tdep.c: Likewise.
3424         * alphanbsd-tdep.c: Likewise.
3425         * amd64-nat.c: Likewise.
3426         * amd64-tdep.c: Likewise.
3427         * amd64bsd-nat.c: Likewise.
3428         * amd64fbsd-nat.c: Likewise.
3429         * amd64fbsd-tdep.c: Likewise.
3430         * amd64nbsd-nat.c: Likewise.
3431         * amd64nbsd-tdep.c: Likewise.
3432         * amd64obsd-nat.c: Likewise.
3433         * amd64obsd-tdep.c: Likewise.
3434         * arch-utils.c: Likewise.
3435         * arm-tdep.c: Likewise.
3436         * armbsd-tdep.c: Likewise.
3437         * auxv.c: Likewise.
3438         * bcache.c: Likewise.
3439         * bfin-tdep.c: Likewise.
3440         * blockframe.c: Likewise.
3441         * breakpoint.c: Likewise.
3442         * bsd-kvm.c: Likewise.
3443         * bsd-uthread.c: Likewise.
3444         * buildsym.c: Likewise.
3445         * c-exp.y: Likewise.
3446         * c-lang.c: Likewise.
3447         * charset.c: Likewise.
3448         * cleanups.c: Likewise.
3449         * cli-out.c: Likewise.
3450         * cli/cli-decode.c: Likewise.
3451         * cli/cli-dump.c: Likewise.
3452         * cli/cli-logging.c: Likewise.
3453         * cli/cli-script.c: Likewise.
3454         * cli/cli-utils.c: Likewise.
3455         * coffread.c: Likewise.
3456         * common/common-utils.c: Likewise.
3457         * common/queue.h: Likewise.
3458         * common/signals.c: Likewise.
3459         * common/vec.h: Likewise.
3460         * complaints.c: Likewise.
3461         * completer.c: Likewise.
3462         * corelow.c: Likewise.
3463         * cp-abi.c: Likewise.
3464         * cp-name-parser.y: Likewise.
3465         * cp-namespace.c: Likewise.
3466         * cp-support.c: Likewise.
3467         * cris-tdep.c: Likewise.
3468         * dbxread.c: Likewise.
3469         * dictionary.c: Likewise.
3470         * doublest.c: Likewise.
3471         * dsrec.c: Likewise.
3472         * dummy-frame.c: Likewise.
3473         * dwarf2-frame-tailcall.c: Likewise.
3474         * dwarf2-frame.c: Likewise.
3475         * dwarf2expr.c: Likewise.
3476         * dwarf2loc.c: Likewise.
3477         * dwarf2read.c: Likewise.
3478         * eval.c: Likewise.
3479         * event-loop.c: Likewise.
3480         * exceptions.c: Likewise.
3481         * expprint.c: Likewise.
3482         * f-valprint.c: Likewise.
3483         * fbsd-nat.c: Likewise.
3484         * findvar.c: Likewise.
3485         * frame-unwind.c: Likewise.
3486         * frame.c: Likewise.
3487         * frv-tdep.c: Likewise.
3488         * gcore.c: Likewise.
3489         * gdb-dlfcn.c: Likewise.
3490         * gdb_bfd.c: Likewise.
3491         * gdbarch.c: Likewise.
3492         * gdbarch.sh: Likewise.
3493         * gdbtypes.c: Likewise.
3494         * gnu-nat.c: Likewise.
3495         * gnu-v3-abi.c: Likewise.
3496         * go-lang.c: Likewise.
3497         * guile/scm-exception.c: Likewise.
3498         * guile/scm-gsmob.c: Likewise.
3499         * guile/scm-lazy-string.c: Likewise.
3500         * guile/scm-math.c: Likewise.
3501         * guile/scm-pretty-print.c: Likewise.
3502         * guile/scm-safe-call.c: Likewise.
3503         * guile/scm-utils.c: Likewise.
3504         * guile/scm-value.c: Likewise.
3505         * h8300-tdep.c: Likewise.
3506         * hppa-hpux-nat.c: Likewise.
3507         * hppa-tdep.c: Likewise.
3508         * hppanbsd-tdep.c: Likewise.
3509         * hppaobsd-tdep.c: Likewise.
3510         * i386-darwin-nat.c: Likewise.
3511         * i386-darwin-tdep.c: Likewise.
3512         * i386-nto-tdep.c: Likewise.
3513         * i386-tdep.c: Likewise.
3514         * i386bsd-nat.c: Likewise.
3515         * i386fbsd-tdep.c: Likewise.
3516         * i386gnu-nat.c: Likewise.
3517         * i386nbsd-tdep.c: Likewise.
3518         * i386obsd-tdep.c: Likewise.
3519         * i387-tdep.c: Likewise.
3520         * ia64-libunwind-tdep.c: Likewise.
3521         * ia64-tdep.c: Likewise.
3522         * inf-ptrace.c: Likewise.
3523         * inf-ttrace.c: Likewise.
3524         * infcall.c: Likewise.
3525         * infcmd.c: Likewise.
3526         * infrun.c: Likewise.
3527         * inline-frame.c: Likewise.
3528         * interps.c: Likewise.
3529         * jv-lang.c: Likewise.
3530         * jv-typeprint.c: Likewise.
3531         * linux-fork.c: Likewise.
3532         * linux-nat.c: Likewise.
3533         * linux-thread-db.c: Likewise.
3534         * m32c-tdep.c: Likewise.
3535         * m32r-linux-nat.c: Likewise.
3536         * m32r-tdep.c: Likewise.
3537         * m68k-tdep.c: Likewise.
3538         * m68kbsd-nat.c: Likewise.
3539         * m68kbsd-tdep.c: Likewise.
3540         * m88k-tdep.c: Likewise.
3541         * machoread.c: Likewise.
3542         * macroexp.c: Likewise.
3543         * macrotab.c: Likewise.
3544         * maint.c: Likewise.
3545         * mdebugread.c: Likewise.
3546         * memory-map.c: Likewise.
3547         * mep-tdep.c: Likewise.
3548         * mi/mi-common.c: Likewise.
3549         * microblaze-tdep.c: Likewise.
3550         * mingw-hdep.c: Likewise.
3551         * mips-linux-nat.c: Likewise.
3552         * mips-linux-tdep.c: Likewise.
3553         * mips-tdep.c: Likewise.
3554         * mips64obsd-tdep.c: Likewise.
3555         * mipsnbsd-tdep.c: Likewise.
3556         * mn10300-linux-tdep.c: Likewise.
3557         * mn10300-tdep.c: Likewise.
3558         * moxie-tdep.c: Likewise.
3559         * mt-tdep.c: Likewise.
3560         * nat/linux-btrace.c: Likewise.
3561         * nat/linux-osdata.c: Likewise.
3562         * nat/linux-ptrace.c: Likewise.
3563         * nat/mips-linux-watch.c: Likewise.
3564         * nios2-linux-tdep.c: Likewise.
3565         * nios2-tdep.c: Likewise.
3566         * objc-lang.c: Likewise.
3567         * objfiles.c: Likewise.
3568         * obsd-nat.c: Likewise.
3569         * opencl-lang.c: Likewise.
3570         * osabi.c: Likewise.
3571         * parse.c: Likewise.
3572         * ppc-linux-nat.c: Likewise.
3573         * ppc-sysv-tdep.c: Likewise.
3574         * ppcfbsd-nat.c: Likewise.
3575         * ppcfbsd-tdep.c: Likewise.
3576         * ppcnbsd-nat.c: Likewise.
3577         * ppcnbsd-tdep.c: Likewise.
3578         * ppcobsd-nat.c: Likewise.
3579         * ppcobsd-tdep.c: Likewise.
3580         * printcmd.c: Likewise.
3581         * procfs.c: Likewise.
3582         * prologue-value.c: Likewise.
3583         * psymtab.c: Likewise.
3584         * python/py-lazy-string.c: Likewise.
3585         * python/py-value.c: Likewise.
3586         * regcache.c: Likewise.
3587         * reggroups.c: Likewise.
3588         * registry.c: Likewise.
3589         * remote-sim.c: Likewise.
3590         * remote.c: Likewise.
3591         * rs6000-aix-tdep.c: Likewise.
3592         * rs6000-tdep.c: Likewise.
3593         * s390-linux-tdep.c: Likewise.
3594         * score-tdep.c: Likewise.
3595         * ser-base.c: Likewise.
3596         * ser-mingw.c: Likewise.
3597         * sh-tdep.c: Likewise.
3598         * sh64-tdep.c: Likewise.
3599         * solib-darwin.c: Likewise.
3600         * solib-spu.c: Likewise.
3601         * solib-svr4.c: Likewise.
3602         * source.c: Likewise.
3603         * sparc-nat.c: Likewise.
3604         * sparc-sol2-tdep.c: Likewise.
3605         * sparc-tdep.c: Likewise.
3606         * sparc64-sol2-tdep.c: Likewise.
3607         * sparc64-tdep.c: Likewise.
3608         * sparc64fbsd-tdep.c: Likewise.
3609         * sparc64nbsd-tdep.c: Likewise.
3610         * sparc64obsd-tdep.c: Likewise.
3611         * sparcnbsd-tdep.c: Likewise.
3612         * sparcobsd-tdep.c: Likewise.
3613         * spu-multiarch.c: Likewise.
3614         * spu-tdep.c: Likewise.
3615         * stabsread.c: Likewise.
3616         * stack.c: Likewise.
3617         * symfile.c: Likewise.
3618         * symtab.c: Likewise.
3619         * target-descriptions.c: Likewise.
3620         * target-memory.c: Likewise.
3621         * target.c: Likewise.
3622         * tic6x-linux-tdep.c: Likewise.
3623         * tic6x-tdep.c: Likewise.
3624         * tilegx-linux-nat.c: Likewise.
3625         * tilegx-tdep.c: Likewise.
3626         * top.c: Likewise.
3627         * tramp-frame.c: Likewise.
3628         * tui/tui-out.c: Likewise.
3629         * tui/tui-winsource.c: Likewise.
3630         * ui-out.c: Likewise.
3631         * user-regs.c: Likewise.
3632         * utils.c: Likewise.
3633         * v850-tdep.c: Likewise.
3634         * valops.c: Likewise.
3635         * value.c: Likewise.
3636         * varobj.c: Likewise.
3637         * vax-nat.c: Likewise.
3638         * xml-syscall.c: Likewise.
3639         * xml-tdesc.c: Likewise.
3640         * xstormy16-tdep.c: Likewise.
3641         * xtensa-linux-nat.c: Likewise.
3642         * xtensa-tdep.c: Likewise.
3643
3644 2014-08-07  Gary Benson  <gbenson@redhat.com>
3645
3646         * common/common-defs.h: Include common-utils.h.
3647         * defs.h: Do not include common-utils.h.
3648         * common/gdb_assert.h: Likewise.
3649         * darwin-nat.h: Likewise.
3650         * nat/linux-btrace.c: Likewise.
3651         * target/waitstatus.h: Likewise.
3652
3653 2014-08-07  Gary Benson  <gbenson@redhat.com>
3654
3655         * common/common-defs.h: Include ptid.h.
3656         * defs.h: Do not include ptid.h.
3657         * inferior.h: Likewise.
3658         * infrun.h: Likewise.
3659         * nat/linux-btrace.h: Likewise.
3660         * nat/linux-osdata.h: Likewise.
3661         * target/waitstatus.h: Likewise.
3662
3663 2014-08-07  Gary Benson  <gbenson@redhat.com>
3664
3665         * common/common-defs.h: Include gdb_locale.h.
3666         * defs.h: Do not include gdb_locale.h.
3667
3668 2014-08-07  Gary Benson  <gbenson@redhat.com>
3669
3670         * common/common-defs.h: Include gdb/signals.h.
3671         * defs.h: Do not include gdb/signals.h.
3672
3673 2014-08-07  Gary Benson  <gbenson@redhat.com>
3674
3675         * common/common-defs.h: Include pathmax.h.
3676         * defs.h: Do not include pathmax.h.
3677
3678 2014-08-07  Gary Benson  <gbenson@redhat.com>
3679
3680         * common/common-defs.h: Include libiberty.h.
3681         * defs.h: Do not include libiberty.h.
3682         * common/queue.h: Likewise.
3683         * cp-name-parser.y: Likewise.
3684         * mi/mi-cmd-catch.c: Likewise.
3685         * python/python.c: Likewise.
3686
3687 2014-08-07  Gary Benson  <gbenson@redhat.com>
3688
3689         * common/common-defs.h: Include ansidecl.h.
3690         * defs.h: Do not include ansidecl.h.
3691         * common/buffer.h: Likewise.
3692         * common/common-utils.h: Likewise.
3693
3694 2014-08-07  Gary Benson  <gbenson@redhat.com>
3695
3696         * common/common-defs.h: Include stddef.h.
3697         * defs.h: Do not include stddef.h.
3698         * common/common-utils.h: Likewise.
3699         * amd64fbsd-nat.c: Likewise.
3700         * bcache.c: Likewise.
3701         * charset.c: Likewise.
3702         * common/buffer.h: Likewise.
3703         * common/vec.h: Likewise.
3704         * i386bsd-nat.c: Likewise.
3705         * nat/linux-btrace.h: Likewise.
3706         * ppcfbsd-nat.c: Likewise.
3707         * ppcnbsd-tdep.h: Likewise.
3708         * ppcobsd-nat.c: Likewise.
3709         * ppcobsd-tdep.h: Likewise.
3710         * python/py-gdb-readline.c: Likewise.
3711
3712 2014-08-07  Gary Benson  <gbenson@redhat.com>
3713
3714         * common/common-defs.h: Include stdarg.h.
3715         * defs.h: Do not include stdarg.h.
3716         * ada-lang.c: Likewise.
3717         * common/common-utils.h: Likewise.
3718         * guile/scm-string.c: Likewise.
3719         * guile/scm-utils.c: Likewise.
3720         * m32c-tdep.c: Likewise.
3721
3722 2014-08-07  Gary Benson  <gbenson@redhat.com>
3723
3724         * common/common-defs.h: Include stdlib.h.
3725         * defs.h: Do not include stdlib.h.
3726         * addrmap.c: Likewise.
3727         * bcache.c: Likewise.
3728         * common/buffer.c: Likewise.
3729         * common/common-utils.c: Likewise.
3730         * cp-name-parser.y: Likewise.
3731         * go32-nat.c: Likewise.
3732         * mn10300-linux-tdep.c: Likewise.
3733         * nat/linux-osdata.c: Likewise.
3734         * tui/tui.c: Likewise.
3735         * windows-nat.c: Likewise.
3736
3737 2014-08-07  Gary Benson  <gbenson@redhat.com>
3738
3739         * common/common-defs.h: Include stdio.h.
3740         * defs.h: Do not include stdio.h.
3741         * ada-lang.c: Likewise.
3742         * common/buffer.c: Likewise.
3743         * common/common-utils.c: Likewise.
3744         * cp-name-parser.y: Likewise.
3745         * gnu-nat.c: Likewise.
3746         * go32-nat.c: Likewise.
3747         * i386gnu-nat.c: Likewise.
3748         * proc-api.c: Likewise.
3749         * proc-events.c: Likewise.
3750         * proc-flags.c: Likewise.
3751         * proc-why.c: Likewise.
3752         * python/python-internal.h: Likewise.
3753         * target-memory.c: Likewise.
3754         * tui/tui-io.c: Likewise.
3755         * tui/tui.c: Likewise.
3756
3757 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
3758
3759         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3760         (scan_dyntag_auxv): Same.
3761
3762 2014-08-06  Yao Qi  <yao@codesourcery.com>
3763
3764         * amd64-linux-nat.c: Remove duplicated include
3765         "x86-linux-nat.h".
3766         * i386-linux-nat.c: Likewise.
3767
3768 2014-08-06  Yao Qi  <yao@codesourcery.com>
3769
3770         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3771         operand" with "Special opcode" in comments.
3772
3773 2014-08-05  Gary Benson  <gbenson@redhat.com>
3774
3775         * interps.c (initialize_interps): Remove prototype.
3776         (interpreter_initialized): Remove static global.
3777         (interp_add): Do not call initialize_interps.
3778         (initialize_interps): Remove function.
3779
3780 2014-08-05  Gary Benson  <gbenson@redhat.com>
3781
3782         * utils.c (vwarning): Remove spurious va_end.
3783
3784 2014-08-05  Alan Modra  <amodra@gmail.com>
3785
3786         * charset.c (convert_between_encodings): Cast result of obstack_base.
3787         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3788         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3789         (read_unwind_info): Use size_t for some locals.
3790         * jit.c (finalize_symtab): Likewise.
3791         * utils.c (hashtab_obstack_allocate): Likewise.
3792         * symmisc.c (print_objfile_statistics): Update format strings.
3793
3794 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3795
3796         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3797         (Changes in GDB 7.8): ... here.
3798
3799 2014-08-04  Tom Tromey  <tromey@redhat.com>
3800
3801         * target.c (set_targetdebug): New function.
3802         (initialize_targets): Pass set_targetdebug when creating "set
3803         debug target".
3804
3805 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3806
3807         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3808         if detecting a variable-sized field that is not the last field.
3809         Fix struct type length computation.
3810
3811 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3812
3813         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3814         Add debug trace.
3815
3816 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
3817
3818         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3819         Remove "+ 8" offset in computation of CHAIN_VMA.
3820
3821 2014-07-31  Doug Evans  <dje@google.com>
3822
3823         * inflow.c (child_terminal_inferior): Add comment.
3824         (child_terminal_ours_for_output): Add comment.
3825         (child_terminal_ours): Add comment.
3826         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3827         (linux_nat_terminal_ours): Add comment.
3828
3829 2014-07-31  Gary Benson  <gbenson@redhat.com>
3830
3831         * common/btrace-common.h: Do not include defs.h or server.h.
3832         * nat/mips-linux-watch.h: Likewise.
3833         * gdb-dlfcn.h: Do not include defs.h.
3834         * tracefile.h: Likewise.
3835
3836 2014-07-30  Roland McGrath  <mcgrathr@google.com>
3837
3838         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3839
3840 2014-07-30  Tom Tromey  <tromey@redhat.com>
3841
3842         * bsd-kvm.c (bsd_kvm_open): Constify.
3843         * corelow.c (core_open): Constify.
3844         * ctf.c (ctf_open): Constify.
3845         * dbug-rom.c (dbug_open): Constify.
3846         * exec.c (exec_open): Constify.
3847         * m32r-rom.c (m32r_open, mon2000_open): Constify.
3848         * microblaze-rom.c (picobug_open): Constify.
3849         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3850         Constify.
3851         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3852         * record-btrace.c (record_btrace_open): Constify.
3853         * record-full.c (record_full_core_open_1, record_full_open_1)
3854         (record_full_open): Constify.
3855         * remote-m32r-sdi.c (m32r_open): Constify.
3856         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3857         (rockhopper_open, lsi_open): Constify.
3858         * remote-sim.c (gdbsim_open): Constify.
3859         * remote.c (remote_open, extended_remote_open, remote_open_1):
3860         Constify.
3861         * target.h (struct target_ops) <to_open>: Make "arg" const.
3862         * tracefile-tfile.c (tfile_open): Constify.
3863
3864 2014-07-30  Tom Tromey  <tromey@redhat.com>
3865
3866         * breakpoint.c (map_breakpoint_numbers): Update.
3867         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
3868         (get_number_const): New function.
3869         (get_number): Rewrite using get_number_const.
3870         (init_number_or_range): Make "string" const.
3871         (number_is_in_list): Make "list" const.
3872         * cli/cli-utils.h (get_number_const): Declare.
3873         (struct get_number_or_range_state) <string, end_ptr>: Now const.
3874         (init_number_or_range, number_is_in_list): Update.
3875         * printcmd.c (map_display_numbers): Update.
3876         * value.c (value_from_history_ref): Constify.
3877         * value.h (value_from_history_ref): Update.
3878
3879 2014-07-30  Tom Tromey  <tromey@redhat.com>
3880
3881         * corefile.c (hook_type, call_extra_exec_file_hooks)
3882         (specify_exec_file_hook): Constify.
3883         * exec.c (exec_file_attach): Make "filename" const.
3884         * gdbcore.h (deprecated_exec_file_display_hook)
3885         (specify_exec_file_hook, exec_file_attach): Constify.
3886         * main.c (captured_main): Use catch_command_errors_const.
3887
3888 2014-07-30  Tom Tromey  <tromey@redhat.com>
3889
3890         * target.c (open_target): New function.
3891         (add_target_with_completer, add_deprecated_target_alias): Use
3892         set_cmd_sfunc, set_cmd_context.
3893         (debug_to_open): Remove.
3894         (setup_target_debug): Update.
3895
3896 2014-07-30  Yao Qi  <yao@codesourcery.com>
3897
3898         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3899         comments.
3900         * parse.c (exp_iterate): Update comments.
3901
3902 2014-07-30  Gary Benson  <gbenson@redhat.com>
3903
3904         * common/common-defs.h: New file.
3905         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3906         * defs.h: Include common-defs.h.
3907         Do not include config.h or build-gnulib/config.h.
3908
3909 2014-07-30  Gary Benson  <gbenson@redhat.com>
3910
3911         * common/common-utils.h: Do not include config.h.
3912         * nat/linux-btrace.h: Likewise.
3913
3914 2014-07-30  Gary Benson  <gbenson@redhat.com>
3915
3916         * btrace.c: Include defs.h.
3917         * common/ptid.c: Include defs.h or server.h as appropriate.
3918         * nat/mips-linux-watch.c: Likewise.
3919
3920 2014-07-29  Tom Tromey  <tromey@redhat.com>
3921
3922         * target.c (target_is_pushed): Simplify.
3923
3924 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
3925
3926         GDB 7.8 released.
3927
3928 2014-07-29  Yao Qi  <yao@codesourcery.com>
3929
3930         PR gdb/17206
3931         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3932
3933 2014-07-28  Doug Evans  <xdje42@gmail.com>
3934
3935         PR guile/17203
3936         * guile/scm-param.c (pascm_parameter_defined_p): New function.
3937         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
3938         parameters.
3939
3940 2014-07-28  Will Newton  <will.newton@linaro.org>
3941
3942         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3943         (THUMB2_SET_R7_SIGRETURN2): Likewise.
3944         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3945         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3946         (THUMB2_EABI_SYSCALL): Likewise.
3947         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3948         struct tramp_frame.
3949         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3950         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3951
3952 2014-07-27  Doug Evans  <xdje42@gmail.com>
3953
3954         * guile/scm-param.c (pascm_print_param_smob): Fix output.
3955
3956 2014-07-27  Doug Evans  <xdje42@gmail.com>
3957
3958         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3959
3960 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3961             Doug Evans  <xdje42@gmail.com>
3962
3963         PR guile/17146
3964         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3965         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3966         * configure.ac: Try to use guild to compile an scm file, if it fails
3967         then disable guile support.
3968         * configure: Regenerate.
3969         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3970         GUILE_FILE_LIST.
3971         (GUILE_COMPILED_FILES): New variable.
3972         (GUILE_FILES) Update.
3973         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3974         (stamp-guile): Compile scm files.
3975         * guile/guile.c (boot_guile_support): New function.
3976         (standard_throw_args_p): New function.
3977         (print_standard_throw_error, print_throw_error): New functions.
3978         (handle_boot_error): New function.
3979         (initialize_scheme_side): Rewrite to call boot_guile_support.
3980         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
3981         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3982
3983 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
3984             Doug Evans  <xdje42@gmail.com>
3985
3986         PR guile/17146
3987         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3988         * guile/lib/gdb/support.scm: New file.
3989         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3990         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3991         All uses updated.
3992         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3993         All uses updated.
3994         (%assert-type): Ditto, and renamed to assert-type.
3995         (%exception-print-style): Delete.
3996
3997 2014-07-26  Doug Evans  <xdje42@gmail.com>
3998
3999         PR build/17105
4000         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4001         * configure: Regenerate.
4002         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4003         PYTHON_FILES.
4004         (PYTHON_FILES): New variable.
4005         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4006         (GUILE_FILES): New variable.
4007         (stamp-python, install-python, uninstall-python): Handle empty
4008         file list.
4009         (stamp-guile, install-guile, uninstall-guile): Ditto.
4010
4011 2014-07-26  Doug Evans  <xdje42@gmail.com>
4012
4013         PR guile/17177
4014         * guile/lib/gdb.scm (pretty-printers): Export.
4015         (set-pretty-printers!): Export.
4016         * guile/lib/gdb/printing.scm (gdb module): Update.
4017         (prepend-pretty-printer!, append-pretty-printer!): Update.
4018         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4019         (pretty_printer_list_var): Delete.
4020         (pretty_printer_list): New static global.
4021         (gdbscm_pretty_printers): New function.
4022         (gdbscm_set_pretty_printers_x): New function.
4023         (ppscm_find_pretty_printer_from_gdb): Update.
4024         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4025         (gdbscm_initialize_pretty_printers): Update.
4026
4027 2014-07-26  Doug Evans  <xdje42@gmail.com>
4028
4029         PR 17185
4030         * configure.ac: Add check for header gc/gc.h.
4031         Add check for function setenv.
4032         * configure: Regenerate.
4033         * config.in: Regenerate.
4034         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4035
4036 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4037
4038         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4039         variation in gdbarch matching.
4040
4041 2014-07-25  Tom Tromey  <tromey@redhat.com>
4042
4043         * exec.c (using_exec_ops): Remove.
4044         (exec_close_1): Update.  Remove extraneous block, reindent.
4045         (add_target_sections): Use target_is_pushed.
4046
4047 2014-07-25  Pedro Alves  <palves@redhat.com>
4048
4049         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4050         * monitor.c (monitor_create_inferior): Likewise.
4051         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4052         * remote-sim.c (gdbsim_create_inferior): Likewise.
4053         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4054         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4055         * windows-nat.c (do_initial_windows_stuff): Likewise.
4056
4057 2014-07-25  Pedro Alves  <palves@redhat.com>
4058
4059         * NEWS: Mention signal passing and "signal" command changes.
4060         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4061         comment.
4062         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4063         call.
4064         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4065         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4066         (jump_command): Adjust clear_proceed_status call.
4067         (signal_command): Warn if other thread that are resumed have
4068         signals that will be delivered.  Adjust clear_proceed_status call.
4069         (until_next_command, finish_command)
4070         (proceed_after_attach_callback, attach_command_post_wait)
4071         (attach_command): Adjust clear_proceed_status call.
4072         * infrun.c (proceed_after_vfork_done): Likewise.
4073         (proceed_after_attach_callback): Adjust comment.
4074         (clear_proceed_status_thread): Clear stop_signal if not in pass
4075         state.
4076         (clear_proceed_status_callback): Delete.
4077         (clear_proceed_status): New 'step' parameter.  Only clear the
4078         proceed status of threads the command being prepared is about to
4079         resume.
4080         (proceed): If passed in an explicit signal, override stop_signal
4081         with it.  Don't pass the last stop signal to the thread we're
4082         resuming.
4083         (init_wait_for_inferior): Adjust clear_proceed_status call.
4084         (switch_back_to_stepped_thread): Clear the signal if it should not
4085         be passed.
4086         * infrun.h (clear_proceed_status): New 'step' parameter.
4087         (user_visible_resume_ptid): Add comment.
4088         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4089         signal is in pass state.
4090         * remote.c (append_pending_thread_resumptions): Likewise.
4091         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4092
4093 2014-07-25  Tom Tromey  <tromey@redhat.com>
4094
4095         * target.h (target_stopped_data_address)
4096         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4097         parentheses.
4098
4099 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4100
4101         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4102         comments.
4103         (avr_pointer_to_address): Likewise.
4104
4105 2014-07-24  Tom Tromey  <tromey@redhat.com>
4106
4107         * monitor.c (compile_pattern): Update.
4108         * target.h (struct target_ops) <to_shortname, to_longname,
4109         to_doc>: Now const.
4110
4111 2014-07-24  Tom Tromey  <tromey@redhat.com>
4112
4113         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4114         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4115         (add_info_alias, add_com): Make "doc" const.
4116         (print_doc_line): Make "str" const.
4117         (delete_cmd): Update.
4118         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4119         (print_doc_line): Update.
4120         * cli/cli-script.c (document_command): Update.
4121         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4122         (add_com, add_info, add_info_alias): Update.
4123         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4124         * python/py-cmd.c (cmdpy_destroyer): Update.
4125
4126 2014-07-24  Tom Tromey  <tromey@redhat.com>
4127
4128         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4129         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4130         (help_cmd_list): Constify.
4131         (lookup_cmd): Update.
4132         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4133         const.
4134         (help_cmd_list, apropos_cmd): Update.
4135         * cli/cli-script.c (show_user): Update.
4136         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4137         * cli/cli-setshow.h (cmd_show_list): Update.
4138         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4139         (cmd_show_list): Update.
4140         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4141         * python/py-cmd.c (cmdpy_destroyer): Update.
4142
4143 2014-07-24  Tom Tromey  <tromey@redhat.com>
4144
4145         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4146         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4147         const.
4148         * command.h (deprecate_cmd): Update.
4149         * maint.c (maintenance_do_deprecate): Add casts.
4150
4151 2014-07-24  Tom Tromey  <tromey@redhat.com>
4152
4153         * cli/cli-decode.c (help_cmd): Make parameter "const".
4154         * cli/cli-decode.h (help_cmd): Update.
4155
4156 2014-07-24  Tom Tromey  <tromey@redhat.com>
4157
4158         * stack.c (up_silently_base, down_silently_base): Make argument
4159         const.
4160
4161 2014-07-24  Tom Tromey  <tromey@redhat.com>
4162
4163         * solib.c (solib_add): Make "pattern" const.
4164         * solib.h (solib_add): Update.
4165
4166 2014-07-24  Tom Tromey  <tromey@redhat.com>
4167
4168         * remote.c (remote_serial_open, print_packet, putpkt)
4169         (putpkt_binary): Constify.
4170         * remote.h (putpkt): Update.
4171
4172 2014-07-24  Tom Tromey  <tromey@redhat.com>
4173
4174         * monitor.c (monitor_open): Make "args" const.
4175         * monitor.h (monitor_open): Update.
4176
4177 2014-07-24  Tom Tromey  <tromey@redhat.com>
4178
4179         * maint.c (match_bfd_flags): Make "string" const.
4180         (print_bfd_section_info): Remove casts.
4181         (print_objfile_section_info): Make "string" const.
4182
4183 2014-07-24  Tom Tromey  <tromey@redhat.com>
4184
4185         * inf-child.c (inf_child_open_target): Make "arg" const.
4186         * inf-child.h (inf_child_open_target): Update.
4187
4188 2014-07-24  Tom Tromey  <tromey@redhat.com>
4189
4190         * environ.c (unset_in_environ): Make "var" const.
4191         * environ.h (unset_in_environ): Update.
4192
4193 2014-07-24  Tom Tromey  <tromey@redhat.com>
4194
4195         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4196         Make "cmd" const.
4197         (scan_filename_with_cleanup): Likewise.
4198         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4199         Make arguments const.
4200         (restore_command): Update.
4201
4202 2014-07-24  Pedro Alves  <palves@redhat.com>
4203
4204         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4205
4206 2014-07-24  Tom Tromey  <tromey@redhat.com>
4207             Gary Benson  <gbenson@redhat.com>
4208
4209         * nat/linux-ptrace.c (additional_flags): New global.
4210         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4211         additional_flags; don't check GDBSERVER.
4212         (linux_ptrace_set_additional_flags): New function.
4213         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4214         Declare.
4215         * linux-nat.c (_initialize_linux_nat): Call
4216         linux_ptrace_set_additional_flags.
4217
4218 2014-07-24  Tom Tromey  <tromey@redhat.com>
4219
4220         * make-target-delegates (munge_type, write_debugmethod): New
4221         functions.
4222         (debug_names): New global.
4223         ($TARGET_DEBUG_PRINTER): New global.
4224         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4225         name.
4226         Write debug methods.  Generate init_debug_target.
4227         * target-debug.h: New file.
4228         * target-delegates.c: Rebuild.
4229         * target.c: Include target-debug.h.
4230         (debug_target): Hoist definition.
4231         (target_kill, target_get_section_table, target_memory_map)
4232         (target_flash_erase, target_flash_done, target_detach)
4233         (target_disconnect, target_wait, target_resume)
4234         (target_pass_signals, target_program_signals, target_follow_fork)
4235         (target_mourn_inferior, target_search_memory)
4236         (target_thread_address_space, target_close)
4237         (target_find_new_threads, target_core_of_thread)
4238         (target_verify_memory, target_insert_mask_watchpoint)
4239         (target_remove_mask_watchpoint): Remove targetdebug code.
4240         (debug_to_post_attach, debug_to_prepare_to_store)
4241         (debug_to_files_info, debug_to_insert_breakpoint)
4242         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4243         (debug_to_region_ok_for_hw_watchpoint)
4244         (debug_to_can_accel_watchpoint_condition)
4245         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4246         (debug_to_watchpoint_addr_within_range)
4247         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4248         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4249         (debug_to_terminal_init, debug_to_terminal_inferior)
4250         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4251         (debug_to_terminal_save_ours, debug_to_terminal_info)
4252         (debug_to_load, debug_to_post_startup_inferior)
4253         (debug_to_insert_fork_catchpoint)
4254         (debug_to_remove_fork_catchpoint)
4255         (debug_to_insert_vfork_catchpoint)
4256         (debug_to_remove_vfork_catchpoint)
4257         (debug_to_insert_exec_catchpoint)
4258         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4259         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4260         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4261         (setup_target_debug): Call init_debug_target.
4262         * target.h (TARGET_DEBUG_PRINTER): New macro.
4263         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4264         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4265
4266 2014-07-24  Gary Benson  <gbenson@redhat.com>
4267
4268         * exceptions.h (throw_vfatal): Renamed to...
4269         (throw_vquit): New declaration.
4270         (throw_quit): Likewise.
4271         * exceptions.c (throw_vfatal): Renamed to...
4272         (throw_vquit): New function.
4273         (throw_quit): Likewise.
4274         (throw_error): Call throw_verror rather than throw_it.
4275         * utils.h (vfatal): Removed.
4276         (fatal): Likewise.
4277         * utils.c (vfatal): Removed.
4278         (fatal): Likewise.
4279         (internal_verror): Replaced call to fatal with call to throw_quit.
4280         (quit): Replaced calls to fatal with calls to throw_quit.
4281
4282 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4283
4284         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4285         target_read_code.
4286
4287 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4288
4289         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4290         less than zero in conditional expression.
4291
4292 2014-07-23  Tom Tromey  <tromey@redhat.com>
4293
4294         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4295         ($INTRO_PART): Don't match whitespace.
4296         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4297         argument matching.
4298         ($METHOD): Add $METHOD_TRAILER.
4299         (trim): Rewrite.
4300         (scan_target_h): New sub.
4301         Change main loop not to collect state.
4302         * target-delegates.c: Rebuild.
4303
4304 2014-07-23  Gary Benson  <gbenson@redhat.com>
4305
4306         * cp-support.c (gdb_demangle): Fix build on systems without
4307         sigaltstack.
4308
4309 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4310
4311         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4312         for reference entry value target data value.
4313
4314 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4315
4316         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4317         value_available_contents_eq.
4318
4319 2014-07-22  Pedro Alves  <palves@redhat.com>
4320
4321         * value.c (allocate_optimized_out_value): Don't mark value as
4322         non-lazy.
4323
4324 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4325
4326         * MAINTAINERS (Write After Approval): Update my email address.
4327
4328 2014-07-20  Doug Evans  <dje@google.com>
4329
4330         PR server/17147
4331         * remote.c (putpkt_binary): Add text to error message.
4332
4333 2014-07-20  Yao Qi  <yao@codesourcery.com>
4334
4335         * eval.c: Remove "Chill" from comments.
4336         * gdbtypes.h: Likewise.
4337         * symtab.h: Likewise.
4338
4339 2014-07-20  Yao Qi  <yao@codesourcery.com>
4340
4341         * std-operator.def: Update comments to TERNOP_SLICE.
4342
4343 2014-07-20  Yao Qi  <yao@codesourcery.com>
4344
4345         * std-operator.def: Remove BINOP_RANGE.
4346         * breakpoint.c (watchpoint_exp_is_const): Update.
4347         * expprint.c (dump_subexp_body_standard): Likewise.
4348         * eval.c (init_array_element): Remove dead code.
4349         (evaluate_subexp_standard): Likewise.
4350
4351 2014-07-20  Yao Qi  <yao@codesourcery.com>
4352
4353         * std-operator.def: Remove BINOP_IN.
4354         * breakpoint.c (watchpoint_exp_is_const): Update.
4355         * eval.c (evaluate_subexp_standard): Likewise.
4356         * expprint.c (dump_subexp_body_standard): Likewise.
4357
4358 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4359
4360         * microblaze-tdep.c (microblaze_register_names): Add
4361         the rshr and rslr register names.
4362         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4363         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4364         Use of tdesc_numbered_register. Use of
4365         microblaze_register_g_packet_guesses. Use of
4366         tdesc_use_registers. Use of set_gdbarch_register_type.
4367         (microblaze_register_g_packet_guesses): New.
4368         * microblaze-tdep.h (microblaze_reg_num): Add
4369         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4370         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4371         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4372         * features/microblaze-core.xml: New file.
4373         * features/microblaze-stack-protect.xml: New file.
4374         * features/microblaze-with-stack-protect.c: New file.
4375         * features/microblaze-with-stack-protect.xml: New file.
4376         * features/microblaze.xml: New file.
4377         * features/microblaze.c: New file.
4378         * features/Makefile (microblaze-with-stack-protect): Add
4379         microblaze-with-stack-protect microblaze and microblaze-expedite.
4380         * regformats/microblaze-with-stack-protect.dat: New file.
4381         * regformats/microblaze.dat: New file.
4382         * doc/gdb.texinfo (MicroBlaze Features): Added.
4383
4384 2014-07-18  Tom Tromey  <tromey@redhat.com>
4385
4386         * exec.c (exec_ops): Now static.
4387         * exec.h (exec_ops): Don't declare.
4388
4389 2014-07-18  Tom Tromey  <tromey@redhat.com>
4390
4391         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4392         to find_target_beneath.
4393         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4394         find_target_beneath.
4395         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4396
4397 2014-07-18  Tom Tromey  <tromey@redhat.com>
4398
4399         PR gdb/17130:
4400         * utils.c (quit): Use target_supports_terminal_ours.
4401         * target.h (target_supports_terminal_ours): Declare.
4402         * target.c (target_supports_delete_record): Don't check
4403         to_delete_record against NULL.
4404         (target_supports_terminal_ours): New function.
4405
4406 2014-07-18  Tom Tromey  <tromey@redhat.com>
4407
4408         PR gdb/17130:
4409         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4410         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4411         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4412         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4413         * windows-nat.c (windows_xfer_partial): Always delegate.
4414         * record-btrace.c (record_btrace_xfer_partial): Simplify
4415         delegation.
4416         (record_btrace_fetch_registers, record_btrace_store_registers)
4417         (record_btrace_prepare_to_store, record_btrace_resume)
4418         (record_btrace_wait, record_btrace_find_new_threads)
4419         (record_btrace_thread_alive): Likewise.
4420         * procfs.c (procfs_xfer_partial): Always delegate.
4421         * corelow.c (core_xfer_partial): Always delegate.
4422         * sol-thread.c (sol_find_new_threads): Simplify delegation.
4423
4424 2014-07-18  Tom Tromey  <tromey@redhat.com>
4425
4426         * exec.c (exec_make_note_section): Move earlier.
4427
4428 2014-07-17  Doug Evans  <dje@google.com>
4429
4430         PR gdb/17170
4431         * maint.c (count_symtabs_and_blocks): Handle NULL
4432         current_program_space.
4433         (report_command_stats): Check global enabled flag in addition to
4434         recorded enabled flag.
4435         (make_command_stats_cleanup): Handle msg_type == 0, startup.
4436
4437 2014-07-16  Pedro Alves  <palves@redhat.com>
4438
4439         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4440
4441 2014-07-16  Tom Tromey  <tromey@redhat.com>
4442
4443         * target.h (struct target_ops) <to_delete_record>: Reformat
4444         comment.
4445
4446 2014-07-16  Tom Tromey  <tromey@redhat.com>
4447
4448         * target-delegates.c: Rebuild.
4449
4450 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
4451
4452         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4453         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4454         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4455         (avr_pointer_to_address): Likewise.
4456         (avr_address_class_type_flags): New function.
4457         (avr_address_class_type_flags_to_name): Likewise.
4458         (avr_address_class_name_to_type_flags): Likewise.
4459         (avr_gdbarch_init): Set address_class_type_flags,
4460         address_class_type_flags_to_name and
4461         address_class_name_to_type_flags.
4462
4463 2014-07-15  Pedro Alves  <palves@redhat.com>
4464
4465         * linux-nat.c (kill_callback): Save errno and work with saved
4466         copy.
4467
4468 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
4469
4470         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4471
4472 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4473
4474         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4475         breakpoint support correctly.
4476
4477 2014-07-14  Pedro Alves  <palves@redhat.com>
4478
4479         * utils.c (prompt_for_continue): Call target_terminal_ours.
4480
4481 2014-07-14  Pedro Alves  <palves@redhat.com>
4482
4483         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4484         catch_errors.  Don't re-enable stdin or notify observers where,
4485         and rethrow error.
4486         (fetch_inferior_event_wrapper): Delete.
4487
4488 2014-07-14  Pedro Alves  <palves@redhat.com>
4489
4490         PR gdb/17072
4491         * top.c: Include "inf-loop.h".
4492         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4493         field.
4494         (gdb_readline_wrapper_cleanup): Make the target async again, if it
4495         was async before.
4496         (gdb_readline_wrapper): Store whether the target is async, and
4497         make it sync.
4498
4499 2014-07-14  Pedro Alves  <palves@redhat.com>
4500
4501         PR gdb/17072
4502         * top.c (gdb_readline_wrapper_line): Tweak comment.
4503         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4504         the input handler callback.
4505
4506 2014-07-14  Pedro Alves  <palves@redhat.com>
4507
4508         PR gdb/17072
4509         * main.c: Include event-top.h.
4510         (handle_command_errors): New function.
4511         (catch_command_errors, catch_command_errors_const): Use it.
4512
4513 2014-07-14  Pedro Alves  <palves@redhat.com>
4514
4515         * exceptions.c (catch_command_errors, catch_command_errors_const):
4516         Moved to main.c.
4517         * exceptions.h (catch_command_errors_ftype)
4518         (catch_command_errors_const_ftype): Moved to main.c.
4519         (catch_command_errors, catch_command_errors_const): Delete
4520         declarations.
4521         * main.c (catch_command_errors_ftype)
4522         (catch_command_errors_const_ftype): Moved here from exceptions.h.
4523         (catch_command_errors, catch_command_errors_const)): Moved here
4524         from exceptions.c and make static.
4525
4526 2014-07-14  Pedro Alves  <palves@redhat.com>
4527
4528         * exceptions.c (print_any_exception): Delete.
4529         (catch_exceptions_with_msg): Use exception_print instead of
4530         print_any_exception.
4531         (catch_errors): Use exception_fprintf instead of
4532         print_any_exception.
4533         (catch_command_errors, catch_command_errors_const): Use
4534         exception_print instead of print_any_exception.
4535
4536 2014-07-14  Pedro Alves  <palves@redhat.com>
4537
4538         * infcall.c (run_inferior_call): Set 'sync_execution' while
4539         running the inferior call.
4540
4541 2014-07-14  Pedro Alves  <palves@redhat.com>
4542
4543         * value.c (value_contents_equal): Delete function.
4544         * value.h (value_contents_equal): Delete declaration.
4545
4546 2014-07-14  Tom Tromey  <tromey@redhat.com>
4547
4548         PR exp/17106:
4549         * gdbtypes.c (is_dynamic_type_internal): New function, from
4550         is_dynamic_type.
4551         (is_dynamic_type): Rewrite.
4552         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4553         (resolve_dynamic_struct): Likewise.
4554         (resolve_dynamic_type_internal): New function, from
4555         resolve_dynamic_type.
4556         (resolve_dynamic_type): Rewrite.
4557
4558 2014-07-14  Tom Tromey  <tromey@redhat.com>
4559
4560         * target.c (target_require_runnable): Also check record_stratum.
4561         Update comment.
4562
4563 2014-07-11  Yao Qi  <yao@codesourcery.com>
4564
4565         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4566         thumb_instruction_restores_sp return true.
4567
4568 2014-07-11  Yao Qi  <yao@codesourcery.com>
4569
4570         * arm-tdep.c (thumb_instruction_restores_sp): New function.
4571         (thumb_in_function_epilogue_p): Call
4572         thumb_instruction_restores_sp.
4573
4574 2014-07-11  Yao Qi  <yao@codesourcery.com>
4575
4576         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4577         'add sp, #imm'.
4578         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4579
4580 2014-07-11  Gary Benson  <gbenson@redhat.com>
4581
4582         * amd64-linux-nat.c (gdbcore.h): Remove include.
4583         (regset.h): Likewise.
4584         (nat/linux-btrace.h): Likewise.
4585         (btrace.h): Likewise.
4586         (gdb_assert.h): Likewise.
4587         (string.h): Likewise.
4588         (sys/uio.h): Likewise.
4589         (sys/debugreg.h): Likewise.
4590         (sys/syscall.h): Likewise.
4591         (sys/procfs.h): Likewise.
4592         (sys/user.h): Likewise.
4593         (asm/ptrace.h): Likewise.
4594         (i386-nat.h): Likewise.
4595         * i386-linux-nat.c (i386-nat.h): Likewise.
4596         (regset.h): Likewise.
4597         (target.h): Likewise.
4598         (linux-nat.h): Likewise.
4599         (nat/linux-btrace.h): Likewise.
4600         (btrace.h): Likewise.
4601         (gdb_assert.h): Likewise.
4602         (string.h): Likewise.
4603         (sys/uio.h): Likewise.
4604         (sys/user.h): Likewise.
4605         (sys/procfs.h): Likewise.
4606         (sys/reg.h): Likewise.
4607         (sys/debugreg.h): Likewise.
4608         (ORIG_EAX): Remove definition.
4609
4610 2014-07-11  Gary Benson  <gbenson@redhat.com>
4611
4612         * i386-linux-nat.h: New file.
4613         * x86-linux-nat.h: Likewise.
4614         * x86-linux-nat.c: Likewise.
4615         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4616         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4617         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4618         * amd64-linux-nat.c (x86-linux-nat.h): New include.
4619         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4620         (PTRACE_SETREGSET): Likewise.
4621         (arch_lwp_info): Now in x86-linux-nat.c.
4622         (have_ptrace_getregset): Now in x86-linux-nat.h.
4623         (x86_linux_dr_get): Now in x86-linux-nat.c.
4624         (x86_linux_dr_set): Likewise.
4625         (x86_linux_dr_get_addr): Likewise.
4626         (x86_linux_dr_get_control): Likewise.
4627         (x86_linux_dr_get_status): Likewise.
4628         (update_debug_registers_callback): Likewise.
4629         (x86_linux_dr_set_control): Likewise.
4630         (x86_linux_dr_set_addr): Likewise.
4631         (x86_linux_prepare_to_resume): Likewise.
4632         (x86_linux_new_thread): Likewise.
4633         (x86_linux_new_fork): Likewise.
4634         (x86_linux_get_thread_area): Likewise.
4635         (super_post_startup_inferior): Likewise.
4636         (x86_linux_child_post_startup_inferior): Likewise.
4637         (AMD64_LINUX_USER64_CS): Likewise.
4638         (AMD64_LINUX_X32_DS): Likewise.
4639         (x86_linux_read_description): Likewise.
4640         (x86_linux_enable_btrace): Likewise.
4641         (x86_linux_disable_btrace): Likewise.
4642         (x86_linux_teardown_btrace): Likewise.
4643         (x86_linux_read_btrace): Likewise.
4644         (x86_linux_create_target): Likewise.
4645         (x86_linux_add_target): Likewise.
4646         * i386-linux-nat.c (x86-linux-nat.h): New include.
4647         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4648         (PTRACE_SETREGSET): Likewise.
4649         (arch_lwp_info): Now in x86-linux-nat.c.
4650         (have_ptrace_getregset): Now in x86-linux-nat.h.
4651         (x86_linux_dr_get): Now in x86-linux-nat.c.
4652         (x86_linux_dr_set): Likewise.
4653         (x86_linux_dr_get_addr): Likewise.
4654         (x86_linux_dr_get_control): Likewise.
4655         (x86_linux_dr_get_status): Likewise.
4656         (update_debug_registers_callback): Likewise.
4657         (x86_linux_dr_set_control): Likewise.
4658         (x86_linux_dr_set_addr): Likewise.
4659         (x86_linux_prepare_to_resume): Likewise.
4660         (x86_linux_new_thread): Likewise.
4661         (x86_linux_new_fork): Likewise.
4662         (x86_linux_get_thread_area): Likewise.
4663         (super_post_startup_inferior): Likewise.
4664         (x86_linux_child_post_startup_inferior): Likewise.
4665         (AMD64_LINUX_USER64_CS): Likewise.
4666         (AMD64_LINUX_X32_DS): Likewise.
4667         (x86_linux_read_description): Likewise.
4668         (x86_linux_enable_btrace): Likewise.
4669         (x86_linux_disable_btrace): Likewise.
4670         (x86_linux_teardown_btrace): Likewise.
4671         (x86_linux_read_btrace): Likewise.
4672         (x86_linux_create_target): Likewise.
4673         (x86_linux_add_target): Likewise.
4674
4675 2014-07-11  Gary Benson  <gbenson@redhat.com>
4676
4677         * amd64-linux-nat.c: Comment and whitespace changes.
4678         * i386-linux-nat.c: Comment and whitespace changes.
4679
4680 2014-07-11  Gary Benson  <gbenson@redhat.com>
4681
4682         * amd64-linux-nat.c (x86_linux_create_target): New function.
4683         (x86_linux_add_target): Likewise.
4684         (_initialize_amd64_linux_nat): Delegate to the above new functions.
4685         * i386-linux-nat.c (x86_linux_create_target): New function.
4686         (x86_linux_add_target): Likewise.
4687         (_initialize_i386_linux_nat): Delegate to the above new functions.
4688
4689 2014-07-11  Gary Benson  <gbenson@redhat.com>
4690
4691         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4692         (ps_get_thread_area): Delegate to the above in 32-bit mode.
4693         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4694         (ps_get_thread_area): Delegate to the above.
4695
4696 2014-07-11  Gary Benson  <gbenson@redhat.com>
4697
4698         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4699         x86_linux_read_description.  All uses updated.  amd64-specific
4700         code conditionalized.  Conditionalized i386-specific code added.
4701         Redundant cast removed.
4702         * i386-linux-nat.c (i386_linux_read_description): Renamed to
4703         x86_linux_read_description.  All uses updated.  i386-specific
4704         code conditionalized.  Conditionalized amd64-specific code added.
4705         One sizeof replaced with the actual type it is describing.
4706
4707 2014-07-11  Gary Benson  <gbenson@redhat.com>
4708
4709         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4710         x86_linux_dr_get.  All uses updated.
4711         (amd64_linux_dr_set): Renamed to
4712         x86_linux_dr_set.  All uses updated.
4713         (amd64_linux_dr_get_addr): Renamed to
4714         x86_linux_dr_get_addr.  All uses updated.
4715         (amd64_linux_dr_get_control): Renamed to
4716         x86_linux_dr_get_control.  All uses updated.
4717         (amd64_linux_dr_get_status): Renamed to
4718         x86_linux_dr_get_status.  All uses updated.
4719         (amd64_linux_dr_set_control): Renamed to
4720         x86_linux_dr_set_control.  All uses updated.
4721         (amd64_linux_dr_set_addr): Renamed to
4722         x86_linux_dr_set_addr.  All uses updated.
4723         (amd64_linux_prepare_to_resume): Renamed to
4724         x86_linux_prepare_to_resume.  All uses updated.
4725         (amd64_linux_new_thread): Renamed to
4726         x86_linux_new_thread.  All uses updated.
4727         (amd64_linux_new_fork): Renamed to
4728         x86_linux_new_fork.  All uses updated.
4729         (amd64_linux_child_post_startup_inferior): Renamed to
4730         x86_linux_child_post_startup_inferior.  All uses updated.
4731         (amd64_linux_enable_btrace): Renamed to
4732         x86_linux_enable_btrace.  All uses updated.
4733         (amd64_linux_disable_btrace): Renamed to
4734         x86_linux_disable_btrace.  All uses updated.
4735         (amd64_linux_teardown_btrace): Renamed to
4736         x86_linux_teardown_btrace.  All uses updated.
4737         (amd64_linux_read_btrace): Renamed to
4738         x86_linux_read_btrace.  All uses updated.
4739         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4740         x86_linux_dr_get.  All uses updated.
4741         (i386_linux_dr_set): Renamed to
4742         x86_linux_dr_set.  All uses updated.
4743         (i386_linux_dr_get_addr): Renamed to
4744         x86_linux_dr_get_addr.  All uses updated.
4745         (i386_linux_dr_get_control): Renamed to
4746         x86_linux_dr_get_control.  All uses updated.
4747         (i386_linux_dr_get_status): Renamed to
4748         x86_linux_dr_get_status.  All uses updated.
4749         (i386_linux_dr_set_control): Renamed to
4750         x86_linux_dr_set_control.  All uses updated.
4751         (i386_linux_dr_set_addr): Renamed to
4752         x86_linux_dr_set_addr.  All uses updated.
4753         (i386_linux_prepare_to_resume): Renamed to
4754         x86_linux_prepare_to_resume.  All uses updated.
4755         (i386_linux_new_thread): Renamed to
4756         x86_linux_new_thread.  All uses updated.
4757         (i386_linux_new_fork): Renamed to
4758         x86_linux_new_fork.  All uses updated.
4759         (i386_linux_child_post_startup_inferior): Renamed to
4760         x86_linux_child_post_startup_inferior.  All uses updated.
4761         (i386_linux_enable_btrace): Renamed to
4762         x86_linux_enable_btrace.  All uses updated.
4763         (i386_linux_disable_btrace): Renamed to
4764         x86_linux_disable_btrace.  All uses updated.
4765         (i386_linux_teardown_btrace): Renamed to
4766         x86_linux_teardown_btrace.  All uses updated.
4767         (i386_linux_read_btrace): Renamed to
4768         x86_linux_read_btrace.  All uses updated.
4769
4770 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
4771
4772         * remote.c (extended_remote_post_attach): New function.
4773         (init_extended_remote_ops): Install it as to_post_attach method.
4774
4775 2014-07-09  Pedro Alves  <palves@redhat.com>
4776
4777         * infcmd.c (attach_command_post_wait): Don't call
4778         target_terminal_inferior here.
4779         (attach_command): Call it here instead.
4780
4781 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4782
4783         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4784         field.
4785         * c-varobj.c (c_is_path_expr_parent): New function, moved core
4786         from varobj.c, with additional checks.
4787         (c_varobj_ops): Fill in is_path_expr_parent field.
4788         (cplus_varobj_ops): Fill in is_path_expr_parent field.
4789         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4790         field.
4791         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4792         ops method.
4793         (varobj_default_is_path_expr_parent): New function.
4794         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4795         (varobj_default_is_path_expr_parent): Declare new function.
4796
4797 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
4798
4799         * infcmd.c (finish_backward): Turn internal error into normal error.
4800
4801 2014-07-07  Pedro Alves  <palves@redhat.com>
4802
4803         PR gdb/17096
4804         * remote.c (async_handle_remote_sigint)
4805         (async_handle_remote_sigint_twice): Call
4806         gdb_call_async_signal_handler instead of
4807         mark_async_signal_handler.
4808
4809 2014-07-07  Tom Tromey  <tromey@redhat.com>
4810
4811         * target-delegates.c: Rebuild.
4812         * target.c (target_info_record): Remove.
4813         * record.c (info_record_command): Unconditionally call
4814         to_info_record.
4815         * target.h (struct target_ops) <to_info_record>: Use
4816         TARGET_DEFAULT_IGNORE.
4817         (target_info_record): Remove.
4818
4819 2014-07-07  Tom Tromey  <tromey@redhat.com>
4820
4821         * target.h (struct target_ops) <to_get_thread_local_address>: Use
4822         TARGET_DEFAULT_NORETURN.
4823         * target.c (generic_tls_error): New function.
4824         (target_translate_tls_address): Don't search target stack.
4825         * target-delegates.c: Rebuild.
4826         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4827         stack.
4828         * linux-thread-db.c (thread_db_get_thread_local_address):
4829         Unconditionally call beneath target.
4830
4831 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
4832
4833         * cli/cli-logging.c (pop_output_files): Assign targerr to
4834         gdb_stdtargerr.
4835
4836 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
4837
4838         * MAINTAINERS (Write After Approval): Update my email address.
4839
4840 2014-07-02  Gary Benson  <gbenson@redhat.com>
4841
4842         * proc-service.c (ps_xfer_memory): Update comment.
4843         (ps_pstop): Remove unused function.
4844         (ps_pcontinue): Likewise.
4845         (ps_lstop): Likewise.
4846         (ps_lcontinue): Likewise.
4847         (ps_lgetxregsize): Likewise.
4848         (ps_lgetxregs): Likewise.
4849         (ps_lsetxregs): Likewise.
4850         (ps_plog): Likewise.
4851         (ps_ptread): Likewise.
4852         (ps_ptwrite): Likewise.
4853
4854 2014-07-01  Mark Wielaard  <mjw@redhat.com>
4855
4856         * dwarf2read.c (add_array_cv_type): New function.
4857         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4858         (read_tag_volatile_type): Likewise.
4859
4860 2014-07-01  Tom Tromey  <tromey@redhat.com>
4861
4862         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4863         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4864         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4865         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4866         * command.h (cmd_cfunc_ftype): Move earlier.
4867         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4868         (add_com, add_info): Use cmd_cfunc_ftype.
4869
4870 2014-06-30  Tom Tromey  <tromey@redhat.com>
4871
4872         * symtab.c (operator_chars): Make parameters and return type
4873         const.
4874         (file_matches): Make "files" const.
4875         (struct search_symbols_data) <files>: Now const.
4876         (search_symbols): Make "regexp" and "files" parameters const.
4877         Update.
4878         (symtab_symbol_info): Remove cast.
4879         (rbreak_command): Update.
4880         * symtab.h (search_symbols): Update.
4881
4882 2014-06-27  Yao Qi  <yao@codesourcery.com>
4883
4884         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4885         Change parameter type to 'struct thread_info *'.  Caller
4886         updated.
4887         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4888         Update declaration.
4889         * dummy-frame.c (struct dummy_frame_id): New.
4890         (dummy_frame_id_eq): New function.
4891         (struct dummy_frame) <id>: Change its type to 'struct
4892         dummy_frame_id'.
4893         (dummy_frame_push): Add parameter ptid and save it in
4894         dummy_frame_id.
4895         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4896         inferior_ptid.
4897         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4898         to inferior_ptid.
4899         (lookup_dummy_frame): Change parameter type to 'struct
4900         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
4901         instead of frame_id_eq.
4902         (dummy_frame_pop): Add parameter ptid.  Callers updated.
4903         Update comments.  Compose dummy_frame_id and pass it to
4904         lookup_dummy_frame.
4905         (dummy_frame_discard): Add parameter ptid.
4906         (dummy_frame_sniffer): Compose dummy_frame_id and call
4907         dummy_frame_id_eq instead of frame_id_eq.
4908         (fprint_dummy_frames): Print ptid.
4909         * dummy-frame.h: Remove comments.
4910         (dummy_frame_push): Add ptid in declaration.
4911         (dummy_frame_pop, dummy_frame_discard): Likewise.
4912
4913 2014-06-26  Tom Tromey  <tromey@redhat.com>
4914
4915         * cli/cli-cmds.c (error_no_arg): Make "why" const.
4916         * command.h (error_no_arg): Update.
4917
4918 2014-06-26  Tom Tromey  <tromey@redhat.com>
4919
4920         * cli/cli-setshow.c (do_set_command): Make "arg" const.
4921         (do_show_command): Make "arg" const.
4922         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4923
4924 2014-06-26  Tom Tromey  <tromey@redhat.com>
4925
4926         * record-full.c (record_full_get_bookmark): Make "args" const.
4927         (record_full_goto_bookmark): Make "raw_bookmark" const.
4928         * record.c (record_goto): New function.
4929         (cmd_record_goto): Use it.  Now static.
4930         * record.h (record_goto): Declare.
4931         (cmd_record_goto): Remove declaration.
4932         * target-delegates.c: Rebuild.
4933         * target.h (struct target_ops) <to_get_bookmark,
4934         to_goto_bookmark>: Make parameter const.
4935
4936 2014-06-26  Tom Tromey  <tromey@redhat.com>
4937
4938         * defs.h (generic_load): Update.
4939         * m32r-rom.c (m32r_load_gen): Make "filename" const.
4940         * monitor.c (monitor_load): Make "args" const.
4941         * remote-m32r-sdi.c (m32r_load): Make "args" const.
4942         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4943         const.
4944         (mips_load): Make "file" const.
4945         * remote-sim.c (gdbsim_load): Make "args" const.
4946         * remote.c (remote_load): Make "name" const.
4947         * symfile.c (generic_load): Make "args" const.
4948         * target-delegates.c: Rebuild.
4949         * target.c (target_load): Make "arg" const.
4950         (debug_to_load): Make "args" const.
4951         * target.h (struct target_ops) <to_load>: Make parameter const.
4952         (target_load): Update.
4953
4954 2014-06-26  Tom Tromey  <tromey@redhat.com>
4955
4956         PR symtab/16902:
4957         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4958         (dwarf2_physname, read_partial_die)
4959         (guess_partial_die_structure_name, fixup_partial_die)
4960         (guess_full_die_structure_name, anonymous_struct_prefix)
4961         (dwarf2_name): Use per-BFD obstack.
4962
4963 2014-06-26  Yao Qi  <yao@codesourcery.com>
4964
4965         * dummy-frame.c (dummy_frame_sniffer): Move local variables
4966         dummyframe and this_id into inner block below.
4967
4968 2014-06-26  Yao Qi  <yao@codesourcery.com>
4969
4970         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4971         with "signal_pass[0]" in the initialization of signal_pass.
4972
4973 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4974
4975         * record-btrace.c (record_btrace_generating_corefile)
4976         (record_btrace_prepare_to_generate_core)
4977         (record_btrace_done_generating_core): New.
4978         (record_btrace_xfer_partial, record_btrace_fetch_registers)
4979         (record_btrace_store_registers, record_btrace_prepare_to_store):
4980         Forward request when generating a core file.
4981         (record_btrace_open): Set record_btrace_generating_corefile to zero.
4982         (init_record_btrace_ops): Set to_prepare_to_generate_core and
4983         to_done_generating_core.
4984
4985 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4986
4987         * target.h (target_ops) <to_prepare_to_generate_core>
4988         <to_done_generating_core>: New.
4989         (target_prepare_to_generate_core, target_done_generating_core): New.
4990         * target.c (target_prepare_to_generate_core)
4991         (target_done_generating_core): New.
4992         * target-delegates.c: Regenerate.
4993         * gcore.c: (write_gcore_file): Rename to ...
4994         (write_gcore_file_1): ...this.
4995         (write_gcore_file): Call target_prepare_to_generate_core
4996         and target_done_generating_core.
4997
4998 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
4999
5000         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5001         * gcore.c (write_gcore_file): Free memory returned from
5002         make_corefile_notes.
5003         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5004         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5005
5006 2014-06-24  Yao Qi  <yao@codesourcery.com>
5007
5008         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5009         (arm_linux_init_abi): Set skip_trampoline_code with
5010         gdbarch_skip_trampoline_code instead of
5011         find_solib_trampoline_target.
5012
5013 2014-06-24  Yao Qi  <yao@codesourcery.com>
5014
5015         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5016         arm_skip_bx_reg returns non-zero.
5017
5018 2014-06-24  Yao Qi  <yao@codesourcery.com>
5019
5020         * arm-tdep.c (arm_skip_bx_reg): New function.
5021         (arm_skip_stub): Call arm_skip_bx_reg.
5022
5023 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5024
5025         * MAINTAINERS: Add myself as write-after-approval maintainer.
5026
5027 2014-06-23  Pedro Alves  <palves@redhat.com>
5028
5029         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5030         DR_CONTROL before setting DR0..DR3.
5031         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5032         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5033         bits of DR_CONTROL related to the debug register slot being
5034         disabled.  If all slots are vacant, clear local slowdown as well,
5035         and assert DR_CONTROL is 0.
5036
5037 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5038
5039         * python/lib/gdb/command/xmethods.py
5040         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5041         current progspace only if the string "progspace" matches LOCUS_RE.
5042
5043 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5044
5045         Fix --with-system-readline with readline-6.3 patch 5.
5046         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5047         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5048         types.
5049
5050 2014-06-20  Tom Tromey  <tromey@redhat.com>
5051
5052         * dwarf2read.c (dw2_get_real_path): Use correct type in
5053         OBSTACK_CALLOC.
5054         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5055
5056 2014-06-20  Gary Benson  <gbenson@redhat.com>
5057
5058         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5059         * common/glibc_thread_db.h: Likewise.
5060         * common/i386-cpuid.h: Likewise.
5061         * common/i386-gcc-cpuid.h: Likewise.
5062         * common/linux-btrace.h: Likewise.
5063         * common/linux-osdata.h: Likewise.
5064         * common/linux-procfs.h: Likewise.
5065         * common/linux-ptrace.h: Likewise.
5066         * common/mips-linux-watch.h: Likewise.
5067         * common/linux-btrace.c: Moved to nat.
5068         * common/linux-osdata.c: Likewise.
5069         * common/linux-procfs.c: Likewise.
5070         * common/linux-ptrace.c: Likewise.
5071         * common/mips-linux-watch.c: Likewise.
5072         * nat/gdb_thread_db.h: Moved from common.
5073         * nat/glibc_thread_db.h: Likewise.
5074         * nat/i386-cpuid.h: Likewise.
5075         * nat/i386-gcc-cpuid.h: Likewise.
5076         * nat/linux-btrace.c: Likewise.
5077         * nat/linux-btrace.h: Likewise.
5078         * nat/linux-osdata.c: Likewise.
5079         * nat/linux-osdata.h: Likewise.
5080         * nat/linux-procfs.c: Likewise.
5081         * nat/linux-procfs.h: Likewise.
5082         * nat/linux-ptrace.c: Likewise.
5083         * nat/linux-ptrace.h: Likewise.
5084         * nat/mips-linux-watch.c: Likewise.
5085         * nat/mips-linux-watch.h: Likewise.
5086         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5087         (object file files): Reordered.
5088         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5089         of glibc_thread_db.h.
5090
5091 2014-06-20  Gary Benson  <gbenson@redhat.com>
5092
5093         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5094         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5095         (i386_dr_low): Likewise.
5096         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5097         (i386_dr_low_set_addr): Likewise.
5098         (i386_dr_low_get_addr): Likewise.
5099         (i386_dr_low_can_set_control): Likewise.
5100         (i386_dr_low_set_control): Likewise.
5101         (i386_dr_low_get_control): Likewise.
5102         (i386_dr_low_get_status): Likewise.
5103         (i386_get_debug_register_length): Likewise.
5104         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5105         (i386_dr_low): Likewise.
5106         * nat/i386-dregs.c (i386-low.h): Remove include.
5107         (i386-nat.h): Likewise.
5108         (nat/i386-dregs.h): New include.
5109         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5110         (i386_dr_low_set_addr): Likewise.
5111         (i386_dr_low_get_addr): Likewise.
5112         (i386_dr_low_can_set_control): Likewise.
5113         (i386_dr_low_set_control): Likewise.
5114         (i386_dr_low_get_control): Likewise.
5115         (i386_dr_low_get_status): Likewise.
5116         (i386_get_debug_register_length): Likewise.
5117         (debug_hw_points): Likewise.
5118
5119 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5120
5121         * Makefile.in (SFILES): Add d-exp.y.
5122         (YYFILES): Add d-exp.c.
5123         (YYOBJ): Add d-exp.o.
5124         (local-maintainer-clean): Delete d-exp.c.
5125         * d-exp.y: New file.
5126         * d-lang.h (d_parse): New declaration.
5127         (d_error): New declaration.
5128         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5129         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5130         PREC_ORDER operators.
5131         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5132
5133 2014-06-19  Yao Qi  <yao@codesourcery.com>
5134
5135         * gdbthread.h (any_running): Remove the declaration.
5136         * thread.c (any_running): Remove.
5137
5138 2014-06-19  Yao Qi  <yao@codesourcery.com>
5139
5140         * gdbthread.h (struct thread_info) <state>: Change its type to
5141         'enum thread_state'.  Update comments.
5142
5143 2014-06-19  Pedro Alves  <palves@redhat.com>
5144
5145         * gdbthread.h (ALL_THREADS): Delete.
5146         (ALL_NON_EXITED_THREADS): New macro.
5147         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5148         instead of ALL_THREADS.
5149         * infrun.c (find_thread_needs_step_over)
5150         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5151         instead of ALL_THREADS.
5152         * record-btrace.c (record_btrace_open)
5153         (record_btrace_stop_recording, record_btrace_close)
5154         (record_btrace_is_replaying, record_btrace_resume)
5155         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5156         * remote.c (append_pending_thread_resumptions): Likewise.
5157         * thread.c (thread_apply_all_command): Likewise.
5158
5159 2014-06-19  Gary Benson  <gbenson@redhat.com>
5160
5161         * i386-nat.c (i386_stopped_by_watchpoint):
5162         Use i386_dr_stopped_by_watchpoint.
5163         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5164         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5165
5166 2014-06-19  Gary Benson  <gbenson@redhat.com>
5167
5168         * nat/i386-dregs.c: New file.
5169         * Makefile.in (i386-dregs.o): New rule.
5170         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5171         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5172         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5173         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5174         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5175         * config/i386/go32.mh (NATDEPFILES): Likewise.
5176         * config/i386/linux.mh (NATDEPFILES): Likewise.
5177         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5178         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5179         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5180         * i386-nat.h (debug_hw_points): New declaration.
5181         * i386-nat.c (breakpoint.h): Remove include.
5182         (command.h): Likewise.
5183         (target.h): Likewise.
5184         (gdb_assert.h): Likewise.
5185         (debug_hw_points): Made nonstatic.
5186         (debug_printf): Now in i386-dregs.c.
5187         (TARGET_HAS_DR_LEN_8): Likewise.
5188         (DR_CONTROL_SHIFT): Likewise.
5189         (DR_CONTROL_SIZE): Likewise.
5190         (DR_RW_EXECUTE): Likewise.
5191         (DR_RW_WRITE): Likewise.
5192         (DR_RW_READ): Likewise.
5193         (DR_RW_IORW): Likewise.
5194         (DR_LEN_1): Likewise.
5195         (DR_LEN_2): Likewise.
5196         (DR_LEN_4): Likewise.
5197         (DR_LEN_8): Likewise.
5198         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5199         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5200         (DR_ENABLE_SIZE): Likewise.
5201         (DR_LOCAL_SLOWDOWN): Likewise.
5202         (DR_GLOBAL_SLOWDOWN): Likewise.
5203         (DR_CONTROL_RESERVED): Likewise.
5204         (I386_DR_CONTROL_MASK): Likewise.
5205         (I386_DR_VACANT): Likewise.
5206         (I386_DR_LOCAL_ENABLE): Likewise.
5207         (I386_DR_GLOBAL_ENABLE): Likewise.
5208         (I386_DR_DISABLE): Likewise.
5209         (I386_DR_SET_RW_LEN): Likewise.
5210         (I386_DR_GET_RW_LEN): Likewise.
5211         (I386_DR_WATCH_HIT): Likewise.
5212         (i386_wp_op_t): Likewise.
5213         (i386_show_dr): Likewise.
5214         (i386_length_and_rw_bits): Likewise.
5215         (i386_insert_aligned_watchpoint): Likewise.
5216         (i386_remove_aligned_watchpoint): Likewise.
5217         (i386_handle_nonaligned_watchpoint): Likewise.
5218         (i386_update_inferior_debug_regs): Likewise.
5219         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5220         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5221         (i386_region_ok_for_watchpoint):
5222         Use i386_dr_region_ok_for_watchpoint.
5223         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5224
5225 2014-06-19  Gary Benson  <gbenson@redhat.com>
5226
5227         * i386-nat.c (i386_insert_hw_breakpoint): Use
5228         i386_insert_watchpoint.
5229         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5230
5231 2014-06-19  Gary Benson  <gbenson@redhat.com>
5232
5233         * i386-nat.c (i386_dr_show): Renamed to
5234         i386_show_dr and made static.  All uses updated.
5235         (i386_dr_length_and_rw_bits): Renamed to
5236         i386_length_and_rw_bits and made static.
5237         All uses updated.
5238         (i386_dr_insert_aligned_watchpoint): Renamed to
5239         i386_insert_aligned_watchpoint and made static.
5240         All uses updated.
5241         (i386_dr_remove_aligned_watchpoint): Renamed to
5242         i386_remove_aligned_watchpoint and made static.
5243         All uses updated.
5244         (i386_dr_update_inferior_debug_regs): Renamed to
5245         i386_update_inferior_debug_regs and made static.
5246         All uses updated.
5247         * nat/i386-dregs.h (i386_dr_show): Removed.
5248         (i386_dr_length_and_rw_bits): Likewise.
5249         (i386_dr_insert_aligned_watchpoint): Likewise.
5250         (i386_dr_remove_aligned_watchpoint): Likewise.
5251         (i386_dr_update_inferior_debug_regs): Likewise.
5252
5253 2014-06-19  Gary Benson  <gbenson@redhat.com>
5254
5255         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5256         * configure: Regenerate.
5257         * config.in: Likewise.
5258         * main.c (signal.h): New include.
5259         (setup_alternate_signal_stack): New function.
5260         (captured_main): Call the above.
5261         * cp-support.c (signal.h): New include.
5262         (catch_demangler_crashes): New flag.
5263         (SIGJMP_BUF): New define.
5264         (SIGSETJMP): Likewise.
5265         (SIGLONGJMP): Likewise.
5266         (gdb_demangle_jmp_buf): New static global.
5267         (gdb_demangle_attempt_core_dump): Likewise.
5268         (gdb_demangle_signal_handler): New function.
5269         (gdb_demangle): If catch_demangler_crashes is set, install the
5270         above signal handler before calling bfd_demangle, and restore
5271         the original signal handler afterwards.  Display the offending
5272         symbol and call demangler_warning the first time a segmentation
5273         fault is caught.
5274         (_initialize_cp_support): New maint set/show command.
5275
5276 2014-06-19  Gary Benson  <gbenson@redhat.com>
5277
5278         * utils.h (resource_limit_kind): New enum.
5279         (can_dump_core): New declaration.
5280         (warn_cant_dump_core): Likewise.
5281         (dump_core): Likewise.
5282         * utils.c (dump_core): Made nonstatic.  Added new
5283         parameter "limit_kind".
5284         (can_dump_core): Made nonstatic. Moved printing code to...
5285         (warn_cant_dump_core): New function.
5286         (can_dump_core_warn): Likewise.
5287         (internal_vproblem): Replace calls to can_dump_core with
5288         calls to can_dump_core_warn.  Supply new argument to each.
5289
5290 2014-06-19  Gary Benson  <gbenson@redhat.com>
5291
5292         * utils.h (demangler_vwarning): New declaration.
5293         (demangler_warning): Likewise.
5294         * utils.c (struct internal_problem)
5295         <user_settable_should_quit>: New field.
5296         <user_settable_should_dump_core>: Likewise
5297         (internal_error_problem): Add values for above new fields.
5298         (internal_warning_problem): Likewise.
5299         (demangler_warning_problem): New static global.
5300         (demangler_vwarning): New function.
5301         (demangler_warning): Likewise.
5302         (add_internal_problem_command): Selectively add commands.
5303         (_initialize_utils): New internal problem command.
5304         * maint.c (maintenance_demangler_warning): New function.
5305         (_initialize_maint_cmds): New command.
5306
5307 2014-06-18  Tom Tromey  <tromey@redhat.com>
5308
5309         * f-valprint.c (info_common_command_for_block): Update.
5310         * symtab.h (struct general_symbol_info) <common_block>: Now
5311         const.
5312
5313 2014-06-18  Tom Tromey  <tromey@redhat.com>
5314
5315         * symtab.h (struct symtab) <blockvector>: Now const.
5316         * ada-lang.c (ada_add_global_exceptions): Update.
5317         * buildsym.c (augment_type_symtab): Update.
5318         * dwarf2read.c (dw2_lookup_symbol): Update.
5319         * jit.c (finalize_symtab): Update.
5320         * jv-lang.c (add_class_symtab_symbol): Update.
5321         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5322         Update.
5323         * objfiles.c (objfile_relocate1): Update.
5324         * psymtab.c (lookup_symbol_aux_psymtabs)
5325         (maintenance_check_psymtabs): Update.
5326         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5327         Update.
5328         * spu-tdep.c (spu_catch_start): Update.
5329         * symmisc.c (dump_symtab_1): Update.
5330         * symtab.c (lookup_global_symbol_from_objfile)
5331         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5332         (basic_lookup_transparent_type_quick)
5333         (basic_lookup_transparent_type, find_pc_sect_symtab)
5334         (find_pc_sect_line, search_symbols): Update.
5335         * block.c (find_block_in_blockvector): Make "bl" const.
5336         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5337         const.
5338         (blockvector_contains_pc): Make "bv" const.
5339         (block_for_pc_sect): Update.
5340         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5341         (blockvector_contains_pc): Update.
5342         * breakpoint.c (resolve_sal_pc): Update.
5343         * inline-frame.c (block_starting_point_at): Update.
5344
5345 2014-06-18  Tom Tromey  <tromey@redhat.com>
5346
5347         * completer.c (complete_line): Make "line_buffer" const.
5348         * completer.h (complete_line): Update.
5349
5350 2014-06-18  Tom Tromey  <tromey@redhat.com>
5351
5352         * symtab.c (add_macro_name): Remove unneeded cast.
5353
5354 2014-06-18  Tom Tromey  <tromey@redhat.com>
5355
5356         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5357         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5358
5359 2014-06-18  Tom Tromey  <tromey@redhat.com>
5360
5361         * probe.c (info_probes_for_ops): Make "arg" const.
5362         * probe.h (info_probes_for_ops): Update.
5363
5364 2014-06-18  Tom Tromey  <tromey@redhat.com>
5365
5366         * varobj.c (varobj_create): Update.
5367         * valops.c (value_of_this): Update.
5368         * tracepoint.c (add_local_symbols, scope_info): Update.
5369         * symtab.h (struct general_symbol_info) <block>: Now const.
5370         * symtab.c (skip_prologue_sal)
5371         (default_make_symbol_completion_list_break_on)
5372         (skip_prologue_using_sal): Update.
5373         * stack.h (iterate_over_block_locals)
5374         (iterate_over_block_local_vars): Update.
5375         * stack.c (print_frame_args): Update.
5376         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5377         parameter const.
5378         (get_selected_block): Make return type const.
5379         * python/py-frame.c (frapy_block): Update.
5380         * python/py-block.c (gdbpy_block_for_pc): Update.
5381         * p-exp.y (%union) <bval>: Now const.
5382         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5383         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5384         * m2-exp.y (%union) <bval>: Now const.
5385         * linespec.c (get_current_search_block): Make return type const.
5386         (create_sals_line_offset, find_label_symbols): Update.
5387         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5388         Update.
5389         (block_starting_point_at): Make "block" const.
5390         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5391         (check_exception_resume): Update.
5392         * guile/scm-frame.c (gdbscm_frame_block): Update.
5393         * guile/scm-block.c (gdbscm_lookup_block): Update.
5394         * frame.h (get_frame_block): Update.
5395         (get_selected_block): Make return type const.
5396         * frame.c (frame_id_inner): Update.
5397         * f-valprint.c (info_common_command_for_block)
5398         (info_common_command): Update.
5399         * dwarf2loc.c (dwarf2_find_location_expression)
5400         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5401         (locexpr_describe_location_piece): Update.
5402         * c-exp.y (%union) <bval>: Now const.
5403         * breakpoint.c (resolve_sal_pc): Update.
5404         * blockframe.c (get_frame_block):Make return type const.
5405         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5406         (block_innermost_frame): Update.
5407         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5408         (block_for_pc, block_for_pc_sect): Update.
5409         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5410         'pblock' const.
5411         (block_for_pc_sect, block_for_pc): Make return type const.
5412         * ax-gdb.c (gen_expr): Update.
5413         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5414         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5415         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5416         (ada_read_var_value): Update.
5417         * ada-exp.y (struct name_info) <block>: Now const.
5418         (%union): Likewise.
5419         (block_lookup): Constify.
5420
5421 2014-06-18  Gary Benson  <gbenson@redhat.com>
5422
5423         * nat/i386-dregs.h: New file.
5424         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5425         * i386-nat.h (i386-dregs.h): New include.
5426         (DR_FIRSTADDR): Now in i386-dregs.h.
5427         (DR_LASTADDR): Likewise.
5428         (DR_NADDR): Likewise.
5429         (DR_STATUS): Likewise.
5430         (DR_CONTROL): Likewise.
5431         (i386_debug_reg_state): Likewise.
5432         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5433
5434 2014-06-18  Don Breazeal  <donb@codesourcery.com>
5435
5436         * breakpoint.c (set_longjmp_breakpoint): Call
5437         momentary_breakpoint_from_master with additional argument.
5438         (set_longjmp_breakpoint_for_call_dummy): Call
5439         momentary_breakpoint_from_master with additional argument.
5440         (set_std_terminate_breakpoint): Call
5441         momentary_breakpoint_from_master with additional argument.
5442         (momentary_breakpoint_from_master): Add argument to function
5443         definition and use it to initialize structure member flag.
5444         (clone_momentary_breakpoint): Call
5445         momentary_breakpoint_from_master with additional argument.
5446         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5447         member flags set in momentary_breakpoint_from_master.
5448
5449 2014-06-18  Gary Benson  <gbenson@redhat.com>
5450
5451         * i386-nat.c (i386_show_dr): Renamed to
5452         i386_dr_show and made nonstatic.  All uses updated.
5453         (i386_length_and_rw_bits): Renamed to
5454         i386_dr_length_and_rw_bits and made nonstatic.
5455         All uses updated.
5456         (i386_insert_aligned_watchpoint): Renamed to
5457         i386_dr_insert_aligned_watchpoint and made nonstatic.
5458         All uses updated.
5459         (i386_remove_aligned_watchpoint): Renamed to
5460         i386_dr_remove_aligned_watchpoint and made nonstatic.
5461         All uses updated.
5462         (i386_update_inferior_debug_regs): Renamed to
5463         i386_dr_update_inferior_debug_regs and made nonstatic.
5464         All uses updated.
5465
5466 2014-06-18  Gary Benson  <gbenson@redhat.com>
5467
5468         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5469         (i386_dr_low_can_set_control): Likewise.
5470         (i386_dr_low_set_addr): Likewise.
5471         (i386_dr_low_set_control): Likewise.
5472         (i386_dr_low_get_addr): Likewise.
5473         (i386_dr_low_get_status): Likewise.
5474         (i386_dr_low_get_control): Likewise.
5475         (i386_insert_aligned_watchpoint): Use new macros.
5476         (i386_update_inferior_debug_regs): Likewise.
5477         (i386_stopped_data_address): Likewise.
5478
5479 2014-06-18  Gary Benson  <gbenson@redhat.com>
5480
5481         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5482         New parameter.  All uses updated.
5483
5484 2014-06-18  Gary Benson  <gbenson@redhat.com>
5485
5486         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5487         All uses updated.
5488
5489 2014-06-18  Gary Benson  <gbenson@redhat.com>
5490
5491         * i386-nat.c (debug_printf): New macro.
5492         (i386_get_debug_register_length): Likewise.
5493         (TARGET_HAS_DR_LEN_8): Use above macro.
5494         (i386_show_dr): Use debug_printf instead of puts_unfiltered
5495         and printf_unfiltered.  Use phex to format values.
5496
5497 2014-06-18  Gary Benson  <gbenson@redhat.com>
5498
5499         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5500         Make const.
5501
5502 2014-06-18  Gary Benson  <gbenson@redhat.com>
5503
5504         * i386-nat.c: Comment changes.
5505
5506 2014-06-18  Gary Benson  <gbenson@redhat.com>
5507
5508         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5509
5510 2014-06-18  Gary Benson  <gbenson@redhat.com>
5511
5512         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5513         (i386_insert_aligned_watchpoint): Likewise.
5514         (i386_remove_aligned_watchpoint): Likewise.
5515         (i386_handle_nonaligned_watchpoint): Likewise.
5516
5517 2014-06-18  Gary Benson  <gbenson@redhat.com>
5518
5519         * i386-nat.c: Whitespace changes.
5520
5521 2014-06-17  Samuel Bronson  <naesten@gmail.com>
5522
5523         * MAINTAINERS: Update Roland McGrath's email address.
5524         Thanks to Sergio Durigan Junior for pointing out that he left
5525         Red Hat a while ago, and giving me a current address.
5526
5527 2014-06-17  Tom Tromey  <tromey@redhat.com>
5528
5529         * utils.h (savestring): Remove declaration.
5530
5531 2014-06-17  Tom Tromey  <tromey@redhat.com>
5532
5533         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5534
5535 2014-06-16  Keith Seitz  <keiths@redhat.com>
5536
5537         PR mi/15863
5538         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5539         to update the varobj if inferior_ptid is null_ptid.
5540
5541 2014-06-16  Tom Tromey  <tromey@redhat.com>
5542
5543         * target.h (struct target_ops) <to_info_proc>: Make parameter
5544         const.
5545         (target_info_proc): Update.
5546         * target.c (target_info_proc): Make "args" const.
5547         * procfs.c (procfs_info_proc): Update.
5548         * linux-tdep.c (linux_info_proc): Update.
5549         (linux_core_info_proc_mappings): Make "args" const.
5550         (linux_core_info_proc): Update.
5551         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5552         * gdbarch.c: Rebuild.
5553         * gdbarch.h: Rebuild.
5554         * corelow.c (core_info_proc): Update.
5555
5556 2014-06-16  Tom Tromey  <tromey@redhat.com>
5557
5558         * target.h (struct target_ops) <to_disconnect>: Make parameter
5559         const.
5560         (target_disconnect): Update.
5561         * target.c (target_disconnect): Make "args" const.
5562         * target-delegates.c: Rebuild.
5563         * remote.c (remote_disconnect): Update.
5564         * record.h (record_disconnect): Update.
5565         * record.c (record_disconnect): Update.
5566         * inf-child.c (inf_child_disconnect): Update.
5567
5568 2014-06-16  Tom Tromey  <tromey@redhat.com>
5569
5570         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5571         * target.c (debug_to_rcmd, default_rcmd): Update.
5572         * target-delegates.c: Rebuild.
5573         * remote.c (remote_rcmd): Update.
5574         * monitor.c (monitor_rcmd): Update.
5575
5576 2014-06-16  Pedro Alves  <palves@redhat.com>
5577
5578         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5579         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5580         have OBJF_SHARED set.
5581         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5582         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
5583         instead of OBJF_USERLOADED.
5584         * objfiles.h (OBJF_SHARED): Update comment.
5585         (userloaded_objfile_contains_address_p): Rename to ...
5586         (shared_objfile_contains_address_p): ... this, and update
5587         comments.
5588         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5589         new objfile.
5590         (remove_symbol_file_command): Skip objfiles that don't have
5591         OBJF_SHARED set.
5592
5593 2014-06-16  Tom Tromey  <tromey@redhat.com>
5594
5595         * minsyms.h (prim_record_minimal_symbol)
5596         (prim_record_minimal_symbol_and_info): Update comments.
5597
5598 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
5599
5600         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5601         or --without-guile, according to how GDB was built.
5602
5603 2014-06-13  Tom Tromey  <tromey@redhat.com>
5604
5605         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5606         to help_list.
5607         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5608         to help_list.
5609         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5610         help_list.
5611         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5612         help_list.Pass all_commands, not -1, to help_list.
5613         * cli/cli-dump.c (dump_command, append_command)
5614         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5615         (binary_dump_command, binary_append_command): Pass all_commands,
5616         not -1, to help_list.
5617         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5618         -1, to help_list.
5619         * valprint.c (set_print, set_print_raw): Pass all_commands, not
5620         -1, to help_list.
5621         * typeprint.c (set_print_type): Pass all_commands, not -1, to
5622         help_list.
5623         * top.c (set_history): Pass all_commands, not -1, to help_list.
5624         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5625         all_commands, not -1, to help_list.
5626         * symfile.c (overlay_command): Pass all_commands, not -1, to
5627         help_list.
5628         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5629         help_list.
5630         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5631         help_list.
5632         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5633         -1, to help_list.
5634         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5635         not -1, to help_list.
5636         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5637         not -1, to help_list.
5638         * maint.c (maintenance_command, maintenance_info_command)
5639         (maintenance_print_command, maintenance_set_cmd): Pass
5640         all_commands, not -1, to help_list.
5641         * macrocmd.c (macro_command): Pass all_commands, not -1, to
5642         help_list.
5643         * language.c (set_check): Pass all_commands, not -1, to help_list.
5644         * infcmd.c (unset_command): Pass all_commands, not -1, to
5645         help_list.
5646         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5647         help_list.
5648         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5649         help_list.
5650         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5651         help_list.
5652         * breakpoint.c (save_command): Pass all_commands, not -1, to
5653         help_list.
5654         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5655         all_commands, not -1, to help_list.
5656
5657 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
5658
5659         * regcache.c (struct register_to_invalidate): New structure.
5660         (do_register_invalidate, make_cleanup_regcache_invalidate): New
5661         functions.
5662         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5663
5664 2014-06-12  Yao Qi  <yao@codesourcery.com>
5665
5666         * varobj.c (varobj_get_num_children): Call
5667         varobj_is_dynamic_p.
5668         (varobj_list_children): Likewise.
5669         (varobj_update): Likewise.  Update comments.
5670
5671 2014-06-12  Yao Qi  <yao@codesourcery.com>
5672
5673         * varobj.c (varobj_pretty_printed_p): Rename to ...
5674         (varobj_is_dynamic_p): ... this.  New function.
5675         * varobj.h (varobj_pretty_printed_p): Remove declaration.
5676         (varobj_is_dynamic_p): Declare.
5677         * mi/mi-cmd-var.c (print_varobj): All callers updated.
5678         (mi_print_value_p, varobj_update_one): Likewise.
5679
5680 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5681             Yao Qi  <yao@codesourcery.com>
5682
5683         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5684         (varobj_get_iterator): Wrap up code for pretty-printer by
5685         "#if HAVE_PYTHON" and "#endif".
5686         (update_dynamic_varobj_children): Likewise.
5687
5688 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5689             Yao Qi  <yao@codesourcery.com>
5690
5691         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5692         gdb_python_initialized is false.  Move some code from varobj.c.
5693         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5694         * varobj.c: Move "varobj-iter.h" inclusion earlier.
5695         (struct varobj_item): Moved to varobj-iter.h".
5696         (varobj_clear_saved_item): New function.
5697         (update_dynamic_varobj_children): Move python-related code to
5698         py-varobj.c.
5699         (free_variable): Call varobj_clear_saved_item and
5700         varobj_iter_delete.
5701
5702 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
5703             Yao Qi  <yao@codesourcery.com>
5704
5705         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5706         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5707         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5708         (py-varobj.o): New rule.
5709         * python/py-varobj.c: New file.
5710         * python/python-internal.h (py_varobj_get_iterator): Declare.
5711         * varobj-iter.h: New file.
5712         * varobj.c: Include "varobj-iter.h"
5713         (struct varobj) <child_iter>: Change its type from "PyObject *"
5714         to "struct varobj_iter *".
5715         <saved_item>: Likewise.
5716         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5717         [HAVE_PYTHON] (varobj_get_iterator): New function.
5718         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5719         python-specific code to python/py-varobj.c.
5720         (install_visualizer): Call varobj_iter_delete instead of
5721         Py_XDECREF.
5722         * varobj.h (varobj_ensure_python_env): Declare.
5723
5724 2014-06-12  Yao Qi  <yao@codesourcery.com>
5725
5726         * varobj.c (struct varobj_item): New structure.
5727         (create_child_with_value): Update declaration.
5728         (varobj_add_child): Replace arguments 'name' and 'value' with
5729         'item'.  All callers updated.
5730         (install_dynamic_child): Likewise.
5731         (update_dynamic_varobj_children): Likewise.
5732         (varobj_add_child): Likewise.
5733         (create_child_with_value): Likewise.
5734
5735 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5736
5737         * NEWS: Create a new section for the next release branch.
5738         Rename the section of the current branch, now that it has
5739         been cut.
5740
5741 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
5742
5743         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5744         * version.in: Bump version to 7.8.50.DATE-cvs.
5745
5746 2014-06-11  Pedro Alves  <palves@redhat.com>
5747
5748         PR remote/17028
5749         * ser-mingw.c (net_windows_socket_check_pending): New function.
5750         (net_windows_select_thread): Ignore spurious wakeups.  Use
5751         net_windows_socket_check_pending.
5752         (net_windows_wait_handle): Check for pending events with
5753         ioctlsocket, through net_windows_socket_check_pending, instead of
5754         checking the socket's event.
5755
5756 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
5757
5758         * python/python-internal.h (gdb_PyObject_GetAttrString)
5759         (gdb_PyObject_HasAttrString): New inline function definitions.
5760         * py-value.c (get_field_flag): Remove the now unnecessary cast to
5761         char * of the second argument to PyObject_GetAttrString.
5762
5763 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5764
5765         * serial.c (serial_write): Fix index of character to be printed
5766         in call to serial_logchar when serial debug traces are enabled.
5767
5768 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
5769
5770         * gdbtypes (resolve_dynamic_range): Add function description.
5771
5772 2014-06-09  Pedro Alves  <palves@redhat.com>
5773
5774         * linux-nat.c (linux_child_follow_fork): Initialize status with
5775         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
5776         inner block.  Only pass the signal to PTRACE_DETACH if in pass
5777         state.
5778
5779 2014-06-09  Gary Benson  <gbenson@redhat.com>
5780
5781         * common/signals.c (gdb_signal_from_host): Reorder to separate
5782         the always-available ANSI-standard signals from the signals that
5783         require checking.
5784         (do_gdb_signal_to_host): Likewise.
5785         * proc-events.c (signal_table): Likewise.
5786
5787 2014-06-08  Hui Zhu  <hui@codesourcery.com>
5788
5789         * common/linux-ptrace.c (linux_disable_event_reporting): New
5790         function.
5791         * common/linux-ptrace.h (linux_disable_event_reporting): New
5792         declaration.
5793         * linux-nat.c (linux_child_follow_fork): Do a single step before
5794         detach.
5795
5796 2014-06-07  Keith Seitz  <keiths@redhat.com>
5797
5798         Revert:
5799         PR c++/16253
5800         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5801         from symbol_matches_domain in symtab.c. All local callers
5802         of symbol_matches_domain updated.
5803         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5804         search STRUCT_DOMAIN.
5805         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5806         independently.  standard_lookup will do that automatically.
5807         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5808         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5809         (cp_lookup_symbol_in_namespace): Likewise.
5810         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5811         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5812         may return a STRUCT_DOMAIN match.
5813         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5814         * cp-support.c: Include language.h.
5815         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5816         VAR_DOMAIN.
5817         * psymtab.c (match_partial_symbol): Compare the requested
5818         domain with the symbol's domain directly.
5819         (lookup_partial_symbol): Likewise.
5820         * symtab.c (lookup_symbol_in_language): Explain when/why
5821         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5822         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5823         appropriate languages.
5824         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5825         and moved to ada-lang.c
5826         (lookup_block_symbol): Explain that this function only returns
5827         symbol matching the requested DOMAIN.
5828         Compare the requested domain with the symbol's domain directly.
5829         (iterate_over_symbols): Compare the requested domain with the
5830         symbol's domain directly.
5831         * symtab.h (symbol_matches_domain): Remove.
5832
5833 2014-06-06  Doug Evans  <xdje42@gmail.com>
5834
5835         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5836         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5837         (gdbscm_guile_version_is_at_least): Declare.
5838         (gdbscm_scm_string_to_int): Declare.
5839         * guile/guile.c (gdbscm_guile_major_version): New global.
5840         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5841         (guile_datadir): New static global.
5842         (gdbscm_guile_data_directory): New function.
5843         (initialize_scheme_side): Update.
5844         (misc_guile_functions): Add guile-data-directory.
5845         (initialize_gdb_module): Fetch guile version number.
5846         * guile/lib/gdb.scm: Remove call to add-to-load-path.
5847         * guile/lib/gdb/init.scm (%initialize!): Ditto.
5848         * guile/lib/gdb/boot.scm: Use guile-data-directory.
5849         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5850         comments.
5851         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5852         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5853         * guile/scm-value.c (gdbscm_value_to_string): Only call
5854         scm_port_conversion_strategy if Guile version >= 2.0.6.
5855
5856 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
5857
5858         * main.c (print_gdb_help): Add -q and --silent.
5859
5860 2014-06-06  Gary Benson  <gbenson@redhat.com>
5861
5862         * common/signals.c: Remove preprocessor conditionals for
5863         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5864         SIGSEGV and SIGTERM.
5865         * proc-events.c: Likewise.
5866
5867 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
5868
5869         * symfile.c (symfile_free_objfile): Remove restriction to
5870         OBJF_USERLOADED.
5871         * symfile-mem.c (symbol_file_add_from_memory): Call
5872         add_target_sections_of_objfile.
5873
5874 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
5875
5876         * guile/scm-value.c (gdbscm_history_append_x): Use
5877         'vlscm_get_value_smob_arg_unsafe' instead of
5878         'vlscm_scm_to_value'.
5879
5880 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
5881
5882         PR mi/15806
5883         * utils.c (printchar): Don't escape at all if quoter is NUL.
5884         Update function documentation to clarify effect of parameter
5885         QUOTER.
5886         * remote.c (escape_buffer): Pass '\\' as the quoter to
5887         fputstrn_unfiltered.
5888         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5889         generate the output.
5890         (mi_solib_unloaded): Same.
5891
5892 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
5893
5894         * development.sh: Delete.
5895         * Makefile.in (config.status): Adjust dependency on development.sh.
5896         * configure.ac: Adjust development.sh source call.
5897         * configure: Regenerate.
5898
5899 2014-06-04  Doug Evans  <xdje42@gmail.com>
5900
5901         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5902         is_scheme_bkpt, spec.
5903         (bpscm_make_breakpoint_smob): Initialize new members.
5904         (gdbscm_create_breakpoint_x): Split into two ...
5905         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5906         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5907         (scheme_function breakpoint_functions): Update.
5908         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
5909         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
5910         register-breakpoint!.
5911
5912 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
5913
5914         PR server/17023
5915         * mem-break.c (z_type_supported): Return zero if
5916         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5917
5918 2014-06-04  Tom Tromey  <tromey@redhat.com>
5919
5920         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5921         value_from_contents_and_address_unresolved.
5922         (ada_template_to_fixed_record_type_1): Likewise.
5923         (ada_which_variant_applies): Likewise.
5924         * value.h (value_from_contents_and_address_unresolved): Declare.
5925         * value.c (value_from_contents_and_address_unresolved): New
5926         function.
5927         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5928         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5929         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5930
5931 2014-06-04  Tom Tromey  <tromey@redhat.com>
5932
5933         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5934
5935 2014-06-04  Tom Tromey  <tromey@redhat.com>
5936
5937         * procfs.c (procfs_attach): Make "args" const.
5938         * windows-nat.c (windows_attach): Make "args" const.
5939         * nto-procfs.c (procfs_attach): Make "args" const.
5940         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5941         * go32-nat.c (go32_attach): Make "args" const.
5942         * gnu-nat.c (gnu_attach): Make "args" const.
5943         * darwin-nat.c (darwin_attach): Make "args" const.
5944         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5945         * linux-nat.c (linux_nat_attach): Make "args" const.
5946         * remote.c (extended_remote_attach_1, extended_remote_attach):
5947         Make "args" const.
5948         * target.h (struct target_ops) <to_attach>: Make "args" const.
5949         (find_default_attach): Likewise.
5950         * utils.c (parse_pid_to_attach): Make "args" const.
5951         * utils.h (parse_pid_to_attach): Update.
5952
5953 2014-06-04  Tom Tromey  <tromey@redhat.com>
5954
5955         * target-delegates.c: Rebuild.
5956         * target.c (default_thread_address_space): New function.
5957         (target_thread_address_space): Simplify.
5958         * target.h (struct target_ops) <to_thread_address_space>: Add
5959         TARGET_DEFAULT_FUNC.
5960
5961 2014-06-04  Doug Evans  <xdje42@gmail.com>
5962
5963         * guile/scm-type.c (type_smob): Remove duplicate typedef.
5964
5965 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
5966
5967         * record-btrace.c: Include event-loop.h and inf-loop.h.
5968         (record_btrace_resume_exec_dir)
5969         (record_btrace_async_inferior_event_handler)
5970         (record_btrace_handle_async_inferior_event): New.
5971         (record_btrace_open): Create async event handler.
5972         (record_btrace_close): Delete async event handler.
5973         (record_btrace_resume): Set record_btrace_resume_exec_dir,
5974         Mark async event handler.
5975         (record_btrace_execution_direction): New.
5976         (init_record_btrace_ops): Initialize to_execution_direction.
5977
5978 2014-06-03  Doug Evans  <xdje42@gmail.com>
5979
5980         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5981         (gdbscm_make_parameter): Ditto.
5982
5983 2014-06-03  Doug Evans  <dje@google.com>
5984
5985         * exec.c (exec_close_1): Call clear_section_table instead of
5986         resize_section_table.
5987         (clear_section_table): New function.
5988         (resize_section_table): Make static.  Rename arg num_added to
5989         adjustment.
5990         * exec.h (clear_section_table): Declare.
5991         (resize_section_table): Delete.
5992         * progspace.c (release_program_space): Call clear_section_table
5993         instead of resize_section_table.
5994
5995 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
5996
5997         * NEWS (Python Scripting): Add entry about the new xmethods
5998         feature.
5999
6000 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6001
6002         * python/py-xmethods.c: New file.
6003         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6004         (objfpy_dealloc): XDECREF on the new xmethods field.
6005         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6006         field.
6007         (objfpy_get_xmethods): New function.
6008         (objfile_getset): New entry 'xmethods'.
6009         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6010         (pspy_dealloc): XDECREF on the new xmethods field.
6011         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6012         field.
6013         (pspy_get_xmethods): New function.
6014         (pspace_getset): New entry 'xmethods'.
6015         * python/python-internal.h: Add declarations for new functions.
6016         * python/python.c (_initialize_python): Invoke
6017         gdbpy_initialize_xmethods.
6018         * python/lib/gdb/__init__.py (xmethods): New
6019         attribute.
6020         * python/lib/gdb/xmethod.py: New file.
6021         * python/lib/gdb/command/xmethods.py: New file.
6022
6023 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6024
6025         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6026         best match method returned by find_overload_match is an xmethod.
6027         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6028         the best matching operator returned by find_overload_match is an
6029         xmethod.
6030         * valops.c: #include "extension.h".
6031         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6032         Return void.  The list of matching source methods is returned in
6033         "fn_list" and a vector of matching debug method workers is
6034         returned in "xm_worker_vec".  Update all callers.
6035         (value_find_oload_method_list): Likewise.
6036         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6037         non-NULL, then the index of the best matching method in this
6038         vector is returned.  Update all callers.
6039         (find_overload_match): Include xmethods while performing overload
6040         resolution.
6041
6042 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6043
6044         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6045         * extension-priv.h (struct extension_language_ops): Add the
6046         xmethod interface.
6047         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6048         get_matching_xmethod_workers, get_xmethod_argtypes,
6049         invoke_xmethod, free_xmethod_worker,
6050         free_xmethod_worker_vec): New functions.
6051         * extension.h: #include "common/vec.h".
6052         New function declarations.
6053         (struct xmethod_worker): New struct.
6054         (VEC (xmethod_worker_ptr)): New vector type.
6055         (xmethod_worker_ptr): New typedef.
6056         (xmethod_worker_vec): Likewise.
6057         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6058         builtin_type.
6059         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6060         (struct builtin_type): New field "xmethod".
6061         * valarith.c (value_ptradd): Assert that the value argument is not
6062         lval_xcallable.
6063         * valops.c (value_must_coerce_to_target): Return 0 for
6064         lval_xcallable values.
6065         * value.c (struct value): New field XM_WORKER in the field
6066         LOCATION.
6067         (value_address, value_raw_address): Return 0 for lval_xcallable
6068         values.
6069         (set_value_address): Assert that the value is not an
6070         lval_xcallable.
6071         (value_free): Free the associated xmethod worker when freeing
6072         lval_xcallable values.
6073         (set_value_component_location): Assert that the WHOLE value is not
6074         lval_xcallable.
6075         (value_of_xmethod, call_xmethod): New functions.
6076         * value.h: Declare "struct xmethod_worker".
6077         Declare new functions value_of_xmethod, call_xmethod.
6078
6079 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6080             Pedro Alves  <palves@redhat.com>
6081
6082         PR breakpoints/17000
6083         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6084         New function, extracted from software_breakpoint_inserted_here_p.
6085         (software_breakpoint_inserted_here_p): Replace factored out code
6086         by call to find_non_raw_software_breakpoint_inserted_here.
6087         (bp_target_info_copy_insertion_state): New function.
6088         (bkpt_insert_location): Handle the case of a single-step
6089         breakpoint already inserted at the same address.
6090         (bkpt_remove_location): Handle the case of a single-step
6091         breakpoint still inserted at the same address.
6092         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6093         breakpoint already inserted at the same address.
6094         (deprecated_remove_raw_breakpoint): Handle the case of a
6095         non-raw breakpoint still inserted at the same address.
6096         (find_single_step_breakpoint): New function, extracted from
6097         single_step_breakpoint_inserted_here_p.
6098         (find_single_step_breakpoint): New function,
6099         factored out from single_step_breakpoint_inserted_here_p.
6100         (single_step_breakpoint_inserted_here_p): Reimplement.
6101
6102 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6103
6104         Pushed by Joel Brobecker  <brobecker@adacore.com>
6105         * source.c (show_substitute_path_command): Fix display of matching
6106         substitution rules.
6107
6108 2014-06-03  Gary Benson  <gbenson@redhat.com>
6109
6110         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6111
6112 2014-06-02  Doug Evans  <xdje42@gmail.com>
6113
6114         Add parameter support for Guile.
6115         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6116         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6117         (scm-param.o): New rule.
6118         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6119         (gdbscm_misc_error): Declare.
6120         (gdbscm_canonicalize_command_name): Declare.
6121         (gdbscm_scm_to_host_string): Declare.
6122         (gdbscm_scm_from_host_string): Declare.
6123         (gdbscm_initialize_parameters): Declare.
6124         * guile/guile.c (initialize_gdb_module): Call
6125         gdbscm_initialize_parameters.
6126         * guile/lib/gdb.scm: Export parameter symbols.
6127         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6128         cmdscm_canonicalize_name and made public.  All callers updated.
6129         * guile/scm-exception.c (gdbscm_misc_error): New function.
6130         * guile/scm-param.c: New file.
6131         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6132         (gdbscm_scm_to_host_string): New function.
6133         (gdbscm_scm_from_host_string): New function.
6134         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6135
6136 2014-06-02  Doug Evans  <xdje42@gmail.com>
6137
6138         Add command support for Guile.
6139         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6140         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6141         (scm-cmd.o): New rule.
6142         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6143         (gdbscm_user_error_p): Declare.
6144         (gdbscm_parse_command_name): Declare.
6145         (gdbscm_valid_command_class_p): Declare.
6146         (gdbscm_initialize_commands): Declare.
6147         * guile/guile.c (initialize_gdb_module): Call
6148         gdbscm_initialize_commands.
6149         * guile/lib/gdb.scm: Export command symbols.
6150         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6151         (throw-user-error): New function.
6152         * guile/scm-cmd.c: New file.
6153         * guile/scm-exception.c (user_error_symbol): New static global.
6154         (gdbscm_user_error_p): New function.
6155         (gdbscm_initialize_exceptions): Set user_error_symbol.
6156         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6157
6158 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6159
6160         * top.c (command_loop): Handle comments here...
6161         (command_line_input): ... not here.
6162
6163 2014-06-02  Doug Evans  <xdje42@gmail.com>
6164
6165         Add progspace support for Guile.
6166         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6167         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6168         (scm-progspace.o): New rule.
6169         * guile/guile-internal.h (pspace_smob): New typedef.
6170         (psscm_pspace_smob_pretty_printers): Declare.
6171         (psscm_pspace_smob_from_pspace): Declare.
6172         (psscm_scm_from_pspace): Declare.
6173         * guile/guile.c (initialize_gdb_module): Call
6174         gdbscm_initialize_pspaces.
6175         * guile/lib/gdb.scm: Export progspace symbols.
6176         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6177         support.
6178         (append-pretty-printer!): Ditto.
6179         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6180         Implement.
6181         * guile/scm-progspace.c: New file.
6182
6183 2014-06-03  Alan Modra  <amodra@gmail.com>
6184
6185         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6186         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6187
6188 2014-06-02  Doug Evans  <dje@google.com>
6189
6190         Add support for skeletonless type units.
6191         * dwarf2read.c (struct dwarf2_per_objfile): New member
6192         n_allocated_type_units.
6193         (struct dwarf2_per_objfile) <tu_stats>: New member
6194         nr_all_type_units_reallocs.
6195         (create_signatured_type_table_from_index): Initialize
6196         n_allocated_type_units
6197         (create_all_type_units): Ditto.
6198         (add_type_unit): Move up in file.  New arg slot.
6199         All callers updated.  Increase space for all_type_units more
6200         efficiently.
6201         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6202         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6203         (lookup_dwp_signatured_type): Ditto.
6204         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6205         All callers updated.
6206         (build_type_psymtabs_1): Leave type_unit_groups as
6207         NULL if no TUs present.
6208         (print_tu_stats): New function.
6209         (process_skeletonless_type_unit): New function.
6210         (process_dwo_file_for_skeletonless_type_units): New
6211         function.
6212         (process_skeletonless_type_units): New function.
6213         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6214         Call print tu_stats if debugging enabled.
6215
6216 2014-06-02  Pedro Alves  <palves@redhat.com>
6217
6218         * breakpoint.c (build_target_command_list): Don't build a command
6219         list if we have any duplicate location that isn't a dprintf.
6220
6221 2014-06-02  Pedro Alves  <palves@redhat.com>
6222
6223         * breakpoint.c (dprintf_breakpoint_hit): New function.
6224         (initialize_breakpoint_ops): Install it as dprintf's
6225         breakpoint_hit method.
6226
6227 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6228
6229         * source.c (substitute_path_rule_matches): Simplify using
6230         filename_ncmp instead of FILENAME_CMP.
6231
6232 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6233
6234         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6235
6236 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6237
6238         * configure.ac: When Guile is available, check for the
6239         availability of 'scm_new_smob'.
6240         * configure, config.h.in: Regenerate.
6241         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6242         function.
6243
6244 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6245
6246         * frame.c (struct frame_info): Add stop_string field.
6247         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6248         (get_prev_frame_always): Old content moved into
6249         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6250         TRY_CATCH, handle MEMORY_ERROR exceptions.
6251         (frame_stop_reason_string): New function definition.
6252         * frame.h (unwind_stop_reason_to_string): Extend comment to
6253         mention frame_stop_reason_string.
6254         (frame_stop_reason_string): New function declaration.
6255         * stack.c (frame_info): Switch to frame_stop_reason_string.
6256         (backtrace_command_1): Switch to frame_stop_reason_string.
6257         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6258         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6259         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6260
6261 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6262
6263         * frame.c (frame_stop_reason_string): Rename to ...
6264         (unwind_stop_reason_to_string): this.
6265         * frame.h (frame_stop_reason_string): Rename to ...
6266         (unwind_stop_reason_to_string): this.
6267         * stack.c (frame_info): Update call to frame_stop_reason_string.
6268         (backtrace_command_1): Likewise.
6269         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6270         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6271
6272 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6273
6274         * frame.c (remove_prev_frame): New function.
6275         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6276         remove_prev_frame.
6277
6278 2014-05-29  Pedro Alves  <palves@redhat.com>
6279
6280         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6281         and make it const.  When a single-step decays to a continue,
6282         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6283         to step to user_visible_resume_ptid, not what we ask the
6284         target to do.
6285
6286 2014-05-29  Pedro Alves  <palves@redhat.com>
6287
6288         * infrun.c (process_event_stop_test, handle_step_into_function)
6289         (handle_step_into_function_backward): Adjust.
6290         Don't set the even thread's stop_step and call stop_waiting before
6291         calling end_stepping_range.  Instead do that ...
6292         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6293
6294 2014-05-29  Pedro Alves  <palves@redhat.com>
6295
6296         * infrun.c (stop_stepping): Rename to ...
6297         (stop_waiting): ... this.
6298         (proceed): Update comment.
6299         (process_event_stop_test, handle_inferior_event)
6300         (handle_signal_stop, handle_step_into_function)
6301         (handle_step_into_function_backward): Update.
6302
6303 2014-05-29  Pedro Alves  <palves@redhat.com>
6304
6305         * infcall.c (run_inferior_call): Don't check whether the current
6306         thread is running after the proceed call.
6307
6308 2014-05-29  Pedro Alves  <palves@redhat.com>
6309             Tom Tromey  <tromey@redhat.com>
6310
6311         * NEWS: Mention "maint set target-async", "set mi-async", and that
6312         background execution commands are now always available.
6313         * target.h (target_async_permitted): Update comment.
6314         * target.c (target_async_permitted, target_async_permitted_1):
6315         Default to 1.
6316         (set_target_async_command): Rename to ...
6317         (maint_set_target_async_command): ... this.
6318         (show_target_async_command): Rename to ...
6319         (maint_show_target_async_command): ... this.
6320         (_initialize_target): Adjust.
6321         * infcmd.c (prepare_execution_command): Make extern.
6322         * inferior.h (prepare_execution_command): Declare.
6323         * infrun.c (set_observer_mode): Leave target async alone.
6324         * mi/mi-interp.c (mi_interpreter_init): Install
6325         mi_on_sync_execution_done as sync_execution_done observer.
6326         (mi_on_sync_execution_done): New function.
6327         (mi_execute_command_input_handler): Don't print the prompt if we
6328         just started a synchronous command with an async target.
6329         (mi_on_resume): Check sync_execution before printing prompt.
6330         * mi/mi-main.h (mi_async_p): Declare.
6331         * mi/mi-main.c: Include gdbcmd.h.
6332         (mi_async_p): New function.
6333         (mi_async, mi_async_1): New globals.
6334         (set_mi_async_command, show_mi_async_command, mi_async): New
6335         functions.
6336         (exec_continue): Call prepare_execution_command.
6337         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6338         (mi_execute_async_cli_command): Use mi_async_p.
6339         (_initialize_mi_main): Install "set mi-async".  Make
6340         "target-async" a deprecated alias.
6341
6342 2014-05-29  Pedro Alves  <palves@redhat.com>
6343
6344         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6345         (_initialize_cli_interp): Adjust.
6346         * event-loop.c: Include "observer.h".
6347         (start_event_loop): Notify 'command_error' observers instead of
6348         calling display_gdb_prompt.  Remove FIXME comment.
6349         * event-top.c (display_gdb_prompt): Remove call into the
6350         interpreters.
6351         * inf-loop.c: Include "observer.h".
6352         (inferior_event_handler): Notify 'command_error' observers instead
6353         of calling display_gdb_prompt.
6354         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6355         observers instead of calling display_gdb_prompt.
6356         * interps.c (interp_set): Don't call display_gdb_prompt.
6357         (current_interp_display_prompt_p): Delete.
6358         * interps.h (interp_prompt_p): Delete declaration.
6359         (interp_prompt_p_ftype): Delete.
6360         (struct interp_procs) <prompt_proc_p>: Delete field.
6361         (current_interp_display_prompt_p): Delete declaration.
6362         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6363         (_initialize_mi_interp): Adjust.
6364         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6365         'command_error' observers.
6366         (tui_on_sync_execution_done, tui_on_command_error): New
6367         functions.
6368         (tui_display_prompt_p): Delete.
6369         (_initialize_tui_interp): Adjust.
6370
6371 2014-05-29  Pedro Alves  <palves@redhat.com>
6372
6373         PR gdb/13860
6374         * cli/cli-interp.c: Include infrun.h and observer.h.
6375         (cli_uiout, cli_interp): New globals.
6376         (cli_on_signal_received, cli_on_end_stepping_range)
6377         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6378         functions.
6379         (cli_interpreter_init): Install them as 'end_stepping_range',
6380         'signal_received' 'signal_exited', 'exited' and 'no_history'
6381         observers.
6382         (_initialize_cli_interp): Remove cli_interp local.
6383         * infrun.c (handle_inferior_event): Call the several stop reason
6384         observers instead of printing the stop reason directly.
6385         (end_stepping_range): New function.
6386         (print_end_stepping_range_reason, print_signal_exited_reason)
6387         (print_exited_reason, print_signal_received_reason)
6388         (print_no_history_reason): Make static, and add an uiout
6389         parameter.  Print to that instead of to CURRENT_UIOUT.
6390         * infrun.h (print_end_stepping_range_reason)
6391         (print_signal_exited_reason, print_exited_reason)
6392         (print_signal_received_reason print_no_history_reason): New
6393         declarations.
6394         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6395         'mi_uiout'.
6396         <cli_uiout>: New field.
6397         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6398         uiout for CLI output.  Install 'signal_received',
6399         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6400         observers.
6401         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6402         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6403         (mi_on_no_history): New functions.
6404         (ui_out_free_cleanup): Delete function.
6405         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6406         instead use the one already stored in the MI interpreter data.
6407         (mi_ui_out): Adjust.
6408         * tui/tui-interp.c: Include infrun.h and observer.h.
6409         (tui_interp): New global.
6410         (tui_on_signal_received, tui_on_end_stepping_range)
6411         (tui_on_signal_exited, tui_on_exited)
6412         (tui_on_no_history): New functions.
6413         (tui_init): Install them as 'end_stepping_range',
6414         'signal_received' 'signal_exited', 'exited' and 'no_history'
6415         observers.
6416         (_initialize_tui_interp): Delete tui_interp local.
6417
6418 2014-05-29  Pedro Alves  <palves@redhat.com>
6419
6420         PR gdb/15713
6421         * linux-nat.c (linux_nat_resume_callback): Rename the second
6422         parameter to 'except'.  Skip LP if it points to EXCEPT.
6423         (linux_nat_resume): Don't mark the event lwp as not stopped
6424         before resuming sibling lwps.  Instead ask
6425         linux_nat_resume_callback to skip the event lwp.  Mark it as not
6426         stopped after actually resuming it.
6427         (linux_handle_syscall_trap): Mark the lwp as not stopped after
6428         resuming it.
6429         (wait_lwp): Mark the lwp as stopped here.
6430         (stop_wait_callback): Mark the lwp as not stopped right after
6431         resuming it.  Don't mark lwps as stopped here.
6432         (linux_nat_filter_event): Mark the lwp as stopped earlier.
6433         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6434
6435 2014-05-29  Pedro Alves  <palves@redhat.com>
6436
6437         PR PR15693
6438         * infrun.c (resume): Determine how much to resume depending on
6439         whether the caller wanted a step, not whether we can hardware step
6440         the target.  Mark all threads that we intend to run as running,
6441         unless we're calling an inferior function.
6442         (normal_stop): If the thread is running an infcall, don't finish
6443         thread state.
6444         * target.c (target_resume): Don't mark threads as running here.
6445
6446 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
6447
6448         * serial.c (_initialize_serial): Remove support for
6449         the "set remotebaud" and "show remotebaud" commands.
6450         * NEWS: Add entry documenting the removal of that command.
6451
6452 2014-05-28  Yao Qi  <yao@codesourcery.com>
6453
6454         * charset.c: Fix typo in comments.
6455
6456 2014-05-27  Gary Benson  <gbenson@redhat.com>
6457
6458         * utils.c (internal_vproblem): Prompt for a bug report.
6459
6460 2014-05-26  Andy Wingo  <wingo@igalia.com>
6461
6462         * guile/scm-arch.c (arscm_mark_arch_smob):
6463         * guile/scm-block.c (bkscm_mark_block_smob)
6464         (bkscm_mark_block_syms_progress_smob):
6465         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6466         * guile/scm-exception.c (exscm_mark_exception_smob):
6467         * guile/scm-frame.c (frscm_mark_frame_smob):
6468         * guile/scm-iterator.c (itscm_mark_iterator_smob):
6469         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6470         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6471         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6472         (ppscm_mark_pretty_printer_worker_smob):
6473         * guile/scm-symbol.c (syscm_mark_symbol_smob):
6474         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6475         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6476         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6477         mark functions.
6478         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6479         function.
6480
6481 2014-05-26  Andy Wingo  <wingo@igalia.com>
6482             Doug Evans  <xdje42@gmail.com>
6483
6484         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6485         empty_base_class.  All uses updated.
6486         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6487         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6488         Adapt all callers.
6489         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6490         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6491         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6492         (gdbscm_gsmob_has_property_p, add_property_name)
6493         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6494         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6495         (gdb-object-has-property?, gdb-object-properties): Remove.
6496         (gdb-object-kind): Renamed from gsmob-kind.
6497
6498 2014-05-26  Andy Wingo  <wingo@igalia.com>
6499
6500         * configure.ac (try_guile_versions): Allow building with guile 2.2.
6501         * configure: Regenerate.
6502
6503 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6504
6505         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6506
6507 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
6508
6509         * record-btrace.c (record_btrace_allow_memory_access): Remove.
6510         (replay_memory_access_read_only, replay_memory_access_read_write)
6511         (replay_memory_access_types, replay_memory_access)
6512         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6513         (cmd_set_record_btrace, cmd_show_record_btrace)
6514         (cmd_show_replay_memory_access): New.
6515         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6516         (record_btrace_remove_breakpoint): Replace
6517         record_btrace_allow_memory_access with replay_memory_access.
6518         (_initialize_record_btrace): Add commands.
6519         * NEWS: Announce it.
6520
6521 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6522
6523         * aarch64-linux-nat.c (asm/ptrace.h): Include.
6524
6525 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6526
6527         * MAINTAINERS (Write After Approval): Move self back from
6528         paper trail.
6529
6530 2014-05-22  Pedro Alves  <palves@redhat.com>
6531
6532         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6533         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6534         (disable_randomization, enum exec_direction_kind)
6535         (execution_direction, stop_registers, start_remote)
6536         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6537         (wait_for_inferior, normal_stop, get_last_target_status)
6538         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6539         (insert_step_resume_breakpoint_at_sal)
6540         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6541         (set_step_info, print_stop_event, signal_stop_state)
6542         (signal_print_state, signal_pass_state, signal_stop_update)
6543         (signal_print_update, signal_pass_update)
6544         (update_signals_program_target, clear_exit_convenience_vars)
6545         (displaced_step_dump_bytes, update_observer_mode)
6546         (signal_catch_update, gdb_signal_from_command): Move
6547         declarations ...
6548         * infrun.h: ... to this new file.
6549         * amd64-tdep.c: Include infrun.h.
6550         * annotate.c: Include infrun.h.
6551         * arch-utils.c: Include infrun.h.
6552         * arm-linux-tdep.c: Include infrun.h.
6553         * arm-tdep.c: Include infrun.h.
6554         * break-catch-sig.c: Include infrun.h.
6555         * breakpoint.c: Include infrun.h.
6556         * common/agent.c: Include infrun.h instead of inferior.h.
6557         * corelow.c: Include infrun.h.
6558         * event-top.c: Include infrun.h.
6559         * go32-nat.c: Include infrun.h.
6560         * i386-tdep.c: Include infrun.h.
6561         * inf-loop.c: Include infrun.h.
6562         * infcall.c: Include infrun.h.
6563         * infcmd.c: Include infrun.h.
6564         * infrun.c: Include infrun.h.
6565         * linux-fork.c: Include infrun.h.
6566         * linux-nat.c: Include infrun.h.
6567         * linux-thread-db.c: Include infrun.h.
6568         * monitor.c: Include infrun.h.
6569         * nto-tdep.c: Include infrun.h.
6570         * procfs.c: Include infrun.h.
6571         * record-btrace.c: Include infrun.h.
6572         * record-full.c: Include infrun.h.
6573         * remote-m32r-sdi.c: Include infrun.h.
6574         * remote-mips.c: Include infrun.h.
6575         * remote-notif.c: Include infrun.h.
6576         * remote-sim.c: Include infrun.h.
6577         * remote.c: Include infrun.h.
6578         * reverse.c: Include infrun.h.
6579         * rs6000-tdep.c: Include infrun.h.
6580         * s390-linux-tdep.c: Include infrun.h.
6581         * solib-irix.c: Include infrun.h.
6582         * solib-osf.c: Include infrun.h.
6583         * solib-svr4.c: Include infrun.h.
6584         * target.c: Include infrun.h.
6585         * top.c: Include infrun.h.
6586         * windows-nat.c: Include infrun.h.
6587         * mi/mi-interp.c: Include infrun.h.
6588         * mi/mi-main.c: Include infrun.h.
6589         * python/py-threadevent.c: Include infrun.h.
6590
6591 2014-05-22  Pedro Alves  <palves@redhat.com>
6592
6593         * infrun.c (handle_inferior_event): Store the exit code for
6594         --return-child-result here, instead of ...
6595         (print_exited_reason): ... here.
6596
6597 2014-05-21  Pedro Alves  <palves@redhat.com>
6598
6599         PR gdb/13860
6600         * gdbthread.h (struct thread_control_state): New field
6601         `command_interp'.
6602         * infrun.c (follow_fork): Copy the new thread control field to the
6603         child fork thread.
6604         (clear_proceed_status_thread): Clear the new thread control field.
6605         (proceed): Set the new thread control field.
6606         * interps.h (command_interp): Declare.
6607         * interps.c (command_interpreter): New global.
6608         (command_interp): New function.
6609         (interp_exec): Set `command_interpreter' while here.
6610         * cli-out.c (cli_uiout_dtor): New function.
6611         (cli_ui_out_impl): Install it.
6612         * mi/mi-interp.c: Include cli-out.h.
6613         (mi_cmd_interpreter_exec): Add comment.
6614         (restore_current_uiout_cleanup): New function.
6615         (ui_out_free_cleanup): New function.
6616         (mi_on_normal_stop): If finishing an execution command started by
6617         a CLI command, or any kind of breakpoint-like event triggered,
6618         print the stop event to the output (CLI) stream.
6619         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6620
6621 2014-05-21  Pedro Alves  <palves@redhat.com>
6622
6623         * cli/cli-cmds.c (list_command): Handle the first "list" after the
6624         current source line having changed.
6625         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6626         * infrun.c (normal_stop): Adjust call to
6627         set_current_sal_from_frame.
6628         * source.c (clear_lines_listed_range): New function.
6629         (set_current_source_symtab_and_line, identify_source_line): Clear
6630         the lines listed range.
6631         (line_info): Handle the first "info line" after the current source
6632         line having changed.
6633         * stack.c (print_stack_frame): Remove center handling.
6634         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
6635         center sal.line.
6636
6637 2014-05-21  Pedro Alves  <palves@redhat.com>
6638
6639         * inf-child.c (inf_child_mourn_inferior): New function.
6640         * inf-child.h (inf_child_mourn_inferior): New declaration.
6641         * darwin-nat.c (darwin_mourn_inferior): Use
6642         inf_child_mourn_inferior.
6643         * gnu-nat.c (gnu_mourn_inferior): Likewise.
6644         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6645         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6646         * nto-procfs.c (procfs_mourn_inferior): Likewise.
6647         * windows-nat.c (windows_mourn_inferior): Likewise.
6648
6649 2014-05-21  Doug Evans  <xdje42@gmail.com>
6650
6651         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6652
6653 2014-05-21  Doug Evans  <xdje42@gmail.com>
6654
6655         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6656         (gdbscm_out_of_range_error): Ditto.
6657         (gdbscm_memory_error): Ditto.
6658         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6659         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6660         (gdbscm_out_of_range_error): Update.
6661         (gdbscm_memory_error): Update.
6662         (gdbscm_scm_to_target_string_unsafe): Delete.
6663
6664 2014-05-21  Pedro Alves  <palves@redhat.com>
6665
6666         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6667         globals.
6668         (inf_child_open_target): New function.
6669         (inf_child_open): Use inf_child_open_target to push the target
6670         instead of erroring out.
6671         (inf_child_disconnect, inf_child_close)
6672         (inf_child_maybe_unpush_target): New functions.
6673         (inf_child_target): Install inf_child_disconnect and
6674         inf_child_close.  Store a pointer to the returned object.
6675         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6676         declarations.
6677         * target.c (auto_connect_native_target): New global.
6678         (show_default_run_target): New function.
6679         (find_default_run_target): Return NULL if automatically connecting
6680         to the native target is disabled.
6681         (_initialize_target): Install set/show auto-connect-native-target.
6682         * NEWS: Mention "set auto-connect-native-target", and "target
6683         native".
6684         * linux-nat.c (super_close): New global.
6685         (linux_nat_close): Call super_close.
6686         (linux_nat_add_target): Store a pointer to the base class's
6687         to_close method.
6688         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6689         inf_child_maybe_unpush.
6690         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6691         already pushed.
6692         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6693         the inferior.  Use inf_child_maybe_unpush_target.
6694         (inf_ttrace_attach): Don't push the target if it is already
6695         pushed.
6696         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6697         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6698         after mourning the inferior.  Use inf_child_maybe_unpush_target.
6699         (darwin_attach_pid): Don't push the target if it is already
6700         pushed.
6701         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6702         mourning the inferior.  Use inf_child_maybe_unpush_target.
6703         (gnu_detach): Use inf_child_maybe_unpush_target.
6704         * go32-nat.c (go32_create_inferior): Don't push the target if it
6705         is already pushed.
6706         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6707         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6708         (procfs_open): Rename to ...
6709         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
6710         comments.  Can target_preopen before changing node.  Call
6711         inf_child_open_target to push the target explicitly.
6712         (procfs_attach): Don't push the target if it is already pushed.
6713         (procfs_detach): Use inf_child_maybe_unpush_target.
6714         (procfs_create_inferior): Don't push the target if it is already
6715         pushed.
6716         (nto_native_ops): New global.
6717         (procfs_open): Reimplement.
6718         (procfs_native_open): New function.
6719         (init_procfs_targets): Install procfs_native_open as to_open of
6720         "target native".  Store a pointer to the "native" target in
6721         nto_native_ops.
6722         * procfs.c (procfs_attach): Don't push the target if it is already
6723         pushed.
6724         (procfs_detach): Use inf_child_maybe_unpush_target.
6725         (procfs_mourn_inferior): Only unpush the target after mourning the
6726         inferior.  Use inf_child_maybe_unpush_target.
6727         (procfs_init_inferior): Don't push the target if it is already
6728         pushed.
6729         * windows-nat.c (do_initial_windows_stuff): Don't push the target
6730         if it is already pushed.
6731
6732 2014-05-21  Pedro Alves  <palves@redhat.com>
6733
6734         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6735         and "procfs" targets are now called "native" instead.
6736
6737 2014-05-21  Pedro Alves  <palves@redhat.com>
6738
6739         * go32-nat.c (go32_open): Delete.
6740         (go32_target): Don't override the to_open method.
6741
6742 2014-05-21  Pedro Alves  <palves@redhat.com>
6743
6744         * nto-procfs.c (procfs_can_run): New function.
6745         (nto_procfs_ops): New global.
6746         (init_procfs_targets): New, based on procfs_target.  Install
6747         "target native" in addition to "target procfs".
6748         (_initialize_procfs): Call init_procfs_targets instead of adding
6749         the target here.
6750
6751 2014-05-21  Pedro Alves  <palves@redhat.com>
6752
6753         * windows-nat.c (windows_target): Don't override to_shortname,
6754         to_longname or to_doc.
6755
6756 2014-05-21  Pedro Alves  <palves@redhat.com>
6757
6758         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6759         to_doc.
6760
6761 2014-05-21  Pedro Alves  <palves@redhat.com>
6762
6763         * darwin-nat.c (_initialize_darwin_inferior): Don't override
6764         to_shortname, to_longname or to_doc.
6765
6766 2014-05-21  Pedro Alves  <palves@redhat.com>
6767
6768         * go32-nat.c (go32_target): Don't override to_shortname,
6769         to_longname or to_doc.
6770
6771 2014-05-21  Pedro Alves  <palves@redhat.com>
6772
6773         * inf-child.c (inf_child_open): Remove mention of "child".
6774         (inf_child_target): Rename target to "native" instead of "child".
6775
6776 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6777
6778         * Makefile.in (SFILES): Delete "regset.c".
6779         (COMMON_OBS): Delete "regset.o".
6780         * regset.c: Remove.
6781         * regset.h (regset_alloc): Delete prototype.
6782
6783 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6784
6785         * sparc-linux-tdep.c (sparc32_linux_gregset)
6786         (sparc32_linux_fpregset): New static regset structures.
6787         (sparc32_linux_init_abi): Drop dynamic regset allocations.
6788         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6789         'fpregset' fields.
6790         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6791         (sparc64_linux_fpregset): New static regset structures.
6792         (sparc64_linux_init_abi): Drop dynamic regset allocations.
6793         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6794         New static regset structures.
6795         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6796         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6797         New static regset structures.
6798         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6799         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6800         New static regset structures.
6801         (sparc64obsd_init_abi): Drop dynamic regset allocations.
6802         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6803         New static regset structures.
6804         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6805
6806 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6807
6808         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6809         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6810         register maps ("regmaps") from "*regset" to "*regmap".  Do this
6811         for all regmap types and variables.
6812         * sparc-linux-tdep.c (sparc32_linux_step_trap)
6813         (sparc32_linux_supply_core_gregset)
6814         (sparc32_linux_collect_core_gregset)
6815         (sparc32_linux_supply_core_fpregset)
6816         (sparc32_linux_collect_core_fpregset): Likewise.
6817         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6818         (sparc_gregmap, sparc_fpregmap): ... these.
6819         (sparc_supply_gregset, sparc_collect_gregset)
6820         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6821         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6822         (_initialize_sparc_nat): Rename regmaps.
6823         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6824         (sparc_gregmap, sparc_fpregmap): ... these.
6825         (sparc_supply_gregset, sparc_collect_gregset)
6826         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6827         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6828         Rename macros to...
6829         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6830         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6831         Likewise.
6832         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6833         Rename to...
6834         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6835         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6836         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6837         regmaps.
6838         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6839         (sparc32_bsd_fpregset): Rename to...
6840         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6841         (sparc32_bsd_fpregmap): ... these.
6842         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6843         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6844         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6845         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6846         (struct sparc_gregmap, struct sparc_fpregmap)
6847         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6848         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6849         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6850         (sparc32_supply_regset, sparc32_collect_gregset)
6851         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6852         prototypes.
6853         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6854         (sparc64_linux_ptrace_gregmap): ... this.
6855         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6856         (_initialize_sparc64_linux_nat): Rename regmaps.
6857         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6858         (sparc64_linux_core_gregmap): ... this.
6859         (sparc64_linux_supply_core_gregset)
6860         (sparc64_linux_collect_core_gregset)
6861         (sparc64_linux_supply_core_fpregset)
6862         (sparc64_linux_collect_core_fpregset): Rename regmaps.
6863         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6864         (sparc64_sol2_fpregset): Rename to...
6865         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6866         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6867         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6868         regmaps.
6869         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6870         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6871         (sparc64_bsd_fpregset): Rename to...
6872         (struct sparc_gregmap, sparc64_sol2_gregmap)
6873         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6874         (sparc64_bsd_fpregmap): ... these.
6875         (sparc64_supply_gregset, sparc64_collect_gregset)
6876         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6877         prototypes.
6878         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6879         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6880         (sparc64fbsd_gregmap): ... this.
6881         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6882         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6883         Rename regmaps.
6884         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6885         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6886         (sparc64nbsd_collect_fpregset): Likewise.
6887         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6888         (sparc64nbsd_gregmap): ... this.
6889         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6890         regmaps.
6891         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6892         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6893         (sparc64obsd_gregmap): ... this.
6894         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6895         regmaps.
6896         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6897         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6898         (sparc32nbsd_gregmap): ... this.
6899         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6900         regmaps.
6901
6902 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6903
6904         * score-tdep.c (score7_linux_gregset): New static regset
6905         structure.
6906         (score7_linux_regset_from_core_section): Remove dynamic regset
6907         allocation.
6908         (score_gdbarch_init): Drop allocation of tdep structure.
6909         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6910
6911 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6912
6913         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6914         regset structures.
6915         (am33_regset_from_core_section): Remove dynamic regset
6916         allocations.
6917
6918 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6919
6920         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6921         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6922         structures.
6923         (mips_linux_regset_from_core_section): Remove dynamic regset
6924         allocations.
6925         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6926         'gregset64', 'fpregset', and 'fpregset64'.
6927         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6928         deleted tdep fields.
6929
6930 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6931
6932         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6933         regset structures.
6934         (amd64_regset_from_core_section): Remove dynamic regset
6935         allocations.
6936         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6937         structure.
6938         (amd64obsd_regset_from_core_section): Remove dynamic regset
6939         allocation.
6940         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6941         Likewise.
6942         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6943         x86-common regset supply function.
6944         * i386-tdep.c (i386_collect_gregset): Make static.
6945         (i386_gregset): New global regset structure.
6946         (i386_fpregset, i386_xstateregset): New static regset structures.
6947         (i386_regset_from_core_section): Remove dynamic regset
6948         allocations.
6949         (i386_gdbarch_init): Remove initialization of tdep fields
6950         'gregset', 'fpregset', and 'xstateregset'.
6951         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6952         'fpregset', and 'xstateregset'.
6953         (i386_collect_gregset): Remove prototype.
6954         (i386_gregset): New declaration.
6955         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6956         structure.
6957         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6958         allocation.
6959
6960 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6961
6962         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6963         (arm_linux_vfpregset): New static regset structures.
6964         (arm_linux_regset_from_core_section): Remove dynamic allocation of
6965         regset structures.
6966         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6967         and 'vfpregset' fields.
6968
6969 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6970
6971         * aarch64-linux-tdep.c (aarch64_linux_gregset)
6972         (aarch64_linux_fpregset): New static regset structures.
6973         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6974         of regset structures.
6975         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6976         'fpregset' fields.
6977
6978 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6979
6980         * regset.h (struct regset): Remove gdbarch field.
6981         * regset.c (regset_alloc): Drop initialization of gdbarch field.
6982         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6983         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6984         Likewise.
6985         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6986         (ppc32_linux_fpregset, ppc32_linux_vrregset)
6987         (ppc32_linux_vsxregset): Likewise.
6988         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6989         via the regcache instead of the regset.
6990         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6991         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6992         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6993         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6994         Likewise.
6995
6996 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6997
6998         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6999         Constify structures.
7000         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7001         (alphanbsd_aout_gregset): Likewise.
7002         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7003         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7004         Likewise.
7005         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7006         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7007         Likewise.
7008         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7009         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7010         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7011         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7012         * m88k-tdep.c (m88k_gregset): Likewise.
7013         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7014         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7015         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7016         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7017         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7018         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7019         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7020         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7021         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7022         Likewise.
7023         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7024         * sh-tdep.h (sh_corefile_gregset): Likewise.
7025         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7026         * vax-tdep.c (vax_gregset): Likewise.
7027
7028 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7029
7030         Fix TLS access for -static -pthread.
7031         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7032         (try_thread_db_load_1): Initialize it.
7033         (thread_db_get_thread_local_address): Call it if LM is zero.
7034         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7035         * target.h (struct target_ops) (to_get_thread_local_address): Add
7036         load_module_addr comment.
7037
7038 2014-05-21  Pedro Alves  <palves@redhat.com>
7039
7040         * dcache.c (dcache_read_memory_partial): If reading the cache line
7041         fails, fallback to reading just the memory the caller wanted.
7042
7043 2014-05-20  Doug Evans  <dje@google.com>
7044
7045         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7046         instead of get_current_arch.
7047
7048 2014-05-20  Pedro Alves  <palves@redhat.com>
7049
7050         * NEWS: Mention that compare-sections now works with all targets.
7051
7052         * remote.c (PACKET_qCRC): New enum value.
7053         (remote_verify_memory): Don't send qCRC if the target has no
7054         execution.  Use packet_support/packet_ok.  If the target doesn't
7055         support the qCRC packet, fallback to a deep memory copy.
7056         (compare_sections_command): Say "target image" instead of "remote
7057         executable".
7058         (_initialize_remote): Add PACKET_qCRC to the list of config
7059         packets that have no associated command.  Extend comment.
7060         * target.c (simple_verify_memory, default_verify_memory): New
7061         function.
7062         * target.h (struct target_ops) <to_verify_memory>: Default to
7063         default_verify_memory.
7064         (simple_verify_memory): New declaration.
7065         * target-delegates.c: Regenerate.
7066
7067 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7068
7069         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7070
7071 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7072             Yao Qi  <yao@codesourcery.com>
7073
7074         PR backtrace/16558
7075         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7076         and change address of sp and pc.
7077
7078 2014-05-19  Tom Tromey  <tromey@redhat.com>
7079
7080         * gdbtypes.c (rank_function): Use XNEWVEC.
7081         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7082
7083 2014-05-19  Doug Evans  <dje@google.com>
7084
7085         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7086         build_type_unit_groups and moved closer to only caller.  Remove
7087         arguments.  All references updated.  Remove outdated .gdb_index
7088         comment.
7089         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7090         build_type_psymtabs_1.
7091
7092 2014-05-19  Doug Evans  <dje@google.com>
7093
7094         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7095         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7096         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7097         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7098         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7099         (add_type_unit_group_to_table): Delete.
7100
7101 2014-05-19  Doug Evans  <dje@google.com>
7102
7103         * eval.c (evaluate_subexp_standard): Add some comments.
7104
7105 2014-05-17  Doug Evans  <xdje42@gmail.com>
7106
7107         * progspace.c (remove_program_space): Delete, unused.
7108         * progspace.h (remove_program_space): Ditto.
7109
7110 2014-05-17  Doug Evans  <xdje42@gmail.com>
7111
7112         * inferior.c (prune_inferiors): Fix comment.
7113         (remove_inferior_command): Call prune_program_spaces.
7114
7115 2014-05-16  Doug Evans  <dje@google.com>
7116
7117         New command line option -D.
7118         * NEWS: Mention it.
7119         * main.c (set_gdb_data_directory): New function.
7120         (captured_main): Recognize -D.  Flag error for --data-directory "".
7121         Call set_gdb_data_directory.
7122         (print_gdb_help): Print --data-directory, -D.
7123         * main.h (set_gdb_data_directory): Declare.
7124         * top.c (staged_gdb_datadir): New static global.
7125         (set_gdb_datadir): Call set_gdb_data_directory
7126         (show_gdb_datadir): New function.
7127         (init_main): Update init of data-directory parameter.
7128
7129 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7130
7131         Import the "dirfd" gnulib module.
7132         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7133         * gnulib/aclocal.m4: Update.
7134         * gnulib/config.in: Update.
7135         * gnulib/configure: Update.
7136         * gnulib/import/Makefile.am: Update.
7137         * gnulib/import/Makefile.in: Update.
7138         * gnulib/import/dirfd.c: New.
7139         * gnulib/import/m4/dirfd.m4: New.
7140         * gnulib/import/m4/gnulib-cache.m4: Update.
7141         * gnulib/import/m4/gnulib-comp.m4: Update.
7142
7143 2014-05-16  Pierre Muller  <muller@sourceware.org>
7144             Yao Qi  <yao@codesourcery.com>
7145
7146         * valprint.c (print_wchar): Move the code on checking whether
7147         W is a printable wide char to the default branch of switch
7148         statement below.  Call wchar_printable instead of gdb_iswprint.
7149
7150 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7151
7152         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7153         ldr.w and ldrd instructions.
7154
7155 2014-05-15  Doug Evans  <dje@google.com>
7156
7157         * dwarf2read.c (read_structure_type): Delete outdated comments.
7158
7159 2014-05-14  Tom Tromey  <tromey@redhat.com>
7160
7161         * macrocmd.c (print_macro_definition): Reindent.
7162
7163 2014-05-13  Doug Evans  <xdje42@gmail.com>
7164
7165         * python/py-cmd.c (cmdpy_completer): Add comment.
7166         (completers): Make const.
7167
7168 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7169
7170         * infrun.c (resume): Remove should_resume (unused).  Move up
7171         declaration of resume_ptid.
7172
7173 2014-05-13  Tom Tromey  <tromey@redhat.com>
7174
7175         * language.h (unop_type_check): Remove.
7176         (binop_type_check): Don't declare.
7177
7178 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7179
7180         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7181         call to regcache_raw_collect.
7182
7183 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7184
7185         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7186         mi_console->quote as the quoting character.
7187
7188 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7189
7190         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7191
7192 2014-04-29  Tom Tromey  <tromey@redhat.com>
7193
7194         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7195         "show debug varobj".
7196
7197 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7198
7199         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7200         * aarch64-tdep.c (aarch64_software_single_step): New function.
7201         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7202         with aarch64_software_single_step.
7203
7204 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7205
7206         GDB 7.7.1 released.
7207
7208 2014-05-05  Keith Seitz  <keiths@redhat.com>
7209
7210         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7211         variable or history value is successfully parsed.
7212
7213 2014-05-05  Yao Qi  <yao@codesourcery.com>
7214             Pedro Alves  <palves@redhat.com>
7215
7216         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7217         address of blocks that intersects the requested range.  Trim
7218         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7219         sections.
7220         * ctf.c (ctf_xfer_partial): Likewise.
7221
7222 2014-05-05  Yao Qi  <yao@codesourcery.com>
7223
7224         * printcmd.c (display_command): Remove the check to
7225         target_has_execution.
7226
7227 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7228
7229         * ppcobsd-nat.c: Include "obsd-nat.h".
7230         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7231         add_target.
7232         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7233
7234 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7235
7236         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7237         and 16-bit signed and unsigned arguments.  Update comment.
7238         (stap_parse_probe_arguments): Extend code to handle such
7239         arguments.  Use warning instead of complaint to notify about
7240         unrecognized bitness.
7241
7242 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7243
7244         PR breakpoints/16889
7245         * stap-probe.c (stap_parse_probe_arguments): Simplify
7246         check for non-prefixed probes (i.e., probes whose
7247         arguments do not start with "N@").  Always set the
7248         argument type to a sane value.
7249
7250 2014-05-01  David Taylor  <dtaylor@emc.com>
7251
7252         * remote.c (compare_sections_command): Add -r option to compare
7253         all loadable read-only sections.
7254
7255 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7256
7257         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7258         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7259         Update all callers.
7260         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7261         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7262         Remove unused CORE_ADDR argument.  Update all callers.
7263
7264 2014-04-29  Pedro Alves  <palves@redhat.com>
7265
7266         * remote.c (struct packet_config) <detect>: Extend comment.
7267         (add_packet_config_cmd): Don't set the config's detect or support
7268         fields here.
7269         (init_all_packet_configs): Also initialize the config's 'detect'
7270         field.
7271         (reset_all_packet_configs_support): New function.
7272         (remote_open_1): Call reset_all_packet_configs_support instead of
7273         init_all_packet_configs.
7274         (_initialize_remote): Initialize all packet configs.  Assert that
7275         all packets have an associated command, except a few known
7276         outliers.
7277
7278 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7279
7280         * dwarf2read.c (read_subrange_type): Handle dynamic
7281         DW_AT_lower_bound attributes.
7282
7283 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7284
7285         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7286         dynamic bounds before computing its upper bound.
7287         (ada_discrete_type_low_bound): Same as above with the lower bound.
7288
7289 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7290
7291         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7292         range types.  Adjust the array handling implementation to
7293         take advantage of this change.
7294         (resolve_dynamic_range): New function, mostly extracted from
7295         resolve_dynamic_bounds.
7296         (resolve_dynamic_array): New function, mostly extracted from
7297         resolve_dynamic_bounds.
7298         (resolve_dynamic_bounds): Delete.
7299         (resolve_dynamic_type): Reimplement.  Add handling of
7300         TYPE_CODE_RANGE types.
7301
7302 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7303
7304         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7305         handling of parallel ___XA types.
7306
7307 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7308
7309         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7310         unnecessary second call to static_unwrap_type.
7311
7312 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7313
7314         * stack.c (print_frame_info): Call do_gdb_disassembly with
7315         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7316
7317 2014-04-26  Doug Evans  <xdje42@gmail.com>
7318
7319         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7320
7321 2014-04-25  Pedro Alves  <palves@redhat.com>
7322
7323         PR server/16255
7324         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7325         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7326         and newline from built string.
7327         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7328         (linux_ptrace_attach_fail_reason): ... this.
7329         * linux-nat.c (linux_nat_attach): Adjust to use
7330         linux_ptrace_attach_fail_reason.
7331
7332 2014-04-25  Pedro Alves  <palves@redhat.com>
7333
7334         * remote.c (struct remote_state): Remove multi_process_aware,
7335         non_stop_aware, cond_tracepoints, cond_breakpoints,
7336         breakpoint_commands, fast_tracepoints, static_tracepoints,
7337         install_in_trace, disconnected_tracing,
7338         enable_disable_tracepoints, string_tracing, and
7339         augmented_libraries_svr4_read fields.
7340         (remote_multi_process_p): Move further below in the file.
7341         (struct packet_config): Add comments.
7342         (update_packet_config): Delete function.
7343         (show_packet_config_cmd): Use packet_config_support.
7344         (add_packet_config_cmd): Use NULL as set callback.
7345         (packet_ok): "set remote foo-packet"-style commands no longer
7346         change config->supported -- adjust.
7347         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7348         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7349         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7350         (PACKET_QNonStop, PACKET_multiprocess_feature)
7351         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7352         (PACKET_DisconnectedTracing_feature)
7353         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7354         (set_remote_protocol_packet_cmd): Delete function.
7355         (packet_config_support, packet_support): New functions.
7356         (set_remote_protocol_Z_packet_cmd): Don't call
7357         update_packet_config.
7358         (remote_query_attached, remote_pass_signals)
7359         (remote_program_signals, remote_threads_info)
7360         (remote_threads_extra_info, remote_start_remote): Use
7361         packet_support.
7362         (remote_start_remote): Use packet_config_support and
7363         packet_support.
7364         (init_all_packet_configs): Set all packets to unknown support,
7365         instead of calling update_packet_config.
7366         (remote_check_symbols): Use packet_support.
7367         (remote_supported_packet): Unconditionally set the packet config's
7368         support status.
7369         (remote_multi_process_feature, remote_non_stop_feature)
7370         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7371         (remote_breakpoint_commands_feature)
7372         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7373         (remote_install_in_trace_feature)
7374         (remote_disconnected_tracing_feature)
7375         (remote_enable_disable_tracepoint_feature)
7376         (remote_string_tracing_feature)
7377         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7378         (remote_protocol_features): Adjust to use remote_supported_packet
7379         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7380         "ConditionalTracepoints", "ConditionalBreakpoints",
7381         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7382         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7383         "EnableDisableTracepoints", and "tracenz".
7384         (remote_query_supported): Use packet_support.
7385         (remote_open_1): Adjust.
7386         (extended_remote_attach_1): Use packet_support.  Switch on the
7387         result of packet_ok instead of checking whether the packet ended
7388         up disabled.
7389         (remote_vcont_resume): Use packet_support.
7390         (remote_resume, remote_stop_ns, fetch_register_using_p)
7391         (remote_prepare_to_store, store_register_using_P)
7392         (check_binary_download, remote_write_bytes): Use packet_support.
7393         (remote_vkill): Use packet_support.  Switch on the result of
7394         packet_ok instead of checking whether the packet ended up
7395         disabled.
7396         (extended_remote_supports_disable_randomization): Use
7397         packet_support.
7398         (extended_remote_run): Switch on the result of packet_ok instead
7399         of checking whether the packet ended up disabled.
7400         (remote_insert_breakpoint, remote_remove_breakpoint)
7401         (remote_insert_watchpoint, remote_remove_watchpoint)
7402         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7403         packet_support.
7404         (remote_search_memory): Use packet_config_support.
7405         (remote_get_thread_local_address, remote_get_tib_address)
7406         (remote_hostio_send_command, remote_can_execute_reverse): Use
7407         packet_support.
7408         (remote_supports_cond_tracepoints)
7409         (remote_supports_cond_breakpoints)
7410         (remote_supports_fast_tracepoints)
7411         (remote_supports_static_tracepoints)
7412         (remote_supports_install_in_trace)
7413         (remote_supports_enable_disable_tracepoint)
7414         (remote_supports_string_tracing)
7415         (remote_can_run_breakpoint_commands): Rewrite, checking whether
7416         the packet config says the feature is enabled or disabled.
7417         (remote_download_tracepoint, remote_trace_set_readonly_regions)
7418         (remote_get_trace_status): Use packet_support.
7419         (remote_set_disconnected_tracing): Adjust to check whether the
7420         feature is enabled with packet_support.
7421         (remote_set_trace_buffer_size, remote_use_agent)
7422         (remote_can_use_agent, remote_supports_btrace): Use
7423         packet_support.
7424         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7425         Use packet_config_support.
7426         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7427         the packet config says the feature is enabled or disabled.
7428         (set_range_stepping): Use packet_support.
7429
7430 2014-04-25  Tom Tromey  <tromey@redhat.com>
7431
7432         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7433         argument.
7434
7435 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
7436
7437         * NEWS: Mention support for C99 variable length arrays.
7438
7439 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
7440
7441         * ada-lang.c (standard_exc): Expand introductory comment.
7442
7443 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
7444             Walfred Tedeschi  <walfred.tedeschi@intel.com>
7445
7446         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7447         AVX512 registers.
7448         (amd64_linux_read_description): Add code to handle AVX512 xstate
7449         mask and return respective tdesc.
7450         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7451         and features/i386/x32-avx512-linux.c.
7452         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7453         (amd64_linux_core_read_description): Add code to handle AVX512
7454         xstate mask and return respective tdesc.
7455         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7456         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7457         calculation.
7458         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7459         (tdesc_amd64_avx512_linux): New prototype.
7460         (tdesc_x32_avx512_linux): Likewise.
7461         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7462         features/i386/x32-avx512.c.
7463         (amd64_ymm_avx512_names): New register names for pseudo
7464         registers YMM16-31.
7465         (amd64_ymmh_avx512_names): New register names for raw registers
7466         YMMH16-31.
7467         (amd64_k_names): New register names for K registers.
7468         (amd64_zmmh_names): New register names for ZMM raw registers.
7469         (amd64_zmm_names): New registers names for ZMM pseudo registers.
7470         (amd64_xmm_avx512_names): New register names for XMM16-31
7471         registers.
7472         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7473         registers.
7474         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7475         if feature is present.
7476         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7477         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7478         (AMD64_NUM_REGS): Adjust to new number of registers.
7479         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7480         registers supplied via XSTATE by AVX512 registers.
7481         (i386_linux_read_description): Add case for AVX512.
7482         * i386-linux-tdep.c: Include i386-avx512-linux.c.
7483         (i386_linux_gregset_reg_offset): Add AVX512 registers.
7484         (i386_linux_core_read_description): Add case for AVX512.
7485         (i386_linux_init_abi): Install supported register note section
7486         for AVX512.
7487         (_initialize_i386_linux_tdep): Add call to tdesc init function for
7488         AVX512.
7489         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7490         registers to be number of zmm7h + 1.
7491         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7492         * i386-tdep.c: Include features/i386/i386-avx512.c.
7493         (i386_zmm_names): Add ZMM pseudo register names array.
7494         (i386_zmmh_names): Add ZMM raw register names array.
7495         (i386_k_names): Add K raw register names array.
7496         (num_lower_zmm_regs): Add constant for the number of lower ZMM
7497         registers. AVX512 has 16 more ZMM registers than there are YMM
7498         registers.
7499         (i386_zmmh_regnum_p): Add function to look up register number of
7500         ZMM raw registers.
7501         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7502         (i386_k_regnum_p): Likewise for K raw registers.
7503         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7504         registers added by AVX512.
7505         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7506         registers added by AVX512.
7507         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7508         added by AVX512.
7509         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7510         (i386_pseudo_register_name): Add ZMM pseudo registers.
7511         (i386_zmm_type): Construct and return vector registers type for ZMM
7512         registers.
7513         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7514         ZMM0-31 pseudo registers and K registers.
7515         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7516         and YMM16-31 registers from register cache.
7517         (i386_pseudo_register_write): Add code to write  K, ZMM and
7518         YMM16-31 registers.
7519         (i386_register_reggroup_p): Add code to include/exclude AVX512
7520         registers in/from respective register groups.
7521         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7522         registers if feature is present in xcr0.
7523         (i386_gdbarch_init): Add code to initialize AVX512 feature
7524         variables in tdep structure, wire in pseudo registers and call
7525         initialize_tdesc_i386_avx512.
7526         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7527         variables.
7528         (i386_regnum): Add AVX512 registers.
7529         (I386_SSE_NUM_REGS): New define for number of SSE registers.
7530         (I386_AVX_NUM_REGS): Likewise for AVX registers.
7531         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7532         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7533         512 bits wide.
7534         (i386_xmm_avx512_regnum_p): New prototype for register look up.
7535         (i386_ymm_avx512_regnum_p): Likewise.
7536         (i386_k_regnum_p): Likewise.
7537         (i386_zmm_regnum_p): Likewise.
7538         (i386_zmmh_regnum_p): Likewise.
7539         * i387-tdep.c : Update year in copyright notice.
7540         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7541         XSAVE buffer.
7542         (XSAVE_YMM_AVX512_ADDR): New macro.
7543         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7544         XSAVE buffer.
7545         (XSAVE_XMM_AVX512_ADDR): New macro.
7546         (xsave_avx512_k_offset): New table for K register offsets in
7547         XSAVE buffer.
7548         (XSAVE_AVX512_K_ADDR): New macro.
7549         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7550         in XSAVE buffer.
7551         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7552         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7553         buffer.
7554         (i387_collect_xsave): Add code to collect AVX512 registers from
7555         XSAVE buffer.
7556         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7557         of XMM16-31 registers.
7558         (I387_NUM_K_REGS): New define for number of K registers.
7559         (I387_K0_REGNUM): New define for K0 register number.
7560         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7561         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7562         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7563         registers.
7564         (I387_YMM16H_REGNUM): New define for YMM16H register number.
7565         (I387_XMM16_REGNUM): New define for XMM16 register number.
7566         (I387_YMM0_REGNUM): New define for YMM0 register number.
7567         (I387_KEND_REGNUM): New define for last K register number.
7568         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7569         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7570         number.
7571         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7572         number.
7573         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7574         size.
7575         * features/Makefile: Add AVX512 related files.
7576         * features/i386/32bit-avx512.xml: New file.
7577         * features/i386/64bit-avx512.xml: Likewise.
7578         * features/i386/amd64-avx512-linux.c: Likewise.
7579         * features/i386/amd64-avx512-linux.xml: Likewise.
7580         * features/i386/amd64-avx512.c: Likewise.
7581         * features/i386/amd64-avx512.xml: Likewise.
7582         * features/i386/i386-avx512-linux.c: Likewise.
7583         * features/i386/i386-avx512-linux.xml: Likewise.
7584         * features/i386/i386-avx512.c: Likewise.
7585         * features/i386/i386-avx512.xml: Likewise.
7586         * features/i386/x32-avx512-linux.c: Likewise.
7587         * features/i386/x32-avx512-linux.xml: Likewise.
7588         * features/i386/x32-avx512.c: Likewise.
7589         * features/i386/x32-avx512.xml: Likewise.
7590         * regformats/i386/amd64-avx512-linux.dat: New file.
7591         * regformats/i386/amd64-avx512.dat: Likewise.
7592         * regformats/i386/i386-avx512-linux.dat: Likewise.
7593         * regformats/i386/i386-avx512.dat: Likewise.
7594         * regformats/i386/x32-avx512-linux.dat: Likewise.
7595         * regformats/i386/x32-avx512.dat: Likewise.
7596         * NEWS: Add note about new support for AVX512.
7597
7598
7599 2014-04-23  Pedro Alves  <palves@redhat.com>
7600
7601         * breakpoint.c (insert_bp_location): Tolerate errors if the
7602         breakpoint is set in a user-loaded objfile.
7603         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
7604         location is marked shlib_disabled.  If the breakpoint is set in a
7605         user-loaded objfile is a GDB-side memory breakpoint, validate it
7606         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
7607         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
7608         flag.
7609         * mem-break.c (memory_validate_breakpoint): New function.
7610         * objfiles.c (userloaded_objfile_contains_address_p): New
7611         function.
7612         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7613         * target.h (memory_validate_breakpoint): New declaration.
7614
7615 2014-04-23  Pedro Alves  <palves@redhat.com>
7616
7617         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7618         the breakpoint is set in a shared library, only suppress
7619         errors for software breakpoints, not hardware breakpoints.
7620
7621 2014-04-22  Pedro Alves  <palves@redhat.com>
7622
7623         * infrun.c (schedlock_applies): New function, factored out from
7624         find_thread_needs_step_over.
7625         (find_thread_needs_step_over): Use it.
7626         (switch_back_to_stepped_thread): Always clear trap_expected if the
7627         step over is finished.  Return early if scheduler locking applies.
7628         Look for the stepping thread and a potential step-over thread with
7629         a single loop.
7630         (currently_stepping_or_nexting_callback): Delete.
7631
7632 2014-04-22  Nick Clifton  <nickc@redhat.com>
7633
7634         * NEWS: Mention that ARM sim now supports tracing.
7635
7636 2014-04-22  Yao Qi  <yao@codesourcery.com>
7637
7638         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7639         to ...
7640         * tracefile.c (tracefile_fetch_registers): ... it.  New
7641         function.
7642         * tracefile.h (tracefile_fetch_registers): Declare.
7643         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
7644         tracefile_fetch_registers.
7645
7646 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
7647
7648         PR gdb/14018
7649         * windows-nat.c (thread_rec): Don't display a warning when
7650         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
7651         fails for any reason, set th->suspended to -1, so that we don't
7652         try to resume such a thread.  Also, don't return NULL in these
7653         cases, to avoid completely ruin the session due to "PC register is
7654         not available" error.
7655         (do_windows_fetch_inferior_registers): Check errors in
7656         GetThreadContext call.
7657         (windows_continue): Accept an additional argument KILLED; if not
7658         zero, ignore errors in the SetThreadContext call, since the
7659         inferior was killed and is shutting down.
7660         (windows_resume, get_windows_debug_event)
7661         (windows_create_inferior, windows_mourn_inferior)
7662         (windows_kill_inferior): All callers of windows_continue changed
7663         to adjust to its new calling sequence.
7664
7665 2014-04-19  Yao Qi  <yao@codesourcery.com>
7666
7667         * ctf.c (ctf_open): Call post_create_inferior.
7668
7669 2014-04-19  Yao Qi  <yao@codesourcery.com>
7670
7671         * ctf.c (handle_id): New static variable.
7672         (ctf_open_dir): Get handle_id from bt_context_add_trace return
7673         value.  Get the declaration of event "register" and get length
7674         of field "contents".
7675
7676 2014-04-19  Yao Qi  <yao@codesourcery.com>
7677
7678         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7679
7680 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
7681
7682         * valops.c (oload_method_static): Remove unnecessary argument
7683         METHOD.  Update all callers.
7684
7685 2014-04-18  Pedro alves  <palves@redhat.com>
7686             Tom Tromey  <tromey@redhat.com>
7687
7688         PR backtrace/15558
7689         * frame.c (get_prev_frame_1): Rename to ...
7690         (get_prev_frame_always): ... this, and make extern.  Adjust.
7691         (skip_artificial_frames): Use get_prev_frame_always.
7692         (frame_unwind_caller_id, frame_pop, get_prev_frame)
7693         (get_frame_unwind_stop_reason): Adjust to rename.
7694         * frame.h (get_prev_frame_always): Declare.
7695         * inline-frame.c: Include frame.h.
7696         (inline_frame_this_id): Use get_prev_frame_always.
7697
7698 2014-04-18  Tristan Gingold  <gingold@adacore.com>
7699
7700         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7701         code by using bfd_mach_o_get_base_address.
7702
7703 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7704
7705         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7706         (spu_ax_pseudo_register_collect): New function.
7707         (spu_ax_pseudo_register_push_stack): Likewise.
7708         (spu_dwarf_reg_to_regnum): Likewise.
7709         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
7710
7711 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
7712
7713         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7714         Replace FRAME argument with FRAME_ID.
7715         * gdbarch.c, gdbarch.h: Regenerate.
7716         * findvar.c (default_value_from_register): Add GDBARCH argument;
7717         replace FRAME by FRAME_ID.  No longer call get_frame_id.
7718         (value_from_register): Update call to gdbarch_value_from_register.
7719         * value.h (default_value_from_register): Update prototype.
7720         * s390-linux-tdep.c (s390_value_from_register): Update interface
7721         and call to default_value_from_register.
7722         * spu-tdep.c (spu_value_from_register): Likewise.
7723
7724         * findvar.c (address_from_register): Remove TYPE argument.
7725         Do not call value_from_register; use gdbarch_value_from_register
7726         with null_frame_id instead.
7727         * value.h (address_from_register): Update prototype.
7728         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7729         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7730         address_from_register interface change.
7731
7732 2014-04-17  Yao Qi  <yao@codesourcery.com>
7733
7734         * gdbtypes.h: Update comments to link to types and macros'
7735         definitions.
7736
7737 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
7738
7739         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7740
7741 2014-04-16  Keith Seitz  <keiths@redhat.com>
7742
7743         PR gdb/15827
7744         * dwarf2read.c (skip_one_die): Check that all relative-offset
7745         sibling DIEs fall within range of the current reader's buffer.
7746         (read_partial_die): Likewise.
7747
7748 2014-04-16  Keith Seitz  <keiths@redhat.com>
7749
7750         PR c++/16597
7751         * cp-namespace.c (lookup_symbol_file): If the type name of
7752         `this' is NULL, return immediately.
7753
7754 2014-04-14  Keith Seitz  <keiths@redhat.com>
7755
7756         PR c++/16253
7757         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7758         from symbol_matches_domain in symtab.c. All local callers
7759         of symbol_matches_domain updated.
7760         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7761         search STRUCT_DOMAIN.
7762         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7763         independently.  standard_lookup will do that automatically.
7764         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7765         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7766         (cp_lookup_symbol_in_namespace): Likewise.
7767         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7768         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7769         may return a STRUCT_DOMAIN match.
7770         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7771         * cp-support.c: Include language.h.
7772         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7773         VAR_DOMAIN.
7774         * psymtab.c (match_partial_symbol): Compare the requested
7775         domain with the symbol's domain directly.
7776         (lookup_partial_symbol): Likewise.
7777         * symtab.c (lookup_symbol_in_language): Explain when/why
7778         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7779         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7780         appropriate languages.
7781         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7782         and moved to ada-lang.c
7783         (lookup_block_symbol): Explain that this function only returns
7784         symbol matching the requested DOMAIN.
7785         Compare the requested domain with the symbol's domain directly.
7786         (iterate_over_symbols): Compare the requested domain with the
7787         symbol's domain directly.
7788         * symtab.h (symbol_matches_domain): Remove.
7789
7790 2014-04-14  Tom Tromey  <tromey@redhat.com>
7791
7792         PR c++/15246:
7793         * c-exp.y (type_aggregate_p): New function.
7794         (qualified_name, classify_inner_name): Use it.
7795         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7796         and TYPE_TARGET_TYPE of an enum type.
7797         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7798         an enum type.
7799         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7800         handle TYPE_DECLARED_CLASS.
7801         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7802         types.
7803         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7804         * valops.c (enum_constant_from_type): New function.
7805         (value_aggregate_elt): Use it.
7806         * cp-namespace.c (cp_lookup_nested_symbol): Handle
7807         TYPE_CODE_ENUM.
7808
7809 2014-04-14  Tom Tromey  <tromey@redhat.com>
7810
7811         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7812         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7813         const.
7814         * value.h (value_aggregate_elt): Update.
7815
7816 2014-04-14  Tom Tromey  <tromey@redhat.com>
7817
7818         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7819
7820 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7821
7822         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7823         (evaluate_subexp_standard): Pass noside argument.
7824         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7825         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7826         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7827         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7828         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7829
7830 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7831
7832         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7833         points to a constant blob.
7834
7835 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7836
7837         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7838         property and store it as the high bound and flag the range accordingly.
7839         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7840         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7841         * gdbtypes.h (enum range_flags): New enum.
7842         (struct range_bounds): Add flags member.
7843
7844 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7845
7846         * c-typeprint.c (c_type_print_varspec_suffix): Added
7847         check for not yet resolved high bound. If unresolved, print
7848         "variable length" string to the console instead of random
7849         length.
7850
7851 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7852
7853         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7854         value.
7855         (ada_template_to_fixed_record_type_1): Likewise.
7856         (ada_to_fixed_type_1): Likewise.
7857         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7858         (cp_print_value): Likewise.
7859         * d-valprint.c (dynamic_array_type): Likewise.
7860         * findvar.c (address_of_variable): Likewise.
7861         * jv-valprint.c (java_value_print): Likewise.
7862         * valops.c (value_ind): Likewise.
7863         * value.c (coerce_ref): Likewise.
7864
7865 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7866
7867         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7868         value and retrieve the dynamic type size.
7869
7870 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7871
7872         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7873         passed to sizeof is dynamic evaluate the argument to compute the length.
7874
7875 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
7876             Joel Brobecker  <brobecker@adacore.com>
7877
7878         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7879         (dwarf2_evaluate_property): New function.
7880         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7881         * dwarf2read.c (attr_to_dynamic_prop): New function.
7882         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7883         attribute.
7884         * gdbtypes.c: Include dwarf2loc.h.
7885         (is_dynamic_type): New function.
7886         (resolve_dynamic_type): New function.
7887         (resolve_dynamic_bounds): New function.
7888         (get_type_length): New function.
7889         (check_typedef): Use get_type_length to compute type length.
7890         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7891         (TYPE_LOW_BOUND_KIND): New macro.
7892         (is_dynamic_type): New function prototype.
7893         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7894         to resolve dynamic properties of the type. Update comment.
7895         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7896
7897 2014-04-14  Richard Henderson  <rth@redhat.com>
7898
7899         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7900
7901 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
7902             Doug Evans  <xdje42@gmail.com>
7903
7904         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7905         dereference TYPE_CODE_REF values.
7906
7907 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
7908
7909         Revert the following changes due to regressions:
7910
7911         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7912         (dwarf2_evaluate_property): New function.
7913         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7914         * dwarf2read.c (attr_to_dynamic_prop): New function.
7915         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7916         attribute.
7917         * gdbtypes.c: Include dwarf2loc.h.
7918         (is_dynamic_type): New function.
7919         (resolve_dynamic_type): New function.
7920         (resolve_dynamic_bounds): New function.
7921         (get_type_length): New function.
7922         (check_typedef): Use get_type_length to compute type length.
7923         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7924         (TYPE_LOW_BOUND_KIND): New macro.
7925         (is_dynamic_type): New function prototype.
7926         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7927         to resolve dynamic properties of the type. Update comment.
7928         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7929
7930         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7931         passed to sizeof is dynamic evaluate the argument to compute the length.
7932
7933         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7934         value and retrieve the dynamic type size.
7935
7936         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7937         (ada_template_to_fixed_record_type_1): Likewise.
7938         (ada_to_fixed_type_1): Likewise.
7939         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7940         (cp_print_value): Likewise.
7941         * d-valprint.c (dynamic_array_type): Likewise.
7942         * eval.c (evaluate_subexp_with_coercion): Likewise.
7943         * findvar.c (address_of_variable): Likewise.
7944         * jv-valprint.c (java_value_print): Likewise.
7945         * valops.c (value_ind): Likewise.
7946         * value.c (coerce_ref): Likewise.
7947
7948         * c-typeprint.c (c_type_print_varspec_suffix): Added
7949         check for not yet resolved high bound. If unresolved, print
7950         "variable length" string to the console instead of random
7951         length.
7952
7953         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7954         property and store it as the high bound and flag the range accordingly.
7955         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7956         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7957         * gdbtypes.h (enum range_flags): New enum.
7958         (struct range_bounds): Add flags member.
7959
7960         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7961         points to a constant blob.
7962
7963         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7964         (evaluate_subexp_standard): Pass noside argument.
7965         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7966         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7967         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7968         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7969         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7970
7971 2014-04-11  Keith Seitz  <keiths@redhat.com>
7972
7973         PR c++/16675
7974         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7975         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7976         reference types.
7977
7978 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7979
7980         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7981         (evaluate_subexp_standard): Pass noside argument.
7982         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7983         if noside equals EVAL_NORMAL. If the subscript yields a vla type
7984         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7985         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7986         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7987
7988 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7989
7990         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7991         points to a constant blob.
7992
7993 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
7994
7995         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7996         property and store it as the high bound and flag the range accordingly.
7997         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7998         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7999         * gdbtypes.h (enum range_flags): New enum.
8000         (struct range_bounds): Add flags member.
8001
8002 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8003
8004         * c-typeprint.c (c_type_print_varspec_suffix): Added
8005         check for not yet resolved high bound. If unresolved, print
8006         "variable length" string to the console instead of random
8007         length.
8008
8009 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8010
8011         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8012         (ada_template_to_fixed_record_type_1): Likewise.
8013         (ada_to_fixed_type_1): Likewise.
8014         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8015         (cp_print_value): Likewise.
8016         * d-valprint.c (dynamic_array_type): Likewise.
8017         * eval.c (evaluate_subexp_with_coercion): Likewise.
8018         * findvar.c (address_of_variable): Likewise.
8019         * jv-valprint.c (java_value_print): Likewise.
8020         * valops.c (value_ind): Likewise.
8021         * value.c (coerce_ref): Likewise.
8022
8023 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8024
8025         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8026         value and retrieve the dynamic type size.
8027
8028 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8029
8030         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8031         passed to sizeof is dynamic evaluate the argument to compute the length.
8032
8033 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8034
8035         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8036         (dwarf2_evaluate_property): New function.
8037         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8038         * dwarf2read.c (attr_to_dynamic_prop): New function.
8039         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8040         attribute.
8041         * gdbtypes.c: Include dwarf2loc.h.
8042         (is_dynamic_type): New function.
8043         (resolve_dynamic_type): New function.
8044         (resolve_dynamic_bounds): New function.
8045         (get_type_length): New function.
8046         (check_typedef): Use get_type_length to compute type length.
8047         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8048         (TYPE_LOW_BOUND_KIND): New macro.
8049         (is_dynamic_type): New function prototype.
8050         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8051         to resolve dynamic properties of the type. Update comment.
8052         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8053
8054 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8055
8056         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8057         declaring high/low bounds and change uses accordingly. Call
8058         create_range_type instead of create_static_range_type.
8059         * gdbtypes.c (create_range_type): New function.
8060         (create_range_type): Convert bounds into struct bound_prop and pass
8061         them to create_range_type.
8062         * gdbtypes.h (struct bound_prop): New struct.
8063         (create_range_type): New function prototype.
8064         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8065         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8066         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8067         part of the bound.
8068         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8069
8070 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8071
8072         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8073         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8074         * ada-lang.c: All uses of create_range_type updated.
8075         * coffread.c: All uses of create_range_type updated.
8076         * dwarf2read.c: All uses of create_range_type updated.
8077         * f-exp.y: All uses of create_range_type updated.
8078         * m2-valprint.c: All uses of create_range_type updated.
8079         * mdebugread.c: All uses of create_range_type updated.
8080         * stabsread.c: All uses of create_range_type updated.
8081         * valops.c: All uses of create_range_type updated.
8082         * valprint.c: All uses of create_range_type updated.
8083
8084 2014-04-10  Pedro Alves  <palves@redhat.com>
8085
8086         * breakpoint.c (single_step_breakpoints)
8087         (single_step_gdbarch): Move up in the file.
8088         (one_breakpoint_xfer_memory): New function, factored out from ...
8089         (breakpoint_xfer_memory): ... here.  Also process single-step
8090         breakpoints.
8091
8092 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8093
8094         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8095         comments.
8096         (darwin_decode_exception_message): Free port only after use.
8097
8098 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8099
8100         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8101         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8102         when setting the size of call_length.
8103
8104 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8105
8106         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8107         dereference TYPE_CODE_REF values.
8108
8109 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8110
8111         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8112         end of warning message.
8113
8114 2014-04-03  Doug Evans  <dje@google.com>
8115
8116         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8117         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8118
8119 2014-04-02  Alan Modra  <amodra@gmail.com>
8120
8121         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8122         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8123         (struct symbol_file_add_from_memory_args): Add size field.
8124         (find_vdso_size): New function.
8125         (add_vsyscall_page): Attempt to find vdso size.
8126
8127 2014-04-01  Doug Evans  <dje@google.com>
8128
8129         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8130
8131 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8132
8133         * darwin-nat.c (darwin_encode_reply): Add prototype.
8134         (darwin_decode_exception_message): Reply to unknown inferiors.
8135         (darwin_decode_message): Handle message by id.  Ignore message
8136         to unknown inferior.
8137         (darwin_wait): Discard unknown messages, add debug trace.
8138
8139 2014-03-31  Doug Evans  <dje@google.com>
8140
8141         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8142         comp_dir_string.
8143
8144 2014-03-31  Doug Evans  <dje@google.com>
8145
8146         New option "set print symbol-loading".
8147         * NEWS: Mention it.
8148         * solib.c (solib_read_symbols): Only print symbol loading messages
8149         if requested.
8150         (solib_add): If symbol loading is in "brief" mode, notify user
8151         symbols are being loaded.
8152         (reload_shared_libraries_1): Ditto.
8153         * symfile.c (print_symbol_loading_off): New static global.
8154         (print_symbol_loading_brief): New static global.
8155         (print_symbol_loading_full): New static global.
8156         (print_symbol_loading_enums): New static global.
8157         (print_symbol_loading): New static global.
8158         (print_symbol_loading_p): New function.
8159         (symbol_file_add_with_addrs): Only print symbol loading messages
8160         if requested.
8161         (_initialize_symfile): Register "print symbol-loading" set/show
8162         command.
8163         * symfile.h (print_symbol_loading_p): Declare.
8164
8165 2014-03-30  Doug Evans  <xdje42@gmail.com>
8166
8167         * infrun.c (set_last_target_status): New function.
8168         (handle_inferior_event): Call it.
8169
8170 2014-03-30  Doug Evans  <xdje42@gmail.com>
8171
8172         * inferior.h (enum stop_kind): Improve comment.
8173
8174 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8175
8176         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8177         a reference, strip the reference layer before calling
8178         the lang_ops value_has_mutated callback.
8179
8180 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8181
8182         Remove some globals from our parser.
8183         * language.c (unk_lang_parser): Add "struct parser_state"
8184         argument.
8185         * language.h (struct language_defn) <la_parser>: Likewise.
8186         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8187         (initialize_expout): Add "struct parser_state" argument.
8188         Rewrite function to use the parser state.
8189         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8190         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8191         write_exp_elt_longcst, write_exp_elt_dblcst,
8192         write_exp_elt_decfloatcst, write_exp_elt_type,
8193         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8194         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8195         write_dollar_variable): Likewise.
8196         (parse_exp_in_context_1): Use parser state.
8197         (insert_type_address_space): Add "struct parser_state" argument.
8198         Use parser state.
8199         (increase_expout_size): New function.
8200         * parser-defs.h: Forward declare "struct language_defn" and
8201         "struct parser_state".
8202         (expout, expout_size, expout_ptr): Remove extern declarations.
8203         (parse_gdbarch, parse_language): Rewrite macro declarations to
8204         accept the parser state.
8205         (struct parser_state): New struct.
8206         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8207         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8208         write_exp_elt_decfloatcst, write_exp_elt_type,
8209         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8210         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8211         write_exp_msymbol, write_dollar_variable,
8212         mark_struct_expression, insert_type_address_space): Add "struct
8213         parser_state" argument.
8214         (increase_expout_size): New function.
8215         * utils.c (do_clear_parser_state): New function.
8216         (make_cleanup_clear_parser_state): Likewise.
8217         * utils.h (make_cleanup_clear_parser_state): New function
8218         prototype.
8219         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8220         Update calls to write_exp* in order to pass the parser state.
8221         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8222         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8223         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8224         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8225         * stap-probe.c (stap_parse_register_operand): Likewise.
8226         (stap_parse_single_operand): Likewise.
8227         (stap_parse_argument_1): Likewise.
8228         (stap_parse_argument): Use parser state.
8229         * stap-probe.h: Include "parser-defs.h".
8230         (struct stap_parse_info) <pstate>: New field.
8231         * c-exp.y (parse_type): Rewrite to use parser state.
8232         (yyparse): Redefine to c_parse_internal.
8233         (pstate): New global variable.
8234         (parse_number): Add "struct parser_state" argument.
8235         (write_destructor_name): Likewise.
8236         (type_exp): Update calls to write_exp* and similars in order to
8237         use parser state.
8238         (exp1, exp, variable, qualified_name, space_identifier,
8239         typename, typebase): Likewise.
8240         (write_destructor_name, parse_number, lex_one_token,
8241         classify_name, classify_inner_name, c_parse): Add "struct
8242         parser_state" argument.  Update function to use parser state.
8243         * c-lang.h: Forward declare "struct parser_state".
8244         (c_parse): Add "struct parser_state" argument.
8245         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8246         (yyparse): Redefine macro to ada_parse_internal.
8247         (pstate): New variable.
8248         (write_int, write_object_renaming, write_var_or_type,
8249         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8250         type_int, type_long, type_long_long, type_float, type_double,
8251         type_long_double, type_char, type_boolean, type_system_address):
8252         Add "struct parser_state" argument.
8253         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8254         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8255         var_or_type, aggregate, aggregate_component_list,
8256         positional_list, others, component_group,
8257         component_associations): Update calls to write_exp* and similar
8258         functions in order to use parser state.
8259         (ada_parse, write_var_from_sym, write_int,
8260         write_exp_op_with_string, write_object_renaming,
8261         find_primitive_type, write_selectors, write_ambiguous_var,
8262         write_var_or_type, write_name_assoc, type_int, type_long,
8263         type_long_long, type_float, type_double, type_long_double,
8264         type_char, type_boolean, type_system_address): Add "struct
8265         parser_state" argument.  Adjust function to use parser state.
8266         * ada-lang.c (parse): Likewise.
8267         * ada-lang.h: Forward declare "struct parser_state".
8268         (ada_parse): Add "struct parser_state" argument.
8269         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8270         calls to both functions.
8271         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8272         parser state.
8273         (yyparse): Redefine macro to f_parse_internal.
8274         (pstate): New variable.
8275         (parse_number): Add "struct parser_state" argument.
8276         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8277         and similars in order to use parser state.
8278         (parse_number): Adjust code to use parser state.
8279         (yylex): Likewise.
8280         (f_parse): New function.
8281         * f-lang.h: Forward declare "struct parser_state".
8282         (f_parse): Add "struct parser_state" argument.
8283         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8284         parser state.
8285         (yyparse): Redefine macro for java_parse_internal.
8286         (pstate): New variable.
8287         (push_expression_name, push_expression_name, insert_exp): Add
8288         "struct parser_state" argument.
8289         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8290         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8291         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8292         PostIncrementExpression, PostDecrementExpression,
8293         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8294         UnaryExpressionNotPlusMinus, CastExpression,
8295         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8296         RelationalExpression, EqualityExpression, AndExpression,
8297         ExclusiveOrExpression, InclusiveOrExpression,
8298         ConditionalAndExpression, ConditionalOrExpression,
8299         ConditionalExpression, Assignment, LeftHandSide): Update
8300         calls to write_exp* and similars in order to use parser state.
8301         (parse_number): Ajust code to use parser state.
8302         (yylex): Likewise.
8303         (java_parse): New function.
8304         (push_variable): Add "struct parser_state" argument.  Adjust
8305         code to user parser state.
8306         (push_fieldnames, push_qualified_expression_name,
8307         push_expression_name, insert_exp): Likewise.
8308         * jv-lang.h: Forward declare "struct parser_state".
8309         (java_parse): Add "struct parser_state" argument.
8310         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8311         parser state.
8312         (yyparse): Redefine macro to m2_parse_internal.
8313         (pstate): New variable.
8314         (type_exp, exp, fblock, variable, type): Update calls to
8315         write_exp* and similars to use parser state.
8316         (yylex): Likewise.
8317         (m2_parse): New function.
8318         * m2-lang.h: Forward declare "struct parser_state".
8319         (m2_parse): Add "struct parser_state" argument.
8320         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8321         * objc-lang.h: Forward declare "struct parser_state".
8322         (end_msglist): Add "struct parser_state" argument.
8323         * p-exp.y (parse_type): Rewrite macro to use parser state.
8324         (yyparse): Redefine macro to pascal_parse_internal.
8325         (pstate): New variable.
8326         (parse_number): Add "struct parser_state" argument.
8327         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8328         write_exp* and similars in order to use parser state.
8329         (parse_number, yylex): Adjust code to use parser state.
8330         (pascal_parse): New function.
8331         * p-lang.h: Forward declare "struct parser_state".
8332         (pascal_parse): Add "struct parser_state" argument.
8333         * go-exp.y (parse_type): Rewrite macro to use parser state.
8334         (yyparse): Redefine macro to go_parse_internal.
8335         (pstate): New variable.
8336         (parse_number): Add "struct parser_state" argument.
8337         (type_exp, exp1, exp, variable, type): Update calls to
8338         write_exp* and similars in order to use parser state.
8339         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8340         to use parser state.
8341         (go_parse): Likewise.
8342         * go-lang.h: Forward declare "struct parser_state".
8343         (go_parse): Add "struct parser_state" argument.
8344
8345 2014-03-27  Doug Evans  <dje@google.com>
8346
8347         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8348
8349 2014-03-27  Doug Evans  <dje@google.com>
8350
8351         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8352         Remove argument abbrev_section.  All callers updated.
8353
8354 2014-03-27  Doug Evans  <dje@google.com>
8355
8356         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8357         addr_base, ranges_base.
8358
8359 2014-03-26  Keith Seitz  <keiths@redhat.com>
8360
8361         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8362         types, not VAR_DOMAIN.
8363
8364 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8365
8366         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8367         "ra" registers.
8368         * features/nios2-linux.c: Regenerated.
8369         * features/nios2.c: Regenerated.
8370
8371 2014-03-25  Pedro Alves  <palves@redhat.com>
8372
8373         * cli/cli-script.c (script_from_file): Force the interpreter to
8374         sync mode.
8375
8376 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8377
8378         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8379         small stack allocation.
8380
8381 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8382
8383         * darwin-nat.c (exc_server): Remove unused prototype.
8384         (darwin_dump_message): Correctly display data on x86_64.
8385         (darwin_encode_reply): Fix style.
8386         Add comments and fix indentation.
8387
8388 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8389
8390         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8391
8392 2014-03-22  Doug Evans  <xdje42@gmail.com>
8393
8394         * infcmd.c: Whitespace fixes.
8395         (interrupt_command): Merge two function comments into one.
8396
8397 2014-03-22  Doug Evans  <xdje42@gmail.com>
8398
8399         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8400         All uses updated.
8401
8402 2014-03-22  Yao Qi  <yao@codesourcery.com>
8403
8404         * remote.c (target_read_live_memory): Remove.
8405         (memory_xfer_live_readonly_partial): Rename it to
8406         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8407         All callers updated.  Call remote_read_bytes_1
8408         instead of target_read_live_memory.
8409         * tracepoint.c (set_traceframe_number): Remove.
8410         (make_cleanup_restore_traceframe_number): Likewise .
8411         * tracepoint.h (set_traceframe_number): Remove declaration.
8412         (make_cleanup_restore_traceframe_number): Likewise.
8413
8414 2014-03-22  Yao Qi  <yao@codesourcery.com>
8415
8416         * remote.c (remote_read_bytes): Move code on reading from the
8417         remote stub to ...
8418         (remote_read_bytes_1): ... here.  New function.
8419
8420 2014-03-22  Yao Qi  <yao@codesourcery.com>
8421
8422         * ctf.c (ctf_xfer_partial): Check the return value of
8423         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8424         return TARGET_XFER_UNAVAILABLE.
8425         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8426         * target.c (target_read_live_memory): Move it to remote.c.
8427         (memory_xfer_live_readonly_partial): Likewise.
8428         (memory_xfer_partial_1): Move some code to remote_read_bytes.
8429         * remote.c (target_read_live_memory): Moved from target.c.
8430         (memory_xfer_live_readonly_partial): Likewise.
8431         (remote_read_bytes): Factored out from
8432         memory_xfer_partial_1.
8433
8434 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
8435
8436         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8437         NULL pointer.
8438
8439 2014-03-21  Pedro Alves  <palves@redhat.com>
8440
8441         * infrun.c (normal_stop): Extend comment.
8442
8443 2014-03-21  Hui Zhu  <hui@codesourcery.com>
8444             Pedro Alves  <palves@redhat.com>
8445
8446         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8447         static buffer.
8448         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8449         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8450         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8451
8452 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
8453
8454         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8455         `z' formatted output modifier.
8456
8457 2014-03-20  Tom Tromey  <tromey@redhat.com>
8458             Sergio Durigan Junior  <sergiodj@redhat.com>
8459
8460         * probe.c (parse_probes): Turn assert into an ordinary error.
8461         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8462         exceptions when parsing probes.  Rearrange the code for clarity.
8463
8464 2014-03-20  Tom Tromey  <tromey@redhat.com>
8465
8466         PR gdb/14135
8467         * top.c (execute_command): Only dispatch events if the command
8468         started the target.
8469
8470 2014-03-20  Tom Tromey  <tromey@redhat.com>
8471
8472         PR cli/15718
8473         * infcall.c: Include event-top.h.
8474         (run_inferior_call): Call async_disable_stdin if needed.
8475
8476 2014-03-20  Pedro Alves  <palves@redhat.com>
8477
8478         * infrun.c (prepare_to_proceed): Delete.
8479         (thread_still_needs_step_over): New function.
8480         (find_thread_needs_step_over): New function.
8481         (proceed): If the current thread needs a step-over, set its
8482         steping_over_breakpoint flag.  Adjust to use
8483         find_thread_needs_step_over instead of prepare_to_proceed.
8484         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8485         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8486         breakpoint.
8487         (switch_back_to_stepped_thread): Step over breakpoints of all
8488         threads not the stepping thread, before switching back to the
8489         stepping thread.
8490
8491 2014-03-20  Pedro Alves  <palves@redhat.com>
8492
8493         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8494         extern.
8495         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8496         * infrun.c (saved_singlestep_ptid)
8497         (stepping_past_singlestep_breakpoint): Delete.
8498         (resume): Remove stepping_past_singlestep_breakpoint handling.
8499         (proceed): Store the prev_pc of the stepping thread too.
8500         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
8501         singlestep_pc.
8502         (enum infwait_states): Delete infwait_thread_hop_state.
8503         (struct execution_control_state) <hit_singlestep_breakpoint>: New
8504         field.
8505         (handle_inferior_event): Adjust.
8506         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8507         handling and the thread-hop code.  Before removing single-step
8508         breakpoints, check whether the thread hit a single-step breakpoint
8509         of another thread.  If it did, the trap is not a random signal.
8510         (switch_back_to_stepped_thread): If the event thread hit a
8511         single-step breakpoint, unblock it before switching to the
8512         stepping thread.  Handle the case of the stepped thread having
8513         advanced already.
8514         (keep_going): Handle the case of the current thread moving past a
8515         single-step breakpoint.
8516
8517 2014-03-20  Pedro Alves  <palves@redhat.com>
8518
8519         PR breakpoints/7143
8520         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8521         are being stepped over.
8522         (breakpoint_address_match): Make extern.
8523         * breakpoint.h (breakpoint_address_match): New declaration.
8524         * inferior.h (stepping_past_instruction_at): New declaration.
8525         * infrun.c (struct step_over_info): New type.
8526         (step_over_info): New global.
8527         (set_step_over_info, clear_step_over_info)
8528         (stepping_past_instruction_at): New functions.
8529         (handle_inferior_event): Clear the step-over info when
8530         trap_expected is cleared.
8531         (resume): Remove now stale comment.
8532         (clear_proceed_status): Clear step-over info.
8533         (proceed): Adjust step-over handling to set or clear the step-over
8534         info instead of removing all breakpoints.
8535         (handle_signal_stop): When setting up a thread-hop, don't remove
8536         breakpoints here.
8537         (stop_stepping): Clear step-over info.
8538         (keep_going): Adjust step-over handling to set or clear step-over
8539         info and then always inserting breakpoints, instead of removing
8540         all breakpoints when stepping over one.
8541
8542 2014-03-20  Pedro Alves  <palves@redhat.com>
8543
8544         * infrun.c (previous_inferior_ptid): Adjust comment.
8545         (deferred_step_ptid): Delete.
8546         (infrun_thread_ptid_changed, prepare_to_proceed)
8547         (init_wait_for_inferior): Adjust.
8548         (handle_signal_stop): Delete deferred_step_ptid handling.
8549
8550 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
8551
8552         PR gdb/15358
8553         * defs.h (sync_quit_force_run): New declaration.
8554         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8555         * event-top.c (async_sigterm_handler): New declaration.
8556         (async_sigterm_token): New variable.
8557         (async_init_signals): Create also async_sigterm_token.
8558         (async_sigterm_handler): New function.
8559         (sync_quit_force_run): New variable.
8560         (handle_sigterm): Replace quit_force call by other calls.
8561         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8562
8563 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
8564
8565         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8566         offset into SPE pseudo registers.
8567
8568 2014-03-18  Pedro Alves  <palves@redhat.com>
8569
8570         PR gdb/13860
8571         * inferior.h (print_stop_event): Declare.
8572         * infrun.c (print_stop_event): New, factored out from ...
8573         (normal_stop): ... this.
8574         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8575         of bpstat_print/print_stack_frame.
8576
8577 2014-03-17  Tom Tromey  <tromey@redhat.com>
8578
8579         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8580
8581 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
8582
8583         * ada-lang.c (decode_constrained_packed_array): Perform a
8584         minimal coercion for reference with coerce_ref instead of
8585         ada_coerce_ref.
8586
8587 2014-03-17  Tristan Gingold  <gingold@adacore.com>
8588
8589         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8590         (darwin_solib_create_inferior_hook): Emit a warning if version
8591         is unhandled.
8592
8593 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
8594
8595         * python/py-value.c (get_field_flag): Cast flag_name argument to
8596         PyObject_GetAttrString to support Python 2.4.
8597
8598 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8599
8600         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8601         (Global Maintainers): Remove Jan Kratochvil.
8602
8603 2014-03-14  Pedro Alves  <palves@redhat.com>
8604
8605         * inferior.h (terminal_ours_for_output): Rename to ...
8606         (child_terminal_ours_for_output): ... this.
8607         (terminal_save_ours): Rename to ...
8608         (child_terminal_save_ours): ... this.
8609         (terminal_ours): Rename to ...
8610         (child_terminal_ours): ... this.
8611         (terminal_inferior): Rename to ...
8612         (child_terminal_inferior): ... this.
8613         (terminal_init_inferior): Rename to ...
8614         (child_terminal_init_inferior): ... this.
8615         (terminal_init_inferior_with_pgrp): Rename to ...
8616         (child_terminal_init_inferior_with_pgrp): ... this.
8617         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8618         (child_terminal_init_with_pgrp): ... this.
8619         (terminal_save_ours): Rename to ...
8620         (child_terminal_save_ours): ... this.
8621         (terminal_init_inferior): Rename to ...
8622         (child_terminal_init): ... this.  Adjust.
8623         (terminal_inferior): Rename to ...
8624         (child_terminal_inferior): ... this.
8625         (terminal_ours_for_output): Rename to ...
8626         (child_terminal_ours_for_output): ... this.  Adjust.
8627         (terminal_ours): Rename to ...
8628         (child_terminal_ours): ... this.
8629         (terminal_ours_1): Rename to ...
8630         (child_terminal_ours_1): ... this.  Adjust.
8631         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8632         * windows-nat.c (do_initial_windows_stuff): Adjust.
8633         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8634         (gnu_terminal_init): ... this.  Adjust.
8635         (gnu_target): Adjust.
8636         * inf-child.c (inf_child_target): Adjust.
8637
8638 2014-03-13  Doug Evans  <xdje42@gmail.com>
8639
8640         PR guile/16612
8641         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8642         new eq?-hashtab.
8643
8644 2014-03-13  Doug Evans  <xdje42@gmail.com>
8645
8646         * value.c (record_latest_value): Call release_value_or_incref
8647         instead of release_value.
8648
8649 2014-03-13  Pedro Alves  <palves@redhat.com>
8650
8651         * procfs.c (procfs_target): Don't override to_shortname,
8652         to_longname or to_doc.
8653
8654 2014-03-13  Pedro Alves  <palves@redhat.com>
8655
8656         * inf-child.c (inf_child_open, inf_child_target): Don't mention
8657         Unix in user visible strings.
8658
8659 2014-03-12  Stan Shebs  <stan@codesourcery.com>
8660
8661         * gdbtypes.h: Annotate comments for Doxygen, add a page
8662         block comment with some general info.
8663
8664 2014-03-12  Pedro Alves  <palves@redhat.com>
8665
8666         * infcmd.c (prepare_execution_command): New function, factored out
8667         from several execution commands.
8668         (run_command_1, continue_command, step_1, jump_command)
8669         (signal_command, until_command, advance_command, finish_command)
8670         (attach_command): Use prepare_execution_command.
8671
8672 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
8673
8674         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8675         (MAX_BPTS): Define.
8676         (MAX_WPTS): Define.
8677         (struct arm_linux_thread_points): Removed.
8678         (struct arm_linux_process_info): New.
8679         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8680         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8681         (arm_linux_find_breakpoints_by_tid): Removed.
8682         (struct arch_lwp_info): New.
8683         (arm_linux_find_process_pid): New functions.
8684         (arm_linux_add_process): New functions.
8685         (arm_linux_process_info_get): New functions.
8686         (arm_linux_forget_process): New function.
8687         (arm_linux_get_debug_reg_state): New function.
8688         (struct update_registers_data): New.
8689         (update_registers_callback): New function.
8690         (arm_linux_insert_hw_breakpoint1): Updated.
8691         (arm_linux_remove_hw_breakpoint1): Updated.
8692         (arm_linux_insert_hw_breakpoint): Updated.
8693         (arm_linux_remove_hw_breakpoint): Updated.
8694         (arm_linux_insert_watchpoint): Updated.
8695         (arm_linux_remove_watchpoint): Updated.
8696         (arm_linux_new_thread): Updated.
8697         (arm_linux_prepare_to_resume): New function.
8698         (arm_linux_new_fork): New function.
8699         (_initialize_arm_linux_nat): Updated.
8700
8701 2014-03-12  Pedro Alves  <palves@redhat.com>
8702
8703         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8704
8705 2014-03-12  Tom Tromey  <tromey@redhat.com>
8706
8707         * inf-child.c (return_zero): New function.
8708         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8709         * aix-thread.c (aix_thread_inferior_created): New function.
8710         (aix_thread_attach): Remove.
8711         (init_aix_thread_ops): Don't set to_attach.
8712         (_initialize_aix_thread): Register inferior_created observer.
8713         * corelow.c (init_core_ops): Don't set to_attach or
8714         to_create_inferior.
8715         * exec.c (init_exec_ops): Don't set to_attach or
8716         to_create_inferior.
8717         * infcmd.c (run_command_1): Use find_run_target.  Make direct
8718         target calls.
8719         (attach_command): Use find_attach_target.  Make direct target
8720         calls.
8721         * record-btrace.c (init_record_btrace_ops): Don't set
8722         to_create_inferior.
8723         * record-full.c (record_full_can_async_p, record_full_is_async_p):
8724         Remove.
8725         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
8726         set to_create_inferior.
8727         * target.c (complete_target_initialization): Add assertion.
8728         (target_create_inferior): Remove.
8729         (find_default_attach, find_default_create_inferior): Remove.
8730         (find_attach_target, find_run_target): New functions.
8731         (find_default_is_async_p, find_default_can_async_p)
8732         (target_supports_non_stop, target_attach): Remove.
8733         (init_dummy_target): Don't set to_create_inferior or
8734         to_supports_non_stop.
8735         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
8736         TARGET_DEFAULT_FUNC.
8737         <to_create_inferior>: Add comment.
8738         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8739         TARGET_DEFAULT_RETURN.
8740         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8741         (find_attach_target, find_run_target): Declare.
8742         (target_create_inferior): Remove.
8743         (target_has_execution_1): Update comment.
8744         (target_supports_non_stop): Remove.
8745         * target-delegates.c: Rebuild.
8746
8747 2014-03-12  Pedro Alves  <palves@redhat.com>
8748
8749         * inf-child.h: Update comment to not mention Unix.
8750
8751 2014-03-12  Pedro Alves  <palves@redhat.com>
8752
8753         * inf-child.c: Update top comment to not mention Unix.  Add
8754         generic comment describing how this target is meant to be used.
8755         (inf_child_post_attach, inf_child_post_startup_inferior)
8756         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8757         Unix in comment.
8758
8759 2014-03-12  Pedro Alves  <palves@redhat.com>
8760
8761         * nto-procfs.c: Include inf-child.h.
8762         (procfs_ops): Delete global.
8763         (procfs_can_run): Delete method.
8764         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8765         target pointer instead of referencing procfs_ops.
8766         (procfs_prepare_to_store): Delete.
8767         (init_procfs_ops): Delete function.
8768         (procfs_target): New function, based on init_procfs_ops, but
8769         inherit inf_child_target.
8770         (_initialize_procfs): Use procfs_target.
8771
8772 2014-03-12  Pedro Alves  <palves@redhat.com>
8773
8774         * windows-nat.c: Include inf-child.h.
8775         (windows_ops): Delete global.
8776         (windows_open, windows_prepare_to_store, windows_can_run): Delete
8777         methods.
8778         (init_windows_ops): Delete function.
8779         (windows_target): New function, based on init_windows_ops, but
8780         inherit inf_child_target.
8781         (_initialize_windows_nat): Use windows_target.  Install x86
8782         specific target methods here.
8783
8784 2014-03-10  Doug Evans  <xdje42@gmail.com>
8785
8786         * guile/guile.c (call_initialize_gdb_module): New function.
8787         (initialize_guile): Replace call to scm_init_guile with call to
8788         scm_with_guile.
8789
8790 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
8791
8792         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8793         in call to TYPE_CODE macro.
8794
8795 2014-03-10  Jerome Guitton  <guitton@adacore.com>
8796
8797         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8798         Resolve tagged types to full view.
8799
8800 2014-03-10  Hui Zhu  <hui@codesourcery.com>
8801
8802         * target.h (target_insert_breakpoint): Remove "hardware" from its
8803         comments.
8804
8805 2014-03-07  Doug Evans  <dje@google.com>
8806
8807         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8808
8809 2014-03-07  Doug Evans  <dje@google.com>
8810
8811         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8812         Remove unused local comp_dir_attr.  Assert exactly one of
8813         stub_comp_unit_die, stub_comp_dir is non-NULL.
8814
8815 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
8816
8817         * target.h (complete_target_initialization, add_target):
8818         Add comment.
8819
8820 2014-03-07  Pedro Alves  <palves@redhat.com>
8821
8822         * go32-nat.c: Include inf-child.h.
8823         (go32_ops): Delete global.
8824         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8825         Delete methods.
8826         (go32_create_inferior): Push the passed in target pointer instead
8827         of referencing go32_ops.
8828         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
8829         (go32_target): New function, based on init_go32_ops, but inherit
8830         inf_child_target.
8831         (_initialize_go32_nat): Use go32_target.  Move parts of
8832         init_go32_ops here.
8833
8834 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
8835
8836         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8837         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8838         SYMBOL_VALUE_ADDRESS.
8839         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8840
8841 2014-03-06  Yao Qi  <yao@codesourcery.com>
8842
8843         * breakpoint.c (get_tracepoint_by_number): Remove argument
8844         optional_p.  All callers updated.  Adjust comments.  Update
8845         output message.
8846         * breakpoint.h (get_tracepoint_by_number): Update declaration.
8847
8848 2014-03-06  Yao Qi  <yao@codesourcery.com>
8849
8850         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
8851         early if get_number returns zero.  Use 'p' instead of 'args'.
8852
8853 2014-03-06  Yao Qi  <yao@codesourcery.com>
8854
8855         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8856         message.
8857
8858 2014-03-06  Yao Qi  <yao@codesourcery.com>
8859
8860         PR breakpoints/16508
8861         * tracepoint.c (check_trace_running): New function.
8862         (trace_find_command): Move code to check_trace_running and
8863         call check_trace_running.
8864         (trace_find_pc_command): Likewise.
8865         (trace_find_tracepoint_command): Likewise.
8866         (trace_find_line_command): Likewise.
8867         (trace_find_range_command): Likewise.
8868         * tracepoint.h (check_trace_running): Likewise.
8869         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8870
8871 2014-03-06  Yao Qi  <yao@codesourcery.com>
8872
8873         * target.h (struct target_ops) <to_traceframe_info>: Use
8874         TARGET_DEFAULT_NORETURN (tcomplain ()).
8875         * target-delegates.c: Regenerated.
8876
8877 2014-03-05  Pedro Alves  <palves@redhat.com>
8878
8879         PR gdb/16575
8880         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
8881         void.  Update comment.
8882         (dcache_xfer_memory): Delete.
8883         (dcache_read_memory_partial): New, based on the read bits of
8884         dcache_xfer_memory.
8885         (dcache_update): Add status parameter.  Use ULONGEST for len, and
8886         adjust.  Discard cache lines if the reason for the update was
8887         error.
8888         * dcache.h (dcache_xfer_memory): Delete declaration.
8889         (dcache_read_memory_partial): New declaration.
8890         (dcache_update): Update prototype.
8891         * target.c (raw_memory_xfer_partial): Update the dcache here.
8892         (memory_xfer_partial_1): Don't handle dcache writes here.
8893
8894 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
8895
8896         * remote-sim.c (gdbsim_load): Add const to prog.
8897
8898 2014-03-03  Tom Tromey  <tromey@redhat.com>
8899
8900         * elfread.c (probe_key): Change to bfd_data.
8901         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8902         now per-BFD, not per-objfile.
8903         * stap-probe.c (stap_probe_destroy): Update comment.
8904         (handle_stap_probe): Allocate on the per-BFD obstack.
8905
8906 2014-03-03  Tom Tromey  <tromey@redhat.com>
8907
8908         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8909         * breakpoint.c (create_longjmp_master_breakpoint): Use
8910         get_probe_address.
8911         (add_location_to_breakpoint, bkpt_probe_insert_location)
8912         (bkpt_probe_remove_location): Update.
8913         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8914         * elfread.c (elf_symfile_relocate_probe): Remove.
8915         (elf_probe_fns): Update.
8916         (insert_exception_resume_breakpoint): Change type of "probe"
8917         parameter to bound_probe.
8918         (check_exception_resume): Update.
8919         * objfiles.c (objfile_relocate1): Don't relocate probes.
8920         * probe.c (bound_probe_s): New typedef.
8921         (parse_probes): Use get_probe_address.  Set sal's objfile.
8922         (find_probe_by_pc): Return a bound_probe.
8923         (collect_probes): Return a VEC(bound_probe_s).
8924         (compare_probes): Update.
8925         (gen_ui_out_table_header_info): Change type of "probes"
8926         parameter.  Update.
8927         (info_probes_for_ops): Update.
8928         (get_probe_address): New function.
8929         (probe_safe_evaluate_at_pc): Update.
8930         * probe.h (struct probe_ops) <get_probe_address>: New field.
8931         <set_semaphore, clear_semaphore>: Add objfile parameter.
8932         (struct probe) <objfile>: Remove field.
8933         <arch>: New field.
8934         <address>: Update comment.
8935         (struct bound_probe): New.
8936         (find_probe_by_pc): Return a bound_probe.
8937         (get_probe_address): Declare.
8938         * solib-svr4.c (struct probe_and_action) <address>: New field.
8939         (hash_probe_and_action, equal_probe_and_action): Update.
8940         (register_solib_event_probe): Add address parameter.
8941         (solib_event_probe_at): Update.
8942         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
8943         get_probe_address.
8944         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8945         (stap_get_probe_address): New function.
8946         (stap_can_evaluate_probe_arguments, compute_probe_arg)
8947         (compile_probe_arg): Update.
8948         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8949         address.
8950         (handle_stap_probe): Don't relocate the probe.
8951         (stap_relocate): Remove.
8952         (stap_gen_info_probes_table_values): Update.
8953         (stap_probe_ops): Remove stap_relocate.
8954         * symfile-debug.c (debug_sym_relocate_probe): Remove.
8955         (debug_sym_probe_fns): Update.
8956         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8957         * symtab.c (init_sal): Use memset.
8958         * symtab.h (struct symtab_and_line) <objfile>: New field.
8959         * tracepoint.c (start_tracing, stop_tracing): Update.
8960
8961 2014-03-03  Tom Tromey  <tromey@redhat.com>
8962
8963         * probe.h (parse_probes, find_probe_by_pc)
8964         (find_probes_in_objfile): Fix comments.
8965
8966 2014-03-02  Doug Evans  <xdje42@gmail.com>
8967
8968         * infrun.c (handle_signal_stop): Replace test for
8969         TARGET_WAITKIND_STOPPED with an assert.
8970
8971 2014-03-02  Doug Evans  <xdje42@gmail.com>
8972
8973         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8974
8975 2014-03-02  Doug Evans  <xdje42@gmail.com>
8976
8977         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8978
8979 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8980
8981         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8982
8983 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8984
8985         * i386obsd-nat.c: Include "obsd-nat.h".
8986         (_initialize_i386obsd_nat): Call obsd_add_target instead of
8987         add_target.
8988         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8989
8990 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8991
8992         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8993
8994 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
8995
8996         * mips64obsd-nat.c: Include "obsd-nath".
8997         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8998         add_target
8999         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9000
9001 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9002
9003         * amd64obsd-nat.c: Include "obsd-nat,h.
9004         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9005         add_target.
9006         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9007
9008 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9009
9010         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9011         (find_overload_match): Update call to find_oload_champ.
9012         (find_oload_champ_namespace_loop): Likewise
9013
9014 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9015
9016         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9017
9018         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9019         * config/sparc/obsd64.mh: New file.
9020         * sparc64obsd-nat.c: New file.
9021
9022         * obsd-nat.h: New file.
9023         * obsd-nat.c: New file.
9024         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9025         (ALLDEPFILES): Add obsd-nat.c.
9026
9027 2014-02-28  Tom Tromey  <tromey@redhat.com>
9028
9029         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9030         * cli-out.h (cli_ui_out_impl): Now const.
9031         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9032         * ui-out.c (struct ui_out) <impl>: Now const.
9033         (default_ui_out_impl): Now const.
9034         (ui_out_new): Make 'impl' parameter const.
9035         * ui-out.h (ui_out_new): Update.
9036
9037 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9038
9039         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9040
9041 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9042
9043         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9044
9045 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9046
9047         Additional PR 8882 fix.
9048         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9049
9050 2014-02-27  Pedro Alves  <palves@redhat.com>
9051
9052         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9053         isn't set.
9054
9055 2014-02-27  Pedro Alves  <palves@redhat.com>
9056
9057         PR 12702
9058         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9059         * nat/linux-waitpid.c: Include string.h.
9060         (status_to_str): Moved here and made extern.
9061         * nat/linux-waitpid.h (status_to_str): New declaration.
9062
9063 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9064
9065         PR 12702
9066         * infrun.c (ptid_match): Move ...
9067         * common/ptid.c (ptid_match): ... here.
9068         * inferior.h (ptid_match): Move ...
9069         * common/ptid.h (ptid_match): ... here.
9070
9071 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9072
9073         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9074         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9075         gdb_target_obs.
9076
9077 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9078
9079         * obsd-tdep.c (obsd_auxv_parse): New function.
9080         (obsd_init_abi): Set auxv_parse.
9081
9082         * gdbarch.sh (auxv_parse): New.
9083         * gdbarch.h: Regenerated.
9084         * gdbarch.c: Regenerated.
9085         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9086
9087 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9088
9089         * guile/scm-value.c (gdbscm_history_append_x): New function.
9090         (value_functions): Add it.
9091
9092 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9093
9094         * dwarf2read.c (attr_value_as_address): New function.
9095         (dwarf2_find_base_address, read_call_site_scope): Use
9096         attr_value_as_address in place of DW_ADDR.
9097         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9098         the low and high addresses.  Slight rework of the handling
9099         of the high pc being a constant form, and limit it to
9100         DWARF verson 4 or higher.
9101         (dwarf2_record_block_ranges): Likewise.
9102         (read_partial_die): Likewise.
9103         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9104
9105 2014-02-26  Tom Tromey  <tromey@redhat.com>
9106
9107         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9108
9109 2014-02-26  Tom Tromey  <tromey@redhat.com>
9110
9111         * elfread.c (elf_read_minimal_symbols): Return early if
9112         minimal symbols have already been read.  Add "ei" parameter.
9113         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9114         * minsyms.c (prim_record_minimal_symbol_full): Update.
9115         * objfiles.h (struct objstats) <n_minsyms>: Move...
9116         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9117         * symmisc.c (print_objfile_statistics): Update.
9118
9119 2014-02-26  Tom Tromey  <tromey@redhat.com>
9120
9121         * elfread.c (elf_read_minimal_symbols): New function, from
9122         elf_symfile_read.
9123         (elf_symfile_read): Call it.
9124
9125 2014-02-26  Tom Tromey  <tromey@redhat.com>
9126
9127         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9128         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9129         (lookup_minimal_symbol_solib_trampoline)
9130         (lookup_minimal_symbol_by_pc_section_1)
9131         (lookup_minimal_symbol_and_objfile): Update.
9132         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9133         Don't allocate a minimal symbol if minsyms have already been read.
9134         (build_minimal_symbol_hash_tables): Update.
9135         (install_minimal_symbols): Do nothing if minsyms already read.
9136         Use the per-BFD obstack.
9137         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9138         * objfiles.c (allocate_objfile): Call
9139         terminate_minimal_symbol_table later.
9140         (have_minimal_symbols): Update.
9141         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9142         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9143         Move from struct objfile.
9144         <minsyms_read>: New field.
9145         (struct objfile) <msymbols, minimal_symbol_count,
9146         msymbol_hash, msymbol_demangled_hash>: Move.
9147         (ALL_OBJFILE_MSYMBOLS): Update.
9148         * symfile.c (read_symbols): Set minsyms_read.
9149         (reread_symbols): Update.
9150         * symmisc.c (dump_objfile, dump_msymbols): Update.
9151
9152 2014-02-26  Tom Tromey  <tromey@redhat.com>
9153
9154         * minsyms.c (msymbols_sort): Remove.
9155         * minsyms.h (msymbols_sort): Remove.
9156         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9157         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9158         * elfread.c (elf_symtab_read): Don't add section offsets.
9159         * xcoffread.c (record_minimal_symbol): Don't add section offset
9160         to minimal symbol address.
9161         * somread.c (text_offset, data_offset): Remove.
9162         (som_symtab_read): Don't add section offsets to minimal symbol
9163         addresses.
9164         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9165         Don't add section offsets to minimal symbols.
9166         * coffread.c (coff_symtab_read): Don't add section offsets
9167         to minimal symbol addresses.
9168         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9169         to minimal symbol addresses.
9170         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9171         section offset to minimal symbol addresses.
9172         * mdebugread.c (parse_partial_symbols): Don't add section
9173         offset to minimal symbol addresses.
9174         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9175         offset to minimal symbol addresses.
9176
9177 2014-02-26  Tom Tromey  <tromey@redhat.com>
9178
9179         * ada-lang.c (ada_main_name): Update.
9180         (ada_add_standard_exceptions): Update.
9181         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9182         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9183         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9184         * auxv.c (ld_so_xfer_auxv): Update.
9185         * avr-tdep.c (avr_scan_prologue): Update.
9186         * ax-gdb.c (gen_var_ref): Update.
9187         * blockframe.c (get_pc_function_start)
9188         (find_pc_partial_function_gnu_ifunc): Update.
9189         * breakpoint.c (create_overlay_event_breakpoint)
9190         (create_longjmp_master_breakpoint)
9191         (create_std_terminate_master_breakpoint)
9192         (create_exception_master_breakpoint): Update.
9193         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9194         * c-valprint.c (c_val_print): Update.
9195         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9196         * common/agent.c (agent_look_up_symbols): Update.
9197         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9198         * dwarf2loc.c (call_site_to_target_addr): Update.
9199         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9200         * elfread.c (elf_gnu_ifunc_record_cache)
9201         (elf_gnu_ifunc_resolve_by_got): Update.
9202         * findvar.c (default_read_var_value): Update.
9203         * frame.c (inside_main_func): Update.
9204         * frv-tdep.c (frv_frame_this_id): Update.
9205         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9206         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9207         Update.
9208         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9209         (hppa_hpux_find_dummy_bpaddr): Update.
9210         * hppa-tdep.c (hppa_symbol_address): Update.
9211         * infcmd.c (until_next_command): Update.
9212         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9213         Update.
9214         * linespec.c (minsym_found, add_minsym): Update.
9215         * linux-nat.c (get_signo): Update.
9216         * linux-thread-db.c (inferior_has_bug): Update.
9217         * m32c-tdep.c (m32c_return_value)
9218         (m32c_m16c_address_to_pointer): Update.
9219         * m32r-tdep.c (m32r_frame_this_id): Update.
9220         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9221         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9222         * maint.c (maintenance_translate_address): Update.
9223         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9224         (frob_address): New function.
9225         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9226         frob_address.  Rename parameter to "pc_in".
9227         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9228         addresses.
9229         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9230         Update.
9231         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9232         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9233         * objc-lang.c (find_objc_msgsend): Update.
9234         * objfiles.c (objfile_relocate1): Update.
9235         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9236         * p-valprint.c (pascal_val_print): Update.
9237         * parse.c (write_exp_msymbol): Update.
9238         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9239         (ppc_elfv2_skip_entrypoint): Update.
9240         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9241         * printcmd.c (build_address_symbolic, msym_info)
9242         (address_info): Update.
9243         * proc-service.c (ps_pglobal_lookup): Update.
9244         * psymtab.c (find_pc_sect_psymtab_closer)
9245         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9246         Change msymbol parameter to bound_minimal_symbol.
9247         * ravenscar-thread.c (get_running_thread_id): Update.
9248         * remote.c (remote_check_symbols): Update.
9249         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9250         address.
9251         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9252         * solib-dsbt.c (lm_base): Update.
9253         * solib-frv.c (lm_base, main_got): Update.
9254         * solib-irix.c (locate_base): Update.
9255         * solib-som.c (som_solib_create_inferior_hook)
9256         (link_map_start): Update.
9257         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9258         * solib-svr4.c (elf_locate_base, enable_break): Update.
9259         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9260         (flush_ea_cache): Update.
9261         * stabsread.c (define_symbol, scan_file_globals): Update.
9262         * stack.c (find_frame_funname): Update.
9263         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9264         (debug_qf_find_pc_sect_symtab): Update.
9265         * symfile.c (simple_read_overlay_table)
9266         (simple_overlay_update): Update.
9267         * symfile.h (struct quick_symbol_functions)
9268         <find_pc_sect_symtab>: Change type of msymbol to
9269         bound_minimal_symbol.
9270         * symmisc.c (dump_msymbols): Update.
9271         * symtab.c (find_pc_sect_symtab_via_partial)
9272         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9273         (search_symbols, print_msymbol_info): Update.
9274         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9275         (MSYMBOL_VALUE_ADDRESS): Redefine.
9276         (BMSYMBOL_VALUE_ADDRESS): New macro.
9277         * tracepoint.c (scope_info): Update.
9278         * tui/tui-disasm.c (tui_find_disassembly_address)
9279         (tui_get_begin_asm_address): Update.
9280         * valops.c (find_function_in_inferior): Update.
9281         * value.c (value_static_field, value_fn_field): Update.
9282
9283 2014-02-26  Tom Tromey  <tromey@redhat.com>
9284
9285         * ada-lang.c (ada_update_initial_language): Update.
9286         (ada_main_name, ada_has_this_exception_support): Update.
9287         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9288         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9289         * arm-tdep.c (arm_skip_stub): Update.
9290         * auxv.c (ld_so_xfer_auxv): Update.
9291         * avr-tdep.c (avr_scan_prologue): Update.
9292         * ax-gdb.c (gen_var_ref): Update.
9293         * breakpoint.c (struct breakpoint_objfile_data)
9294         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9295         type to bound_minimal_symbol.
9296         (create_overlay_event_breakpoint)
9297         (create_longjmp_master_breakpoint)
9298         (create_std_terminate_master_breakpoint)
9299         (create_exception_master_breakpoint): Update.
9300         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9301         * c-exp.y (classify_name): Update.
9302         * coffread.c (coff_symfile_read): Update.
9303         * common/agent.c (agent_look_up_symbols): Update.
9304         * d-lang.c (d_main_name): Update.
9305         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9306         * dec-thread.c (enable_dec_thread): Update.
9307         * dwarf2loc.c (call_site_to_target_addr): Update.
9308         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9309         * eval.c (evaluate_subexp_standard): Update.
9310         * findvar.c (struct minsym_lookup_data) <result>: Change type
9311         to bound_minimal_symbol.
9312         <objfile>: Remove.
9313         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9314         * frame.c (inside_main_func): Update.
9315         * frv-tdep.c (frv_frame_this_id): Update.
9316         * gcore.c (call_target_sbrk): Update.
9317         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9318         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9319         Update.
9320         * go-lang.c (go_main_name): Update.
9321         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9322         (hppa_hpux_find_import_stub_for_addr): Update.
9323         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9324         Update.  Change return type.
9325         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9326         type.
9327         * jit.c (jit_breakpoint_re_set_internal): Update.
9328         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9329         Update.
9330         * linux-nat.c (get_signo): Update.
9331         * linux-thread-db.c (inferior_has_bug): Update
9332         * m32c-tdep.c (m32c_return_value)
9333         (m32c_m16c_address_to_pointer): Update.
9334         * m32r-tdep.c (m32r_frame_this_id): Update.
9335         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9336         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9337         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9338         lookup_minimal_symbol.  Change return type.
9339         (lookup_minimal_symbol): Remove.
9340         (lookup_bound_minimal_symbol): Update.
9341         (lookup_minimal_symbol_text): Change return type.
9342         (lookup_minimal_symbol_solib_trampoline): Change return type.
9343         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9344         (lookup_minimal_symbol_solib_trampoline): Change return type.
9345         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9346         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9347         (value_nsstring, find_imps): Update.
9348         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9349         * p-lang.c (pascal_main_name): Update.
9350         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9351         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9352         * proc-service.c (ps_pglobal_lookup): Update.
9353         * ravenscar-thread.c (get_running_thread_msymbol): Change
9354         return type.
9355         (has_ravenscar_runtime, get_running_thread_id): Update.
9356         * remote.c (remote_check_symbols): Update.
9357         * sol-thread.c (ps_pglobal_lookup): Update.
9358         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9359         * solib-dsbt.c (lm_base): Update.
9360         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9361         Update.
9362         * solib-irix.c (locate_base): Update.
9363         * solib-som.c (som_solib_create_inferior_hook)
9364         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9365         Update.
9366         * solib-spu.c (spu_enable_break): Update.
9367         * solib-svr4.c (elf_locate_base, enable_break): Update.
9368         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9369         (flush_ea_cache): Update.
9370         * stabsread.c (define_symbol): Update.
9371         * symfile.c (simple_read_overlay_table): Update.
9372         * symtab.c (find_pc_sect_line): Update.
9373         * tracepoint.c (scope_info): Update.
9374         * tui-disasm.c (tui_get_begin_asm_address): Update.
9375         * value.c (value_static_field): Update.
9376
9377 2014-02-26  Tom Tromey  <tromey@redhat.com>
9378
9379         * minsyms.c (prim_record_minimal_symbol_full): Use
9380         SET_MSYMBOL_VALUE_ADDRESS.
9381         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9382         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9383         SET_MSYMBOL_VALUE_ADDRESS.
9384         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9385         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9386
9387 2014-02-26  Tom Tromey  <tromey@redhat.com>
9388
9389         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9390         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9391         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9392         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9393         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9394         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9395         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9396         * ada-lang.c (ada_main_name): Update.
9397         (ada_lookup_simple_minsym): Update.
9398         (ada_make_symbol_completion_list): Update.
9399         (ada_add_standard_exceptions): Update.
9400         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9401         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9402         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9403         * arm-tdep.c (skip_prologue_function): Update.
9404         (arm_skip_stack_protector, arm_skip_stub): Update.
9405         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9406         (arm_wince_skip_main_prologue): Update.
9407         * auxv.c (ld_so_xfer_auxv): Update.
9408         * avr-tdep.c (avr_scan_prologue): Update.
9409         * ax-gdb.c (gen_var_ref): Update.
9410         * block.c (call_site_for_pc): Update.
9411         * blockframe.c (get_pc_function_start): Update.
9412         (find_pc_partial_function_gnu_ifunc): Update.
9413         * breakpoint.c (create_overlay_event_breakpoint): Update.
9414         (create_longjmp_master_breakpoint): Update.
9415         (create_std_terminate_master_breakpoint): Update.
9416         (create_exception_master_breakpoint): Update.
9417         (resolve_sal_pc): Update.
9418         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9419         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9420         Update.
9421         * c-valprint.c (c_val_print): Update.
9422         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9423         * coffread.c (coff_symfile_read): Update.
9424         * common/agent.c (agent_look_up_symbols): Update.
9425         * dbxread.c (find_stab_function_addr): Update.
9426         (end_psymtab): Update.
9427         * dwarf2loc.c (call_site_to_target_addr): Update.
9428         (func_verify_no_selftailcall): Update.
9429         (tailcall_dump): Update.
9430         (call_site_find_chain_1): Update.
9431         (dwarf_expr_reg_to_entry_parameter): Update.
9432         * elfread.c (elf_gnu_ifunc_record_cache): Update.
9433         (elf_gnu_ifunc_resolve_by_got): Update.
9434         * f-valprint.c (info_common_command): Update.
9435         * findvar.c (read_var_value): Update.
9436         * frame.c (get_prev_frame_1): Update.
9437         (inside_main_func): Update.
9438         * frv-tdep.c (frv_skip_main_prologue): Update.
9439         (frv_frame_this_id): Update.
9440         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9441         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9442         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9443         (gnuv3_skip_trampoline): Update.
9444         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9445         (hppa64_hpux_in_solib_call_trampoline): Update.
9446         (hppa_hpux_skip_trampoline_code): Update.
9447         (hppa64_hpux_search_dummy_call_sequence): Update.
9448         (hppa_hpux_find_import_stub_for_addr): Update.
9449         (hppa_hpux_find_dummy_bpaddr): Update.
9450         * hppa-tdep.c (hppa_symbol_address)
9451         (hppa_lookup_stub_minimal_symbol): Update.
9452         * i386-tdep.c (i386_skip_main_prologue): Update.
9453         (i386_pe_skip_trampoline_code): Update.
9454         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9455         * infcall.c (get_function_name): Update.
9456         * infcmd.c (until_next_command): Update.
9457         * jit.c (jit_breakpoint_re_set_internal): Update.
9458         (jit_inferior_init): Update.
9459         * linespec.c (minsym_found): Update.
9460         (add_minsym): Update.
9461         * linux-fork.c (info_checkpoints_command): Update.
9462         * linux-nat.c (get_signo): Update.
9463         * linux-thread-db.c (inferior_has_bug): Update.
9464         * m32c-tdep.c (m32c_return_value): Update.
9465         (m32c_m16c_address_to_pointer): Update.
9466         (m32c_m16c_pointer_to_address): Update.
9467         * m32r-tdep.c (m32r_frame_this_id): Update.
9468         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9469         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9470         * maint.c (maintenance_translate_address): Update.
9471         * minsyms.c (add_minsym_to_hash_table): Update.
9472         (add_minsym_to_demangled_hash_table): Update.
9473         (msymbol_objfile): Update.
9474         (lookup_minimal_symbol): Update.
9475         (iterate_over_minimal_symbols): Update.
9476         (lookup_minimal_symbol_text): Update.
9477         (lookup_minimal_symbol_by_pc_name): Update.
9478         (lookup_minimal_symbol_solib_trampoline): Update.
9479         (lookup_minimal_symbol_by_pc_section_1): Update.
9480         (lookup_minimal_symbol_and_objfile): Update.
9481         (prim_record_minimal_symbol_full): Update.
9482         (compare_minimal_symbols): Update.
9483         (compact_minimal_symbols): Update.
9484         (build_minimal_symbol_hash_tables): Update.
9485         (install_minimal_symbols): Update.
9486         (terminate_minimal_symbol_table): Update.
9487         (find_solib_trampoline_target): Update.
9488         (minimal_symbol_upper_bound): Update.
9489         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9490         * mips-tdep.c (mips_stub_frame_sniffer): Update.
9491         (mips_skip_pic_trampoline_code): Update.
9492         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9493         * objc-lang.c (selectors_info): Update.
9494         (classes_info): Update.
9495         (find_methods): Update.
9496         (find_imps): Update.
9497         (find_objc_msgsend): Update.
9498         * objfiles.c (objfile_relocate1): Update.
9499         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9500         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9501         * p-valprint.c (pascal_val_print): Update.
9502         * parse.c (write_exp_msymbol): Update.
9503         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9504         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9505         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9506         * printcmd.c (build_address_symbolic): Update.
9507         (sym_info): Update.
9508         (address_info): Update.
9509         * proc-service.c (ps_pglobal_lookup): Update.
9510         * psymtab.c (find_pc_sect_psymtab_closer): Update.
9511         (find_pc_sect_psymtab): Update.
9512         * python/py-framefilter.c (py_print_frame): Update.
9513         * ravenscar-thread.c (get_running_thread_id): Update.
9514         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9515         Update.
9516         * remote.c (remote_check_symbols): Update.
9517         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9518         (rs6000_skip_trampoline_code): Update.
9519         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9520         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9521         * solib-dsbt.c (lm_base): Update.
9522         * solib-frv.c (lm_base): Update.
9523         (main_got): Update.
9524         * solib-irix.c (locate_base): Update.
9525         * solib-som.c (som_solib_create_inferior_hook): Update.
9526         (som_solib_desire_dynamic_linker_symbols): Update.
9527         (link_map_start): Update.
9528         * solib-spu.c (spu_enable_break): Update.
9529         (ocl_enable_break): Update.
9530         * solib-svr4.c (elf_locate_base): Update.
9531         (enable_break): Update.
9532         * spu-tdep.c (spu_get_overlay_table): Update.
9533         (spu_catch_start): Update.
9534         (flush_ea_cache): Update.
9535         * stabsread.c (define_symbol): Update.
9536         (scan_file_globals): Update.
9537         * stack.c (find_frame_funname): Update.
9538         (frame_info): Update.
9539         * symfile.c (simple_read_overlay_table): Update.
9540         (simple_overlay_update): Update.
9541         * symmisc.c (dump_msymbols): Update.
9542         * symtab.c (fixup_section): Update.
9543         (find_pc_sect_line): Update.
9544         (skip_prologue_sal): Update.
9545         (search_symbols): Update.
9546         (print_msymbol_info): Update.
9547         (rbreak_command): Update.
9548         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9549         (completion_list_objc_symbol): Update.
9550         (default_make_symbol_completion_list_break_on): Update.
9551         * tracepoint.c (scope_info): Update.
9552         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9553         (tui_get_begin_asm_address): Update.
9554         * valops.c (find_function_in_inferior): Update.
9555         * value.c (value_static_field): Update.
9556         (value_fn_field): Update.
9557
9558 2014-02-26  Tom Tromey  <tromey@redhat.com>
9559
9560         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9561         bound minimal symbols.  Move code that knows about minsym
9562         table layout...
9563         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
9564         function.
9565         * minsyms.h (minimal_symbol_upper_bound): Declare.
9566         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9567         minimal_symbol_upper_bound.
9568
9569 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9570
9571         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9572         Use the type's name if its basic type does not have a tag.
9573
9574 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9575
9576         * dwarf2read.c (read_subrange_type): Add comment.
9577
9578 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9579
9580         * dwarf2read.c (update_enumeration_type_from_children): New
9581         function, mostly extracted from process_structure_scope.
9582         (read_enumeration_type): Call update_enumeration_type_from_children.
9583         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9584         and flag_flag_enum fields.
9585
9586 2014-02-26  Pedro Alves  <palves@redhat.com>
9587
9588         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9589         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9590         to_xfer_partial method.
9591
9592 2014-02-26  Pedro Alves  <palves@redhat.com>
9593
9594         * target.c (complete_target_initialization): Don't install
9595         default_xfer_partial as to_xfer_partial hook.
9596         (nomemory): Delete.
9597         (update_current_target): Don't INHERIT nor de_fault
9598         deprecated_xfer_memory.  Delete de_fault macro.
9599         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9600         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9601         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9602         field.
9603
9604 2014-02-26  Pedro Alves  <palves@redhat.com>
9605
9606         * go32-nat.c (my_write_child): New function.
9607         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9608         (go32_xfer_partial): New function.
9609         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9610         Instead install a to_xfer_partial hook.
9611
9612 2014-02-26  Pedro Alves  <palves@redhat.com>
9613
9614         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9615         to_xfer_partial helper.  Rewrite.
9616         (procfs_xfer_partial): New function.
9617         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9618         Install a to_xfer_partial hook.
9619
9620 2014-02-26  Pedro Alves  <palves@redhat.com>
9621
9622         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9623         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9624         (m32r_xfer_partial): New function.
9625         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9626         Install a to_xfer_partial hook.
9627
9628 2014-02-26  Pedro Alves  <palves@redhat.com>
9629
9630         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9631         helper.
9632         (mips_xfer_partial): New function.
9633         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9634         hook.  Install a to_xfer_partial hook.
9635
9636 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
9637
9638         * gdbtypes.h (create_array_type_with_stride): Add declaration.
9639         * gdbtypes.c (create_array_type_with_stride): New function,
9640         renaming create_array_type, but with an added parameter
9641         called "bit_stride".
9642         (create_array_type): Re-implement using
9643         create_array_type_with_stride.
9644         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9645         and DW_AT_bit_stride attributes.
9646
9647 2014-02-26  Pedro Alves  <palves@redhat.com>
9648
9649         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9650         task-specific breakpoints.
9651
9652 2014-02-25  Pedro Alves  <palves@redhat.com>
9653
9654         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9655         handling of object == TARGET_OBJECT_UNWIND_TABLE.
9656
9657 2014-02-25  Stan Shebs  <stan@codesourcery.com>
9658
9659         * defs.h: Annotate comments for Doxygen.
9660
9661 2014-02-25  Tom Tromey  <tromey@redhat.com>
9662
9663         * target.h (target_ignore): Don't declare.
9664         * target.c (target_ignore): Remove.
9665
9666 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
9667
9668         PR gdb/16626
9669         * auto-load.c (auto_load_objfile_script_1): Change filename to
9670         debugfile.
9671
9672 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
9673
9674         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9675         documentation.  Adjust prototype to match the target_ops
9676         to_xfer_partial method.  Adjust implementation accordingly.
9677
9678 2014-02-25  Hui Zhu  <hui@codesourcery.com>
9679
9680         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9681         to_traceframe_info.
9682
9683 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
9684
9685         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9686         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9687         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9688         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9689         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9690         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9691         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9692         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9693         New constants.
9694         (rl78_register_type): Use a data pointer type for SP and
9695         new pseudo registers mentioned above.  Use a 16 bit integer
9696         type for all other register pairs.
9697         (rl78_register_name, rl78_g10_register_name): Update for
9698         new pseudo registers.
9699         (rl78_pseudo_register_read): Likewise.
9700         (rl78_pseudo_register_write): Likewise.
9701         (rl78_dwarf_reg_to_regnum): Return register numbers representing
9702         to the newly added pseudo registers.
9703
9704 2014-02-24  Doug Evans  <dje@google.com>
9705
9706         * value.c (record_latest_value): Fix comment.
9707         * printcmd.c (print_command_1): Remove code to handle -1 return from
9708         record_latest_value.
9709
9710 2014-02-24  Pedro Alves  <palves@redhat.com>
9711
9712         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9713         deprecated_xfer_memory hook.
9714         (procfs_xfer_partial): Call procfs_xfer_memory instead
9715         of the deprecated_xfer_memory target hook.
9716         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9717         helper.
9718
9719 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
9720
9721         * windows-nat.c (windows_xfer_shared_libraries): Return
9722         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9723         requested object is TARGET_OBJECT_LIBRARIES.
9724
9725 2014-02-24  Yao Qi  <yao@codesourcery.com>
9726
9727         * target.h (enum target_xfer_status)
9728         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9729         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9730         explicitly.  New.
9731         * corefile.c (memory_error_message): User updated.
9732         * exec.c (section_table_read_available_memory): Likewise.
9733         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9734         * target.c (target_xfer_status_to_string): Likewise.
9735         (raw_memory_xfer_partial): Likewise.
9736         (memory_xfer_partial_1, target_xfer_partial): Likewise.
9737         * valops.c (read_value_memory): Likewise.
9738         * exec.h: Update comments.
9739
9740 2014-02-24  Yao Qi  <yao@codesourcery.com>
9741
9742         * target.c (target_xfer_status_to_string): Rename argument err
9743         to status.
9744         * target.h (target_xfer_status_to_string): Update declaration.
9745         Replace target_xfer_error_to_string with
9746         target_xfer_status_to_string in comment.
9747
9748 2014-02-24  Yao Qi  <yao@codesourcery.com>
9749
9750         * mips-linux-nat.c (super_close): Update its type.
9751         (mips_linux_close): Pass 'self' to super_close.
9752
9753 2014-02-24  Yao Qi  <yao@codesourcery.com>
9754
9755         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9756         * corefile.c (read_memory): Adjusted.
9757         * target.c (target_write_with_progress): Adjusted.
9758
9759 2014-02-23  Yao Qi  <yao@codesourcery.com>
9760
9761         Revert two patches:
9762
9763         2013-10-25  Yao Qi  <yao@codesourcery.com>
9764
9765         * remote.c (remote_traceframe_info): Return early if
9766         traceframe is not selected.
9767
9768         2013-07-19  Yao Qi  <yao@codesourcery.com>
9769
9770         * target.c (update_current_target): Change the default action
9771         of 'to_traceframe_info' from tcomplain to return_zero.
9772         * target.h (struct target_ops) <to_traceframe_info>: Add more
9773         comments.
9774
9775 2014-02-23  Yao Qi  <yao@codesourcery.com>
9776
9777         * valops.c (read_value_memory): Rewrite it.  Call
9778         target_xfer_partial in a loop.
9779         * exec.h (section_table_available_memory): Remove declaration.
9780         Move comments to ...
9781         * exec.c (section_table_available_memory): ... here.  Make it
9782         static.
9783
9784 2014-02-23  Yao Qi  <yao@codesourcery.com>
9785
9786         * exec.c (section_table_read_available_memory): New function.
9787         * exec.h (section_table_read_available_memory): Declare.
9788         * ctf.c (ctf_xfer_partial): Call
9789         section_table_read_available_memory.
9790         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9791
9792 2014-02-23  Yao Qi  <yao@codesourcery.com>
9793
9794         * ctf.c (ctf_xfer_partial): Move code to ...
9795         * exec.c (exec_read_partial_read_only): ... it.  New function.
9796         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9797         * tracefile.c: Include "exec.h".
9798         * exec.h (exec_read_partial_read_only): Declare.
9799
9800 2014-02-23  Yao Qi  <yao@codesourcery.com>
9801
9802         * tracefile-tfile.c (tfile_has_all_memory): Remove.
9803         (tfile_has_memory): Remove.
9804         (init_tfile_ops): Don't set fields to_has_all_memory and
9805         to_has_memory of tfile_ops.
9806         * tracefile.c (tracefile_has_all_memory): New function.
9807         (tracefile_has_memory): New function.
9808         (init_tracefile_ops): Initialize fields to_has_all_memory and
9809         to_has_memory of 'ops'.
9810
9811 2014-02-23  Yao Qi  <yao@codesourcery.com>
9812
9813         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9814         (ctf_thread_alive, ctf_get_trace_status): Remove.
9815         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
9816         init_tracefile_ops.
9817         * tracefile-tfile.c (tfile_get_trace_status): Remove.
9818         (tfile_has_stack, tfile_has_registers): Remove.
9819         (tfile_thread_alive): Remove.
9820         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
9821         init_tracefile_ops.
9822         * tracefile.c (tracefile_has_stack): New function.
9823         (tracefile_has_registers): New function.
9824         (tracefile_thread_alive): New function.
9825         (tracefile_get_trace_status): New function.
9826         (init_tracefile_ops): New function.
9827         * tracefile.h (init_tracefile_ops): Declare.
9828
9829 2014-02-23  Yao Qi  <yao@codesourcery.com>
9830
9831         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9832         (O_LARGEFILE): Likewise.
9833         (tfile_ops): Likewise.
9834         (TRACE_HEADER_SIZE): Likewise.
9835         (trace_fd, trace_frames_offset, cur_offset): Likewise.
9836         (cur_data_size): Likewise.
9837         (tfile_read, tfile_open, tfile_interp_line): Likewise.
9838         (tfile_close, tfile_files_info): Likewise.
9839         (tfile_get_trace_status): Likewise.
9840         (tfile_get_tracepoint_status): Likewise.
9841         (tfile_get_traceframe_address): Likewise.
9842         (tfile_trace_find, match_blocktype): Likewise.
9843         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9844         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9845         (tfile_get_trace_state_variable_value): Likewise.
9846         (tfile_has_all_memory, tfile_has_memory): Likewise.
9847         (tfile_has_stack, tfile_has_registers): Likewise.
9848         (tfile_thread_alive, build_traceframe_info): Likewise.
9849         (tfile_traceframe_info, init_tfile_ops): Likewise.
9850         (_initialize_tracepoint): Don't call init_tfile_ops
9851         and add_target_with_completer.
9852         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9853         exec.h, completer.h and filenames.h.
9854         (_initialize_tracefile_tfile): New function.
9855
9856 2014-02-23  Yao Qi  <yao@codesourcery.com>
9857
9858         * Makefile.in (REMOTE_OBS): Append tracefile.o and
9859         tracefile-tfile.o.
9860         (HFILES_NO_SRCDIR): Add tracefile.h.
9861         * ctf.c: Include "tracefile.h".
9862         * tracefile.h: New file.
9863         * tracefile.c: New file
9864         * tracefile-tfile.c: New file.
9865         * tracepoint.c: Include "tracefile.h".
9866         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9867         (stop_reason_names): Add const.
9868         (trace_file_writer_xfree): Move it to tracefile.c.
9869         (trace_save, trace_save_command, trace_save_tfile): Likewise.
9870         (trace_save_ctf): Likewise.
9871         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9872         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9873         (tfile_write_header, tfile_write_regblock_type): Likewise.
9874         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9875         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9876         (tfile_write_raw_data, tfile_end): Likewise.
9877         (tfile_trace_file_writer_new): Likewise.
9878         (free_uploaded_tp): Make it extern.
9879         (free_uploaded_tsv): Make it extern.
9880         (_initialize_tracepoint): Move code to register command 'tsave'
9881         to tracefile.c.
9882         * tracepoint.h (stop_reason_names): Declare.
9883         (struct trace_frame_write_ops): Move it to tracefile.h.
9884         (struct trace_file_write_ops): Likewise.
9885         (struct trace_file_writer): Likewise.
9886         (free_uploaded_tsvs, free_uploaded_tps): Declare.
9887
9888 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9889
9890         PR gdb/16594
9891         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9892         process name.
9893         (get_cores_used_by_process): New parameter num_cores, use it.
9894         (linux_xfer_osdata_processes): Pass num_cores to it.
9895         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9896         process name.
9897
9898 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9899
9900         * target.c (memory_xfer_partial): Fix length arg in call to
9901         breakpoint_xfer_memory.
9902
9903 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
9904
9905         PR tdep/16397
9906         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9907         number comes after the + or - signs.  Adjust length of register
9908         name to be extracted.
9909
9910 2014-02-20  Tom Tromey  <tromey@redhat.com>
9911
9912         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9913         (ada_varobj_ops): Mark "extern".
9914
9915 2014-02-20  Tom Tromey  <tromey@redhat.com>
9916
9917         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9918
9919 2014-02-20  Doug Evans  <xdje42@gmail.com>
9920
9921         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9922         All callers updated.
9923         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9924         All callers updated.
9925         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9926         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9927
9928 2014-02-20  lin zuojian  <manjian2006@gmail.com>
9929             Joel Brobecker  <brobecker@adacore.com>
9930             Doug Evans  <xdje42@gmail.com>
9931
9932         PR symtab/16581
9933         * dwarf2read.c (struct die_info): New member in_process.
9934         (reset_die_in_process): New function.
9935         (process_die): Set it at the start, reset when returning.
9936         (inherit_abstract_dies): Only call process_die if origin_child_die
9937         not already being processed.
9938
9939 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9940
9941         * windows-nat.c (handle_unload_dll): Add function documentation.
9942         (do_initial_windows_stuff): Add comment explaining why we wait
9943         until after inferior initialization has finished before
9944         processing all DLLs.
9945
9946 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9947
9948         * windows-nat.c (get_module_name): Delete.
9949         (windows_get_exec_module_filename): New function, mostly
9950         inspired from get_module_name.
9951         (windows_pid_to_exec_file): Replace call to get_module_name
9952         by call to windows_get_exec_module_filename.
9953
9954 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9955
9956         * windows-nat.c (handle_load_dll): Rewrite this function's
9957         introductory comment.  Remove code using get_module_name
9958         to get the DLL's name.
9959
9960 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9961
9962         * windows-nat.c (get_windows_debug_event): Ignore
9963         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9964         if windows_initialization_done == 0.
9965         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9966         Adjust implementation to always load all DLLs.
9967         (do_initial_windows_stuff): Replace call to
9968         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9969
9970 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9971
9972         * windows-nat.c (_initialize_windows_nat): Deprecate the
9973         "dll-symbols" command.  Turn the "add-shared-symbol-files"
9974         and "assf" aliases into commands, and deprecate them as well.
9975         * NEWS: Add entry explaining that "dll-symbols" and its two
9976         aliases are now deprecated.
9977
9978 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
9979
9980         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9981         new-line in debug string.  Remove trailing spaces.
9982
9983 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9984
9985         * darwin-nat.c (darwin_xfer_partial): Fix return type.
9986
9987 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
9988
9989         * NEWS: Add entry for the new feature
9990         * python/py-value.c (valpy_binop): Call value_x_binop for struct
9991         and class values.
9992
9993 2014-02-19  Stan Shebs  <stan@codesourcery.com>
9994
9995         * MAINTAINERS: List Yao Qi as nios2 maintainer.
9996
9997 2014-02-19  Pedro Alves  <palves@redhat.com>
9998
9999         * common/ptid.h (struct ptid): Mention that process_stratum
10000         targets should prefer ptid.lwp.
10001
10002 2014-02-19  Pedro Alves  <palves@redhat.com>
10003
10004         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10005         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10006         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10007         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10008         store remote thread ids rather than ptid.tid.
10009         (_initialize_remote): Adjust.
10010
10011 2014-02-19  Tom Tromey  <tromey@redhat.com>
10012
10013         * target.c (target_get_unwinder): Rewrite.
10014         (target_get_tailcall_unwinder): Rewrite.
10015         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10016         (record_btrace_to_get_tailcall_unwinder): New function.
10017         (init_record_btrace_ops): Update.
10018         * target.h (struct target_ops) <to_get_unwinder,
10019         to_get_tailcall_unwinder>: Now function pointers.  Use
10020         TARGET_DEFAULT_RETURN.
10021
10022 2014-02-19  Tom Tromey  <tromey@redhat.com>
10023
10024         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10025         argument.
10026         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10027
10028 2014-02-19  Tom Tromey  <tromey@redhat.com>
10029
10030         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10031         directly.
10032         * target-delegates.c: Rebuild.
10033         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10034         TARGET_DEFAULT_FUNC.
10035         * target.c (default_target_decr_pc_after_break): Rename from
10036         forward_target_decr_pc_after_break.  Simplify.
10037         (target_decr_pc_after_break): Rely on delegation.
10038
10039 2014-02-19  Tom Tromey  <tromey@redhat.com>
10040
10041         * target.c (update_current_target): Do not INHERIT to_doc or
10042         to_magic.  Do not de_fault to_open or to_close.
10043
10044 2014-02-19  Tom Tromey  <tromey@redhat.com>
10045
10046         * gcore.h (objfile_find_memory_regions): Declare.
10047         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10048         "self" argument.
10049         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10050         * exec.c: Include gcore.h.
10051         (exec_set_find_memory_regions): Remove.
10052         (exec_find_memory_regions): Remove.
10053         (exec_do_find_memory_regions): Remove.
10054         (init_exec_ops): Update.
10055         * defs.h (exec_set_find_memory_regions): Remove.
10056
10057 2014-02-19  Tom Tromey  <tromey@redhat.com>
10058
10059         * target-delegates.c: Rebuild.
10060         * target.h (struct target_ops) <to_extra_thread_info,
10061         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10062         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10063         not 0, in TARGET_DEFAULT_RETURN.
10064
10065 2014-02-19  Tom Tromey  <tromey@redhat.com>
10066
10067         * target.c (complete_target_initialization): Remove casts.  Use
10068         return_zero_has_execution.
10069         (return_zero): Add "ignore" argument.
10070         (return_zero_has_execution): New function.
10071         (init_dummy_target): Remove casts.  Use
10072         return_zero_has_execution.
10073
10074 2014-02-19  Tom Tromey  <tromey@redhat.com>
10075
10076         * target.c (update_current_target): Update comments.  Do not
10077         INHERIT to_stratum.
10078
10079 2014-02-19  Tom Tromey  <tromey@redhat.com>
10080
10081         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10082         needed.
10083         * corelow.c (core_read_description): Delegate when needed.
10084         * remote.c (remote_read_description): Delegate when needed.
10085         * target-delegates.c: Rebuild.
10086         * target.c (target_read_description): Rewrite.
10087         * target.h (struct target_ops) <to_read_description>: Update
10088         comment.  Use TARGET_DEFAULT_RETURN.
10089
10090 2014-02-19  Tom Tromey  <tromey@redhat.com>
10091
10092         * target-delegates.c: Rebuild.
10093         * target.c (update_current_target): Don't inherit or default
10094         to_can_run.
10095         (find_default_run_target): Check against delegate_can_run.
10096         * target.h (struct target_ops) <to_can_run>: Use
10097         TARGET_DEFAULT_RETURN.
10098
10099 2014-02-19  Tom Tromey  <tromey@redhat.com>
10100
10101         * target-delegates.c: Rebuild.
10102         * target.c (target_disconnect): Unconditionally delegate.
10103         * target.h (struct target_ops) <to_disconnect>: Use
10104         TARGET_DEFAULT_NORETURN.
10105
10106 2014-02-19  Tom Tromey  <tromey@redhat.com>
10107
10108         * record.c (record_stop): Unconditionally delegate.
10109         * target-delegates.c: Rebuild.
10110         * target.c (target_stop_recording): Unconditionally delegate.
10111         * target.h (struct target_ops) <to_stop_recording>: Use
10112         TARGET_DEFAULT_IGNORE.
10113
10114 2014-02-19  Tom Tromey  <tromey@redhat.com>
10115
10116         * target-delegates.c: Rebuild.
10117         * target.c (target_enable_btrace): Unconditionally delegate.
10118         * target.h (struct target_ops) <to_enable_btrace>: Use
10119         TARGET_DEFAULT_NORETURN.
10120
10121 2014-02-19  Tom Tromey  <tromey@redhat.com>
10122
10123         * target-delegates.c: Rebuild.
10124         * target.c (target_read_btrace): Unconditionally delegate.
10125         * target.h (struct target_ops) <to_read_btrace>: Use
10126         TARGET_DEFAULT_NORETURN.
10127
10128 2014-02-19  Tom Tromey  <tromey@redhat.com>
10129
10130         * target-delegates.c: Rebuild.
10131         * target.c (target_teardown_btrace): Unconditionally delegate.
10132         * target.h (struct target_ops) <to_teardown_btrace>: Use
10133         TARGET_DEFAULT_NORETURN.
10134
10135 2014-02-19  Tom Tromey  <tromey@redhat.com>
10136
10137         * target-delegates.c: Rebuild.
10138         * target.c (target_disable_btrace): Unconditionally delegate.
10139         * target.h (struct target_ops) <to_disable_btrace>: Use
10140         TARGET_DEFAULT_NORETURN.
10141
10142 2014-02-19  Tom Tromey  <tromey@redhat.com>
10143
10144         * target-delegates.c: Rebuild.
10145         * target.c (default_search_memory): New function.
10146         (simple_search_memory): Update comment.
10147         (target_search_memory): Unconditionally delegate.
10148         * target.h (struct target_ops) <to_search_memory>: Use
10149         TARGET_DEFAULT_FUNC.
10150
10151 2014-02-19  Tom Tromey  <tromey@redhat.com>
10152
10153         * auxv.c (default_auxv_parse): No longer static.
10154         (target_auxv_parse): Unconditionally delegate.
10155         * auxv.h (default_auxv_parse): Declare.
10156         * target-delegates.c: Rebuild.
10157         * target.c: Include auxv.h.
10158         * target.h (struct target_ops) <to_auxv_parse>: Use
10159         TARGET_DEFAULT_FUNC.
10160
10161 2014-02-19  Tom Tromey  <tromey@redhat.com>
10162
10163         * target-delegates.c: Rebuild.
10164         * target.c (target_memory_map): Unconditionally delegate.
10165         * target.h (struct target_ops) <to_memory_map>: Use
10166         TARGET_DEFAULT_RETURN.
10167
10168 2014-02-19  Tom Tromey  <tromey@redhat.com>
10169
10170         * target-delegates.c: Rebuild.
10171         * target.c (target_thread_alive): Unconditionally delegate.
10172         * target.h (struct target_ops) <to_thread_alive>: Use
10173         TARGET_DEFAULT_RETURN.
10174
10175 2014-02-19  Tom Tromey  <tromey@redhat.com>
10176
10177         * target-delegates.c: Rebuild.
10178         * target.c (target_save_record): Unconditionally delegate.
10179         * target.h (struct target_ops) <to_save_record>: Use
10180         TARGET_DEFAULT_NORETURN.
10181
10182 2014-02-19  Tom Tromey  <tromey@redhat.com>
10183
10184         * target-delegates.c: Rebuild.
10185         * target.c (target_delete_record): Unconditionally delegate.
10186         * target.h (struct target_ops) <to_delete_record>: Use
10187         TARGET_DEFAULT_NORETURN.
10188
10189 2014-02-19  Tom Tromey  <tromey@redhat.com>
10190
10191         * target-delegates.c: Rebuild.
10192         * target.c (target_record_is_replaying): Unconditionally
10193         delegate.
10194         * target.h (struct target_ops) <to_record_is_replaying>: Use
10195         TARGET_DEFAULT_RETURN.
10196
10197 2014-02-19  Tom Tromey  <tromey@redhat.com>
10198
10199         * target-delegates.c: Rebuild.
10200         * target.c (target_goto_record_begin): Unconditionally delegate.
10201         * target.h (struct target_ops) <to_goto_record_begin>: Use
10202         TARGET_DEFAULT_NORETURN.
10203
10204 2014-02-19  Tom Tromey  <tromey@redhat.com>
10205
10206         * target-delegates.c: Rebuild.
10207         * target.c (target_goto_record_end): Unconditionally delegate.
10208         * target.h (struct target_ops) <to_goto_record_end>: Use
10209         TARGET_DEFAULT_NORETURN.
10210
10211 2014-02-19  Tom Tromey  <tromey@redhat.com>
10212
10213         * target-delegates.c: Rebuild.
10214         * target.c (target_goto_record): Unconditionally delegate.
10215         * target.h (struct target_ops) <to_goto_record>: Use
10216         TARGET_DEFAULT_NORETURN.
10217
10218 2014-02-19  Tom Tromey  <tromey@redhat.com>
10219
10220         * target-delegates.c: Rebuild.
10221         * target.c (target_insn_history): Unconditionally delegate.
10222         * target.h (struct target_ops) <to_insn_history>: Use
10223         TARGET_DEFAULT_NORETURN.
10224
10225 2014-02-19  Tom Tromey  <tromey@redhat.com>
10226
10227         * target-delegates.c: Rebuild.
10228         * target.c (target_insn_history_from): Unconditionally delegate.
10229         * target.h (struct target_ops) <to_insn_history_from>: Use
10230         TARGET_DEFAULT_NORETURN.
10231
10232 2014-02-19  Tom Tromey  <tromey@redhat.com>
10233
10234         * target-delegates.c: Rebuild.
10235         * target.c (target_insn_history_range): Unconditionally delegate.
10236         * target.h (struct target_ops) <to_insn_history_range>: Use
10237         TARGET_DEFAULT_NORETURN.
10238
10239 2014-02-19  Tom Tromey  <tromey@redhat.com>
10240
10241         * target-delegates.c: Rebuild.
10242         * target.c (target_call_history): Unconditionally delegate.
10243         * target.h (struct target_ops) <to_call_history>: Use
10244         TARGET_DEFAULT_NORETURN.
10245
10246 2014-02-19  Tom Tromey  <tromey@redhat.com>
10247
10248         * target-delegates.c: Rebuild.
10249         * target.c (target_call_history_from): Unconditionally delegate.
10250         * target.h (struct target_ops) <to_call_history_from>: Use
10251         TARGET_DEFAULT_NORETURN.
10252
10253 2014-02-19  Tom Tromey  <tromey@redhat.com>
10254
10255         * target-delegates.c: Rebuild.
10256         * target.c (target_call_history_range): Unconditionally delegate.
10257         * target.h (struct target_ops) <to_call_history_range>: Use
10258         TARGET_DEFAULT_NORETURN.
10259
10260 2014-02-19  Tom Tromey  <tromey@redhat.com>
10261
10262         * target-delegates.c: Rebuild.
10263         * target.c (target_verify_memory): Unconditionally delegate.
10264         * target.h (struct target_ops) <to_verify_memory>: Use
10265         TARGET_DEFAULT_NORETURN.
10266
10267 2014-02-19  Tom Tromey  <tromey@redhat.com>
10268
10269         * target-delegates.c: Rebuild.
10270         * target.c (target_core_of_thread): Unconditionally delegate.
10271         * target.h (struct target_ops) <to_core_of_thread>: Use
10272         TARGET_DEFAULT_RETURN.
10273
10274 2014-02-19  Tom Tromey  <tromey@redhat.com>
10275
10276         * target-delegates.c: Rebuild.
10277         * target.c (target_flash_done): Unconditionally delegate.
10278         * target.h (struct target_ops) <to_flash_done>: Use
10279         TARGET_DEFAULT_NORETURN.
10280
10281 2014-02-19  Tom Tromey  <tromey@redhat.com>
10282
10283         * target-delegates.c: Rebuild.
10284         * target.c (target_flash_erase): Unconditionally delegate.
10285         * target.h (struct target_ops) <to_flash_erase>: Use
10286         TARGET_DEFAULT_NORETURN.
10287
10288 2014-02-19  Tom Tromey  <tromey@redhat.com>
10289
10290         * target-delegates.c: Rebuild.
10291         * target.c (target_get_section_table): Unconditionally delegate.
10292         * target.h (struct target_ops) <to_get_section_table>: Use
10293         TARGET_DEFAULT_RETURN.
10294
10295 2014-02-19  Tom Tromey  <tromey@redhat.com>
10296
10297         * target-delegates.c: Rebuild.
10298         * target.c (target_pid_to_str): Unconditionally delegate.
10299         (init_dummy_target): Don't initialize to_pid_to_str.
10300         (default_pid_to_str): Rename from dummy_pid_to_str.
10301         * target.h (struct target_ops) <to_pid_to_str>: Use
10302         TARGET_DEFAULT_FUNC.
10303
10304 2014-02-19  Tom Tromey  <tromey@redhat.com>
10305
10306         * target-delegates.c: Rebuild.
10307         * target.c (target_find_new_threads): Unconditionally delegate.
10308         * target.h (struct target_ops) <to_find_new_threads>: Use
10309         TARGET_DEFAULT_RETURN.
10310
10311 2014-02-19  Tom Tromey  <tromey@redhat.com>
10312
10313         * target-delegates.c: Rebuild.
10314         * target.c (target_program_signals): Unconditionally delegate.
10315         * target.h (struct target_ops) <to_program_signals>: Use
10316         TARGET_DEFAULT_IGNORE.
10317
10318 2014-02-19  Tom Tromey  <tromey@redhat.com>
10319
10320         * target-delegates.c: Rebuild.
10321         * target.c (target_pass_signals): Unconditionally delegate.
10322         * target.h (struct target_ops) <to_pass_signals>: Use
10323         TARGET_DEFAULT_IGNORE.
10324
10325 2014-02-19  Tom Tromey  <tromey@redhat.com>
10326
10327         * target-delegates.c: Rebuild.
10328         * target.c (default_mourn_inferior): New function.
10329         (target_mourn_inferior): Unconditionally delegate.
10330         * target.h (struct target_ops) <to_mourn_inferior>: Use
10331         TARGET_DEFAULT_FUNC.
10332
10333 2014-02-19  Tom Tromey  <tromey@redhat.com>
10334
10335         * target-delegates.c: Rebuild.
10336         * target.c (default_follow_fork): New function.
10337         (target_follow_fork): Unconditionally delegate.
10338         * target.h (struct target_ops) <to_follow_fork>: Use
10339         TARGET_DEFAULT_FUNC.
10340
10341 2014-02-19  Tom Tromey  <tromey@redhat.com>
10342
10343         * target-delegates.c: Rebuild.
10344         * target.c (target_kill): Unconditionally delegate.
10345         * target.h (struct target_ops) <to_kill>: Use
10346         TARGET_DEFAULT_NORETURN.
10347
10348 2014-02-19  Tom Tromey  <tromey@redhat.com>
10349
10350         * target-delegates.c: Rebuild.
10351         * target.c (target_masked_watch_num_registers): Unconditionally
10352         delegate.
10353         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10354         Use TARGET_DEFAULT_RETURN.
10355
10356 2014-02-19  Tom Tromey  <tromey@redhat.com>
10357
10358         * target-delegates.c: Rebuild.
10359         * target.c (target_remove_mask_watchpoint): Unconditionally
10360         delegate.
10361         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10362         TARGET_DEFAULT_RETURN.
10363
10364 2014-02-19  Tom Tromey  <tromey@redhat.com>
10365
10366         * target-delegates.c: Rebuild.
10367         * target.c (target_insert_mask_watchpoint): Unconditionally
10368         delegate.
10369         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10370         TARGET_DEFAULT_RETURN.
10371
10372 2014-02-19  Tom Tromey  <tromey@redhat.com>
10373
10374         * target-delegates.c: Rebuild.
10375         * target.c (target_ranged_break_num_registers): Unconditionally
10376         delegate.
10377         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10378         Use TARGET_DEFAULT_RETURN.
10379
10380 2014-02-19  Tom Tromey  <tromey@redhat.com>
10381
10382         * target-delegates.c: Rebuild.
10383         * target.c (target_fetch_registers): Unconditionally delegate.
10384         * target.h (struct target_ops) <to_fetch_registers>: Use
10385         TARGET_DEFAULT_NORETURN.
10386
10387 2014-02-19  Tom Tromey  <tromey@redhat.com>
10388
10389         * target-delegates.c: Rebuild.
10390         * target.c (update_current_target): Don't inherit or default
10391         to_stop.
10392         * target.h (struct target_ops) <to_stop>: Use
10393         TARGET_DEFAULT_IGNORE.
10394
10395 2014-02-19  Tom Tromey  <tromey@redhat.com>
10396
10397         * target-delegates.c: Rebuild.
10398         * target.c (update_current_target): Don't inherit or default
10399         to_can_run_breakpoint_commands.
10400         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10401         Use TARGET_DEFAULT_RETURN.
10402
10403 2014-02-19  Tom Tromey  <tromey@redhat.com>
10404
10405         * target-delegates.c: Rebuild.
10406         * target.c (update_current_target): Don't inherit or default
10407         to_supports_evaluation_of_breakpoint_conditions.
10408         * target.h (struct target_ops)
10409         <to_supports_evaluation_of_breakpoint_conditions>: Use
10410         TARGET_DEFAULT_RETURN.
10411
10412 2014-02-19  Tom Tromey  <tromey@redhat.com>
10413
10414         * target-delegates.c: Rebuild.
10415         * target.c (update_current_target): Don't inherit or default
10416         to_augmented_libraries_svr4_read.
10417         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10418         Use TARGET_DEFAULT_RETURN.
10419
10420 2014-02-19  Tom Tromey  <tromey@redhat.com>
10421
10422         * target-delegates.c: Rebuild.
10423         * target.c (update_current_target): Don't inherit or default
10424         to_can_use_agent.
10425         * target.h (struct target_ops) <to_can_use_agent>: Use
10426         TARGET_DEFAULT_RETURN.
10427
10428 2014-02-19  Tom Tromey  <tromey@redhat.com>
10429
10430         * target-delegates.c: Rebuild.
10431         * target.c (update_current_target): Don't inherit or default
10432         to_use_agent.
10433         * target.h (struct target_ops) <to_use_agent>: Use
10434         TARGET_DEFAULT_NORETURN.
10435
10436 2014-02-19  Tom Tromey  <tromey@redhat.com>
10437
10438         * target-delegates.c: Rebuild.
10439         * target.c (update_current_target): Don't inherit or default
10440         to_traceframe_info.
10441         (return_null): Remove.
10442         * target.h (struct target_ops) <to_traceframe_info>: Use
10443         TARGET_DEFAULT_RETURN.
10444
10445 2014-02-19  Tom Tromey  <tromey@redhat.com>
10446
10447         * target-delegates.c: Rebuild.
10448         * target.c (update_current_target): Don't inherit or default
10449         to_static_tracepoint_markers_by_strid.
10450         * target.h (struct target_ops)
10451         <to_static_tracepoint_markers_by_strid>: Use
10452         TARGET_DEFAULT_NORETURN.
10453
10454 2014-02-19  Tom Tromey  <tromey@redhat.com>
10455
10456         * target-delegates.c: Rebuild.
10457         * target.c (update_current_target): Don't inherit or default
10458         to_static_tracepoint_marker_at.
10459         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10460         Use TARGET_DEFAULT_RETURN.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * target-delegates.c: Rebuild.
10465         * target.c (update_current_target): Don't inherit or default
10466         to_set_permissions.
10467         * target.h (struct target_ops) <to_set_permissions>: Use
10468         TARGET_DEFAULT_IGNORE.
10469
10470 2014-02-19  Tom Tromey  <tromey@redhat.com>
10471
10472         * target-delegates.c: Rebuild.
10473         * target.c (update_current_target): Don't inherit or default
10474         to_get_tib_address.
10475         * target.h (struct target_ops) <to_get_tib_address>: Use
10476         TARGET_DEFAULT_NORETURN.
10477
10478 2014-02-19  Tom Tromey  <tromey@redhat.com>
10479
10480         * target-delegates.c: Rebuild.
10481         * target.c (update_current_target): Don't inherit or default
10482         to_set_trace_notes.
10483         * target.h (struct target_ops) <to_set_trace_notes>: Use
10484         TARGET_DEFAULT_RETURN.
10485
10486 2014-02-19  Tom Tromey  <tromey@redhat.com>
10487
10488         * target-delegates.c: Rebuild.
10489         * target.c (update_current_target): Don't initialize
10490         to_set_trace_buffer_size.
10491         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10492         TARGET_DEFAULT_IGNORE.
10493
10494 2014-02-19  Tom Tromey  <tromey@redhat.com>
10495
10496         * target-delegates.c: Rebuild.
10497         * target.c (update_current_target): Don't inherit or default
10498         to_set_circular_trace_buffer.
10499         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10500         TARGET_DEFAULT_IGNORE.
10501
10502 2014-02-19  Tom Tromey  <tromey@redhat.com>
10503
10504         * target-delegates.c: Rebuild.
10505         * target.c (update_current_target): Don't inherit or default
10506         to_set_disconnected_tracing.
10507         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10508         TARGET_DEFAULT_IGNORE.
10509
10510 2014-02-19  Tom Tromey  <tromey@redhat.com>
10511
10512         * target-delegates.c: Rebuild.
10513         * target.c (update_current_target): Don't inherit or default
10514         to_get_min_fast_tracepoint_insn_len.
10515         (return_minus_one): Remove.
10516         * target.h (struct target_ops)
10517         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10518
10519 2014-02-19  Tom Tromey  <tromey@redhat.com>
10520
10521         * target-delegates.c: Rebuild.
10522         * target.c (update_current_target): Don't inherit or default
10523         to_get_raw_trace_data.
10524         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10525         TARGET_DEFAULT_NORETURN.
10526
10527 2014-02-19  Tom Tromey  <tromey@redhat.com>
10528
10529         * target-delegates.c: Rebuild.
10530         * target.c (update_current_target): Don't inherit or default
10531         to_upload_trace_state_variables.
10532         * target.h (struct target_ops) <to_upload_trace_state_variables>:
10533         Use TARGET_DEFAULT_RETURN.
10534
10535 2014-02-19  Tom Tromey  <tromey@redhat.com>
10536
10537         * target-delegates.c: Rebuild.
10538         * target.c (update_current_target): Don't inherit or default
10539         to_upload_tracepoints.
10540         * target.h (struct target_ops) <to_upload_tracepoints>: Use
10541         TARGET_DEFAULT_RETURN.
10542
10543 2014-02-19  Tom Tromey  <tromey@redhat.com>
10544
10545         * target-delegates.c: Rebuild.
10546         * target.c (update_current_target): Don't inherit or default
10547         to_save_trace_data.
10548         * target.h (struct target_ops) <to_save_trace_data>: Use
10549         TARGET_DEFAULT_NORETURN.
10550
10551 2014-02-19  Tom Tromey  <tromey@redhat.com>
10552
10553         * target-delegates.c: Rebuild.
10554         * target.c (update_current_target): Don't inherit or default
10555         to_get_trace_state_variable_value.
10556         * target.h (struct target_ops)
10557         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10558
10559 2014-02-19  Tom Tromey  <tromey@redhat.com>
10560
10561         * target-delegates.c: Rebuild.
10562         * target.c (update_current_target): Don't inherit or default
10563         to_trace_find.
10564         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10565
10566 2014-02-19  Tom Tromey  <tromey@redhat.com>
10567
10568         * target-delegates.c: Rebuild.
10569         * target.c (update_current_target): Don't inherit or default
10570         to_trace_stop.
10571         * target.h (struct target_ops) <to_trace_stop>: Use
10572         TARGET_DEFAULT_NORETURN.
10573
10574 2014-02-19  Tom Tromey  <tromey@redhat.com>
10575
10576         * target-delegates.c: Rebuild.
10577         * target.c (update_current_target): Don't inherit or default
10578         to_get_tracepoint_status.
10579         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10580         TARGET_DEFAULT_NORETURN.
10581
10582 2014-02-19  Tom Tromey  <tromey@redhat.com>
10583
10584         * target-delegates.c: Rebuild.
10585         * target.c (update_current_target): Don't inherit or default
10586         to_get_trace_status.
10587         * target.h (struct target_ops) <to_get_trace_status>: Use
10588         TARGET_DEFAULT_RETURN.
10589
10590 2014-02-19  Tom Tromey  <tromey@redhat.com>
10591
10592         * target-delegates.c: Rebuild.
10593         * target.c (update_current_target): Don't inherit or default
10594         to_trace_start.
10595         * target.h (struct target_ops) <to_trace_start>: Use
10596         TARGET_DEFAULT_NORETURN.
10597
10598 2014-02-19  Tom Tromey  <tromey@redhat.com>
10599
10600         * target-delegates.c: Rebuild.
10601         * target.c (update_current_target): Don't inherit or default
10602         to_trace_set_readonly_regions.
10603         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10604         Use TARGET_DEFAULT_NORETURN.
10605
10606 2014-02-19  Tom Tromey  <tromey@redhat.com>
10607
10608         * target-delegates.c: Rebuild.
10609         * target.c (update_current_target): Don't inherit or default
10610         to_disable_tracepoint.
10611         * target.h (struct target_ops) <to_disable_tracepoint>: Use
10612         TARGET_DEFAULT_NORETURN.
10613
10614 2014-02-19  Tom Tromey  <tromey@redhat.com>
10615
10616         * target-delegates.c: Rebuild.
10617         * target.c (update_current_target): Don't inherit or default
10618         to_enable_tracepoint.
10619         * target.h (struct target_ops) <to_enable_tracepoint>: Use
10620         TARGET_DEFAULT_NORETURN.
10621
10622 2014-02-19  Tom Tromey  <tromey@redhat.com>
10623
10624         * target-delegates.c: Rebuild.
10625         * target.c (update_current_target): Don't inherit or default
10626         to_download_trace_state_variable.
10627         * target.h (struct target_ops) <to_download_trace_state_variable>:
10628         Use TARGET_DEFAULT_NORETURN.
10629
10630 2014-02-19  Tom Tromey  <tromey@redhat.com>
10631
10632         * target-delegates.c: Rebuild.
10633         * target.c (update_current_target): Don't inherit or default
10634         to_can_download_tracepoint.
10635         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10636         TARGET_DEFAULT_RETURN.
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_download_tracepoint.
10643         * target.h (struct target_ops) <to_download_tracepoint>: Use
10644         TARGET_DEFAULT_NORETURN.
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_trace_init.
10651         * target.h (struct target_ops) <to_trace_init>: Use
10652         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_string_tracing.
10659         * target.h (struct target_ops) <to_supports_string_tracing>: Use
10660         TARGET_DEFAULT_RETURN.
10661
10662 2014-02-19  Tom Tromey  <tromey@redhat.com>
10663
10664         * target-delegates.c: Rebuild.
10665         * target.c (update_current_target): Don't inherit or default
10666         to_supports_enable_disable_tracepoint.
10667         * target.h (struct target_ops)
10668         <to_supports_enable_disable_tracepoint>: Use
10669         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_supports_multi_process.
10676         * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
10684         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10685         TARGET_DEFAULT_FUNC.
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_thread_architecture.
10692         * target.h (struct target_ops) <to_thread_architecture>: Use
10693         TARGET_DEFAULT_FUNC.
10694
10695 2014-02-19  Tom Tromey  <tromey@redhat.com>
10696
10697         * target-delegates.c: Rebuild.
10698         * target.c (update_current_target): Don't inherit or default
10699         to_execution_direction.
10700         * target.h (struct target_ops) <to_execution_direction>: Use
10701         TARGET_DEFAULT_FUNC.
10702
10703 2014-02-19  Tom Tromey  <tromey@redhat.com>
10704
10705         * target-delegates.c: Rebuild.
10706         * target.c (update_current_target): Don't inherit or default
10707         to_can_execute_reverse.
10708         * target.h (struct target_ops) <to_can_execute_reverse>: Use
10709         TARGET_DEFAULT_RETURN.
10710         (target_can_execute_reverse): Unconditionally delegate.
10711
10712 2014-02-19  Tom Tromey  <tromey@redhat.com>
10713
10714         * target-delegates.c: Rebuild.
10715         * target.c (update_current_target): Don't inherit or default
10716         to_goto_bookmark.
10717         (dummy_goto_bookmark): Remove.
10718         (init_dummy_target): Don't inherit or default to_goto_bookmark.
10719         * target.h (struct target_ops) <to_goto_bookmark>: Use
10720         TARGET_DEFAULT_NORETURN.
10721
10722 2014-02-19  Tom Tromey  <tromey@redhat.com>
10723
10724         * target-delegates.c: Rebuild.
10725         * target.c (update_current_target): Don't inherit or default
10726         to_get_bookmark.
10727         (dummy_get_bookmark): Remove.
10728         (init_dummy_target): Don't inherit or default to_get_bookmark.
10729         * target.h (struct target_ops) <to_get_bookmark>: Use
10730         TARGET_DEFAULT_NORETURN
10731
10732 2014-02-19  Tom Tromey  <tromey@redhat.com>
10733
10734         * target-delegates.c: Rebuild.
10735         * target.c (update_current_target): Don't inherit or default
10736         to_make_corefile_notes.
10737         (init_dummy_target): Don't initialize to_make_corefile_notes.
10738         * target.h (struct target_ops) <to_make_corefile_notes>: Use
10739         TARGET_DEFAULT_FUNC.
10740
10741 2014-02-19  Tom Tromey  <tromey@redhat.com>
10742
10743         * target-delegates.c: Rebuild.
10744         * target.c (update_current_target): Don't inherit or default
10745         to_find_memory_regions.
10746         (init_dummy_target): Don't initialize to_find_memory_regions.
10747         * target.h (struct target_ops) <to_find_memory_regions>: Use
10748         TARGET_DEFAULT_FUNC.
10749
10750 2014-02-19  Tom Tromey  <tromey@redhat.com>
10751
10752         * target-delegates.c: Rebuild.
10753         * target.c (update_current_target): Don't inherit or default
10754         to_log_command.
10755         * target.h (struct target_ops) <to_log_command>: Use
10756         TARGET_DEFAULT_IGNORE.
10757         (target_log_command): Unconditionally delegate.
10758
10759 2014-02-19  Tom Tromey  <tromey@redhat.com>
10760
10761         * target-delegates.c: Rebuild.
10762         * target.c (update_current_target): Don't inherit or default
10763         to_pid_to_exec_file.
10764         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10765         TARGET_DEFAULT_RETURN.
10766
10767 2014-02-19  Tom Tromey  <tromey@redhat.com>
10768
10769         * target-delegates.c: Rebuild.
10770         * target.c (update_current_target): Don't inherit or default
10771         to_thread_name.
10772         (target_thread_name): Unconditionally delegate.
10773         * target.h (struct target_ops) <to_thread_name>: Use
10774         TARGET_DEFAULT_RETURN.
10775
10776 2014-02-19  Tom Tromey  <tromey@redhat.com>
10777
10778         * target-delegates.c: Rebuild.
10779         * target.c (update_current_target): Don't inherit or default
10780         to_extra_thread_info.
10781         * target.h (struct target_ops) <to_extra_thread_info>: Use
10782         TARGET_DEFAULT_RETURN.
10783
10784 2014-02-19  Tom Tromey  <tromey@redhat.com>
10785
10786         * target-delegates.c: Rebuild.
10787         * target.c (update_current_target): Don't inherit or default
10788         to_has_exited.
10789         * target.h (struct target_ops) <to_has_exited>: Use
10790         TARGET_DEFAULT_RETURN..
10791
10792 2014-02-19  Tom Tromey  <tromey@redhat.com>
10793
10794         * target-delegates.c: Rebuild.
10795         * target.c (update_current_target): Don't inherit or default
10796         to_set_syscall_catchpoint.
10797         (return_one): Remove.
10798         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10799         TARGET_DEFAULT_RETURN.
10800
10801 2014-02-19  Tom Tromey  <tromey@redhat.com>
10802
10803         * target-delegates.c: Rebuild.
10804         * target.c (update_current_target): Don't inherit or default
10805         to_insert_exec_catchpoint.
10806         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10807         TARGET_DEFAULT_RETURN.
10808
10809 2014-01-08  Tom Tromey  <tromey@redhat.com>
10810
10811         * target-delegates.c: Rebuild.
10812         * target.c (update_current_target): Don't inherit or default
10813         to_insert_exec_catchpoint.
10814         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10815         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_remove_vfork_catchpoint.
10822         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10823         TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
10830         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10831         TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
10838         * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_insert_fork_catchpoint.
10846         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10847         TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
10854         * target.h (struct target_ops) <to_post_startup_inferior>: Use
10855         TARGET_DEFAULT_IGNORE.
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_load.
10862         * target.h (struct target_ops) <to_load>: 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_terminal_info.
10870         * target.h (struct target_ops) <to_terminal_info>: Use
10871         TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
10878         * target.h (struct target_ops) <to_terminal_save_ours>: Use
10879         TARGET_DEFAULT_IGNORE.
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_terminal_ours.
10886         * target.h (struct target_ops) <to_terminal_ours>: Use
10887         TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
10894         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10895         TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
10902         * target.h (struct target_ops) <to_terminal_inferior>: Use
10903         TARGET_DEFAULT_IGNORE.
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_terminal_init.
10910         * target.h (struct target_ops) <to_terminal_init>: Use
10911         TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
10918         * target.h (struct target_ops)
10919         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10920
10921 2014-02-19  Tom Tromey  <tromey@redhat.com>
10922
10923         * target-delegates.c: Rebuild.
10924         * target.c (update_current_target): Don't inherit or default
10925         to_region_ok_for_hw_watchpoint.
10926         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10927         Use TARGET_DEFAULT_FUNC.
10928
10929 2014-02-19  Tom Tromey  <tromey@redhat.com>
10930
10931         * target-delegates.c: Rebuild.
10932         * target.c (update_current_target): Don't inherit or default
10933         to_watchpoint_addr_within_range.
10934         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10935         Use TARGET_DEFAULT_FUNC.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * target-delegates.c: Rebuild.
10940         * target.c (update_current_target): Don't inherit or default
10941         to_remove_watchpoint.
10942         * target.h (struct target_ops) <to_remove_watchpoint>: Use
10943         TARGET_DEFAULT_NORETURN.
10944
10945 2014-02-19  Tom Tromey  <tromey@redhat.com>
10946
10947         * target-delegates.c: Rebuild.
10948         * target.c (update_current_target): Don't inherit or default
10949         to_insert_watchpoint.
10950         * target.h (struct target_ops) <to_insert_watchpoint>: Use
10951         TARGET_DEFAULT_RETURN.
10952
10953 2014-02-19  Tom Tromey  <tromey@redhat.com>
10954
10955         * target-delegates.c: Rebuild.
10956         * target.c (update_current_target): Don't inherit or default
10957         to_remove_hw_breakpoint.
10958         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10959         TARGET_DEFAULT_RETURN.
10960
10961 2014-02-19  Tom Tromey  <tromey@redhat.com>
10962
10963         * target-delegates.c: Rebuild.
10964         * target.c (update_current_target): Don't inherit or default
10965         to_insert_hw_breakpoint.
10966         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10967         TARGET_DEFAULT_RETURN.
10968
10969 2014-02-19  Tom Tromey  <tromey@redhat.com>
10970
10971         * target-delegates.c: Rebuild.
10972         * target.c (update_current_target): Don't inherit or default
10973         to_can_use_hw_breakpoint.
10974         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10975         TARGET_DEFAULT_RETURN.
10976
10977 2014-02-19  Tom Tromey  <tromey@redhat.com>
10978
10979         * target-delegates.c: Rebuild.
10980         * target.c (update_current_target): Don't inherit or default
10981         to_files_info.
10982         * target.h (struct target_ops) <to_files_info>: Use
10983         TARGET_DEFAULT_IGNORE.
10984
10985 2014-02-19  Tom Tromey  <tromey@redhat.com>
10986
10987         * target-delegates.c: Rebuild.
10988         * target.c (update_current_target): Don't inherit or default
10989         to_store.
10990         * target.h (struct target_ops) <to_store>: Use
10991         TARGET_DEFAULT_NORETURN.
10992
10993 2014-02-19  Tom Tromey  <tromey@redhat.com>
10994
10995         * target-delegates.c: Rebuild.
10996         * target.c (update_current_target): Don't inherit or default
10997         to_post_attach.
10998         * target.h (struct target_ops) <to_post_attach>: Use
10999         TARGET_DEFAULT_IGNORE.
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_rcmd.
11006         (default_rcmd): New function.
11007         (do_monitor_command): Unconditionally delegate.
11008         * target.h (struct target_ops) <to_rmcd>: Use
11009         TARGET_DEFAULT_FUNC.
11010
11011 2014-02-19  Tom Tromey  <tromey@redhat.com>
11012
11013         * target-delegates.c: Rebuild.
11014         * target.c (init_dummy_target): Don't initialize to_attach.
11015         (target_attach): Unconditionally delegate.
11016         * target.h (struct target_ops) <to_attach>: Use
11017         TARGET_DEFAULT_FUNC.
11018
11019 2014-02-19  Tom Tromey  <tromey@redhat.com>
11020
11021         * target-delegates.c: Rebuild.
11022         * target.c (target_detach): Unconditionally delegate.
11023         (init_dummy_target): Don't initialize to_detach.
11024         * target.h (struct target_ops) <to_detach>: Use
11025         TARGET_DEFAULT_IGNORE.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11030         Add argument.
11031         (target_augmented_libraries_svr4_read): Add argument.
11032         * target.c (update_current_target): Update.
11033         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11034         argument.
11035
11036 2014-02-19  Tom Tromey  <tromey@redhat.com>
11037
11038         * target.h (struct target_ops) <to_call_history_range>: Add
11039         argument.
11040         * target.c (target_call_history_range): Add argument.
11041         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11042         argument.
11043         (record_btrace_call_history_from): Update.
11044
11045 2014-02-19  Tom Tromey  <tromey@redhat.com>
11046
11047         * target.h (struct target_ops) <to_call_history_from>: Add
11048         argument.
11049         * target.c (target_call_history_from): Add argument.
11050         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11051         argument.
11052
11053 2014-02-19  Tom Tromey  <tromey@redhat.com>
11054
11055         * target.h (struct target_ops) <to_call_history>: Add argument.
11056         * target.c (target_call_history): Add argument.
11057         * record-btrace.c (record_btrace_call_history): Add 'self'
11058         argument.
11059
11060 2014-02-19  Tom Tromey  <tromey@redhat.com>
11061
11062         * target.h (struct target_ops) <to_insn_history_range>: Add
11063         argument.
11064         * target.c (target_insn_history_range): Add argument.
11065         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11066         argument.
11067         (record_btrace_insn_history_from): Update.
11068
11069 2014-02-19  Tom Tromey  <tromey@redhat.com>
11070
11071         * target.h (struct target_ops) <to_insn_history_from>: Add
11072         argument.
11073         * target.c (target_insn_history_from): Add argument.
11074         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11075         argument.
11076
11077 2014-02-19  Tom Tromey  <tromey@redhat.com>
11078
11079         * target.h (struct target_ops) <to_insn_history>: Add argument.
11080         * target.c (target_insn_history): Add argument.
11081         * record-btrace.c (record_btrace_insn_history): Add 'self'
11082         argument.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target.h (struct target_ops) <to_goto_record>: Add argument.
11087         * target.c (target_goto_record): Add argument.
11088         * record-full.c (record_full_goto): Add 'self' argument.
11089         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11094         * target.c (target_goto_record_end): Add argument.
11095         * record-full.c (record_full_goto_end): Add 'self' argument.
11096         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11097
11098 2014-02-19  Tom Tromey  <tromey@redhat.com>
11099
11100         * target.h (struct target_ops) <to_goto_record_begin>: Add
11101         argument.
11102         * target.c (target_goto_record_begin): Add argument.
11103         * record-full.c (record_full_goto_begin): Add 'self' argument.
11104         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11105         argument.
11106
11107 2014-02-19  Tom Tromey  <tromey@redhat.com>
11108
11109         * target.h (struct target_ops) <to_record_is_replaying>: Add
11110         argument.
11111         * target.c (target_record_is_replaying): Add argument.
11112         * record-full.c (record_full_is_replaying): Add 'self' argument.
11113         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11114         argument.
11115         (record_btrace_xfer_partial, record_btrace_store_registers)
11116         (record_btrace_prepare_to_store, record_btrace_resume)
11117         (record_btrace_wait, record_btrace_decr_pc_after_break)
11118         (record_btrace_find_new_threads, record_btrace_thread_alive):
11119         Update.
11120
11121 2014-02-19  Tom Tromey  <tromey@redhat.com>
11122
11123         * target.h (struct target_ops) <to_delete_record>: Add argument.
11124         * target.c (target_delete_record): Add argument.
11125         * record-full.c (record_full_delete): Add 'self' argument.
11126
11127 2014-02-19  Tom Tromey  <tromey@redhat.com>
11128
11129         * target.h (struct target_ops) <to_save_record>: Add argument.
11130         * target.c (target_save_record): Add argument.
11131         * record-full.c (record_full_save): Add 'self' argument.
11132         (record_full_save): Add 'self' argument.
11133
11134 2014-02-19  Tom Tromey  <tromey@redhat.com>
11135
11136         * target.h (struct target_ops) <to_info_record>: Add argument.
11137         * target.c (target_info_record): Add argument.
11138         * record.c (info_record_command): Add argument.
11139         * record-full.c (record_full_info): Add 'self' argument.
11140         * record-btrace.c (record_btrace_info): Add 'self' argument.
11141
11142 2014-02-19  Tom Tromey  <tromey@redhat.com>
11143
11144         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11145         * target.c (target_stop_recording): Add argument.
11146         * record.c (record_stop): Add argument.
11147         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11148         argument.
11149
11150 2014-02-19  Tom Tromey  <tromey@redhat.com>
11151
11152         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11153         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11154         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11155         argument.
11156         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11157         (_initialize_amd64_linux_nat): Use it.
11158         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11159         (_initialize_i386_linux_nat): Use it.
11160
11161 2014-02-19  Tom Tromey  <tromey@redhat.com>
11162
11163         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11164         * target.c (target_teardown_btrace): Add argument.
11165         * remote.c (remote_teardown_btrace): Add 'self' argument.
11166         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11167         argument.
11168         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11169         argument.
11170
11171 2014-02-19  Tom Tromey  <tromey@redhat.com>
11172
11173         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11174         * target.c (target_disable_btrace): Add argument.
11175         * remote.c (remote_disable_btrace): Add 'self' argument.
11176         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11177         argument.
11178         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11179         argument.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11184         * target.c (target_enable_btrace): Add argument.
11185         * remote.c (remote_enable_btrace): Add 'self' argument.
11186         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11187         argument.
11188         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11189         argument.
11190
11191 2014-02-19  Tom Tromey  <tromey@redhat.com>
11192
11193         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11194         (target_can_use_agent): Add argument.
11195         * target.c (update_current_target): Update.
11196         * remote.c (remote_can_use_agent): Add 'self' argument.
11197         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11198
11199 2014-02-19  Tom Tromey  <tromey@redhat.com>
11200
11201         * target.h (struct target_ops) <to_use_agent>: Add argument.
11202         (target_use_agent): Add argument.
11203         * target.c (update_current_target): Update.
11204         * remote.c (remote_use_agent): Add 'self' argument.
11205         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11206
11207 2014-02-19  Tom Tromey  <tromey@redhat.com>
11208
11209         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11210         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11211         (target_traceframe_info): Add argument.
11212         * target.c (update_current_target): Update.
11213         * remote.c (remote_traceframe_info): Add 'self' argument.
11214         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11215
11216 2014-02-19  Tom Tromey  <tromey@redhat.com>
11217
11218         * target.h (target_static_tracepoint_markers_by_strid): Add
11219         argument.
11220         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11221         'self' argument.
11222         * target.c (update_current_target): Update.
11223         * remote.c (struct target_ops)
11224         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11225         * linux-nat.c (struct target_ops)
11226         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11227
11228 2014-02-19  Tom Tromey  <tromey@redhat.com>
11229
11230         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11231         Add argument.
11232         (target_static_tracepoint_marker_at): Add argument.
11233         * target.c (update_current_target): Update.
11234         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11235         argument.
11236
11237 2014-02-19  Tom Tromey  <tromey@redhat.com>
11238
11239         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11240         (target_set_permissions): Add argument.
11241         * target.c (update_current_target): Update.
11242         * remote.c (remote_set_permissions): Add 'self' argument.
11243         (remote_start_remote): Update.
11244
11245 2014-02-19  Tom Tromey  <tromey@redhat.com>
11246
11247         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11248         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11249         (target_get_tib_address): Add argument.
11250         * target.c (update_current_target): Update.
11251         * remote.c (remote_get_tib_address): Add 'self' argument.
11252
11253 2014-02-19  Tom Tromey  <tromey@redhat.com>
11254
11255         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11256         (target_set_trace_notes): Add argument.
11257         * target.c (update_current_target): Update.
11258         * remote.c (remote_set_trace_notes): Add 'self' argument.
11259
11260 2014-02-19  Tom Tromey  <tromey@redhat.com>
11261
11262         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11263         argument.
11264         (target_set_trace_buffer_size): Add argument.
11265         * target.c (update_current_target): Update.
11266         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11267
11268 2014-02-19  Tom Tromey  <tromey@redhat.com>
11269
11270         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11271         argument.
11272         (target_set_circular_trace_buffer): Add argument.
11273         * target.c (update_current_target): Update.
11274         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11275         argument.
11276
11277 2014-02-19  Tom Tromey  <tromey@redhat.com>
11278
11279         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11280         argument.
11281         (target_set_disconnected_tracing): Add argument.
11282         * target.c (update_current_target): Update.
11283         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11284
11285 2014-02-19  Tom Tromey  <tromey@redhat.com>
11286
11287         * target.h (struct target_ops)
11288         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11289         (target_get_min_fast_tracepoint_insn_len): Add argument.
11290         * target.c (update_current_target): Update.
11291         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11292         argument.
11293
11294 2014-02-19  Tom Tromey  <tromey@redhat.com>
11295
11296         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11297         argument.
11298         (target_get_raw_trace_data): Add argument.
11299         * target.c (update_current_target): Update.
11300         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11305         Add argument.
11306         (target_upload_trace_state_variables): Add argument.
11307         * target.c (update_current_target): Update.
11308         * remote.c (remote_upload_trace_state_variables): Add 'self'
11309         argument.
11310         (remote_start_remote): Update.
11311
11312 2014-02-19  Tom Tromey  <tromey@redhat.com>
11313
11314         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11315         argument.
11316         (target_upload_tracepoints): Add argument.
11317         * target.c (update_current_target): Update.
11318         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11319         (remote_start_remote): Update.
11320
11321 2014-02-19  Tom Tromey  <tromey@redhat.com>
11322
11323         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11324         (target_save_trace_data): Add argument.
11325         * target.c (update_current_target): Update.
11326         * remote.c (remote_save_trace_data): Add 'self' argument.
11327
11328 2014-02-19  Tom Tromey  <tromey@redhat.com>
11329
11330         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11331         argument.
11332         * target.h (struct target_ops)
11333         <to_get_trace_state_variable_value>: Add argument.
11334         (target_get_trace_state_variable_value): Add argument.
11335         * target.c (update_current_target): Update.
11336         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11337         argument.
11338         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11339
11340 2014-02-19  Tom Tromey  <tromey@redhat.com>
11341
11342         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11343         * target.h (struct target_ops) <to_trace_find>: Add argument.
11344         (target_trace_find): Add argument.
11345         * target.c (update_current_target): Update.
11346         * remote.c (remote_trace_find): Add 'self' argument.
11347         * ctf.c (ctf_trace_find): Add 'self' argument.
11348
11349 2014-02-19  Tom Tromey  <tromey@redhat.com>
11350
11351         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11352         (target_trace_stop): Add argument.
11353         * target.c (update_current_target): Update.
11354         * remote.c (remote_trace_stop): Add 'self' argument.
11355
11356 2014-02-19  Tom Tromey  <tromey@redhat.com>
11357
11358         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11359         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11360         argument.
11361         (target_get_tracepoint_status): Add argument.
11362         * target.c (update_current_target): Update.
11363         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11364
11365 2014-02-19  Tom Tromey  <tromey@redhat.com>
11366
11367         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11368         * target.h (struct target_ops) <to_get_trace_status>: Add
11369         argument.
11370         (target_get_trace_status): Add argument.
11371         * target.c (update_current_target): Update.
11372         * remote.c (remote_get_trace_status): Add 'self' argument.
11373         (remote_start_remote, remote_can_download_tracepoint): Update.
11374         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11375
11376 2014-02-19  Tom Tromey  <tromey@redhat.com>
11377
11378         * target.h (struct target_ops) <to_trace_start>: Add argument.
11379         (target_trace_start): Add argument.
11380         * target.c (update_current_target): Update.
11381         * remote.c (remote_trace_start): Add 'self' argument.
11382
11383 2014-02-19  Tom Tromey  <tromey@redhat.com>
11384
11385         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11386         Add argument.
11387         (target_trace_set_readonly_regions): Add argument.
11388         * target.c (update_current_target): Update.
11389         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11390         argument.
11391
11392 2014-02-19  Tom Tromey  <tromey@redhat.com>
11393
11394         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11395         argument.
11396         (target_disable_tracepoint): Add argument.
11397         * target.c (update_current_target): Update.
11398         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11399
11400 2014-02-19  Tom Tromey  <tromey@redhat.com>
11401
11402         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11403         argument.
11404         (target_enable_tracepoint): Add argument.
11405         * target.c (update_current_target): Update.
11406         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11407
11408 2014-02-19  Tom Tromey  <tromey@redhat.com>
11409
11410         * target.h (struct target_ops) <to_download_trace_state_variable>:
11411         Add argument.
11412         (target_download_trace_state_variable): Add argument.
11413         * target.c (update_current_target): Update.
11414         * remote.c (remote_download_trace_state_variable): Add 'self'
11415         argument.
11416
11417 2014-02-19  Tom Tromey  <tromey@redhat.com>
11418
11419         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11420         argument.
11421         (target_can_download_tracepoint): Add argument.
11422         * target.c (update_current_target): Update.
11423         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11424
11425 2014-02-19  Tom Tromey  <tromey@redhat.com>
11426
11427         * target.h (struct target_ops) <to_download_tracepoint>: Add
11428         argument.
11429         (target_download_tracepoint): Add argument.
11430         * target.c (update_current_target): Update.
11431         * remote.c (remote_download_tracepoint): Add 'self' argument.
11432
11433 2014-02-19  Tom Tromey  <tromey@redhat.com>
11434
11435         * target.h (struct target_ops) <to_trace_init>: Add argument.
11436         (target_trace_init): Add argument.
11437         * target.c (update_current_target): Update.
11438         * remote.c (remote_trace_init): Add 'self' argument.
11439
11440 2014-02-19  Tom Tromey  <tromey@redhat.com>
11441
11442         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11443         * target.c (target_fileio_readlink): Add argument.
11444         * remote.c (remote_hostio_readlink): Add 'self' argument.
11445         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11450         * target.c (target_fileio_unlink): Add argument.
11451         * remote.c (remote_hostio_unlink): Add 'self' argument.
11452         (remote_file_delete): Update.
11453         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11454
11455 2014-02-19  Tom Tromey  <tromey@redhat.com>
11456
11457         * target.h (struct target_ops) <to_fileio_close>: Add argument.
11458         * target.c (target_fileio_close): Add argument.
11459         * remote.c (remote_hostio_close): Add 'self' argument.
11460         (remote_hostio_close_cleanup): Update.
11461         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11462         Update.
11463         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11464
11465 2014-02-19  Tom Tromey  <tromey@redhat.com>
11466
11467         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11468         * target.c (target_fileio_pread): Add argument.
11469         * remote.c (remote_hostio_pread): Add 'self' argument.
11470         (remote_bfd_iovec_pread, remote_file_get): Update.
11471         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11472
11473 2014-02-19  Tom Tromey  <tromey@redhat.com>
11474
11475         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11476         * target.c (target_fileio_pwrite): Add argument.
11477         * remote.c (remote_hostio_pwrite): Add 'self' argument.
11478         (remote_file_put): Update.
11479         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11480
11481 2014-02-19  Tom Tromey  <tromey@redhat.com>
11482
11483         * target.h (struct target_ops) <to_fileio_open>: Add argument.
11484         * target.c (target_fileio_open): Add argument.
11485         * remote.c (remote_hostio_open): Add 'self' argument.
11486         (remote_bfd_iovec_open): Add 'self' argument.
11487         (remote_file_put): Add 'self' argument.
11488         (remote_file_get): Add 'self' argument.
11489         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11490
11491 2014-02-19  Tom Tromey  <tromey@redhat.com>
11492
11493         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11494         Add argument.
11495         (target_can_run_breakpoint_commands): Add argument.
11496         * target.c (update_current_target): Update.
11497         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11498         argument.
11499         (remote_insert_breakpoint): Add 'self' argument.
11500         (remote_insert_hw_breakpoint): Add 'self' argument.
11501         (remote_can_run_breakpoint_commands): Add 'self' argument.
11502
11503 2014-02-19  Tom Tromey  <tromey@redhat.com>
11504
11505         * target.h (struct target_ops)
11506         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11507         (target_supports_evaluation_of_breakpoint_conditions): Add
11508         argument.
11509         * target.c (update_current_target): Update.
11510         * remote.c (remote_supports_cond_breakpoints): Add 'self'
11511         argument.
11512         (remote_insert_breakpoint): Add 'self' argument.
11513         (remote_insert_hw_breakpoint): Add 'self' argument.
11514         (remote_supports_cond_breakpoints): Add 'self' argument.
11515
11516 2014-02-19  Tom Tromey  <tromey@redhat.com>
11517
11518         * target.h (struct target_ops) <to_supports_string_tracing>: Add
11519         argument.
11520         (target_supports_string_tracing): Add argument.
11521         * target.c (update_current_target): Update.
11522         * remote.c (remote_supports_string_tracing): Add 'self' argument.
11523
11524 2014-02-19  Tom Tromey  <tromey@redhat.com>
11525
11526         * target.h (struct target_ops)
11527         <to_supports_disable_randomization>: Add argument.
11528         * target.c (find_default_supports_disable_randomization): Add
11529         argument.
11530         (target_supports_disable_randomization): Add argument.
11531         (find_default_supports_disable_randomization): Add 'self'
11532         argument.
11533         * remote.c (extended_remote_supports_disable_randomization): Add
11534         'self' argument.
11535         (remote_supports_disable_randomization): Add 'self' argument.
11536         (extended_remote_create_inferior): Update.
11537         * linux-nat.c (linux_nat_supports_disable_randomization): Add
11538         'self' argument.
11539
11540 2014-02-19  Tom Tromey  <tromey@redhat.com>
11541
11542         * target.h (struct target_ops)
11543         <to_supports_enable_disable_tracepoint>: Add argument.
11544         (target_supports_enable_disable_tracepoint): Add argument.
11545         * target.c (update_current_target): Update.
11546         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11547         argument.
11548
11549 2014-02-19  Tom Tromey  <tromey@redhat.com>
11550
11551         * target.h (struct target_ops) <to_supports_multi_process>: Add
11552         argument.
11553         (target_supports_multi_process): Add argument.
11554         * target.c (update_current_target): Update.
11555         * remote.c (remote_supports_multi_process): Add 'self' argument.
11556         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11557         argument.
11558         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11559         argument.
11560
11561 2014-02-19  Tom Tromey  <tromey@redhat.com>
11562
11563         * target.h (struct target_ops) <to_execution_direction>: Add
11564         argument.
11565         (target_execution_direction): Add argument.
11566         * target.c (default_execution_direction): Add 'self' argument.
11567         * record-full.c (record_full_execution_direction): Add 'self'
11568         argument.
11569
11570 2014-02-19  Tom Tromey  <tromey@redhat.com>
11571
11572         * target.h (struct target_ops) <to_can_execute_reverse>: Add
11573         argument.
11574         (target_can_execute_reverse): Add argument.
11575         * remote.c (remote_can_execute_reverse): Add 'self' argument.
11576         * record-full.c (record_full_can_execute_reverse): Add 'self'
11577         argument.
11578         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11579         argument.
11580
11581 2014-02-19  Tom Tromey  <tromey@redhat.com>
11582
11583         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11584         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11585         argument.
11586         (target_get_ada_task_ptid): Add argument.
11587         * target.c (update_current_target): Update.
11588         (default_get_ada_task_ptid): Add 'self' argument.
11589         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11590         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11591         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11592         argument.
11593         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11594         argument.
11595         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11596         argument.
11597         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11598         argument.
11599         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11600         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11601         argument.
11602
11603 2014-02-19  Tom Tromey  <tromey@redhat.com>
11604
11605         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11606         (target_goto_bookmark): Add argument.
11607         * target.c (dummy_goto_bookmark): Add 'self' argument.
11608         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11609
11610 2014-02-19  Tom Tromey  <tromey@redhat.com>
11611
11612         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11613         (target_get_bookmark): Add argument.
11614         * target.c (dummy_get_bookmark): Add 'self' argument.
11615         * record-full.c (record_full_get_bookmark): Add 'self' argument.
11616
11617 2014-02-19  Tom Tromey  <tromey@redhat.com>
11618
11619         * target.h (struct target_ops) <to_make_corefile_notes>: Add
11620         argument.
11621         (target_make_corefile_notes): Add argument.
11622         * target.c (dummy_make_corefile_notes): Add 'self' argument.
11623         * procfs.c (procfs_make_note_section): Add 'self' argument.
11624         (procfs_make_note_section): Add 'self' argument.
11625         (procfs_make_note_section): Add 'self' argument.
11626         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11627         argument.
11628         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11629         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11630         * exec.c (exec_make_note_section): Add 'self' argument.
11631         (exec_make_note_section): Add 'self' argument.
11632
11633 2014-02-19  Tom Tromey  <tromey@redhat.com>
11634
11635         * target.h (struct target_ops) <to_find_memory_regions>: Add
11636         argument.
11637         (target_find_memory_regions): Add argument.
11638         * target.c (dummy_find_memory_regions): Add 'self' argument.
11639         * procfs.c (proc_find_memory_regions): Add 'self' argument.
11640         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11641         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11642         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11643         * exec. (exec_do_find_memory_regions): New global.
11644         (exec_set_find_memory_regions): Rewrite.
11645         (exec_find_memory_regions): New function.
11646         (init_exec_ops): Use exec_find_memory_regions.
11647
11648 2014-02-19  Tom Tromey  <tromey@redhat.com>
11649
11650         * target.h (struct target_ops) <to_supports_non_stop>: Add
11651         argument.
11652         * target.c (find_default_supports_non_stop): Add argument.
11653         (target_supports_non_stop): Add argument.
11654         (find_default_supports_non_stop): Add 'self' argument.
11655         * remote.c (remote_supports_non_stop): Add 'self' argument.
11656         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11657
11658 2014-02-19  Tom Tromey  <tromey@redhat.com>
11659
11660         * target.h (struct target_ops) <to_log_command>: Add argument.
11661         (target_log_command): Add argument.
11662         * serial.h (serial_log_command): Add 'self' argument.
11663         * serial.c (serial_log_command): Add 'self' argument.
11664
11665 2014-02-19  Tom Tromey  <tromey@redhat.com>
11666
11667         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11668         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11669         argument.
11670         (target_pid_to_exec_file): Add argument.
11671         * target.c (debug_to_pid_to_exec_file): Add argument.
11672         (update_current_target): Update.
11673         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11674         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11675         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11676         (linux_handle_extended_wait): Update.
11677         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11678         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11679         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11680         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11681
11682 2014-02-19  Tom Tromey  <tromey@redhat.com>
11683
11684         * target.h (struct target_ops) <to_rcmd>: Add argument.
11685         (target_rcmd): Add argument.
11686         * target.c (debug_to_rcmd): Add argument.
11687         (update_current_target, do_monitor_command): Update.
11688         * remote.c (remote_rcmd): Add 'self' argument.
11689         * monitor.c (monitor_rcmd): Add 'self' argument.
11690
11691 2014-02-19  Tom Tromey  <tromey@redhat.com>
11692
11693         * windows-nat.c (windows_stop): Add 'self' argument.
11694         * target.h (struct target_ops) <to_stop>: Add argument.
11695         * target.c (target_stop): Add argument.
11696         (debug_to_stop): Add argument.
11697         (update_current_target): Update.
11698         * remote.c (remote_stop): Add 'self' argument.
11699         * remote-sim.c (gdbsim_stop): Add 'self' argument.
11700         (gdbsim_cntrl_c): Update.
11701         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11702         * procfs.c (procfs_stop): Add 'self' argument.
11703         * nto-procfs.c (procfs_stop): Add 'self' argument.
11704         * monitor.c (monitor_stop): Add 'self' argument.
11705         (monitor_open): Update.
11706         * linux-nat.c (linux_nat_stop): Add argument.
11707         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11708         * gnu-nat.c (gnu_stop): Add 'self' argument.
11709         * darwin-nat.c (darwin_stop): Add 'self' argument.
11710
11711 2014-02-19  Tom Tromey  <tromey@redhat.com>
11712
11713         * target.h (struct target_ops) <to_thread_name>: Add argument.
11714         * target.c (target_thread_name): Add argument.
11715         (update_current_target): Update.
11716         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11717
11718 2014-02-19  Tom Tromey  <tromey@redhat.com>
11719
11720         * target.h (struct target_ops) <to_extra_thread_info>: Add
11721         argument.
11722         (target_extra_thread_info): Add argument.
11723         * target.c (update_current_target): Update.
11724         * remote.c (remote_threads_extra_info): Add 'self' argument.
11725         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11726         argument.
11727         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11728         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11729         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11730         argument.
11731         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11732         argument.
11733         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11734         argument.
11735         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11736         argument.
11737
11738 2014-02-19  Tom Tromey  <tromey@redhat.com>
11739
11740         * target.h (struct target_ops) <to_program_signals>: Add argument.
11741         * target.c (target_program_signals): Add argument.
11742         * remote.c (remote_program_signals): Add 'self' argument.
11743
11744 2014-02-19  Tom Tromey  <tromey@redhat.com>
11745
11746         * target.h (struct target_ops) <to_pass_signals>: Add argument.
11747         * target.c (target_pass_signals): Add argument.
11748         * remote.c (remote_pass_signals): Add 'self' argument.
11749         (remote_start_remote): Update.
11750         * procfs.c (procfs_pass_signals): Add 'self' argument.
11751         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11752         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11753         (linux_nat_create_inferior, linux_nat_attach): Update.
11754
11755 2014-02-19  Tom Tromey  <tromey@redhat.com>
11756
11757         * windows-nat.c (windows_can_run): Add 'self' argument.
11758         * target.h (struct target_ops) <to_can_run>: Add argument.
11759         (target_can_run): Add argument.
11760         * target.c (debug_to_can_run): Add argument.
11761         (update_current_target): Update.
11762         * nto-procfs.c (procfs_can_run): Add 'self' argument.
11763         * inf-child.c (inf_child_can_run): Add 'self' argument.
11764         * go32-nat.c (go32_can_run): Add 'self' argument.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target.h (struct target_ops) <to_has_exited>: Add argument.
11769         (target_has_exited): Add argument.
11770         * target.c (debug_to_has_exited): Add argument.
11771         (update_current_target): Update.
11772
11773 2014-02-19  Tom Tromey  <tromey@redhat.com>
11774
11775         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11776         argument.
11777         (target_set_syscall_catchpoint): Add argument.
11778         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11779         argument.
11780         * target.c (update_current_target): Update.
11781
11782 2014-02-19  Tom Tromey  <tromey@redhat.com>
11783
11784         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11785         argument.
11786         (target_remove_exec_catchpoint): Add argument.
11787         * target.c (debug_to_remove_exec_catchpoint): Add argument.
11788         (update_current_target): Update.
11789         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11790         argument.
11791
11792 2014-02-19  Tom Tromey  <tromey@redhat.com>
11793
11794         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11795         argument.
11796         (target_insert_exec_catchpoint): Add argument.
11797         * target.c (debug_to_insert_exec_catchpoint): Add argument.
11798         (update_current_target): Update.
11799         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11800         argument.
11801
11802 2014-02-19  Tom Tromey  <tromey@redhat.com>
11803
11804         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11805         argument.
11806         (target_remove_vfork_catchpoint): Add argument.
11807         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11808         (update_current_target): Update.
11809         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11810         argument.
11811
11812 2014-02-19  Tom Tromey  <tromey@redhat.com>
11813
11814         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11815         argument.
11816         (target_insert_vfork_catchpoint): Add argument.
11817         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11818         (update_current_target): Update.
11819         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11820         argument.
11821
11822 2014-02-19  Tom Tromey  <tromey@redhat.com>
11823
11824         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11825         argument.
11826         (target_remove_fork_catchpoint): Add argument.
11827         * target.c (debug_to_remove_fork_catchpoint): Add argument.
11828         (update_current_target): Update.
11829         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11830         argument.
11831
11832 2014-02-19  Tom Tromey  <tromey@redhat.com>
11833
11834         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11835         argument.
11836         (target_insert_fork_catchpoint): Add argument.
11837         * target.c (debug_to_insert_fork_catchpoint): Add argument.
11838         (update_current_target): Update.
11839         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11840         argument.
11841
11842 2014-02-19  Tom Tromey  <tromey@redhat.com>
11843
11844         * target.h (struct target_ops) <to_post_startup_inferior>: Add
11845         argument.
11846         (target_post_startup_inferior): Add argument.
11847         * target.c (debug_to_post_startup_inferior): Add argument.
11848         (update_current_target): Update.
11849         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11850         argument.
11851         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11852         argument.
11853         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11854         argument.
11855         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11856         argument.
11857         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11858         'self' argument.
11859         (super_post_startup_inferior): Likewise.
11860         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11861         'self' argument.
11862         (super_post_startup_inferior): Likewise.
11863         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11864         Add 'self' argument.
11865         (super_post_startup_inferior): Likewise.
11866
11867 2014-02-19  Tom Tromey  <tromey@redhat.com>
11868
11869         * target.h (struct target_ops) <to_load>: Add argument.
11870         * target.c (target_load): Add argument.
11871         (debug_to_load): Add argument.
11872         (update_current_target): Update.
11873         * remote.c (remote_load): Add 'self' argument.
11874         * remote-sim.c (gdbsim_load): Add 'self' argument.
11875         * remote-mips.c (mips_load): Add 'self' argument.
11876         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11877         * monitor.c (monitor_load): Add 'self' argument.
11878         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11879
11880 2014-02-19  Tom Tromey  <tromey@redhat.com>
11881
11882         * target.h (struct target_ops) <to_terminal_info>: Add argument.
11883         (target_terminal_info): Add argument.
11884         * target.c (debug_to_terminal_info): Add argument.
11885         (default_terminal_info): Likewise.
11886         * inflow.c (child_terminal_info): Add 'self' argument.
11887         * inferior.h (child_terminal_info): Add 'self' argument.
11888         * go32-nat.c (go32_terminal_info): Add 'self' argument.
11889
11890 2014-02-19  Tom Tromey  <tromey@redhat.com>
11891
11892         * target.h (struct target_ops) <to_terminal_save_ours>: Add
11893         argument.
11894         (target_terminal_save_ours): Add argument.
11895         * target.c (debug_to_terminal_save_ours): Add argument.
11896         (update_current_target): Update.
11897         * inflow.c (terminal_save_ours): Add 'self' argument.
11898         * inferior.h (terminal_save_ours): Add 'self' argument.
11899
11900 2014-02-19  Tom Tromey  <tromey@redhat.com>
11901
11902         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11903         (target_terminal_ours): Add argument.
11904         * target.c (debug_to_terminal_ours): Add argument.
11905         (update_current_target): Update.
11906         * remote.c (remote_terminal_ours): Add 'self' argument.
11907         (remote_close): Update.
11908         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11909         * inflow.c (terminal_ours): Add 'self' argument.
11910         * inferior.h (terminal_ours): Add 'self' argument.
11911         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11912
11913 2014-02-19  Pedro Alves  <palves@redhat.com>
11914             Tom Tromey  <tromey@redhat.com>
11915
11916         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11917         argument.
11918         (target_terminal_ours_for_output): Add argument.
11919         * target.c (debug_to_terminal_ours_for_output): Add argument.
11920         (update_current_target): Update.
11921         * inflow.c (terminal_ours_for_output): Add 'self' argument.
11922         * inferior.h (terminal_ours_for_output): Add 'self' argument.
11923         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11924
11925 2014-02-19  Tom Tromey  <tromey@redhat.com>
11926
11927         * target.h (struct target_ops) <to_terminal_inferior>: Add
11928         argument.
11929         * target.c (target_terminal_inferior): Add argument.
11930         (update_current_target): Update.
11931         * remote.c (remote_terminal_inferior): Add 'self' argument.
11932         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11933         * inflow.c (terminal_inferior): Add 'self' argument.
11934         * inferior.h (terminal_inferior): Add 'self' argument.
11935         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11936         (go32_terminal_inferior): Add 'self' argument.
11937
11938 2014-02-19  Tom Tromey  <tromey@redhat.com>
11939
11940         * target.h (struct target_ops) <to_terminal_init>: Add argument.
11941         (target_terminal_init): Add argument.
11942         * target.c (debug_to_terminal_init): Add argument.
11943         (update_current_target): Update.
11944         * inflow.c (terminal_init_inferior): Add 'self' argument.
11945         * inferior.h (terminal_init_inferior): Add 'self' argument.
11946         * go32-nat.c (go32_terminal_init): Add 'self' argument.
11947         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11948
11949 2014-02-19  Tom Tromey  <tromey@redhat.com>
11950
11951         * target.h (struct target_ops)
11952         <to_can_accel_watchpoint_condition>: Add argument.
11953         (target_can_accel_watchpoint_condition): Add argument.
11954         * target.c (debug_to_can_accel_watchpoint_condition): Add
11955         argument.
11956         (update_current_target): Update.
11957         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11958         'self' argument.
11959
11960 2014-02-19  Tom Tromey  <tromey@redhat.com>
11961
11962         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11963         Add argument.
11964         (target_region_ok_for_hw_watchpoint): Add argument.
11965         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11966         (default_region_ok_for_hw_watchpoint): Add argument.
11967         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11968         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11969         argument.
11970         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11971         argument.
11972         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11973         argument.
11974         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11975         'self' argument.
11976         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11977         'self' argument.
11978         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11979         'self' argument.
11980         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11981         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11982         'self' argument.
11983         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11984         Add 'self' argument.
11985
11986 2014-02-19  Tom Tromey  <tromey@redhat.com>
11987
11988         * target.h (struct target_ops) <to_insert_watchpoint>: Add
11989         argument.
11990         (target_insert_watchpoint): Add argument.
11991         * target.c (debug_to_insert_watchpoint): Add argument.
11992         (update_current_target): Update.
11993         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11994         * remote.c (remote_insert_watchpoint): Add 'self' argument.
11995         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11996         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11997         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11998         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11999         argument.
12000         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12001         (procfs_insert_hw_watchpoint): Add 'self' argument.
12002         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12003         argument.
12004         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12005         argument.
12006         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12007         argument.
12008         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12009         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12010         argument.
12011         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12012         'self' argument.
12013
12014 2014-02-19  Tom Tromey  <tromey@redhat.com>
12015
12016         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12017         argument.
12018         (target_remove_watchpoint): Add argument.
12019         * target.c (debug_to_remove_watchpoint): Add argument.
12020         (update_current_target): Update.
12021         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12022         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12023         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12024         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12025         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12026         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12027         argument.
12028         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12029         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12030         argument.
12031         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12032         argument.
12033         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12034         argument.
12035         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12036         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12037         argument.
12038         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12039         'self' argument.
12040
12041 2014-02-19  Tom Tromey  <tromey@redhat.com>
12042
12043         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12044         argument.
12045         (target_remove_hw_breakpoint): Add argument.
12046         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12047         (update_current_target): Update.
12048         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12049         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12050         argument.
12051         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12052         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12053         argument.
12054         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12055         'self' argument.
12056
12057 2014-02-19  Tom Tromey  <tromey@redhat.com>
12058
12059         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12060         argument.
12061         (target_insert_hw_breakpoint): Add argument.
12062         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12063         (update_current_target): Update.
12064         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12065         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12066         argument.
12067         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12068         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12069         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12070         argument.
12071         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12072         'self' argument.
12073
12074 2014-02-19  Tom Tromey  <tromey@redhat.com>
12075
12076         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12077         argument.
12078         (target_can_use_hardware_watchpoint): Add argument.
12079         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12080         (update_current_target): Update.
12081         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12082         argument.
12083         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12084         argument.
12085         * remote.c (remote_check_watch_resources): Add 'self' argument.
12086         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12087         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12088         argument.
12089         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12090         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12091         argument.
12092         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12093         argument.
12094         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12095         argument.
12096         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12097         argument.
12098         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12099         argument.
12100         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12101         argument.
12102         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12103         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12104         argument.
12105         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12106         'self' argument.
12107
12108 2014-02-19  Tom Tromey  <tromey@redhat.com>
12109
12110         * target.h (struct target_ops) <to_post_attach>: Add argument.
12111         (target_post_attach): Add argument.
12112         * target.c (debug_to_post_attach): Add argument.
12113         (update_current_target): Update.
12114         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12115         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12116         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12117         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12118         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12119
12120 2014-02-19  Tom Tromey  <tromey@redhat.com>
12121
12122         * windows-nat.c (windows_close): Add 'self' argument.
12123         * tracepoint.c (tfile_close): Add 'self' argument.
12124         * target.h (struct target_ops) <to_close>: Add argument.
12125         * target.c (target_close): Add argument.
12126         (update_current_target): Update.
12127         * remote.c (remote_close): Add 'self' argument.
12128         * remote-sim.c (gdbsim_close): Add 'self' argument.
12129         * remote-mips.c (mips_close): Add 'self' argument.
12130         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12131         * record-full.c (record_full_close): Add 'self' argument.
12132         * record-btrace.c (record_btrace_close): Add 'self' argument.
12133         * monitor.h (monitor_close): Add 'self' argument.
12134         * monitor.c (monitor_close): Add 'self' argument.
12135         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12136         * linux-nat.c (linux_nat_close): Add argument.
12137         * go32-nat.c (go32_close): Add 'self' argument.
12138         * exec.c (exec_close_1): Add 'self' argument.
12139         * ctf.c (ctf_close): Add 'self' argument.
12140         * corelow.c (core_close): Add 'self' argument.
12141         (core_close_cleanup): Update.
12142         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12143         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12144
12145 2014-02-19  Tom Tromey  <tromey@redhat.com>
12146
12147         * remote.c (remote_load): New function.
12148         (init_remote_ops): Use it.
12149
12150 2014-02-19  Tom Tromey  <tromey@redhat.com>
12151
12152         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12153         argument.
12154         * common/linux-btrace.h (linux_supports_btrace): Update.
12155         * remote.c (remote_supports_btrace): Add "self" argument.
12156         * target-delegates.c: Rebuild.
12157         * target.c (target_supports_btrace): Remove.
12158         * target.h (struct target_ops) <to_supports_btrace>: Add
12159         target_ops argument.
12160         (target_supports_btrace): New define.
12161
12162 2014-02-19  Tom Tromey  <tromey@redhat.com>
12163
12164         * record-full.c (record_full_beneath_to_resume_ops)
12165         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12166         (record_full_beneath_to_wait)
12167         (record_full_beneath_to_store_registers_ops)
12168         (record_full_beneath_to_store_registers)
12169         (record_full_beneath_to_xfer_partial_ops)
12170         (record_full_beneath_to_xfer_partial)
12171         (record_full_beneath_to_insert_breakpoint_ops)
12172         (record_full_beneath_to_insert_breakpoint)
12173         (record_full_beneath_to_remove_breakpoint_ops)
12174         (record_full_beneath_to_remove_breakpoint)
12175         (record_full_beneath_to_stopped_by_watchpoint)
12176         (record_full_beneath_to_stopped_data_address)
12177         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12178         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12179         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12180         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12181         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12182         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12183         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12184         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12185         (record_full_resume, record_full_wait_1)
12186         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12187         (record_full_store_registers, record_full_xfer_partial)
12188         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12189         (record_full_async, record_full_core_xfer_partial): Use target
12190         delegation.
12191         * target-delegates.c: Rebuild.
12192         * target.c (current_xfer_partial): Remove.
12193         (update_current_target): Do not INHERIT or de_fault
12194         to_insert_breakpoint, to_remove_breakpoint,
12195         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12196         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12197         (default_xfer_partial): Simplify.
12198         (current_xfer_partial): Remove.
12199         (target_wait, target_resume): Simplify.
12200         (find_default_can_async_p, find_default_is_async_p): Update.
12201         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12202         to_xfer_partial, to_stopped_by_watchpoint,
12203         to_stopped_data_address.
12204         (target_store_registers): Simplify.
12205         (forward_target_remove_breakpoint)
12206         (forward_target_insert_breakpoint): Remove.
12207         (target_remove_breakpoint, target_insert_breakpoint)
12208         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12209         * target.h (struct target_ops) <to_resume, to_wait,
12210         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12211         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12212         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12213         markup.
12214         (forward_target_remove_breakpoint)
12215         (forward_target_insert_breakpoint): Remove.
12216         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12217         directly.
12218         (record_btrace_insert_breakpoint): Delegate directly.
12219
12220 2014-02-19  Tom Tromey  <tromey@redhat.com>
12221
12222         PR build/7701:
12223         * target-delegates.c: New file.
12224         * target.c: Include target-delegates.c.
12225         (init_dummy_target): Call install_dummy_methods.
12226         (complete_target_initialization): Call install_delegators.
12227         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12228         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12229         * make-target-delegates: New file.
12230
12231 2014-02-19  Tom Tromey  <tromey@redhat.com>
12232
12233         * record.c (find_record_target): Use find_target_at.
12234         * target.c (find_target_at): New function.
12235         * target.h (find_target_at): Declare.
12236
12237 2014-02-19  Tom Tromey  <tromey@redhat.com>
12238
12239         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12240         Add 'ops' argument.
12241         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12242         'ops' argument.
12243         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12244         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12245         'ops' argument.
12246         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12247         argument.
12248         * linux-nat.c (save_sigtrap): Update.
12249         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12250         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12251         (linux_nat_close): Update.
12252         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12253         argument.
12254         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12255         argument.
12256         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12257         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12258         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12259         (tmp_to_async): Add 'ops' argument.
12260         (record_full_stopped_by_watchpoint, record_full_async)
12261         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12262         argument.
12263         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12264         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12265         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12266         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12267         (remote_is_async_p, remote_async): Add 'ops' argument.
12268         (remote_stopped_data_address): Update.
12269         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12270         * target.c (update_current_target)
12271         (find_default_can_async_p, find_default_is_async_p): Update.
12272         (init_dummy_target): Update.
12273         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12274         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12275         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12276         (target_can_async_p, target_is_async_p, target_async)
12277         (target_stopped_by_watchpoint): Update.
12278
12279 2014-02-19  Yao Qi  <yao@codesourcery.com>
12280
12281         PR gdb/16220
12282         * gdbarch.sh: Remove startup_gdbarch.
12283         * gdbarch.c: Regenerated.
12284         * gdbarch.h: Likewise.
12285
12286 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12287
12288         * rl78-tdep.c (rl78_g10_register_name): New function.
12289         (rl78_return_value): Add g10 support.
12290         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12291         g10.
12292
12293 2014-02-17  Doug Evans  <xdje42@gmail.com>
12294
12295         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12296         (SUBDIR_GUILE_SRCS): Ditto.
12297         (scm-gsmob.o): Ditto.
12298
12299 2014-02-17  Yao Qi  <yao@codesourcery.com>
12300
12301         * gnu-nat.c (ILL_RPC): Declare defined function.
12302
12303 2014-02-17  Yao Qi  <yao@codesourcery.com>
12304
12305         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12306         mach_msg_type_number_t.
12307         (gnu_write_inferior): Likewise.
12308
12309 2014-02-17  Yao Qi  <yao@codesourcery.com>
12310
12311         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12312         in format string.
12313         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12314         (inf_validate_procs, inf_signal): Likewise.
12315         (S_exception_raise_request): Likewise.
12316         (do_mach_notify_dead_name): Likewise.
12317         (steal_exc_port): Likewise.
12318         (gnu_read_inferior): Change 'copy_count''s type to
12319         mach_msg_type_number_t.
12320         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12321         format string.
12322
12323 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12324
12325         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12326         flag.  Adjust all users; in particular...
12327         (gnu_wait): ..., don't decrement its value in here...
12328         (gnu_create_inferior): ..., and instead set the flag in here,
12329         around the startup_inferior call, and call that one with
12330         START_INFERIOR_TRAPS_EXPECTED.
12331
12332         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12333         (ILL_RPC): ... new macro.
12334         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12335         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12336         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12337         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12338         functions with ILL_RPC macro.
12339         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12340         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12341         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12342         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12343         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12344         (S_proc_getlogin_reply, S_proc_getsid_reply)
12345         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12346         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12347         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12348         (S_proc_getnports_reply, S_proc_is_important_reply)
12349         (S_proc_get_code_reply): New stub functions, generated with
12350         ILL_RPC macro.
12351
12352         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12353         collected the type check structures.
12354
12355         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12356
12357 2014-02-14  Doug Evans  <dje@google.com>
12358
12359         * target.c (target_write_partial): Fix result type.
12360
12361 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12362
12363         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12364         the proper offsets to access fpregset_t.
12365
12366 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12367
12368         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12369         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12370         * h8300-tdep.c (setmachinelist): Remove global.
12371         * hppa-tdep.c (hppa_sigtramp): Remove global.
12372         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12373         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12374         * ravenscar-thread.c (update_target_observer): Remove global.
12375         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12376
12377 2014-02-12  Tom Tromey  <tromey@redhat.com>
12378
12379         * common/rsp-low.c: Update comments.
12380         * common/rsp-low.h: Update comments.
12381
12382 2014-02-12  Tom Tromey  <tromey@redhat.com>
12383
12384         * common/rsp-low.c (convert_ascii_to_int): Remove.
12385         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12386
12387 2014-02-12  Tom Tromey  <tromey@redhat.com>
12388
12389         * common/rsp-low.h (unhexify): Don't declare.
12390         * common/rsp-low.c (unhexify): Remove.
12391
12392 2014-02-12  Tom Tromey  <tromey@redhat.com>
12393
12394         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12395         * common/rsp-low.c (convert_int_to_ascii): Remove.
12396
12397 2014-02-12  Tom Tromey  <tromey@redhat.com>
12398
12399         * common/rsp-low.h (hexify): Don't declare.
12400         * common/rsp-low.c (hexify): Remove.
12401
12402 2014-02-12  Tom Tromey  <tromey@redhat.com>
12403
12404         * common/rsp-low.c (hexify): Never take strlen of argument.
12405
12406 2014-02-12  Tom Tromey  <tromey@redhat.com>
12407
12408         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12409         * remote.c (extended_remote_run, remote_rcmd)
12410         (remote_download_trace_state_variable, remote_save_trace_data)
12411         (remote_set_trace_notes): Update.
12412         * tracepoint.c (encode_source_string, tfile_write_status)
12413         (tfile_write_uploaded_tsv): Update.
12414
12415 2014-02-12  Tom Tromey  <tromey@redhat.com>
12416
12417         * tracepoint.c: Include rsp-low.h.
12418         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12419         * remote.c: Include rsp-low.h.
12420         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12421         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12422         (remote_unescape_input): Move to common/rsp-low.c.
12423         * common/rsp-low.h: New file.
12424         * common/rsp-low.c: New file.
12425         * Makefile.in (SFILES): Add common/rsp-low.c.
12426         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12427         (COMMON_OBS): Add rsp-low.o.
12428         (rsp-low.o): New target.
12429
12430 2014-02-12  Tom Tromey  <tromey@redhat.com>
12431
12432         * utils.h: Include print-utils.h.
12433         (host_address_to_string, plongest, pulongest, phex, phex_nz)
12434         (int_string, core_addr_to_string, core_addr_to_string_nz)
12435         (hex_string, hex_string_custom): Don't declare.
12436         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12437         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12438         (hex_string_custom, int_string, core_addr_to_string)
12439         (core_addr_to_string_nz, host_address_to_string): Move to
12440         common/print-utils.c.
12441         * common/print-utils.h: New file.
12442         * common/print-utils.c: New file
12443         * Makefile.in (SFILES): Add common/print-utils.c.
12444         (HFILES_NO_SRCDIR): Add common/print-utils.h.
12445         (COMMON_OBS): Add print-utils.o.
12446         (print-utils.o): New target.
12447
12448 2014-02-12  Tom Tromey  <tromey@redhat.com>
12449
12450         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12451
12452 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12453
12454         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12455
12456 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12457
12458         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12459         if a PT_IO ptrace request returns sucessfully but indicates that 0
12460         bytes were transferred.
12461
12462 2014-02-12  Pedro Alves  <palves@redhat.com>
12463             Kevin Buettner <kevinb@redhat.com>
12464
12465         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12466         TYPE_INSTANCE_FLAG_CODE_SPACE.
12467
12468 2014-02-12  Pedro Alves  <palves@redhat.com>
12469
12470         * h8300-tdep.c (pseudo_from_raw_register)
12471         (raw_from_pseudo_register): New functions.
12472         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12473         them.
12474
12475 2014-02-12  Pedro Alves  <palves@redhat.com>
12476
12477         * h8300-tdep.c (h8300_register_sim_regno): New function.
12478         (h8300_gdbarch_init): Install h8300_register_sim_regno as
12479         gdbarch_register_sim_regno hook.
12480
12481 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12482
12483         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12484
12485 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
12486
12487         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12488
12489 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
12490
12491         * obsd-tdep.h (obsd_init_abi): New prototype.
12492         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12493         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12494         (obsd_init_abi): New functions.
12495         * i386obsd-tdep.c: Include "obsd-tdep.h".
12496         (i386obsd_init_abi): Call obsd_init_abi.
12497         * amd64obsd-tdep.c: Include "obsd-tdep.h".
12498         (amd64obsd_init_abi): Call obsd_init_abi.
12499         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12500         obsd-tdep.c to gdb_target_obs.
12501
12502 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
12503
12504         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12505         double float arguments to 16-byte in the argument slots.
12506
12507 2014-02-11  Doug Evans  <xdje42@gmail.com>
12508
12509         * configure.ac: Don't crash if pkg-config is not found and guile
12510         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
12511         in guile checks.
12512         * configure: Regenerate.
12513
12514 2014-02-11  Yao Qi  <yao@codesourcery.com>
12515
12516         * aix-thread.c (aix_thread_xfer_partial): Update comments.
12517         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12518         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12519         * gnu-nat.c (gnu_xfer_memory): Likewise.
12520         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
12521         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12522         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12523         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12524
12525 2014-02-11  Yao Qi  <yao@codesourcery.com>
12526
12527         * target.h (enum target_xfer_error): Rename to ...
12528         (enum target_xfer_status): ... it.  New.  All users updated.
12529         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12530         New.
12531         (TARGET_XFER_STATUS_ERROR_P): New macro.
12532         (target_xfer_error_to_string): Remove declaration.
12533         (target_xfer_status_to_string): Declare.
12534         (target_xfer_partial_ftype): Adjust it.
12535         (struct target_ops) <to_xfer_partial>: Return
12536         target_xfer_status.  Add argument xfered_len.  Update
12537         comments.
12538         * target.c (target_xfer_error_to_string): Rename to ...
12539         (target_xfer_status_to_string): ... it.  New.  All callers
12540         updated.
12541         (target_read_live_memory): Likewise.  Call target_xfer_partial
12542         instead of target_read.
12543         (memory_xfer_live_readonly_partial): Return
12544         target_xfer_status.  Add argument xfered_len.
12545         (raw_memory_xfer_partial): Likewise.
12546         (memory_xfer_partial_1): Likewise.
12547         (memory_xfer_partial): Likewise.
12548         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
12549         properly.  Update debug message.
12550         (default_xfer_partial, current_xfer_partial): Likewise.
12551         (target_write_partial): Likewise.
12552         (target_read_partial): Likewise.  All callers updated.
12553         (read_whatever_is_readable): Likewise.
12554         (target_write_with_progress): Likewise.
12555         (target_read_alloc_1): Likewise.
12556
12557         * aix-thread.c (aix_thread_xfer_partial): Likewise.
12558         * auxv.c (procfs_xfer_auxv): Likewise.
12559         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12560         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12561         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12562         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12563         * corefile.c (read_memory): Adjust.
12564         * corelow.c (core_xfer_partial): Likewise.
12565         * ctf.c (ctf_xfer_partial): Likewise.
12566         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
12567         updated.
12568         (darwin_xfer_partial): Likewise.
12569         * exec.c (section_table_xfer_memory_partial): Likewise.  All
12570         callers updated.
12571         (exec_xfer_partial): Likewise.
12572         * exec.h (section_table_xfer_memory_partial): Update
12573         declaration.
12574         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
12575         negative.
12576         (gnu_xfer_partial): Likewise.
12577         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12578         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12579         (ia64_hpux_xfer_solib_got): Likewise.
12580         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
12581         type of 'partial_len' to ULONGEST.
12582         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12583         * linux-nat.c (linux_xfer_siginfo ): Likewise.
12584         (linux_nat_xfer_partial): Likewise.
12585         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12586         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12587         * monitor.c (monitor_xfer_memory): Likewise.
12588         (monitor_xfer_partial): Likewise.
12589         * procfs.c (procfs_xfer_partial): Likewise.
12590         * record-btrace.c (record_btrace_xfer_partial): Likewise.
12591         * record-full.c (record_full_xfer_partial): Likewise.
12592         (record_full_core_xfer_partial): Likewise.
12593         * remote-sim.c (gdbsim_xfer_memory): Likewise.
12594         (gdbsim_xfer_partial): Likewise.
12595         * remote.c (remote_write_bytes_aux): Likewise.  All callers
12596         updated.
12597         (remote_write_bytes, remote_read_bytes): Likewise.  All
12598         callers updated.
12599         (remote_flash_erase): Likewise.  All callers updated.
12600         (remote_write_qxfer): Likewise.  All callers updated.
12601         (remote_read_qxfer): Likewise.  All callers updated.
12602         (remote_xfer_partial): Likewise.
12603         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12604         (rs6000_xfer_shared_libraries): Likewise.
12605         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12606         (sol_thread_xfer_partial): Likewise.
12607         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12608         (sparc_xfer_partial): Likewise.
12609         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
12610         updated.
12611         (spu_xfer_partial): Likewise.
12612         * spu-multiarch.c (spu_xfer_partial): Likewise.
12613         * tracepoint.c (tfile_xfer_partial): Likewise.
12614         * windows-nat.c (windows_xfer_memory): Likewise.
12615         (windows_xfer_shared_libraries): Likewise.
12616         (windows_xfer_partial): Likewise.
12617         * valprint.c: Replace 'target_xfer_error' with
12618         'target_xfer_status' in comments.
12619
12620 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
12621
12622         Checked in by Joel Brobecker <brobecker@adacore.com>.
12623         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12624
12625 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
12626
12627         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12628         function parameters.
12629
12630 2014-02-10  Will Newton  <will.newton@linaro.org>
12631
12632         * elfread.c (elf_rel_plt_read): Look for a .got section if
12633         looking up .got.plt fails.
12634         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12635         on address passed to elf_gnu_ifunc_record_cache.
12636         (elf_gnu_ifunc_resolve_addr): Likewise.
12637         (elf_gnu_ifunc_resolver_return_stop): Likewise.
12638
12639 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
12640
12641         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12642         (X_RETTURN): New macro.
12643         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12644
12645         * sparc64-tdep.c (sparc64_init_abi): Hook
12646         sparc_in_function_epilogue_p.
12647
12648 2014-02-10  Gary Benson  <gbenson@redhat.com>
12649
12650         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12651         Rename name_matcher to symbol_matcher.
12652
12653 2014-02-10  Gary Benson  <gbenson@redhat.com>
12654
12655         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12656         Use expand_symtabs_file_matcher_ftype and
12657         expand_symtabs_symbol_matcher_ftype.
12658
12659 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12660
12661         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12662         (struct ada_symbol_cache): New.
12663         (ada_free_symbol_cache): Forward declare.
12664         (struct ada_pspace_data): New.
12665         (ada_pspace_data_handle): New static global.
12666         (get_ada_pspace_data, ada_pspace_data_cleanup)
12667         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12668         (cache_space, cache): Delete, now folded inside struct
12669         ada_pspace_data.
12670         (ada_get_symbol_cache): New function.
12671         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12672         implementation.
12673         (_initialize_ada_language): Remove initialization of cache_space.
12674         Move call to observer_attach_inferior_exit up, grouping it
12675         with the other observer registrations inside this function.
12676         Rename command to be more general.  Add call to
12677         register_program_space_data_with_cleanup.
12678
12679 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12680
12681         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12682         ada_new_objfile_observer.
12683         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12684         (_initialize_tasks): Update uses of ada_new_objfile_observer
12685         and ada_tasks_normal_stop_observer.
12686
12687 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12688
12689         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12690         returned by the 'Length attribute to integer.
12691
12692 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12693
12694         * ada-lang.c (_initialize_ada_language): Initialize
12695         cache_space obstack.
12696
12697 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12698
12699         * ada-lang.c (HASH_SIZE): New macro.
12700         (struct cache_entry): New type.
12701         (cache_space, cache): New static globals.
12702         (ada_clear_symbol_cache, find_entry): New functions.
12703         (lookup_cached_symbol, cache_symbol): Implement.
12704         (ada_new_objfile_observer, ada_free_objfile_observer): New.
12705         (_initialize_ada_language): Attach ada_new_objfile_observer
12706         and ada_free_objfile_observer.
12707
12708 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
12709
12710         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12711         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12712         struct block * parameter.
12713         (ada_lookup_symbol_list_worker): Constify local variable "block".
12714         Remove cast which is no longer necessary.
12715
12716 2014-02-10  Doug Evans  <xdje42@gmail.com>
12717
12718         Add Guile as an extension language.
12719         * NEWS: Mention Guile scripting.
12720         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12721         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12722         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12723         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12724         (CLIBS): Add GUILE_LIBS.
12725         (install-guile): New rule.
12726         (guile.o): New rule.
12727         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12728         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12729         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12730         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12731         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12732         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12733         (scm-type.o, scm-utils.o, scm-value.o): New rules.
12734         * configure.ac: New option --with-guile.
12735         * configure: Regenerate.
12736         * config.in: Regenerate.
12737         * auto-load.c: Remove #include "python/python.h".  Add #include
12738         "gdb/section-scripts.h".
12739         (source_section_scripts): Handle Guile scripts.
12740         (_initialize_auto_load): Add name of Guile objfile script to
12741         scripts-directory help text.
12742         * breakpoint.c (condition_command): Tweak comment to include Scheme.
12743         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12744         (struct breakpoint): New member scm_bp_object.
12745         * defs.h (enum command_control_type): New value guile_control.
12746         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
12747         "extension.h".
12748         (show_user): Update comment.
12749         (_initialize_cli_cmds): Update help text for "show user".  Update help
12750         text for max-user-call-depth.
12751         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
12752         "extension.h".
12753         (multi_line_command_p): Add guile_control.
12754         (print_command_lines): Handle guile_control.
12755         (execute_control_command, recurse_read_control_structure): Ditto.
12756         (process_next_line): Recognize "guile" commands.
12757         * disasm.c (gdb_disassemble_info): Make non-static.
12758         * disasm.h: #include "dis-asm.h".
12759         (struct gdbarch): Add forward decl.
12760         (gdb_disassemble_info): Declare.
12761         * extension.c: #include "guile/guile.h".
12762         (extension_languages): Add guile.
12763         (get_ext_lang_defn): Handle EXT_LANG_GDB.
12764         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12765         * gdbtypes.c (get_unsigned_type_max): New function.
12766         (get_signed_type_minmax): New function.
12767         * gdbtypes.h (get_unsigned_type_max): Declare.
12768         (get_signed_type_minmax): Declare.
12769         * guile/README: New file.
12770         * guile/guile-internal.h: New file.
12771         * guile/guile.c: New file.
12772         * guile/guile.h: New file.
12773         * guile/scm-arch.c: New file.
12774         * guile/scm-auto-load.c: New file.
12775         * guile/scm-block.c: New file.
12776         * guile/scm-breakpoint.c: New file.
12777         * guile/scm-disasm.c: New file.
12778         * guile/scm-exception.c: New file.
12779         * guile/scm-frame.c: New file.
12780         * guile/scm-gsmob.c: New file.
12781         * guile/scm-iterator.c: New file.
12782         * guile/scm-lazy-string.c: New file.
12783         * guile/scm-math.c: New file.
12784         * guile/scm-objfile.c: New file.
12785         * guile/scm-ports.c: New file.
12786         * guile/scm-pretty-print.c: New file.
12787         * guile/scm-safe-call.c: New file.
12788         * guile/scm-string.c: New file.
12789         * guile/scm-symbol.c: New file.
12790         * guile/scm-symtab.c: New file.
12791         * guile/scm-type.c: New file.
12792         * guile/scm-utils.c: New file.
12793         * guile/scm-value.c: New file.
12794         * guile/lib/gdb.scm: New file.
12795         * guile/lib/gdb/boot.scm: New file.
12796         * guile/lib/gdb/experimental.scm: New file.
12797         * guile/lib/gdb/init.scm: New file.
12798         * guile/lib/gdb/iterator.scm: New file.
12799         * guile/lib/gdb/printing.scm: New file.
12800         * guile/lib/gdb/types.scm: New file.
12801         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12802         (VPATH): Add $(GUILE_SRCDIR).
12803         (GUILE_DIR): New variable.
12804         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12805         (all): Add stamp-guile dependency.
12806         (stamp-guile): New rule.
12807         (clean-guile, install-guile, uninstall-guile): New rules.
12808         (install-only): Add install-guile dependency.
12809         (uninstall): Add uninstall-guile dependency.
12810         (clean): Add clean-guile dependency.
12811
12812 2014-02-09  Doug Evans  <xdje42@gmail.com>
12813
12814         Revert this patch (which I approved, mea culpa).
12815
12816         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12817
12818         * Makefile.in (all-lib): Remove.
12819         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12820
12821 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
12822
12823         Fix Python stack corruption.
12824         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12825         gdb_py_longest.
12826
12827 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
12828
12829         * Makefile.in (all-lib): Remove.
12830         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12831
12832 2014-02-07  Doug Evans  <dje@google.com>
12833
12834         * extension-priv.h (extension_language_script_ops): Add comment.
12835         (extension_language_ops): Add comment.
12836         (active_ext_lang_state): Fix typo in comment.
12837
12838 2014-02-07  Pedro Alves  <palves@redhat.com>
12839
12840         PR breakpoints/16292
12841         * infrun.c (handle_signal_stop) <signal arrives while stepping
12842         over a breakpoint>: Switch back to the stepping thread.
12843
12844 2014-02-07  Yao Qi  <yao@codesourcery.com>
12845
12846         * target.c (target_xfer_partial): Return zero if LEN is zero.
12847
12848 2014-02-07  Yao Qi  <yao@codesourcery.com>
12849
12850         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12851         (ld_so_xfer_auxv): Likewise.
12852         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12853         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12854         * corelow.c (core_xfer_partial): Likewise.
12855         * ctf.c (ctf_xfer_partial): Likewise.
12856         * darwin-nat.c (darwin_read_dyld_info): Likewise.
12857         (darwin_xfer_partial): Likewise.
12858         * exec.c (exec_xfer_partial): Likewise.
12859         * gnu-nat.c (gnu_xfer_partial): Likewise.
12860         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12861         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12862         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12863         * linux-nat.c (linux_xfer_siginfo): Likewise.
12864         (linux_proc_xfer_spu): Likewise.
12865         * procfs.c (procfs_xfer_partial): Likewise.
12866         * record-full.c (record_full_xfer_partial): Likewise.
12867         (record_full_core_xfer_partial): Likewise.
12868         * remote-sim.c (gdbsim_xfer_partial): Likewise.
12869         * remote.c (remote_write_qxfer): Likewise.
12870         (remote_write_qxfer, remote_read_qxfer): Likewise.
12871         (remote_xfer_partial): Likewise.
12872         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12873         (rs6000_xfer_shared_libraries): Likewise.
12874         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12875         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12876         (spu_xfer_partial): Likewise.
12877         * target.c (memory_xfer_partial_1): Likewise.
12878         * tracepoint.c (tfile_xfer_partial): Likewise.
12879         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12880         (windows_xfer_partial): Likewise.
12881
12882 2014-02-07  Yao Qi  <yao@codesourcery.com>
12883
12884         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
12885         comments.
12886         (core_xfer_shared_libraries_aix): Likewise.
12887         * gdbarch.c, gdbarch.h: Regenerated.
12888         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12889         ULONGEST.  Change 'len_avail' type to ULONGEST.
12890         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12891         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12892         declaration.
12893         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12894
12895 2014-02-07  Yao Qi  <yao@codesourcery.com>
12896
12897         * corefile.c (memory_error): Get 'exception' from ERR and pass
12898         'exception' to throw_error.
12899
12900 2014-02-06  Doug Evans  <xdje42@gmail.com>
12901
12902         * configure.ac (libpython checking): Remove all but python.o from
12903         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
12904         * configure: Regenerate.
12905
12906         * Makefile.in (SFILES): Add extension.c.
12907         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12908         (COMMON_OBS): Add extension.o.
12909         * extension.h: New file.
12910         * extension-priv.h: New file.
12911         * extension.c: New file.
12912
12913         * python/python-internal.h: #include "extension.h".
12914         (gdbpy_auto_load_enabled): Declare.
12915         (gdbpy_apply_val_pretty_printer): Declare.
12916         (gdbpy_apply_frame_filter): Declare.
12917         (gdbpy_preserve_values): Declare.
12918         (gdbpy_breakpoint_cond_says_stop): Declare.
12919         (gdbpy_breakpoint_has_cond): Declare.
12920         (void source_python_script_for_objfile): Delete.
12921         * python/python.c: #include "extension-priv.h".
12922         Delete inclusion of "observer.h".
12923         (extension_language_python): Moved here and renamed from
12924         script_language_python in py-auto-load.c.
12925         Redefined to be of type extension_language_defn.
12926         (python_extension_script_ops): New global.
12927         (python_extension_ops): New global.
12928         (struct python_env): New member previous_active.
12929         (restore_python_env): Call restore_active_ext_lang.
12930         (ensure_python_env): Call set_active_ext_lang.
12931         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12932         New arg extlang.
12933         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12934         New arg extlang.
12935         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12936         New arg extlang.
12937         (gdbpy_eval_from_control_command): Renamed from
12938         eval_python_from_control_command, made static.  New arg extlang.
12939         (gdbpy_source_script) Renamed from source_python_script, made static.
12940         New arg extlang.
12941         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
12942         result to int.  New arg extlang.
12943         (gdbpy_source_objfile_script): Renamed from
12944         source_python_script_for_objfile, made static.  New arg extlang.
12945         (gdbpy_start_type_printers): Renamed from start_type_printers, made
12946         static.  New args extlang, extlang_printers.  Change result type to
12947         "void".
12948         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12949         static.  New arg extlang.  Rename arg printers to extlang_printers
12950         and change type to ext_lang_type_printers *.
12951         (gdbpy_free_type_printers): Renamed from free_type_printers, made
12952         static.  Replace argument arg with extlang, extlang_printers.
12953         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12954         (!HAVE_PYTHON, source_python_script): Delete.
12955         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12956         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12957         (!HAVE_PYTHON, start_type_printers): Delete.
12958         (!HAVE_PYTHON, apply_type_printers): Delete.
12959         (!HAVE_PYTHON, free_type_printers): Delete.
12960         (_initialize_python): Delete call to observer_attach_before_prompt.
12961         (finalize_python): Set/restore active extension language.
12962         (gdbpy_finish_initialization) Renamed from
12963         finish_python_initialization, made static.  New arg extlang.
12964         (gdbpy_initialized): New function.
12965         * python/python.h: #include "extension.h".  Delete #include
12966         "value.h", "mi/mi-cmds.h".
12967         (extension_language_python): Declare.
12968         (GDBPY_AUTO_FILE_NAME): Delete.
12969         (enum py_bt_status): Moved to extension.h and renamed to
12970         ext_lang_bt_status.
12971         (enum frame_filter_flags): Moved to extension.h.
12972         (enum py_frame_args): Moved to extension.h and renamed to
12973         ext_lang_frame_args.
12974         (finish_python_initialization): Delete.
12975         (eval_python_from_control_command): Delete.
12976         (source_python_script): Delete.
12977         (apply_val_pretty_printer): Delete.
12978         (apply_frame_filter): Delete.
12979         (preserve_python_values): Delete.
12980         (gdbpy_script_language_defn): Delete.
12981         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12982         (start_type_printers, apply_type_printers, free_type_printers): Delete.
12983
12984         * auto-load.c: #include "extension.h".
12985         (GDB_AUTO_FILE_NAME): Delete.
12986         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
12987         (script_language_gdb): Delete, moved to extension.c and renamed to
12988         extension_language_gdb.
12989         (source_gdb_script_for_objfile): Delete.
12990         (auto_load_pspace_info): New member unsupported_script_warning_printed.
12991         (loaded_script): Change type of language member to
12992         struct extension_language_defn *.
12993         (init_loaded_scripts_info): Initialize
12994         unsupported_script_warning_printed.
12995         (maybe_add_script): Make static.  Change type of language arg to
12996         struct extension_language_defn *.
12997         (clear_section_scripts): Reset unsupported_script_warning_printed.
12998         (auto_load_objfile_script_1): Rewrite to use extension language API.
12999         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13000         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13001         (source_section_scripts): Rewrite to use extension language API.
13002         (load_auto_scripts_for_objfile): Rewrite to use
13003         auto_load_scripts_for_objfile.
13004         (collect_matching_scripts_data): Change type of language member to
13005         struct extension_language_defn *.
13006         (auto_load_info_scripts): Change type of language arg to
13007         struct extension_language_defn *.
13008         (unsupported_script_warning_print): New function.
13009         (script_not_found_warning_print): Make static.
13010         (_initialize_auto_load): Rewrite construction of scripts-directory
13011         help.
13012         * auto-load.h (struct objfile): Add forward decl.
13013         (struct script_language): Delete.
13014         (struct auto_load_pspace_info): Add forward decl.
13015         (struct extension_language_defn): Add forward decl.
13016         (maybe_add_script): Delete.
13017         (auto_load_objfile_script): Declare.
13018         (script_not_found_warning_print): Delete.
13019         (auto_load_info_scripts): Update prototype.
13020         (auto_load_gdb_scripts_enabled): Declare.
13021         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13022         auto_load_python_scripts_enabled and made public.
13023         (script_language_python): Delete, moved to python.c.
13024         (gdbpy_script_language_defn): Delete.
13025         (info_auto_load_python_scripts): Update to use
13026         extension_language_python.
13027
13028         * breakpoint.c (condition_command): Replace call to
13029         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13030         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13031         with call to breakpoint_ext_lang_cond_says_stop.
13032         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13033         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13034         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13035         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13036         New arg slang.
13037         (local_setattro): Print name of extension language with existing
13038         stop condition.
13039
13040         * valprint.c (val_print, value_print): Update to call
13041         apply_ext_lang_val_pretty_printer.
13042         * cp-valprint.c (cp_print_value): Update call to
13043         apply_ext_lang_val_pretty_printer.
13044         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13045         (gdbpy_apply_val_pretty_printer): Renamed from
13046         apply_val_pretty_printer.  New arg extlang.
13047         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13048
13049         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13050         extension language API.
13051         * cli/cli-script.c (execute_control_command): Update to call
13052         eval_ext_lang_from_control_command.
13053
13054         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13055         enum ext_lang_bt_status values.  Update call to
13056         apply_ext_lang_frame_filter.
13057         (mi_cmd_stack_list_locals): Ditto.
13058         (mi_cmd_stack_list_args): Ditto.
13059         (mi_cmd_stack_list_variables): Ditto.
13060         * mi/mi-main.c: Delete #include "python/python-internal.h".
13061         Add #include "extension.h".
13062         (mi_cmd_list_features): Replace reference to python internal variable
13063         gdb_python_initialized with call to ext_lang_initialized_p.
13064
13065         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13066         Update to use enum ext_lang_frame_args.  Update to call
13067         apply_ext_lang_frame_filter.
13068         * python/py-framefilter.c (extract_sym): Update to use enum
13069         ext_lang_bt_status.
13070         (extract_value, py_print_type, py_print_value): Ditto.
13071         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13072         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13073         (py_print_frame): Ditto.
13074         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13075         New arg extlang.  Update to use enum ext_lang_bt_status.
13076
13077         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13078         finish_python_initialization.  Replace with call to
13079         finish_ext_lang_initialization.
13080
13081         * typeprint.c (do_free_global_table): Update to call
13082         free_ext_lang_type_printers.
13083         (create_global_typedef_table): Update to call
13084         start_ext_lang_type_printers.
13085         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13086         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13087         (type_print_options): Change type of global_printers from "void *"
13088         to "struct ext_lang_type_printers *".
13089
13090         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13091         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13092         (gdbpy_preserve_values): Renamed from preserve_python_values.
13093         New arg extlang.
13094         (!HAVE_PYTHON, preserve_python_values): Delete.
13095
13096         * utils.c (quit_flag): Delete, moved to extension.c.
13097         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13098         extension.c.
13099
13100         * eval.c: Delete #include "python/python.h".
13101         * main.c: Delete #include "python/python.h".
13102
13103         * defs.h: Update comment.
13104
13105 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13106
13107         GDB 7.7 released.
13108
13109 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13110
13111         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13112         defined.
13113
13114 2014-02-05  Yao Qi  <yao@codesourcery.com>
13115
13116         * remote.c (remote_pass_signals): Remove local 'buf' and use
13117         rs->buf.
13118         (remote_program_signals): Likewise.
13119
13120 2014-02-05  Yao Qi  <yao@codesourcery.com>
13121
13122         * ctf.c: Include "inferior.h" and "gdbthread.h".
13123         (CTF_PID): A new macro.
13124         (ctf_open): Call inferior_appeared and add_thread_silent.
13125         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13126         (ctf_thread_alive): New function.
13127         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13128
13129 2014-02-05  Yao Qi  <yao@codesourcery.com>
13130
13131         Revert this patch:
13132
13133         2013-05-24  Yao Qi  <yao@codesourcery.com>
13134
13135         * tracepoint.c (TFILE_PID): Remove.
13136         (tfile_open): Don't add thread and inferior.
13137         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13138         exit_inferior_silent.
13139         (tfile_thread_alive): Remove.
13140         (init_tfile_ops): Don't set field 'to_thread_alive' of
13141         tfile_ops.
13142
13143 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13144
13145         * remote.c (remote_start_remote): Call remote_check_symbols even
13146         if only symbol-file (not file) has been given.
13147
13148 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13149
13150         * gdbarch.sh (skip_entrypoint): New callback.
13151         * gdbarch.c, gdbarch.h: Regenerate.
13152         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13153         * infrun.c (fill_in_stop_func): Likewise.
13154         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13155         (ppc_elfv2_elf_make_msymbol_special): New function.
13156         (ppc_elfv2_skip_entrypoint): Likewise.
13157         (ppc_linux_init_abi): Install them for ELFv2.
13158
13159 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13160
13161         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13162         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13163         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13164         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13165         structures returned in GPRs.
13166
13167 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13168
13169         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13170         offset to the stack parameter list for the ELFv2 ABI.
13171
13172 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13173
13174         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13175         set_gdbarch_convert_from_func_ptr_addr and
13176         set_gdbarch_elf_make_msymbol_special for ELFv1.
13177         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13178         function descriptors on ELFv1.
13179         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13180         set up r12 at function entry.
13181
13182 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13183
13184         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13185         (struct gdbarch_tdep): New member elf_abi.
13186
13187         * rs6000-tdep.c: Include "elf/ppc64.h".
13188         (rs6000_gdbarch_init): Detect ELF ABI version.
13189
13190 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13191
13192         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13193         within a register pair holding a DFP 128-bit value on little-endian.
13194         (ppc64_sysv_abi_return_value_base): Likewise.
13195         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13196         (dfp_pseudo_register_write): Likewise.
13197
13198 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13199
13200         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13201         offset on little-endian when passing _Decimal32.
13202         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13203
13204 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13205
13206         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13207         of the overlapped FP register within the VSX register on little-
13208         endian platforms.
13209         (efpr_pseudo_register_write): Likewise.
13210
13211 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13212
13213         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13214         offset on little-endian when passing small structures.
13215
13216 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13217
13218         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13219         (struct ppc64_sysv_argpos): New data structure.
13220         (ppc64_sysv_abi_push_float): Remove.
13221         (ppc64_sysv_abi_push_val): New function.
13222         (ppc64_sysv_abi_push_integer): Likewise.
13223         (ppc64_sysv_abi_push_freg): Likewise.
13224         (ppc64_sysv_abi_push_vreg): Likewise.
13225         (ppc64_sysv_abi_push_param): Likewise.
13226         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13227         (ppc64_sysv_abi_return_value_base): New function.
13228         (ppc64_sysv_abi_return_value): Refactor to use it.
13229
13230 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13231
13232         * NEWS: Document new target powerpc64le-*-linux*.
13233
13234 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13235
13236         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13237         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13238         core dumps.
13239         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13240         register set used in ELF core dumps.  Add floating-point register set.
13241
13242 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13243
13244         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13245         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13246         penultimate entry from number representing the PC register
13247         to symbolic constant representing the MDR register.  Add
13248         constant for the PC register to the end of the table.
13249
13250 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13251
13252         * bsd-kvm.c: Include <sys/param.h>
13253
13254 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13255
13256         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13257
13258 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13259
13260         * ada-lang.h (clear_ada_sym_cache): Delete.
13261
13262 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13263
13264         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13265
13266 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13267
13268         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13269           the sigreturn register save area only if the syscall is
13270           sigreturn.
13271
13272 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13273
13274         * valops.c (value_slice): Minor reformatting.
13275
13276 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13277
13278         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13279
13280 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13281
13282         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13283         New static globals.
13284         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13285         (ada_ignore_descriptive_types_p): New static global.
13286         (find_parallel_type_by_descriptive_type): Return immediately
13287         if ada_ignore_descriptive_types_p is set.
13288         (_initialize_ada_language): Register new commands "maintenance
13289         set ada", "maintenance show ada", "maintenance set ada
13290         ignore-descriptive-types" and "maintenance show ada
13291         ignore-descriptive-types".
13292         * NEWS: Add entry for new "maint ada set/show
13293         ignore-descriptive-types" commands.
13294
13295 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13296
13297         * record-btrace.c (record_btrace_close): Call btrace_teardown
13298         for all threads.
13299
13300 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13301
13302         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13303         "ui-out.h".
13304
13305 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13306
13307         * ada-typeprint (type_is_full_subrange_of_target_type):
13308         New function.
13309         (print_range): Add parameter bounds_prefered_p.  If not set,
13310         try printing range types using the name of their base type.
13311         (print_range_type): Add parameter bounds_prefered_p.
13312         Use it in call to print_range.
13313         (print_array_type, ada_print_type): Update calls to print_range
13314         and print_range_type.
13315
13316 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13317
13318         * ada-typeprint.c (print_array_type, print_choices, print_range)
13319         (print_range_bound, print_dynamic_range_bound, print_range_type):
13320         Remove declaration.
13321
13322 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13323
13324         * ada-typeprint.c (print_range): Add missing empty line
13325         after local declaration.
13326
13327 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13328
13329         * ada-valprint.c (print_optional_low_bound): Get index_type's
13330         target type for as long as it is a TYPE_CODE_RANGE.
13331
13332 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13333
13334         * procfs.c (procfs_make_note_section): Remove assertion and
13335         associated comment.
13336
13337 2014-01-24  Yao Qi  <yao@codesourcery.com>
13338
13339         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13340         * corelow.c (get_core_siginfo): Likewise.
13341
13342 2014-01-24  Yao Qi  <yao@codesourcery.com>
13343
13344         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13345         ULONGEST.  Don't check 'len' is negative.
13346         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13347
13348 2014-01-23  Tom Tromey  <tromey@redhat.com>
13349
13350         PR python/16485:
13351         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13352         Handle exception from frame.block.
13353         (FrameVars.fetch_frame_locals): Likewise.
13354
13355 2014-01-23  Tom Tromey  <tromey@redhat.com>
13356
13357         PR python/16487:
13358         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13359         on a NULL pointer.  Move "goto error" to correct place.
13360
13361 2014-01-23  Tom Tromey  <tromey@redhat.com>
13362
13363         PR python/16491:
13364         * python/py-framefilter.c (apply_frame_filter): Call
13365         ensure_python_env after computing gdbarch.
13366
13367 2014-01-23  Yao Qi  <yao@codesourcery.com>
13368
13369         * target.c (raw_memory_xfer_partial): Change argument type
13370         from void * to gdb_byte *.
13371         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13372
13373 2014-01-22  Doug Evans  <dje@google.com>
13374
13375         New gdbserver option --debug-format=timestamp.
13376         * NEWS: Mention it.
13377
13378 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13379
13380         * syscalls/s390x-linux.xml: New file.
13381         * syscalls/s390-linux.xml: New file.
13382         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13383         (XML_SYSCALL_FILENAME_S390X): Likewise.
13384         (op_svc): New enum value for SVC opcode.
13385         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13386         (s390_linux_get_syscall_number): New function.
13387         (s390_gdbarch_init): Register '*get_syscall_number' and the
13388         syscall xml file name.
13389         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13390         "s390-linux.xml" and "s390x-linux.xml".
13391         * NEWS: Announce new feature.
13392
13393 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13394
13395         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13396
13397 2014-01-22  Pedro Alves  <palves@redhat.com>
13398
13399         * xtensa-config.c: Include defs.h.
13400
13401 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13402
13403         * common/common-utils.h: Add "ARI:" comment beside __func__
13404         reference.
13405
13406 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13407
13408         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13409         documentation a bit.
13410
13411 2014-01-21  Roland McGrath  <mcgrathr@google.com>
13412
13413         * configure.ac: Call AM_PROG_INSTALL_STRIP.
13414         * configure: Regenerate.
13415         * aclocal.m4: Regenerate.
13416         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13417         New substituted variables.
13418         (install-strip): New target.
13419         (INSTALL_SCRIPT): New substituted variable.
13420         (FLAGS_TO_PASS): Add it.
13421         (install-only): Use $(INSTALL_SCRIPT) rather than
13422         $(INSTALL_PROGRAM) for gcore.
13423
13424 2014-01-20  Tom Tromey  <tromey@redhat.com>
13425
13426         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13427         together.
13428
13429 2014-01-20  Tom Tromey  <tromey@redhat.com>
13430
13431         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13432         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13433         (deprecated_cmd_warning, complete_on_cmdlist): Update.
13434         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13435         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13436         (struct cmd_list_element) <flags>: Remove.
13437         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13438         doc_allocated>: New fields.
13439         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13440         bitfields.
13441         * maint.c (maintenance_do_deprecate): Update.
13442         * top.c (execute_command): Update.
13443
13444 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
13445
13446         * xtensa-linux-nat.c: Include asm/ptrace.h.
13447
13448 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13449
13450         * Makefile.in (SFILES): Add d-support.c.
13451         (COMMON_OBS): Add d-support.o.
13452         * d-lang.h (d_parse_symbol): Add comment, now defined in
13453         d-support.c.
13454         * d-lang.c (parse_call_convention)
13455         (parse_attributes, parse_function_types)
13456         (parse_function_args, parse_type, parse_identifier)
13457         (call_convention_p, d_parse_symbol): Move functions to ...
13458         * d-support.c: ... New file.
13459
13460 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13461
13462         * d-lang.h (d_parse_symbol): Add declaration.
13463         * d-lang.c (extract_identifiers)
13464         (extract_type_info): Remove functions.
13465         (parse_call_convention, parse_attributes)
13466         (parse_function_types, parse_function_args)
13467         (parse_type, parse_identifier, call_convention_p)
13468         (d_parse_symbol): New functions.
13469         (d_demangle): Use d_parse_symbol to demangle D symbols.
13470
13471 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13472
13473         * d-lang.h (struct builtin_d_type): New data type.
13474         (builtin_d_type): Add declaration.
13475         * d-lang.c (d_language_arch_info, build_d_types)
13476         (builtin_d_type): New functions.
13477         (enum d_primitive_types): New data type.
13478         (d_language_defn): Change c_language_arch_info to
13479         d_language_arch_info.
13480         (d_type_data): New static variable.
13481         (_initialize_d_language): Initialize d_type_data.
13482
13483 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13484
13485         * d-lang.h (d_main_name): Add declaration.
13486         * d-lang.c (d_main_name): New function.
13487         * symtab.c (find_main_name): Add call to d_main_name.
13488
13489 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13490
13491         * d-lang.c (d_language_defn): Change macro_expansion_c to
13492         macro_expansion_no.
13493
13494 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
13495
13496         * MAINTAINERS: Add myself as a write-after-approval maintainer.
13497
13498 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
13499
13500         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13501         gdb_exception" declaration.
13502         * remote.c (getpkt_or_notif_sane): Likewise.
13503
13504 2014-01-17  Doug Evans  <dje@google.com>
13505
13506         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13507         function, contents of dirnames_to_char_ptr_vec_append moved here.
13508         (delim_string_to_char_ptr_vec): New function.
13509         (dirnames_to_char_ptr_vec_append): Rewrite.
13510         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13511
13512 2014-01-17  Doug Evans  <dje@google.com>
13513
13514         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13515         and moved here ...
13516         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13517         #include "common-utils.h".
13518         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13519         * common/vec.h (VEC_ASSERT_PASS): Update.
13520         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13521         (MACH_CHECK_ERROR): Update.
13522
13523 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
13524
13525         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13526         comments.
13527         * gdbarch.h: Regenerate.
13528
13529 2014-01-16  Tom Tromey  <tromey@redhat.com>
13530
13531         * value.c (struct value) <regnum>: Move earlier.
13532
13533 2014-01-16  Tom Tromey  <tromey@redhat.com>
13534
13535         * remote.c (extended_remote_create_inferior): Rename from
13536         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
13537         old implementation.
13538
13539 2014-01-16  Pedro Alves  <palves@redhat.com>
13540
13541         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13542         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13543         the backchain.
13544
13545 2014-01-16  Doug Evans  <dje@google.com>
13546
13547         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13548
13549 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13550
13551         * btrace.h (btrace_thread_flag): New.
13552         (struct btrace_thread_info) <flags>: New.
13553         * record-btrace.c (record_btrace_resume_thread)
13554         (record_btrace_find_thread_to_move, btrace_step_no_history)
13555         (btrace_step_stopped, record_btrace_start_replaying)
13556         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13557         (record_btrace_find_resume_thread): New.
13558         (record_btrace_resume, record_btrace_wait): Extend.
13559         (record_btrace_can_execute_reverse): New.
13560         (record_btrace_open): Fail in non-stop mode.
13561         (record_btrace_set_replay): Split into this, ...
13562         (record_btrace_stop_replaying): ... this, ...
13563         (record_btrace_clear_histories): ... and this.
13564         (init_record_btrace_ops): Init to_can_execute_reverse.
13565         * NEWS: Announce it.
13566
13567 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13568
13569         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13570         (forward_target_decr_pc_after_break)
13571         (target_decr_pc_after_break): New.
13572         * target.c (forward_target_decr_pc_after_break)
13573         (target_decr_pc_after_break): New.
13574         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13575         instead of gdbarch_decr_pc_after_break.
13576         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13577         instead of gdbarch_decr_pc_after_break.
13578         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13579         instead of gdbarch_decr_pc_after_break.
13580         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13581         instead of gdbarch_decr_pc_after_break.
13582         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13583         instead of gdbarch_decr_pc_after_break.
13584         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13585         instead of gdbarch_decr_pc_after_break.
13586
13587 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13588
13589         * btrace.c: Include regcache.h.
13590         (btrace_add_pc): New.
13591         (btrace_enable): Call btrace_add_pc.
13592         (btrace_is_empty): New.
13593         * btrace.h (btrace_is_empty): New.
13594         * record-btrace.c (require_btrace, record_btrace_info): Call
13595         btrace_is_empty.
13596
13597 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13598
13599         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13600         Support delta reads.
13601         (linux_disable_btrace): Change return type.
13602         * common/linux-btrace.h (linux_read_btrace): Change parameters
13603         and return type to allow error reporting.  Update users.
13604         (linux_disable_btrace): Change return type.  Update users.
13605         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13606         New.
13607         (btrace_error): New.
13608         (btrace_block) <begin>: Comment on BEGIN == 0.
13609         * btrace.c (btrace_compute_ftrace): Start from the end of
13610         the current trace.
13611         (btrace_stitch_trace, btrace_clear_history): New.
13612         (btrace_fetch): Read delta trace, return if replaying.
13613         (btrace_clear): Move clear history code to btrace_clear_history.
13614         (parse_xml_btrace): Throw an error if parsing failed.
13615         * target.h (struct target_ops) <to_read_btrace>: Change parameters
13616         and return type to allow error reporting.
13617         (target_read_btrace): Change parameters and return type to allow
13618         error reporting.
13619         * target.c (target_read_btrace): Update.
13620         * remote.c (remote_read_btrace): Support delta reads.  Pass
13621         errors on.
13622         * NEWS: Announce it.
13623
13624 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13625
13626         * record.h (record_btrace_frame_unwind)
13627         (record_btrace_tailcall_frame_unwind): New declarations.
13628         * dwarf2-frame: Include record.h
13629         (dwarf2_frame_cfa): Throw an error for btrace frames.
13630         * record-btrace.c: Include hashtab.h.
13631         (btrace_get_bfun_name): New.
13632         (btrace_call_history): Call btrace_get_bfun_name.
13633         (struct btrace_frame_cache): New.
13634         (bfcache): New.
13635         (bfcache_hash, bfcache_eq, bfcache_new): New.
13636         (btrace_get_frame_function): New.
13637         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13638         (record_btrace_frame_this_id): Compute own id.
13639         (record_btrace_frame_prev_register): Provide PC, throw_error
13640         for all other registers.
13641         (record_btrace_frame_sniffer): Detect btrace frames.
13642         (record_btrace_tailcall_frame_sniffer): New.
13643         (record_btrace_frame_dealloc_cache): New.
13644         (record_btrace_frame_unwind): Add new functions.
13645         (record_btrace_tailcall_frame_unwind): New.
13646         (_initialize_record_btrace): Allocate cache.
13647         * btrace.c (btrace_clear): Call reinit_frame_cache.
13648         * NEWS: Announce it.
13649
13650 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13651
13652         * record-btrace.c (record_btrace_set_replay)
13653         (record_btrace_goto_begin, record_btrace_goto_end)
13654         (record_btrace_goto): New.
13655         (init_record_btrace_ops): Initialize them.
13656         * NEWS: Announce it.
13657
13658 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13659
13660         * record-btrace.c (record_btrace_find_new_threads)
13661         (record_btrace_thread_alive): New.
13662         (init_record_btrace_ops): Initialize to_find_new_threads and
13663         to_thread_alive.
13664
13665 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13666
13667         * record-btrace.c (record_btrace_resume): New.
13668         (record_btrace_wait): New.
13669         (init_record_btrace_ops): Initialize to_wait and to_resume.
13670
13671 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13672
13673         * record-btrace.c (record_btrace_xfer_partial)
13674         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13675         (record_btrace_allow_memory_access): New.
13676         (init_record_btrace_ops): Initialize new methods.
13677         * target.c (raw_memory_xfer_partial): Bail out if target reports
13678         that this memory is not available.
13679
13680 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13681
13682         * target.h (target_ops) <to_insert_breakpoint>
13683         <to_remove_breakpoint>: Add target_ops parameter.
13684         (forward_target_insert_breakpoint): New.
13685         (forward_target_remove_breakpoint): New.
13686         (memory_remove_breakpoint, memory_insert_breakpoint):
13687         Add target_ops parameter.
13688         * target.c (target_insert_breakpoint): Split into this and ...
13689         (forward_target_insert_breakpoint): ... this.
13690         (target_remove_breakpoint): Split into this and ...
13691         (forward_target_remove_breakpoint): ... this.
13692         (debug_to_insert_breakpoint): Add target_ops parameter.
13693         Call forward_target_insert_breakpoint.
13694         (debug_to_remove_breakpoint): Add target_ops parameter.
13695         Call forward_target_remove_breakpoint.
13696         (update_current_target): Do not inherit or default to_insert_breakpoint
13697         and to_remove_breakpoint.
13698         * corelow.c (ignore): Add target_ops parameter.
13699         * exec.c (ignore): Add target_ops parameter.
13700         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13701         Add target_ops parameter.
13702         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13703         Add target_ops parameter.
13704         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13705         Add target_ops parameter.
13706         * record-full.c (record_full_beneath_to_insert_breakpoint)
13707         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13708         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13709         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13710         (record_full_core_remove_breakpoint): Add target_ops parameter.
13711         Update users.
13712         (record_full_beneath_to_insert_breakpoint_ops)
13713         (record_full_beneath_to_remove_breakpoint_ops)
13714         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13715         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13716         tmp_to_remove_breakpoint_ops,
13717         record_full_beneath_to_insert_breakpoint_ops, and
13718         record_full_beneath_to_remove_breakpoint_ops.
13719         * remote-m32r-sdi.c (m32r_insert_breakpoint)
13720         (m32r_remove_breakpoint): Add target_ops parameter.
13721         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13722         Add target_ops parameter.
13723         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13724         Add target_ops parameter.
13725
13726 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13727             Markus Metzger  <markus.t.metzger@intel.com>
13728
13729         * record-btrace.c: Include frame-unwind.h.
13730         (record_btrace_frame_unwind_stop_reason)
13731         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13732         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13733         New.
13734         (init_record_btrace_ops): Install it.
13735
13736 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13737
13738         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13739         get_prev_frame_1.
13740
13741 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13742
13743         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13744         earlier.
13745
13746 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
13747
13748         * frame-unwind.c: Include target.h.
13749         (frame_unwind_try_unwinder): New function with code from ...
13750         (frame_unwind_find_by_frame): ... here.  New variable
13751         unwinder_from_target, call also target_get_unwinder)
13752         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13753         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13754         * target.h (struct target_ops): New fields to_get_unwinder and
13755         to_get_tailcall_unwinder.
13756         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13757
13758 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13759
13760         * record-btrace.c (record_btrace_fetch_registers)
13761         (record_btrace_store_registers)
13762         (record_btrace_to_prepare_to_store): New.
13763         (init_record_btrace_ops): Add the above.
13764
13765 2014-01-16  Tom Tromey  <tromey@redhat.com>
13766
13767         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13768         * target.h (struct target_ops) <to_prepare_to_store>: Add
13769         argument.
13770         (target_prepare_to_store): Add argument.
13771         * target.c (debug_to_prepare_to_store): Add argument.
13772         (update_current_target): Update.
13773         * remote.c (remote_prepare_to_store): Add 'self' argument.
13774         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13775         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13776         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13777         * record-full.c (record_full_core_prepare_to_store): Add 'self'
13778         argument.
13779         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13780         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13781         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13782         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13783         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13784
13785 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13786
13787         * btrace.h (replay) <replay>: New.
13788         (btrace_is_replaying): New.
13789         * btrace.c (btrace_clear): Free replay iterator.
13790         (btrace_is_replaying): New.
13791         * record-btrace.c (record_btrace_is_replaying): New.
13792         (record_btrace_info): Print insn number if replaying.
13793         (record_btrace_insn_history): Start at replay position.
13794         (record_btrace_call_history): Start at replay position.
13795         (init_record_btrace_ops): Init to_record_is_replaying.
13796
13797 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13798
13799         * record-btrace.c (record_btrace_insn_history_range): Include
13800         end.
13801         (record_btrace_insn_history_from): Adjust range.
13802         (record_btrace_call_history_range): Include
13803         end.
13804         (record_btrace_call_history_from): Adjust range.
13805         * NEWS: Announce changes.
13806
13807 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13808
13809         * record.h (enum record_print_flag)
13810         <record_print_indent_calls>: New.
13811         * record.c (get_call_history_modifiers): Recognize /c modifier.
13812         (_initialize_record): Document /c modifier.
13813         * record-btrace.c (btrace_call_history): Add btinfo parameter.
13814         Reorder fields.  Optionally indent the function name.  Update
13815         all users.
13816         * NEWS: Announce changes.
13817
13818 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13819
13820         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13821
13822 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13823
13824         * btrace.c (ftrace_new_function): Start counting at one.
13825         * record-btrace.c (record_btrace_info): Adjust number of calls
13826         and insns.
13827         * NEWS: Announce it.
13828
13829 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13830
13831         * record-btrace.c (btrace_call_history_insn_range): Print
13832         insn range as [begin, end].
13833
13834 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13835
13836         * btrace.h (struct btrace_func_link): New.
13837         (enum btrace_function_flag): New.
13838         (struct btrace_inst): Rename to ...
13839         (struct btrace_insn): ...this. Update all users.
13840         (struct btrace_func) <ibegin, iend>: Remove.
13841         (struct btrace_func_link): New.
13842         (struct btrace_func): Rename to ...
13843         (struct btrace_function): ...this. Update all users.
13844         (struct btrace_function) <segment, flow, up, insn, insn_offset)
13845         (number, level, flags>: New.
13846         (struct btrace_insn_iterator): Rename to ...
13847         (struct btrace_insn_history): ...this.
13848         Update all users.
13849         (struct btrace_insn_iterator, btrace_call_iterator): New.
13850         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13851         (struct btrace_target_info) <begin, end, level>
13852         <insn_history, call_history>: New.
13853         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13854         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13855         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13856         (btrace_call_number, btrace_call_begin, btrace_call_end)
13857         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13858         (btrace_find_function_by_number, btrace_set_insn_history)
13859         (btrace_set_call_history): New.
13860         * btrace.c (btrace_init_insn_iterator)
13861         (btrace_init_func_iterator, compute_itrace): Remove.
13862         (ftrace_print_function_name, ftrace_print_filename)
13863         (ftrace_skip_file): Change
13864         parameter to const.
13865         (ftrace_init_func): Remove.
13866         (ftrace_debug): Use new btrace_function fields.
13867         (ftrace_function_switched): Also consider gaining and
13868         losing symbol information).
13869         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13870         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13871         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13872         New.
13873         (ftrace_new_function): Move. Remove debug print.
13874         (ftrace_update_lines, ftrace_update_insns): New.
13875         (ftrace_update_function): Check for call, ret, and jump.
13876         (compute_ftrace): Renamed to ...
13877         (btrace_compute_ftrace): ...this. Rewritten to compute call
13878         stack.
13879         (btrace_fetch, btrace_clear): Updated.
13880         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13881         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13882         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13883         (btrace_call_number, btrace_call_begin, btrace_call_end)
13884         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13885         (btrace_find_function_by_number, btrace_set_insn_history)
13886         (btrace_set_call_history): New.
13887         * record-btrace.c (require_btrace): Use new btrace thread
13888         info fields.
13889         (record_btrace_info, btrace_insn_history)
13890         (record_btrace_insn_history, record_btrace_insn_history_range):
13891         Use new btrace thread info fields and new iterator.
13892         (btrace_func_history_src_line): Rename to ...
13893         (btrace_call_history_src_line): ...this. Use new btrace
13894         thread info fields.
13895         (btrace_func_history): Rename to ...
13896         (btrace_call_history): ...this. Use new btrace thread info
13897         fields and new iterator.
13898         (record_btrace_call_history, record_btrace_call_history_range):
13899         Use new btrace thread info fields and new iterator.
13900
13901 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13902
13903         * frame.h (frame_id_build_unavailable_stack_special): New.
13904         * frame.c (frame_id_build_unavailable_stack_special): New.
13905
13906 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13907
13908         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13909         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13910         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13911         to gdbarch.
13912         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13913         (i386_insn_is_jump, i386_jmp_p): New.
13914         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13915         insn_is_jump to gdbarch.
13916         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13917         * gdbarch.h: Regenerated.
13918         * gdbarch.c: Regenerated.
13919         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13920         (default_insn_is_jump): New.
13921         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13922         (default_insn_is_jump): New.
13923
13924 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13925
13926         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13927         Change to ...
13928         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
13929         (btrace_read_type) <btrace_read_new>: Change to ...
13930         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
13931
13932 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
13933
13934         * common/linux-btrace.c (linux_read_btrace): Free trace from
13935         previous iteration.
13936
13937 2014-01-15  Doug Evans  <dje@google.com>
13938
13939         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13940         uint32_t.
13941
13942 2014-01-15  Tom Tromey  <tromey@redhat.com>
13943
13944         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13945         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13946         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13947         (set_objfile_main_name): New function.
13948         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13949         language_of_main>: New fields.
13950         (set_objfile_main_name): Declare.
13951         * symtab.c (find_main_name): Loop over objfiles to find the main
13952         name and language.
13953         (set_main_name): Now static.
13954         (get_main_info): Add comment.
13955         * symtab.h (set_main_name): Don't declare.
13956
13957 2014-01-15  Tom Tromey  <tromey@redhat.com>
13958
13959         * symtab.c (main_progspace_key): New global.
13960         (struct main_info): New.
13961         (name_of_main, language_of_main): Remove.
13962         (get_main_info, main_info_cleanup): New function.
13963         (set_main_name, main_name, main_language): Use get_main_info.
13964         (_initialize_symtab): Initialize main_progspace_key.
13965
13966 2014-01-15  Tom Tromey  <tromey@redhat.com>
13967
13968         * dbxread.c (process_one_symbol): Update.
13969         * dwarf2read.c (read_partial_die): Update.
13970         * symfile.c (set_initial_language): Call main_language.
13971         * symtab.c (language_of_main): Now static.
13972         (set_main_name): Add 'lang' parameter.
13973         (find_main_name): Update.
13974         (main_language): New function.
13975         (symtab_observer_executable_changed): Update.
13976         * symtab.h (set_main_name): Update.
13977         (language_of_main): Remove.
13978         (main_language): Declare.
13979
13980 2014-01-15  Tom Tromey  <tromey@redhat.com>
13981
13982         * symfile.c (init_entry_point_info): Use new "initialized" field.
13983         Update.
13984         * objfiles.h (struct entry_point) <initialized>: New field.
13985         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13986         (struct objfile) <ei>: ...here.  Remove.
13987         * objfiles.c (entry_point_address_query): Update.
13988
13989 2014-01-15  Tom Tromey  <tromey@redhat.com>
13990
13991         * objfiles.c (entry_point_address_query): Relocate entry point
13992         address.
13993         (objfile_relocate1): Do not relocate entry point address.
13994         * objfiles.h (struct entry_info) <entry_point>: Update comment.
13995         <the_bfd_section_index>: New field.
13996         * symfile.c (init_entry_point_info): Find the entry point's
13997         section.
13998
13999 2014-01-15  Tom Tromey  <tromey@redhat.com>
14000
14001         * solib-frv.c (enable_break): Use entry_point_address_query.
14002
14003 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14004
14005         * NEWS: Add note on improved process record-replay on
14006         arm*-linux* targets.
14007
14008 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14009
14010         * arm-tdep.c (enum arm_record_result): New enum.
14011         (arm_record_unsupported_insn): New function.
14012         (arm_record_coproc_data_proc): Removed.
14013         (thumb2_record_ld_st_multiple): New function.
14014         (thumb2_record_ld_st_dual_ex_tbb): New function.
14015         (thumb2_record_data_proc_sreg_mimm): New function.
14016         (thumb2_record_ps_dest_generic): New function.
14017         (thumb2_record_branch_misc_cntrl): New function.
14018         (thumb2_record_str_single_data): New function.
14019         (thumb2_record_ld_mem_hints): New function.
14020         (thumb2_record_ld_word): New function.
14021         (thumb2_record_lmul_lmla_div): New function.
14022         (thumb2_record_decode_insn_handler): New function.
14023         (decode_insn): Add thumb32 instruction handlers.
14024
14025 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14026
14027         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14028         (struct arm_linux_record_tdep): Declare.
14029         (arm_canonicalize_syscall): New function.
14030         (arm_all_but_pc_registers_record): New function.
14031         (arm_linux_syscall_record): New function.
14032         (arm_linux_init_abi): Add syscall recording constructs.
14033         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14034         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14035         decoding.
14036         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14037         <arm_syscall_record>: New field.
14038         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14039         gdb_target_obs.
14040
14041 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14042
14043         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14044         register for push instruction recording.
14045
14046 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14047
14048         * arm-tdep.c (thumb_record_misc): Update to correct logical
14049         error while recording ldm, ldmia and pop instructions.
14050
14051 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14052
14053         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14054
14055 2014-01-15  Pedro Alves  <palves@redhat.com>
14056
14057         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14058         (go32_resume, go32_fetch_registers, store_register)
14059         (go32_store_registers, go32_prepare_to_store)
14060         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14061         (go32_create_inferior, go32_can_run, go32_terminal_init)
14062         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14063         declarations.
14064
14065 2014-01-15  Tom Tromey  <tromey@redhat.com>
14066
14067         * target.h (async_callback_ftype): New typedef.
14068         (struct target_ops) <to_async>: Use it.
14069
14070 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14071
14072         * python/py-value.c (get_field_type): Remove unnecessary curly
14073         braces for single-statement if block.
14074
14075 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14076
14077         * python/py-type.c (convert_field): Add missing empty line
14078         after declarations.
14079
14080 2014-01-14  Doug Evans  <dje@google.com>
14081
14082         * symfile.h (expand_symtabs_matching): Renamed from
14083         expand_partial_symbol_names.  Update prototype.
14084         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14085         * symfile.c (expand_symtabs_matching): Renamed from
14086         expand_partial_symbol_names.  New args file_matcher, kind.
14087         Rename arg fun to symbol_matcher.
14088         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14089         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14090         ada_expand_partial_symbol_name.
14091         (ada_make_symbol_completion_list): Update to call
14092         expand_symtabs_matching.
14093         (ada_add_global_exceptions): Call expand_symtabs_matching.
14094         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14095         call map_symbol_filenames.
14096         * symtab.c (sources_info): Update to call map_symbol_filenames.
14097         (search_symbols): Call expand_symtabs_matching.
14098         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14099         (default_make_symbol_completion_list_break_on): Update to call
14100         expand_symtabs_matching.
14101         (make_source_files_completion_list): Update to call
14102         map_symbol_filenames.
14103
14104 2014-01-14  Doug Evans  <dje@google.com>
14105
14106         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14107         (expand_symtabs_symbol_matcher_ftype): New typedef.
14108         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14109         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14110         * symfile.c (expand_partial_symbol_names): Update to use
14111         expand_symtabs_symbol_matcher_ftype.
14112         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14113         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14114         Arg name_matcher renamed to symbol_matcher.
14115         * psymtab.c (recursively_search_psymtabs): Update to use
14116         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14117         sym_matcher.
14118         (expand_symtabs_matching_via_partial): Update to use
14119         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14120         Arg name_matcher renamed to symbol_matcher.
14121
14122 2014-01-14  Doug Evans  <dje@google.com>
14123
14124         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14125         (map_partial_symbol_filenames): Ditto.
14126         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14127         (map_partial_symbol_filenames): Ditto.
14128         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14129         (map_partial_symbol_filenames): Ditto.
14130         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14131         (map_partial_symbol_filenames): Ditto.
14132         * symtab.c: Delete #include "psymtab.h".
14133
14134 2014-01-14  Pedro Alves  <palves@redhat.com>
14135             Tom Tromey  <tromey@redhat.com>
14136
14137         * infrun.c (use_displaced_stepping): Use find_record_target
14138         instead of RECORD_IS_USED.
14139         (adjust_pc_after_break): Use record_full_is_used instead of
14140         RECORD_IS_USED.
14141         * record-btrace.c (record_btrace_open): Call record_preopen
14142         instead of checking RECORD_IS_USED.
14143         * record-full.c (record_full_shortname)
14144         (record_full_core_shortname): New globals.
14145         (record_full_is_used): New function.
14146         (find_full_open): Call record_preopen instead of checking
14147         RECORD_IS_USED.
14148         (init_record_full_ops): Set the target's shortname to
14149         record_full_shortname.
14150         (init_record_full_core_ops): Set the target's shortname to
14151         record_full_core_shortname.
14152         * record-full.h (record_full_is_used): Declare.
14153         * record.c (find_record_target): Make extern.
14154         (record_preopen): New function.
14155         * record.h (RECORD_IS_USED): Delete macro.
14156         (find_record_target, record_preopen): Declare functions.
14157
14158 2014-01-14  Yao Qi  <yao@codesourcery.com>
14159
14160         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14161         'len''s type to ULONGEST.
14162         (core_xfer_shared_libraries_aix): Likewise.
14163         * gdbarch.c, gdbarch.h: Regenerated.
14164         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14165         Change type of 'len' to ULONGEST.
14166         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14167         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14168
14169 2014-01-14  Yao Qi  <yao@codesourcery.com>
14170
14171         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14172         type of 'len' to ULONGEST.
14173         (linux_xfer_osdata_processgroups): Likewise.
14174         (linux_xfer_osdata_threads): Likewise.
14175         (linux_xfer_osdata_fds): Likewise.
14176         (linux_xfer_osdata_isockets): Likewise.
14177         (linux_xfer_osdata_shm): Likewise.
14178         (linux_xfer_osdata_sem): Likewise.
14179         (linux_xfer_osdata_msg): Likewise.
14180         (linux_common_xfer_osdata): Likewise.
14181         (struct osdata_type) <getter>: Likewise.
14182         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14183         the declaration.
14184
14185 2014-01-14  Yao Qi  <yao@codesourcery.com>
14186
14187         * target.h (target_xfer_partial_ftype): Update.
14188         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14189         ULONGEST.
14190         * aix-thread.c (aix_thread_xfer_partial): Change type of
14191         argument 'len' to ULONGEST.
14192         * auxv.c (procfs_xfer_auxv): Likewise.
14193         (ld_so_xfer_auxv): Likewise.
14194         (memory_xfer_auxv): Likewise.
14195         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14196         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14197         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14198         * corelow.c (core_xfer_partial): Likewise.
14199         * ctf.c (ctf_xfer_partial): Likewise.
14200         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14201         '%u'.
14202         (darwin_read_dyld_info): Likewise.
14203         (darwin_xfer_partial): Likewise.
14204         * exec.c (section_table_xfer_memory_partial): Likewise.
14205         (exec_xfer_partial): Likewise.
14206         * exec.h (section_table_xfer_memory_partial): Update
14207         declaration.
14208         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14209         instead of plongest.
14210         (gnu_xfer_partial): Likewise.
14211         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14212         (ia64_hpux_xfer_solib_got): Likewise.
14213         (ia64_hpux_xfer_partial): Likewise.
14214         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14215         * inf-ptrace.c (inf_ptrace_xfer_partial):
14216         * inf-ttrace.c (inf_ttrace_xfer_partial):
14217         * linux-nat.c (linux_xfer_siginfo): Likewise.
14218         (linux_nat_xfer_partial): Likewise.
14219         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14220         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14221         * monitor.c (monitor_xfer_memory): Likewise.
14222         (monitor_xfer_partial): Likewise.
14223         * procfs.c (procfs_xfer_partial): Likewise.
14224         * record-full.c (record_full_xfer_partial): Likewise.
14225         (record_full_core_xfer_partial): Likewise.
14226         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14227         instead of plongest.
14228         (gdbsim_xfer_partial): Likewise.
14229         * remote.c (remote_xfer_partial): Likewise.
14230         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14231         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14232         declaration.
14233         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14234         (rs6000_xfer_shared_libraries): Likewise.
14235         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14236         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14237         (sparc_xfer_partial): Likewise.
14238         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14239         (spu_xfer_partial): Likewise.
14240         * spu-multiarch.c (spu_xfer_partial): Likewise.
14241         * target.c (target_read_live_memory): Likewise.
14242         (memory_xfer_live_readonly_partial): Likewise.
14243         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14244         (target_xfer_partial, default_xfer_partial): Likewise.
14245         (current_xfer_partial): Likewise.
14246         * tracepoint.c (tfile_xfer_partial): Likewise.
14247         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14248         pulongest instead of plongest.
14249         (windows_xfer_partial): Likewise.
14250         (windows_xfer_shared_libraries): Likewise.
14251
14252 2014-01-14  Yao Qi  <yao@codesourcery.com>
14253
14254         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14255         target_xfer_partial_ftype.
14256
14257 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14258
14259         PR python/15464
14260         PR python/16113
14261         * valops.c (value_struct_elt_bitpos): New function
14262         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14263         object to 'None' if the field name is an empty string ("").
14264         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14265         attribute to look for a field when 'name' is 'None'.
14266         (get_field_type): New function
14267
14268 2014-01-13  Doug Evans  <dje@google.com>
14269
14270         PR symtab/16426
14271         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14272         (try_open_dwop_file): Ditto.
14273         * gdb_bfd.c: #include "vec.h".
14274         (bfdp): New typedef.
14275         (struct gdb_bfd_data): New member included_bfds.
14276         (gdb_bfd_unref): Unref all included bfds.
14277         (gdb_bfd_record_inclusion): New function.
14278         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14279
14280 2014-01-13  Tom Tromey  <tromey@redhat.com>
14281
14282         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14283
14284 2014-01-13  Tom Tromey  <tromey@redhat.com>
14285
14286         * defs.h (use_windows): Remove.
14287         * gdb.c (main): Update.
14288         * main.c (captured_main, gdb_main): Update.
14289         * main.h (struct captured_main_args) <use_windows>: Remove.
14290         * top.c (use_windows): Remove.
14291
14292 2014-01-13  Tom Tromey  <tromey@redhat.com>
14293
14294         * defs.h (deprecated_flush_hook): Remove.
14295
14296 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14297
14298         PR threads/16216
14299         * linux-thread-db.c (try_thread_db_load): Add parameter
14300         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14301         (try_thread_db_load_from_pdir_1): Move it there from here.
14302         (try_thread_db_load_from_sdir): Update caller.
14303         (try_thread_db_load_from_dir): Move it there from here.
14304
14305 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14306
14307         * regformats/regdat.sh: Always rewrite the register file.
14308
14309 2014-01-13  Pedro Alves  <palves@redhat.com>
14310
14311         * Makefile.in (CHECK_HEADERS): New variable.
14312         (check-headers:): New rule.
14313
14314 2014-01-13  Tom Tromey  <tromey@redhat.com>
14315
14316         * cli/cli-setshow.c (do_set_command): Update.
14317         * defs.h (deprecated_set_hook): Remove.
14318         * top.c (deprecated_set_hook): Remove.
14319
14320 2014-01-13  Pedro Alves  <palves@redhat.com>
14321
14322         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14323         the tracepoint if the PC is a pseudo-register.
14324
14325 2014-01-13  Tom Tromey  <tromey@redhat.com>
14326
14327         * defs.h (XCALLOC): Remove.
14328         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14329         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14330         * dwarf2loc.c (allocate_piece_closure): Likewise.
14331         * elfread.c (elf_symfile_segments): Likewise.
14332         (elf_symfile_segments): Likewise.
14333         * gdbtypes.c (copy_type_recursive): Likewise.
14334         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14335         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14336         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14337         XCALLOC.
14338         * mt-tdep.c (mt_gdbarch_init): Likewise.
14339         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14340         XCALLOC.
14341         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14342         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14343         * registry.c (registry_alloc_data): Likewise.
14344         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14345         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14346         * serial.c (serial_fdopen_ops): Likewise.
14347         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14348         XCALLOC.
14349         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14350         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14351         not XCALLOC.
14352
14353 2014-01-13  Tom Tromey  <tromey@redhat.com>
14354
14355         * defs.h (XMALLOC): Remove.
14356         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14357         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14358         * cli-out.c (struct ui_out *): Likewise.
14359         * cli/cli-dump.c (add_dump_command): Likewise.
14360         (add_dump_command): Likewise.
14361         * complaints.c (get_complaints): Likewise.
14362         (find_complaint): Likewise.
14363         * dwarf2-frame.c (execute_cfa_program): Likewise.
14364         * dwarf2read.c (abbrev_table_read_table): Likewise.
14365         * gdbarch.sh: Likewise.
14366         * gdbarch.c: Rebuild.
14367         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14368         * interps.c (interp_new): Likewise.
14369         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14370         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14371         * mi/mi-console.c (mi_console_file_new): Likewise.
14372         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14373         * mi/mi-out.c (mi_out_new): Likewise.
14374         * mi/mi-parse.c (mi_parse): Likewise.
14375         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14376         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14377         * observer.c (xalloc_observer_list_node): Likewise.
14378         * regcache.c (regcache_xmalloc_1): Likewise.
14379         * reggroups.c (reggroup_new): Likewise.
14380         (_initialize_reggroup): Likewise.
14381         * registry.c (register_data_with_cleanup): Likewise.
14382         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14383         * ser-base.c (serial_ttystate): Likewise.
14384         * ser-mingw.c (make_pipe_state): Likewise.
14385         * ser-pipe.c (pipe_open): Likewise.
14386         * serial.c (serial_open): Likewise.
14387         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14388         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14389         (tui_alloc_win_info): Likewise.
14390         (tui_add_content_elements): Likewise.
14391         * tui/tui-file.c (tui_file_new): Likewise.
14392         * tui/tui-out.c (tui_out_new): Likewise.
14393         * ui-file.c (mem_file_new): Likewise.
14394         * ui-out.c (push_level): Likewise.
14395         (make_cleanup_ui_out_end): Likewise.
14396         (append_header_to_list): Likewise.
14397         (ui_out_new): Likewise.
14398         * user-regs.c (user_reg_add_builtin): Likewise.
14399
14400 2014-01-13  Tom Tromey  <tromey@redhat.com>
14401
14402         * defs.h (XZALLOC): Remove.
14403         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14404         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14405         (get_ada_tasks_inferior_data): Likewise.
14406         * auto-load.c (get_auto_load_pspace_data): Likewise.
14407         * auxv.c (get_auxv_inferior_data): Likewise.
14408         * bfd-target.c (target_bfd_reopen): Likewise.
14409         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14410         (deprecated_insert_raw_breakpoint): Likewise.
14411         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14412         * corelow.c (core_open): Likewise.
14413         * darwin-nat.c (darwin_check_new_threads): Likewise.
14414         (darwin_attach_pid): Likewise.
14415         * dummy-frame.c (dummy_frame_push): Likewise.
14416         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14417         * dwarf2loc.c (allocate_piece_closure): Likewise.
14418         * elfread.c (elf_symfile_segments): Likewise.
14419         * eval.c (ptrmath_type_p): Likewise.
14420         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14421         * gdbtypes.c (alloc_type_arch): Likewise.
14422         (alloc_type_instance): Likewise.
14423         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14424         * inf-child.c (inf_child_can_use_agent): Likewise.
14425         * inflow.c (get_inflow_inferior_data): Likewise.
14426         * infrun.c (save_infcall_suspend_state): Likewise.
14427         * jit.c (jit_reader_load): Likewise.
14428         (get_jit_objfile_data): Likewise.
14429         (get_jit_program_space_data): Likewise.
14430         (jit_object_open_impl): Likewise.
14431         (jit_symtab_open_impl): Likewise.
14432         (jit_block_open_impl): Likewise.
14433         (jit_frame_sniffer): Likewise.
14434         * linux-fork.c (add_fork): Likewise.
14435         * maint.c (make_command_stats_cleanup): Likewise.
14436         * objfiles.c (get_objfile_pspace_data): Likewise.
14437         * opencl-lang.c (struct lval_closure): Likewise.
14438         * osdata.c (osdata_start_osdata): Likewise.
14439         * progspace.c (new_address_space): Likewise.
14440         (add_program_space): Likewise.
14441         * remote-sim.c (get_sim_inferior_data): Likewise.
14442         * sh-tdep.c (sh_gdbarch_init): Likewise.
14443         * skip.c (Ignore): Likewise.
14444         (skip_delete_command): Likewise.
14445         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14446         (library_list_start_library): Likewise.
14447         (solib_aix_current_sos): Likewise.
14448         * solib-darwin.c (get_darwin_info): Likewise.
14449         (darwin_current_sos): Likewise.
14450         * solib-dsbt.c (get_dsbt_info): Likewise.
14451         * solib-ia64-hpux.c (new_so_list): Likewise.
14452         (ia64_hpux_get_solib_linkage_addr): Likewise.
14453         * solib-spu.c (append_ocl_sos): Likewise.
14454         (spu_current_sos): Likewise.
14455         * solib-svr4.c (get_svr4_info): Likewise.
14456         (svr4_keep_data_in_core): Likewise.
14457         (library_list_start_library): Likewise.
14458         (svr4_default_sos): Likewise.
14459         (svr4_read_so_list): Likewise.
14460         * solib-target.c (library_list_start_library): Likewise.
14461         (solib_target_current_sos): Likewise.
14462         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14463         * symfile-debug.c (install_symfile_debug_logging): Likewise.
14464         * symfile.c (default_symfile_segments): Likewise.
14465         * target-descriptions.c (tdesc_data_init): Likewise.
14466         (tdesc_create_reg): Likewise.
14467         (struct tdesc_type *): Likewise.
14468         (tdesc_create_vector): Likewise.
14469         (tdesc_set_struct_size): Likewise.
14470         (struct tdesc_type *): Likewise.
14471         (tdesc_free_feature): Likewise.
14472         (tdesc_create_feature): Likewise.
14473         * windows-nat.c (windows_add_thread): Likewise.
14474         (windows_make_so): Likewise.
14475         * xml-support.c (gdb_xml_body_text): Likewise.
14476         (gdb_xml_create_parser_and_cleanup): Likewise.
14477         (xml_process_xincludes): Likewise.
14478         * xml-syscall.c (allocate_syscalls_info): Likewise.
14479         (syscall_create_syscall_desc): Likewise.
14480
14481 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
14482
14483         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14484         function, with code from i386_stap_parse_special_token.
14485         (i386_stap_parse_special_token_three_arg_disp): Likewise.
14486         (i386_stap_parse_special_token): Move code to the two functions
14487         above; simplify it.
14488
14489 2014-01-09  Pedro Alves  <palves@redhat.com>
14490             Hui Zhu  <hui@codesourcery.com>
14491
14492         PR gdb/16101
14493         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14494         bp_err_string.  Don't mark the location shlib_disabled if the
14495         error thrown wasn't a generic or memory error.  Catch errors
14496         thrown while inserting breakpoints in overlayed code.  Output
14497         error message of software breakpoints.
14498         * remote.c (remote_insert_breakpoint): If this breakpoint has
14499         target-side commands but this stub doesn't support Z0 packets,
14500         throw NOT_SUPPORTED_ERROR error.
14501         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14502         * target.h (target_insert_breakpoint): Extend comment.
14503         (target_insert_hw_breakpoint): Add comment.
14504
14505 2014-01-08  Pedro Alves  <palves@redhat.com>
14506
14507         * remote.c (remote_add_thread): Add threads silently if starting
14508         up.
14509         (remote_notice_new_inferior): If in all-stop, and starting up,
14510         don't call notice_new_inferior.
14511         (get_current_thread): New function, factored out from ...
14512         (add_current_inferior_and_thread): ... this.  Adjust.
14513         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
14514         found any thread, then select the remote's current thread as GDB's
14515         current thread too.
14516
14517 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14518
14519         * NEWS: Create a new section for the next release branch.
14520         Rename the section of the current branch, now that it has
14521         been cut.
14522
14523 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
14524
14525         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14526         * version.in: Bump version to 7.7.50.DATE-cvs.
14527
14528 2014-01-08  Yao Qi  <yao@codesourcery.com>
14529
14530         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14531         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
14532         (spu_xfer_partial): Cast 'buf' to 'const char *'.
14533
14534 2014-01-08  Yao Qi  <yao@codesourcery.com>
14535
14536         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14537         return value of bfd_get_filename to symbol_file_add_from_bfd.
14538
14539 2014-01-08  Pierre Muller  <muller@sourceware.org>
14540
14541         Fix PR16201.
14542         * coff-pe-read.c (struct read_pe_section_data): Add index field.
14543         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14544         to prim_record_mininal_symbol_and_info.
14545         (add_pe_forwarded_sym): Use known section number of forwarded symbol
14546         in call to prim_record_minimal_symbol_and_info.
14547         (read_pe_exported_syms): Set index field of section_data.
14548
14549 2014-01-07  Andrew Pinski  <apinski@cavium.com>
14550
14551         * features/aarch64-core.xml (cpsr): Change to be 64bit.
14552         * features/aarch64.c: Regenerate.
14553
14554 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
14555
14556         * target.c (return_null): Define.
14557         (update_current_target): Use it instead of return_zero for
14558         functions that return a pointer.
14559
14560 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
14561
14562         * source.c (add_path): Fix check for duplicated paths in the previously
14563         included paths.
14564
14565 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
14566
14567         * ada-lang.c: Remove duplicated include statements.
14568         * alphabsd-nat.c: Ditto.
14569         * amd64-darwin-tdep.c: Ditto.
14570         * amd64fbsd-nat.c: Ditto.
14571         * auto-load.c: Ditto.
14572         * ax-gdb.c: Ditto.
14573         * breakpoint.c: Ditto.
14574         * dbxread.c: Ditto.
14575         * fork-child.c: Ditto.
14576         * gdb_usleep.c: Ditto.
14577         * i386-darwin-tdep.c: Ditto.
14578         * i386fbsd-nat.c: Ditto.
14579         * infcmd.c: Ditto.
14580         * inferior.c: Ditto.
14581         * jv-lang.c: Ditto.
14582         * linux-nat.c: Ditto.
14583         * linux-tdep.c: Ditto.
14584         * m68kbsd-nat.c: Ditto.
14585         * m68klinux-nat.c: Ditto.
14586         * microblaze-tdep.c: Ditto.
14587         * mips-linux-tdep.c: Ditto.
14588         * mn10300-tdep.c: Ditto.
14589         * nto-tdep.c: Ditto.
14590         * opencl-lang.c: Ditto.
14591         * osdata.c: Ditto.
14592         * printcmd.c: Ditto.
14593         * regcache.c: Ditto.
14594         * remote-m32r-sdi.c: Ditto.
14595         * remote.c: Ditto.
14596         * symfile.c: Ditto.
14597         * symtab.c: Ditto.
14598         * tilegx-linux-nat.c: Ditto.
14599         * tilegx-tdep.c: Ditto.
14600         * tracepoint.c: Ditto.
14601         * valops.c: Ditto.
14602         * vaxbsd-nat.c: Ditto.
14603         * windows-nat.c: Ditto.
14604         * xtensa-tdep.c: Ditto.
14605
14606 2014-01-07  Yao Qi  <yao@codesourcery.com>
14607
14608         * spu-linux-nat.c (_initialize_spu_nat): Declare.
14609
14610 2014-01-07  Yao Qi  <yao@codesourcery.com>
14611             Joel Brobecker  <brobecker@adacore.com>
14612
14613         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14614         (pdc_write_regs): Likewise.
14615         (fetch_regs_kernel_thread): Likewise.
14616         (store_regs_kernel_thread): Likewise.
14617
14618 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14619
14620         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14621         tagged type objects to their actual type.
14622
14623 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14624
14625         * ada-valprint.c (print_field_values): Add "language" parameter.
14626         Update calls to print_field_values and print_variant_part.
14627         Pass new parameter "language" in call to val_print instead
14628         of "current_language".  Replace call to ada_val_print by call
14629         to val_print.
14630         (print_variant_part): Add "language" parameter.
14631         (ada_val_print_struct_union): Update call to print_field_values.
14632
14633 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14634
14635         * ada-valprint.c (ui_memcpy): Delete.
14636         (ada_print_floating): Update documentation.  Add empty line
14637         between between function documentation and implementation.
14638         Delete variable "buffer".  Use ui_file_xstrdup in place of
14639         ui_file_put.  Minor adjustments following this change.
14640
14641 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14642
14643         * ada-valprint.c (ada_val_print_string): New function,
14644         extracted from ada_val_print_array.
14645         (ada_val_print_array): Replace extracted code by call
14646         to ada_val_print_string followed by a return.  Move
14647         "else" branch to the function's top block.
14648
14649 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14650
14651         * ada-valprint.c (ada_val_print_array): Move implementation
14652         down.  Rename parameter "offset" and "val" into "offset_aligned"
14653         and "original_value" respectively.  Add parameter "offset".
14654
14655 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14656
14657         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14658         re-organizing the code. Change the "???" message printed
14659         when target type is a TYPE_CODE_UNDEF into
14660         "<ref to undefined type>".
14661
14662 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14663
14664         * ada-valprint.c (print_record): Delete, implementation inlined...
14665         (ada_val_print_struct_union): ... here.  Remove call to
14666         ada_check_typedef in inlined implementation.
14667
14668 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14669
14670         * ada-valprint.c (ada_val_print_gnat_array): New function,
14671         extracted from ada_val_print_1;
14672         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14673         (ada_val_print_flt, ada_val_print_struct_union)
14674         (ada_val_print_ref): Likewise.
14675         (ada_val_print_1): Delete variables i and elttype.
14676         Replace extracted-out code by call to corresponding
14677         new functions.
14678
14679 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14680
14681         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14682
14683 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14684
14685         * ada-valprint.c (ada_val_print_1): Replace calls to
14686         ada_val_print_1 by calls to val_print.
14687
14688 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14689
14690         * ada-valprint.c (ada_val_print_1): Add parameter "language".
14691         Update calls to self accordingly.  Replace calls to c_val_print
14692         by calls to val_print.
14693
14694 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14695
14696         * ada-valprint.c (print_record): Delete declaration.
14697         (adjust_type_signedness, ada_val_print_1): Likewise.
14698         (ada_val_print): Move function implementation down.
14699         (print_variant_part, print_field_values, print_record):
14700         Move function implementation up.
14701
14702 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
14703
14704         * python/py-type.c (typy_get_name): New function.
14705         (type_object_getset): Add entry for attribute "name".
14706         * NEWS: Add entry mentioning this new attribute.
14707
14708 2014-01-07  Yao Qi  <yao@codesourcery.com>
14709
14710         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14711         statement.
14712
14713 2014-01-07  Yao Qi  <yao@codesourcery.com>
14714
14715         * gnu-nat.c (info_port_rights): Add qualifier const to
14716         argument args.
14717
14718 2014-01-07  Yao Qi  <yao@codesourcery.com>
14719
14720         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14721
14722 2014-01-07  Yao Qi  <yao@codesourcery.com>
14723
14724         * gnu-nat.c (make_inf) Update declaration.
14725         (make_inf): Make it static.
14726         (inf_set_traced): Likewise.
14727         (inf_port_to_thread, inf_task_died_status): Likewise.
14728
14729 2014-01-07  Yao Qi  <yao@codesourcery.com>
14730
14731         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14732
14733 2014-01-07  Yao Qi  <yao@codesourcery.com>
14734
14735         * gnu-nat.c (_initialize_gnu_nat): Declare.
14736
14737 2014-01-07  Yao Qi  <yao@codesourcery.com>
14738
14739         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14740         'enum bfd_endian'.
14741         (struct gdbarch_info) <byte_order>: Change type to
14742         'enum bfd_endian'.
14743         <byte_order_for_code>: Likewise.
14744         * gdbarch.c, gdbarch.h: Regenerated.
14745
14746 2014-01-06  Sasha Smundak  <asmundak@google.com>
14747
14748         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14749
14750 2014-01-06  Tom Tromey  <tromey@redhat.com>
14751
14752         * doublest.c (convert_doublest_to_floatformat): Use const, not
14753         CONST.
14754         * somread.c (som_symtab_read): Likewise.
14755
14756 2014-01-07  Hui Zhu  <hui@codesourcery.com>
14757
14758         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14759         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14760         (gdb_bfd_fopen): Ditto.
14761         (gdb_bfd_openr): Ditto.
14762         (gdb_bfd_openw): Ditto.
14763         (gdb_bfd_openr_iovec): Ditto.
14764         (gdb_bfd_fdopenr): Ditto.
14765         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14766         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14767         with xstrdup.
14768         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14769         with xstrdup.
14770         * symfile-mem.c (symbol_file_add_from_memory): Removed
14771         gdb_bfd_stash_filename.
14772
14773 2014-01-03  Doug Evans  <dje@google.com>
14774
14775         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14776         output.
14777
14778 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14779
14780         Update year range in copyright notice of all files.
14781
14782 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14783
14784         * top.c (print_gdb_version): Set copyright year to 2014.
14785
14786 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
14787
14788         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14789
14790 For older changes see ChangeLog-2013.
14791 \f
14792 Local Variables:
14793 mode: change-log
14794 left-margin: 8
14795 fill-column: 74
14796 version-control: never
14797 coding: utf-8
14798 End: