python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
[external/binutils.git] / gdb / ChangeLog
1 2014-12-08  Doug Evans  <dje@google.com>
2
3         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
4
5 2014-12-08  Doug Evans  <dje@google.com>
6
7         * NEWS: Mention gdb.Objfile.owner.
8         * python/py-objfile.c (objfpy_get_owner): New function.
9         (objfile_getset): Add "owner".
10
11 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
12
13         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
14         (lookup_global_symbol_from_objfile): Call it.
15
16 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
17
18         Remove const from struct objfile *.
19         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
20         symtab.c, symtab.h: In these files.
21
22 2014-12-05  Andreas From  <andreas.from@ericsson.com>
23
24         * MAINTAINERS (Write After Approval): Add "Andreas From"
25
26 2014-12-05  Doug Evans  <xdje42@gmail.com>
27
28         Revert:
29         PR symtab/17602
30         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
31
32 2014-12-04  Doug Evans  <dje@google.com>
33
34         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
35         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
36         (objfile_getset): Add "add_separate_debug_file".
37
38 2014-12-04  Doug Evans  <dje@google.com>
39
40         * NEWS: Mention gdb.Objfile.build_id.
41         * build-id.c (build_id_bfd_get): Make non-static.
42         * build-id.h (build_id_bfd_get): Add declaration.
43         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
44         (OBJFPY_REQUIRE_VALID): New macro.
45         (objfpy_get_build_id): New function.
46         (objfile_getset): Add "build_id".
47         * utils.c (make_hex_string): New function.
48         * utils.h (make_hex_string): Add declaration.
49
50 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
51
52         * block.c (block_lookup_symbol_primary): New function.
53         * block.h (block_lookup_symbol_primary): New declaration.
54         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
55         Call block_lookup_symbol_primary.
56
57 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
58
59         * tramp-frame.h (tramp_frame): Add `validate' member.
60         * tramp-frame.c (tramp_frame_start): Validate trampoline before
61         scanning.
62         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
63         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
64         (mips_linux_o32_sigframe): Initialize `validate' member.
65         (mips_linux_o32_rt_sigframe): Likewise.
66         (mips_linux_n32_rt_sigframe): Likewise.
67         (mips_linux_n64_rt_sigframe): Likewise.
68         (micromips_linux_o32_sigframe): New variable.
69         (micromips_linux_o32_rt_sigframe): Likewise.
70         (micromips_linux_n32_rt_sigframe): Likewise.
71         (micromips_linux_n64_rt_sigframe): Likewise.
72         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
73         (mips_linux_n32n64_sigframe_init): Likewise.
74         (mips_linux_sigframe_validate): New function.
75         (micromips_linux_sigframe_validate): Likewise.
76         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
77
78 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
79
80         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
81         * sparc-sol2-tdep.c: Include "regset.h".
82         (sparc32_sol2_supply_core_gregset): New function.
83         (sparc32_sol2_collect_core_gregset): Likewise.
84         (sparc32_sol2_supply_core_fpregset): Likewise.
85         (sparc32_sol2_collect_core_fpregset): Likewise.
86         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
87         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
88         tdep->fpregset/sizeof_fpregset.
89         * sparc64-sol2-tdep.c: Include "regset.h".
90         (sparc64_sol2_supply_core_gregset): New function.
91         (sparc64_sol2_collect_core_gregset): Likewise.
92         (sparc64_sol2_supply_core_fpregset): Likewise.
93         (sparc64_sol2_collect_core_fpregset): Likewise.
94         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
95         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
96         tdep->fpregset/sizeof_fpregset.
97
98 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
99
100         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
101         type.
102
103 2014-12-02  Doug Evans  <dje@google.com>
104
105         * symtab.c (symbol_init_cplus_specific): Delete.
106         (symbol_set_demangled_name): Remove special c++ support.
107         (symbol_get_demangled_name, symbol_set_language): Ditto.
108         * symtab.h (struct cplus_specific): Delete.
109         (struct general_symbol_info) <language_specific>: Remove
110         cplus_specific.
111
112 2014-12-02  Doug Evans  <dje@google.com>
113
114         PR symtab/17602
115         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
116
117 2014-12-02  Doug Evans  <dje@google.com>
118
119         PR symtab/17591
120         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
121         to strip parameters.
122
123 2014-12-02  Doug Evans  <dje@google.com>
124
125         * dwarf2read.c (peek_die_abbrev): Improve error message text.
126
127 2014-12-02  Doug Evans  <dje@google.com>
128
129         * valops.c (do_search_struct_field): Remove remnant of Chill support.
130         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
131
132 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
133
134         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
135
136 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
137
138         * NEWS: Mention new Python events.
139         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
140         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
141         (py-infevents.o): New rule.
142         * doc/observer.texi (inferior_call_pre, inferior_call_post)
143         (memory_changed, register_changed): New observers.
144         * infcall.c (call_function_by_hand): Notify observer before and
145         after inferior call.
146         * python/py-event.h (inferior_call_kind): New enum.
147         (emit_inferior_call_event): New prototype.
148         (emit_register_changed_event): New prototype.
149         (emit_memory_changed_event): New prototype.
150         * python/py-events.h (events_object): New registries
151         inferior_call, memory_changed and register_changed.
152         * python/py-evts.c (gdbpy_initialize_py_events): Add the
153         inferior_call, memory_changed and register_changed registries.
154         * python/py-infevents.c: New.
155         * python/py-inferior.c (python_on_inferior_call_pre)
156         (python_on_inferior_call_post, python_on_register_change)
157         (python_on_memory_change): New functions.
158         (gdbpy_initialize_inferior): Attach python handler to new
159         observers.
160         * python/py-infthread.c(gdbpy_create_ptid_object): New.
161         (thpy_get_ptid) Use gdbpy_create_ptid_object.
162         * python/python-internal.h:
163         (gdbpy_create_ptid_object)
164         (gdbpy_initialize_inferior_call_pre_event)
165         (gdbpy_initialize_inferior_call_post_event)
166         (gdbpy_initialize_register_changed_event)
167         (gdbpy_initialize_memory_changed_event): New prototypes.
168         * python/python.c (_initialize_python): Initialize new events.
169         * valops.c (value_assign): Notify register_changed observer.
170
171 2014-12-02  Doug Evans  <dje@google.com>
172
173         * python/py-infthread.c: Whitespace fixes.
174
175 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
176
177         * features/Makefile (s390-te-linux64-expedite): Replace
178         non-existant r14 and r15 by r14l and r15l, respectively.
179         * regformats/s390-te-linux64.dat: Regenerate.
180
181 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
182
183         * objfiles.c (allocate_objfile): Remove duplicate comment.
184
185 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
186
187         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
188         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
189         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
190         (supply_gregset, supply_fpregset): Remove.
191         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
192         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
193         and sizeof_gregset.
194
195 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
196
197         Add add-auto-load-scripts-directory.
198         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
199         * auto-load.c (add_auto_load_dir): New function.
200         (_initialize_auto_load): Install it.
201
202 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
203
204         Pushed by Joel Brobecker  <brobecker@adacore.com>.
205         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
206
207 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
208
209         * eval.c (evaluate_subexp): Check that the thread stack temporaries
210         are not already enabled before enabling them.
211
212 2014-11-29  Yao Qi  <yao@codesourcery.com>
213
214         * arm-tdep.c (arm_analyze_prologue): Move local variables
215         'framereg' and 'framesize' to inner block.  Move code to
216         inner block too.
217
218 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
219
220         * eval.c: Include gdbthread.h.
221         (evaluate_subexp): Enable thread stack temporaries before
222         evaluating a complete expression and clean them up after the
223         evaluation is complete.
224         * gdbthread.h: Include common/vec.h.
225         (value_ptr): New typedef.
226         (VEC (value_ptr)): New vector type.
227         (value_vec): New typedef.
228         (struct thread_info): Add new fields stack_temporaries_enabled
229         and stack_temporaries.
230         (enable_thread_stack_temporaries)
231         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
232         (get_last_thread_stack_temporary)
233         (value_in_thread_stack_temporaries): Declare.
234         * gdbtypes.c (class_or_union_p): New function.
235         * gdbtypes.h (class_or_union_p): Declare.
236         * infcall.c (call_function_by_hand): Store return values of class
237         type as temporaries on stack.
238         * thread.c (enable_thread_stack_temporaries): New function.
239         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
240         (get_last_thread_stack_temporary): Likewise.
241         (value_in_thread_stack_temporaries): Likewise.
242         * value.c (value_force_lval): New function.
243         * value.h (value_force_lval): Declare.
244
245 2014-11-28  Pierre Muller  <muller@sourceware.org>
246
247         Pushed by Joel Brobecker  <brobecker@adacore.com>.
248         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
249         registers.
250
251 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
252
253         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
254         * config/sparc/linux.mh (NATDEPFILES): Likewise.
255         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
256         * m68klinux-nat.c (fetch_core_registers): Remove.
257         (linux_elf_core_fns): Remove.
258         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
259
260 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
261
262         * utils.c (gdb_realpath): Rework comment about handling on
263         Windows.
264
265 2014-11-28  Yao Qi  <yao@codesourcery.com>
266
267         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
268         rename.
269         * gnulib/aclocal.m4: Re-generated.
270         * gnulib/config.in: Re-generated.
271         * gnulib/configure: Re-generated.
272         * gnulib/import/Makefile.am: Re-generated.
273         * gnulib/import/Makefile.in: Re-generated.
274         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
275         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
276         * import/basename-lgpl.c: New file.
277         * import/dirname-lgpl.c: New file.
278         * import/dirname.h: New file.
279         * import/m4/dirname.m4: New file.
280         * import/m4/malloc.m4: New file.
281         * import/m4/rename.m4: New file.
282         * import/m4/rmdir.m4: New file.
283         * import/m4/stdio_h.m4: New file.
284         * import/malloc.c: New file.
285         * import/rename.c: New file.
286         * import/rmdir.c: New file.
287         * import/same-inode.h: New file.
288         * import/stdio.c: New file.
289         * import/stdio.in.h: New file.
290         * import/stripslash.c: New file.
291
292 2014-11-28  Yao Qi  <yao@codesourcery.com>
293
294         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
295         and realpath.
296         * config.in: Re-generated.
297         * configure: Re-generated.
298         * utils.c (gdb_realpath): Remove code calling realpath,
299         canonicalize_file_name and pathconf.
300         [!_WIN32]: Call canonicalize_file_name.
301
302 2014-11-28  Yao Qi  <yao@codesourcery.com>
303
304         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
305         canonicalize-lgpl.
306         * aclocal.m4: Re-generated.
307         * config.in: Re-generated.
308         * configure: Re-generated.
309         * import/Makefile.am: Re-generated.
310         * import/Makefile.in: Re-generated.
311         * import/m4/gnulib-cache.m4: Re-generated.
312         * import/m4/gnulib-comp.m4: Re-generated.
313         * import/canonicalize-lgpl.c: New file.
314         * import/extra/snippet/_Noreturn.h: New file.
315         * import/m4/canonicalize.m4: New file.
316         * import/m4/double-slash-root.m4: New file.
317         * import/m4/eealloc.m4: New file.
318         * import/m4/malloca.m4: New file.
319         * import/m4/nocrash.m4: New file.
320         * import/m4/stdlib_h.m4: New file.
321         * import/malloca.c: New file.
322         * import/malloca.h: New file.
323         * import/malloca.valgrind: New file.
324
325 2014-11-28  Yao Qi  <yao@codesourcery.com>
326
327         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
328         * config.in, configure: Regenerate.
329         * symfile.c (find_separate_debug_file_by_debuglink): Remove
330         code checking HAVE_LSTAT is defined.
331
332 2014-11-28  Yao Qi  <yao@codesourcery.com>
333
334         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
335         lstat.
336         * gnulib/aclocal.m4: Re-generated.
337         * gnulib/config.in: Re-generated.
338         * gnulib/configure: Re-generated.
339         * gnulib/import/Makefile.am: Re-generated.
340         * gnulib/import/Makefile.in: Re-generated.
341         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
342         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
343         * gnulib/import/lstat.c: New file.
344         * gnulib/import/m4/lstat.m4: New file.
345
346 2014-11-28  Yao Qi  <yao@codesourcery.com>
347
348         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
349         * config.in, configure: Re-generate.
350         * inf-child.c (inf_child_fileio_readlink): Don't check
351         HAVE_READLINK is defined.
352
353 2014-11-28  Yao Qi  <yao@codesourcery.com>
354
355         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
356         * gnulib/aclocal.m4: Re-generated.
357         * gnulib/config.in: Likewise.
358         * gnulib/configure: Likewise.
359         * gnulib/import/Makefile.am: Likewise.
360         * gnulib/import/Makefile.in: Likewise.
361         * gnulib/import/m4/gnulib-cache.m4: Likewise.
362         * gnulib/import/m4/gnulib-comp.m4: Likewise.
363         * gnulib/import/dosname.h: New file
364         * gnulib/import/m4/largefile.m4: New file.
365         * gnulib/import/m4/readlink.m4: New file.
366         * gnulib/import/m4/stat.m4: New file.
367         * gnulib/import/readlink.c: New file.
368         * gnulib/import/stat.c: New file.
369
370 2014-11-26  Mark Wielaard  <mjw@redhat.com>
371
372         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
373         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
374
375 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
376
377         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
378         that there can be only one stack adjustment in the prologue
379         with tests to detect specific disallowed stack adjustments.
380
381 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
382
383         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
384         adjustments.
385
386 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
387
388         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
389         the instruction as well as reading it from memory.
390         (nios2_match_add): New.
391         (nios2_match_sub): New.
392         (nios2_match_addi): New.
393         (nios2_match_orhi): New.
394         (nios2_match_stw): New.
395         (nios2_match_ldw): New.
396         (nios2_match_rdctl): New.
397         (enum branch_condition): New.
398         (nios2_match_branch): New.
399         (nios2_match_jmpi): New.
400         (nios2_match_calli): New.
401         (nios2_match_jmpr): New.
402         (nios2_match_callr): New.
403         (nios2_match_break): New.
404         (nios2_match_trap): New.
405         (nios2_in_epilogue_p): Rewrite to use new functions.
406         (nios2_analyze_prologue): Likewise.
407         (nios2_skip_prologue): Delete unused local limit_pc.
408         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
409         (nios2_get_next_pc): Rewrite to use new functions.
410
411 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
412
413         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
414
415 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
416
417         Pushed by Joel Brobecker  <brobecker@adacore.com>
418         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
419         elements pi_len by the size of the elements before calling
420         vm_deallocate.
421         (inf_validate_task_sc): Likewise, and properly deallocate the
422         noise array.
423
424 2014-11-23  Doug Evans  <xdje42@gmail.com>
425
426         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
427         number and name if present.  All callers updated.
428         (dump_fn_fieldlists): Fix indentation of args.
429
430 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
431
432         * MAINTAINERS (Write After Approval): Add myself.
433
434 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
435
436         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
437         to a bp_call_dummy breakpoint type.
438
439 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
440
441         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
442         registering the signal handler.
443
444 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
445
446         * event-top.h (call_stdin_event_handler_again_p): Declare.
447         * event-top.c (call_stdin_event_handler_again_p): Define.
448         (stdin_event_handler): Use it.
449         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
450         handler again if there is pending input following a
451         start sequence.
452
453 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
454
455         Pushed by Joel Brobecker  <brobecker@adacore.com>
456         * linux-fork.c (checkpoint_command): Print index of new
457         checkpoint in response message.
458
459 2014-11-23  Yao Qi  <yao@codesourcery.com>
460
461         * valprint.c (read_string): Move local variables 'found_nul',
462         'chunksize' and 'limit' to inner scope.  Update comments.
463
464 2014-11-22  Doug Evans  <xdje42@gmail.com>
465
466         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
467         function comment.
468         (search_symbols): Fix comments and whitespace.
469
470 2014-11-22  Doug Evans  <xdje42@gmail.com>
471
472         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
473
474 2014-11-21  Doug Evans  <dje@google.com>
475
476         * psymtab.c (psymtab_search_name): Fix whitespace.
477
478 2014-11-21  Yao Qi  <yao@codesourcery.com>
479
480         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
481         errno.
482         * gnulib/import/Makefile.am: Re-generated.
483         * gnulib/import/Makefile.in: Likewise.
484         * gnulib/import/m4/gnulib-cache.m4: Likewise.
485
486 2014-11-21  Yao Qi  <yao@codesourcery.com>
487
488         * gdb_wchar.h: Include wchar.h and wctype.h.
489         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
490         include wchar.h and wctype.h.
491         Don't check HAVE_WCHAR_H.
492
493 2014-11-21  Yao Qi  <yao@codesourcery.com>
494
495         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
496         and wctype-h.
497         * gnulib/import/Makefile.am: Re-generated.
498         * gnulib/import/Makefile.in: Likewise.
499         * gnulib/import/m4/gnulib-cache.m4: Likewise.
500
501 2014-11-21  Yao Qi  <yao@codesourcery.com>
502
503         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
504         memchr.
505         * gnulib/import/Makefile.am: Re-generated.
506         * gnulib/import/Makefile.in: Likewise.
507         * gnulib/import/m4/gnulib-cache.m4: Likewise.
508
509 2014-11-21  Yao Qi  <yao@codesourcery.com>
510
511         * common/common-defs.h: Include alloca.h
512         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
513         * configure: Re-generated.
514         * defs.h: Remove code handling alloca.
515         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
516         or not.
517
518 2014-11-21  Yao Qi  <yao@codesourcery.com>
519
520         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
521         alloca.
522         * gnulib/import/Makefile.am: Re-generated.
523         * gnulib/import/Makefile.in: Likewise..
524         * gnulib/import/m4/gnulib-cache.m4: Likewise.
525
526 2014-11-21  Yao Qi  <yao@codesourcery.com>
527
528         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
529         alphabetical order.
530
531 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
532
533         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
534         flag_unsigned if HIGH_BOUND is constant and negative.
535
536 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
537
538         PR breakpoints/10737
539         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
540         modifier from "struct gdbarch" when compiling without Expat (XML)
541         support.
542         (get_syscall_by_number): Likewise.
543         (get_syscall_by_name): Likewise.
544         (get_syscall_names): Likewise.
545
546 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
547
548         PR breakpoints/10737
549         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
550         set_xml_syscall_file_name to provide gdbarch.
551         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
552         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
553         * breakpoint.c (print_it_catch_syscall): Adjust call to
554         get_syscall_by_number to provide gdbarch.
555         (print_one_catch_syscall): Likewise.
556         (print_mention_catch_syscall): Likewise.
557         (print_recreate_catch_syscall): Likewise.
558         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
559         and get_syscall_by_name to provide gdbarch.
560         (catch_syscall_completer): Adjust call to get_syscall_names to
561         provide gdbarch.
562         * gdbarch.c: Regenerate.
563         * gdbarch.h: Likewise.
564         * gdbarch.sh: Forward declare "struct syscalls_info".
565         (xml_syscall_file): New variable.
566         (syscalls_info): Likewise.
567         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
568         set_xml_syscall_file_name to provide gdbarch.
569         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
570         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
571         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
572         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
573         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
574         * xml-syscall.c: Include gdbarch.h.
575         (set_xml_syscall_file_name): Accept gdbarch parameter.
576         (get_syscall_by_number): Likewise.
577         (get_syscall_by_name): Likewise.
578         (get_syscall_names): Likewise.
579         (my_gdb_datadir): Delete global variable.
580         (struct syscalls_info) <my_gdb_datadir>: New variable.
581         (struct syscalls_info) <sysinfo>: Rename variable to
582         "syscalls_info".
583         (sysinfo): Delete global variable.
584         (have_initialized_sysinfo): Likewise.
585         (xml_syscall_file): Likewise.
586         (sysinfo_free_syscalls_desc): Rename to...
587         (syscalls_info_free_syscalls_desc): ... this.
588         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
589         code to the new layout of "struct syscalls_info".
590         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
591         "syscalls_info".
592         (syscall_create_syscall_desc): Likewise.
593         (syscall_start_syscall): Likewise.
594         (syscall_parse_xml): Likewise.
595         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
596         (init_sysinfo): Rename to...
597         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
598         Adjust function to deal with gdbarch.
599         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
600         gdbarch as a parameter.  Adjust code.
601         (xml_get_syscall_name): Likewise.
602         (xml_list_of_syscalls): Likewise.
603         (set_xml_syscall_file_name): Accept gdbarch as parameter.
604         (get_syscall_by_number): Likewise.
605         (get_syscall_by_name): Likewise.
606         (get_syscall_names): Likewise.
607         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
608         (get_syscall_by_number): Likewise.
609         (get_syscall_by_name): Likewise.
610         (get_syscall_names): Likewise.
611
612 2014-11-20  Doug Evans  <xdje42@gmail.com>
613
614         Split struct symtab into two: struct symtab and compunit_symtab.
615         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
616         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
617         to "struct compunit_symtab *".  All callers updated.
618         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
619         "struct symtab *" argument to "struct compunit_symtab *".
620         All callers updated.
621         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
622         result to "struct compunit_symtab *".  All callers updated.
623         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
624         Change result to "struct compunit_symtab *".  All callers updated.
625         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
626         hange type to "struct compunit_symtab *".  All uses updated.
627         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
628         Change type to "struct compunit_symtab *".  All uses updated.
629         * buildsym.c (struct buildsym_compunit): New struct.
630         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
631         (buildsym_compunit): New static global.
632         (finish_block_internal): Update to fetch objfile from
633         buildsym_compunit.
634         (make_blockvector): Delete objfile argument.
635         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
636         debugformat, producer.
637         (start_buildsym_compunit): New function.
638         (free_buildsym_compunit): Renamed from free_subfiles_list.
639         All callers updated.
640         (patch_subfile_names): Rewrite to use buildsym_compunit.
641         (get_compunit_symtab): New function.
642         (get_macro_table): Delete argument comp_dir.  All callers updated.
643         (start_symtab): Change result to "struct compunit_symtab *".
644         All callers updated.  Create the subfile of the main source file.
645         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
646         (reset_symtab_globals): Update.
647         (end_symtab_get_static_block): Update to use buildsym_compunit.
648         (end_symtab_without_blockvector): Rewrite.
649         (end_symtab_with_blockvector): Change result to
650         "struct compunit_symtab *".  All callers updated.
651         Update to use buildsym_compunit.  Don't set symtab->dirname,
652         instead set it in the compunit.
653         Explicitly make sure main symtab is first in its list.
654         Set debugformat, producer, blockvector, block_line_section, and
655         macrotable in the compunit.
656         (end_symtab_from_static_block): Change result to
657         "struct compunit_symtab *".  All callers updated.
658         (end_symtab, end_expandable_symtab): Ditto.
659         (set_missing_symtab): Change symtab argument to
660         "struct compunit_symtab *".  All callers updated.
661         (augment_type_symtab): Ditto.
662         (record_debugformat): Update to use buildsym_compunit.
663         (record_producer): Update to use buildsym_compunit.
664         * buildsym.h (struct subfile) <dirname>: Delete.
665         <producer, debugformat>: Delete.
666         <buildsym_compunit>: New member.
667         (get_compunit_symtab): Declare.
668         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
669         from primary_symtab.  Change type to "struct compunit_symtab *".
670         All uses updated.
671         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
672         All callers updated.
673         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
674         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
675         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
676         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
677         All callers updated.
678         (dw2_find_last_source_symtab): Ditto.
679         (dw2_lookup_symbol): Ditto.
680         (recursively_find_pc_sect_compunit_symtab): Renamed from
681         recursively_find_pc_sect_symtab.  Change result to
682         "struct compunit_symtab *".  All callers updated.
683         (dw2_find_pc_sect_compunit_symtab): Renamed from
684         dw2_find_pc_sect_symtab.  Change result to
685         "struct compunit_symtab *".  All callers updated.
686         (get_compunit_symtab): Renamed from get_symtab.  Change result to
687         "struct compunit_symtab *".  All callers updated.
688         (recursively_compute_inclusions): Change type of immediate_parent
689         argument to "struct compunit_symtab *".  All callers updated.
690         (compute_compunit_symtab_includes): Renamed from
691         compute_symtab_includes.  All callers updated.  Rewrite to compute
692         includes of compunit_symtabs and not symtabs.
693         (process_full_comp_unit): Update to work with struct compunit_symtab.
694         (process_full_type_unit): Ditto.
695         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
696         (dwarf_decode_lines): Remove special case handling of main subfile.
697         (macro_start_file): Delete argument comp_dir.  All callers updated.
698         (dwarf_decode_macro_bytes): Ditto.
699         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
700         use struct compunit_symtab.
701         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
702         * jit.c (finalize_symtab): Build compunit_symtab.
703         * jv-lang.c (get_java_class_symtab): Change result to
704         "struct compunit_symtab *".  All callers updated.
705         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
706         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
707         comp_dir.  Change type to "struct compunit_symtab *".
708         All uses updated.
709         (new_macro_table): Change comp_dir argument to cust,
710         "struct compunit_symtab *".  All callers updated.
711         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
712         nr_primary_symtabs.  All uses updated.
713         (count_symtabs_and_blocks): Update to handle compunits.
714         (report_command_stats): Update output, "primary symtabs" renamed to
715         "compunits".
716         * mdebugread.c (new_symtab): Change result to
717         "struct compunit_symtab *".  All callers updated.
718         (parse_procedure): Change type of search_symtab argument to
719         "struct compunit_symtab *".  All callers updated.
720         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
721         separate loop.
722         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
723         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
724         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
725         All uses updated.
726         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
727         All uses updated.
728         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
729         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
730         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
731         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
732         * psymtab.c (psymtab_to_symtab): Change result type to
733         "struct compunit_symtab *".  All callers updated.
734         (find_pc_sect_compunit_symtab_from_partial): Renamed from
735         find_pc_sect_symtab_from_partial.  Change result type to
736         "struct compunit_symtab *".  All callers updated.
737         (lookup_symbol_aux_psymtabs): Change result type to
738         "struct compunit_symtab *".  All callers updated.
739         (find_last_source_symtab_from_partial): Ditto.
740         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
741         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
742         and macro_table from compunit.
743         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
744         type to "struct compunit_symtab *".  All callers updated.
745         (debug_qf_lookup_symbol): Ditto.
746         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
747         debug_qf_find_pc_sect_symtab, change result type to
748         "struct compunit_symtab *".  All callers updated.
749         * symfile.c (allocate_symtab): Delete objfile argument.
750         New argument cust.
751         (allocate_compunit_symtab): New function.
752         (add_compunit_symtab_to_objfile): New function.
753         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
754         Change result type to "struct compunit_symtab *".  All uses updated.
755         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
756         Change result type to "struct compunit_symtab *".  All uses updated.
757         * symmisc.c (print_objfile_statistics): Compute blockvector count in
758         separate loop.
759         (dump_symtab_1): Update test for primary source symtab.
760         (maintenance_info_symtabs): Update to handle compunit symtabs.
761         (maintenance_check_symtabs): Ditto.
762         * symtab.c (set_primary_symtab): Delete.
763         (compunit_primary_filetab): New function.
764         (compunit_language): New function.
765         (iterate_over_some_symtabs): Change type of arguments "first",
766         "after_last" to "struct compunit_symtab *".  All callers updated.
767         Update to loop over symtabs in each compunit.
768         (error_in_psymtab_expansion): Rename symtab argument to cust,
769         and change type to "struct compunit_symtab *".  All callers updated.
770         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
771         Change result type to "struct compunit_symtab *".  All callers updated.
772         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
773         Change result type to "struct compunit_symtab *".  All callers updated.
774         (find_pc_sect_line): Only loop over symtabs within selected compunit
775         instead of all symtabs in the objfile.
776         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
777         <compunit_symtab> New member.
778         <block_line_section>: Moved to compunit_symtab.
779         <locations_valid>: Ditto.
780         <epilogue_unwind_valid>: Ditto.
781         <macro_table>: Ditto.
782         <dirname>: Ditto.
783         <debugformat>: Ditto.
784         <producer>: Ditto.
785         <objfile>: Ditto.
786         <call_site_htab>: Ditto.
787         <includes>: Ditto.
788         <user>: Ditto.
789         <primary>: Delete
790         (SYMTAB_COMPUNIT): New macro.
791         (SYMTAB_BLOCKVECTOR): Update definition.
792         (SYMTAB_OBJFILE): Update definition.
793         (SYMTAB_DIRNAME): Update definition.
794         (struct compunit_symtab): New type.  Common members among all source
795         symtabs within a compilation unit moved here.  All uses updated.
796         (COMPUNIT_OBJFILE): New macro.
797         (COMPUNIT_FILETABS): New macro.
798         (COMPUNIT_DEBUGFORMAT): New macro.
799         (COMPUNIT_PRODUCER): New macro.
800         (COMPUNIT_DIRNAME): New macro.
801         (COMPUNIT_BLOCKVECTOR): New macro.
802         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
803         (COMPUNIT_LOCATIONS_VALID): New macro.
804         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
805         (COMPUNIT_CALL_SITE_HTAB): New macro.
806         (COMPUNIT_MACRO_TABLE): New macro.
807         (ALL_COMPUNIT_FILETABS): New macro.
808         (compunit_symtab_ptr): New typedef.
809         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
810
811 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
812
813         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
814         if the TYPE_CODE of range_type's base type does not match
815         the TYPE_CODE of encoding_type's base type.
816
817 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
818
819         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
820         it starts with '<'.
821
822 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
823
824         * ada-lang.c (ada_is_redundant_range_encoding): New function.
825         (ada_is_redundant_index_type_desc): New function.
826         (to_fixed_array_type): Ignore parallel XA type if redundant.
827
828 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
829
830         * ada-lang.c (constrained_packed_array_type): Set the length
831         of the return array as if both bounds where zero if that
832         returned array's index type is dynamic.
833
834 2014-11-19  Yao Qi  <yao@codesourcery.com>
835
836         * config/i386/go32.mh (CC): Remove.
837
838 2014-11-18  Doug Evans  <xdje42@gmail.com>
839
840         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
841         updated.
842
843 2014-11-18  Doug Evans  <xdje42@gmail.com>
844
845         * buildsym.c (buildsym_objfile): New static global.
846         (buildsym_comp_dir): New static global.
847         (finish_block_internal): Delete arg objfile.  All callers updated.
848         (finish_block): Delete arg objfile.  All callers updated.
849         (start_subfile): Delete arg dirname.  All callers updated.
850         (patch_subfile_names): Update buildsym_comp_dir.
851         (get_macro_table): Delete arg objfile.  All callers updated.
852         (start_symtab): New arg objfile.  All callers updated.
853         Rename arg dirname to comp_dir.
854         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
855         (end_symtab_get_static_block): Delete arg objfile.  All callers
856         updated.
857         (end_symtab_without_blockvector): Ditto.
858         (end_symtab_with_blockvector): Ditto.
859         (end_symtab_from_static_block): Ditto.
860         (end_symtab): Ditto.
861         (end_expandable_symtab): Ditto.
862         (augment_type_symtab): Ditto.
863         * coffread.c (coff_start_symtab): New arg objfile.  All callers
864         updated.
865
866 2014-11-18  Doug Evans  <xdje42@gmail.com>
867
868         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
869         updated.
870
871 2014-11-18  Doug Evans  <xdje42@gmail.com>
872
873         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
874         symtab.dirname updated to use it.
875
876 2014-11-18  Doug Evans  <xdje42@gmail.com>
877
878         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
879         symtab.objfile updated to use it.
880
881 2014-11-18  Doug Evans  <xdje42@gmail.com>
882
883         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
884
885 2014-11-18  Doug Evans  <xdje42@gmail.com>
886
887         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
888         SYMBOL_OBJFILE.
889         * findvar.c (default_read_var_value): Ditto.
890         * jv-lang.c (add_class_symtab_symbol): Ditto.
891         * parse.c (operator_check_standard): Ditto.
892         * printcmd.c (address_info): Ditto.
893         * symtab.c (fixup_symbol_section): Ditto.
894         (skip_prologue_sal): Ditto.
895         * tracepoint.c (scope_info): Ditto.
896         * valops.c (find_function_in_inferior): Ditto.
897         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
898         * python/py-symbol.c (set_symbol): Ditto.
899
900 2014-11-18  Doug Evans  <xdje42@gmail.com>
901
902         * buildsym.c (main_subfile): New static global.
903         (free_subfiles_list): New function.
904         (start_symtab): Set main_subfile.
905         (restart_symtab): Replace init of subfiles, current_subfile with
906         call to free_subfiles_list.
907         (watch_main_source_file_lossage): Use main_subfile.
908         (reset_symtab_globals): Replace init of current_subfile with call
909         to free_subfiles_list.
910         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
911         functions, split out from ...
912         (end_symtab_from_static_block): ... here.  Rewrite to call them.
913
914 2014-11-18  Doug Evans  <xdje42@gmail.com>
915
916         The result of symtab expansion is always a primary symtab.
917         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
918         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
919         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
920         (psymtab_to_symtab): Add comment and assert.
921         (map_matching_symbols_psymtab): Remove unnecessary test for
922         non-primary symtab.
923
924 2014-11-15  Doug Evans  <xdje42@gmail.com>
925
926         PR symtab/17559
927         * symtab.c (find_pc_line_symtab): New function.
928         * symtab.h (find_pc_line_symtab): Declare.
929         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
930         find_pc_symtab.
931         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
932         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
933         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
934         * tui/tui-win.c (make_visible_with_new_height): Ditto.
935         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
936         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
937
938 2014-11-15  Doug Evans  <xdje42@gmail.com>
939
940         * symtab.c (expand_symtab_containing_pc): Renamed from
941         find_pc_sect_symtab_via_partial.  All callers updated.
942
943 2014-11-15  Yao Qi  <yao@codesourcery.com>
944
945         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
946
947 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
948
949         * common/common-defs.h: Move <stdarg.h> #include ahead of
950         <stdio.h> #include.
951
952 2014-11-14  Pedro Alves  <palves@redhat.com>
953
954         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
955         [!PHONY_ICONV] (gdb_iconv): New function.
956         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
957
958 2014-11-13  Doug Evans  <dje@google.com>
959
960         PR symtab/17591
961         * dwarf2read.c (find_slot_in_mapped_hash): Handle
962         "(anonymous namespace)".
963
964 2014-11-13  Doug Evans  <dje@google.com>
965
966         * dwarf2read.c (update_enumeration_type_from_children): Avoid
967         infinite loop.
968
969 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
970
971         * NEWS (maint set target-async): Fix typo.
972
973 2014-11-12  Pedro Alves  <palves@redhat.com>
974
975         * infrun.c (enum infwait_states, infwait_state): Delete.
976
977 2014-11-12  Pedro Alves  <palves@redhat.com>
978
979         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
980         Rewrite stepping over a permanent breakpoint.
981         (thread_still_needs_step_over, proceed): Don't set
982         stepping_over_breakpoint for permanent breakpoints.
983         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
984         single-step breakpoints out of the target on hardware step
985         targets.
986         (process_event_stop_test): If stepping a permanent breakpoint
987         doesn't hit the step-resume breakpoint, delete the step-resume
988         breakpoint.
989         (switch_back_to_stepped_thread): Also check if the stepped thread
990         has advanced already on hardware step targets.
991         (currently_stepping): Return true if the thread stepped a
992         breakpoint.
993
994 2014-11-12  Pedro Alves  <palves@redhat.com>
995
996         Mark locations as permanent, not the whole breakpoint.
997         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
998         (mark_breakpoints_out): Don't mark permanent breakpoints as
999         uninserted.
1000         (breakpoint_init_inferior): Use mark_breakpoints_out.
1001         (breakpoint_here_p): Adjust.
1002         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1003         of permanent breakpoints.
1004         (make_breakpoint_permanent): Mark each location as permanent,
1005         instead of marking the breakpoint.
1006         (add_location_to_breakpoint): If the location is permanent, mark
1007         it as such, and as inserted.
1008         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1009         (bp_location_compare, update_global_location_list): Adjust.
1010         (update_breakpoint_locations): Don't make the breakpoint permanent
1011         here.
1012         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1013         breakpoints.
1014         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1015         (struct bp_location) <permanent>: New field.
1016         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1017         reference to bp_permanent.
1018
1019 2014-11-12  Pedro Alves  <palves@redhat.com>
1020
1021         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1022         * arch-utils.h (default_skip_permanent_breakpoint): New
1023         declaration.
1024         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1025         Install default_skip_permanent_breakpoint as default method.
1026         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1027         (i386_gdbarch_init): Don't install it.
1028         * infrun.c (resume): Assume there's always a
1029         gdbarch_skip_permanent_breakpoint implementation.
1030         * gdbarch.h, gdbarch.c: Regenerate.
1031
1032 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1033
1034         Warn about cross-PID-namespace debugging.
1035         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1036         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1037         * linux-thread-db.c (check_pid_namespace_match): New function.
1038         (thread_db_inferior_created): Call it.
1039
1040 2014-11-10  Doug Evans  <xdje42@gmail.com>
1041
1042         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1043         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1044
1045 2014-11-10  Doug Evans  <xdje42@gmail.com>
1046
1047         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1048
1049 2014-11-10  Doug Evans  <xdje42@gmail.com>
1050
1051         PR symtab/17564
1052         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1053         (lookup_static_symbol): Move definition to new location and rewrite.
1054         (lookup_symbol_in_objfile): New function.
1055         (lookup_symbol_global_iterator_cb): Call it.
1056
1057 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1058
1059         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1060
1061 2014-11-07  Pedro Alves  <palves@redhat.com>
1062
1063         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1064         check if we did a "nexti" inside a prologue.
1065         * symtab.c (in_prologue): Delete function.
1066         * symtab.h (in_prologue): Delete declaration.
1067
1068 2014-11-06  Doug Evans  <xdje42@gmail.com>
1069
1070         * symtab.h (lookup_global_symbol): Improve function comment.
1071
1072 2014-11-06  Doug Evans  <xdje42@gmail.com>
1073
1074         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1075         All callers updated.
1076         * symtab.h (lookup_global_symbol): Update decl.
1077         (lookup_static_symbol): Move decl to better location.
1078
1079 2014-11-06  Doug Evans  <xdje42@gmail.com>
1080
1081         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1082
1083 2014-11-06  Doug Evans  <xdje42@gmail.com>
1084
1085         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1086         All callers updated.
1087         (lookup_symbol_in_all_objfiles): Renamed from
1088         lookup_symbol_aux_symtabs.  All callers updated.
1089         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1090         All callers updated.
1091         (lookup_symbol_in_objfile_symtabs): Renamed from
1092         lookup_symbol_aux_objfile.  All callers updated.
1093
1094 2014-11-06  Doug Evans  <xdje42@gmail.com>
1095
1096         * symtab.c (lookup_symbol_in_block): Renamed from
1097         lookup_symbol_aux_block.  All callers updated.
1098
1099 2014-11-06  Doug Evans  <xdje42@gmail.com>
1100
1101         * symtab.c (lookup_static_symbol): Renamed from
1102         lookup_static_symbol_aux.  All callers updated.
1103         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1104         All callers updated.
1105
1106 2014-11-06  Doug Evans  <xdje42@gmail.com>
1107
1108         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1109         * block.c (block_lookup_symbol): Use it.
1110         * cp-support.c (make_symbol_overload_list_block): Use it.
1111         * symtab.c (iterate_over_symbols): Use it.
1112
1113 2014-11-06  Doug Evans  <xdje42@gmail.com>
1114
1115         * symtab.c (lookup_block_symbol): Moved to ...
1116         * block.c (block_lookup_symbol):  ... here and renamed.
1117         All callers updated.
1118         * block.h (block_lookup_symbol): Declare.
1119         * symtab.h (lookup_block_symbol): Delete.
1120
1121 2014-11-06  Doug Evans  <xdje42@gmail.com>
1122
1123         * ada-lang.c (ada_make_symbol_completion_list): Use
1124         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1125         * symtab.c (lookup_objfile_from_block): Ditto.
1126
1127 2014-11-06  Doug Evans  <xdje42@gmail.com>
1128
1129         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1130         TYPE_CODE_STRUCT.
1131
1132 2014-11-06  Doug Evans  <xdje42@gmail.com>
1133
1134         * objfiles.c (get_objfile_arch): Constify.
1135         * objfiles.h (get_objfile_arch): Update prototype.
1136         * solib.c (solib_global_lookup): Fetch arch from objfile,
1137         not target_gdbarch.
1138
1139 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1140
1141         * nios2-tdep.c (wild_insn): Delete.
1142         (profiler_insn, irqentry_insn): Delete.
1143         (nios2_match_sequence): Delete.
1144         (nios2_analyze_prologue): Update comments.  Remove matching
1145         of obsolete profiler_insn and irqentry_insn sequences.
1146
1147 2014-11-05  Alan Modra  <amodra@gmail.com>
1148
1149         * charset.c (convert_between_encodings): Shrink obstack using
1150         obstack_blank_fast.
1151         * minsyms.c (install_minimal_symbols): Likewise.
1152         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1153         to char* before doing pointer arithmetic.
1154
1155 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1156
1157         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1158
1159 2014-11-04  Pedro Alves  <palves@redhat.com>
1160
1161         * breakpoint.c (breakpoint_thread_match): Delete function.
1162         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1163
1164 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1165
1166         PR c++/17494
1167         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1168         the method args also under EVAL_SKIP when evaluating method
1169         calls under EVAL_SKIP.
1170
1171 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1172
1173         * dwarf2loc.c (read_pieced_value): Do big endian
1174         processing only if gdb_regnum is not -1.
1175         (write_pieced_value): Ditto.
1176
1177 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1178
1179         * arm-linux-tdep.c (arm_linux_init_abi): Use
1180         info.byte_order_for_code to choose endianity of breakpoint
1181         instructions snippets.
1182
1183 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1184
1185         * arm-tdep.c (extract_arm_insn): Use
1186         gdbarch_byte_order_for_code to read arm instruction.
1187
1188 2014-11-02  Doug Evans  <xdje42@gmail.com>
1189
1190         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1191
1192 2014-11-02  Doug Evans  <xdje42@gmail.com>
1193
1194         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1195         main_subfile before returning.
1196
1197 2014-10-31  Doug Evans  <xdje42@gmail.com>
1198
1199         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1200         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1201
1202 2014-10-31  Doug Evans  <xdje42@gmail.com>
1203
1204         * valops.c (value_cast_pointers): Fix whitespace.
1205         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1206         Ditto.
1207
1208 2014-10-30  Doug Evans  <dje@google.com>
1209
1210         * NEWS: Mention ability add attributes to gdb.Objfile and
1211         gdb.Progspace objects.
1212         * python/py-objfile.c (objfile_object): New member dict.
1213         (objfpy_dealloc): Py_XDECREF dict.
1214         (objfpy_initialize): Initialize dict.
1215         (objfile_getset): Add __dict__.
1216         (objfile_object_type): Set tp_dictoffset member.
1217         * python/py-progspace.c (progspace_object): New member dict.
1218         (pspy_dealloc): Py_XDECREF dict.
1219         (pspy_initialize): Initialize dict.
1220         (pspace_getset): Add __dict__.
1221         (pspace_object_type): Set tp_dictoffset member.
1222
1223 2014-10-30  Yao Qi  <yao@codesourcery.com>
1224
1225         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1226         replace '\\' with '\\\\'.
1227
1228 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1229
1230         GDB 7.8.1 released.
1231
1232 2014-10-29  Pedro Alves  <palves@redhat.com>
1233
1234         PR gdb/17408
1235         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1236         instead of assuming a thread with a stepping range is always
1237         stepping.
1238
1239 2014-10-29  Pedro Alves  <palves@redhat.com>
1240
1241         PR python/17372
1242         * event-top.c (change_line_handler): Call
1243         gdb_rl_callback_handler_remove instead of
1244         rl_callback_handler_remove.
1245         (callback_handler_installed): New global.
1246         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1247         (gdb_rl_callback_handler_reinstall): New functions.
1248         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1249         gdb_rl_callback_handler_install instead of
1250         rl_callback_handler_remove and rl_callback_handler_install.
1251         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1252         instead of rl_callback_handler_remove.
1253         * event-top.h (gdb_rl_callback_handler_remove)
1254         (gdb_rl_callback_handler_install)
1255         (gdb_rl_callback_handler_reinstall): New declarations.
1256         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1257         cleanup function.
1258         (fetch_inferior_event): Install it.
1259         * top.c (gdb_readline_wrapper_line) Call
1260         gdb_rl_callback_handler_remove instead of
1261         rl_callback_handler_remove.
1262         (gdb_readline_wrapper_cleanup): Don't call
1263         rl_callback_handler_install.
1264
1265 2014-10-29  Pedro Alves  <palves@redhat.com>
1266
1267         * event-top.c (command_line_handler): Clear the first byte of
1268         linebuffer, when it is first allocated.
1269
1270 2014-10-29  Pedro Alves  <palves@redhat.com>
1271
1272         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1273         TRY_CATCH.
1274
1275 2014-10-29  Pedro Alves  <palves@redhat.com>
1276
1277         PR tui/16138
1278         PR tui/17519
1279         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1280         (tui_allowed_p): Delete function.
1281         * tui/tui.c: Include "interps.h".
1282         (tui_enable): Don't use tui_allowed_p.  Error out here with
1283         detailed error messages if the TUI is the top level interpreter,
1284         or if output is not a terminal.  Use newterm instead of initscr,
1285         and error out if initializing the terminal fails.  Also error out if
1286         the terminal doesn't support cursor addressing.
1287         * tui/tui.h (tui_allowed_p): Delete declaration.
1288
1289 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1290
1291         * arm-tdep.c (arm_skip_stack_protector): Return early if
1292         address loaded by first "ldr" instruction does not have
1293         a corresponding minimal symbol.  Update comment.
1294
1295 2014-10-29  Yao Qi  <yao@codesourcery.com>
1296
1297         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1298         loaded address correctly of ldr instruction.
1299
1300 2014-10-28  Pedro Alves  <palves@redhat.com>
1301
1302         PR gdb/12623
1303         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1304         field.
1305         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1306         thread's stepped_breakpoint field.  Skip if reverse debugging.
1307         Add comment.
1308         (init_thread_stepping_state, handle_signal_stop): Clear the
1309         thread's stepped_breakpoint field.
1310
1311 2014-10-27  Pedro Alves  <palves@redhat.com>
1312
1313         * remote.c (remote_thread_alive): New, factored out from ...
1314         (remote_thread_alive): ... this.
1315         (remote_update_thread_list): Bail out before deleting threads if
1316         the target returned an empty list, and, the current thread has a
1317         magic/fake ptid.
1318
1319 2014-10-27  Pedro Alves  <palves@redhat.com>
1320
1321         * infrun.c (handle_signal_stop): Also skip handlers when a random
1322         signal arrives while handling a "stepi" or a "nexti".  Set the
1323         thread's 'step_after_step_resume_breakpoint' flag.
1324
1325 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1326
1327         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1328         (arm_record_ld_st_imm_offset): Reimplement to cover all
1329         load/store cases for ARM opcode 010.
1330         (arm_record_ld_st_multiple): Reimplement to cover all
1331         load/store cases for ARM opcode 100.
1332
1333 2014-10-26  Doug Evans  <xdje42@gmail.com>
1334
1335         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1336
1337 2014-10-26  Doug Evans  <xdje42@gmail.com>
1338
1339         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1340         parameter "kind" to "block_index".
1341         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1342         "block_index".
1343         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1344
1345 2014-10-26  Doug Evans  <xdje42@gmail.com>
1346
1347         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1348
1349 2014-10-26  Doug Evans  <xdje42@gmail.com>
1350
1351         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1352         obstack_alloc.
1353
1354 2014-10-26  Doug Evans  <xdje42@gmail.com>
1355
1356         * parser-defs.h (block_found): Move decl from here ...
1357         * symtab.h (block_found): ... to here.
1358
1359 2014-10-26  Doug Evans  <xdje42@gmail.com>
1360
1361         * symtab.h (struct field_of_this_result): Fix typo in comment.
1362         (lookup_symbol_in_language): Move function comment here.
1363         (lookup_symbol): Improve function comment.
1364         (basic_lookup_symbol_nonlocal): Ditto.
1365         (lookup_symbol_static, lookup_symbol_global): Ditto.
1366         (lookup_symbol_aux_block): Ditto.
1367         (lookup_language_this): Add function comment.
1368         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1369         function comment.
1370         (lookup_block_symbol): Improve function comment.
1371         (lookup_struct): Fix capitalization in function comment.
1372         (lookup_transparent_type): Add function comment.
1373         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1374         Improve function comment.
1375         (lookup_objfile_from_block): Add function comment.
1376         * symtab.c (lookup_symbol_in_language): Update function comment.
1377         (lookup_symbol, lookup_language_this): Ditto.
1378         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1379         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1380         (basic_lookup_symbol_nonlocal): Ditto.
1381         (lookup_symbol_static, lookup_symbol_global): Ditto.
1382         (lookup_transparent_type, lookup_block_symbol): Ditto.
1383
1384 2014-10-25  Doug Evans  <xdje42@gmail.com>
1385
1386         * symtab.c (types_info): Delete forward decl.
1387         (functions_info, variables_info, sources_info): Ditto.
1388         (_initialize_symtab): Rewrite forward decl to use
1389         initialize_file_ftype.
1390
1391 2014-10-25  Doug Evans  <xdje42@gmail.com>
1392
1393         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1394
1395 2014-10-25  Doug Evans  <xdje42@gmail.com>
1396
1397         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1398         of local var child_die.
1399
1400 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1401
1402         * infrun.c (follow_fork_inferior): Update fork message printing
1403         to use target_terminal_ours_for_output instead of
1404         target_terminal_ours, to use _() for all format strings, to print
1405         "vfork" instead of "fork" for vforks, and to add a detach message.
1406         (handle_vfork_child_exec_or_exit): Update message printing to use
1407         target_terminal_ours_for_output instead of target_terminal_ours, to
1408         use _() for all format strings, and to fix some formatting.
1409
1410 2014-10-24  Pedro Alves  <palves@redhat.com>
1411
1412         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1413         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1414         * config/vax/vax.mh: Delete.
1415         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1416         obsolete configurations section.
1417         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1418         * vax-nat.c: Delete file.
1419
1420 2014-10-24  Pedro Alves  <palves@redhat.com>
1421
1422         * NEWS (Removed targets): Add OS/arch column.
1423
1424 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1425
1426         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1427         on the arg type of a constructor only if it is of reference type.
1428
1429 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1430
1431         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1432         accessors and constants from nios2 opcodes update.
1433         (nios2_get_next_pc): Likewise.
1434
1435 2014-10-19  Doug Evans  <xdje42@gmail.com>
1436
1437         * gdbthread.h (set_running): Fix comment.
1438         (set_executing, finish_thread_state): Fix comment.
1439
1440 2014-10-18  Doug Evans  <xdje42@gmail.com>
1441
1442         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1443
1444 2014-10-17  Doug Evans  <dje@google.com>
1445
1446         * NEWS: Mention new event gdb.clear_objfiles.
1447         * python/py-event.h (emit_clear_objfiles_event): Clear
1448         * python/py-events.h (events_object): New member clear_objfiles.
1449         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1450         event.
1451         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1452         emit clear_objfiles event.
1453         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1454         function.
1455         (emit_clear_objfiles_event): New function.
1456         (clear_objfiles): New event.
1457         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1458         Declare.
1459         * python/python.c (_initialize_python): Call
1460         gdbpy_initialize_clear_objfiles_event.
1461
1462 2014-10-17  Doug Evans  <dje@google.com>
1463
1464         * NEWS: Mention new gdb.Objfile.progspace attribute.
1465         * python/py-objfile.c (objfpy_get_progspace): New function.
1466         (objfile_getset): New entry for "progspace".
1467
1468 2014-10-17  Pedro Alves  <palves@redhat.com>
1469
1470         PR gdb/17471
1471         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1472         returns a copy of the input.
1473         (run_command_1, continue_command, step_1, jump_command)
1474         (signal_command, until_command, advance_command, finish_command)
1475         (attach_command): Adjust and install a cleanup to free the
1476         stripped args.
1477
1478 2014-10-17  Pedro Alves  <palves@redhat.com>
1479
1480         PR gdb/17300
1481         * infcmd.c (continue_1): If continuing all threads in the
1482         foreground, make sure the inferior's terminal settings are put in
1483         effect.
1484
1485 2014-10-17  Pedro Alves  <palves@redhat.com>
1486
1487         PR gdb/17472
1488         * annotate.c (annotate_breakpoints_invalid): Use
1489         target_terminal_our_for_output instead of target_terminal_ours.
1490         Give back the terminal to the target.
1491         (annotate_frames_invalid): Likewise.
1492
1493 2014-10-17  Pedro Alves  <palves@redhat.com>
1494
1495         * target.c (enum terminal_state): New enum.
1496         (terminal_state): New global.
1497         (target_terminal_init): New function.
1498         (target_terminal_inferior): Skip if inferior already owns the
1499         terminal.
1500         (target_terminal_ours, target_terminal_ours_for_output): New
1501         functions.
1502         * target.h (target_terminal_init): Convert to function prototype.
1503         (target_terminal_ours_for_output): Convert to function prototype
1504         and tweak comment.
1505         (target_terminal_ours): Convert to function prototype and tweak
1506         comment.
1507         * windows-nat.c (do_initial_windows_stuff): Call
1508         target_terminal_init instead of child_terminal_init_with_pgrp.
1509
1510 2014-10-17  Pedro Alves  <palves@redhat.com>
1511
1512         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1513         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1514         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1515         solib-osf.c.
1516         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1517         * ada-lang.h [__alpha__ && __osf__]
1518         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1519         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1520         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1521         GDB_OSABI_OSF1.
1522         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1523         files.
1524         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1525         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1526         * configure: Regenerate.
1527         * configure.ac: Remove references to osf.
1528         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1529         section.  Remove all other references to osf.
1530         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1531         Remove all other references to osf.
1532         * dec-thread.c: Delete file.
1533         * defs.h (GDB_OSABI_OSF1): Delete.
1534         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1535         defined.
1536         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1537         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1538         Delete code.
1539         (unconditionally_kill_inferior)
1540         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1541         * solib-osf.c: Delete file.
1542
1543 2014-10-17  Pedro Alves  <palves@redhat.com>
1544
1545         * remote.c (clear_threads_listing_context): Move higher up, out of
1546         the HAVE_LIBEXPAT guard.
1547
1548 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1549
1550         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1551         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1552         on amd64.
1553
1554 2014-10-15  Pedro Alves  <palves@redhat.com>
1555
1556         * dec-thread.c (dec_thread_count_gdb_threads)
1557         (dec_thread_add_gdb_thread): Delete.
1558         (dec_thread_update_thread_list): Delete.
1559         (dec_thread_find_new_threads): Rename to ...
1560         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1561         threads that are no longer found in dec_thread_list.
1562         (resync_thread_list): Delete.
1563         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1564         resync_thread_list.
1565
1566 2014-10-15  Pedro Alves  <palves@redhat.com>
1567
1568         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1569         * remote.c (remote_update_thread_list): Skip calling prune_threads
1570         if any thread listing method is supported, and instead walk over
1571         the set of remote threads listed, deleting those that are not
1572         found in GDB's thread list.
1573
1574 2014-10-15  Pedro Alves  <palves@redhat.com>
1575
1576         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1577         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1578         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1579         (bsd_uthread_target): Adjust.
1580         * corelow.c (core_open): Adjust.
1581         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1582         (dec_thread_update_thread_list): New function.
1583         (init_dec_thread_ops): Adjust.
1584         * gdbthread.h (prune_threads): New declaration.
1585         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1586         (thread_db_update_thread_list): ... this.  Call prune_threads.
1587         (init_thread_db_ops): Adjust.
1588         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1589         (procfs_update_thread_list): ... this.  Call prune_threads.
1590         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1591         Adjust.
1592         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1593         (obsd_update_thread_list): ... this.  Call prune_threads.
1594         (obsd_add_target): Adjust.
1595         * procfs.c (procfs_target): Adjust.
1596         (procfs_notice_thread): Update comment.
1597         (procfs_find_new_threads): Rename to ...
1598         (procfs_update_thread_list): ... this.  Call prune_threads.
1599         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1600         comment.
1601         (ravenscar_wait): Adjust.
1602         (ravenscar_find_new_threads): Rename to ...
1603         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1604         (init_ravenscar_thread_ops): Adjust.
1605         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1606         (record_btrace_update_thread_list): ... this.  Adjust comment.
1607         (init_record_btrace_ops): Adjust.
1608         * remote.c (remote_threads_info): Rename to ...
1609         (remote_update_thread_list): ... this.  Call prune_threads.
1610         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1611         Adjust.
1612         * sol-thread.c (check_for_thread_db): Adjust.
1613         (sol_find_new_threads_callback): Rename to ...
1614         (sol_update_thread_list_callback): ... this.
1615         (sol_find_new_threads): Rename to ...
1616         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1617         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1618         * target-delegates.c: Regenerate.
1619         * target.c (target_find_new_threads): Rename to ...
1620         (target_update_thread_list): ... this.
1621         * target.h (struct target_ops): Rename to_find_new_threads field
1622         to to_update_thread_list.
1623         (target_find_new_threads): Rename to ...
1624         (target_update_thread_list): ... this.
1625         * thread.c (prune_threads): Make extern.
1626         (update_thread_list): Adjust.
1627
1628 2014-10-15  Pedro Alves  <palves@redhat.com>
1629
1630         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1631         Add describing comment.  Return -1 if the qL packet is not
1632         supported.
1633         (struct thread_item, thread_item_t): Move higher up in
1634         the file.  Add comments.
1635         (struct threads_parsing_context): Move higher up in
1636         the file, add comments, and remote to ...
1637         (struct threads_listing_context): ... this.
1638         (remote_newthread_step): Don't add the thread to GDB's thread
1639         database here.  Instead push it to the thread_listing_context
1640         list.
1641         (remote_find_new_threads): Rename to ...
1642         (remote_get_threads_with_ql): ... this.  Add target_ops and
1643         targets_listing_context parameters.  Pass down context.
1644         (start_thread): Adjust.
1645         (clear_threads_parsing_context): Rename to ...
1646         (clear_threads_listing_context): ... this.
1647         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1648         remote_threads_info.
1649         (remote_get_threads_with_qthreadinfo): Ditto.
1650         (remote_threads_info): Reimplement.
1651
1652 2014-10-15  Pedro Alves  <palves@redhat.com>
1653
1654         * infrun.c (resume): Don't force displaced-stepping for all
1655         single-steps on software single-stepping archs.
1656
1657 2014-10-15  Pedro Alves  <palves@redhat.com>
1658
1659         * breakpoint.c (single_step_breakpoints): Delete global.
1660         (insert_single_step_breakpoint): Adjust to store the breakpoint
1661         pointer in the current thread.
1662         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1663         (cancel_single_step_breakpoints): Delete functions.
1664         (breakpoint_has_location_inserted_here): Make extern.
1665         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1666         breakpoint list.
1667         * breakpoint.h (breakpoint_has_location_inserted_here): New
1668         declaration.
1669         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1670         (cancel_single_step_breakpoints): Remove declarations.
1671         * gdbthread.h (struct thread_control_state)
1672         <single_step_breakpoints>: New field.
1673         (delete_single_step_breakpoints)
1674         (thread_has_single_step_breakpoints_set)
1675         (thread_has_single_step_breakpoint_here): New declarations.
1676         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1677         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1678         (singlestep_pc): Delete globals.
1679         (infrun_thread_ptid_changed): Remove references to removed
1680         globals.
1681         (resume_cleanups): Delete the current thread's single-step
1682         breakpoints.
1683         (maybe_software_singlestep): Remove references to removed globals.
1684         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1685         delete_single_step_breakpoints.
1686         (init_wait_for_inferior): Remove references to removed globals.
1687         (delete_thread_infrun_breakpoints): Delete the thread's
1688         single-step breakpoints too.
1689         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1690         single-step breakpoints here.
1691         (delete_stopped_threads_single_step_breakpoints): New function.
1692         (adjust_pc_after_break): Adjust to use
1693         thread_has_single_step_breakpoints_set.
1694         (handle_inferior_event): Remove references to removed globals.
1695         Use delete_stopped_threads_single_step_breakpoints.
1696         (handle_signal_stop): Adjust to per-thread single-step
1697         breakpoints.  Swap test order to do cheaper tests first.
1698         (switch_back_to_stepped_thread): Extend debug output.  Remove
1699         references to removed globals.
1700         * record-full.c (record_full_wait_1): Adjust to per-thread
1701         single-step breakpoints.
1702         * thread.c (delete_single_step_breakpoints)
1703         (thread_has_single_step_breakpoints_set)
1704         (thread_has_single_step_breakpoint_here): New functions.
1705         (clear_thread_inferior_resources): Also delete the thread's
1706         single-step breakpoints.
1707
1708 2014-10-15  Pedro Alves  <palves@redhat.com>
1709
1710         * thread.c (delete_thread_breakpoint): New function.
1711         (delete_step_resume_breakpoint)
1712         (delete_exception_resume_breakpoint): Use it.
1713         (delete_at_next_stop): New function.
1714         (clear_thread_inferior_resources): Use delete_at_next_stop.
1715
1716 2014-10-15  Pedro Alves  <palves@redhat.com>
1717
1718         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1719         (breakpoint_inserted_here_p): ... here.  Remove special case for
1720         software single-step breakpoints.
1721         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1722         (software_breakpoint_inserted_here_p): ... here.  Remove special
1723         case for software single-step breakpoints.
1724         (bp_target_info_copy_insertion_state)
1725         (deprecated_insert_raw_breakpoint)
1726         (deprecated_remove_raw_breakpoint): Delete functions.
1727         * breakpoint.h (deprecated_insert_raw_breakpoint)
1728         (deprecated_remove_raw_breakpoint): Remove declarations.
1729
1730 2014-10-15  Pedro Alves  <palves@redhat.com>
1731
1732         PR breakpoints/9649
1733         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1734         Delete array globals.
1735         (single_step_breakpoints): New global.
1736         (breakpoint_xfer_memory): Remove special handling for single-step
1737         breakpoints.
1738         (update_breakpoints_after_exec): Delete bp_single_step
1739         breakpoints.
1740         (detach_breakpoints): Remove special handling for single-step
1741         breakpoints.
1742         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1743         (bpstat_stop_status): Add comment.
1744         (bpstat_what, bptype_string, print_one_breakpoint_location)
1745         (adjust_breakpoint_address, init_bp_location): Handle
1746         bp_single_step.
1747         (new_single_step_breakpoint): New function.
1748         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1749         handling for single-step breakpoints.
1750         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1751         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1752         Rewrite.
1753         (detach_single_step_breakpoints, find_single_step_breakpoint):
1754         Delete functions.
1755         (breakpoint_has_location_inserted_here): New function.
1756         (single_step_breakpoint_inserted_here_p): Rewrite.
1757         * breakpoint.h: Remove FIXME.
1758         (enum bptype) <bp_single_step>: New enum value.
1759         (insert_single_step_breakpoint): Update comment.
1760         * infrun.c (resume_cleanups)
1761         (delete_step_thread_step_resume_breakpoint): Remove single-step
1762         breakpoints.
1763         (fetch_inferior_event): Install a cleanup that removes infrun
1764         breakpoints.
1765         (switch_back_to_stepped_thread) <expect thread advanced also>:
1766         Clear step-over info.
1767
1768 2014-10-15  Pedro Alves  <palves@redhat.com>
1769
1770         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1771         (delete_thread_infrun_breakpoints): New function, with parts
1772         salvaged from delete_step_resume_breakpoint_callback.
1773         (delete_step_thread_step_resume_breakpoint): Delete.
1774         (for_each_just_stopped_thread_callback_func): New typedef.
1775         (for_each_just_stopped_thread): New function.
1776         (delete_just_stopped_threads_infrun_breakpoints): New function.
1777         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1778         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1779         ... this.  Adjust.
1780         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1781
1782 2014-10-15  Pedro Alves  <palves@redhat.com>
1783
1784         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1785         trying to step past a non-steppable watchpoint.
1786         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1787         field.
1788         * infrun.c (struct step_over_info): Add new field
1789         'nonsteppable_watchpoint_p' and adjust comments.
1790         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1791         Adjust.
1792         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1793         (stepping_past_nonsteppable_watchpoint): New function.
1794         (step_over_info_valid_p): Also return true if stepping past a
1795         nonsteppable watchpoint.
1796         (proceed): Adjust call to set_step_over_info.  Remove reference to
1797         init_infwait_state.
1798         (init_wait_for_inferior): Remove reference to init_infwait_state.
1799         (waiton_ptid): Delete global.
1800         (struct execution_control_state)
1801         <stepped_after_stopped_by_watchpoint>: Delete field.
1802         (wait_for_inferior, fetch_inferior_event): Always pass
1803         minus_one_ptid to target_wait.
1804         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1805         field.
1806         (init_infwait_state): Delete function.
1807         (handle_inferior_event): Remove infwait_state handling.
1808         (handle_signal_stop) <watchpoints handling>: Adjust after
1809         stepped_after_stopped_by_watchpoint removal.  Don't remove
1810         breakpoints here nor set infwait_state.  Set the thread's
1811         stepping_over_watchpoint flag, and call keep_going instead.
1812         (keep_going): Handle stepping_over_watchpoint.  Adjust
1813         set_step_over_info calls.
1814         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1815         function.
1816
1817 2014-10-15  Pedro Alves  <palves@redhat.com>
1818
1819         * infrun.c (step_over_info_valid_p): New function.
1820         (resume): Use step_over_info_valid_p instead of checking the
1821         threads's trap_expected flag.
1822
1823 2014-10-15  Doug Evans  <dje@google.com>
1824             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1825
1826         PR python/17364
1827         * python/lib/gdb/__init__.py (packages): Add "printer".
1828         * python/lib/gdb/command/bound_registers.py: Moved to ...
1829         * python/lib/gdb/printer/bound_registers.py: ... here.
1830         Add printer to global set of builtin printers.  Rename printer from
1831         "bound" to "mpx_bound128".
1832         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1833         registered as global "builtin" printer.
1834         (add_builtin_pretty_printer): New function.
1835         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1836         gdb/printer/__init__.py.
1837
1838 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1839
1840         * Makefile.in (SFILES): Remove d-support.c.
1841         (COMMON_OBS): Remove d-support.o.
1842         * d-lang.h (d_parse_symbol): Remove declaration.
1843         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1844         * d-support.c: Remove file.
1845
1846 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1847
1848         * gdb/infrun.c (process_event_stop_test): Apply
1849         gdbarch_addr_bits_remove to longjmp resume address.
1850
1851 2014-10-15  Pedro Alves  <palves@redhat.com>
1852
1853         * regformats/microblaze.dat: Delete file.
1854
1855 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1856
1857         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1858         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1859
1860 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1861
1862         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1863         as non-trivial.
1864
1865 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1866
1867         PR c++/13403
1868         PR c++/15154
1869         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1870         with qualified args.
1871
1872 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1873
1874         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1875         of the case where the second operand is a pointer.
1876         <BINOP_SUB>: Likewise.
1877
1878 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1879
1880         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1881         only if it is not NULL.
1882         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1883         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1884         (struct probe_ops) <clear_semaphore>: Likewise.
1885         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1886         not NULL.
1887         (stop_tracing): Likewise, for clear_semaphore.
1888
1889 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1890
1891         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1892         using language_c, instead of current_language.
1893
1894 2014-10-13  Doug Evans  <dje@google.com>
1895
1896         * python/py-objfile.c (objfpy_initialize): New function.
1897         (objfpy_new, objfile_to_objfile_object): Call it.
1898         * python/py-progspace.c (pspy_initialize): New function.
1899         (pspy_new, pspace_to_pspace_object): Call it.
1900
1901 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1902             Jan Kratochvil  <jan.kratochvil@redhat.com>
1903
1904         Fix "save breakpoints" for "catch" command.
1905         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1906         newline.
1907
1908 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1909
1910         Fix "save breakpoints" for "disable $bpnum" command.
1911         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1912
1913 2014-10-10  Pedro Alves  <palves@redhat.com>
1914
1915         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1916         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1917         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1918         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1919         and been removed.
1920         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1921         * configure.ac: Remove references to IRIX.
1922         * configure.host: Add *-*-irix* to the obsolete hosts section.
1923         Remove all other references to irix.
1924         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1925         Delete files.
1926
1927 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1928
1929         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1930         isn't valid, release the tdesc arch data and return NULL.
1931
1932 2014-10-10  Pedro Alves  <palves@redhat.com>
1933
1934         * linux-tdep.c: Include observer.h.
1935         (linux_inferior_data): New global.
1936         (struct linux_info): New structure.
1937         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1938         (get_linux_inferior_data): New functions.
1939         (linux_vsyscall_range): Rename to ...
1940         (linux_vsyscall_range_raw): ... this.
1941         (linux_vsyscall_range): New function; handles caching.
1942         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1943         inferior_exit and inferior_appeared observers.
1944
1945 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1946             Pedro Alves  <palves@redhat.com>
1947
1948         PR symtab/14466
1949         * solib-svr4.c (svr4_read_so_list): Rename to ...
1950         (svr4_current_sos_1): ... this and change the function comment.
1951         (svr4_current_sos): New function.
1952
1953 2014-10-10  Pedro Alves  <palves@redhat.com>
1954
1955         * arch-utils.c (default_vsyscall_range): New function.
1956         * arch-utils.h (default_vsyscall_range): New declaration.
1957         * gdbarch.sh (vsyscall_range): New hook.
1958         * gdbarch.h, gdbarch.c: Regenerate.
1959         * linux-tdep.c (linux_vsyscall_range): New function.
1960         (linux_init_abi): Install linux_vsyscall_range as
1961         vsyscall_range gdbarch hook.
1962         * memrange.c (address_in_mem_range): New function.
1963         * memrange.h (address_in_mem_range): New declaration.
1964         * symfile-mem.c (find_vdso_size): Delete function.
1965         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1966
1967 2014-10-10  Pedro Alves  <palves@redhat.com>
1968
1969         * infrun.c (normal_stop): Fix typo in comment.
1970
1971 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1972
1973         PR tdep/9390
1974         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1975         typo when using logical AND to determine instruction type.
1976
1977 2014-10-09  Yao Qi  <yao@codesourcery.com>
1978
1979         * infrun.c (handle_signal_stop): Remove local variable
1980         'printed'.
1981
1982 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1983
1984         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1985
1986 2014-10-08  Gary Benson  <gbenson@redhat.com>
1987
1988         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1989
1990 2014-10-08  Gary Benson  <gbenson@redhat.com>
1991
1992         * common/common-defs.h: Include common-exceptions.h.
1993         * exceptions.h: Do not include common-exceptions.h.
1994
1995 2014-10-08  Gary Benson  <gbenson@redhat.com>
1996
1997         * common/common-defs.h: Include cleanups.h.
1998         * common/common-exceptions.c: Do not include cleanups.h.
1999         * utils.h: Likewise.
2000
2001 2014-10-08  Gary Benson  <gbenson@redhat.com>
2002
2003         * ada-lang.c: Do not include exceptions.h.
2004         * ada-valprint.c: Likewise.
2005         * amd64-tdep.c: Likewise.
2006         * auto-load.c: Likewise.
2007         * block.c: Likewise.
2008         * break-catch-throw.c: Likewise.
2009         * breakpoint.c: Likewise.
2010         * btrace.c: Likewise.
2011         * c-lang.c: Likewise.
2012         * cli/cli-cmds.c: Likewise.
2013         * cli/cli-interp.c: Likewise.
2014         * cli/cli-script.c: Likewise.
2015         * completer.c: Likewise.
2016         * corefile.c: Likewise.
2017         * corelow.c: Likewise.
2018         * cp-abi.c: Likewise.
2019         * cp-support.c: Likewise.
2020         * cp-valprint.c: Likewise.
2021         * darwin-nat.c: Likewise.
2022         * dwarf2-frame-tailcall.c: Likewise.
2023         * dwarf2-frame.c: Likewise.
2024         * dwarf2loc.c: Likewise.
2025         * dwarf2read.c: Likewise.
2026         * eval.c: Likewise.
2027         * event-loop.c: Likewise.
2028         * event-top.c: Likewise.
2029         * f-valprint.c: Likewise.
2030         * frame-unwind.c: Likewise.
2031         * frame.c: Likewise.
2032         * gdbtypes.c: Likewise.
2033         * gnu-v2-abi.c: Likewise.
2034         * gnu-v3-abi.c: Likewise.
2035         * guile/scm-auto-load.c: Likewise.
2036         * guile/scm-breakpoint.c: Likewise.
2037         * guile/scm-cmd.c: Likewise.
2038         * guile/scm-frame.c: Likewise.
2039         * guile/scm-lazy-string.c: Likewise.
2040         * guile/scm-param.c: Likewise.
2041         * guile/scm-symbol.c: Likewise.
2042         * guile/scm-type.c: Likewise.
2043         * hppa-hpux-tdep.c: Likewise.
2044         * i386-tdep.c: Likewise.
2045         * inf-loop.c: Likewise.
2046         * infcall.c: Likewise.
2047         * infcmd.c: Likewise.
2048         * infrun.c: Likewise.
2049         * interps.c: Likewise.
2050         * interps.h: Likewise.
2051         * jit.c: Likewise.
2052         * linespec.c: Likewise.
2053         * linux-nat.c: Likewise.
2054         * linux-thread-db.c: Likewise.
2055         * m32r-rom.c: Likewise.
2056         * main.c: Likewise.
2057         * memory-map.c: Likewise.
2058         * mi/mi-cmd-break.c: Likewise.
2059         * mi/mi-cmd-stack.c: Likewise.
2060         * mi/mi-interp.c: Likewise.
2061         * mi/mi-main.c: Likewise.
2062         * monitor.c: Likewise.
2063         * nto-procfs.c: Likewise.
2064         * objc-lang.c: Likewise.
2065         * p-valprint.c: Likewise.
2066         * parse.c: Likewise.
2067         * ppc-linux-tdep.c: Likewise.
2068         * printcmd.c: Likewise.
2069         * probe.c: Likewise.
2070         * python/py-auto-load.c: Likewise.
2071         * python/py-breakpoint.c: Likewise.
2072         * python/py-cmd.c: Likewise.
2073         * python/py-finishbreakpoint.c: Likewise.
2074         * python/py-frame.c: Likewise.
2075         * python/py-framefilter.c: Likewise.
2076         * python/py-function.c: Likewise.
2077         * python/py-gdb-readline.c: Likewise.
2078         * python/py-inferior.c: Likewise.
2079         * python/py-infthread.c: Likewise.
2080         * python/py-lazy-string.c: Likewise.
2081         * python/py-linetable.c: Likewise.
2082         * python/py-param.c: Likewise.
2083         * python/py-prettyprint.c: Likewise.
2084         * python/py-symbol.c: Likewise.
2085         * python/py-type.c: Likewise.
2086         * python/py-value.c: Likewise.
2087         * python/python-internal.h: Likewise.
2088         * python/python.c: Likewise.
2089         * record-btrace.c: Likewise.
2090         * record-full.c: Likewise.
2091         * regcache.c: Likewise.
2092         * remote-fileio.c: Likewise.
2093         * remote-mips.c: Likewise.
2094         * remote.c: Likewise.
2095         * rs6000-aix-tdep.c: Likewise.
2096         * rs6000-nat.c: Likewise.
2097         * skip.c: Likewise.
2098         * solib-darwin.c: Likewise.
2099         * solib-dsbt.c: Likewise.
2100         * solib-frv.c: Likewise.
2101         * solib-ia64-hpux.c: Likewise.
2102         * solib-spu.c: Likewise.
2103         * solib-svr4.c: Likewise.
2104         * solib.c: Likewise.
2105         * spu-tdep.c: Likewise.
2106         * stack.c: Likewise.
2107         * stap-probe.c: Likewise.
2108         * symfile-mem.c: Likewise.
2109         * symmisc.c: Likewise.
2110         * target.c: Likewise.
2111         * thread.c: Likewise.
2112         * top.c: Likewise.
2113         * tracepoint.c: Likewise.
2114         * tui/tui-interp.c: Likewise.
2115         * typeprint.c: Likewise.
2116         * utils.c: Likewise.
2117         * valarith.c: Likewise.
2118         * valops.c: Likewise.
2119         * valprint.c: Likewise.
2120         * value.c: Likewise.
2121         * varobj.c: Likewise.
2122         * windows-nat.c: Likewise.
2123         * xml-support.c: Likewise.
2124
2125 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2126
2127         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2128         name implies.
2129         (extended_mips16_next_pc): Update accordingly.
2130
2131 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2132
2133         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2134         function.
2135         (micromips_instruction_is_compact_branch): Likewise.
2136         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2137         or a compact jump, reaching a jump delay slot, or seeing a
2138         second non-prologue instruction.
2139         (micromips_scan_prologue): Also terminate scanning upon seeing a
2140         compact branch or jump, or reaching a branch or jump delay slot.
2141         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2142         or jump delay slot, or seeing a second non-prologue instruction.
2143         (mips32_instruction_has_delay_slot): Retain instruction
2144         examination code only, update arguments accordingly and move
2145         instruction fetch pieces to...
2146         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2147         (micromips_instruction_has_delay_slot): Likewise and to...
2148         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2149         (mips16_instruction_has_delay_slot): Likewise and to...
2150         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2151         (mips_single_step_through_delay): Update accordingly.
2152         (mips_adjust_breakpoint_address): Likewise.
2153
2154 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2155
2156         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2157         !mustbe32 also return 1 for 32-bit instructions.
2158         (mips16_instruction_has_delay_slot): Likewise.  Add an
2159         explanatory comment.
2160
2161 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2162
2163         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2164         symbols special.
2165
2166 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2167
2168         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2169         update comments.
2170         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2171         for the breakpoint's address.  Don't preinitialize `placed_size'.
2172         (insert_bp_location): Set `reqstd_address' rather than
2173         `placed_address'.
2174         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2175         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2176         address.
2177         (bkpt_remove_location): Likewise.
2178         (deprecated_insert_raw_breakpoint): Likewise.
2179         (deprecated_remove_raw_breakpoint): Likewise.
2180         (find_single_step_breakpoint): Likewise.
2181         * mem-break.c (default_memory_insert_breakpoint): Use
2182         `reqstd_address' for the breakpoint's address.  Don't set
2183         `placed_address' or `placed_size' if breakpoint contents couldn't
2184         have been determined.
2185         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2186         the breakpoint's address.
2187         (remote_insert_hw_breakpoint): Likewise.  Don't set
2188         `placed_address' or `placed_size' if breakpoint couldn't have been
2189         set.
2190         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2191         `reqstd_address' for the breakpoint's address.
2192         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2193         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2194         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2195         * microblaze-linux-tdep.c
2196         (microblaze_linux_memory_remove_breakpoint): Likewise.
2197         * monitor.c (monitor_insert_breakpoint): Likewise.
2198         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2199         (procfs_insert_hw_breakpoint): Likewise.
2200         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2201         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2202         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2203         * remote-mips.c (mips_insert_breakpoint): Likewise.
2204         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2205
2206 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2207
2208         * valops.c (value_assign): Check for bit field assignments
2209         before calling architecture-specific register value
2210         conversion functions.
2211
2212 2014-10-03  Pierre Muller  <muller@sourceware.org>
2213
2214         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2215
2216 2014-10-02  Pedro Alves  <palves@redhat.com>
2217
2218         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2219         threads_are_executing.
2220         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2221         describing comment.
2222         * gdbthread.h (threads_are_executing): Declare.
2223         (handle_signal_stop) <random signals>: Don't print about the
2224         signal here if stopping.
2225         (end_stepping_range): Don't notify observers here.
2226         (normal_stop): Update the thread list.  If stopped by a random
2227         signal or a stepping range ended, notify observers.
2228         * thread.c (threads_executing): New global.
2229         (init_thread_list): Clear 'threads_executing'.
2230         (set_executing): Set or clear 'threads_executing'.
2231         (threads_are_executing): New function.
2232         (update_threads_executing): New function.
2233         (update_thread_list): Use it.
2234
2235 2014-10-02  Pedro Alves  <palves@redhat.com>
2236
2237         PR breakpoints/17431
2238         * breakpoint.c (update_breakpoints_after_exec): Don't create
2239         overlay, longjmp, std terminate nor exception breakpoints here.
2240
2241 2014-10-02  Pedro Alves  <palves@redhat.com>
2242
2243         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2244         Adjust comments.
2245         * inferior.c (find_inferior_for_program_space): Give preference to
2246         the current inferior.
2247         * inferior.h (find_inferior_for_program_space): Update comment.
2248         * progspace.c (switch_to_program_space_and_thread): Prefer the
2249         current inferior if it's bound to the program space requested.  If
2250         the inferior found doesn't have a PID yet, don't bother looking up
2251         a thread.
2252         * progspace.h (switch_to_program_space_and_thread): Adjust
2253         comment.
2254         * thread.c (any_thread_of_process, any_live_thread_of_process):
2255         Give preference to the current thread.
2256
2257 2014-10-01  Pedro Alves  <palves@redhat.com>
2258
2259         * breakpoint.c (insert_bp_location): Error out if inserting a
2260         software breakpoint at a read-only address.
2261         * target.c (memory_xfer_check_region): New function, factored out
2262         from ...
2263         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2264         ULONGEST.
2265         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2266         against the memory region attributes.
2267
2268 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2269
2270         * NEWS: Announce new exit-code field in -list-thread-groups
2271         output.
2272         * inferior.c (exit_inferior_1): Don't clear exit code.
2273         (inferior_appeared): Clear exit code.
2274         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2275         code.
2276
2277 2014-10-01  Pedro Alves  <palves@redhat.com>
2278
2279         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2280         GENERATED" along with emacs/vi read-only markers.
2281         * regformats/aarch64.dat: Regenerate.
2282         * regformats/arm-with-iwmmxt.dat: Regenerate.
2283         * regformats/arm-with-neon.dat: Regenerate.
2284         * regformats/arm-with-vfpv2.dat: Regenerate.
2285         * regformats/arm-with-vfpv3.dat: Regenerate.
2286         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2287         * regformats/i386/amd64-avx.dat: Regenerate.
2288         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2289         * regformats/i386/amd64-avx512.dat: Regenerate.
2290         * regformats/i386/amd64-linux.dat: Regenerate.
2291         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2292         * regformats/i386/amd64-mpx.dat: Regenerate.
2293         * regformats/i386/amd64.dat: Regenerate.
2294         * regformats/i386/i386-avx-linux.dat: Regenerate.
2295         * regformats/i386/i386-avx.dat: Regenerate.
2296         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2297         * regformats/i386/i386-avx512.dat: Regenerate.
2298         * regformats/i386/i386-linux.dat: Regenerate.
2299         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2300         * regformats/i386/i386-mmx.dat: Regenerate.
2301         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2302         * regformats/i386/i386-mpx.dat: Regenerate.
2303         * regformats/i386/i386.dat: Regenerate.
2304         * regformats/i386/x32-avx-linux.dat: Regenerate.
2305         * regformats/i386/x32-avx.dat: Regenerate.
2306         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2307         * regformats/i386/x32-avx512.dat: Regenerate.
2308         * regformats/i386/x32-linux.dat: Regenerate.
2309         * regformats/i386/x32.dat: Regenerate.
2310         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2311         * regformats/mips-dsp-linux.dat: Regenerate.
2312         * regformats/mips-linux.dat: Regenerate.
2313         * regformats/mips64-dsp-linux.dat: Regenerate.
2314         * regformats/mips64-linux.dat: Regenerate.
2315         * regformats/nios2-linux.dat: Regenerate.
2316         * regformats/rs6000/powerpc-32.dat: Regenerate.
2317         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2318         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2319         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2320         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2321         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2322         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2323         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2324         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2325         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2326         * regformats/s390-linux32.dat: Regenerate.
2327         * regformats/s390-linux32v1.dat: Regenerate.
2328         * regformats/s390-linux32v2.dat: Regenerate.
2329         * regformats/s390-linux64.dat: Regenerate.
2330         * regformats/s390-linux64v1.dat: Regenerate.
2331         * regformats/s390-linux64v2.dat: Regenerate.
2332         * regformats/s390-te-linux64.dat: Regenerate.
2333         * regformats/s390x-linux64.dat: Regenerate.
2334         * regformats/s390x-linux64v1.dat: Regenerate.
2335         * regformats/s390x-linux64v2.dat: Regenerate.
2336         * regformats/s390x-te-linux64.dat: Regenerate.
2337         * regformats/tic6x-c62x-linux.dat: Regenerate.
2338         * regformats/tic6x-c62x.dat: Regenerate.
2339         * regformats/tic6x-c64x-linux.dat: Regenerate.
2340         * regformats/tic6x-c64x.dat: Regenerate.
2341         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2342         * regformats/tic6x-c64xp.dat: Regenerate.
2343
2344 2014-10-01  Pedro Alves  <palves@redhat.com>
2345
2346         * features/Makefile: Update comments.
2347         (XMLTOC): List all xml files we build C files from.
2348         (clean-cfiles): New rule.
2349
2350 2014-10-01  Pedro Alves  <palves@redhat.com>
2351
2352         * features/i386/amd64-avx512-linux.c: Regenerate.
2353         * features/i386/amd64-avx512.c: Regenerate.
2354         * features/i386/x32-avx512-linux.c: Regenerate.
2355         * features/i386/x32-avx512.c: Regenerate.
2356
2357 2014-10-01  Pedro Alves  <palves@redhat.com>
2358
2359         * features/Makefile (WHICH): Remove arm-with-m,
2360         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2361
2362 2014-10-01  Pedro Alves  <palves@redhat.com>
2363
2364         * features/Makefile (clean): New rule.
2365
2366 2014-10-01  Pedro Alves  <palves@redhat.com>
2367
2368         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2369         (zmm14h): Add missing end quotes.
2370
2371 2014-10-01  Pedro Alves  <palves@redhat.com>
2372
2373         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2374         * features/aarch64.c: Regenerate.
2375
2376 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2377
2378         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2379         code so as to work with follow_fork_inferior.
2380         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2381         (inf_ttrace_create_inferior): Remove reference to
2382         inf_ttrace_vfork_ppid.
2383         (inf_ttrace_attach): Ditto.
2384         (inf_ttrace_detach): Ditto.
2385         (inf_ttrace_kill): Use current_inferior instead of
2386         inf_ttrace_vfork_ppid.
2387         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2388         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2389         inferior away from the parent.
2390         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2391         target_follow_fork.
2392         (follow_fork_inferior): New function.
2393         (follow_inferior_reset_breakpoints): Make function static.
2394         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2395         * linux-nat.c (linux_child_follow_fork): Move target-independent
2396         code to infrun.c:follow_fork_inferior.
2397
2398 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2399
2400         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2401         * gdbarch.c: Regenerate.
2402         * gdbarch.h: Likewise.
2403         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2404         gdbarch method 'regset_from_core_section'.
2405         (get_core_register_section): Remove handling for the case that
2406         regset == NULL and regset_from_core_section is defined.
2407         (get_core_registers): Drop check for deleted method.
2408         * procfs.c (procfs_do_thread_registers): Adjust comment.
2409
2410 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2411
2412         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2413         (linux_nat_make_corefile_notes): Remove.
2414         (linux_target_install_ops): Do not set target method
2415         'make_corefile_notes'.
2416         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2417         Remove field.
2418         (linux_corefile_thread_callback): Instead of args->collect, call
2419         linux_collect_thread_registers.
2420         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2421         NULL unless there is a regset iterator.
2422         (linux_make_corefile_notes_1): Remove.
2423         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2424         by linux_make_corefile_notes.
2425         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2426
2427 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2428
2429         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2430         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2431         Remove.
2432         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2433
2434 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2435
2436         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2437         (xtensa_iterate_over_regset_sections): New.
2438         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2439
2440 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2441
2442         * vax-tdep.c (vax_regset_from_core_section): Remove.
2443         (vax_iterate_over_regset_sections): New.
2444         (vax_gdbarch_init): Adjust gdbarch initialization.
2445
2446 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2447
2448         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2449         (tilegx_regset_from_core_section): Remove.
2450         (tilegx_iterate_over_regset_sections): New.
2451         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2452
2453 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2454
2455         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2456         (sparc_iterate_over_regset_sections): New.
2457         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2458         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2459         targets.
2460         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2461         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2462         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2463         target method 'make_corefile_notes'.
2464
2465 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2466
2467         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2468         'sizeof_gregset' and 'sizeof_fpregset'.
2469         * sh-tdep.c (sh_regset_from_core_section): Remove.
2470         (sh_iterate_over_regset_sections): New.
2471         (sh_gdbarch_init): Adjust gdbarch initialization.
2472         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2473         sizeof_fpregset.
2474         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2475         'sizeof_gregset'.
2476
2477 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2478
2479         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2480         (score7_linux_iterate_over_regset_sections): New.
2481         (score_gdbarch_init): Adjust gdbarch initialization.
2482
2483 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2484
2485         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2486         FreeBSD targets.
2487         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2488         method 'make_corefile_notes'.
2489         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2490         (ppcfbsd_regset_from_core_section): Remove.
2491         (ppcfbsd_iterate_over_regset_sections): New.
2492         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2493         initialization.
2494         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2495         (ppcnbsd_iterate_over_regset_sections): New.
2496         (ppcnbsd_init_abi): Adjust.
2497         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2498         (ppcobsd_iterate_over_regset_sections): New.
2499         (ppcobsd_init_abi): Adjust.
2500         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2501         (rs6000_aix_iterate_over_regset_sections): New.
2502         (rs6000_aix_init_osabi): Adjust.
2503
2504 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2505
2506         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2507         (nios2_regset_from_core_section): Remove.
2508         (nios2_iterate_over_regset_sections): New.
2509         (nios2_linux_init_abi): Adjust gdbarch initialization.
2510
2511 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2512
2513         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2514         (am33_iterate_over_regset_sections): New.
2515         (am33_linux_init_osabi): Adjust gdbarch initialization.
2516
2517 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2518
2519         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2520         (mips_linux_iterate_over_regset_sections): New.
2521         (mips_linux_init_abi): Adjust gdbarch initialization.
2522         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2523         (mips64obsd_iterate_over_regset_sections): New.
2524         (mips64obsd_init_abi): Adjust.
2525         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2526         (mipsnbsd_iterate_over_regset_sections): New.
2527         (mipsnbsd_init_abi): Adjust.
2528
2529 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2530
2531         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2532         (m88k_iterate_over_regset_sections): New.
2533         (m88k_gdbarch_init): Adjust gdbarch initialization.
2534
2535 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2536
2537         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2538         (ia64_linux_iterate_over_regset_sections): New.
2539         (ia64_linux_init_abi): Adjust gdbarch initialization.
2540
2541 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2542
2543         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2544         (m68kbsd_iterate_over_regset_sections): New.
2545         (m68kbsd_init_abi): Adjust gdbarch initialization.
2546         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2547         (m68k_linux_iterate_over_regset_sections): New.
2548         (m68k_linux_init_abi): Adjust gdbarch initialization.
2549
2550 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2551
2552         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2553         (m32r_linux_regset_from_core_section): Remove.
2554         (m32r_linux_iterate_over_regset_sections): New.
2555         (m32r_linux_init_abi): Adjust gdbarch initialization.
2556
2557 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2558
2559         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2560         (amd64obsd_iterate_over_regset_sections): New.
2561         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2562         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2563         Remove.
2564         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2565         regset_from_core_section initialization.
2566         * i386-tdep.c (i386_regset_from_core_section): Remove.
2567         (i386_iterate_over_regset_sections): New.
2568         (i386_gdbarch_init): Adjust gdbarch initialization.
2569         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2570         (i386_iterate_over_regset_sections): New prototype.
2571         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2572         Remove.
2573         (i386obsd_aout_iterate_over_regset_sections): New.
2574         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2575         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2576         targets.
2577         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2578         (amd64fbsd_init_abi): Call fbsd_init_abi.
2579         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2580         (i386fbsd4_init_abi): Call fbsd_init_abi.
2581         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2582         target method 'make_corefile_notes'.
2583         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2584
2585 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2586
2587         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2588         (hppa_hpux_iterate_over_regset_sections): New.
2589         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2590         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2591         (hppa_linux_iterate_over_regset_sections): New.
2592         (hppa_linux_init_abi): Adjust.
2593         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2594         (hppanbsd_iterate_over_regset_sections): New.
2595         (hppanbsd_init_abi): Adjust.
2596         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2597         (hppaobsd_iterate_over_regset_sections): New.
2598         (hppaobsd_init_abi): Adjust.
2599
2600 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2601
2602         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2603         (frv_linux_iterate_over_regset_sections): New.
2604         (frv_linux_init_abi): Adjust gdbarch initialization.
2605
2606 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2607
2608         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2609         (armbsd_iterate_over_regset_sections): New prototype.
2610         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2611         (armbsd_iterate_over_regset_sections): New.
2612         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2613         initialization.
2614
2615 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2616
2617         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2618         (alpha_linux_iterate_over_regset_sections): New.
2619         (alpha_linux_init_abi): Adjust gdbarch initialization.
2620         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2621         prototype.
2622         (alphanbsd_iterate_over_regset_sections): New prototype.
2623
2624 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2625
2626         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2627         Remove.
2628         (aarch64_linux_iterate_over_regset_sections): New.
2629         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2630
2631 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2632
2633         * fbsd-tdep.c: New file.
2634         * fbsd-tdep.h: New file.
2635         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2636         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2637         (ALLDEPFILES): Add fbsd-tdep.c.
2638
2639 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2640
2641         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2642         parameter.
2643         * gdbarch.h: Regenerate.
2644         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2645         iterator.
2646         (get_core_register_section): Add parameter 'regset' and use it, if
2647         set.  Add parameter 'min_size' and verify the bfd section size
2648         against it.
2649         (get_core_registers_cb): Add parameter 'regset' and pass it to
2650         get_core_register section.  For the "standard" register sections
2651         ".reg" and ".reg2", set an appropriate default for human_name.
2652         (get_core_registers): Don't abort when the gdbarch has an iterator
2653         but no regset_from_core_section.  Add NULL/0 for parameters
2654         'regset'/'min_size' in calls to get_core_register_section.
2655         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2656         'regset' and use it instead of calling the
2657         regset_from_core_section gdbarch method.
2658         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2659         * i386-tdep.c (i386_supply_xstateregset)
2660         (i386_collect_xstateregset, i386_xstateregset): Moved to
2661         i386-linux-tdep.c.
2662         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2663         .reg-xstate.
2664         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2665         core file support only if the regset iterator hasn't been set.
2666         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2667         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2668         Moved from i386-tdep.c and renamed to *_linux*.
2669         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2670         each callback invocation.  Allow any .reg-xstate size when reading
2671         from a core file.
2672         * amd64-tdep.c (amd64_supply_xstateregset)
2673         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2674         amd64-linux-tdep.c.
2675         (amd64_regset_from_core_section): Remove.
2676         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2677         install an amd64-specific regset_from_core_section gdbarch method.
2678         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2679         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2680         Moved from amd64-tdep.c and renamed to *_linux*.
2681         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2682         to each callback invocation.  Allow any .reg-xstate size when
2683         reading from a core file.
2684         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2685         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2686         each callback invocation.
2687         (arm_linux_init_abi): No longer set the regset_from_core_section
2688         gdbarch method.
2689         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2690         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2691         each callback invocation.
2692         (ppc_linux_init_abi): No longer set the regset_from_core_section
2693         gdbarch method.
2694         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2695         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2696         (s390_regset_from_core_section): Remove.
2697         (s390_iterate_over_regset_sections): Add regset parameter to each
2698         callback invocation.
2699         (s390_gdbarch_init): No longer set the regset_from_core_section
2700         gdbarch method.  Drop initialization of deleted tdep fields.
2701
2702 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2703
2704         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2705         (amd64_linux_iterate_over_regset_sections): New.
2706         (amd64_linux_init_abi_common): Don't install the regset section
2707         list, but the new iterator in gdbarch.
2708         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2709         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2710         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2711         (arm_linux_init_abi): Set iterator instead of section list.
2712         * corelow.c (get_core_registers_cb): New function, logic moved
2713         from...
2714         (get_core_registers): ...loop body here.  Use new iterator method
2715         instead of walking through the regset section list.
2716         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2717         'iterate_over_regset_sections'.  New typedef
2718         'iterate_over_regset_sections_cb'.
2719         * gdbarch.c: Regenerate.
2720         * gdbarch.h: Likewise.
2721         * i386-linux-tdep.c (i386_linux_regset_sections)
2722         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2723         Remove.
2724         (i386_linux_iterate_over_regset_sections): New.
2725         (i386_linux_init_abi): Don't choose a regset section list, but
2726         install new iterator in gdbarch.
2727         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2728         (linux_collect_regset_section_cb): New function, logic moved
2729         from...
2730         (linux_collect_thread_registers): ...loop body here.  Use iterator
2731         method instead of walking through list.
2732         (linux_make_corefile_notes_1): Check for presence of iterator
2733         method instead of regset section list.
2734         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2735         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2736         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2737         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2738         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2739         (ppc_linux_init_abi): Don't choose from above regset section
2740         lists, but install new iterator in gdbarch.
2741         * regset.h (struct core_regset_section): Remove.
2742         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2743         have_linux_v1, have_linux_v2, and have_tdb.
2744         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2745         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2746         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2747         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2748         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2749         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2750         new tdep fields.
2751         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2752         regset section lists, but install new iterator.
2753
2754 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2755
2756         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2757
2758 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2759
2760         * progspace.c (print_program_space): Don't prune program spaces
2761         before printing them.
2762
2763 2014-09-25  Pedro Alves  <palves@redhat.com>
2764
2765         * infrun.c (user_visible_resume_ptid): Don't check
2766         singlestep_breakpoints_inserted_p.
2767
2768 2014-09-25  Pedro Alves  <palves@redhat.com>
2769
2770         * breakpoint.c (should_be_inserted): Add debug output.
2771
2772 2014-09-25  Pedro Alves  <palves@redhat.com>
2773
2774         * infrun.c (stepping_past_instruction_at)
2775         (clear_exit_convenience_vars): Point at infrun.h instead of
2776         inferior.h.
2777         (handle_signal_stop): Fix typo.
2778
2779 2014-09-24  Yao Qi  <yao@codesourcery.com>
2780
2781         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2782         bitmask.
2783
2784 2014-09-22  Gary Benson  <gbenson@redhat.com>
2785
2786         * target.c (target_stop): Updated comment.
2787
2788 2014-09-22  Gary Benson  <gbenson@redhat.com>
2789
2790         * target/target.h (target_stop_ptid): Renamed as...
2791         (target_stop_and_wait): New function.  Updated comment.
2792         All uses updated.
2793         (target_continue_ptid): Renamed as...
2794         (target_continue_no_signal): New function.  Updated comment.
2795         All uses updated.
2796
2797 2014-09-22  Pedro Alves  <palves@redhat.com>
2798
2799         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2800         and "auto" merged.
2801         * breakpoint.c (enum ugll_insert_mode): New enum.
2802         (always_inserted_mode): Now a plain boolean.
2803         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2804         (breakpoints_always_inserted_mode): Delete.
2805         (breakpoints_should_be_inserted_now): New function.
2806         (insert_breakpoints): Pass UGLL_INSERT to
2807         update_global_location_list instead of calling
2808         insert_breakpoint_locations manually.
2809         (create_solib_event_breakpoint_1): New, factored out from ...
2810         (create_solib_event_breakpoint): ... this.
2811         (create_and_insert_solib_event_breakpoint): Use
2812         create_solib_event_breakpoint_1 instead of calling
2813         insert_breakpoint_locations manually.
2814         (update_global_location_list): Change parameter type from boolean
2815         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2816         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2817         (update_global_location_list_nothrow): Change parameter type from
2818         boolean to enum ugll_insert_mode.
2819         (_initialize_breakpoint): "breakpoint always-inserted" option is
2820         now a boolean command.  Update help text.
2821         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2822         (breakpoints_should_be_inserted_now): New declaration.
2823         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2824         Remove breakpoints_always_inserted_mode check.
2825         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2826         * remote.c (remote_start_remote): Likewise.
2827
2828 2014-09-22  Pedro Alves  <palves@redhat.com>
2829
2830         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2831         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2832         Instead, pass UGLL_INSERT to update_global_location_list.
2833         (update_global_location_list): Change parameter type from boolean
2834         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2835         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2836         (create_solib_event_breakpoint_1): New, factored out from ...
2837         (create_solib_event_breakpoint): ... this.
2838         (create_and_insert_solib_event_breakpoint): Use
2839         create_solib_event_breakpoint_1 instead of calling
2840         insert_breakpoint_locations manually.
2841         (update_global_location_list): Handle UGLL_INSERT.
2842
2843 2014-09-22  Pedro Alves  <palves@redhat.com>
2844
2845         * breakpoint.c (enum ugll_insert_mode): New enum.
2846         (update_global_location_list)
2847         (update_global_location_list_nothrow): Change parameter type from
2848         boolean to enum ugll_insert_mode.  All callers adjusted.
2849
2850 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2851
2852         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2853         SystemTap support in GDB.
2854
2855 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2856
2857         * linux-nat.c (linux_handle_extended_wait): Call
2858         linux_ptrace_get_extended_event.
2859         (wait_lwp): Call linux_is_extended_waitstatus.
2860         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2861         and linux_is_extended_waitstatus.
2862         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2863         linux_ptrace_get_extended_event.
2864         (linux_ptrace_get_extended_event): New function.
2865         (linux_is_extended_waitstatus): New function.
2866         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2867         (linux_is_extended_waitstatus): New declarations.
2868
2869 2014-09-19  Yao Qi  <yao@codesourcery.com>
2870
2871         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2872         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2873         comments.  Callers update.
2874         (dwarf_decode_lines): Likewise.
2875         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2876         comments.  Skip the line table if  'lowpc' is greater than
2877         'address'.  Don't check
2878         dwarf2_per_objfile->has_section_at_zero.
2879
2880 2014-09-18  Doug Evans  <dje@google.com>
2881
2882         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2883         * python/py-symtab.c (stpy_get_producer): New function.
2884         (symtab_object_getset): Add "producer" attribute.
2885
2886 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2887
2888         PR gdb/17384
2889         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2890         (do_captured_read_memory_integer): Remove.
2891         (safe_read_memory_integer): Use target_read_memory directly instead
2892         of catching errors in do_captured_read_memory_integer.
2893
2894 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2895
2896         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2897         not gdb/doc.
2898
2899 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2900
2901         * objc-lang.c (find_implementation_from_class): Remove dead code.
2902
2903 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2904
2905         PR cli/7233
2906         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2907         "fprintf_unfiltered (gdb_stdlog...)".
2908
2909 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2910
2911         PR breakpoints/12526
2912         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2913         val_bitsize.
2914         * breakpoint.c (watch_command_1): Use these fields to retain
2915         bitfield information.
2916         (extract_bitfield_from_watchpoint_value): New function.
2917         (watchpoint_check): Use it.
2918         (update_watchpoint): Use it.  Optimize the address and length of a
2919         HW watchpoint pointing to a bitfield.
2920         * value.h (unpack_value_bitfield): New prototype.
2921         * value.c (unpack_value_bitfield): Make extern.
2922
2923 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2924
2925         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2926         x86-dregs.o.
2927         * gnu-nat.c (inf_threads): New function.
2928         * gnu-nat.h (inf_threads_ftype): New typedef.
2929         (inf_threads): New declaration.
2930         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2931         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2932         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2933         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2934         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2935         (i386_gnu_dr_get_control): New functions.
2936         (reg_addr): New structure.
2937         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2938         i386 debugging register hooks.
2939         * NEWS: Mention this.
2940
2941 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2942
2943         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2944         vector data transfer instructions.
2945         (arm_record_coproc_data_proc): Updated.
2946
2947 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2948
2949         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2950         arm_record_exreg_ld_st_insn.
2951         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2952         load/store insns.
2953
2954 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2955
2956         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2957         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2958         processing instructions.
2959
2960 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2961
2962         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2963         for advance SIMD struct ld/st insn.
2964         (thumb2_record_decode_insn_handler): Replace stub handler with
2965         thumb2_record_asimd_struct_ld_st.
2966
2967 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2968
2969         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2970         for asimd, vfp and coprocessor insns.
2971         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2972         and coprocessor insns.
2973         (thumb2_record_coproc_insn): New function.
2974         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2975         handlers.
2976         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2977         opcode 110 insns.
2978
2979 2014-09-13  Doug Evans  <xdje42@gmail.com>
2980
2981         * NEWS: Mention new "queue-signal" command.
2982         * infcmd.c (queue_signal_command): New function.
2983         (_initialize_infcmd): Add new queue-signal command.
2984
2985 2014-09-13  Doug Evans  <xdje42@gmail.com>
2986
2987         * linux-nat.c (wait_lwp): Add debugging printf.
2988         (linux_nat_wait_1): Ditto.
2989
2990 2014-09-12  Pedro Alves  <palves@redhat.com>
2991
2992         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2993         (create_and_insert_solib_event_breakpoint): New functions.
2994         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2995         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2996         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2997         (remove_dbx_link_breakpoint): Delete function.
2998         (insert_dbx_link_bpt_in_file): Use
2999         create_and_insert_solib_event_breakpoint instead of
3000         deprecated_insert_raw_breakpoint.
3001         (procfs_wait): Don't check whether we hit __dbx_link here.
3002         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3003         here.
3004         * solib-irix.c (base_breakpoint): Delete global.
3005         (disable_break): Delete function.
3006         (enable_break): Use create_solib_event_breakpoint
3007         instead of deprecated_insert_raw_breakpoint.
3008         (irix_solib_handle_event): New function.
3009         (irix_solib_create_inferior_hook): Don't run the target or disable
3010         the mapping-complete breakpoint here.
3011         (_initialize_irix_solib): Install irix_solib_handle_event as
3012         so_ops->handle_event hook.
3013
3014 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3015             Ulrich Weigand  <uweigand@de.ibm.com>
3016
3017         PR tdep/17379
3018         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3019         instead of read_memory_unsigned_integer.
3020
3021 2014-09-12  Gary Benson  <gbenson@redhat.com>
3022
3023         * nat/linux-waitpid.c: Include common-defs.h.
3024         [GDBSERVER]: Add FIXME comment.
3025         [!GDBSERVER]: Don't include defs.h or signal.h.
3026         (linux_debug) [!GDBSERVER]: Remove empty block.
3027
3028 2014-09-12  Gary Benson  <gbenson@redhat.com>
3029
3030         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3031         Don't include defs.h or server.h.
3032
3033 2014-09-12  Gary Benson  <gbenson@redhat.com>
3034
3035         * nat/linux-btrace.c: Include common-defs.h.
3036         Don't include defs.h, server.h or gdbthread.h.
3037         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3038
3039 2014-09-12  Gary Benson  <gbenson@redhat.com>
3040
3041         * common/agent.c: Include common-defs.h.
3042         Don't include defs.h or server.h.
3043         * common/buffer.c: Likewise.
3044         * common/common-debug.c: Likewise.
3045         * common/common-utils.c: Likewise.
3046         * common/errors.c: Likewise.
3047         * common/filestuff.c: Likewise.
3048         * common/format.c: Likewise.
3049         * common/gdb_vecs.c: Likewise.
3050         * common/print-utils.c: Likewise.
3051         * common/ptid.c: Likewise.
3052         * common/rsp-low.c: Likewise.
3053         * common/signals.c: Likewise.
3054         * common/vec.c: Likewise.
3055         * common/xml-utils.c: Likewise.
3056         * nat/linux-osdata.c: Likewise.
3057         * nat/linux-procfs.c: Likewise.
3058         * nat/linux-ptrace.c: Likewise.
3059         * nat/mips-linux-watch.c: Likewise.
3060         * target/waitstatus.c: Likewise.
3061
3062 2014-09-12  Tom Tromey  <tromey@redhat.com>
3063             Gary Benson  <gbenson@redhat.com>
3064
3065         * common/common-regcache.h: New file.
3066         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3067         * regcache.h: Include common-regcache.h.
3068         (regcache_read_pc): Don't declare.
3069         * regcache.c (get_thread_regcache_for_ptid): New function.
3070         * nat/linux-btrace.c: Don't include regcache.h.
3071         Include common-regcache.h.
3072         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3073
3074 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3075
3076         * regcache.h (struct regset): Declare.
3077
3078 2014-09-11  Pedro Alves  <palves@redhat.com>
3079
3080         PR gdb/17347
3081         * main.c: Include "infrun.h".
3082         (catch_command_errors, catch_command_errors_const): Wait for the
3083         foreground command to complete.
3084         * top.c (maybe_wait_sync_command_done): New function, factored out
3085         from ...
3086         (maybe_wait_sync_command_done): ... here.
3087         * top.h (maybe_wait_sync_command_done): New declaration.
3088
3089 2014-09-11  Tom Tromey  <tromey@redhat.com>
3090             Gary Benson  <gbenson@redhat.com>
3091
3092         * common/symbol.h: New file.
3093         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3094         * minsyms.c (find_minimal_symbol_address): New function.
3095         * common/agent.c: Include common/symbol.h.
3096         [!GDBSERVER]: Don't include objfiles.h.
3097         (agent_look_up_symbols): Use find_minimal_symbol_address.
3098
3099 2014-09-11  Gary Benson  <gbenson@redhat.com>
3100
3101         * target/target.h (target_stop_ptid, target_continue_ptid):
3102         Declare.
3103         * target.c (target_stop_ptid, target_continue_ptid): New
3104         functions.
3105         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3106         (agent_run_command): Always use target_stop_ptid and
3107         target_continue_ptid.
3108
3109 2014-09-11  Tom Tromey  <tromey@redhat.com>
3110             Gary Benson  <gbenson@redhat.com>
3111
3112         * target/target.h: New file.
3113         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3114         * target.h: Include target/target.h.
3115         (target_read_memory, target_write_memory): Don't declare.
3116         * target.c (target_read_uint32): New function.
3117         * common/agent.c: Include target/target.h.
3118         [!GDBSERVER]: Don't include target.h.
3119         (helper_thread_id): Type changed to uint32_t.
3120         (agent_get_helper_thread_id): Use target_read_uint32.
3121         (agent_run_command): Always use target_read_memory and
3122         target_write_memory.
3123         (agent_capability): Type changed to uint32_t.
3124         (agent_capability_check): Use target_read_uint32.
3125
3126 2014-09-11  Gary Benson  <gbenson@redhat.com>
3127
3128         * common/common-debug.h (show_debug_regs): Declare.
3129         * common/common-debug.c (show_debug_regs): Define.
3130         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3131         all uses with show_debug_regs.  Replace all uses that considered
3132         debug_hw_points as a multi-value integer with straight boolean
3133         uses.
3134         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3135         with show_debug_regs.
3136         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3137         all uses with show_debug_regs.
3138         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3139         uses with show_debug_regs.
3140
3141 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3142
3143         * findvar.c (address_from_register): Handle targets requiring
3144         a special conversion routine even for plain pointer types.
3145
3146 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3147
3148         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3149         (store_register): Do not call exec_one_dummy_insn.
3150
3151 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3152
3153         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3154         dereference it first.  Use value_enclosing_type instead of
3155         value_type.
3156         (ada_array_length): Likewise.
3157
3158 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3159
3160         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3161         Adjust function implementation and documentation accordingly.
3162         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3163         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3164         Update call to ada_value_ptr_subscript.
3165
3166 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3167
3168         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3169         instead of VAL's type.
3170
3171 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3172
3173         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3174
3175 2014-09-09  Doug Evans  <xdje42@gmail.com>
3176
3177         PR guile/17367
3178         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3179         last parameter to pkg-config, not first.
3180         * configure.ac: Pass --with-guile provided pkg-config path to
3181         GDB_GUILE_PROGRAM_NAMES.
3182         * configure: Regenerate.
3183
3184 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3185
3186         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3187         Bertazi".
3188
3189 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3190
3191         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3192         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3193         the list of sections determining GDB_OSABI_IRIX.
3194
3195 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3196
3197         * MAINTAINERS (Write After Approval): Add "James Hogan".
3198
3199 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3200
3201         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3202
3203 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3204
3205         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3206
3207 2014-09-08  Doug Evans  <xdje42@gmail.com>
3208
3209         PR 17247
3210         * guile.c: #include <signal.h>.
3211         (_initialize_guile): Block SIGCHLD while initializing Guile.
3212
3213         Replaces the following, which is reverted.
3214
3215         2014-07-26  Doug Evans  <xdje42@gmail.com>
3216
3217         PR 17185
3218         * configure.ac: Add check for header gc/gc.h.
3219         Add check for function setenv.
3220         * configure: Regenerate.
3221         * config.in: Regenerate.
3222         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3223
3224 2014-09-08  Doug Evans  <xdje42@gmail.com>
3225
3226         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3227         with named constant.  Fix style of pointer comparison.
3228         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3229
3230 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3231
3232         PR gdb/17035
3233         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3234         decide whether we display the command on "show user".
3235         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3236         printing command name.
3237         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3238         * cli/cli-decode.c (cli_user_command_p): Create helper function
3239         to verify whether cmd_list_element is a user-defined command.
3240
3241 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3242
3243         PR python/17355
3244         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3245         Fix goto out of TRY_CATCH.
3246
3247 2014-09-06  Doug Evans  <xdje42@gmail.com>
3248             Tom Tromey  <tromey@redhat.com>
3249
3250         PR 15276
3251         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3252         $_any_caller_matches.
3253         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3254         * python/lib/gdb/function/caller_is.py: New file.
3255
3256 2014-09-06  Doug Evans  <xdje42@gmail.com>
3257
3258         * infcmd.c (program_info): Fix typo.
3259
3260 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3261
3262         PR gdb/17235
3263         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3264         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3265         subexpressions on SDT probes.
3266
3267 2014-09-04  Pedro Alves  <palves@redhat.com>
3268
3269         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3270         the input is only one character long.
3271
3272 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3273
3274         PR fortran/17237
3275         * f-valprint.c (f_val_print): Specify the correct print option to
3276         use when printing integer values.
3277
3278 2014-09-04  Gary Benson  <gbenson@redhat.com>
3279
3280         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3281         Remove code to cope with LWPs wrapped as PIDs.
3282         Add assertions to ensure no wrapped LWPs are passed.
3283
3284 2014-09-04  Pedro Alves  <palves@redhat.com>
3285
3286         * value.c (value_ranges_copy_adjusted): New function, factored out
3287         from ...
3288         (value_contents_copy_raw): ... here.
3289         (unpack_value_bits_as_long_1): Rename back to ...
3290         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3291         'result' parameters.  Change return type to LONGEST.
3292         (unpack_value_bits_as_long): Delete.
3293         (unpack_value_field_as_long_1): Delete.
3294         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3295         (unpack_value_bitfield): New function.
3296         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3297         (value_fetch_lazy): Use unpack_value_bitfield.
3298         * value.h (unpack_value_bits_as_long): Delete declaration.
3299
3300 2014-09-03  Sasha Smundak  <asmundak@google.com>
3301
3302         * python/py-frame.c (frapy_read_register): New function.
3303
3304 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3305
3306         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3307         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3308
3309 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3310
3311         PR python/16699
3312         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3313         function.
3314         (add_cmd): Set "completer_handle_brkchars" to NULL.
3315         * cli/cli-decode.h (struct cmd_list_element)
3316         <completer_handle_brkchars>: New field.
3317         * command.h (completer_ftype_void): New typedef.
3318         (set_cmd_completer_handle_brkchars): New prototype.
3319         * completer.c (set_gdb_completion_word_break_characters): New
3320         function.
3321         (complete_line_internal): Call "completer_handle_brkchars"
3322         callback from command.
3323         * completer.h: Include "command.h".
3324         (set_gdb_completion_word_break_characters): New prototype.
3325         * python/py-cmd.c (cmdpy_completer_helper): New function.
3326         (cmdpy_completer_handle_brkchars): New function.
3327         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3328         (cmdpy_init): Set completer_handle_brkchars to
3329         cmdpy_completer_handle_brkchars.
3330
3331 2014-09-03  Gary Benson  <gbenson@redhat.com>
3332
3333         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3334         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3335         Loop conditions changed to equivalent form.
3336         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3337         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3338         ALL_DEBUG_ADDRESS_REGISTERS.
3339
3340 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3341
3342         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3343         description fix.
3344
3345 2014-09-02  Doug Evans  <dje@google.com>
3346
3347         * typeprint.c (find_global_typedef): Fix comment.
3348
3349 2014-09-02  Gary Benson  <gbenson@redhat.com>
3350
3351         * i386-nat.h: Renamed as...
3352         * x86-nat.h: New file.  All type, function and variable name
3353         prefixes changed from "i386_" to "x86_".  All references updated.
3354         * i386-nat.c: Renamed as...
3355         * x86-nat.c: New file.  All type, function and variable name
3356         prefixes changed from "i386_" to "x86_".  All references updated.
3357         * common/i386-xstate.h: Renamed as...
3358         * common/x86-xstate.h: New file.  All type, function and variable
3359         name prefixes changed from "i386_" to "x86_".  All references
3360         updated.
3361         * nat/i386-cpuid.h: Renamed as...
3362         * nat/x86-cpuid.h: New file.  All type, function and variable name
3363         prefixes changed from "i386_" to "x86_".  All references updated.
3364         * nat/i386-gcc-cpuid.h: Renamed as...
3365         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3366         name prefixes changed from "i386_" to "x86_".  All references
3367         updated.
3368         * nat/i386-dregs.h: Renamed as...
3369         * nat/x86-dregs.h: New file.  All type, function and variable name
3370         prefixes changed from "i386_" to "x86_".  All references updated.
3371         * nat/i386-dregs.c: Renamed as...
3372         * nat/x86-dregs.c: New file.  All type, function and variable name
3373         prefixes changed from "i386_" to "x86_".  All references updated.
3374
3375 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3376
3377         * varobj.c (_initialize_varobj): Move to the end of file.
3378
3379 2014-08-29  Gary Benson  <gbenson@redhat.com>
3380
3381         * common/common-exceptions.h: New file.
3382         * common/common-exceptions.c: Likewise.
3383         * Makefile.in (SFILES): Add common/common-exceptions.c.
3384         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3385         (COMMON_OBS): Add common-exceptions.o.
3386         (common-exceptions.o): New rule.
3387         * exceptions.h (common-exceptions.h): Include.
3388         (gdb_setjmp.h): Do not include.
3389         (return_reason): Moved to common-exceptions.h.
3390         (enum return_reason): Likewise.
3391         (RETURN_MASK): Likewise.
3392         (typedef return_mask): Likewise.
3393         (enum errors): Likewise.
3394         (struct gdb_exception): Likewise.
3395         (exceptions_state_mc_init): Likewise.
3396         (exceptions_state_mc_action_iter): Likewise.
3397         (exceptions_state_mc_action_iter_1): Likewise.
3398         (TRY_CATCH): Likewise.
3399         (throw_exception): Likewise.
3400         (throw_verror): Likewise.
3401         (throw_vquit): Likewise.
3402         (throw_error): Likewise.
3403         (throw_quit): Likewise.
3404         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3405         (enum catcher_action): Likewise.
3406         (struct catcher): Likewise.
3407         (current_catcher): Likewise.
3408         (catcher_list_size): Likewise.
3409         (exceptions_state_mc_init): Likewise.
3410         (catcher_pop): Likewise.
3411         (exceptions_state_mc): Likewise.
3412         (exceptions_state_mc_action_iter): Likewise.
3413         (exceptions_state_mc_action_iter_1): Likewise.
3414         (throw_exception): Likewise.
3415         (exception_messages): Likewise.
3416         (exception_messages_size): Likewise.
3417         (throw_it): Likewise.
3418         (throw_verror): Likewise.
3419         (throw_vquit): Likewise.
3420         (throw_error): Likewise.
3421         (throw_quit): Likewise.
3422         (prepare_to_throw_exception): New function.
3423
3424 2014-08-29  Gary Benson  <gbenson@redhat.com>
3425
3426         * common/gdb_setjmp.h: New file.
3427         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3428         * configure.ac: Move sigsetjmp check...
3429         * common/common.m4: ...here.
3430         * configure: Regenerate.
3431         * cp-support.c (SIGJMP_BUF): Delete.
3432         (SIGSETJMP): Likewise.
3433         (SIGLONGJMP): Likewise.
3434         * exceptions.h (gdb_setjmp.h): Include.
3435         (setjmp.h): Do not include.
3436         (EXCEPTIONS_SIGJMP_BUF): Delete.
3437         (EXCEPTIONS_SIGSETJMP): Likewise.
3438         (EXCEPTIONS_SIGLONGJMP): Likewise.
3439         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3440         from gdb_setjmp.h.
3441         * exceptions.c: Likewise.
3442
3443 2014-08-29  Gary Benson  <gbenson@redhat.com>
3444
3445         * cleanups.h: Moved to...
3446         * common/cleanups.h: New file.
3447         * cleanups.c: Moved to...
3448         * common/cleanups.c: New file.  Include common-defs.h and
3449         cleanups.h.  Do not include defs.h.
3450         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3451         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3452         (cleanups.o): New rule.
3453
3454 2014-08-29  Gary Benson  <gbenson@redhat.com>
3455
3456         * common/errors.h (internal_warning): New declaration.
3457         (internal_vwarning): Likewise.
3458         * common/errors.c (internal_warning): New function.
3459         * utils.h (internal_warning): Don't declare.
3460         (internal_vwarning): Likewise.
3461         * utils.c (internal_warning): Removed.
3462
3463 2014-08-29  Gary Benson  <gbenson@redhat.com>
3464
3465         * main.c (captured_main): Use warning during startup.
3466         Prefix startup warning messages with command name.
3467
3468 2014-08-29  Gary Benson  <gbenson@redhat.com>
3469
3470         * main.c (captured_main): Handle usage errors with error.
3471
3472 2014-08-29  Gary Benson  <gbenson@redhat.com>
3473
3474         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3475         exit pair with a call to error.  Wrap the message with _().
3476
3477 2014-08-29  Gary Benson  <gbenson@redhat.com>
3478
3479         * main.c (captured_main): Replace a fprintf/exit
3480         pair with a call to error.  Wrap the message with _().
3481
3482 2014-08-29  Gary Benson  <gbenson@redhat.com>
3483
3484         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3485         pairs with calls to error.  Wrap the message with _().
3486
3487 2014-08-29  Gary Benson  <gbenson@redhat.com>
3488
3489         * utils.c (vwarning): Protect calls to target_terminal_ours
3490         and wrap_here.
3491
3492 2014-08-29  Gary Benson  <gbenson@redhat.com>
3493
3494         * exceptions.c (print_flush): Protect calls to
3495         target_terminal_ours and wrap_here.
3496
3497 2014-08-29  Gary Benson  <gbenson@redhat.com>
3498
3499         * utils.h (filtered_printing_initialized): New declaration.
3500         * utils.c (abort_with_message): New function.
3501         (internal_vproblem): Use abort_with_message for first level
3502         recursive internal problems, and if gdb_stderr is not set up.
3503         Protect calls to target_terminal_ours, begin_line and query.
3504
3505 2014-08-28  Doug Evans  <dje@google.com>
3506
3507         * symtab.c (in_prologue): Move definition to better spot.
3508         (skip_prologue_using_sal): Ditto.
3509
3510 2014-08-28  Doug Evans  <dje@google.com>
3511
3512         * symtab.c (find_function_start_sal): Move definition to better spot.
3513
3514 2014-08-28  Yao Qi  <yao@codesourcery.com>
3515
3516         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3517         found_stack_adjust in forward scan.  Remove condition check
3518         on found_stack_adjust which is always true.  Indent the code.
3519
3520 2014-08-28  Yao Qi  <yao@codesourcery.com>
3521
3522         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3523         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3524         (dwarf_decode_lines): Remove argument
3525         want_line_info.  Remove condition check on want_line_info.
3526         Callers update.
3527
3528 2014-08-27  Doug Evans  <dje@google.com>
3529
3530         * dwarf2read.c (dwarf_record_line): Fix typo.
3531
3532 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3533
3534         * target.h (struct target_ops::to_terminal_save_ours): Remove
3535         declaration.
3536         (target_terminal_save_ours): Remove macro.
3537         * target-delegates.c: Regenerate.
3538         * inf-child.c (inf_child_target): Don't set the nonexistent
3539         field to_terminal_save_ours.
3540         * inferior.h (child_terminal_save_ours): Remove declaration.
3541         * terminal.h (gdb_save_tty_state): New declaration.
3542         * inflow.c (child_terminal_save_ours): Rename to ...
3543         (gdb_save_tty_state): ... this.
3544         * tui/tui.c: Include terminal.h.
3545         (tui_enable): Use gdb_save_tty_state instead of
3546         target_terminal_save_ours.
3547         (tui_disable): Likewise.
3548
3549 2014-08-25  Doug Evans  <dje@google.com>
3550
3551         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3552         Pass NULL instead of 0 for context pointer.
3553
3554 2014-08-25  Yao Qi  <yao@codesourcery.com>
3555
3556         * dwarf2read.c: Fix grammatical error.
3557
3558 2014-08-24  Yao Qi  <yao@codesourcery.com>
3559
3560         * dwarf2read.c (scan_partial_symbols):  Update comments.
3561         Rename argument 'need_pc' with 'set_addrmap'.
3562         (add_partial_namespace): Rename argument 'need_pc' with
3563         'set_addrmap'.
3564         (add_partial_module): Likewise.
3565         (add_partial_subprogram): Likewise.  Update comments.
3566         (dwarf2_name): Fix typo.
3567
3568 2014-08-22  Doug Evans  <dje@google.com>
3569
3570         PR 17276
3571         * dwarf2read.c (dwarf_record_line_p): New function.
3572         (dwarf_decode_lines_1): Ignore subsequent line number entries
3573         for the same line if any entry had a non-zero discriminator.
3574
3575 2014-08-22  Doug Evans  <dje@google.com>
3576
3577         * buildsym.h (record_line_ftype): New typedef.
3578         (record_line): Use it.
3579         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3580         (dwarf_decode_lines_1): Call them.
3581
3582 2014-08-22  Yao Qi  <yao@codesourcery.com>
3583
3584         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3585         (ctf_end): Remove code.
3586
3587 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3588
3589         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3590         (linux_make_corefile_notes): call update_thread_list, protected against
3591         exceptions.
3592
3593 2014-08-21  Pedro Alves  <palves@redhat.com>
3594
3595         * infcmd.c (attach_command): Remove comment.
3596
3597 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3598
3599         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3600         unsigned LONGEST to ULONGEST.
3601
3602 2014-08-20  Pedro Alves  <palves@redhat.com>
3603
3604         * Makefile.in (check-read1): New rule.
3605
3606 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3607
3608         * value.c (value_from_contents_and_address): Strip resolved_type's
3609         typedef layers before checking its TYPE_DATA_LOCATION.
3610
3611 2014-08-20  Pedro Alves  <palves@redhat.com>
3612
3613         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3614
3615 2014-08-20  Yao Qi  <yao@codesourcery.com>
3616
3617         * amd64-tdep.c (amd64_classify): Add a blank line after the
3618         example.  Move "*/" to a new line.
3619         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3620         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3621         * dwarf2read.c (psymtab_include_file_name): Likewise.
3622
3623 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3624             Pedro Alves  <palves@redhat.com>
3625
3626         PR symtab/14604
3627         PR symtab/14605
3628         * ada-lang.c (coerce_unspec_val_to_type): Use
3629         value_contents_copy_raw.
3630         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3631         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3632         * cp-valprint.c (cp_print_value_fields): Let the common printing
3633         code handle optimized out values.
3634         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3635         * d-valprint.c (dynamic_array_type): Use
3636         value_bits_any_optimized_out.
3637         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3638         check_any_valid fields.
3639         (check_pieced_value_bits): Delete and inline ...
3640         (check_pieced_synthetic_pointer): ... here.
3641         (check_pieced_value_validity): Delete.
3642         (check_pieced_value_invalid): Delete.
3643         (pieced_value_funcs): Remove check_validity and check_any_valid
3644         fields.
3645         (read_pieced_value): Use mark_value_bits_optimized_out.
3646         (write_pieced_value): Switch to use
3647         mark_value_bytes_optimized_out.
3648         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3649         of assuming the whole value is optimized out.
3650         * findvar.c (read_frame_register_value): Remove special handling
3651         of optimized out registers.
3652         (value_from_register): Use mark_value_bytes_optimized_out.
3653         * frame-unwind.c (frame_unwind_got_optimized): Use
3654         mark_value_bytes_optimized_out.
3655         * jv-valprint.c (java_value_print): Adjust.
3656         (java_print_value_fields): Let the common printing code handle
3657         optimized out values.
3658         * mips-tdep.c (mips_print_register): Remove special handling of
3659         optimized out registers.
3660         * opencl-lang.c (lval_func_check_validity): Delete.
3661         (lval_func_check_any_valid): Delete.
3662         (opencl_value_funcs): Remove check_validity and check_any_valid
3663         fields.
3664         * p-valprint.c (pascal_object_print_value_fields): Let the common
3665         printing code handle optimized out values.
3666         * stack.c (read_frame_arg): Remove special handling of optimized
3667         out values.  Fetch both VAL and ENTRYVAL before comparing
3668         contents.  Adjust to value_available_contents_eq rename.
3669         * valprint.c (valprint_check_validity)
3670         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3671         (val_print_array_elements): Adjust.
3672         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3673         (value_bits_any_optimized_out): New function.
3674         (value_entirely_covered_by_range_vector): New function, factored
3675         out from value_entirely_unavailable.
3676         (value_entirely_unavailable): Reimplement.
3677         (value_entirely_optimized_out): New function.
3678         (insert_into_bit_range_vector): New function, factored out from
3679         mark_value_bits_unavailable.
3680         (mark_value_bits_unavailable): Reimplement.
3681         (struct ranges_and_idx): New struct.
3682         (find_first_range_overlap_and_match): New function, factored out
3683         from value_available_contents_bits_eq.
3684         (value_available_contents_bits_eq): Rename to ...
3685         (value_contents_bits_eq): ... this.  Check both unavailable
3686         contents and optimized out contents.
3687         (value_available_contents_eq): Rename to ...
3688         (value_contents_eq): ... this.
3689         (allocate_value_lazy): Remove reference to the old optimized_out
3690         boolean.
3691         (allocate_optimized_out_value): Use
3692         mark_value_bytes_optimized_out.
3693         (require_not_optimized_out): Adjust to check whether the
3694         optimized_out vec is empty.
3695         (ranges_copy_adjusted): New function, factored out from
3696         value_contents_copy_raw.
3697         (value_contents_copy_raw): Also copy the optimized out ranges.
3698         Assert the destination ranges aren't optimized out.
3699         (value_contents_copy): Update comment, remove call to
3700         require_not_optimized_out.
3701         (value_contents_equal): Adjust to check whether the optimized_out
3702         vec is empty.
3703         (set_value_optimized_out, value_optimized_out_const): Delete.
3704         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3705         New functions.
3706         (value_entirely_optimized_out, value_bits_valid): Delete.
3707         (value_copy): Take a VEC copy of the 'optimized_out' field.
3708         (value_primitive_field): Remove special handling of optimized out.
3709         (value_fetch_lazy): Assert that lazy values have no unavailable
3710         regions.  Use value_bits_any_optimized_out.  Remove some special
3711         handling for optimized out values.
3712         * value.h: Add intro comment about <optimized out> and
3713         <unavailable>.
3714         (struct lval_funcs): Remove check_validity and check_any_valid
3715         fields.
3716         (set_value_optimized_out, value_optimized_out_const): Remove.
3717         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3718         New declarations.
3719         (value_bits_any_optimized_out): New declaration.
3720         (value_bits_valid): Delete declaration.
3721         (value_available_contents_eq): Rename to ...
3722         (value_contents_eq): ... this, and extend comments.
3723
3724 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3725
3726         Fix -fsanitize=address on unreadable inferior strings.
3727         * valprint.c (val_print_string): Fix access before BUFFER.
3728
3729 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3730
3731         * target.c (target_struct_size): Remove.
3732         (target_struct_allocsize): Remove.
3733         (DEFAULT_ALLOCSIZE): Remove.
3734         (target_ops_p): New typedef.
3735         (DEF_VEC_P (target_ops_p)): New vector type.
3736         (target_structs): Change type to VEC (target_ops_p).
3737         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3738         (find_default_run_target): Rewrite for loop following changes to
3739         target_structs.
3740
3741 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3742
3743         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3744         Adjust code accordingly.  Adjust function description comment.
3745
3746 2014-08-19  Yao Qi  <yao@codesourcery.com>
3747
3748         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3749         types.
3750
3751 2014-08-19  Alan Modra  <amodra@gmail.com>
3752
3753         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3754         * config.in: Regenerate.
3755         * configure: Regenerate.
3756
3757 2014-08-19  Tom Tromey  <tromey@redhat.com>
3758             Gary Benson  <gbenson@redhat.com>
3759
3760         * common/common-debug.h: New file.
3761         * common/common-debug.c: Likewise.
3762         * debug.c: Likewise.
3763         * Makefile.in (SFILES): Add common/common-debug.c.
3764         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3765         (COMMON_OBS): Add common-debug.o and debug.o.
3766         (common-debug.o): New rule.
3767         * common/common-defs.h: Include common-debug.h.
3768         * common/agent.c (debug_agent_printf): New function.
3769         (DEBUG_AGENT): Redefine.
3770         * nat/i386-dregs.c (debug_printf): Undefine.
3771
3772 2014-08-19  Gary Benson  <gbenson@redhat.com>
3773
3774         * common/common-defs.h: Include print-utils.h.
3775         * utils.h: Do not include print-utils.h.
3776
3777 2014-08-19  Tom Tromey  <tromey@redhat.com>
3778             Gary Benson  <gbenson@redhat.com>
3779
3780         * common/common-types.h: New file.
3781         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3782         * common/common-defs.h: Include common-types.h.
3783         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3784         (ULONGEST): Remove.
3785
3786 2014-08-19  Tom Tromey  <tromey@redhat.com>
3787             Gary Benson  <gbenson@redhat.com>
3788
3789         * common/errors.h: New file.
3790         * common/errors.c: Likewise.
3791         * Makefile.in (SFILES): Add common/errors.c.
3792         (HFILES_NO_SRCDIR): Add common/errors.h.
3793         (COMMON_OBS): Add errors.o.
3794         (errors.o): New rule.
3795         * common/common-defs.h: Include errors.h.
3796         * utils.h (perror_with_name, error, verror, warning, vwarning):
3797         Don't declare.
3798         * common/common-utils.h: (malloc_failure, internal_error):
3799         Likewise.
3800
3801 2014-08-19  Gary Benson  <gbenson@redhat.com>
3802
3803         * utils.c (internal_vproblem): Always print the message.
3804
3805 2014-08-18  Doug Evans  <dje@google.com>
3806
3807         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3808
3809 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3810
3811         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3812         Return 0 if TYPE is dynamic.
3813         (print_range): Add handling of dynamic ranges.
3814
3815 2014-08-18  Keven Boell  <keven.boell@intel.com>
3816             Joel Brobecker  <brobecker@adacore.com>
3817
3818         * gdbtypes.h (struct main_type): Add field "data_location".
3819         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3820         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3821         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3822         a dynamic data location.
3823         (resolve_dynamic_type): Add DW_AT_data_location handling.
3824         (copy_recursive, copy_type): Copy the data_location information
3825         when present.
3826         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3827         * value.c (value_from_contents_and_address): Add
3828         DW_AT_data_location handling.
3829
3830 2014-08-18  Keven Boell  <keven.boell@intel.com>
3831             Joel Brobecker  <brobecker@adacore.com>
3832
3833         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3834         field "get_object_address".
3835         * dwarf2expr.c (execute_stack_op): Add handling for
3836         DW_OP_push_object_address.
3837         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3838         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3839         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3840         (dwarf_expr_get_obj_addr): New function.
3841         (dwarf_expr_ctx_funcs): Add get_object_address field.
3842         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3843         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3844         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3845         (needs_get_obj_addr): New function.
3846         (needs_frame_ctx_funcs): Add get_object_address field.
3847         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3848         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3849         (resolve_dynamic_array): Likewise.
3850
3851 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3852
3853         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3854         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3855         fixed value for records and unions for which some GNAT encodings
3856         are present.
3857
3858 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3859
3860         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3861         rewrite to avoid "else if" and "else" constructs.  Should be
3862         a no-op in practice.
3863
3864 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3865
3866         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3867         of lexical block.
3868
3869 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3870
3871         PR c++/17132
3872         * eval.c: Update all calls to find_overload_match.
3873         * valarith.c: Likewise.
3874         (value_user_defined_cpp_op, value_user_defined_op): New
3875         argument NOSIDE.  Update all callers.
3876         * valops.c (find_overload_match): New argument NOSIDE.
3877         * value.h (find_overload_match): Update signature.
3878
3879 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3880
3881         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3882         'items' methods instead of 'iteritems' method on dictionaries.
3883
3884 2014-08-15  Doug Evans  <dje@google.com>
3885
3886         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3887         closer to use.
3888
3889 2014-08-15  Doug Evans  <dje@google.com>
3890
3891         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3892
3893 2014-08-15  Doug Evans  <dje@google.com>
3894
3895         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3896
3897 2014-08-15  Doug Evans  <dje@google.com>
3898
3899         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3900         unused.
3901
3902 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3903
3904         * dcache.h: Include target.h, to avoid compile time warnings.
3905
3906 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3907
3908         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3909         frame_info" partial declaration.
3910         * gdbarch.h: Regenerate.
3911
3912 2014-08-15  Yao Qi  <yao@codesourcery.com>
3913
3914         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3915         Add parameter 'decode_for_pst_p'.  Callers update.
3916
3917 2014-08-13  Yao Qi  <yao@codesourcery.com>
3918
3919         PR build/17104
3920         * configure.ac: Use local variable 'pos'.
3921         * configure: Regenerated.
3922
3923 2014-08-11  Doug Evans  <dje@google.com>
3924
3925         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3926         message, it is redundant with "Reading symbols from ..." message.
3927
3928 2014-08-10  Doug Evans  <xdje42@gmail.com>
3929
3930         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3931
3932 2014-08-09  Yao Qi  <yao@codesourcery.com>
3933
3934         PR remote/9053
3935         * remote.c (remote_xfer_partial): Remove dead code.
3936
3937 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3938
3939         * ia64-linux-tdep.c: Include "regset.h".
3940         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3941         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3942         (ia64_linux_supply_fpregset): New function.
3943         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3944         (ia64_linux_regset_from_core_section): New function.
3945         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3946         method.
3947
3948 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3949
3950         * m68klinux-tdep.c: Include "regset.h".
3951         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3952         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3953         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3954         (m68k_linux_regset_from_core_section): New function.
3955         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3956         method.
3957
3958 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3959
3960         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3961         function.  Move logic to...
3962         (tilegx_linux_regmap): ... this new register map.
3963         (tilegx_linux_regset): Refer to register map, replace supply
3964         method by regcache_supply_regset, and add collect method.
3965         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3966         TILEGX_FIRST_EASY_REGNUM.
3967
3968 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3969
3970         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3971         that calls regcache_supply_regset and handles the EPC register
3972         separately.  Move main logic to...
3973         (score7_linux_gregmap): ... this new register map.
3974         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3975         (score7_linux_gregset): Refer to register map.  Add collect method.
3976         (score7_linux_regset_from_core_section): Replace
3977         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3978         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3979         (struct regset): Delete unused forward declaraction.
3980         (struct pt_regs): Delete structure definition.
3981         (elf_gregset_t): Delete typedef.
3982
3983 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3984
3985         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3986         (nios2_core_regset): Add collect method.
3987
3988 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3989
3990         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3991         platform-independent and don't write to read-only input buffer.
3992         (m32r_linux_collect_gregset): New function.
3993         (m32r_linux_gregset): Add collect method.
3994
3995 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3996
3997         * hppa-linux-tdep.c (greg_map): Rename to...
3998         (hppa_linux_gregmap): ... this.  Also convert to
3999         regcache_map_entry format.
4000         (hppa_linux_supply_regset): Delete function.
4001         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4002         (hppa_linux_fpregmap): ... this new register map.
4003         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4004         register map, replace supply method by regcache_supply_regset, and
4005         add collect method regcache_collect_regset.
4006
4007 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4008
4009         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4010         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4011         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4012         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4013         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4014         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4015         (frv_linux_supply_gregset): Replace main logic by call to
4016         regcache_supply_regset, but keep clearing gr32-gr63.
4017         (frv_linux_supply_fpregset): Delete function.
4018         (frv_linux_gregset): Refer to appropriate register map and add
4019         regcache_collect_regset as the collect method.
4020         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4021         by regcache_supply_regset.
4022
4023 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4024
4025         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4026         by call to alpha_supply_int_regs.
4027         (alpha_linux_collect_gregset): New function.
4028         (alpha_linux_supply_fpregset): Replace logic by call to
4029         alpha_supply_fp_regs.
4030         (alpha_linux_collect_fpregset): New function.
4031         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4032
4033 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4034
4035         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4036         by call to regcache_collect_regset.
4037         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4038         instead of aarch64_linux_supply_gregset/_fpregset.
4039         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4040         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4041         header file instead.
4042         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4043         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4044         functions.  Move logic to ...
4045         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4046         register maps.
4047         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4048         refer to new register maps, replace *_regset_from_core by
4049         regcache_supply_regset, and also use regcache_collect_regset.
4050         * aarch64-linux-tdep.h: Include "regset.h".
4051         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4052         Delete prototypes.
4053         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4054         macros, moved from C source file.
4055         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4056         variable declarations.
4057
4058 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4059
4060         * s390-linux-nat.c: Include "regset.h".
4061         (regmap_gregset): Delete macro.
4062         (s390_64_regmap_gregset): New register map for
4063         regcache_supply/_collect_regset.
4064         (s390_64_gregset): New regset.
4065         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4066         (regmap_fpregset): Delete macro.
4067         (s390_native_supply, s390_native_collect): Delete functions.
4068         (supply_gregset, fill_gregset): Replace s390-specific regmap
4069         handling by a call to regcache_supply/_collect_regset.
4070         (supply_fpregset, fill_fpregset): Call regcache_supply/
4071         _collect_regset instead of s390_native_supply/_collect.
4072         (fetch_regset, store_regset): Likewise.  Also change the last
4073         parameter to a regset instead of a regmap.
4074         (s390_linux_fetch_inferior_registers)
4075         (390_linux_store_inferior_registers): Adjust last parameter in
4076         calls to fetch_regset and store_regset.
4077         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4078         (s390_gregmap): ... this.  Also make static const and convert to
4079         regcache_map_entry format.
4080         (s390x_regmap_gregset): Delete.
4081         (s390_regmap_fpregset): Rename to...
4082         (s390_fpregmap): ... this.  Make static const and convert to
4083         regcache_map_entry format.
4084         (s390_regmap_upper, s390_regmap_last_break)
4085         (s390x_regmap_last_break, s390_regmap_system_call)
4086         (s390_regmap_tdb): Likewise.
4087         (s390_supply_regset, s390_collect_regset): Remove functions.
4088         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4089         s390_supply_regset.
4090         (s390_gregset, s390_fpregset, s390_upper_regset)
4091         (s390_last_break_regset, s390x_last_break_regset)
4092         (s390_system_call_regset, s390_tdb_regset): Make global and
4093         replace s390_supply/_collect_regset by regcache_supply/
4094         _collect_regset.
4095         (s390x_gregset): Delete.
4096         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4097         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4098         (s390_regmap_fpregset, s390_regmap_last_break)
4099         (s390x_regmap_last_break, s390_regmap_system_call)
4100         (s390_regmap_tdb): Delete global variable declarations.
4101         (s390_gregset, s390_fpregset, s390_last_break_regset)
4102         (s390x_last_break_regset, s390_system_call_regset)
4103         (s390_tdb_regset): New global variable declarations.
4104
4105 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4106
4107         * regcache.c: Include "regset.h".
4108         (regcache_transfer_regset): New local function.
4109         (regcache_supply_regset, regcache_collect_regset): New functions.
4110         * regcache.h (struct regcache_map_entry): New structure.
4111         (REGCACHE_MAP_SKIP): New enum value.
4112         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4113
4114 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4115
4116         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4117         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4118         (ppc_linux_collect_gregset ): Likewise.
4119         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4120         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4121         (ppc_collect_vrregset): Likewise.
4122         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4123         Likewise.
4124
4125 2014-08-07  Yao Qi  <yao@codesourcery.com>
4126
4127         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4128         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4129         * remote.c (remote_read_bytes): Likewise.
4130
4131 2014-08-07  Yao Qi  <yao@codesourcery.com>
4132
4133         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4134
4135 2014-08-07  Yao Qi  <yao@codesourcery.com>
4136
4137         PR remote/17230
4138         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4139         TARGET_XFER_OK instead of 0.
4140
4141 2014-08-07  Gary Benson  <gbenson@redhat.com>
4142
4143         * common/common-defs.h: Include errno.h.
4144         * defs.h: Do not include errno.h.
4145         * ada-typeprint.c: Likewise.
4146         * c-typeprint.c: Likewise.
4147         * core-regset.c: Likewise.
4148         * corefile.c: Likewise.
4149         * corelow.c: Likewise.
4150         * event-loop.c: Likewise.
4151         * f-typeprint.c: Likewise.
4152         * gnu-nat.c: Likewise.
4153         * go32-nat.c: Likewise.
4154         * i386gnu-nat.c: Likewise.
4155         * m2-typeprint.c: Likewise.
4156         * nat/linux-btrace.c: Likewise.
4157         * p-typeprint.c: Likewise.
4158         * procfs.c: Likewise.
4159         * remote-sim.c: Likewise.
4160         * rs6000-nat.c: Likewise.
4161         * target.c: Likewise.
4162         * typeprint.c: Likewise.
4163         * ui-file.c: Likewise.
4164         * valops.c: Likewise.
4165         * valprint.c: Likewise.
4166
4167 2014-08-07  Gary Benson  <gbenson@redhat.com>
4168
4169         * common/common-defs.h: Include string.h.
4170         * aarch64-tdep.c: Do not include string.h.
4171         * ada-exp.y: Likewise.
4172         * ada-lang.c: Likewise.
4173         * ada-lex.l: Likewise.
4174         * ada-typeprint.c: Likewise.
4175         * ada-valprint.c: Likewise.
4176         * aix-thread.c: Likewise.
4177         * alpha-linux-tdep.c: Likewise.
4178         * alpha-mdebug-tdep.c: Likewise.
4179         * alpha-nat.c: Likewise.
4180         * alpha-osf1-tdep.c: Likewise.
4181         * alpha-tdep.c: Likewise.
4182         * alphanbsd-tdep.c: Likewise.
4183         * amd64-dicos-tdep.c: Likewise.
4184         * amd64-linux-tdep.c: Likewise.
4185         * amd64-nat.c: Likewise.
4186         * amd64-sol2-tdep.c: Likewise.
4187         * amd64fbsd-tdep.c: Likewise.
4188         * amd64obsd-tdep.c: Likewise.
4189         * arch-utils.c: Likewise.
4190         * arm-linux-nat.c: Likewise.
4191         * arm-linux-tdep.c: Likewise.
4192         * arm-tdep.c: Likewise.
4193         * arm-wince-tdep.c: Likewise.
4194         * armbsd-tdep.c: Likewise.
4195         * armnbsd-nat.c: Likewise.
4196         * armnbsd-tdep.c: Likewise.
4197         * armobsd-tdep.c: Likewise.
4198         * avr-tdep.c: Likewise.
4199         * ax-gdb.c: Likewise.
4200         * ax-general.c: Likewise.
4201         * bcache.c: Likewise.
4202         * bfin-tdep.c: Likewise.
4203         * breakpoint.c: Likewise.
4204         * build-id.c: Likewise.
4205         * buildsym.c: Likewise.
4206         * c-exp.y: Likewise.
4207         * c-lang.c: Likewise.
4208         * c-typeprint.c: Likewise.
4209         * c-valprint.c: Likewise.
4210         * charset.c: Likewise.
4211         * cli-out.c: Likewise.
4212         * cli/cli-cmds.c: Likewise.
4213         * cli/cli-decode.c: Likewise.
4214         * cli/cli-dump.c: Likewise.
4215         * cli/cli-interp.c: Likewise.
4216         * cli/cli-logging.c: Likewise.
4217         * cli/cli-script.c: Likewise.
4218         * cli/cli-setshow.c: Likewise.
4219         * cli/cli-utils.c: Likewise.
4220         * coffread.c: Likewise.
4221         * common/agent.c: Likewise.
4222         * common/buffer.c: Likewise.
4223         * common/buffer.h: Likewise.
4224         * common/common-utils.c: Likewise.
4225         * common/filestuff.c: Likewise.
4226         * common/filestuff.c: Likewise.
4227         * common/format.c: Likewise.
4228         * common/print-utils.c: Likewise.
4229         * common/rsp-low.c: Likewise.
4230         * common/signals.c: Likewise.
4231         * common/vec.h: Likewise.
4232         * common/xml-utils.c: Likewise.
4233         * core-regset.c: Likewise.
4234         * corefile.c: Likewise.
4235         * corelow.c: Likewise.
4236         * cp-abi.c: Likewise.
4237         * cp-name-parser.y: Likewise.
4238         * cp-support.c: Likewise.
4239         * cp-valprint.c: Likewise.
4240         * cris-tdep.c: Likewise.
4241         * d-exp.y: Likewise.
4242         * darwin-nat.c: Likewise.
4243         * dbxread.c: Likewise.
4244         * dcache.c: Likewise.
4245         * demangle.c: Likewise.
4246         * dicos-tdep.c: Likewise.
4247         * disasm.c: Likewise.
4248         * doublest.c: Likewise.
4249         * dsrec.c: Likewise.
4250         * dummy-frame.c: Likewise.
4251         * dwarf2-frame.c: Likewise.
4252         * dwarf2loc.c: Likewise.
4253         * dwarf2read.c: Likewise.
4254         * elfread.c: Likewise.
4255         * environ.c: Likewise.
4256         * eval.c: Likewise.
4257         * event-loop.c: Likewise.
4258         * exceptions.c: Likewise.
4259         * exec.c: Likewise.
4260         * expprint.c: Likewise.
4261         * f-exp.y: Likewise.
4262         * f-lang.c: Likewise.
4263         * f-typeprint.c: Likewise.
4264         * f-valprint.c: Likewise.
4265         * fbsd-nat.c: Likewise.
4266         * findcmd.c: Likewise.
4267         * findvar.c: Likewise.
4268         * fork-child.c: Likewise.
4269         * frame.c: Likewise.
4270         * frv-linux-tdep.c: Likewise.
4271         * frv-tdep.c: Likewise.
4272         * gdb.c: Likewise.
4273         * gdb_bfd.c: Likewise.
4274         * gdbarch.c: Likewise.
4275         * gdbarch.sh: Likewise.
4276         * gdbtypes.c: Likewise.
4277         * gnu-nat.c: Likewise.
4278         * gnu-v2-abi.c: Likewise.
4279         * gnu-v3-abi.c: Likewise.
4280         * go-exp.y: Likewise.
4281         * go-lang.c: Likewise.
4282         * go32-nat.c: Likewise.
4283         * guile/guile.c: Likewise.
4284         * guile/scm-auto-load.c: Likewise.
4285         * hppa-hpux-tdep.c: Likewise.
4286         * hppa-linux-nat.c: Likewise.
4287         * hppanbsd-tdep.c: Likewise.
4288         * hppaobsd-tdep.c: Likewise.
4289         * i386-cygwin-tdep.c: Likewise.
4290         * i386-dicos-tdep.c: Likewise.
4291         * i386-linux-tdep.c: Likewise.
4292         * i386-nto-tdep.c: Likewise.
4293         * i386-sol2-tdep.c: Likewise.
4294         * i386-tdep.c: Likewise.
4295         * i386bsd-tdep.c: Likewise.
4296         * i386gnu-nat.c: Likewise.
4297         * i386nbsd-tdep.c: Likewise.
4298         * i386obsd-tdep.c: Likewise.
4299         * i387-tdep.c: Likewise.
4300         * ia64-libunwind-tdep.c: Likewise.
4301         * ia64-linux-nat.c: Likewise.
4302         * inf-child.c: Likewise.
4303         * inf-ptrace.c: Likewise.
4304         * inf-ttrace.c: Likewise.
4305         * infcall.c: Likewise.
4306         * infcmd.c: Likewise.
4307         * inflow.c: Likewise.
4308         * infrun.c: Likewise.
4309         * interps.c: Likewise.
4310         * iq2000-tdep.c: Likewise.
4311         * irix5-nat.c: Likewise.
4312         * jv-exp.y: Likewise.
4313         * jv-lang.c: Likewise.
4314         * jv-typeprint.c: Likewise.
4315         * jv-valprint.c: Likewise.
4316         * language.c: Likewise.
4317         * linux-fork.c: Likewise.
4318         * linux-nat.c: Likewise.
4319         * lm32-tdep.c: Likewise.
4320         * m2-exp.y: Likewise.
4321         * m2-typeprint.c: Likewise.
4322         * m32c-tdep.c: Likewise.
4323         * m32r-linux-nat.c: Likewise.
4324         * m32r-linux-tdep.c: Likewise.
4325         * m32r-rom.c: Likewise.
4326         * m32r-tdep.c: Likewise.
4327         * m68hc11-tdep.c: Likewise.
4328         * m68k-tdep.c: Likewise.
4329         * m68kbsd-tdep.c: Likewise.
4330         * m68klinux-nat.c: Likewise.
4331         * m68klinux-tdep.c: Likewise.
4332         * m88k-tdep.c: Likewise.
4333         * machoread.c: Likewise.
4334         * macrocmd.c: Likewise.
4335         * main.c: Likewise.
4336         * mdebugread.c: Likewise.
4337         * mem-break.c: Likewise.
4338         * memattr.c: Likewise.
4339         * memory-map.c: Likewise.
4340         * mep-tdep.c: Likewise.
4341         * mi/mi-cmd-break.c: Likewise.
4342         * mi/mi-cmd-disas.c: Likewise.
4343         * mi/mi-cmd-env.c: Likewise.
4344         * mi/mi-cmd-stack.c: Likewise.
4345         * mi/mi-cmd-var.c: Likewise.
4346         * mi/mi-cmds.c: Likewise.
4347         * mi/mi-console.c: Likewise.
4348         * mi/mi-getopt.c: Likewise.
4349         * mi/mi-interp.c: Likewise.
4350         * mi/mi-main.c: Likewise.
4351         * mi/mi-parse.c: Likewise.
4352         * microblaze-rom.c: Likewise.
4353         * microblaze-tdep.c: Likewise.
4354         * mingw-hdep.c: Likewise.
4355         * minidebug.c: Likewise.
4356         * minsyms.c: Likewise.
4357         * mips-irix-tdep.c: Likewise.
4358         * mips-linux-tdep.c: Likewise.
4359         * mips-tdep.c: Likewise.
4360         * mips64obsd-tdep.c: Likewise.
4361         * mipsnbsd-tdep.c: Likewise.
4362         * mipsread.c: Likewise.
4363         * mn10300-linux-tdep.c: Likewise.
4364         * mn10300-tdep.c: Likewise.
4365         * monitor.c: Likewise.
4366         * moxie-tdep.c: Likewise.
4367         * mt-tdep.c: Likewise.
4368         * nat/linux-btrace.c: Likewise.
4369         * nat/linux-osdata.c: Likewise.
4370         * nat/linux-procfs.c: Likewise.
4371         * nat/linux-ptrace.c: Likewise.
4372         * nat/linux-waitpid.c: Likewise.
4373         * nbsd-tdep.c: Likewise.
4374         * nios2-linux-tdep.c: Likewise.
4375         * nto-procfs.c: Likewise.
4376         * nto-tdep.c: Likewise.
4377         * objc-lang.c: Likewise.
4378         * objfiles.c: Likewise.
4379         * opencl-lang.c: Likewise.
4380         * osabi.c: Likewise.
4381         * osdata.c: Likewise.
4382         * p-exp.y: Likewise.
4383         * p-lang.c: Likewise.
4384         * p-typeprint.c: Likewise.
4385         * parse.c: Likewise.
4386         * posix-hdep.c: Likewise.
4387         * ppc-linux-nat.c: Likewise.
4388         * ppc-sysv-tdep.c: Likewise.
4389         * ppcfbsd-tdep.c: Likewise.
4390         * ppcnbsd-tdep.c: Likewise.
4391         * ppcobsd-tdep.c: Likewise.
4392         * printcmd.c: Likewise.
4393         * procfs.c: Likewise.
4394         * prologue-value.c: Likewise.
4395         * python/py-auto-load.c: Likewise.
4396         * python/py-gdb-readline.c: Likewise.
4397         * ravenscar-thread.c: Likewise.
4398         * regcache.c: Likewise.
4399         * registry.c: Likewise.
4400         * remote-fileio.c: Likewise.
4401         * remote-m32r-sdi.c: Likewise.
4402         * remote-mips.c: Likewise.
4403         * remote-notif.c: Likewise.
4404         * remote-sim.c: Likewise.
4405         * remote.c: Likewise.
4406         * reverse.c: Likewise.
4407         * rs6000-aix-tdep.c: Likewise.
4408         * ser-base.c: Likewise.
4409         * ser-go32.c: Likewise.
4410         * ser-mingw.c: Likewise.
4411         * ser-pipe.c: Likewise.
4412         * ser-tcp.c: Likewise.
4413         * ser-unix.c: Likewise.
4414         * serial.c: Likewise.
4415         * sh-tdep.c: Likewise.
4416         * sh64-tdep.c: Likewise.
4417         * shnbsd-tdep.c: Likewise.
4418         * skip.c: Likewise.
4419         * sol-thread.c: Likewise.
4420         * solib-dsbt.c: Likewise.
4421         * solib-frv.c: Likewise.
4422         * solib-osf.c: Likewise.
4423         * solib-som.c: Likewise.
4424         * solib-spu.c: Likewise.
4425         * solib-target.c: Likewise.
4426         * solib.c: Likewise.
4427         * somread.c: Likewise.
4428         * source.c: Likewise.
4429         * sparc-nat.c: Likewise.
4430         * sparc-sol2-tdep.c: Likewise.
4431         * sparc-tdep.c: Likewise.
4432         * sparc64-tdep.c: Likewise.
4433         * sparc64fbsd-tdep.c: Likewise.
4434         * sparc64nbsd-tdep.c: Likewise.
4435         * sparcnbsd-tdep.c: Likewise.
4436         * spu-linux-nat.c: Likewise.
4437         * spu-multiarch.c: Likewise.
4438         * spu-tdep.c: Likewise.
4439         * stabsread.c: Likewise.
4440         * stack.c: Likewise.
4441         * std-regs.c: Likewise.
4442         * symfile.c: Likewise.
4443         * symmisc.c: Likewise.
4444         * symtab.c: Likewise.
4445         * target.c: Likewise.
4446         * thread.c: Likewise.
4447         * tilegx-linux-nat.c: Likewise.
4448         * tilegx-tdep.c: Likewise.
4449         * top.c: Likewise.
4450         * tracepoint.c: Likewise.
4451         * tui/tui-command.c: Likewise.
4452         * tui/tui-data.c: Likewise.
4453         * tui/tui-disasm.c: Likewise.
4454         * tui/tui-file.c: Likewise.
4455         * tui/tui-layout.c: Likewise.
4456         * tui/tui-out.c: Likewise.
4457         * tui/tui-regs.c: Likewise.
4458         * tui/tui-source.c: Likewise.
4459         * tui/tui-stack.c: Likewise.
4460         * tui/tui-win.c: Likewise.
4461         * tui/tui-windata.c: Likewise.
4462         * tui/tui-winsource.c: Likewise.
4463         * typeprint.c: Likewise.
4464         * ui-file.c: Likewise.
4465         * ui-out.c: Likewise.
4466         * user-regs.c: Likewise.
4467         * utils.c: Likewise.
4468         * v850-tdep.c: Likewise.
4469         * valarith.c: Likewise.
4470         * valops.c: Likewise.
4471         * valprint.c: Likewise.
4472         * value.c: Likewise.
4473         * varobj.c: Likewise.
4474         * vax-tdep.c: Likewise.
4475         * vaxnbsd-tdep.c: Likewise.
4476         * vaxobsd-tdep.c: Likewise.
4477         * windows-nat.c: Likewise.
4478         * xcoffread.c: Likewise.
4479         * xml-support.c: Likewise.
4480         * xstormy16-tdep.c: Likewise.
4481         * xtensa-linux-nat.c: Likewise.
4482
4483 2014-08-07  Gary Benson  <gbenson@redhat.com>
4484
4485         * common/common-defs.h: Include gdb_assert.h.
4486         * aarch64-tdep.c: Do not include gdb_assert.h.
4487         * addrmap.c: Likewise.
4488         * aix-thread.c: Likewise.
4489         * alpha-linux-tdep.c: Likewise.
4490         * alpha-mdebug-tdep.c: Likewise.
4491         * alphanbsd-tdep.c: Likewise.
4492         * amd64-nat.c: Likewise.
4493         * amd64-tdep.c: Likewise.
4494         * amd64bsd-nat.c: Likewise.
4495         * amd64fbsd-nat.c: Likewise.
4496         * amd64fbsd-tdep.c: Likewise.
4497         * amd64nbsd-nat.c: Likewise.
4498         * amd64nbsd-tdep.c: Likewise.
4499         * amd64obsd-nat.c: Likewise.
4500         * amd64obsd-tdep.c: Likewise.
4501         * arch-utils.c: Likewise.
4502         * arm-tdep.c: Likewise.
4503         * armbsd-tdep.c: Likewise.
4504         * auxv.c: Likewise.
4505         * bcache.c: Likewise.
4506         * bfin-tdep.c: Likewise.
4507         * blockframe.c: Likewise.
4508         * breakpoint.c: Likewise.
4509         * bsd-kvm.c: Likewise.
4510         * bsd-uthread.c: Likewise.
4511         * buildsym.c: Likewise.
4512         * c-exp.y: Likewise.
4513         * c-lang.c: Likewise.
4514         * charset.c: Likewise.
4515         * cleanups.c: Likewise.
4516         * cli-out.c: Likewise.
4517         * cli/cli-decode.c: Likewise.
4518         * cli/cli-dump.c: Likewise.
4519         * cli/cli-logging.c: Likewise.
4520         * cli/cli-script.c: Likewise.
4521         * cli/cli-utils.c: Likewise.
4522         * coffread.c: Likewise.
4523         * common/common-utils.c: Likewise.
4524         * common/queue.h: Likewise.
4525         * common/signals.c: Likewise.
4526         * common/vec.h: Likewise.
4527         * complaints.c: Likewise.
4528         * completer.c: Likewise.
4529         * corelow.c: Likewise.
4530         * cp-abi.c: Likewise.
4531         * cp-name-parser.y: Likewise.
4532         * cp-namespace.c: Likewise.
4533         * cp-support.c: Likewise.
4534         * cris-tdep.c: Likewise.
4535         * dbxread.c: Likewise.
4536         * dictionary.c: Likewise.
4537         * doublest.c: Likewise.
4538         * dsrec.c: Likewise.
4539         * dummy-frame.c: Likewise.
4540         * dwarf2-frame-tailcall.c: Likewise.
4541         * dwarf2-frame.c: Likewise.
4542         * dwarf2expr.c: Likewise.
4543         * dwarf2loc.c: Likewise.
4544         * dwarf2read.c: Likewise.
4545         * eval.c: Likewise.
4546         * event-loop.c: Likewise.
4547         * exceptions.c: Likewise.
4548         * expprint.c: Likewise.
4549         * f-valprint.c: Likewise.
4550         * fbsd-nat.c: Likewise.
4551         * findvar.c: Likewise.
4552         * frame-unwind.c: Likewise.
4553         * frame.c: Likewise.
4554         * frv-tdep.c: Likewise.
4555         * gcore.c: Likewise.
4556         * gdb-dlfcn.c: Likewise.
4557         * gdb_bfd.c: Likewise.
4558         * gdbarch.c: Likewise.
4559         * gdbarch.sh: Likewise.
4560         * gdbtypes.c: Likewise.
4561         * gnu-nat.c: Likewise.
4562         * gnu-v3-abi.c: Likewise.
4563         * go-lang.c: Likewise.
4564         * guile/scm-exception.c: Likewise.
4565         * guile/scm-gsmob.c: Likewise.
4566         * guile/scm-lazy-string.c: Likewise.
4567         * guile/scm-math.c: Likewise.
4568         * guile/scm-pretty-print.c: Likewise.
4569         * guile/scm-safe-call.c: Likewise.
4570         * guile/scm-utils.c: Likewise.
4571         * guile/scm-value.c: Likewise.
4572         * h8300-tdep.c: Likewise.
4573         * hppa-hpux-nat.c: Likewise.
4574         * hppa-tdep.c: Likewise.
4575         * hppanbsd-tdep.c: Likewise.
4576         * hppaobsd-tdep.c: Likewise.
4577         * i386-darwin-nat.c: Likewise.
4578         * i386-darwin-tdep.c: Likewise.
4579         * i386-nto-tdep.c: Likewise.
4580         * i386-tdep.c: Likewise.
4581         * i386bsd-nat.c: Likewise.
4582         * i386fbsd-tdep.c: Likewise.
4583         * i386gnu-nat.c: Likewise.
4584         * i386nbsd-tdep.c: Likewise.
4585         * i386obsd-tdep.c: Likewise.
4586         * i387-tdep.c: Likewise.
4587         * ia64-libunwind-tdep.c: Likewise.
4588         * ia64-tdep.c: Likewise.
4589         * inf-ptrace.c: Likewise.
4590         * inf-ttrace.c: Likewise.
4591         * infcall.c: Likewise.
4592         * infcmd.c: Likewise.
4593         * infrun.c: Likewise.
4594         * inline-frame.c: Likewise.
4595         * interps.c: Likewise.
4596         * jv-lang.c: Likewise.
4597         * jv-typeprint.c: Likewise.
4598         * linux-fork.c: Likewise.
4599         * linux-nat.c: Likewise.
4600         * linux-thread-db.c: Likewise.
4601         * m32c-tdep.c: Likewise.
4602         * m32r-linux-nat.c: Likewise.
4603         * m32r-tdep.c: Likewise.
4604         * m68k-tdep.c: Likewise.
4605         * m68kbsd-nat.c: Likewise.
4606         * m68kbsd-tdep.c: Likewise.
4607         * m88k-tdep.c: Likewise.
4608         * machoread.c: Likewise.
4609         * macroexp.c: Likewise.
4610         * macrotab.c: Likewise.
4611         * maint.c: Likewise.
4612         * mdebugread.c: Likewise.
4613         * memory-map.c: Likewise.
4614         * mep-tdep.c: Likewise.
4615         * mi/mi-common.c: Likewise.
4616         * microblaze-tdep.c: Likewise.
4617         * mingw-hdep.c: Likewise.
4618         * mips-linux-nat.c: Likewise.
4619         * mips-linux-tdep.c: Likewise.
4620         * mips-tdep.c: Likewise.
4621         * mips64obsd-tdep.c: Likewise.
4622         * mipsnbsd-tdep.c: Likewise.
4623         * mn10300-linux-tdep.c: Likewise.
4624         * mn10300-tdep.c: Likewise.
4625         * moxie-tdep.c: Likewise.
4626         * mt-tdep.c: Likewise.
4627         * nat/linux-btrace.c: Likewise.
4628         * nat/linux-osdata.c: Likewise.
4629         * nat/linux-ptrace.c: Likewise.
4630         * nat/mips-linux-watch.c: Likewise.
4631         * nios2-linux-tdep.c: Likewise.
4632         * nios2-tdep.c: Likewise.
4633         * objc-lang.c: Likewise.
4634         * objfiles.c: Likewise.
4635         * obsd-nat.c: Likewise.
4636         * opencl-lang.c: Likewise.
4637         * osabi.c: Likewise.
4638         * parse.c: Likewise.
4639         * ppc-linux-nat.c: Likewise.
4640         * ppc-sysv-tdep.c: Likewise.
4641         * ppcfbsd-nat.c: Likewise.
4642         * ppcfbsd-tdep.c: Likewise.
4643         * ppcnbsd-nat.c: Likewise.
4644         * ppcnbsd-tdep.c: Likewise.
4645         * ppcobsd-nat.c: Likewise.
4646         * ppcobsd-tdep.c: Likewise.
4647         * printcmd.c: Likewise.
4648         * procfs.c: Likewise.
4649         * prologue-value.c: Likewise.
4650         * psymtab.c: Likewise.
4651         * python/py-lazy-string.c: Likewise.
4652         * python/py-value.c: Likewise.
4653         * regcache.c: Likewise.
4654         * reggroups.c: Likewise.
4655         * registry.c: Likewise.
4656         * remote-sim.c: Likewise.
4657         * remote.c: Likewise.
4658         * rs6000-aix-tdep.c: Likewise.
4659         * rs6000-tdep.c: Likewise.
4660         * s390-linux-tdep.c: Likewise.
4661         * score-tdep.c: Likewise.
4662         * ser-base.c: Likewise.
4663         * ser-mingw.c: Likewise.
4664         * sh-tdep.c: Likewise.
4665         * sh64-tdep.c: Likewise.
4666         * solib-darwin.c: Likewise.
4667         * solib-spu.c: Likewise.
4668         * solib-svr4.c: Likewise.
4669         * source.c: Likewise.
4670         * sparc-nat.c: Likewise.
4671         * sparc-sol2-tdep.c: Likewise.
4672         * sparc-tdep.c: Likewise.
4673         * sparc64-sol2-tdep.c: Likewise.
4674         * sparc64-tdep.c: Likewise.
4675         * sparc64fbsd-tdep.c: Likewise.
4676         * sparc64nbsd-tdep.c: Likewise.
4677         * sparc64obsd-tdep.c: Likewise.
4678         * sparcnbsd-tdep.c: Likewise.
4679         * sparcobsd-tdep.c: Likewise.
4680         * spu-multiarch.c: Likewise.
4681         * spu-tdep.c: Likewise.
4682         * stabsread.c: Likewise.
4683         * stack.c: Likewise.
4684         * symfile.c: Likewise.
4685         * symtab.c: Likewise.
4686         * target-descriptions.c: Likewise.
4687         * target-memory.c: Likewise.
4688         * target.c: Likewise.
4689         * tic6x-linux-tdep.c: Likewise.
4690         * tic6x-tdep.c: Likewise.
4691         * tilegx-linux-nat.c: Likewise.
4692         * tilegx-tdep.c: Likewise.
4693         * top.c: Likewise.
4694         * tramp-frame.c: Likewise.
4695         * tui/tui-out.c: Likewise.
4696         * tui/tui-winsource.c: Likewise.
4697         * ui-out.c: Likewise.
4698         * user-regs.c: Likewise.
4699         * utils.c: Likewise.
4700         * v850-tdep.c: Likewise.
4701         * valops.c: Likewise.
4702         * value.c: Likewise.
4703         * varobj.c: Likewise.
4704         * vax-nat.c: Likewise.
4705         * xml-syscall.c: Likewise.
4706         * xml-tdesc.c: Likewise.
4707         * xstormy16-tdep.c: Likewise.
4708         * xtensa-linux-nat.c: Likewise.
4709         * xtensa-tdep.c: Likewise.
4710
4711 2014-08-07  Gary Benson  <gbenson@redhat.com>
4712
4713         * common/common-defs.h: Include common-utils.h.
4714         * defs.h: Do not include common-utils.h.
4715         * common/gdb_assert.h: Likewise.
4716         * darwin-nat.h: Likewise.
4717         * nat/linux-btrace.c: Likewise.
4718         * target/waitstatus.h: Likewise.
4719
4720 2014-08-07  Gary Benson  <gbenson@redhat.com>
4721
4722         * common/common-defs.h: Include ptid.h.
4723         * defs.h: Do not include ptid.h.
4724         * inferior.h: Likewise.
4725         * infrun.h: Likewise.
4726         * nat/linux-btrace.h: Likewise.
4727         * nat/linux-osdata.h: Likewise.
4728         * target/waitstatus.h: Likewise.
4729
4730 2014-08-07  Gary Benson  <gbenson@redhat.com>
4731
4732         * common/common-defs.h: Include gdb_locale.h.
4733         * defs.h: Do not include gdb_locale.h.
4734
4735 2014-08-07  Gary Benson  <gbenson@redhat.com>
4736
4737         * common/common-defs.h: Include gdb/signals.h.
4738         * defs.h: Do not include gdb/signals.h.
4739
4740 2014-08-07  Gary Benson  <gbenson@redhat.com>
4741
4742         * common/common-defs.h: Include pathmax.h.
4743         * defs.h: Do not include pathmax.h.
4744
4745 2014-08-07  Gary Benson  <gbenson@redhat.com>
4746
4747         * common/common-defs.h: Include libiberty.h.
4748         * defs.h: Do not include libiberty.h.
4749         * common/queue.h: Likewise.
4750         * cp-name-parser.y: Likewise.
4751         * mi/mi-cmd-catch.c: Likewise.
4752         * python/python.c: Likewise.
4753
4754 2014-08-07  Gary Benson  <gbenson@redhat.com>
4755
4756         * common/common-defs.h: Include ansidecl.h.
4757         * defs.h: Do not include ansidecl.h.
4758         * common/buffer.h: Likewise.
4759         * common/common-utils.h: Likewise.
4760
4761 2014-08-07  Gary Benson  <gbenson@redhat.com>
4762
4763         * common/common-defs.h: Include stddef.h.
4764         * defs.h: Do not include stddef.h.
4765         * common/common-utils.h: Likewise.
4766         * amd64fbsd-nat.c: Likewise.
4767         * bcache.c: Likewise.
4768         * charset.c: Likewise.
4769         * common/buffer.h: Likewise.
4770         * common/vec.h: Likewise.
4771         * i386bsd-nat.c: Likewise.
4772         * nat/linux-btrace.h: Likewise.
4773         * ppcfbsd-nat.c: Likewise.
4774         * ppcnbsd-tdep.h: Likewise.
4775         * ppcobsd-nat.c: Likewise.
4776         * ppcobsd-tdep.h: Likewise.
4777         * python/py-gdb-readline.c: Likewise.
4778
4779 2014-08-07  Gary Benson  <gbenson@redhat.com>
4780
4781         * common/common-defs.h: Include stdarg.h.
4782         * defs.h: Do not include stdarg.h.
4783         * ada-lang.c: Likewise.
4784         * common/common-utils.h: Likewise.
4785         * guile/scm-string.c: Likewise.
4786         * guile/scm-utils.c: Likewise.
4787         * m32c-tdep.c: Likewise.
4788
4789 2014-08-07  Gary Benson  <gbenson@redhat.com>
4790
4791         * common/common-defs.h: Include stdlib.h.
4792         * defs.h: Do not include stdlib.h.
4793         * addrmap.c: Likewise.
4794         * bcache.c: Likewise.
4795         * common/buffer.c: Likewise.
4796         * common/common-utils.c: Likewise.
4797         * cp-name-parser.y: Likewise.
4798         * go32-nat.c: Likewise.
4799         * mn10300-linux-tdep.c: Likewise.
4800         * nat/linux-osdata.c: Likewise.
4801         * tui/tui.c: Likewise.
4802         * windows-nat.c: Likewise.
4803
4804 2014-08-07  Gary Benson  <gbenson@redhat.com>
4805
4806         * common/common-defs.h: Include stdio.h.
4807         * defs.h: Do not include stdio.h.
4808         * ada-lang.c: Likewise.
4809         * common/buffer.c: Likewise.
4810         * common/common-utils.c: Likewise.
4811         * cp-name-parser.y: Likewise.
4812         * gnu-nat.c: Likewise.
4813         * go32-nat.c: Likewise.
4814         * i386gnu-nat.c: Likewise.
4815         * proc-api.c: Likewise.
4816         * proc-events.c: Likewise.
4817         * proc-flags.c: Likewise.
4818         * proc-why.c: Likewise.
4819         * python/python-internal.h: Likewise.
4820         * target-memory.c: Likewise.
4821         * tui/tui-io.c: Likewise.
4822         * tui/tui.c: Likewise.
4823
4824 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4825
4826         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4827         (scan_dyntag_auxv): Same.
4828
4829 2014-08-06  Yao Qi  <yao@codesourcery.com>
4830
4831         * amd64-linux-nat.c: Remove duplicated include
4832         "x86-linux-nat.h".
4833         * i386-linux-nat.c: Likewise.
4834
4835 2014-08-06  Yao Qi  <yao@codesourcery.com>
4836
4837         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4838         operand" with "Special opcode" in comments.
4839
4840 2014-08-05  Gary Benson  <gbenson@redhat.com>
4841
4842         * interps.c (initialize_interps): Remove prototype.
4843         (interpreter_initialized): Remove static global.
4844         (interp_add): Do not call initialize_interps.
4845         (initialize_interps): Remove function.
4846
4847 2014-08-05  Gary Benson  <gbenson@redhat.com>
4848
4849         * utils.c (vwarning): Remove spurious va_end.
4850
4851 2014-08-05  Alan Modra  <amodra@gmail.com>
4852
4853         * charset.c (convert_between_encodings): Cast result of obstack_base.
4854         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4855         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4856         (read_unwind_info): Use size_t for some locals.
4857         * jit.c (finalize_symtab): Likewise.
4858         * utils.c (hashtab_obstack_allocate): Likewise.
4859         * symmisc.c (print_objfile_statistics): Update format strings.
4860
4861 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4862
4863         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4864         (Changes in GDB 7.8): ... here.
4865
4866 2014-08-04  Tom Tromey  <tromey@redhat.com>
4867
4868         * target.c (set_targetdebug): New function.
4869         (initialize_targets): Pass set_targetdebug when creating "set
4870         debug target".
4871
4872 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4873
4874         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4875         if detecting a variable-sized field that is not the last field.
4876         Fix struct type length computation.
4877
4878 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4879
4880         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4881         Add debug trace.
4882
4883 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4884
4885         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4886         Remove "+ 8" offset in computation of CHAIN_VMA.
4887
4888 2014-07-31  Doug Evans  <dje@google.com>
4889
4890         * inflow.c (child_terminal_inferior): Add comment.
4891         (child_terminal_ours_for_output): Add comment.
4892         (child_terminal_ours): Add comment.
4893         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4894         (linux_nat_terminal_ours): Add comment.
4895
4896 2014-07-31  Gary Benson  <gbenson@redhat.com>
4897
4898         * common/btrace-common.h: Do not include defs.h or server.h.
4899         * nat/mips-linux-watch.h: Likewise.
4900         * gdb-dlfcn.h: Do not include defs.h.
4901         * tracefile.h: Likewise.
4902
4903 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4904
4905         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4906
4907 2014-07-30  Tom Tromey  <tromey@redhat.com>
4908
4909         * bsd-kvm.c (bsd_kvm_open): Constify.
4910         * corelow.c (core_open): Constify.
4911         * ctf.c (ctf_open): Constify.
4912         * dbug-rom.c (dbug_open): Constify.
4913         * exec.c (exec_open): Constify.
4914         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4915         * microblaze-rom.c (picobug_open): Constify.
4916         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4917         Constify.
4918         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4919         * record-btrace.c (record_btrace_open): Constify.
4920         * record-full.c (record_full_core_open_1, record_full_open_1)
4921         (record_full_open): Constify.
4922         * remote-m32r-sdi.c (m32r_open): Constify.
4923         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4924         (rockhopper_open, lsi_open): Constify.
4925         * remote-sim.c (gdbsim_open): Constify.
4926         * remote.c (remote_open, extended_remote_open, remote_open_1):
4927         Constify.
4928         * target.h (struct target_ops) <to_open>: Make "arg" const.
4929         * tracefile-tfile.c (tfile_open): Constify.
4930
4931 2014-07-30  Tom Tromey  <tromey@redhat.com>
4932
4933         * breakpoint.c (map_breakpoint_numbers): Update.
4934         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4935         (get_number_const): New function.
4936         (get_number): Rewrite using get_number_const.
4937         (init_number_or_range): Make "string" const.
4938         (number_is_in_list): Make "list" const.
4939         * cli/cli-utils.h (get_number_const): Declare.
4940         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4941         (init_number_or_range, number_is_in_list): Update.
4942         * printcmd.c (map_display_numbers): Update.
4943         * value.c (value_from_history_ref): Constify.
4944         * value.h (value_from_history_ref): Update.
4945
4946 2014-07-30  Tom Tromey  <tromey@redhat.com>
4947
4948         * corefile.c (hook_type, call_extra_exec_file_hooks)
4949         (specify_exec_file_hook): Constify.
4950         * exec.c (exec_file_attach): Make "filename" const.
4951         * gdbcore.h (deprecated_exec_file_display_hook)
4952         (specify_exec_file_hook, exec_file_attach): Constify.
4953         * main.c (captured_main): Use catch_command_errors_const.
4954
4955 2014-07-30  Tom Tromey  <tromey@redhat.com>
4956
4957         * target.c (open_target): New function.
4958         (add_target_with_completer, add_deprecated_target_alias): Use
4959         set_cmd_sfunc, set_cmd_context.
4960         (debug_to_open): Remove.
4961         (setup_target_debug): Update.
4962
4963 2014-07-30  Yao Qi  <yao@codesourcery.com>
4964
4965         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4966         comments.
4967         * parse.c (exp_iterate): Update comments.
4968
4969 2014-07-30  Gary Benson  <gbenson@redhat.com>
4970
4971         * common/common-defs.h: New file.
4972         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4973         * defs.h: Include common-defs.h.
4974         Do not include config.h or build-gnulib/config.h.
4975
4976 2014-07-30  Gary Benson  <gbenson@redhat.com>
4977
4978         * common/common-utils.h: Do not include config.h.
4979         * nat/linux-btrace.h: Likewise.
4980
4981 2014-07-30  Gary Benson  <gbenson@redhat.com>
4982
4983         * btrace.c: Include defs.h.
4984         * common/ptid.c: Include defs.h or server.h as appropriate.
4985         * nat/mips-linux-watch.c: Likewise.
4986
4987 2014-07-29  Tom Tromey  <tromey@redhat.com>
4988
4989         * target.c (target_is_pushed): Simplify.
4990
4991 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4992
4993         GDB 7.8 released.
4994
4995 2014-07-29  Yao Qi  <yao@codesourcery.com>
4996
4997         PR gdb/17206
4998         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4999
5000 2014-07-28  Doug Evans  <xdje42@gmail.com>
5001
5002         PR guile/17203
5003         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5004         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5005         parameters.
5006
5007 2014-07-28  Will Newton  <will.newton@linaro.org>
5008
5009         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5010         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5011         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5012         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5013         (THUMB2_EABI_SYSCALL): Likewise.
5014         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5015         struct tramp_frame.
5016         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5017         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5018
5019 2014-07-27  Doug Evans  <xdje42@gmail.com>
5020
5021         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5022
5023 2014-07-27  Doug Evans  <xdje42@gmail.com>
5024
5025         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5026
5027 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5028             Doug Evans  <xdje42@gmail.com>
5029
5030         PR guile/17146
5031         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5032         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5033         * configure.ac: Try to use guild to compile an scm file, if it fails
5034         then disable guile support.
5035         * configure: Regenerate.
5036         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5037         GUILE_FILE_LIST.
5038         (GUILE_COMPILED_FILES): New variable.
5039         (GUILE_FILES) Update.
5040         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5041         (stamp-guile): Compile scm files.
5042         * guile/guile.c (boot_guile_support): New function.
5043         (standard_throw_args_p): New function.
5044         (print_standard_throw_error, print_throw_error): New functions.
5045         (handle_boot_error): New function.
5046         (initialize_scheme_side): Rewrite to call boot_guile_support.
5047         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5048         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5049
5050 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5051             Doug Evans  <xdje42@gmail.com>
5052
5053         PR guile/17146
5054         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5055         * guile/lib/gdb/support.scm: New file.
5056         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5057         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5058         All uses updated.
5059         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5060         All uses updated.
5061         (%assert-type): Ditto, and renamed to assert-type.
5062         (%exception-print-style): Delete.
5063
5064 2014-07-26  Doug Evans  <xdje42@gmail.com>
5065
5066         PR build/17105
5067         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5068         * configure: Regenerate.
5069         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5070         PYTHON_FILES.
5071         (PYTHON_FILES): New variable.
5072         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5073         (GUILE_FILES): New variable.
5074         (stamp-python, install-python, uninstall-python): Handle empty
5075         file list.
5076         (stamp-guile, install-guile, uninstall-guile): Ditto.
5077
5078 2014-07-26  Doug Evans  <xdje42@gmail.com>
5079
5080         PR guile/17177
5081         * guile/lib/gdb.scm (pretty-printers): Export.
5082         (set-pretty-printers!): Export.
5083         * guile/lib/gdb/printing.scm (gdb module): Update.
5084         (prepend-pretty-printer!, append-pretty-printer!): Update.
5085         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5086         (pretty_printer_list_var): Delete.
5087         (pretty_printer_list): New static global.
5088         (gdbscm_pretty_printers): New function.
5089         (gdbscm_set_pretty_printers_x): New function.
5090         (ppscm_find_pretty_printer_from_gdb): Update.
5091         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5092         (gdbscm_initialize_pretty_printers): Update.
5093
5094 2014-07-26  Doug Evans  <xdje42@gmail.com>
5095
5096         PR 17185
5097         * configure.ac: Add check for header gc/gc.h.
5098         Add check for function setenv.
5099         * configure: Regenerate.
5100         * config.in: Regenerate.
5101         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5102
5103 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5104
5105         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5106         variation in gdbarch matching.
5107
5108 2014-07-25  Tom Tromey  <tromey@redhat.com>
5109
5110         * exec.c (using_exec_ops): Remove.
5111         (exec_close_1): Update.  Remove extraneous block, reindent.
5112         (add_target_sections): Use target_is_pushed.
5113
5114 2014-07-25  Pedro Alves  <palves@redhat.com>
5115
5116         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5117         * monitor.c (monitor_create_inferior): Likewise.
5118         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5119         * remote-sim.c (gdbsim_create_inferior): Likewise.
5120         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5121         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5122         * windows-nat.c (do_initial_windows_stuff): Likewise.
5123
5124 2014-07-25  Pedro Alves  <palves@redhat.com>
5125
5126         * NEWS: Mention signal passing and "signal" command changes.
5127         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5128         comment.
5129         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5130         call.
5131         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5132         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5133         (jump_command): Adjust clear_proceed_status call.
5134         (signal_command): Warn if other thread that are resumed have
5135         signals that will be delivered.  Adjust clear_proceed_status call.
5136         (until_next_command, finish_command)
5137         (proceed_after_attach_callback, attach_command_post_wait)
5138         (attach_command): Adjust clear_proceed_status call.
5139         * infrun.c (proceed_after_vfork_done): Likewise.
5140         (proceed_after_attach_callback): Adjust comment.
5141         (clear_proceed_status_thread): Clear stop_signal if not in pass
5142         state.
5143         (clear_proceed_status_callback): Delete.
5144         (clear_proceed_status): New 'step' parameter.  Only clear the
5145         proceed status of threads the command being prepared is about to
5146         resume.
5147         (proceed): If passed in an explicit signal, override stop_signal
5148         with it.  Don't pass the last stop signal to the thread we're
5149         resuming.
5150         (init_wait_for_inferior): Adjust clear_proceed_status call.
5151         (switch_back_to_stepped_thread): Clear the signal if it should not
5152         be passed.
5153         * infrun.h (clear_proceed_status): New 'step' parameter.
5154         (user_visible_resume_ptid): Add comment.
5155         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5156         signal is in pass state.
5157         * remote.c (append_pending_thread_resumptions): Likewise.
5158         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5159
5160 2014-07-25  Tom Tromey  <tromey@redhat.com>
5161
5162         * target.h (target_stopped_data_address)
5163         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5164         parentheses.
5165
5166 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5167
5168         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5169         comments.
5170         (avr_pointer_to_address): Likewise.
5171
5172 2014-07-24  Tom Tromey  <tromey@redhat.com>
5173
5174         * monitor.c (compile_pattern): Update.
5175         * target.h (struct target_ops) <to_shortname, to_longname,
5176         to_doc>: Now const.
5177
5178 2014-07-24  Tom Tromey  <tromey@redhat.com>
5179
5180         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5181         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5182         (add_info_alias, add_com): Make "doc" const.
5183         (print_doc_line): Make "str" const.
5184         (delete_cmd): Update.
5185         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5186         (print_doc_line): Update.
5187         * cli/cli-script.c (document_command): Update.
5188         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5189         (add_com, add_info, add_info_alias): Update.
5190         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5191         * python/py-cmd.c (cmdpy_destroyer): Update.
5192
5193 2014-07-24  Tom Tromey  <tromey@redhat.com>
5194
5195         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5196         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5197         (help_cmd_list): Constify.
5198         (lookup_cmd): Update.
5199         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5200         const.
5201         (help_cmd_list, apropos_cmd): Update.
5202         * cli/cli-script.c (show_user): Update.
5203         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5204         * cli/cli-setshow.h (cmd_show_list): Update.
5205         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5206         (cmd_show_list): Update.
5207         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5208         * python/py-cmd.c (cmdpy_destroyer): Update.
5209
5210 2014-07-24  Tom Tromey  <tromey@redhat.com>
5211
5212         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5213         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5214         const.
5215         * command.h (deprecate_cmd): Update.
5216         * maint.c (maintenance_do_deprecate): Add casts.
5217
5218 2014-07-24  Tom Tromey  <tromey@redhat.com>
5219
5220         * cli/cli-decode.c (help_cmd): Make parameter "const".
5221         * cli/cli-decode.h (help_cmd): Update.
5222
5223 2014-07-24  Tom Tromey  <tromey@redhat.com>
5224
5225         * stack.c (up_silently_base, down_silently_base): Make argument
5226         const.
5227
5228 2014-07-24  Tom Tromey  <tromey@redhat.com>
5229
5230         * solib.c (solib_add): Make "pattern" const.
5231         * solib.h (solib_add): Update.
5232
5233 2014-07-24  Tom Tromey  <tromey@redhat.com>
5234
5235         * remote.c (remote_serial_open, print_packet, putpkt)
5236         (putpkt_binary): Constify.
5237         * remote.h (putpkt): Update.
5238
5239 2014-07-24  Tom Tromey  <tromey@redhat.com>
5240
5241         * monitor.c (monitor_open): Make "args" const.
5242         * monitor.h (monitor_open): Update.
5243
5244 2014-07-24  Tom Tromey  <tromey@redhat.com>
5245
5246         * maint.c (match_bfd_flags): Make "string" const.
5247         (print_bfd_section_info): Remove casts.
5248         (print_objfile_section_info): Make "string" const.
5249
5250 2014-07-24  Tom Tromey  <tromey@redhat.com>
5251
5252         * inf-child.c (inf_child_open_target): Make "arg" const.
5253         * inf-child.h (inf_child_open_target): Update.
5254
5255 2014-07-24  Tom Tromey  <tromey@redhat.com>
5256
5257         * environ.c (unset_in_environ): Make "var" const.
5258         * environ.h (unset_in_environ): Update.
5259
5260 2014-07-24  Tom Tromey  <tromey@redhat.com>
5261
5262         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5263         Make "cmd" const.
5264         (scan_filename_with_cleanup): Likewise.
5265         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5266         Make arguments const.
5267         (restore_command): Update.
5268
5269 2014-07-24  Pedro Alves  <palves@redhat.com>
5270
5271         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5272
5273 2014-07-24  Tom Tromey  <tromey@redhat.com>
5274             Gary Benson  <gbenson@redhat.com>
5275
5276         * nat/linux-ptrace.c (additional_flags): New global.
5277         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5278         additional_flags; don't check GDBSERVER.
5279         (linux_ptrace_set_additional_flags): New function.
5280         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5281         Declare.
5282         * linux-nat.c (_initialize_linux_nat): Call
5283         linux_ptrace_set_additional_flags.
5284
5285 2014-07-24  Tom Tromey  <tromey@redhat.com>
5286
5287         * make-target-delegates (munge_type, write_debugmethod): New
5288         functions.
5289         (debug_names): New global.
5290         ($TARGET_DEBUG_PRINTER): New global.
5291         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5292         name.
5293         Write debug methods.  Generate init_debug_target.
5294         * target-debug.h: New file.
5295         * target-delegates.c: Rebuild.
5296         * target.c: Include target-debug.h.
5297         (debug_target): Hoist definition.
5298         (target_kill, target_get_section_table, target_memory_map)
5299         (target_flash_erase, target_flash_done, target_detach)
5300         (target_disconnect, target_wait, target_resume)
5301         (target_pass_signals, target_program_signals, target_follow_fork)
5302         (target_mourn_inferior, target_search_memory)
5303         (target_thread_address_space, target_close)
5304         (target_find_new_threads, target_core_of_thread)
5305         (target_verify_memory, target_insert_mask_watchpoint)
5306         (target_remove_mask_watchpoint): Remove targetdebug code.
5307         (debug_to_post_attach, debug_to_prepare_to_store)
5308         (debug_to_files_info, debug_to_insert_breakpoint)
5309         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5310         (debug_to_region_ok_for_hw_watchpoint)
5311         (debug_to_can_accel_watchpoint_condition)
5312         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5313         (debug_to_watchpoint_addr_within_range)
5314         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5315         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5316         (debug_to_terminal_init, debug_to_terminal_inferior)
5317         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5318         (debug_to_terminal_save_ours, debug_to_terminal_info)
5319         (debug_to_load, debug_to_post_startup_inferior)
5320         (debug_to_insert_fork_catchpoint)
5321         (debug_to_remove_fork_catchpoint)
5322         (debug_to_insert_vfork_catchpoint)
5323         (debug_to_remove_vfork_catchpoint)
5324         (debug_to_insert_exec_catchpoint)
5325         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5326         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5327         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5328         (setup_target_debug): Call init_debug_target.
5329         * target.h (TARGET_DEBUG_PRINTER): New macro.
5330         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5331         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5332
5333 2014-07-24  Gary Benson  <gbenson@redhat.com>
5334
5335         * exceptions.h (throw_vfatal): Renamed to...
5336         (throw_vquit): New declaration.
5337         (throw_quit): Likewise.
5338         * exceptions.c (throw_vfatal): Renamed to...
5339         (throw_vquit): New function.
5340         (throw_quit): Likewise.
5341         (throw_error): Call throw_verror rather than throw_it.
5342         * utils.h (vfatal): Removed.
5343         (fatal): Likewise.
5344         * utils.c (vfatal): Removed.
5345         (fatal): Likewise.
5346         (internal_verror): Replaced call to fatal with call to throw_quit.
5347         (quit): Replaced calls to fatal with calls to throw_quit.
5348
5349 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5350
5351         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5352         target_read_code.
5353
5354 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5355
5356         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5357         less than zero in conditional expression.
5358
5359 2014-07-23  Tom Tromey  <tromey@redhat.com>
5360
5361         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5362         ($INTRO_PART): Don't match whitespace.
5363         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5364         argument matching.
5365         ($METHOD): Add $METHOD_TRAILER.
5366         (trim): Rewrite.
5367         (scan_target_h): New sub.
5368         Change main loop not to collect state.
5369         * target-delegates.c: Rebuild.
5370
5371 2014-07-23  Gary Benson  <gbenson@redhat.com>
5372
5373         * cp-support.c (gdb_demangle): Fix build on systems without
5374         sigaltstack.
5375
5376 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5377
5378         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5379         for reference entry value target data value.
5380
5381 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5382
5383         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5384         value_available_contents_eq.
5385
5386 2014-07-22  Pedro Alves  <palves@redhat.com>
5387
5388         * value.c (allocate_optimized_out_value): Don't mark value as
5389         non-lazy.
5390
5391 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5392
5393         * MAINTAINERS (Write After Approval): Update my email address.
5394
5395 2014-07-20  Doug Evans  <dje@google.com>
5396
5397         PR server/17147
5398         * remote.c (putpkt_binary): Add text to error message.
5399
5400 2014-07-20  Yao Qi  <yao@codesourcery.com>
5401
5402         * eval.c: Remove "Chill" from comments.
5403         * gdbtypes.h: Likewise.
5404         * symtab.h: Likewise.
5405
5406 2014-07-20  Yao Qi  <yao@codesourcery.com>
5407
5408         * std-operator.def: Update comments to TERNOP_SLICE.
5409
5410 2014-07-20  Yao Qi  <yao@codesourcery.com>
5411
5412         * std-operator.def: Remove BINOP_RANGE.
5413         * breakpoint.c (watchpoint_exp_is_const): Update.
5414         * expprint.c (dump_subexp_body_standard): Likewise.
5415         * eval.c (init_array_element): Remove dead code.
5416         (evaluate_subexp_standard): Likewise.
5417
5418 2014-07-20  Yao Qi  <yao@codesourcery.com>
5419
5420         * std-operator.def: Remove BINOP_IN.
5421         * breakpoint.c (watchpoint_exp_is_const): Update.
5422         * eval.c (evaluate_subexp_standard): Likewise.
5423         * expprint.c (dump_subexp_body_standard): Likewise.
5424
5425 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5426
5427         * microblaze-tdep.c (microblaze_register_names): Add
5428         the rshr and rslr register names.
5429         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5430         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5431         Use of tdesc_numbered_register. Use of
5432         microblaze_register_g_packet_guesses. Use of
5433         tdesc_use_registers. Use of set_gdbarch_register_type.
5434         (microblaze_register_g_packet_guesses): New.
5435         * microblaze-tdep.h (microblaze_reg_num): Add
5436         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5437         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5438         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5439         * features/microblaze-core.xml: New file.
5440         * features/microblaze-stack-protect.xml: New file.
5441         * features/microblaze-with-stack-protect.c: New file.
5442         * features/microblaze-with-stack-protect.xml: New file.
5443         * features/microblaze.xml: New file.
5444         * features/microblaze.c: New file.
5445         * features/Makefile (microblaze-with-stack-protect): Add
5446         microblaze-with-stack-protect microblaze and microblaze-expedite.
5447         * regformats/microblaze-with-stack-protect.dat: New file.
5448         * regformats/microblaze.dat: New file.
5449         * doc/gdb.texinfo (MicroBlaze Features): Added.
5450
5451 2014-07-18  Tom Tromey  <tromey@redhat.com>
5452
5453         * exec.c (exec_ops): Now static.
5454         * exec.h (exec_ops): Don't declare.
5455
5456 2014-07-18  Tom Tromey  <tromey@redhat.com>
5457
5458         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5459         to find_target_beneath.
5460         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5461         find_target_beneath.
5462         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5463
5464 2014-07-18  Tom Tromey  <tromey@redhat.com>
5465
5466         PR gdb/17130:
5467         * utils.c (quit): Use target_supports_terminal_ours.
5468         * target.h (target_supports_terminal_ours): Declare.
5469         * target.c (target_supports_delete_record): Don't check
5470         to_delete_record against NULL.
5471         (target_supports_terminal_ours): New function.
5472
5473 2014-07-18  Tom Tromey  <tromey@redhat.com>
5474
5475         PR gdb/17130:
5476         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5477         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5478         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5479         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5480         * windows-nat.c (windows_xfer_partial): Always delegate.
5481         * record-btrace.c (record_btrace_xfer_partial): Simplify
5482         delegation.
5483         (record_btrace_fetch_registers, record_btrace_store_registers)
5484         (record_btrace_prepare_to_store, record_btrace_resume)
5485         (record_btrace_wait, record_btrace_find_new_threads)
5486         (record_btrace_thread_alive): Likewise.
5487         * procfs.c (procfs_xfer_partial): Always delegate.
5488         * corelow.c (core_xfer_partial): Always delegate.
5489         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5490
5491 2014-07-18  Tom Tromey  <tromey@redhat.com>
5492
5493         * exec.c (exec_make_note_section): Move earlier.
5494
5495 2014-07-17  Doug Evans  <dje@google.com>
5496
5497         PR gdb/17170
5498         * maint.c (count_symtabs_and_blocks): Handle NULL
5499         current_program_space.
5500         (report_command_stats): Check global enabled flag in addition to
5501         recorded enabled flag.
5502         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5503
5504 2014-07-16  Pedro Alves  <palves@redhat.com>
5505
5506         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5507
5508 2014-07-16  Tom Tromey  <tromey@redhat.com>
5509
5510         * target.h (struct target_ops) <to_delete_record>: Reformat
5511         comment.
5512
5513 2014-07-16  Tom Tromey  <tromey@redhat.com>
5514
5515         * target-delegates.c: Rebuild.
5516
5517 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5518
5519         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5520         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5521         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5522         (avr_pointer_to_address): Likewise.
5523         (avr_address_class_type_flags): New function.
5524         (avr_address_class_type_flags_to_name): Likewise.
5525         (avr_address_class_name_to_type_flags): Likewise.
5526         (avr_gdbarch_init): Set address_class_type_flags,
5527         address_class_type_flags_to_name and
5528         address_class_name_to_type_flags.
5529
5530 2014-07-15  Pedro Alves  <palves@redhat.com>
5531
5532         * linux-nat.c (kill_callback): Save errno and work with saved
5533         copy.
5534
5535 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5536
5537         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5538
5539 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5540
5541         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5542         breakpoint support correctly.
5543
5544 2014-07-14  Pedro Alves  <palves@redhat.com>
5545
5546         * utils.c (prompt_for_continue): Call target_terminal_ours.
5547
5548 2014-07-14  Pedro Alves  <palves@redhat.com>
5549
5550         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5551         catch_errors.  Don't re-enable stdin or notify observers where,
5552         and rethrow error.
5553         (fetch_inferior_event_wrapper): Delete.
5554
5555 2014-07-14  Pedro Alves  <palves@redhat.com>
5556
5557         PR gdb/17072
5558         * top.c: Include "inf-loop.h".
5559         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5560         field.
5561         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5562         was async before.
5563         (gdb_readline_wrapper): Store whether the target is async, and
5564         make it sync.
5565
5566 2014-07-14  Pedro Alves  <palves@redhat.com>
5567
5568         PR gdb/17072
5569         * top.c (gdb_readline_wrapper_line): Tweak comment.
5570         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5571         the input handler callback.
5572
5573 2014-07-14  Pedro Alves  <palves@redhat.com>
5574
5575         PR gdb/17072
5576         * main.c: Include event-top.h.
5577         (handle_command_errors): New function.
5578         (catch_command_errors, catch_command_errors_const): Use it.
5579
5580 2014-07-14  Pedro Alves  <palves@redhat.com>
5581
5582         * exceptions.c (catch_command_errors, catch_command_errors_const):
5583         Moved to main.c.
5584         * exceptions.h (catch_command_errors_ftype)
5585         (catch_command_errors_const_ftype): Moved to main.c.
5586         (catch_command_errors, catch_command_errors_const): Delete
5587         declarations.
5588         * main.c (catch_command_errors_ftype)
5589         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5590         (catch_command_errors, catch_command_errors_const)): Moved here
5591         from exceptions.c and make static.
5592
5593 2014-07-14  Pedro Alves  <palves@redhat.com>
5594
5595         * exceptions.c (print_any_exception): Delete.
5596         (catch_exceptions_with_msg): Use exception_print instead of
5597         print_any_exception.
5598         (catch_errors): Use exception_fprintf instead of
5599         print_any_exception.
5600         (catch_command_errors, catch_command_errors_const): Use
5601         exception_print instead of print_any_exception.
5602
5603 2014-07-14  Pedro Alves  <palves@redhat.com>
5604
5605         * infcall.c (run_inferior_call): Set 'sync_execution' while
5606         running the inferior call.
5607
5608 2014-07-14  Pedro Alves  <palves@redhat.com>
5609
5610         * value.c (value_contents_equal): Delete function.
5611         * value.h (value_contents_equal): Delete declaration.
5612
5613 2014-07-14  Tom Tromey  <tromey@redhat.com>
5614
5615         PR exp/17106:
5616         * gdbtypes.c (is_dynamic_type_internal): New function, from
5617         is_dynamic_type.
5618         (is_dynamic_type): Rewrite.
5619         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5620         (resolve_dynamic_struct): Likewise.
5621         (resolve_dynamic_type_internal): New function, from
5622         resolve_dynamic_type.
5623         (resolve_dynamic_type): Rewrite.
5624
5625 2014-07-14  Tom Tromey  <tromey@redhat.com>
5626
5627         * target.c (target_require_runnable): Also check record_stratum.
5628         Update comment.
5629
5630 2014-07-11  Yao Qi  <yao@codesourcery.com>
5631
5632         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5633         thumb_instruction_restores_sp return true.
5634
5635 2014-07-11  Yao Qi  <yao@codesourcery.com>
5636
5637         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5638         (thumb_in_function_epilogue_p): Call
5639         thumb_instruction_restores_sp.
5640
5641 2014-07-11  Yao Qi  <yao@codesourcery.com>
5642
5643         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5644         'add sp, #imm'.
5645         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5646
5647 2014-07-11  Gary Benson  <gbenson@redhat.com>
5648
5649         * amd64-linux-nat.c (gdbcore.h): Remove include.
5650         (regset.h): Likewise.
5651         (nat/linux-btrace.h): Likewise.
5652         (btrace.h): Likewise.
5653         (gdb_assert.h): Likewise.
5654         (string.h): Likewise.
5655         (sys/uio.h): Likewise.
5656         (sys/debugreg.h): Likewise.
5657         (sys/syscall.h): Likewise.
5658         (sys/procfs.h): Likewise.
5659         (sys/user.h): Likewise.
5660         (asm/ptrace.h): Likewise.
5661         (i386-nat.h): Likewise.
5662         * i386-linux-nat.c (i386-nat.h): Likewise.
5663         (regset.h): Likewise.
5664         (target.h): Likewise.
5665         (linux-nat.h): Likewise.
5666         (nat/linux-btrace.h): Likewise.
5667         (btrace.h): Likewise.
5668         (gdb_assert.h): Likewise.
5669         (string.h): Likewise.
5670         (sys/uio.h): Likewise.
5671         (sys/user.h): Likewise.
5672         (sys/procfs.h): Likewise.
5673         (sys/reg.h): Likewise.
5674         (sys/debugreg.h): Likewise.
5675         (ORIG_EAX): Remove definition.
5676
5677 2014-07-11  Gary Benson  <gbenson@redhat.com>
5678
5679         * i386-linux-nat.h: New file.
5680         * x86-linux-nat.h: Likewise.
5681         * x86-linux-nat.c: Likewise.
5682         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5683         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5684         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5685         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5686         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5687         (PTRACE_SETREGSET): Likewise.
5688         (arch_lwp_info): Now in x86-linux-nat.c.
5689         (have_ptrace_getregset): Now in x86-linux-nat.h.
5690         (x86_linux_dr_get): Now in x86-linux-nat.c.
5691         (x86_linux_dr_set): Likewise.
5692         (x86_linux_dr_get_addr): Likewise.
5693         (x86_linux_dr_get_control): Likewise.
5694         (x86_linux_dr_get_status): Likewise.
5695         (update_debug_registers_callback): Likewise.
5696         (x86_linux_dr_set_control): Likewise.
5697         (x86_linux_dr_set_addr): Likewise.
5698         (x86_linux_prepare_to_resume): Likewise.
5699         (x86_linux_new_thread): Likewise.
5700         (x86_linux_new_fork): Likewise.
5701         (x86_linux_get_thread_area): Likewise.
5702         (super_post_startup_inferior): Likewise.
5703         (x86_linux_child_post_startup_inferior): Likewise.
5704         (AMD64_LINUX_USER64_CS): Likewise.
5705         (AMD64_LINUX_X32_DS): Likewise.
5706         (x86_linux_read_description): Likewise.
5707         (x86_linux_enable_btrace): Likewise.
5708         (x86_linux_disable_btrace): Likewise.
5709         (x86_linux_teardown_btrace): Likewise.
5710         (x86_linux_read_btrace): Likewise.
5711         (x86_linux_create_target): Likewise.
5712         (x86_linux_add_target): Likewise.
5713         * i386-linux-nat.c (x86-linux-nat.h): New include.
5714         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5715         (PTRACE_SETREGSET): Likewise.
5716         (arch_lwp_info): Now in x86-linux-nat.c.
5717         (have_ptrace_getregset): Now in x86-linux-nat.h.
5718         (x86_linux_dr_get): Now in x86-linux-nat.c.
5719         (x86_linux_dr_set): Likewise.
5720         (x86_linux_dr_get_addr): Likewise.
5721         (x86_linux_dr_get_control): Likewise.
5722         (x86_linux_dr_get_status): Likewise.
5723         (update_debug_registers_callback): Likewise.
5724         (x86_linux_dr_set_control): Likewise.
5725         (x86_linux_dr_set_addr): Likewise.
5726         (x86_linux_prepare_to_resume): Likewise.
5727         (x86_linux_new_thread): Likewise.
5728         (x86_linux_new_fork): Likewise.
5729         (x86_linux_get_thread_area): Likewise.
5730         (super_post_startup_inferior): Likewise.
5731         (x86_linux_child_post_startup_inferior): Likewise.
5732         (AMD64_LINUX_USER64_CS): Likewise.
5733         (AMD64_LINUX_X32_DS): Likewise.
5734         (x86_linux_read_description): Likewise.
5735         (x86_linux_enable_btrace): Likewise.
5736         (x86_linux_disable_btrace): Likewise.
5737         (x86_linux_teardown_btrace): Likewise.
5738         (x86_linux_read_btrace): Likewise.
5739         (x86_linux_create_target): Likewise.
5740         (x86_linux_add_target): Likewise.
5741
5742 2014-07-11  Gary Benson  <gbenson@redhat.com>
5743
5744         * amd64-linux-nat.c: Comment and whitespace changes.
5745         * i386-linux-nat.c: Comment and whitespace changes.
5746
5747 2014-07-11  Gary Benson  <gbenson@redhat.com>
5748
5749         * amd64-linux-nat.c (x86_linux_create_target): New function.
5750         (x86_linux_add_target): Likewise.
5751         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5752         * i386-linux-nat.c (x86_linux_create_target): New function.
5753         (x86_linux_add_target): Likewise.
5754         (_initialize_i386_linux_nat): Delegate to the above new functions.
5755
5756 2014-07-11  Gary Benson  <gbenson@redhat.com>
5757
5758         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5759         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5760         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5761         (ps_get_thread_area): Delegate to the above.
5762
5763 2014-07-11  Gary Benson  <gbenson@redhat.com>
5764
5765         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5766         x86_linux_read_description.  All uses updated.  amd64-specific
5767         code conditionalized.  Conditionalized i386-specific code added.
5768         Redundant cast removed.
5769         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5770         x86_linux_read_description.  All uses updated.  i386-specific
5771         code conditionalized.  Conditionalized amd64-specific code added.
5772         One sizeof replaced with the actual type it is describing.
5773
5774 2014-07-11  Gary Benson  <gbenson@redhat.com>
5775
5776         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5777         x86_linux_dr_get.  All uses updated.
5778         (amd64_linux_dr_set): Renamed to
5779         x86_linux_dr_set.  All uses updated.
5780         (amd64_linux_dr_get_addr): Renamed to
5781         x86_linux_dr_get_addr.  All uses updated.
5782         (amd64_linux_dr_get_control): Renamed to
5783         x86_linux_dr_get_control.  All uses updated.
5784         (amd64_linux_dr_get_status): Renamed to
5785         x86_linux_dr_get_status.  All uses updated.
5786         (amd64_linux_dr_set_control): Renamed to
5787         x86_linux_dr_set_control.  All uses updated.
5788         (amd64_linux_dr_set_addr): Renamed to
5789         x86_linux_dr_set_addr.  All uses updated.
5790         (amd64_linux_prepare_to_resume): Renamed to
5791         x86_linux_prepare_to_resume.  All uses updated.
5792         (amd64_linux_new_thread): Renamed to
5793         x86_linux_new_thread.  All uses updated.
5794         (amd64_linux_new_fork): Renamed to
5795         x86_linux_new_fork.  All uses updated.
5796         (amd64_linux_child_post_startup_inferior): Renamed to
5797         x86_linux_child_post_startup_inferior.  All uses updated.
5798         (amd64_linux_enable_btrace): Renamed to
5799         x86_linux_enable_btrace.  All uses updated.
5800         (amd64_linux_disable_btrace): Renamed to
5801         x86_linux_disable_btrace.  All uses updated.
5802         (amd64_linux_teardown_btrace): Renamed to
5803         x86_linux_teardown_btrace.  All uses updated.
5804         (amd64_linux_read_btrace): Renamed to
5805         x86_linux_read_btrace.  All uses updated.
5806         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5807         x86_linux_dr_get.  All uses updated.
5808         (i386_linux_dr_set): Renamed to
5809         x86_linux_dr_set.  All uses updated.
5810         (i386_linux_dr_get_addr): Renamed to
5811         x86_linux_dr_get_addr.  All uses updated.
5812         (i386_linux_dr_get_control): Renamed to
5813         x86_linux_dr_get_control.  All uses updated.
5814         (i386_linux_dr_get_status): Renamed to
5815         x86_linux_dr_get_status.  All uses updated.
5816         (i386_linux_dr_set_control): Renamed to
5817         x86_linux_dr_set_control.  All uses updated.
5818         (i386_linux_dr_set_addr): Renamed to
5819         x86_linux_dr_set_addr.  All uses updated.
5820         (i386_linux_prepare_to_resume): Renamed to
5821         x86_linux_prepare_to_resume.  All uses updated.
5822         (i386_linux_new_thread): Renamed to
5823         x86_linux_new_thread.  All uses updated.
5824         (i386_linux_new_fork): Renamed to
5825         x86_linux_new_fork.  All uses updated.
5826         (i386_linux_child_post_startup_inferior): Renamed to
5827         x86_linux_child_post_startup_inferior.  All uses updated.
5828         (i386_linux_enable_btrace): Renamed to
5829         x86_linux_enable_btrace.  All uses updated.
5830         (i386_linux_disable_btrace): Renamed to
5831         x86_linux_disable_btrace.  All uses updated.
5832         (i386_linux_teardown_btrace): Renamed to
5833         x86_linux_teardown_btrace.  All uses updated.
5834         (i386_linux_read_btrace): Renamed to
5835         x86_linux_read_btrace.  All uses updated.
5836
5837 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5838
5839         * remote.c (extended_remote_post_attach): New function.
5840         (init_extended_remote_ops): Install it as to_post_attach method.
5841
5842 2014-07-09  Pedro Alves  <palves@redhat.com>
5843
5844         * infcmd.c (attach_command_post_wait): Don't call
5845         target_terminal_inferior here.
5846         (attach_command): Call it here instead.
5847
5848 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5849
5850         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5851         field.
5852         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5853         from varobj.c, with additional checks.
5854         (c_varobj_ops): Fill in is_path_expr_parent field.
5855         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5856         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5857         field.
5858         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5859         ops method.
5860         (varobj_default_is_path_expr_parent): New function.
5861         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5862         (varobj_default_is_path_expr_parent): Declare new function.
5863
5864 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5865
5866         * infcmd.c (finish_backward): Turn internal error into normal error.
5867
5868 2014-07-07  Pedro Alves  <palves@redhat.com>
5869
5870         PR gdb/17096
5871         * remote.c (async_handle_remote_sigint)
5872         (async_handle_remote_sigint_twice): Call
5873         gdb_call_async_signal_handler instead of
5874         mark_async_signal_handler.
5875
5876 2014-07-07  Tom Tromey  <tromey@redhat.com>
5877
5878         * target-delegates.c: Rebuild.
5879         * target.c (target_info_record): Remove.
5880         * record.c (info_record_command): Unconditionally call
5881         to_info_record.
5882         * target.h (struct target_ops) <to_info_record>: Use
5883         TARGET_DEFAULT_IGNORE.
5884         (target_info_record): Remove.
5885
5886 2014-07-07  Tom Tromey  <tromey@redhat.com>
5887
5888         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5889         TARGET_DEFAULT_NORETURN.
5890         * target.c (generic_tls_error): New function.
5891         (target_translate_tls_address): Don't search target stack.
5892         * target-delegates.c: Rebuild.
5893         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5894         stack.
5895         * linux-thread-db.c (thread_db_get_thread_local_address):
5896         Unconditionally call beneath target.
5897
5898 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5899
5900         * cli/cli-logging.c (pop_output_files): Assign targerr to
5901         gdb_stdtargerr.
5902
5903 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5904
5905         * MAINTAINERS (Write After Approval): Update my email address.
5906
5907 2014-07-02  Gary Benson  <gbenson@redhat.com>
5908
5909         * proc-service.c (ps_xfer_memory): Update comment.
5910         (ps_pstop): Remove unused function.
5911         (ps_pcontinue): Likewise.
5912         (ps_lstop): Likewise.
5913         (ps_lcontinue): Likewise.
5914         (ps_lgetxregsize): Likewise.
5915         (ps_lgetxregs): Likewise.
5916         (ps_lsetxregs): Likewise.
5917         (ps_plog): Likewise.
5918         (ps_ptread): Likewise.
5919         (ps_ptwrite): Likewise.
5920
5921 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5922
5923         * dwarf2read.c (add_array_cv_type): New function.
5924         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5925         (read_tag_volatile_type): Likewise.
5926
5927 2014-07-01  Tom Tromey  <tromey@redhat.com>
5928
5929         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5930         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5931         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5932         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5933         * command.h (cmd_cfunc_ftype): Move earlier.
5934         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5935         (add_com, add_info): Use cmd_cfunc_ftype.
5936
5937 2014-06-30  Tom Tromey  <tromey@redhat.com>
5938
5939         * symtab.c (operator_chars): Make parameters and return type
5940         const.
5941         (file_matches): Make "files" const.
5942         (struct search_symbols_data) <files>: Now const.
5943         (search_symbols): Make "regexp" and "files" parameters const.
5944         Update.
5945         (symtab_symbol_info): Remove cast.
5946         (rbreak_command): Update.
5947         * symtab.h (search_symbols): Update.
5948
5949 2014-06-27  Yao Qi  <yao@codesourcery.com>
5950
5951         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5952         Change parameter type to 'struct thread_info *'.  Caller
5953         updated.
5954         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5955         Update declaration.
5956         * dummy-frame.c (struct dummy_frame_id): New.
5957         (dummy_frame_id_eq): New function.
5958         (struct dummy_frame) <id>: Change its type to 'struct
5959         dummy_frame_id'.
5960         (dummy_frame_push): Add parameter ptid and save it in
5961         dummy_frame_id.
5962         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5963         inferior_ptid.
5964         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5965         to inferior_ptid.
5966         (lookup_dummy_frame): Change parameter type to 'struct
5967         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5968         instead of frame_id_eq.
5969         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5970         Update comments.  Compose dummy_frame_id and pass it to
5971         lookup_dummy_frame.
5972         (dummy_frame_discard): Add parameter ptid.
5973         (dummy_frame_sniffer): Compose dummy_frame_id and call
5974         dummy_frame_id_eq instead of frame_id_eq.
5975         (fprint_dummy_frames): Print ptid.
5976         * dummy-frame.h: Remove comments.
5977         (dummy_frame_push): Add ptid in declaration.
5978         (dummy_frame_pop, dummy_frame_discard): Likewise.
5979
5980 2014-06-26  Tom Tromey  <tromey@redhat.com>
5981
5982         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5983         * command.h (error_no_arg): Update.
5984
5985 2014-06-26  Tom Tromey  <tromey@redhat.com>
5986
5987         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5988         (do_show_command): Make "arg" const.
5989         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5990
5991 2014-06-26  Tom Tromey  <tromey@redhat.com>
5992
5993         * record-full.c (record_full_get_bookmark): Make "args" const.
5994         (record_full_goto_bookmark): Make "raw_bookmark" const.
5995         * record.c (record_goto): New function.
5996         (cmd_record_goto): Use it.  Now static.
5997         * record.h (record_goto): Declare.
5998         (cmd_record_goto): Remove declaration.
5999         * target-delegates.c: Rebuild.
6000         * target.h (struct target_ops) <to_get_bookmark,
6001         to_goto_bookmark>: Make parameter const.
6002
6003 2014-06-26  Tom Tromey  <tromey@redhat.com>
6004
6005         * defs.h (generic_load): Update.
6006         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6007         * monitor.c (monitor_load): Make "args" const.
6008         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6009         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6010         const.
6011         (mips_load): Make "file" const.
6012         * remote-sim.c (gdbsim_load): Make "args" const.
6013         * remote.c (remote_load): Make "name" const.
6014         * symfile.c (generic_load): Make "args" const.
6015         * target-delegates.c: Rebuild.
6016         * target.c (target_load): Make "arg" const.
6017         (debug_to_load): Make "args" const.
6018         * target.h (struct target_ops) <to_load>: Make parameter const.
6019         (target_load): Update.
6020
6021 2014-06-26  Tom Tromey  <tromey@redhat.com>
6022
6023         PR symtab/16902:
6024         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6025         (dwarf2_physname, read_partial_die)
6026         (guess_partial_die_structure_name, fixup_partial_die)
6027         (guess_full_die_structure_name, anonymous_struct_prefix)
6028         (dwarf2_name): Use per-BFD obstack.
6029
6030 2014-06-26  Yao Qi  <yao@codesourcery.com>
6031
6032         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6033         dummyframe and this_id into inner block below.
6034
6035 2014-06-26  Yao Qi  <yao@codesourcery.com>
6036
6037         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6038         with "signal_pass[0]" in the initialization of signal_pass.
6039
6040 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6041
6042         * record-btrace.c (record_btrace_generating_corefile)
6043         (record_btrace_prepare_to_generate_core)
6044         (record_btrace_done_generating_core): New.
6045         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6046         (record_btrace_store_registers, record_btrace_prepare_to_store):
6047         Forward request when generating a core file.
6048         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6049         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6050         to_done_generating_core.
6051
6052 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6053
6054         * target.h (target_ops) <to_prepare_to_generate_core>
6055         <to_done_generating_core>: New.
6056         (target_prepare_to_generate_core, target_done_generating_core): New.
6057         * target.c (target_prepare_to_generate_core)
6058         (target_done_generating_core): New.
6059         * target-delegates.c: Regenerate.
6060         * gcore.c: (write_gcore_file): Rename to ...
6061         (write_gcore_file_1): ...this.
6062         (write_gcore_file): Call target_prepare_to_generate_core
6063         and target_done_generating_core.
6064
6065 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6066
6067         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6068         * gcore.c (write_gcore_file): Free memory returned from
6069         make_corefile_notes.
6070         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6071         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6072
6073 2014-06-24  Yao Qi  <yao@codesourcery.com>
6074
6075         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6076         (arm_linux_init_abi): Set skip_trampoline_code with
6077         gdbarch_skip_trampoline_code instead of
6078         find_solib_trampoline_target.
6079
6080 2014-06-24  Yao Qi  <yao@codesourcery.com>
6081
6082         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6083         arm_skip_bx_reg returns non-zero.
6084
6085 2014-06-24  Yao Qi  <yao@codesourcery.com>
6086
6087         * arm-tdep.c (arm_skip_bx_reg): New function.
6088         (arm_skip_stub): Call arm_skip_bx_reg.
6089
6090 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6091
6092         * MAINTAINERS: Add myself as write-after-approval maintainer.
6093
6094 2014-06-23  Pedro Alves  <palves@redhat.com>
6095
6096         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6097         DR_CONTROL before setting DR0..DR3.
6098         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6099         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6100         bits of DR_CONTROL related to the debug register slot being
6101         disabled.  If all slots are vacant, clear local slowdown as well,
6102         and assert DR_CONTROL is 0.
6103
6104 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6105
6106         * python/lib/gdb/command/xmethods.py
6107         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6108         current progspace only if the string "progspace" matches LOCUS_RE.
6109
6110 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6111
6112         Fix --with-system-readline with readline-6.3 patch 5.
6113         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6114         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6115         types.
6116
6117 2014-06-20  Tom Tromey  <tromey@redhat.com>
6118
6119         * dwarf2read.c (dw2_get_real_path): Use correct type in
6120         OBSTACK_CALLOC.
6121         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6122
6123 2014-06-20  Gary Benson  <gbenson@redhat.com>
6124
6125         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6126         * common/glibc_thread_db.h: Likewise.
6127         * common/i386-cpuid.h: Likewise.
6128         * common/i386-gcc-cpuid.h: Likewise.
6129         * common/linux-btrace.h: Likewise.
6130         * common/linux-osdata.h: Likewise.
6131         * common/linux-procfs.h: Likewise.
6132         * common/linux-ptrace.h: Likewise.
6133         * common/mips-linux-watch.h: Likewise.
6134         * common/linux-btrace.c: Moved to nat.
6135         * common/linux-osdata.c: Likewise.
6136         * common/linux-procfs.c: Likewise.
6137         * common/linux-ptrace.c: Likewise.
6138         * common/mips-linux-watch.c: Likewise.
6139         * nat/gdb_thread_db.h: Moved from common.
6140         * nat/glibc_thread_db.h: Likewise.
6141         * nat/i386-cpuid.h: Likewise.
6142         * nat/i386-gcc-cpuid.h: Likewise.
6143         * nat/linux-btrace.c: Likewise.
6144         * nat/linux-btrace.h: Likewise.
6145         * nat/linux-osdata.c: Likewise.
6146         * nat/linux-osdata.h: Likewise.
6147         * nat/linux-procfs.c: Likewise.
6148         * nat/linux-procfs.h: Likewise.
6149         * nat/linux-ptrace.c: Likewise.
6150         * nat/linux-ptrace.h: Likewise.
6151         * nat/mips-linux-watch.c: Likewise.
6152         * nat/mips-linux-watch.h: Likewise.
6153         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6154         (object file files): Reordered.
6155         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6156         of glibc_thread_db.h.
6157
6158 2014-06-20  Gary Benson  <gbenson@redhat.com>
6159
6160         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6161         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6162         (i386_dr_low): Likewise.
6163         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6164         (i386_dr_low_set_addr): Likewise.
6165         (i386_dr_low_get_addr): Likewise.
6166         (i386_dr_low_can_set_control): Likewise.
6167         (i386_dr_low_set_control): Likewise.
6168         (i386_dr_low_get_control): Likewise.
6169         (i386_dr_low_get_status): Likewise.
6170         (i386_get_debug_register_length): Likewise.
6171         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6172         (i386_dr_low): Likewise.
6173         * nat/i386-dregs.c (i386-low.h): Remove include.
6174         (i386-nat.h): Likewise.
6175         (nat/i386-dregs.h): New include.
6176         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6177         (i386_dr_low_set_addr): Likewise.
6178         (i386_dr_low_get_addr): Likewise.
6179         (i386_dr_low_can_set_control): Likewise.
6180         (i386_dr_low_set_control): Likewise.
6181         (i386_dr_low_get_control): Likewise.
6182         (i386_dr_low_get_status): Likewise.
6183         (i386_get_debug_register_length): Likewise.
6184         (debug_hw_points): Likewise.
6185
6186 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6187
6188         * Makefile.in (SFILES): Add d-exp.y.
6189         (YYFILES): Add d-exp.c.
6190         (YYOBJ): Add d-exp.o.
6191         (local-maintainer-clean): Delete d-exp.c.
6192         * d-exp.y: New file.
6193         * d-lang.h (d_parse): New declaration.
6194         (d_error): New declaration.
6195         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6196         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6197         PREC_ORDER operators.
6198         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6199
6200 2014-06-19  Yao Qi  <yao@codesourcery.com>
6201
6202         * gdbthread.h (any_running): Remove the declaration.
6203         * thread.c (any_running): Remove.
6204
6205 2014-06-19  Yao Qi  <yao@codesourcery.com>
6206
6207         * gdbthread.h (struct thread_info) <state>: Change its type to
6208         'enum thread_state'.  Update comments.
6209
6210 2014-06-19  Pedro Alves  <palves@redhat.com>
6211
6212         * gdbthread.h (ALL_THREADS): Delete.
6213         (ALL_NON_EXITED_THREADS): New macro.
6214         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6215         instead of ALL_THREADS.
6216         * infrun.c (find_thread_needs_step_over)
6217         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6218         instead of ALL_THREADS.
6219         * record-btrace.c (record_btrace_open)
6220         (record_btrace_stop_recording, record_btrace_close)
6221         (record_btrace_is_replaying, record_btrace_resume)
6222         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6223         * remote.c (append_pending_thread_resumptions): Likewise.
6224         * thread.c (thread_apply_all_command): Likewise.
6225
6226 2014-06-19  Gary Benson  <gbenson@redhat.com>
6227
6228         * i386-nat.c (i386_stopped_by_watchpoint):
6229         Use i386_dr_stopped_by_watchpoint.
6230         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6231         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6232
6233 2014-06-19  Gary Benson  <gbenson@redhat.com>
6234
6235         * nat/i386-dregs.c: New file.
6236         * Makefile.in (i386-dregs.o): New rule.
6237         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6238         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6239         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6240         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6241         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6242         * config/i386/go32.mh (NATDEPFILES): Likewise.
6243         * config/i386/linux.mh (NATDEPFILES): Likewise.
6244         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6245         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6246         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6247         * i386-nat.h (debug_hw_points): New declaration.
6248         * i386-nat.c (breakpoint.h): Remove include.
6249         (command.h): Likewise.
6250         (target.h): Likewise.
6251         (gdb_assert.h): Likewise.
6252         (debug_hw_points): Made nonstatic.
6253         (debug_printf): Now in i386-dregs.c.
6254         (TARGET_HAS_DR_LEN_8): Likewise.
6255         (DR_CONTROL_SHIFT): Likewise.
6256         (DR_CONTROL_SIZE): Likewise.
6257         (DR_RW_EXECUTE): Likewise.
6258         (DR_RW_WRITE): Likewise.
6259         (DR_RW_READ): Likewise.
6260         (DR_RW_IORW): Likewise.
6261         (DR_LEN_1): Likewise.
6262         (DR_LEN_2): Likewise.
6263         (DR_LEN_4): Likewise.
6264         (DR_LEN_8): Likewise.
6265         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6266         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6267         (DR_ENABLE_SIZE): Likewise.
6268         (DR_LOCAL_SLOWDOWN): Likewise.
6269         (DR_GLOBAL_SLOWDOWN): Likewise.
6270         (DR_CONTROL_RESERVED): Likewise.
6271         (I386_DR_CONTROL_MASK): Likewise.
6272         (I386_DR_VACANT): Likewise.
6273         (I386_DR_LOCAL_ENABLE): Likewise.
6274         (I386_DR_GLOBAL_ENABLE): Likewise.
6275         (I386_DR_DISABLE): Likewise.
6276         (I386_DR_SET_RW_LEN): Likewise.
6277         (I386_DR_GET_RW_LEN): Likewise.
6278         (I386_DR_WATCH_HIT): Likewise.
6279         (i386_wp_op_t): Likewise.
6280         (i386_show_dr): Likewise.
6281         (i386_length_and_rw_bits): Likewise.
6282         (i386_insert_aligned_watchpoint): Likewise.
6283         (i386_remove_aligned_watchpoint): Likewise.
6284         (i386_handle_nonaligned_watchpoint): Likewise.
6285         (i386_update_inferior_debug_regs): Likewise.
6286         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6287         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6288         (i386_region_ok_for_watchpoint):
6289         Use i386_dr_region_ok_for_watchpoint.
6290         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6291
6292 2014-06-19  Gary Benson  <gbenson@redhat.com>
6293
6294         * i386-nat.c (i386_insert_hw_breakpoint): Use
6295         i386_insert_watchpoint.
6296         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6297
6298 2014-06-19  Gary Benson  <gbenson@redhat.com>
6299
6300         * i386-nat.c (i386_dr_show): Renamed to
6301         i386_show_dr and made static.  All uses updated.
6302         (i386_dr_length_and_rw_bits): Renamed to
6303         i386_length_and_rw_bits and made static.
6304         All uses updated.
6305         (i386_dr_insert_aligned_watchpoint): Renamed to
6306         i386_insert_aligned_watchpoint and made static.
6307         All uses updated.
6308         (i386_dr_remove_aligned_watchpoint): Renamed to
6309         i386_remove_aligned_watchpoint and made static.
6310         All uses updated.
6311         (i386_dr_update_inferior_debug_regs): Renamed to
6312         i386_update_inferior_debug_regs and made static.
6313         All uses updated.
6314         * nat/i386-dregs.h (i386_dr_show): Removed.
6315         (i386_dr_length_and_rw_bits): Likewise.
6316         (i386_dr_insert_aligned_watchpoint): Likewise.
6317         (i386_dr_remove_aligned_watchpoint): Likewise.
6318         (i386_dr_update_inferior_debug_regs): Likewise.
6319
6320 2014-06-19  Gary Benson  <gbenson@redhat.com>
6321
6322         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6323         * configure: Regenerate.
6324         * config.in: Likewise.
6325         * main.c (signal.h): New include.
6326         (setup_alternate_signal_stack): New function.
6327         (captured_main): Call the above.
6328         * cp-support.c (signal.h): New include.
6329         (catch_demangler_crashes): New flag.
6330         (SIGJMP_BUF): New define.
6331         (SIGSETJMP): Likewise.
6332         (SIGLONGJMP): Likewise.
6333         (gdb_demangle_jmp_buf): New static global.
6334         (gdb_demangle_attempt_core_dump): Likewise.
6335         (gdb_demangle_signal_handler): New function.
6336         (gdb_demangle): If catch_demangler_crashes is set, install the
6337         above signal handler before calling bfd_demangle, and restore
6338         the original signal handler afterwards.  Display the offending
6339         symbol and call demangler_warning the first time a segmentation
6340         fault is caught.
6341         (_initialize_cp_support): New maint set/show command.
6342
6343 2014-06-19  Gary Benson  <gbenson@redhat.com>
6344
6345         * utils.h (resource_limit_kind): New enum.
6346         (can_dump_core): New declaration.
6347         (warn_cant_dump_core): Likewise.
6348         (dump_core): Likewise.
6349         * utils.c (dump_core): Made nonstatic.  Added new
6350         parameter "limit_kind".
6351         (can_dump_core): Made nonstatic. Moved printing code to...
6352         (warn_cant_dump_core): New function.
6353         (can_dump_core_warn): Likewise.
6354         (internal_vproblem): Replace calls to can_dump_core with
6355         calls to can_dump_core_warn.  Supply new argument to each.
6356
6357 2014-06-19  Gary Benson  <gbenson@redhat.com>
6358
6359         * utils.h (demangler_vwarning): New declaration.
6360         (demangler_warning): Likewise.
6361         * utils.c (struct internal_problem)
6362         <user_settable_should_quit>: New field.
6363         <user_settable_should_dump_core>: Likewise
6364         (internal_error_problem): Add values for above new fields.
6365         (internal_warning_problem): Likewise.
6366         (demangler_warning_problem): New static global.
6367         (demangler_vwarning): New function.
6368         (demangler_warning): Likewise.
6369         (add_internal_problem_command): Selectively add commands.
6370         (_initialize_utils): New internal problem command.
6371         * maint.c (maintenance_demangler_warning): New function.
6372         (_initialize_maint_cmds): New command.
6373
6374 2014-06-18  Tom Tromey  <tromey@redhat.com>
6375
6376         * f-valprint.c (info_common_command_for_block): Update.
6377         * symtab.h (struct general_symbol_info) <common_block>: Now
6378         const.
6379
6380 2014-06-18  Tom Tromey  <tromey@redhat.com>
6381
6382         * symtab.h (struct symtab) <blockvector>: Now const.
6383         * ada-lang.c (ada_add_global_exceptions): Update.
6384         * buildsym.c (augment_type_symtab): Update.
6385         * dwarf2read.c (dw2_lookup_symbol): Update.
6386         * jit.c (finalize_symtab): Update.
6387         * jv-lang.c (add_class_symtab_symbol): Update.
6388         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6389         Update.
6390         * objfiles.c (objfile_relocate1): Update.
6391         * psymtab.c (lookup_symbol_aux_psymtabs)
6392         (maintenance_check_psymtabs): Update.
6393         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6394         Update.
6395         * spu-tdep.c (spu_catch_start): Update.
6396         * symmisc.c (dump_symtab_1): Update.
6397         * symtab.c (lookup_global_symbol_from_objfile)
6398         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6399         (basic_lookup_transparent_type_quick)
6400         (basic_lookup_transparent_type, find_pc_sect_symtab)
6401         (find_pc_sect_line, search_symbols): Update.
6402         * block.c (find_block_in_blockvector): Make "bl" const.
6403         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6404         const.
6405         (blockvector_contains_pc): Make "bv" const.
6406         (block_for_pc_sect): Update.
6407         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6408         (blockvector_contains_pc): Update.
6409         * breakpoint.c (resolve_sal_pc): Update.
6410         * inline-frame.c (block_starting_point_at): Update.
6411
6412 2014-06-18  Tom Tromey  <tromey@redhat.com>
6413
6414         * completer.c (complete_line): Make "line_buffer" const.
6415         * completer.h (complete_line): Update.
6416
6417 2014-06-18  Tom Tromey  <tromey@redhat.com>
6418
6419         * symtab.c (add_macro_name): Remove unneeded cast.
6420
6421 2014-06-18  Tom Tromey  <tromey@redhat.com>
6422
6423         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6424         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6425
6426 2014-06-18  Tom Tromey  <tromey@redhat.com>
6427
6428         * probe.c (info_probes_for_ops): Make "arg" const.
6429         * probe.h (info_probes_for_ops): Update.
6430
6431 2014-06-18  Tom Tromey  <tromey@redhat.com>
6432
6433         * varobj.c (varobj_create): Update.
6434         * valops.c (value_of_this): Update.
6435         * tracepoint.c (add_local_symbols, scope_info): Update.
6436         * symtab.h (struct general_symbol_info) <block>: Now const.
6437         * symtab.c (skip_prologue_sal)
6438         (default_make_symbol_completion_list_break_on)
6439         (skip_prologue_using_sal): Update.
6440         * stack.h (iterate_over_block_locals)
6441         (iterate_over_block_local_vars): Update.
6442         * stack.c (print_frame_args): Update.
6443         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6444         parameter const.
6445         (get_selected_block): Make return type const.
6446         * python/py-frame.c (frapy_block): Update.
6447         * python/py-block.c (gdbpy_block_for_pc): Update.
6448         * p-exp.y (%union) <bval>: Now const.
6449         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6450         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6451         * m2-exp.y (%union) <bval>: Now const.
6452         * linespec.c (get_current_search_block): Make return type const.
6453         (create_sals_line_offset, find_label_symbols): Update.
6454         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6455         Update.
6456         (block_starting_point_at): Make "block" const.
6457         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6458         (check_exception_resume): Update.
6459         * guile/scm-frame.c (gdbscm_frame_block): Update.
6460         * guile/scm-block.c (gdbscm_lookup_block): Update.
6461         * frame.h (get_frame_block): Update.
6462         (get_selected_block): Make return type const.
6463         * frame.c (frame_id_inner): Update.
6464         * f-valprint.c (info_common_command_for_block)
6465         (info_common_command): Update.
6466         * dwarf2loc.c (dwarf2_find_location_expression)
6467         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6468         (locexpr_describe_location_piece): Update.
6469         * c-exp.y (%union) <bval>: Now const.
6470         * breakpoint.c (resolve_sal_pc): Update.
6471         * blockframe.c (get_frame_block):Make return type const.
6472         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6473         (block_innermost_frame): Update.
6474         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6475         (block_for_pc, block_for_pc_sect): Update.
6476         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6477         'pblock' const.
6478         (block_for_pc_sect, block_for_pc): Make return type const.
6479         * ax-gdb.c (gen_expr): Update.
6480         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6481         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6482         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6483         (ada_read_var_value): Update.
6484         * ada-exp.y (struct name_info) <block>: Now const.
6485         (%union): Likewise.
6486         (block_lookup): Constify.
6487
6488 2014-06-18  Gary Benson  <gbenson@redhat.com>
6489
6490         * nat/i386-dregs.h: New file.
6491         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6492         * i386-nat.h (i386-dregs.h): New include.
6493         (DR_FIRSTADDR): Now in i386-dregs.h.
6494         (DR_LASTADDR): Likewise.
6495         (DR_NADDR): Likewise.
6496         (DR_STATUS): Likewise.
6497         (DR_CONTROL): Likewise.
6498         (i386_debug_reg_state): Likewise.
6499         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6500
6501 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6502
6503         * breakpoint.c (set_longjmp_breakpoint): Call
6504         momentary_breakpoint_from_master with additional argument.
6505         (set_longjmp_breakpoint_for_call_dummy): Call
6506         momentary_breakpoint_from_master with additional argument.
6507         (set_std_terminate_breakpoint): Call
6508         momentary_breakpoint_from_master with additional argument.
6509         (momentary_breakpoint_from_master): Add argument to function
6510         definition and use it to initialize structure member flag.
6511         (clone_momentary_breakpoint): Call
6512         momentary_breakpoint_from_master with additional argument.
6513         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6514         member flags set in momentary_breakpoint_from_master.
6515
6516 2014-06-18  Gary Benson  <gbenson@redhat.com>
6517
6518         * i386-nat.c (i386_show_dr): Renamed to
6519         i386_dr_show and made nonstatic.  All uses updated.
6520         (i386_length_and_rw_bits): Renamed to
6521         i386_dr_length_and_rw_bits and made nonstatic.
6522         All uses updated.
6523         (i386_insert_aligned_watchpoint): Renamed to
6524         i386_dr_insert_aligned_watchpoint and made nonstatic.
6525         All uses updated.
6526         (i386_remove_aligned_watchpoint): Renamed to
6527         i386_dr_remove_aligned_watchpoint and made nonstatic.
6528         All uses updated.
6529         (i386_update_inferior_debug_regs): Renamed to
6530         i386_dr_update_inferior_debug_regs and made nonstatic.
6531         All uses updated.
6532
6533 2014-06-18  Gary Benson  <gbenson@redhat.com>
6534
6535         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6536         (i386_dr_low_can_set_control): Likewise.
6537         (i386_dr_low_set_addr): Likewise.
6538         (i386_dr_low_set_control): Likewise.
6539         (i386_dr_low_get_addr): Likewise.
6540         (i386_dr_low_get_status): Likewise.
6541         (i386_dr_low_get_control): Likewise.
6542         (i386_insert_aligned_watchpoint): Use new macros.
6543         (i386_update_inferior_debug_regs): Likewise.
6544         (i386_stopped_data_address): Likewise.
6545
6546 2014-06-18  Gary Benson  <gbenson@redhat.com>
6547
6548         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6549         New parameter.  All uses updated.
6550
6551 2014-06-18  Gary Benson  <gbenson@redhat.com>
6552
6553         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6554         All uses updated.
6555
6556 2014-06-18  Gary Benson  <gbenson@redhat.com>
6557
6558         * i386-nat.c (debug_printf): New macro.
6559         (i386_get_debug_register_length): Likewise.
6560         (TARGET_HAS_DR_LEN_8): Use above macro.
6561         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6562         and printf_unfiltered.  Use phex to format values.
6563
6564 2014-06-18  Gary Benson  <gbenson@redhat.com>
6565
6566         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6567         Make const.
6568
6569 2014-06-18  Gary Benson  <gbenson@redhat.com>
6570
6571         * i386-nat.c: Comment changes.
6572
6573 2014-06-18  Gary Benson  <gbenson@redhat.com>
6574
6575         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6576
6577 2014-06-18  Gary Benson  <gbenson@redhat.com>
6578
6579         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6580         (i386_insert_aligned_watchpoint): Likewise.
6581         (i386_remove_aligned_watchpoint): Likewise.
6582         (i386_handle_nonaligned_watchpoint): Likewise.
6583
6584 2014-06-18  Gary Benson  <gbenson@redhat.com>
6585
6586         * i386-nat.c: Whitespace changes.
6587
6588 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6589
6590         * MAINTAINERS: Update Roland McGrath's email address.
6591         Thanks to Sergio Durigan Junior for pointing out that he left
6592         Red Hat a while ago, and giving me a current address.
6593
6594 2014-06-17  Tom Tromey  <tromey@redhat.com>
6595
6596         * utils.h (savestring): Remove declaration.
6597
6598 2014-06-17  Tom Tromey  <tromey@redhat.com>
6599
6600         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6601
6602 2014-06-16  Keith Seitz  <keiths@redhat.com>
6603
6604         PR mi/15863
6605         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6606         to update the varobj if inferior_ptid is null_ptid.
6607
6608 2014-06-16  Tom Tromey  <tromey@redhat.com>
6609
6610         * target.h (struct target_ops) <to_info_proc>: Make parameter
6611         const.
6612         (target_info_proc): Update.
6613         * target.c (target_info_proc): Make "args" const.
6614         * procfs.c (procfs_info_proc): Update.
6615         * linux-tdep.c (linux_info_proc): Update.
6616         (linux_core_info_proc_mappings): Make "args" const.
6617         (linux_core_info_proc): Update.
6618         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6619         * gdbarch.c: Rebuild.
6620         * gdbarch.h: Rebuild.
6621         * corelow.c (core_info_proc): Update.
6622
6623 2014-06-16  Tom Tromey  <tromey@redhat.com>
6624
6625         * target.h (struct target_ops) <to_disconnect>: Make parameter
6626         const.
6627         (target_disconnect): Update.
6628         * target.c (target_disconnect): Make "args" const.
6629         * target-delegates.c: Rebuild.
6630         * remote.c (remote_disconnect): Update.
6631         * record.h (record_disconnect): Update.
6632         * record.c (record_disconnect): Update.
6633         * inf-child.c (inf_child_disconnect): Update.
6634
6635 2014-06-16  Tom Tromey  <tromey@redhat.com>
6636
6637         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6638         * target.c (debug_to_rcmd, default_rcmd): Update.
6639         * target-delegates.c: Rebuild.
6640         * remote.c (remote_rcmd): Update.
6641         * monitor.c (monitor_rcmd): Update.
6642
6643 2014-06-16  Pedro Alves  <palves@redhat.com>
6644
6645         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6646         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6647         have OBJF_SHARED set.
6648         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6649         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6650         instead of OBJF_USERLOADED.
6651         * objfiles.h (OBJF_SHARED): Update comment.
6652         (userloaded_objfile_contains_address_p): Rename to ...
6653         (shared_objfile_contains_address_p): ... this, and update
6654         comments.
6655         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6656         new objfile.
6657         (remove_symbol_file_command): Skip objfiles that don't have
6658         OBJF_SHARED set.
6659
6660 2014-06-16  Tom Tromey  <tromey@redhat.com>
6661
6662         * minsyms.h (prim_record_minimal_symbol)
6663         (prim_record_minimal_symbol_and_info): Update comments.
6664
6665 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6666
6667         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6668         or --without-guile, according to how GDB was built.
6669
6670 2014-06-13  Tom Tromey  <tromey@redhat.com>
6671
6672         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6673         to help_list.
6674         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6675         to help_list.
6676         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6677         help_list.
6678         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6679         help_list.Pass all_commands, not -1, to help_list.
6680         * cli/cli-dump.c (dump_command, append_command)
6681         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6682         (binary_dump_command, binary_append_command): Pass all_commands,
6683         not -1, to help_list.
6684         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6685         -1, to help_list.
6686         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6687         -1, to help_list.
6688         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6689         help_list.
6690         * top.c (set_history): Pass all_commands, not -1, to help_list.
6691         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6692         all_commands, not -1, to help_list.
6693         * symfile.c (overlay_command): Pass all_commands, not -1, to
6694         help_list.
6695         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6696         help_list.
6697         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6698         help_list.
6699         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6700         -1, to help_list.
6701         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6702         not -1, to help_list.
6703         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6704         not -1, to help_list.
6705         * maint.c (maintenance_command, maintenance_info_command)
6706         (maintenance_print_command, maintenance_set_cmd): Pass
6707         all_commands, not -1, to help_list.
6708         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6709         help_list.
6710         * language.c (set_check): Pass all_commands, not -1, to help_list.
6711         * infcmd.c (unset_command): Pass all_commands, not -1, to
6712         help_list.
6713         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6714         help_list.
6715         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6716         help_list.
6717         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6718         help_list.
6719         * breakpoint.c (save_command): Pass all_commands, not -1, to
6720         help_list.
6721         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6722         all_commands, not -1, to help_list.
6723
6724 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6725
6726         * regcache.c (struct register_to_invalidate): New structure.
6727         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6728         functions.
6729         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6730
6731 2014-06-12  Yao Qi  <yao@codesourcery.com>
6732
6733         * varobj.c (varobj_get_num_children): Call
6734         varobj_is_dynamic_p.
6735         (varobj_list_children): Likewise.
6736         (varobj_update): Likewise.  Update comments.
6737
6738 2014-06-12  Yao Qi  <yao@codesourcery.com>
6739
6740         * varobj.c (varobj_pretty_printed_p): Rename to ...
6741         (varobj_is_dynamic_p): ... this.  New function.
6742         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6743         (varobj_is_dynamic_p): Declare.
6744         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6745         (mi_print_value_p, varobj_update_one): Likewise.
6746
6747 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6748             Yao Qi  <yao@codesourcery.com>
6749
6750         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6751         (varobj_get_iterator): Wrap up code for pretty-printer by
6752         "#if HAVE_PYTHON" and "#endif".
6753         (update_dynamic_varobj_children): Likewise.
6754
6755 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6756             Yao Qi  <yao@codesourcery.com>
6757
6758         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6759         gdb_python_initialized is false.  Move some code from varobj.c.
6760         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6761         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6762         (struct varobj_item): Moved to varobj-iter.h".
6763         (varobj_clear_saved_item): New function.
6764         (update_dynamic_varobj_children): Move python-related code to
6765         py-varobj.c.
6766         (free_variable): Call varobj_clear_saved_item and
6767         varobj_iter_delete.
6768
6769 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6770             Yao Qi  <yao@codesourcery.com>
6771
6772         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6773         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6774         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6775         (py-varobj.o): New rule.
6776         * python/py-varobj.c: New file.
6777         * python/python-internal.h (py_varobj_get_iterator): Declare.
6778         * varobj-iter.h: New file.
6779         * varobj.c: Include "varobj-iter.h"
6780         (struct varobj) <child_iter>: Change its type from "PyObject *"
6781         to "struct varobj_iter *".
6782         <saved_item>: Likewise.
6783         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6784         [HAVE_PYTHON] (varobj_get_iterator): New function.
6785         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6786         python-specific code to python/py-varobj.c.
6787         (install_visualizer): Call varobj_iter_delete instead of
6788         Py_XDECREF.
6789         * varobj.h (varobj_ensure_python_env): Declare.
6790
6791 2014-06-12  Yao Qi  <yao@codesourcery.com>
6792
6793         * varobj.c (struct varobj_item): New structure.
6794         (create_child_with_value): Update declaration.
6795         (varobj_add_child): Replace arguments 'name' and 'value' with
6796         'item'.  All callers updated.
6797         (install_dynamic_child): Likewise.
6798         (update_dynamic_varobj_children): Likewise.
6799         (varobj_add_child): Likewise.
6800         (create_child_with_value): Likewise.
6801
6802 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6803
6804         * NEWS: Create a new section for the next release branch.
6805         Rename the section of the current branch, now that it has
6806         been cut.
6807
6808 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6809
6810         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6811         * version.in: Bump version to 7.8.50.DATE-cvs.
6812
6813 2014-06-11  Pedro Alves  <palves@redhat.com>
6814
6815         PR remote/17028
6816         * ser-mingw.c (net_windows_socket_check_pending): New function.
6817         (net_windows_select_thread): Ignore spurious wakeups.  Use
6818         net_windows_socket_check_pending.
6819         (net_windows_wait_handle): Check for pending events with
6820         ioctlsocket, through net_windows_socket_check_pending, instead of
6821         checking the socket's event.
6822
6823 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6824
6825         * python/python-internal.h (gdb_PyObject_GetAttrString)
6826         (gdb_PyObject_HasAttrString): New inline function definitions.
6827         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6828         char * of the second argument to PyObject_GetAttrString.
6829
6830 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6831
6832         * serial.c (serial_write): Fix index of character to be printed
6833         in call to serial_logchar when serial debug traces are enabled.
6834
6835 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6836
6837         * gdbtypes (resolve_dynamic_range): Add function description.
6838
6839 2014-06-09  Pedro Alves  <palves@redhat.com>
6840
6841         * linux-nat.c (linux_child_follow_fork): Initialize status with
6842         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6843         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6844         state.
6845
6846 2014-06-09  Gary Benson  <gbenson@redhat.com>
6847
6848         * common/signals.c (gdb_signal_from_host): Reorder to separate
6849         the always-available ANSI-standard signals from the signals that
6850         require checking.
6851         (do_gdb_signal_to_host): Likewise.
6852         * proc-events.c (signal_table): Likewise.
6853
6854 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6855
6856         * common/linux-ptrace.c (linux_disable_event_reporting): New
6857         function.
6858         * common/linux-ptrace.h (linux_disable_event_reporting): New
6859         declaration.
6860         * linux-nat.c (linux_child_follow_fork): Do a single step before
6861         detach.
6862
6863 2014-06-07  Keith Seitz  <keiths@redhat.com>
6864
6865         Revert:
6866         PR c++/16253
6867         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6868         from symbol_matches_domain in symtab.c. All local callers
6869         of symbol_matches_domain updated.
6870         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6871         search STRUCT_DOMAIN.
6872         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6873         independently.  standard_lookup will do that automatically.
6874         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6875         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6876         (cp_lookup_symbol_in_namespace): Likewise.
6877         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6878         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6879         may return a STRUCT_DOMAIN match.
6880         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6881         * cp-support.c: Include language.h.
6882         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6883         VAR_DOMAIN.
6884         * psymtab.c (match_partial_symbol): Compare the requested
6885         domain with the symbol's domain directly.
6886         (lookup_partial_symbol): Likewise.
6887         * symtab.c (lookup_symbol_in_language): Explain when/why
6888         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6889         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6890         appropriate languages.
6891         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6892         and moved to ada-lang.c
6893         (lookup_block_symbol): Explain that this function only returns
6894         symbol matching the requested DOMAIN.
6895         Compare the requested domain with the symbol's domain directly.
6896         (iterate_over_symbols): Compare the requested domain with the
6897         symbol's domain directly.
6898         * symtab.h (symbol_matches_domain): Remove.
6899
6900 2014-06-06  Doug Evans  <xdje42@gmail.com>
6901
6902         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6903         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6904         (gdbscm_guile_version_is_at_least): Declare.
6905         (gdbscm_scm_string_to_int): Declare.
6906         * guile/guile.c (gdbscm_guile_major_version): New global.
6907         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6908         (guile_datadir): New static global.
6909         (gdbscm_guile_data_directory): New function.
6910         (initialize_scheme_side): Update.
6911         (misc_guile_functions): Add guile-data-directory.
6912         (initialize_gdb_module): Fetch guile version number.
6913         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6914         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6915         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6916         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6917         comments.
6918         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6919         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6920         * guile/scm-value.c (gdbscm_value_to_string): Only call
6921         scm_port_conversion_strategy if Guile version >= 2.0.6.
6922
6923 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6924
6925         * main.c (print_gdb_help): Add -q and --silent.
6926
6927 2014-06-06  Gary Benson  <gbenson@redhat.com>
6928
6929         * common/signals.c: Remove preprocessor conditionals for
6930         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6931         SIGSEGV and SIGTERM.
6932         * proc-events.c: Likewise.
6933
6934 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6935
6936         * symfile.c (symfile_free_objfile): Remove restriction to
6937         OBJF_USERLOADED.
6938         * symfile-mem.c (symbol_file_add_from_memory): Call
6939         add_target_sections_of_objfile.
6940
6941 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6942
6943         * guile/scm-value.c (gdbscm_history_append_x): Use
6944         'vlscm_get_value_smob_arg_unsafe' instead of
6945         'vlscm_scm_to_value'.
6946
6947 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6948
6949         PR mi/15806
6950         * utils.c (printchar): Don't escape at all if quoter is NUL.
6951         Update function documentation to clarify effect of parameter
6952         QUOTER.
6953         * remote.c (escape_buffer): Pass '\\' as the quoter to
6954         fputstrn_unfiltered.
6955         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6956         generate the output.
6957         (mi_solib_unloaded): Same.
6958
6959 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6960
6961         * development.sh: Delete.
6962         * Makefile.in (config.status): Adjust dependency on development.sh.
6963         * configure.ac: Adjust development.sh source call.
6964         * configure: Regenerate.
6965
6966 2014-06-04  Doug Evans  <xdje42@gmail.com>
6967
6968         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6969         is_scheme_bkpt, spec.
6970         (bpscm_make_breakpoint_smob): Initialize new members.
6971         (gdbscm_create_breakpoint_x): Split into two ...
6972         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6973         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6974         (scheme_function breakpoint_functions): Update.
6975         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6976         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6977         register-breakpoint!.
6978
6979 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6980
6981         PR server/17023
6982         * mem-break.c (z_type_supported): Return zero if
6983         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6984
6985 2014-06-04  Tom Tromey  <tromey@redhat.com>
6986
6987         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6988         value_from_contents_and_address_unresolved.
6989         (ada_template_to_fixed_record_type_1): Likewise.
6990         (ada_which_variant_applies): Likewise.
6991         * value.h (value_from_contents_and_address_unresolved): Declare.
6992         * value.c (value_from_contents_and_address_unresolved): New
6993         function.
6994         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6995         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6996         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6997
6998 2014-06-04  Tom Tromey  <tromey@redhat.com>
6999
7000         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7001
7002 2014-06-04  Tom Tromey  <tromey@redhat.com>
7003
7004         * procfs.c (procfs_attach): Make "args" const.
7005         * windows-nat.c (windows_attach): Make "args" const.
7006         * nto-procfs.c (procfs_attach): Make "args" const.
7007         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7008         * go32-nat.c (go32_attach): Make "args" const.
7009         * gnu-nat.c (gnu_attach): Make "args" const.
7010         * darwin-nat.c (darwin_attach): Make "args" const.
7011         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7012         * linux-nat.c (linux_nat_attach): Make "args" const.
7013         * remote.c (extended_remote_attach_1, extended_remote_attach):
7014         Make "args" const.
7015         * target.h (struct target_ops) <to_attach>: Make "args" const.
7016         (find_default_attach): Likewise.
7017         * utils.c (parse_pid_to_attach): Make "args" const.
7018         * utils.h (parse_pid_to_attach): Update.
7019
7020 2014-06-04  Tom Tromey  <tromey@redhat.com>
7021
7022         * target-delegates.c: Rebuild.
7023         * target.c (default_thread_address_space): New function.
7024         (target_thread_address_space): Simplify.
7025         * target.h (struct target_ops) <to_thread_address_space>: Add
7026         TARGET_DEFAULT_FUNC.
7027
7028 2014-06-04  Doug Evans  <xdje42@gmail.com>
7029
7030         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7031
7032 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7033
7034         * record-btrace.c: Include event-loop.h and inf-loop.h.
7035         (record_btrace_resume_exec_dir)
7036         (record_btrace_async_inferior_event_handler)
7037         (record_btrace_handle_async_inferior_event): New.
7038         (record_btrace_open): Create async event handler.
7039         (record_btrace_close): Delete async event handler.
7040         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7041         Mark async event handler.
7042         (record_btrace_execution_direction): New.
7043         (init_record_btrace_ops): Initialize to_execution_direction.
7044
7045 2014-06-03  Doug Evans  <xdje42@gmail.com>
7046
7047         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7048         (gdbscm_make_parameter): Ditto.
7049
7050 2014-06-03  Doug Evans  <dje@google.com>
7051
7052         * exec.c (exec_close_1): Call clear_section_table instead of
7053         resize_section_table.
7054         (clear_section_table): New function.
7055         (resize_section_table): Make static.  Rename arg num_added to
7056         adjustment.
7057         * exec.h (clear_section_table): Declare.
7058         (resize_section_table): Delete.
7059         * progspace.c (release_program_space): Call clear_section_table
7060         instead of resize_section_table.
7061
7062 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7063
7064         * NEWS (Python Scripting): Add entry about the new xmethods
7065         feature.
7066
7067 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7068
7069         * python/py-xmethods.c: New file.
7070         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7071         (objfpy_dealloc): XDECREF on the new xmethods field.
7072         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7073         field.
7074         (objfpy_get_xmethods): New function.
7075         (objfile_getset): New entry 'xmethods'.
7076         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7077         (pspy_dealloc): XDECREF on the new xmethods field.
7078         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7079         field.
7080         (pspy_get_xmethods): New function.
7081         (pspace_getset): New entry 'xmethods'.
7082         * python/python-internal.h: Add declarations for new functions.
7083         * python/python.c (_initialize_python): Invoke
7084         gdbpy_initialize_xmethods.
7085         * python/lib/gdb/__init__.py (xmethods): New
7086         attribute.
7087         * python/lib/gdb/xmethod.py: New file.
7088         * python/lib/gdb/command/xmethods.py: New file.
7089
7090 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7091
7092         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7093         best match method returned by find_overload_match is an xmethod.
7094         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7095         the best matching operator returned by find_overload_match is an
7096         xmethod.
7097         * valops.c: #include "extension.h".
7098         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7099         Return void.  The list of matching source methods is returned in
7100         "fn_list" and a vector of matching debug method workers is
7101         returned in "xm_worker_vec".  Update all callers.
7102         (value_find_oload_method_list): Likewise.
7103         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7104         non-NULL, then the index of the best matching method in this
7105         vector is returned.  Update all callers.
7106         (find_overload_match): Include xmethods while performing overload
7107         resolution.
7108
7109 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7110
7111         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7112         * extension-priv.h (struct extension_language_ops): Add the
7113         xmethod interface.
7114         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7115         get_matching_xmethod_workers, get_xmethod_argtypes,
7116         invoke_xmethod, free_xmethod_worker,
7117         free_xmethod_worker_vec): New functions.
7118         * extension.h: #include "common/vec.h".
7119         New function declarations.
7120         (struct xmethod_worker): New struct.
7121         (VEC (xmethod_worker_ptr)): New vector type.
7122         (xmethod_worker_ptr): New typedef.
7123         (xmethod_worker_vec): Likewise.
7124         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7125         builtin_type.
7126         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7127         (struct builtin_type): New field "xmethod".
7128         * valarith.c (value_ptradd): Assert that the value argument is not
7129         lval_xcallable.
7130         * valops.c (value_must_coerce_to_target): Return 0 for
7131         lval_xcallable values.
7132         * value.c (struct value): New field XM_WORKER in the field
7133         LOCATION.
7134         (value_address, value_raw_address): Return 0 for lval_xcallable
7135         values.
7136         (set_value_address): Assert that the value is not an
7137         lval_xcallable.
7138         (value_free): Free the associated xmethod worker when freeing
7139         lval_xcallable values.
7140         (set_value_component_location): Assert that the WHOLE value is not
7141         lval_xcallable.
7142         (value_of_xmethod, call_xmethod): New functions.
7143         * value.h: Declare "struct xmethod_worker".
7144         Declare new functions value_of_xmethod, call_xmethod.
7145
7146 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7147             Pedro Alves  <palves@redhat.com>
7148
7149         PR breakpoints/17000
7150         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7151         New function, extracted from software_breakpoint_inserted_here_p.
7152         (software_breakpoint_inserted_here_p): Replace factored out code
7153         by call to find_non_raw_software_breakpoint_inserted_here.
7154         (bp_target_info_copy_insertion_state): New function.
7155         (bkpt_insert_location): Handle the case of a single-step
7156         breakpoint already inserted at the same address.
7157         (bkpt_remove_location): Handle the case of a single-step
7158         breakpoint still inserted at the same address.
7159         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7160         breakpoint already inserted at the same address.
7161         (deprecated_remove_raw_breakpoint): Handle the case of a
7162         non-raw breakpoint still inserted at the same address.
7163         (find_single_step_breakpoint): New function, extracted from
7164         single_step_breakpoint_inserted_here_p.
7165         (find_single_step_breakpoint): New function,
7166         factored out from single_step_breakpoint_inserted_here_p.
7167         (single_step_breakpoint_inserted_here_p): Reimplement.
7168
7169 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7170
7171         Pushed by Joel Brobecker  <brobecker@adacore.com>
7172         * source.c (show_substitute_path_command): Fix display of matching
7173         substitution rules.
7174
7175 2014-06-03  Gary Benson  <gbenson@redhat.com>
7176
7177         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7178
7179 2014-06-02  Doug Evans  <xdje42@gmail.com>
7180
7181         Add parameter support for Guile.
7182         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7183         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7184         (scm-param.o): New rule.
7185         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7186         (gdbscm_misc_error): Declare.
7187         (gdbscm_canonicalize_command_name): Declare.
7188         (gdbscm_scm_to_host_string): Declare.
7189         (gdbscm_scm_from_host_string): Declare.
7190         (gdbscm_initialize_parameters): Declare.
7191         * guile/guile.c (initialize_gdb_module): Call
7192         gdbscm_initialize_parameters.
7193         * guile/lib/gdb.scm: Export parameter symbols.
7194         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7195         cmdscm_canonicalize_name and made public.  All callers updated.
7196         * guile/scm-exception.c (gdbscm_misc_error): New function.
7197         * guile/scm-param.c: New file.
7198         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7199         (gdbscm_scm_to_host_string): New function.
7200         (gdbscm_scm_from_host_string): New function.
7201         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7202
7203 2014-06-02  Doug Evans  <xdje42@gmail.com>
7204
7205         Add command support for Guile.
7206         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7207         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7208         (scm-cmd.o): New rule.
7209         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7210         (gdbscm_user_error_p): Declare.
7211         (gdbscm_parse_command_name): Declare.
7212         (gdbscm_valid_command_class_p): Declare.
7213         (gdbscm_initialize_commands): Declare.
7214         * guile/guile.c (initialize_gdb_module): Call
7215         gdbscm_initialize_commands.
7216         * guile/lib/gdb.scm: Export command symbols.
7217         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7218         (throw-user-error): New function.
7219         * guile/scm-cmd.c: New file.
7220         * guile/scm-exception.c (user_error_symbol): New static global.
7221         (gdbscm_user_error_p): New function.
7222         (gdbscm_initialize_exceptions): Set user_error_symbol.
7223         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7224
7225 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7226
7227         * top.c (command_loop): Handle comments here...
7228         (command_line_input): ... not here.
7229
7230 2014-06-02  Doug Evans  <xdje42@gmail.com>
7231
7232         Add progspace support for Guile.
7233         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7234         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7235         (scm-progspace.o): New rule.
7236         * guile/guile-internal.h (pspace_smob): New typedef.
7237         (psscm_pspace_smob_pretty_printers): Declare.
7238         (psscm_pspace_smob_from_pspace): Declare.
7239         (psscm_scm_from_pspace): Declare.
7240         * guile/guile.c (initialize_gdb_module): Call
7241         gdbscm_initialize_pspaces.
7242         * guile/lib/gdb.scm: Export progspace symbols.
7243         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7244         support.
7245         (append-pretty-printer!): Ditto.
7246         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7247         Implement.
7248         * guile/scm-progspace.c: New file.
7249
7250 2014-06-03  Alan Modra  <amodra@gmail.com>
7251
7252         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7253         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7254
7255 2014-06-02  Doug Evans  <dje@google.com>
7256
7257         Add support for skeletonless type units.
7258         * dwarf2read.c (struct dwarf2_per_objfile): New member
7259         n_allocated_type_units.
7260         (struct dwarf2_per_objfile) <tu_stats>: New member
7261         nr_all_type_units_reallocs.
7262         (create_signatured_type_table_from_index): Initialize
7263         n_allocated_type_units
7264         (create_all_type_units): Ditto.
7265         (add_type_unit): Move up in file.  New arg slot.
7266         All callers updated.  Increase space for all_type_units more
7267         efficiently.
7268         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7269         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7270         (lookup_dwp_signatured_type): Ditto.
7271         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7272         All callers updated.
7273         (build_type_psymtabs_1): Leave type_unit_groups as
7274         NULL if no TUs present.
7275         (print_tu_stats): New function.
7276         (process_skeletonless_type_unit): New function.
7277         (process_dwo_file_for_skeletonless_type_units): New
7278         function.
7279         (process_skeletonless_type_units): New function.
7280         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7281         Call print tu_stats if debugging enabled.
7282
7283 2014-06-02  Pedro Alves  <palves@redhat.com>
7284
7285         * breakpoint.c (build_target_command_list): Don't build a command
7286         list if we have any duplicate location that isn't a dprintf.
7287
7288 2014-06-02  Pedro Alves  <palves@redhat.com>
7289
7290         * breakpoint.c (dprintf_breakpoint_hit): New function.
7291         (initialize_breakpoint_ops): Install it as dprintf's
7292         breakpoint_hit method.
7293
7294 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7295
7296         * source.c (substitute_path_rule_matches): Simplify using
7297         filename_ncmp instead of FILENAME_CMP.
7298
7299 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7300
7301         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7302
7303 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7304
7305         * configure.ac: When Guile is available, check for the
7306         availability of 'scm_new_smob'.
7307         * configure, config.h.in: Regenerate.
7308         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7309         function.
7310
7311 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7312
7313         * frame.c (struct frame_info): Add stop_string field.
7314         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7315         (get_prev_frame_always): Old content moved into
7316         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7317         TRY_CATCH, handle MEMORY_ERROR exceptions.
7318         (frame_stop_reason_string): New function definition.
7319         * frame.h (unwind_stop_reason_to_string): Extend comment to
7320         mention frame_stop_reason_string.
7321         (frame_stop_reason_string): New function declaration.
7322         * stack.c (frame_info): Switch to frame_stop_reason_string.
7323         (backtrace_command_1): Switch to frame_stop_reason_string.
7324         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7325         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7326         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7327
7328 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7329
7330         * frame.c (frame_stop_reason_string): Rename to ...
7331         (unwind_stop_reason_to_string): this.
7332         * frame.h (frame_stop_reason_string): Rename to ...
7333         (unwind_stop_reason_to_string): this.
7334         * stack.c (frame_info): Update call to frame_stop_reason_string.
7335         (backtrace_command_1): Likewise.
7336         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7337         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7338
7339 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7340
7341         * frame.c (remove_prev_frame): New function.
7342         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7343         remove_prev_frame.
7344
7345 2014-05-29  Pedro Alves  <palves@redhat.com>
7346
7347         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7348         and make it const.  When a single-step decays to a continue,
7349         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7350         to step to user_visible_resume_ptid, not what we ask the
7351         target to do.
7352
7353 2014-05-29  Pedro Alves  <palves@redhat.com>
7354
7355         * infrun.c (process_event_stop_test, handle_step_into_function)
7356         (handle_step_into_function_backward): Adjust.
7357         Don't set the even thread's stop_step and call stop_waiting before
7358         calling end_stepping_range.  Instead do that ...
7359         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7360
7361 2014-05-29  Pedro Alves  <palves@redhat.com>
7362
7363         * infrun.c (stop_stepping): Rename to ...
7364         (stop_waiting): ... this.
7365         (proceed): Update comment.
7366         (process_event_stop_test, handle_inferior_event)
7367         (handle_signal_stop, handle_step_into_function)
7368         (handle_step_into_function_backward): Update.
7369
7370 2014-05-29  Pedro Alves  <palves@redhat.com>
7371
7372         * infcall.c (run_inferior_call): Don't check whether the current
7373         thread is running after the proceed call.
7374
7375 2014-05-29  Pedro Alves  <palves@redhat.com>
7376             Tom Tromey  <tromey@redhat.com>
7377
7378         * NEWS: Mention "maint set target-async", "set mi-async", and that
7379         background execution commands are now always available.
7380         * target.h (target_async_permitted): Update comment.
7381         * target.c (target_async_permitted, target_async_permitted_1):
7382         Default to 1.
7383         (set_target_async_command): Rename to ...
7384         (maint_set_target_async_command): ... this.
7385         (show_target_async_command): Rename to ...
7386         (maint_show_target_async_command): ... this.
7387         (_initialize_target): Adjust.
7388         * infcmd.c (prepare_execution_command): Make extern.
7389         * inferior.h (prepare_execution_command): Declare.
7390         * infrun.c (set_observer_mode): Leave target async alone.
7391         * mi/mi-interp.c (mi_interpreter_init): Install
7392         mi_on_sync_execution_done as sync_execution_done observer.
7393         (mi_on_sync_execution_done): New function.
7394         (mi_execute_command_input_handler): Don't print the prompt if we
7395         just started a synchronous command with an async target.
7396         (mi_on_resume): Check sync_execution before printing prompt.
7397         * mi/mi-main.h (mi_async_p): Declare.
7398         * mi/mi-main.c: Include gdbcmd.h.
7399         (mi_async_p): New function.
7400         (mi_async, mi_async_1): New globals.
7401         (set_mi_async_command, show_mi_async_command, mi_async): New
7402         functions.
7403         (exec_continue): Call prepare_execution_command.
7404         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7405         (mi_execute_async_cli_command): Use mi_async_p.
7406         (_initialize_mi_main): Install "set mi-async".  Make
7407         "target-async" a deprecated alias.
7408
7409 2014-05-29  Pedro Alves  <palves@redhat.com>
7410
7411         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7412         (_initialize_cli_interp): Adjust.
7413         * event-loop.c: Include "observer.h".
7414         (start_event_loop): Notify 'command_error' observers instead of
7415         calling display_gdb_prompt.  Remove FIXME comment.
7416         * event-top.c (display_gdb_prompt): Remove call into the
7417         interpreters.
7418         * inf-loop.c: Include "observer.h".
7419         (inferior_event_handler): Notify 'command_error' observers instead
7420         of calling display_gdb_prompt.
7421         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7422         observers instead of calling display_gdb_prompt.
7423         * interps.c (interp_set): Don't call display_gdb_prompt.
7424         (current_interp_display_prompt_p): Delete.
7425         * interps.h (interp_prompt_p): Delete declaration.
7426         (interp_prompt_p_ftype): Delete.
7427         (struct interp_procs) <prompt_proc_p>: Delete field.
7428         (current_interp_display_prompt_p): Delete declaration.
7429         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7430         (_initialize_mi_interp): Adjust.
7431         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7432         'command_error' observers.
7433         (tui_on_sync_execution_done, tui_on_command_error): New
7434         functions.
7435         (tui_display_prompt_p): Delete.
7436         (_initialize_tui_interp): Adjust.
7437
7438 2014-05-29  Pedro Alves  <palves@redhat.com>
7439
7440         PR gdb/13860
7441         * cli/cli-interp.c: Include infrun.h and observer.h.
7442         (cli_uiout, cli_interp): New globals.
7443         (cli_on_signal_received, cli_on_end_stepping_range)
7444         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7445         functions.
7446         (cli_interpreter_init): Install them as 'end_stepping_range',
7447         'signal_received' 'signal_exited', 'exited' and 'no_history'
7448         observers.
7449         (_initialize_cli_interp): Remove cli_interp local.
7450         * infrun.c (handle_inferior_event): Call the several stop reason
7451         observers instead of printing the stop reason directly.
7452         (end_stepping_range): New function.
7453         (print_end_stepping_range_reason, print_signal_exited_reason)
7454         (print_exited_reason, print_signal_received_reason)
7455         (print_no_history_reason): Make static, and add an uiout
7456         parameter.  Print to that instead of to CURRENT_UIOUT.
7457         * infrun.h (print_end_stepping_range_reason)
7458         (print_signal_exited_reason, print_exited_reason)
7459         (print_signal_received_reason print_no_history_reason): New
7460         declarations.
7461         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7462         'mi_uiout'.
7463         <cli_uiout>: New field.
7464         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7465         uiout for CLI output.  Install 'signal_received',
7466         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7467         observers.
7468         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7469         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7470         (mi_on_no_history): New functions.
7471         (ui_out_free_cleanup): Delete function.
7472         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7473         instead use the one already stored in the MI interpreter data.
7474         (mi_ui_out): Adjust.
7475         * tui/tui-interp.c: Include infrun.h and observer.h.
7476         (tui_interp): New global.
7477         (tui_on_signal_received, tui_on_end_stepping_range)
7478         (tui_on_signal_exited, tui_on_exited)
7479         (tui_on_no_history): New functions.
7480         (tui_init): Install them as 'end_stepping_range',
7481         'signal_received' 'signal_exited', 'exited' and 'no_history'
7482         observers.
7483         (_initialize_tui_interp): Delete tui_interp local.
7484
7485 2014-05-29  Pedro Alves  <palves@redhat.com>
7486
7487         PR gdb/15713
7488         * linux-nat.c (linux_nat_resume_callback): Rename the second
7489         parameter to 'except'.  Skip LP if it points to EXCEPT.
7490         (linux_nat_resume): Don't mark the event lwp as not stopped
7491         before resuming sibling lwps.  Instead ask
7492         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7493         stopped after actually resuming it.
7494         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7495         resuming it.
7496         (wait_lwp): Mark the lwp as stopped here.
7497         (stop_wait_callback): Mark the lwp as not stopped right after
7498         resuming it.  Don't mark lwps as stopped here.
7499         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7500         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7501
7502 2014-05-29  Pedro Alves  <palves@redhat.com>
7503
7504         PR PR15693
7505         * infrun.c (resume): Determine how much to resume depending on
7506         whether the caller wanted a step, not whether we can hardware step
7507         the target.  Mark all threads that we intend to run as running,
7508         unless we're calling an inferior function.
7509         (normal_stop): If the thread is running an infcall, don't finish
7510         thread state.
7511         * target.c (target_resume): Don't mark threads as running here.
7512
7513 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7514
7515         * serial.c (_initialize_serial): Remove support for
7516         the "set remotebaud" and "show remotebaud" commands.
7517         * NEWS: Add entry documenting the removal of that command.
7518
7519 2014-05-28  Yao Qi  <yao@codesourcery.com>
7520
7521         * charset.c: Fix typo in comments.
7522
7523 2014-05-27  Gary Benson  <gbenson@redhat.com>
7524
7525         * utils.c (internal_vproblem): Prompt for a bug report.
7526
7527 2014-05-26  Andy Wingo  <wingo@igalia.com>
7528
7529         * guile/scm-arch.c (arscm_mark_arch_smob):
7530         * guile/scm-block.c (bkscm_mark_block_smob)
7531         (bkscm_mark_block_syms_progress_smob):
7532         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7533         * guile/scm-exception.c (exscm_mark_exception_smob):
7534         * guile/scm-frame.c (frscm_mark_frame_smob):
7535         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7536         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7537         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7538         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7539         (ppscm_mark_pretty_printer_worker_smob):
7540         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7541         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7542         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7543         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7544         mark functions.
7545         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7546         function.
7547
7548 2014-05-26  Andy Wingo  <wingo@igalia.com>
7549             Doug Evans  <xdje42@gmail.com>
7550
7551         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7552         empty_base_class.  All uses updated.
7553         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7554         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7555         Adapt all callers.
7556         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7557         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7558         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7559         (gdbscm_gsmob_has_property_p, add_property_name)
7560         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7561         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7562         (gdb-object-has-property?, gdb-object-properties): Remove.
7563         (gdb-object-kind): Renamed from gsmob-kind.
7564
7565 2014-05-26  Andy Wingo  <wingo@igalia.com>
7566
7567         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7568         * configure: Regenerate.
7569
7570 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7571
7572         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7573
7574 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7575
7576         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7577         (replay_memory_access_read_only, replay_memory_access_read_write)
7578         (replay_memory_access_types, replay_memory_access)
7579         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7580         (cmd_set_record_btrace, cmd_show_record_btrace)
7581         (cmd_show_replay_memory_access): New.
7582         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7583         (record_btrace_remove_breakpoint): Replace
7584         record_btrace_allow_memory_access with replay_memory_access.
7585         (_initialize_record_btrace): Add commands.
7586         * NEWS: Announce it.
7587
7588 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7589
7590         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7591
7592 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7593
7594         * MAINTAINERS (Write After Approval): Move self back from
7595         paper trail.
7596
7597 2014-05-22  Pedro Alves  <palves@redhat.com>
7598
7599         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7600         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7601         (disable_randomization, enum exec_direction_kind)
7602         (execution_direction, stop_registers, start_remote)
7603         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7604         (wait_for_inferior, normal_stop, get_last_target_status)
7605         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7606         (insert_step_resume_breakpoint_at_sal)
7607         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7608         (set_step_info, print_stop_event, signal_stop_state)
7609         (signal_print_state, signal_pass_state, signal_stop_update)
7610         (signal_print_update, signal_pass_update)
7611         (update_signals_program_target, clear_exit_convenience_vars)
7612         (displaced_step_dump_bytes, update_observer_mode)
7613         (signal_catch_update, gdb_signal_from_command): Move
7614         declarations ...
7615         * infrun.h: ... to this new file.
7616         * amd64-tdep.c: Include infrun.h.
7617         * annotate.c: Include infrun.h.
7618         * arch-utils.c: Include infrun.h.
7619         * arm-linux-tdep.c: Include infrun.h.
7620         * arm-tdep.c: Include infrun.h.
7621         * break-catch-sig.c: Include infrun.h.
7622         * breakpoint.c: Include infrun.h.
7623         * common/agent.c: Include infrun.h instead of inferior.h.
7624         * corelow.c: Include infrun.h.
7625         * event-top.c: Include infrun.h.
7626         * go32-nat.c: Include infrun.h.
7627         * i386-tdep.c: Include infrun.h.
7628         * inf-loop.c: Include infrun.h.
7629         * infcall.c: Include infrun.h.
7630         * infcmd.c: Include infrun.h.
7631         * infrun.c: Include infrun.h.
7632         * linux-fork.c: Include infrun.h.
7633         * linux-nat.c: Include infrun.h.
7634         * linux-thread-db.c: Include infrun.h.
7635         * monitor.c: Include infrun.h.
7636         * nto-tdep.c: Include infrun.h.
7637         * procfs.c: Include infrun.h.
7638         * record-btrace.c: Include infrun.h.
7639         * record-full.c: Include infrun.h.
7640         * remote-m32r-sdi.c: Include infrun.h.
7641         * remote-mips.c: Include infrun.h.
7642         * remote-notif.c: Include infrun.h.
7643         * remote-sim.c: Include infrun.h.
7644         * remote.c: Include infrun.h.
7645         * reverse.c: Include infrun.h.
7646         * rs6000-tdep.c: Include infrun.h.
7647         * s390-linux-tdep.c: Include infrun.h.
7648         * solib-irix.c: Include infrun.h.
7649         * solib-osf.c: Include infrun.h.
7650         * solib-svr4.c: Include infrun.h.
7651         * target.c: Include infrun.h.
7652         * top.c: Include infrun.h.
7653         * windows-nat.c: Include infrun.h.
7654         * mi/mi-interp.c: Include infrun.h.
7655         * mi/mi-main.c: Include infrun.h.
7656         * python/py-threadevent.c: Include infrun.h.
7657
7658 2014-05-22  Pedro Alves  <palves@redhat.com>
7659
7660         * infrun.c (handle_inferior_event): Store the exit code for
7661         --return-child-result here, instead of ...
7662         (print_exited_reason): ... here.
7663
7664 2014-05-21  Pedro Alves  <palves@redhat.com>
7665
7666         PR gdb/13860
7667         * gdbthread.h (struct thread_control_state): New field
7668         `command_interp'.
7669         * infrun.c (follow_fork): Copy the new thread control field to the
7670         child fork thread.
7671         (clear_proceed_status_thread): Clear the new thread control field.
7672         (proceed): Set the new thread control field.
7673         * interps.h (command_interp): Declare.
7674         * interps.c (command_interpreter): New global.
7675         (command_interp): New function.
7676         (interp_exec): Set `command_interpreter' while here.
7677         * cli-out.c (cli_uiout_dtor): New function.
7678         (cli_ui_out_impl): Install it.
7679         * mi/mi-interp.c: Include cli-out.h.
7680         (mi_cmd_interpreter_exec): Add comment.
7681         (restore_current_uiout_cleanup): New function.
7682         (ui_out_free_cleanup): New function.
7683         (mi_on_normal_stop): If finishing an execution command started by
7684         a CLI command, or any kind of breakpoint-like event triggered,
7685         print the stop event to the output (CLI) stream.
7686         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7687
7688 2014-05-21  Pedro Alves  <palves@redhat.com>
7689
7690         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7691         current source line having changed.
7692         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7693         * infrun.c (normal_stop): Adjust call to
7694         set_current_sal_from_frame.
7695         * source.c (clear_lines_listed_range): New function.
7696         (set_current_source_symtab_and_line, identify_source_line): Clear
7697         the lines listed range.
7698         (line_info): Handle the first "info line" after the current source
7699         line having changed.
7700         * stack.c (print_stack_frame): Remove center handling.
7701         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7702         center sal.line.
7703
7704 2014-05-21  Pedro Alves  <palves@redhat.com>
7705
7706         * inf-child.c (inf_child_mourn_inferior): New function.
7707         * inf-child.h (inf_child_mourn_inferior): New declaration.
7708         * darwin-nat.c (darwin_mourn_inferior): Use
7709         inf_child_mourn_inferior.
7710         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7711         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7712         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7713         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7714         * windows-nat.c (windows_mourn_inferior): Likewise.
7715
7716 2014-05-21  Doug Evans  <xdje42@gmail.com>
7717
7718         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7719
7720 2014-05-21  Doug Evans  <xdje42@gmail.com>
7721
7722         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7723         (gdbscm_out_of_range_error): Ditto.
7724         (gdbscm_memory_error): Ditto.
7725         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7726         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7727         (gdbscm_out_of_range_error): Update.
7728         (gdbscm_memory_error): Update.
7729         (gdbscm_scm_to_target_string_unsafe): Delete.
7730
7731 2014-05-21  Pedro Alves  <palves@redhat.com>
7732
7733         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7734         globals.
7735         (inf_child_open_target): New function.
7736         (inf_child_open): Use inf_child_open_target to push the target
7737         instead of erroring out.
7738         (inf_child_disconnect, inf_child_close)
7739         (inf_child_maybe_unpush_target): New functions.
7740         (inf_child_target): Install inf_child_disconnect and
7741         inf_child_close.  Store a pointer to the returned object.
7742         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7743         declarations.
7744         * target.c (auto_connect_native_target): New global.
7745         (show_default_run_target): New function.
7746         (find_default_run_target): Return NULL if automatically connecting
7747         to the native target is disabled.
7748         (_initialize_target): Install set/show auto-connect-native-target.
7749         * NEWS: Mention "set auto-connect-native-target", and "target
7750         native".
7751         * linux-nat.c (super_close): New global.
7752         (linux_nat_close): Call super_close.
7753         (linux_nat_add_target): Store a pointer to the base class's
7754         to_close method.
7755         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7756         inf_child_maybe_unpush.
7757         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7758         already pushed.
7759         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7760         the inferior.  Use inf_child_maybe_unpush_target.
7761         (inf_ttrace_attach): Don't push the target if it is already
7762         pushed.
7763         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7764         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7765         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7766         (darwin_attach_pid): Don't push the target if it is already
7767         pushed.
7768         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7769         mourning the inferior.  Use inf_child_maybe_unpush_target.
7770         (gnu_detach): Use inf_child_maybe_unpush_target.
7771         * go32-nat.c (go32_create_inferior): Don't push the target if it
7772         is already pushed.
7773         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7774         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7775         (procfs_open): Rename to ...
7776         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7777         comments.  Can target_preopen before changing node.  Call
7778         inf_child_open_target to push the target explicitly.
7779         (procfs_attach): Don't push the target if it is already pushed.
7780         (procfs_detach): Use inf_child_maybe_unpush_target.
7781         (procfs_create_inferior): Don't push the target if it is already
7782         pushed.
7783         (nto_native_ops): New global.
7784         (procfs_open): Reimplement.
7785         (procfs_native_open): New function.
7786         (init_procfs_targets): Install procfs_native_open as to_open of
7787         "target native".  Store a pointer to the "native" target in
7788         nto_native_ops.
7789         * procfs.c (procfs_attach): Don't push the target if it is already
7790         pushed.
7791         (procfs_detach): Use inf_child_maybe_unpush_target.
7792         (procfs_mourn_inferior): Only unpush the target after mourning the
7793         inferior.  Use inf_child_maybe_unpush_target.
7794         (procfs_init_inferior): Don't push the target if it is already
7795         pushed.
7796         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7797         if it is already pushed.
7798
7799 2014-05-21  Pedro Alves  <palves@redhat.com>
7800
7801         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7802         and "procfs" targets are now called "native" instead.
7803
7804 2014-05-21  Pedro Alves  <palves@redhat.com>
7805
7806         * go32-nat.c (go32_open): Delete.
7807         (go32_target): Don't override the to_open method.
7808
7809 2014-05-21  Pedro Alves  <palves@redhat.com>
7810
7811         * nto-procfs.c (procfs_can_run): New function.
7812         (nto_procfs_ops): New global.
7813         (init_procfs_targets): New, based on procfs_target.  Install
7814         "target native" in addition to "target procfs".
7815         (_initialize_procfs): Call init_procfs_targets instead of adding
7816         the target here.
7817
7818 2014-05-21  Pedro Alves  <palves@redhat.com>
7819
7820         * windows-nat.c (windows_target): Don't override to_shortname,
7821         to_longname or to_doc.
7822
7823 2014-05-21  Pedro Alves  <palves@redhat.com>
7824
7825         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7826         to_doc.
7827
7828 2014-05-21  Pedro Alves  <palves@redhat.com>
7829
7830         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7831         to_shortname, to_longname or to_doc.
7832
7833 2014-05-21  Pedro Alves  <palves@redhat.com>
7834
7835         * go32-nat.c (go32_target): Don't override to_shortname,
7836         to_longname or to_doc.
7837
7838 2014-05-21  Pedro Alves  <palves@redhat.com>
7839
7840         * inf-child.c (inf_child_open): Remove mention of "child".
7841         (inf_child_target): Rename target to "native" instead of "child".
7842
7843 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7844
7845         * Makefile.in (SFILES): Delete "regset.c".
7846         (COMMON_OBS): Delete "regset.o".
7847         * regset.c: Remove.
7848         * regset.h (regset_alloc): Delete prototype.
7849
7850 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7851
7852         * sparc-linux-tdep.c (sparc32_linux_gregset)
7853         (sparc32_linux_fpregset): New static regset structures.
7854         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7855         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7856         'fpregset' fields.
7857         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7858         (sparc64_linux_fpregset): New static regset structures.
7859         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7860         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7861         New static regset structures.
7862         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7863         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7864         New static regset structures.
7865         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7866         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7867         New static regset structures.
7868         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7869         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7870         New static regset structures.
7871         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7872
7873 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7874
7875         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7876         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7877         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7878         for all regmap types and variables.
7879         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7880         (sparc32_linux_supply_core_gregset)
7881         (sparc32_linux_collect_core_gregset)
7882         (sparc32_linux_supply_core_fpregset)
7883         (sparc32_linux_collect_core_fpregset): Likewise.
7884         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7885         (sparc_gregmap, sparc_fpregmap): ... these.
7886         (sparc_supply_gregset, sparc_collect_gregset)
7887         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7888         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7889         (_initialize_sparc_nat): Rename regmaps.
7890         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7891         (sparc_gregmap, sparc_fpregmap): ... these.
7892         (sparc_supply_gregset, sparc_collect_gregset)
7893         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7894         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7895         Rename macros to...
7896         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7897         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7898         Likewise.
7899         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7900         Rename to...
7901         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7902         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7903         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7904         regmaps.
7905         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7906         (sparc32_bsd_fpregset): Rename to...
7907         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7908         (sparc32_bsd_fpregmap): ... these.
7909         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7910         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7911         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7912         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7913         (struct sparc_gregmap, struct sparc_fpregmap)
7914         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7915         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7916         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7917         (sparc32_supply_regset, sparc32_collect_gregset)
7918         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7919         prototypes.
7920         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7921         (sparc64_linux_ptrace_gregmap): ... this.
7922         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7923         (_initialize_sparc64_linux_nat): Rename regmaps.
7924         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7925         (sparc64_linux_core_gregmap): ... this.
7926         (sparc64_linux_supply_core_gregset)
7927         (sparc64_linux_collect_core_gregset)
7928         (sparc64_linux_supply_core_fpregset)
7929         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7930         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7931         (sparc64_sol2_fpregset): Rename to...
7932         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7933         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7934         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7935         regmaps.
7936         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7937         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7938         (sparc64_bsd_fpregset): Rename to...
7939         (struct sparc_gregmap, sparc64_sol2_gregmap)
7940         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7941         (sparc64_bsd_fpregmap): ... these.
7942         (sparc64_supply_gregset, sparc64_collect_gregset)
7943         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7944         prototypes.
7945         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7946         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7947         (sparc64fbsd_gregmap): ... this.
7948         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7949         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7950         Rename regmaps.
7951         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7952         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7953         (sparc64nbsd_collect_fpregset): Likewise.
7954         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7955         (sparc64nbsd_gregmap): ... this.
7956         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7957         regmaps.
7958         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7959         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7960         (sparc64obsd_gregmap): ... this.
7961         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7962         regmaps.
7963         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7964         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7965         (sparc32nbsd_gregmap): ... this.
7966         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7967         regmaps.
7968
7969 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7970
7971         * score-tdep.c (score7_linux_gregset): New static regset
7972         structure.
7973         (score7_linux_regset_from_core_section): Remove dynamic regset
7974         allocation.
7975         (score_gdbarch_init): Drop allocation of tdep structure.
7976         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7977
7978 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7979
7980         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7981         regset structures.
7982         (am33_regset_from_core_section): Remove dynamic regset
7983         allocations.
7984
7985 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7986
7987         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7988         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7989         structures.
7990         (mips_linux_regset_from_core_section): Remove dynamic regset
7991         allocations.
7992         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7993         'gregset64', 'fpregset', and 'fpregset64'.
7994         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7995         deleted tdep fields.
7996
7997 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7998
7999         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8000         regset structures.
8001         (amd64_regset_from_core_section): Remove dynamic regset
8002         allocations.
8003         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8004         structure.
8005         (amd64obsd_regset_from_core_section): Remove dynamic regset
8006         allocation.
8007         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8008         Likewise.
8009         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8010         x86-common regset supply function.
8011         * i386-tdep.c (i386_collect_gregset): Make static.
8012         (i386_gregset): New global regset structure.
8013         (i386_fpregset, i386_xstateregset): New static regset structures.
8014         (i386_regset_from_core_section): Remove dynamic regset
8015         allocations.
8016         (i386_gdbarch_init): Remove initialization of tdep fields
8017         'gregset', 'fpregset', and 'xstateregset'.
8018         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8019         'fpregset', and 'xstateregset'.
8020         (i386_collect_gregset): Remove prototype.
8021         (i386_gregset): New declaration.
8022         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8023         structure.
8024         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8025         allocation.
8026
8027 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8028
8029         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8030         (arm_linux_vfpregset): New static regset structures.
8031         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8032         regset structures.
8033         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8034         and 'vfpregset' fields.
8035
8036 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8037
8038         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8039         (aarch64_linux_fpregset): New static regset structures.
8040         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8041         of regset structures.
8042         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8043         'fpregset' fields.
8044
8045 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8046
8047         * regset.h (struct regset): Remove gdbarch field.
8048         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8049         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8050         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8051         Likewise.
8052         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8053         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8054         (ppc32_linux_vsxregset): Likewise.
8055         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8056         via the regcache instead of the regset.
8057         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8058         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8059         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8060         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8061         Likewise.
8062
8063 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8064
8065         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8066         Constify structures.
8067         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8068         (alphanbsd_aout_gregset): Likewise.
8069         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8070         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8071         Likewise.
8072         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8073         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8074         Likewise.
8075         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8076         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8077         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8078         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8079         * m88k-tdep.c (m88k_gregset): Likewise.
8080         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8081         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8082         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8083         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8084         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8085         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8086         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8087         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8088         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8089         Likewise.
8090         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8091         * sh-tdep.h (sh_corefile_gregset): Likewise.
8092         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8093         * vax-tdep.c (vax_gregset): Likewise.
8094
8095 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8096
8097         Fix TLS access for -static -pthread.
8098         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8099         (try_thread_db_load_1): Initialize it.
8100         (thread_db_get_thread_local_address): Call it if LM is zero.
8101         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8102         * target.h (struct target_ops) (to_get_thread_local_address): Add
8103         load_module_addr comment.
8104
8105 2014-05-21  Pedro Alves  <palves@redhat.com>
8106
8107         * dcache.c (dcache_read_memory_partial): If reading the cache line
8108         fails, fallback to reading just the memory the caller wanted.
8109
8110 2014-05-20  Doug Evans  <dje@google.com>
8111
8112         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8113         instead of get_current_arch.
8114
8115 2014-05-20  Pedro Alves  <palves@redhat.com>
8116
8117         * NEWS: Mention that compare-sections now works with all targets.
8118
8119         * remote.c (PACKET_qCRC): New enum value.
8120         (remote_verify_memory): Don't send qCRC if the target has no
8121         execution.  Use packet_support/packet_ok.  If the target doesn't
8122         support the qCRC packet, fallback to a deep memory copy.
8123         (compare_sections_command): Say "target image" instead of "remote
8124         executable".
8125         (_initialize_remote): Add PACKET_qCRC to the list of config
8126         packets that have no associated command.  Extend comment.
8127         * target.c (simple_verify_memory, default_verify_memory): New
8128         function.
8129         * target.h (struct target_ops) <to_verify_memory>: Default to
8130         default_verify_memory.
8131         (simple_verify_memory): New declaration.
8132         * target-delegates.c: Regenerate.
8133
8134 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8135
8136         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8137
8138 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8139             Yao Qi  <yao@codesourcery.com>
8140
8141         PR backtrace/16558
8142         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8143         and change address of sp and pc.
8144
8145 2014-05-19  Tom Tromey  <tromey@redhat.com>
8146
8147         * gdbtypes.c (rank_function): Use XNEWVEC.
8148         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8149
8150 2014-05-19  Doug Evans  <dje@google.com>
8151
8152         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8153         build_type_unit_groups and moved closer to only caller.  Remove
8154         arguments.  All references updated.  Remove outdated .gdb_index
8155         comment.
8156         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8157         build_type_psymtabs_1.
8158
8159 2014-05-19  Doug Evans  <dje@google.com>
8160
8161         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8162         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8163         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8164         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8165         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8166         (add_type_unit_group_to_table): Delete.
8167
8168 2014-05-19  Doug Evans  <dje@google.com>
8169
8170         * eval.c (evaluate_subexp_standard): Add some comments.
8171
8172 2014-05-17  Doug Evans  <xdje42@gmail.com>
8173
8174         * progspace.c (remove_program_space): Delete, unused.
8175         * progspace.h (remove_program_space): Ditto.
8176
8177 2014-05-17  Doug Evans  <xdje42@gmail.com>
8178
8179         * inferior.c (prune_inferiors): Fix comment.
8180         (remove_inferior_command): Call prune_program_spaces.
8181
8182 2014-05-16  Doug Evans  <dje@google.com>
8183
8184         New command line option -D.
8185         * NEWS: Mention it.
8186         * main.c (set_gdb_data_directory): New function.
8187         (captured_main): Recognize -D.  Flag error for --data-directory "".
8188         Call set_gdb_data_directory.
8189         (print_gdb_help): Print --data-directory, -D.
8190         * main.h (set_gdb_data_directory): Declare.
8191         * top.c (staged_gdb_datadir): New static global.
8192         (set_gdb_datadir): Call set_gdb_data_directory
8193         (show_gdb_datadir): New function.
8194         (init_main): Update init of data-directory parameter.
8195
8196 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8197
8198         Import the "dirfd" gnulib module.
8199         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8200         * gnulib/aclocal.m4: Update.
8201         * gnulib/config.in: Update.
8202         * gnulib/configure: Update.
8203         * gnulib/import/Makefile.am: Update.
8204         * gnulib/import/Makefile.in: Update.
8205         * gnulib/import/dirfd.c: New.
8206         * gnulib/import/m4/dirfd.m4: New.
8207         * gnulib/import/m4/gnulib-cache.m4: Update.
8208         * gnulib/import/m4/gnulib-comp.m4: Update.
8209
8210 2014-05-16  Pierre Muller  <muller@sourceware.org>
8211             Yao Qi  <yao@codesourcery.com>
8212
8213         * valprint.c (print_wchar): Move the code on checking whether
8214         W is a printable wide char to the default branch of switch
8215         statement below.  Call wchar_printable instead of gdb_iswprint.
8216
8217 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8218
8219         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8220         ldr.w and ldrd instructions.
8221
8222 2014-05-15  Doug Evans  <dje@google.com>
8223
8224         * dwarf2read.c (read_structure_type): Delete outdated comments.
8225
8226 2014-05-14  Tom Tromey  <tromey@redhat.com>
8227
8228         * macrocmd.c (print_macro_definition): Reindent.
8229
8230 2014-05-13  Doug Evans  <xdje42@gmail.com>
8231
8232         * python/py-cmd.c (cmdpy_completer): Add comment.
8233         (completers): Make const.
8234
8235 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8236
8237         * infrun.c (resume): Remove should_resume (unused).  Move up
8238         declaration of resume_ptid.
8239
8240 2014-05-13  Tom Tromey  <tromey@redhat.com>
8241
8242         * language.h (unop_type_check): Remove.
8243         (binop_type_check): Don't declare.
8244
8245 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8246
8247         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8248         call to regcache_raw_collect.
8249
8250 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8251
8252         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8253         mi_console->quote as the quoting character.
8254
8255 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8256
8257         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8258
8259 2014-04-29  Tom Tromey  <tromey@redhat.com>
8260
8261         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8262         "show debug varobj".
8263
8264 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8265
8266         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8267         * aarch64-tdep.c (aarch64_software_single_step): New function.
8268         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8269         with aarch64_software_single_step.
8270
8271 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8272
8273         GDB 7.7.1 released.
8274
8275 2014-05-05  Keith Seitz  <keiths@redhat.com>
8276
8277         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8278         variable or history value is successfully parsed.
8279
8280 2014-05-05  Yao Qi  <yao@codesourcery.com>
8281             Pedro Alves  <palves@redhat.com>
8282
8283         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8284         address of blocks that intersects the requested range.  Trim
8285         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8286         sections.
8287         * ctf.c (ctf_xfer_partial): Likewise.
8288
8289 2014-05-05  Yao Qi  <yao@codesourcery.com>
8290
8291         * printcmd.c (display_command): Remove the check to
8292         target_has_execution.
8293
8294 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8295
8296         * ppcobsd-nat.c: Include "obsd-nat.h".
8297         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8298         add_target.
8299         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8300
8301 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8302
8303         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8304         and 16-bit signed and unsigned arguments.  Update comment.
8305         (stap_parse_probe_arguments): Extend code to handle such
8306         arguments.  Use warning instead of complaint to notify about
8307         unrecognized bitness.
8308
8309 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8310
8311         PR breakpoints/16889
8312         * stap-probe.c (stap_parse_probe_arguments): Simplify
8313         check for non-prefixed probes (i.e., probes whose
8314         arguments do not start with "N@").  Always set the
8315         argument type to a sane value.
8316
8317 2014-05-01  David Taylor  <dtaylor@emc.com>
8318
8319         * remote.c (compare_sections_command): Add -r option to compare
8320         all loadable read-only sections.
8321
8322 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8323
8324         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8325         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8326         Update all callers.
8327         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8328         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8329         Remove unused CORE_ADDR argument.  Update all callers.
8330
8331 2014-04-29  Pedro Alves  <palves@redhat.com>
8332
8333         * remote.c (struct packet_config) <detect>: Extend comment.
8334         (add_packet_config_cmd): Don't set the config's detect or support
8335         fields here.
8336         (init_all_packet_configs): Also initialize the config's 'detect'
8337         field.
8338         (reset_all_packet_configs_support): New function.
8339         (remote_open_1): Call reset_all_packet_configs_support instead of
8340         init_all_packet_configs.
8341         (_initialize_remote): Initialize all packet configs.  Assert that
8342         all packets have an associated command, except a few known
8343         outliers.
8344
8345 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8346
8347         * dwarf2read.c (read_subrange_type): Handle dynamic
8348         DW_AT_lower_bound attributes.
8349
8350 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8351
8352         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8353         dynamic bounds before computing its upper bound.
8354         (ada_discrete_type_low_bound): Same as above with the lower bound.
8355
8356 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8357
8358         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8359         range types.  Adjust the array handling implementation to
8360         take advantage of this change.
8361         (resolve_dynamic_range): New function, mostly extracted from
8362         resolve_dynamic_bounds.
8363         (resolve_dynamic_array): New function, mostly extracted from
8364         resolve_dynamic_bounds.
8365         (resolve_dynamic_bounds): Delete.
8366         (resolve_dynamic_type): Reimplement.  Add handling of
8367         TYPE_CODE_RANGE types.
8368
8369 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8370
8371         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8372         handling of parallel ___XA types.
8373
8374 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8375
8376         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8377         unnecessary second call to static_unwrap_type.
8378
8379 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8380
8381         * stack.c (print_frame_info): Call do_gdb_disassembly with
8382         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8383
8384 2014-04-26  Doug Evans  <xdje42@gmail.com>
8385
8386         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8387
8388 2014-04-25  Pedro Alves  <palves@redhat.com>
8389
8390         PR server/16255
8391         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8392         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8393         and newline from built string.
8394         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8395         (linux_ptrace_attach_fail_reason): ... this.
8396         * linux-nat.c (linux_nat_attach): Adjust to use
8397         linux_ptrace_attach_fail_reason.
8398
8399 2014-04-25  Pedro Alves  <palves@redhat.com>
8400
8401         * remote.c (struct remote_state): Remove multi_process_aware,
8402         non_stop_aware, cond_tracepoints, cond_breakpoints,
8403         breakpoint_commands, fast_tracepoints, static_tracepoints,
8404         install_in_trace, disconnected_tracing,
8405         enable_disable_tracepoints, string_tracing, and
8406         augmented_libraries_svr4_read fields.
8407         (remote_multi_process_p): Move further below in the file.
8408         (struct packet_config): Add comments.
8409         (update_packet_config): Delete function.
8410         (show_packet_config_cmd): Use packet_config_support.
8411         (add_packet_config_cmd): Use NULL as set callback.
8412         (packet_ok): "set remote foo-packet"-style commands no longer
8413         change config->supported -- adjust.
8414         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8415         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8416         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8417         (PACKET_QNonStop, PACKET_multiprocess_feature)
8418         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8419         (PACKET_DisconnectedTracing_feature)
8420         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8421         (set_remote_protocol_packet_cmd): Delete function.
8422         (packet_config_support, packet_support): New functions.
8423         (set_remote_protocol_Z_packet_cmd): Don't call
8424         update_packet_config.
8425         (remote_query_attached, remote_pass_signals)
8426         (remote_program_signals, remote_threads_info)
8427         (remote_threads_extra_info, remote_start_remote): Use
8428         packet_support.
8429         (remote_start_remote): Use packet_config_support and
8430         packet_support.
8431         (init_all_packet_configs): Set all packets to unknown support,
8432         instead of calling update_packet_config.
8433         (remote_check_symbols): Use packet_support.
8434         (remote_supported_packet): Unconditionally set the packet config's
8435         support status.
8436         (remote_multi_process_feature, remote_non_stop_feature)
8437         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8438         (remote_breakpoint_commands_feature)
8439         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8440         (remote_install_in_trace_feature)
8441         (remote_disconnected_tracing_feature)
8442         (remote_enable_disable_tracepoint_feature)
8443         (remote_string_tracing_feature)
8444         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8445         (remote_protocol_features): Adjust to use remote_supported_packet
8446         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8447         "ConditionalTracepoints", "ConditionalBreakpoints",
8448         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8449         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8450         "EnableDisableTracepoints", and "tracenz".
8451         (remote_query_supported): Use packet_support.
8452         (remote_open_1): Adjust.
8453         (extended_remote_attach_1): Use packet_support.  Switch on the
8454         result of packet_ok instead of checking whether the packet ended
8455         up disabled.
8456         (remote_vcont_resume): Use packet_support.
8457         (remote_resume, remote_stop_ns, fetch_register_using_p)
8458         (remote_prepare_to_store, store_register_using_P)
8459         (check_binary_download, remote_write_bytes): Use packet_support.
8460         (remote_vkill): Use packet_support.  Switch on the result of
8461         packet_ok instead of checking whether the packet ended up
8462         disabled.
8463         (extended_remote_supports_disable_randomization): Use
8464         packet_support.
8465         (extended_remote_run): Switch on the result of packet_ok instead
8466         of checking whether the packet ended up disabled.
8467         (remote_insert_breakpoint, remote_remove_breakpoint)
8468         (remote_insert_watchpoint, remote_remove_watchpoint)
8469         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8470         packet_support.
8471         (remote_search_memory): Use packet_config_support.
8472         (remote_get_thread_local_address, remote_get_tib_address)
8473         (remote_hostio_send_command, remote_can_execute_reverse): Use
8474         packet_support.
8475         (remote_supports_cond_tracepoints)
8476         (remote_supports_cond_breakpoints)
8477         (remote_supports_fast_tracepoints)
8478         (remote_supports_static_tracepoints)
8479         (remote_supports_install_in_trace)
8480         (remote_supports_enable_disable_tracepoint)
8481         (remote_supports_string_tracing)
8482         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8483         the packet config says the feature is enabled or disabled.
8484         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8485         (remote_get_trace_status): Use packet_support.
8486         (remote_set_disconnected_tracing): Adjust to check whether the
8487         feature is enabled with packet_support.
8488         (remote_set_trace_buffer_size, remote_use_agent)
8489         (remote_can_use_agent, remote_supports_btrace): Use
8490         packet_support.
8491         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8492         Use packet_config_support.
8493         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8494         the packet config says the feature is enabled or disabled.
8495         (set_range_stepping): Use packet_support.
8496
8497 2014-04-25  Tom Tromey  <tromey@redhat.com>
8498
8499         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8500         argument.
8501
8502 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8503
8504         * NEWS: Mention support for C99 variable length arrays.
8505
8506 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8507
8508         * ada-lang.c (standard_exc): Expand introductory comment.
8509
8510 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8511             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8512
8513         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8514         AVX512 registers.
8515         (amd64_linux_read_description): Add code to handle AVX512 xstate
8516         mask and return respective tdesc.
8517         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8518         and features/i386/x32-avx512-linux.c.
8519         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8520         (amd64_linux_core_read_description): Add code to handle AVX512
8521         xstate mask and return respective tdesc.
8522         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8523         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8524         calculation.
8525         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8526         (tdesc_amd64_avx512_linux): New prototype.
8527         (tdesc_x32_avx512_linux): Likewise.
8528         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8529         features/i386/x32-avx512.c.
8530         (amd64_ymm_avx512_names): New register names for pseudo
8531         registers YMM16-31.
8532         (amd64_ymmh_avx512_names): New register names for raw registers
8533         YMMH16-31.
8534         (amd64_k_names): New register names for K registers.
8535         (amd64_zmmh_names): New register names for ZMM raw registers.
8536         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8537         (amd64_xmm_avx512_names): New register names for XMM16-31
8538         registers.
8539         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8540         registers.
8541         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8542         if feature is present.
8543         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8544         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8545         (AMD64_NUM_REGS): Adjust to new number of registers.
8546         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8547         registers supplied via XSTATE by AVX512 registers.
8548         (i386_linux_read_description): Add case for AVX512.
8549         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8550         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8551         (i386_linux_core_read_description): Add case for AVX512.
8552         (i386_linux_init_abi): Install supported register note section
8553         for AVX512.
8554         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8555         AVX512.
8556         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8557         registers to be number of zmm7h + 1.
8558         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8559         * i386-tdep.c: Include features/i386/i386-avx512.c.
8560         (i386_zmm_names): Add ZMM pseudo register names array.
8561         (i386_zmmh_names): Add ZMM raw register names array.
8562         (i386_k_names): Add K raw register names array.
8563         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8564         registers. AVX512 has 16 more ZMM registers than there are YMM
8565         registers.
8566         (i386_zmmh_regnum_p): Add function to look up register number of
8567         ZMM raw registers.
8568         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8569         (i386_k_regnum_p): Likewise for K raw registers.
8570         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8571         registers added by AVX512.
8572         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8573         registers added by AVX512.
8574         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8575         added by AVX512.
8576         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8577         (i386_pseudo_register_name): Add ZMM pseudo registers.
8578         (i386_zmm_type): Construct and return vector registers type for ZMM
8579         registers.
8580         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8581         ZMM0-31 pseudo registers and K registers.
8582         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8583         and YMM16-31 registers from register cache.
8584         (i386_pseudo_register_write): Add code to write  K, ZMM and
8585         YMM16-31 registers.
8586         (i386_register_reggroup_p): Add code to include/exclude AVX512
8587         registers in/from respective register groups.
8588         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8589         registers if feature is present in xcr0.
8590         (i386_gdbarch_init): Add code to initialize AVX512 feature
8591         variables in tdep structure, wire in pseudo registers and call
8592         initialize_tdesc_i386_avx512.
8593         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8594         variables.
8595         (i386_regnum): Add AVX512 registers.
8596         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8597         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8598         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8599         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8600         512 bits wide.
8601         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8602         (i386_ymm_avx512_regnum_p): Likewise.
8603         (i386_k_regnum_p): Likewise.
8604         (i386_zmm_regnum_p): Likewise.
8605         (i386_zmmh_regnum_p): Likewise.
8606         * i387-tdep.c : Update year in copyright notice.
8607         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8608         XSAVE buffer.
8609         (XSAVE_YMM_AVX512_ADDR): New macro.
8610         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8611         XSAVE buffer.
8612         (XSAVE_XMM_AVX512_ADDR): New macro.
8613         (xsave_avx512_k_offset): New table for K register offsets in
8614         XSAVE buffer.
8615         (XSAVE_AVX512_K_ADDR): New macro.
8616         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8617         in XSAVE buffer.
8618         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8619         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8620         buffer.
8621         (i387_collect_xsave): Add code to collect AVX512 registers from
8622         XSAVE buffer.
8623         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8624         of XMM16-31 registers.
8625         (I387_NUM_K_REGS): New define for number of K registers.
8626         (I387_K0_REGNUM): New define for K0 register number.
8627         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8628         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8629         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8630         registers.
8631         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8632         (I387_XMM16_REGNUM): New define for XMM16 register number.
8633         (I387_YMM0_REGNUM): New define for YMM0 register number.
8634         (I387_KEND_REGNUM): New define for last K register number.
8635         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8636         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8637         number.
8638         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8639         number.
8640         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8641         size.
8642         * features/Makefile: Add AVX512 related files.
8643         * features/i386/32bit-avx512.xml: New file.
8644         * features/i386/64bit-avx512.xml: Likewise.
8645         * features/i386/amd64-avx512-linux.c: Likewise.
8646         * features/i386/amd64-avx512-linux.xml: Likewise.
8647         * features/i386/amd64-avx512.c: Likewise.
8648         * features/i386/amd64-avx512.xml: Likewise.
8649         * features/i386/i386-avx512-linux.c: Likewise.
8650         * features/i386/i386-avx512-linux.xml: Likewise.
8651         * features/i386/i386-avx512.c: Likewise.
8652         * features/i386/i386-avx512.xml: Likewise.
8653         * features/i386/x32-avx512-linux.c: Likewise.
8654         * features/i386/x32-avx512-linux.xml: Likewise.
8655         * features/i386/x32-avx512.c: Likewise.
8656         * features/i386/x32-avx512.xml: Likewise.
8657         * regformats/i386/amd64-avx512-linux.dat: New file.
8658         * regformats/i386/amd64-avx512.dat: Likewise.
8659         * regformats/i386/i386-avx512-linux.dat: Likewise.
8660         * regformats/i386/i386-avx512.dat: Likewise.
8661         * regformats/i386/x32-avx512-linux.dat: Likewise.
8662         * regformats/i386/x32-avx512.dat: Likewise.
8663         * NEWS: Add note about new support for AVX512.
8664
8665
8666 2014-04-23  Pedro Alves  <palves@redhat.com>
8667
8668         * breakpoint.c (insert_bp_location): Tolerate errors if the
8669         breakpoint is set in a user-loaded objfile.
8670         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8671         location is marked shlib_disabled.  If the breakpoint is set in a
8672         user-loaded objfile is a GDB-side memory breakpoint, validate it
8673         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8674         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8675         flag.
8676         * mem-break.c (memory_validate_breakpoint): New function.
8677         * objfiles.c (userloaded_objfile_contains_address_p): New
8678         function.
8679         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8680         * target.h (memory_validate_breakpoint): New declaration.
8681
8682 2014-04-23  Pedro Alves  <palves@redhat.com>
8683
8684         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8685         the breakpoint is set in a shared library, only suppress
8686         errors for software breakpoints, not hardware breakpoints.
8687
8688 2014-04-22  Pedro Alves  <palves@redhat.com>
8689
8690         * infrun.c (schedlock_applies): New function, factored out from
8691         find_thread_needs_step_over.
8692         (find_thread_needs_step_over): Use it.
8693         (switch_back_to_stepped_thread): Always clear trap_expected if the
8694         step over is finished.  Return early if scheduler locking applies.
8695         Look for the stepping thread and a potential step-over thread with
8696         a single loop.
8697         (currently_stepping_or_nexting_callback): Delete.
8698
8699 2014-04-22  Nick Clifton  <nickc@redhat.com>
8700
8701         * NEWS: Mention that ARM sim now supports tracing.
8702
8703 2014-04-22  Yao Qi  <yao@codesourcery.com>
8704
8705         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8706         to ...
8707         * tracefile.c (tracefile_fetch_registers): ... it.  New
8708         function.
8709         * tracefile.h (tracefile_fetch_registers): Declare.
8710         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8711         tracefile_fetch_registers.
8712
8713 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8714
8715         PR gdb/14018
8716         * windows-nat.c (thread_rec): Don't display a warning when
8717         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8718         fails for any reason, set th->suspended to -1, so that we don't
8719         try to resume such a thread.  Also, don't return NULL in these
8720         cases, to avoid completely ruin the session due to "PC register is
8721         not available" error.
8722         (do_windows_fetch_inferior_registers): Check errors in
8723         GetThreadContext call.
8724         (windows_continue): Accept an additional argument KILLED; if not
8725         zero, ignore errors in the SetThreadContext call, since the
8726         inferior was killed and is shutting down.
8727         (windows_resume, get_windows_debug_event)
8728         (windows_create_inferior, windows_mourn_inferior)
8729         (windows_kill_inferior): All callers of windows_continue changed
8730         to adjust to its new calling sequence.
8731
8732 2014-04-19  Yao Qi  <yao@codesourcery.com>
8733
8734         * ctf.c (ctf_open): Call post_create_inferior.
8735
8736 2014-04-19  Yao Qi  <yao@codesourcery.com>
8737
8738         * ctf.c (handle_id): New static variable.
8739         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8740         value.  Get the declaration of event "register" and get length
8741         of field "contents".
8742
8743 2014-04-19  Yao Qi  <yao@codesourcery.com>
8744
8745         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8746
8747 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8748
8749         * valops.c (oload_method_static): Remove unnecessary argument
8750         METHOD.  Update all callers.
8751
8752 2014-04-18  Pedro alves  <palves@redhat.com>
8753             Tom Tromey  <tromey@redhat.com>
8754
8755         PR backtrace/15558
8756         * frame.c (get_prev_frame_1): Rename to ...
8757         (get_prev_frame_always): ... this, and make extern.  Adjust.
8758         (skip_artificial_frames): Use get_prev_frame_always.
8759         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8760         (get_frame_unwind_stop_reason): Adjust to rename.
8761         * frame.h (get_prev_frame_always): Declare.
8762         * inline-frame.c: Include frame.h.
8763         (inline_frame_this_id): Use get_prev_frame_always.
8764
8765 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8766
8767         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8768         code by using bfd_mach_o_get_base_address.
8769
8770 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8771
8772         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8773         (spu_ax_pseudo_register_collect): New function.
8774         (spu_ax_pseudo_register_push_stack): Likewise.
8775         (spu_dwarf_reg_to_regnum): Likewise.
8776         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8777
8778 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8779
8780         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8781         Replace FRAME argument with FRAME_ID.
8782         * gdbarch.c, gdbarch.h: Regenerate.
8783         * findvar.c (default_value_from_register): Add GDBARCH argument;
8784         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8785         (value_from_register): Update call to gdbarch_value_from_register.
8786         * value.h (default_value_from_register): Update prototype.
8787         * s390-linux-tdep.c (s390_value_from_register): Update interface
8788         and call to default_value_from_register.
8789         * spu-tdep.c (spu_value_from_register): Likewise.
8790
8791         * findvar.c (address_from_register): Remove TYPE argument.
8792         Do not call value_from_register; use gdbarch_value_from_register
8793         with null_frame_id instead.
8794         * value.h (address_from_register): Update prototype.
8795         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8796         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8797         address_from_register interface change.
8798
8799 2014-04-17  Yao Qi  <yao@codesourcery.com>
8800
8801         * gdbtypes.h: Update comments to link to types and macros'
8802         definitions.
8803
8804 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8805
8806         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8807
8808 2014-04-16  Keith Seitz  <keiths@redhat.com>
8809
8810         PR gdb/15827
8811         * dwarf2read.c (skip_one_die): Check that all relative-offset
8812         sibling DIEs fall within range of the current reader's buffer.
8813         (read_partial_die): Likewise.
8814
8815 2014-04-16  Keith Seitz  <keiths@redhat.com>
8816
8817         PR c++/16597
8818         * cp-namespace.c (lookup_symbol_file): If the type name of
8819         `this' is NULL, return immediately.
8820
8821 2014-04-14  Keith Seitz  <keiths@redhat.com>
8822
8823         PR c++/16253
8824         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8825         from symbol_matches_domain in symtab.c. All local callers
8826         of symbol_matches_domain updated.
8827         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8828         search STRUCT_DOMAIN.
8829         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8830         independently.  standard_lookup will do that automatically.
8831         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8832         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8833         (cp_lookup_symbol_in_namespace): Likewise.
8834         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8835         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8836         may return a STRUCT_DOMAIN match.
8837         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8838         * cp-support.c: Include language.h.
8839         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8840         VAR_DOMAIN.
8841         * psymtab.c (match_partial_symbol): Compare the requested
8842         domain with the symbol's domain directly.
8843         (lookup_partial_symbol): Likewise.
8844         * symtab.c (lookup_symbol_in_language): Explain when/why
8845         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8846         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8847         appropriate languages.
8848         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8849         and moved to ada-lang.c
8850         (lookup_block_symbol): Explain that this function only returns
8851         symbol matching the requested DOMAIN.
8852         Compare the requested domain with the symbol's domain directly.
8853         (iterate_over_symbols): Compare the requested domain with the
8854         symbol's domain directly.
8855         * symtab.h (symbol_matches_domain): Remove.
8856
8857 2014-04-14  Tom Tromey  <tromey@redhat.com>
8858
8859         PR c++/15246:
8860         * c-exp.y (type_aggregate_p): New function.
8861         (qualified_name, classify_inner_name): Use it.
8862         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8863         and TYPE_TARGET_TYPE of an enum type.
8864         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8865         an enum type.
8866         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8867         handle TYPE_DECLARED_CLASS.
8868         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8869         types.
8870         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8871         * valops.c (enum_constant_from_type): New function.
8872         (value_aggregate_elt): Use it.
8873         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8874         TYPE_CODE_ENUM.
8875
8876 2014-04-14  Tom Tromey  <tromey@redhat.com>
8877
8878         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8879         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8880         const.
8881         * value.h (value_aggregate_elt): Update.
8882
8883 2014-04-14  Tom Tromey  <tromey@redhat.com>
8884
8885         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8886
8887 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8888
8889         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8890         (evaluate_subexp_standard): Pass noside argument.
8891         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8892         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8893         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8894         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8895         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8896
8897 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8898
8899         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8900         points to a constant blob.
8901
8902 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8903
8904         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8905         property and store it as the high bound and flag the range accordingly.
8906         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8907         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8908         * gdbtypes.h (enum range_flags): New enum.
8909         (struct range_bounds): Add flags member.
8910
8911 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8912
8913         * c-typeprint.c (c_type_print_varspec_suffix): Added
8914         check for not yet resolved high bound. If unresolved, print
8915         "variable length" string to the console instead of random
8916         length.
8917
8918 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8919
8920         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8921         value.
8922         (ada_template_to_fixed_record_type_1): Likewise.
8923         (ada_to_fixed_type_1): Likewise.
8924         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8925         (cp_print_value): Likewise.
8926         * d-valprint.c (dynamic_array_type): Likewise.
8927         * findvar.c (address_of_variable): Likewise.
8928         * jv-valprint.c (java_value_print): Likewise.
8929         * valops.c (value_ind): Likewise.
8930         * value.c (coerce_ref): Likewise.
8931
8932 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8933
8934         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8935         value and retrieve the dynamic type size.
8936
8937 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8938
8939         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8940         passed to sizeof is dynamic evaluate the argument to compute the length.
8941
8942 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8943             Joel Brobecker  <brobecker@adacore.com>
8944
8945         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8946         (dwarf2_evaluate_property): New function.
8947         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8948         * dwarf2read.c (attr_to_dynamic_prop): New function.
8949         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8950         attribute.
8951         * gdbtypes.c: Include dwarf2loc.h.
8952         (is_dynamic_type): New function.
8953         (resolve_dynamic_type): New function.
8954         (resolve_dynamic_bounds): New function.
8955         (get_type_length): New function.
8956         (check_typedef): Use get_type_length to compute type length.
8957         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8958         (TYPE_LOW_BOUND_KIND): New macro.
8959         (is_dynamic_type): New function prototype.
8960         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8961         to resolve dynamic properties of the type. Update comment.
8962         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8963
8964 2014-04-14  Richard Henderson  <rth@redhat.com>
8965
8966         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8967
8968 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8969             Doug Evans  <xdje42@gmail.com>
8970
8971         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8972         dereference TYPE_CODE_REF values.
8973
8974 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8975
8976         Revert the following changes due to regressions:
8977
8978         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8979         (dwarf2_evaluate_property): New function.
8980         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8981         * dwarf2read.c (attr_to_dynamic_prop): New function.
8982         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8983         attribute.
8984         * gdbtypes.c: Include dwarf2loc.h.
8985         (is_dynamic_type): New function.
8986         (resolve_dynamic_type): New function.
8987         (resolve_dynamic_bounds): New function.
8988         (get_type_length): New function.
8989         (check_typedef): Use get_type_length to compute type length.
8990         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8991         (TYPE_LOW_BOUND_KIND): New macro.
8992         (is_dynamic_type): New function prototype.
8993         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8994         to resolve dynamic properties of the type. Update comment.
8995         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8996
8997         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8998         passed to sizeof is dynamic evaluate the argument to compute the length.
8999
9000         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9001         value and retrieve the dynamic type size.
9002
9003         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9004         (ada_template_to_fixed_record_type_1): Likewise.
9005         (ada_to_fixed_type_1): Likewise.
9006         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9007         (cp_print_value): Likewise.
9008         * d-valprint.c (dynamic_array_type): Likewise.
9009         * eval.c (evaluate_subexp_with_coercion): Likewise.
9010         * findvar.c (address_of_variable): Likewise.
9011         * jv-valprint.c (java_value_print): Likewise.
9012         * valops.c (value_ind): Likewise.
9013         * value.c (coerce_ref): Likewise.
9014
9015         * c-typeprint.c (c_type_print_varspec_suffix): Added
9016         check for not yet resolved high bound. If unresolved, print
9017         "variable length" string to the console instead of random
9018         length.
9019
9020         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9021         property and store it as the high bound and flag the range accordingly.
9022         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9023         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9024         * gdbtypes.h (enum range_flags): New enum.
9025         (struct range_bounds): Add flags member.
9026
9027         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9028         points to a constant blob.
9029
9030         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9031         (evaluate_subexp_standard): Pass noside argument.
9032         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9033         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9034         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9035         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9036         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9037
9038 2014-04-11  Keith Seitz  <keiths@redhat.com>
9039
9040         PR c++/16675
9041         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9042         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9043         reference types.
9044
9045 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9046
9047         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9048         (evaluate_subexp_standard): Pass noside argument.
9049         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9050         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9051         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9052         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9053         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9054
9055 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9056
9057         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9058         points to a constant blob.
9059
9060 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9061
9062         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9063         property and store it as the high bound and flag the range accordingly.
9064         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9065         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9066         * gdbtypes.h (enum range_flags): New enum.
9067         (struct range_bounds): Add flags member.
9068
9069 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9070
9071         * c-typeprint.c (c_type_print_varspec_suffix): Added
9072         check for not yet resolved high bound. If unresolved, print
9073         "variable length" string to the console instead of random
9074         length.
9075
9076 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9077
9078         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9079         (ada_template_to_fixed_record_type_1): Likewise.
9080         (ada_to_fixed_type_1): Likewise.
9081         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9082         (cp_print_value): Likewise.
9083         * d-valprint.c (dynamic_array_type): Likewise.
9084         * eval.c (evaluate_subexp_with_coercion): Likewise.
9085         * findvar.c (address_of_variable): Likewise.
9086         * jv-valprint.c (java_value_print): Likewise.
9087         * valops.c (value_ind): Likewise.
9088         * value.c (coerce_ref): Likewise.
9089
9090 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9091
9092         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9093         value and retrieve the dynamic type size.
9094
9095 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9096
9097         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9098         passed to sizeof is dynamic evaluate the argument to compute the length.
9099
9100 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9101
9102         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9103         (dwarf2_evaluate_property): New function.
9104         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9105         * dwarf2read.c (attr_to_dynamic_prop): New function.
9106         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9107         attribute.
9108         * gdbtypes.c: Include dwarf2loc.h.
9109         (is_dynamic_type): New function.
9110         (resolve_dynamic_type): New function.
9111         (resolve_dynamic_bounds): New function.
9112         (get_type_length): New function.
9113         (check_typedef): Use get_type_length to compute type length.
9114         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9115         (TYPE_LOW_BOUND_KIND): New macro.
9116         (is_dynamic_type): New function prototype.
9117         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9118         to resolve dynamic properties of the type. Update comment.
9119         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9120
9121 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9122
9123         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9124         declaring high/low bounds and change uses accordingly. Call
9125         create_range_type instead of create_static_range_type.
9126         * gdbtypes.c (create_range_type): New function.
9127         (create_range_type): Convert bounds into struct bound_prop and pass
9128         them to create_range_type.
9129         * gdbtypes.h (struct bound_prop): New struct.
9130         (create_range_type): New function prototype.
9131         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9132         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9133         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9134         part of the bound.
9135         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9136
9137 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9138
9139         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9140         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9141         * ada-lang.c: All uses of create_range_type updated.
9142         * coffread.c: All uses of create_range_type updated.
9143         * dwarf2read.c: All uses of create_range_type updated.
9144         * f-exp.y: All uses of create_range_type updated.
9145         * m2-valprint.c: All uses of create_range_type updated.
9146         * mdebugread.c: All uses of create_range_type updated.
9147         * stabsread.c: All uses of create_range_type updated.
9148         * valops.c: All uses of create_range_type updated.
9149         * valprint.c: All uses of create_range_type updated.
9150
9151 2014-04-10  Pedro Alves  <palves@redhat.com>
9152
9153         * breakpoint.c (single_step_breakpoints)
9154         (single_step_gdbarch): Move up in the file.
9155         (one_breakpoint_xfer_memory): New function, factored out from ...
9156         (breakpoint_xfer_memory): ... here.  Also process single-step
9157         breakpoints.
9158
9159 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9160
9161         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9162         comments.
9163         (darwin_decode_exception_message): Free port only after use.
9164
9165 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9166
9167         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9168         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9169         when setting the size of call_length.
9170
9171 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9172
9173         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9174         dereference TYPE_CODE_REF values.
9175
9176 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9177
9178         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9179         end of warning message.
9180
9181 2014-04-03  Doug Evans  <dje@google.com>
9182
9183         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9184         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9185
9186 2014-04-02  Alan Modra  <amodra@gmail.com>
9187
9188         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9189         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9190         (struct symbol_file_add_from_memory_args): Add size field.
9191         (find_vdso_size): New function.
9192         (add_vsyscall_page): Attempt to find vdso size.
9193
9194 2014-04-01  Doug Evans  <dje@google.com>
9195
9196         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9197
9198 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9199
9200         * darwin-nat.c (darwin_encode_reply): Add prototype.
9201         (darwin_decode_exception_message): Reply to unknown inferiors.
9202         (darwin_decode_message): Handle message by id.  Ignore message
9203         to unknown inferior.
9204         (darwin_wait): Discard unknown messages, add debug trace.
9205
9206 2014-03-31  Doug Evans  <dje@google.com>
9207
9208         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9209         comp_dir_string.
9210
9211 2014-03-31  Doug Evans  <dje@google.com>
9212
9213         New option "set print symbol-loading".
9214         * NEWS: Mention it.
9215         * solib.c (solib_read_symbols): Only print symbol loading messages
9216         if requested.
9217         (solib_add): If symbol loading is in "brief" mode, notify user
9218         symbols are being loaded.
9219         (reload_shared_libraries_1): Ditto.
9220         * symfile.c (print_symbol_loading_off): New static global.
9221         (print_symbol_loading_brief): New static global.
9222         (print_symbol_loading_full): New static global.
9223         (print_symbol_loading_enums): New static global.
9224         (print_symbol_loading): New static global.
9225         (print_symbol_loading_p): New function.
9226         (symbol_file_add_with_addrs): Only print symbol loading messages
9227         if requested.
9228         (_initialize_symfile): Register "print symbol-loading" set/show
9229         command.
9230         * symfile.h (print_symbol_loading_p): Declare.
9231
9232 2014-03-30  Doug Evans  <xdje42@gmail.com>
9233
9234         * infrun.c (set_last_target_status): New function.
9235         (handle_inferior_event): Call it.
9236
9237 2014-03-30  Doug Evans  <xdje42@gmail.com>
9238
9239         * inferior.h (enum stop_kind): Improve comment.
9240
9241 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9242
9243         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9244         a reference, strip the reference layer before calling
9245         the lang_ops value_has_mutated callback.
9246
9247 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9248
9249         Remove some globals from our parser.
9250         * language.c (unk_lang_parser): Add "struct parser_state"
9251         argument.
9252         * language.h (struct language_defn) <la_parser>: Likewise.
9253         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9254         (initialize_expout): Add "struct parser_state" argument.
9255         Rewrite function to use the parser state.
9256         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9257         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9258         write_exp_elt_longcst, write_exp_elt_dblcst,
9259         write_exp_elt_decfloatcst, write_exp_elt_type,
9260         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9261         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9262         write_dollar_variable): Likewise.
9263         (parse_exp_in_context_1): Use parser state.
9264         (insert_type_address_space): Add "struct parser_state" argument.
9265         Use parser state.
9266         (increase_expout_size): New function.
9267         * parser-defs.h: Forward declare "struct language_defn" and
9268         "struct parser_state".
9269         (expout, expout_size, expout_ptr): Remove extern declarations.
9270         (parse_gdbarch, parse_language): Rewrite macro declarations to
9271         accept the parser state.
9272         (struct parser_state): New struct.
9273         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9274         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9275         write_exp_elt_decfloatcst, write_exp_elt_type,
9276         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9277         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9278         write_exp_msymbol, write_dollar_variable,
9279         mark_struct_expression, insert_type_address_space): Add "struct
9280         parser_state" argument.
9281         (increase_expout_size): New function.
9282         * utils.c (do_clear_parser_state): New function.
9283         (make_cleanup_clear_parser_state): Likewise.
9284         * utils.h (make_cleanup_clear_parser_state): New function
9285         prototype.
9286         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9287         Update calls to write_exp* in order to pass the parser state.
9288         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9289         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9290         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9291         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9292         * stap-probe.c (stap_parse_register_operand): Likewise.
9293         (stap_parse_single_operand): Likewise.
9294         (stap_parse_argument_1): Likewise.
9295         (stap_parse_argument): Use parser state.
9296         * stap-probe.h: Include "parser-defs.h".
9297         (struct stap_parse_info) <pstate>: New field.
9298         * c-exp.y (parse_type): Rewrite to use parser state.
9299         (yyparse): Redefine to c_parse_internal.
9300         (pstate): New global variable.
9301         (parse_number): Add "struct parser_state" argument.
9302         (write_destructor_name): Likewise.
9303         (type_exp): Update calls to write_exp* and similars in order to
9304         use parser state.
9305         (exp1, exp, variable, qualified_name, space_identifier,
9306         typename, typebase): Likewise.
9307         (write_destructor_name, parse_number, lex_one_token,
9308         classify_name, classify_inner_name, c_parse): Add "struct
9309         parser_state" argument.  Update function to use parser state.
9310         * c-lang.h: Forward declare "struct parser_state".
9311         (c_parse): Add "struct parser_state" argument.
9312         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9313         (yyparse): Redefine macro to ada_parse_internal.
9314         (pstate): New variable.
9315         (write_int, write_object_renaming, write_var_or_type,
9316         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9317         type_int, type_long, type_long_long, type_float, type_double,
9318         type_long_double, type_char, type_boolean, type_system_address):
9319         Add "struct parser_state" argument.
9320         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9321         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9322         var_or_type, aggregate, aggregate_component_list,
9323         positional_list, others, component_group,
9324         component_associations): Update calls to write_exp* and similar
9325         functions in order to use parser state.
9326         (ada_parse, write_var_from_sym, write_int,
9327         write_exp_op_with_string, write_object_renaming,
9328         find_primitive_type, write_selectors, write_ambiguous_var,
9329         write_var_or_type, write_name_assoc, type_int, type_long,
9330         type_long_long, type_float, type_double, type_long_double,
9331         type_char, type_boolean, type_system_address): Add "struct
9332         parser_state" argument.  Adjust function to use parser state.
9333         * ada-lang.c (parse): Likewise.
9334         * ada-lang.h: Forward declare "struct parser_state".
9335         (ada_parse): Add "struct parser_state" argument.
9336         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9337         calls to both functions.
9338         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9339         parser state.
9340         (yyparse): Redefine macro to f_parse_internal.
9341         (pstate): New variable.
9342         (parse_number): Add "struct parser_state" argument.
9343         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9344         and similars in order to use parser state.
9345         (parse_number): Adjust code to use parser state.
9346         (yylex): Likewise.
9347         (f_parse): New function.
9348         * f-lang.h: Forward declare "struct parser_state".
9349         (f_parse): Add "struct parser_state" argument.
9350         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9351         parser state.
9352         (yyparse): Redefine macro for java_parse_internal.
9353         (pstate): New variable.
9354         (push_expression_name, push_expression_name, insert_exp): Add
9355         "struct parser_state" argument.
9356         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9357         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9358         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9359         PostIncrementExpression, PostDecrementExpression,
9360         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9361         UnaryExpressionNotPlusMinus, CastExpression,
9362         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9363         RelationalExpression, EqualityExpression, AndExpression,
9364         ExclusiveOrExpression, InclusiveOrExpression,
9365         ConditionalAndExpression, ConditionalOrExpression,
9366         ConditionalExpression, Assignment, LeftHandSide): Update
9367         calls to write_exp* and similars in order to use parser state.
9368         (parse_number): Ajust code to use parser state.
9369         (yylex): Likewise.
9370         (java_parse): New function.
9371         (push_variable): Add "struct parser_state" argument.  Adjust
9372         code to user parser state.
9373         (push_fieldnames, push_qualified_expression_name,
9374         push_expression_name, insert_exp): Likewise.
9375         * jv-lang.h: Forward declare "struct parser_state".
9376         (java_parse): Add "struct parser_state" argument.
9377         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9378         parser state.
9379         (yyparse): Redefine macro to m2_parse_internal.
9380         (pstate): New variable.
9381         (type_exp, exp, fblock, variable, type): Update calls to
9382         write_exp* and similars to use parser state.
9383         (yylex): Likewise.
9384         (m2_parse): New function.
9385         * m2-lang.h: Forward declare "struct parser_state".
9386         (m2_parse): Add "struct parser_state" argument.
9387         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9388         * objc-lang.h: Forward declare "struct parser_state".
9389         (end_msglist): Add "struct parser_state" argument.
9390         * p-exp.y (parse_type): Rewrite macro to use parser state.
9391         (yyparse): Redefine macro to pascal_parse_internal.
9392         (pstate): New variable.
9393         (parse_number): Add "struct parser_state" argument.
9394         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9395         write_exp* and similars in order to use parser state.
9396         (parse_number, yylex): Adjust code to use parser state.
9397         (pascal_parse): New function.
9398         * p-lang.h: Forward declare "struct parser_state".
9399         (pascal_parse): Add "struct parser_state" argument.
9400         * go-exp.y (parse_type): Rewrite macro to use parser state.
9401         (yyparse): Redefine macro to go_parse_internal.
9402         (pstate): New variable.
9403         (parse_number): Add "struct parser_state" argument.
9404         (type_exp, exp1, exp, variable, type): Update calls to
9405         write_exp* and similars in order to use parser state.
9406         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9407         to use parser state.
9408         (go_parse): Likewise.
9409         * go-lang.h: Forward declare "struct parser_state".
9410         (go_parse): Add "struct parser_state" argument.
9411
9412 2014-03-27  Doug Evans  <dje@google.com>
9413
9414         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9415
9416 2014-03-27  Doug Evans  <dje@google.com>
9417
9418         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9419         Remove argument abbrev_section.  All callers updated.
9420
9421 2014-03-27  Doug Evans  <dje@google.com>
9422
9423         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9424         addr_base, ranges_base.
9425
9426 2014-03-26  Keith Seitz  <keiths@redhat.com>
9427
9428         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9429         types, not VAR_DOMAIN.
9430
9431 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9432
9433         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9434         "ra" registers.
9435         * features/nios2-linux.c: Regenerated.
9436         * features/nios2.c: Regenerated.
9437
9438 2014-03-25  Pedro Alves  <palves@redhat.com>
9439
9440         * cli/cli-script.c (script_from_file): Force the interpreter to
9441         sync mode.
9442
9443 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9444
9445         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9446         small stack allocation.
9447
9448 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9449
9450         * darwin-nat.c (exc_server): Remove unused prototype.
9451         (darwin_dump_message): Correctly display data on x86_64.
9452         (darwin_encode_reply): Fix style.
9453         Add comments and fix indentation.
9454
9455 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9456
9457         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9458
9459 2014-03-22  Doug Evans  <xdje42@gmail.com>
9460
9461         * infcmd.c: Whitespace fixes.
9462         (interrupt_command): Merge two function comments into one.
9463
9464 2014-03-22  Doug Evans  <xdje42@gmail.com>
9465
9466         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9467         All uses updated.
9468
9469 2014-03-22  Yao Qi  <yao@codesourcery.com>
9470
9471         * remote.c (target_read_live_memory): Remove.
9472         (memory_xfer_live_readonly_partial): Rename it to
9473         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9474         All callers updated.  Call remote_read_bytes_1
9475         instead of target_read_live_memory.
9476         * tracepoint.c (set_traceframe_number): Remove.
9477         (make_cleanup_restore_traceframe_number): Likewise .
9478         * tracepoint.h (set_traceframe_number): Remove declaration.
9479         (make_cleanup_restore_traceframe_number): Likewise.
9480
9481 2014-03-22  Yao Qi  <yao@codesourcery.com>
9482
9483         * remote.c (remote_read_bytes): Move code on reading from the
9484         remote stub to ...
9485         (remote_read_bytes_1): ... here.  New function.
9486
9487 2014-03-22  Yao Qi  <yao@codesourcery.com>
9488
9489         * ctf.c (ctf_xfer_partial): Check the return value of
9490         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9491         return TARGET_XFER_UNAVAILABLE.
9492         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9493         * target.c (target_read_live_memory): Move it to remote.c.
9494         (memory_xfer_live_readonly_partial): Likewise.
9495         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9496         * remote.c (target_read_live_memory): Moved from target.c.
9497         (memory_xfer_live_readonly_partial): Likewise.
9498         (remote_read_bytes): Factored out from
9499         memory_xfer_partial_1.
9500
9501 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9502
9503         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9504         NULL pointer.
9505
9506 2014-03-21  Pedro Alves  <palves@redhat.com>
9507
9508         * infrun.c (normal_stop): Extend comment.
9509
9510 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9511             Pedro Alves  <palves@redhat.com>
9512
9513         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9514         static buffer.
9515         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9516         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9517         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9518
9519 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9520
9521         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9522         `z' formatted output modifier.
9523
9524 2014-03-20  Tom Tromey  <tromey@redhat.com>
9525             Sergio Durigan Junior  <sergiodj@redhat.com>
9526
9527         * probe.c (parse_probes): Turn assert into an ordinary error.
9528         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9529         exceptions when parsing probes.  Rearrange the code for clarity.
9530
9531 2014-03-20  Tom Tromey  <tromey@redhat.com>
9532
9533         PR gdb/14135
9534         * top.c (execute_command): Only dispatch events if the command
9535         started the target.
9536
9537 2014-03-20  Tom Tromey  <tromey@redhat.com>
9538
9539         PR cli/15718
9540         * infcall.c: Include event-top.h.
9541         (run_inferior_call): Call async_disable_stdin if needed.
9542
9543 2014-03-20  Pedro Alves  <palves@redhat.com>
9544
9545         * infrun.c (prepare_to_proceed): Delete.
9546         (thread_still_needs_step_over): New function.
9547         (find_thread_needs_step_over): New function.
9548         (proceed): If the current thread needs a step-over, set its
9549         steping_over_breakpoint flag.  Adjust to use
9550         find_thread_needs_step_over instead of prepare_to_proceed.
9551         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9552         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9553         breakpoint.
9554         (switch_back_to_stepped_thread): Step over breakpoints of all
9555         threads not the stepping thread, before switching back to the
9556         stepping thread.
9557
9558 2014-03-20  Pedro Alves  <palves@redhat.com>
9559
9560         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9561         extern.
9562         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9563         * infrun.c (saved_singlestep_ptid)
9564         (stepping_past_singlestep_breakpoint): Delete.
9565         (resume): Remove stepping_past_singlestep_breakpoint handling.
9566         (proceed): Store the prev_pc of the stepping thread too.
9567         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9568         singlestep_pc.
9569         (enum infwait_states): Delete infwait_thread_hop_state.
9570         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9571         field.
9572         (handle_inferior_event): Adjust.
9573         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9574         handling and the thread-hop code.  Before removing single-step
9575         breakpoints, check whether the thread hit a single-step breakpoint
9576         of another thread.  If it did, the trap is not a random signal.
9577         (switch_back_to_stepped_thread): If the event thread hit a
9578         single-step breakpoint, unblock it before switching to the
9579         stepping thread.  Handle the case of the stepped thread having
9580         advanced already.
9581         (keep_going): Handle the case of the current thread moving past a
9582         single-step breakpoint.
9583
9584 2014-03-20  Pedro Alves  <palves@redhat.com>
9585
9586         PR breakpoints/7143
9587         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9588         are being stepped over.
9589         (breakpoint_address_match): Make extern.
9590         * breakpoint.h (breakpoint_address_match): New declaration.
9591         * inferior.h (stepping_past_instruction_at): New declaration.
9592         * infrun.c (struct step_over_info): New type.
9593         (step_over_info): New global.
9594         (set_step_over_info, clear_step_over_info)
9595         (stepping_past_instruction_at): New functions.
9596         (handle_inferior_event): Clear the step-over info when
9597         trap_expected is cleared.
9598         (resume): Remove now stale comment.
9599         (clear_proceed_status): Clear step-over info.
9600         (proceed): Adjust step-over handling to set or clear the step-over
9601         info instead of removing all breakpoints.
9602         (handle_signal_stop): When setting up a thread-hop, don't remove
9603         breakpoints here.
9604         (stop_stepping): Clear step-over info.
9605         (keep_going): Adjust step-over handling to set or clear step-over
9606         info and then always inserting breakpoints, instead of removing
9607         all breakpoints when stepping over one.
9608
9609 2014-03-20  Pedro Alves  <palves@redhat.com>
9610
9611         * infrun.c (previous_inferior_ptid): Adjust comment.
9612         (deferred_step_ptid): Delete.
9613         (infrun_thread_ptid_changed, prepare_to_proceed)
9614         (init_wait_for_inferior): Adjust.
9615         (handle_signal_stop): Delete deferred_step_ptid handling.
9616
9617 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9618
9619         PR gdb/15358
9620         * defs.h (sync_quit_force_run): New declaration.
9621         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9622         * event-top.c (async_sigterm_handler): New declaration.
9623         (async_sigterm_token): New variable.
9624         (async_init_signals): Create also async_sigterm_token.
9625         (async_sigterm_handler): New function.
9626         (sync_quit_force_run): New variable.
9627         (handle_sigterm): Replace quit_force call by other calls.
9628         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9629
9630 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9631
9632         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9633         offset into SPE pseudo registers.
9634
9635 2014-03-18  Pedro Alves  <palves@redhat.com>
9636
9637         PR gdb/13860
9638         * inferior.h (print_stop_event): Declare.
9639         * infrun.c (print_stop_event): New, factored out from ...
9640         (normal_stop): ... this.
9641         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9642         of bpstat_print/print_stack_frame.
9643
9644 2014-03-17  Tom Tromey  <tromey@redhat.com>
9645
9646         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9647
9648 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9649
9650         * ada-lang.c (decode_constrained_packed_array): Perform a
9651         minimal coercion for reference with coerce_ref instead of
9652         ada_coerce_ref.
9653
9654 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9655
9656         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9657         (darwin_solib_create_inferior_hook): Emit a warning if version
9658         is unhandled.
9659
9660 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9661
9662         * python/py-value.c (get_field_flag): Cast flag_name argument to
9663         PyObject_GetAttrString to support Python 2.4.
9664
9665 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9666
9667         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9668         (Global Maintainers): Remove Jan Kratochvil.
9669
9670 2014-03-14  Pedro Alves  <palves@redhat.com>
9671
9672         * inferior.h (terminal_ours_for_output): Rename to ...
9673         (child_terminal_ours_for_output): ... this.
9674         (terminal_save_ours): Rename to ...
9675         (child_terminal_save_ours): ... this.
9676         (terminal_ours): Rename to ...
9677         (child_terminal_ours): ... this.
9678         (terminal_inferior): Rename to ...
9679         (child_terminal_inferior): ... this.
9680         (terminal_init_inferior): Rename to ...
9681         (child_terminal_init_inferior): ... this.
9682         (terminal_init_inferior_with_pgrp): Rename to ...
9683         (child_terminal_init_inferior_with_pgrp): ... this.
9684         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9685         (child_terminal_init_with_pgrp): ... this.
9686         (terminal_save_ours): Rename to ...
9687         (child_terminal_save_ours): ... this.
9688         (terminal_init_inferior): Rename to ...
9689         (child_terminal_init): ... this.  Adjust.
9690         (terminal_inferior): Rename to ...
9691         (child_terminal_inferior): ... this.
9692         (terminal_ours_for_output): Rename to ...
9693         (child_terminal_ours_for_output): ... this.  Adjust.
9694         (terminal_ours): Rename to ...
9695         (child_terminal_ours): ... this.
9696         (terminal_ours_1): Rename to ...
9697         (child_terminal_ours_1): ... this.  Adjust.
9698         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9699         * windows-nat.c (do_initial_windows_stuff): Adjust.
9700         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9701         (gnu_terminal_init): ... this.  Adjust.
9702         (gnu_target): Adjust.
9703         * inf-child.c (inf_child_target): Adjust.
9704
9705 2014-03-13  Doug Evans  <xdje42@gmail.com>
9706
9707         PR guile/16612
9708         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9709         new eq?-hashtab.
9710
9711 2014-03-13  Doug Evans  <xdje42@gmail.com>
9712
9713         * value.c (record_latest_value): Call release_value_or_incref
9714         instead of release_value.
9715
9716 2014-03-13  Pedro Alves  <palves@redhat.com>
9717
9718         * procfs.c (procfs_target): Don't override to_shortname,
9719         to_longname or to_doc.
9720
9721 2014-03-13  Pedro Alves  <palves@redhat.com>
9722
9723         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9724         Unix in user visible strings.
9725
9726 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9727
9728         * gdbtypes.h: Annotate comments for Doxygen, add a page
9729         block comment with some general info.
9730
9731 2014-03-12  Pedro Alves  <palves@redhat.com>
9732
9733         * infcmd.c (prepare_execution_command): New function, factored out
9734         from several execution commands.
9735         (run_command_1, continue_command, step_1, jump_command)
9736         (signal_command, until_command, advance_command, finish_command)
9737         (attach_command): Use prepare_execution_command.
9738
9739 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9740
9741         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9742         (MAX_BPTS): Define.
9743         (MAX_WPTS): Define.
9744         (struct arm_linux_thread_points): Removed.
9745         (struct arm_linux_process_info): New.
9746         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9747         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9748         (arm_linux_find_breakpoints_by_tid): Removed.
9749         (struct arch_lwp_info): New.
9750         (arm_linux_find_process_pid): New functions.
9751         (arm_linux_add_process): New functions.
9752         (arm_linux_process_info_get): New functions.
9753         (arm_linux_forget_process): New function.
9754         (arm_linux_get_debug_reg_state): New function.
9755         (struct update_registers_data): New.
9756         (update_registers_callback): New function.
9757         (arm_linux_insert_hw_breakpoint1): Updated.
9758         (arm_linux_remove_hw_breakpoint1): Updated.
9759         (arm_linux_insert_hw_breakpoint): Updated.
9760         (arm_linux_remove_hw_breakpoint): Updated.
9761         (arm_linux_insert_watchpoint): Updated.
9762         (arm_linux_remove_watchpoint): Updated.
9763         (arm_linux_new_thread): Updated.
9764         (arm_linux_prepare_to_resume): New function.
9765         (arm_linux_new_fork): New function.
9766         (_initialize_arm_linux_nat): Updated.
9767
9768 2014-03-12  Pedro Alves  <palves@redhat.com>
9769
9770         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9771
9772 2014-03-12  Tom Tromey  <tromey@redhat.com>
9773
9774         * inf-child.c (return_zero): New function.
9775         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9776         * aix-thread.c (aix_thread_inferior_created): New function.
9777         (aix_thread_attach): Remove.
9778         (init_aix_thread_ops): Don't set to_attach.
9779         (_initialize_aix_thread): Register inferior_created observer.
9780         * corelow.c (init_core_ops): Don't set to_attach or
9781         to_create_inferior.
9782         * exec.c (init_exec_ops): Don't set to_attach or
9783         to_create_inferior.
9784         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9785         target calls.
9786         (attach_command): Use find_attach_target.  Make direct target
9787         calls.
9788         * record-btrace.c (init_record_btrace_ops): Don't set
9789         to_create_inferior.
9790         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9791         Remove.
9792         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9793         set to_create_inferior.
9794         * target.c (complete_target_initialization): Add assertion.
9795         (target_create_inferior): Remove.
9796         (find_default_attach, find_default_create_inferior): Remove.
9797         (find_attach_target, find_run_target): New functions.
9798         (find_default_is_async_p, find_default_can_async_p)
9799         (target_supports_non_stop, target_attach): Remove.
9800         (init_dummy_target): Don't set to_create_inferior or
9801         to_supports_non_stop.
9802         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9803         TARGET_DEFAULT_FUNC.
9804         <to_create_inferior>: Add comment.
9805         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9806         TARGET_DEFAULT_RETURN.
9807         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9808         (find_attach_target, find_run_target): Declare.
9809         (target_create_inferior): Remove.
9810         (target_has_execution_1): Update comment.
9811         (target_supports_non_stop): Remove.
9812         * target-delegates.c: Rebuild.
9813
9814 2014-03-12  Pedro Alves  <palves@redhat.com>
9815
9816         * inf-child.h: Update comment to not mention Unix.
9817
9818 2014-03-12  Pedro Alves  <palves@redhat.com>
9819
9820         * inf-child.c: Update top comment to not mention Unix.  Add
9821         generic comment describing how this target is meant to be used.
9822         (inf_child_post_attach, inf_child_post_startup_inferior)
9823         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9824         Unix in comment.
9825
9826 2014-03-12  Pedro Alves  <palves@redhat.com>
9827
9828         * nto-procfs.c: Include inf-child.h.
9829         (procfs_ops): Delete global.
9830         (procfs_can_run): Delete method.
9831         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9832         target pointer instead of referencing procfs_ops.
9833         (procfs_prepare_to_store): Delete.
9834         (init_procfs_ops): Delete function.
9835         (procfs_target): New function, based on init_procfs_ops, but
9836         inherit inf_child_target.
9837         (_initialize_procfs): Use procfs_target.
9838
9839 2014-03-12  Pedro Alves  <palves@redhat.com>
9840
9841         * windows-nat.c: Include inf-child.h.
9842         (windows_ops): Delete global.
9843         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9844         methods.
9845         (init_windows_ops): Delete function.
9846         (windows_target): New function, based on init_windows_ops, but
9847         inherit inf_child_target.
9848         (_initialize_windows_nat): Use windows_target.  Install x86
9849         specific target methods here.
9850
9851 2014-03-10  Doug Evans  <xdje42@gmail.com>
9852
9853         * guile/guile.c (call_initialize_gdb_module): New function.
9854         (initialize_guile): Replace call to scm_init_guile with call to
9855         scm_with_guile.
9856
9857 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9858
9859         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9860         in call to TYPE_CODE macro.
9861
9862 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9863
9864         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9865         Resolve tagged types to full view.
9866
9867 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9868
9869         * target.h (target_insert_breakpoint): Remove "hardware" from its
9870         comments.
9871
9872 2014-03-07  Doug Evans  <dje@google.com>
9873
9874         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9875
9876 2014-03-07  Doug Evans  <dje@google.com>
9877
9878         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9879         Remove unused local comp_dir_attr.  Assert exactly one of
9880         stub_comp_unit_die, stub_comp_dir is non-NULL.
9881
9882 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9883
9884         * target.h (complete_target_initialization, add_target):
9885         Add comment.
9886
9887 2014-03-07  Pedro Alves  <palves@redhat.com>
9888
9889         * go32-nat.c: Include inf-child.h.
9890         (go32_ops): Delete global.
9891         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9892         Delete methods.
9893         (go32_create_inferior): Push the passed in target pointer instead
9894         of referencing go32_ops.
9895         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9896         (go32_target): New function, based on init_go32_ops, but inherit
9897         inf_child_target.
9898         (_initialize_go32_nat): Use go32_target.  Move parts of
9899         init_go32_ops here.
9900
9901 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9902
9903         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9904         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9905         SYMBOL_VALUE_ADDRESS.
9906         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9907
9908 2014-03-06  Yao Qi  <yao@codesourcery.com>
9909
9910         * breakpoint.c (get_tracepoint_by_number): Remove argument
9911         optional_p.  All callers updated.  Adjust comments.  Update
9912         output message.
9913         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9914
9915 2014-03-06  Yao Qi  <yao@codesourcery.com>
9916
9917         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9918         early if get_number returns zero.  Use 'p' instead of 'args'.
9919
9920 2014-03-06  Yao Qi  <yao@codesourcery.com>
9921
9922         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9923         message.
9924
9925 2014-03-06  Yao Qi  <yao@codesourcery.com>
9926
9927         PR breakpoints/16508
9928         * tracepoint.c (check_trace_running): New function.
9929         (trace_find_command): Move code to check_trace_running and
9930         call check_trace_running.
9931         (trace_find_pc_command): Likewise.
9932         (trace_find_tracepoint_command): Likewise.
9933         (trace_find_line_command): Likewise.
9934         (trace_find_range_command): Likewise.
9935         * tracepoint.h (check_trace_running): Likewise.
9936         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9937
9938 2014-03-06  Yao Qi  <yao@codesourcery.com>
9939
9940         * target.h (struct target_ops) <to_traceframe_info>: Use
9941         TARGET_DEFAULT_NORETURN (tcomplain ()).
9942         * target-delegates.c: Regenerated.
9943
9944 2014-03-05  Pedro Alves  <palves@redhat.com>
9945
9946         PR gdb/16575
9947         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9948         void.  Update comment.
9949         (dcache_xfer_memory): Delete.
9950         (dcache_read_memory_partial): New, based on the read bits of
9951         dcache_xfer_memory.
9952         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9953         adjust.  Discard cache lines if the reason for the update was
9954         error.
9955         * dcache.h (dcache_xfer_memory): Delete declaration.
9956         (dcache_read_memory_partial): New declaration.
9957         (dcache_update): Update prototype.
9958         * target.c (raw_memory_xfer_partial): Update the dcache here.
9959         (memory_xfer_partial_1): Don't handle dcache writes here.
9960
9961 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9962
9963         * remote-sim.c (gdbsim_load): Add const to prog.
9964
9965 2014-03-03  Tom Tromey  <tromey@redhat.com>
9966
9967         * elfread.c (probe_key): Change to bfd_data.
9968         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9969         now per-BFD, not per-objfile.
9970         * stap-probe.c (stap_probe_destroy): Update comment.
9971         (handle_stap_probe): Allocate on the per-BFD obstack.
9972
9973 2014-03-03  Tom Tromey  <tromey@redhat.com>
9974
9975         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9976         * breakpoint.c (create_longjmp_master_breakpoint): Use
9977         get_probe_address.
9978         (add_location_to_breakpoint, bkpt_probe_insert_location)
9979         (bkpt_probe_remove_location): Update.
9980         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9981         * elfread.c (elf_symfile_relocate_probe): Remove.
9982         (elf_probe_fns): Update.
9983         (insert_exception_resume_breakpoint): Change type of "probe"
9984         parameter to bound_probe.
9985         (check_exception_resume): Update.
9986         * objfiles.c (objfile_relocate1): Don't relocate probes.
9987         * probe.c (bound_probe_s): New typedef.
9988         (parse_probes): Use get_probe_address.  Set sal's objfile.
9989         (find_probe_by_pc): Return a bound_probe.
9990         (collect_probes): Return a VEC(bound_probe_s).
9991         (compare_probes): Update.
9992         (gen_ui_out_table_header_info): Change type of "probes"
9993         parameter.  Update.
9994         (info_probes_for_ops): Update.
9995         (get_probe_address): New function.
9996         (probe_safe_evaluate_at_pc): Update.
9997         * probe.h (struct probe_ops) <get_probe_address>: New field.
9998         <set_semaphore, clear_semaphore>: Add objfile parameter.
9999         (struct probe) <objfile>: Remove field.
10000         <arch>: New field.
10001         <address>: Update comment.
10002         (struct bound_probe): New.
10003         (find_probe_by_pc): Return a bound_probe.
10004         (get_probe_address): Declare.
10005         * solib-svr4.c (struct probe_and_action) <address>: New field.
10006         (hash_probe_and_action, equal_probe_and_action): Update.
10007         (register_solib_event_probe): Add address parameter.
10008         (solib_event_probe_at): Update.
10009         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10010         get_probe_address.
10011         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10012         (stap_get_probe_address): New function.
10013         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10014         (compile_probe_arg): Update.
10015         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10016         address.
10017         (handle_stap_probe): Don't relocate the probe.
10018         (stap_relocate): Remove.
10019         (stap_gen_info_probes_table_values): Update.
10020         (stap_probe_ops): Remove stap_relocate.
10021         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10022         (debug_sym_probe_fns): Update.
10023         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10024         * symtab.c (init_sal): Use memset.
10025         * symtab.h (struct symtab_and_line) <objfile>: New field.
10026         * tracepoint.c (start_tracing, stop_tracing): Update.
10027
10028 2014-03-03  Tom Tromey  <tromey@redhat.com>
10029
10030         * probe.h (parse_probes, find_probe_by_pc)
10031         (find_probes_in_objfile): Fix comments.
10032
10033 2014-03-02  Doug Evans  <xdje42@gmail.com>
10034
10035         * infrun.c (handle_signal_stop): Replace test for
10036         TARGET_WAITKIND_STOPPED with an assert.
10037
10038 2014-03-02  Doug Evans  <xdje42@gmail.com>
10039
10040         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10041
10042 2014-03-02  Doug Evans  <xdje42@gmail.com>
10043
10044         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10045
10046 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10047
10048         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10049
10050 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10051
10052         * i386obsd-nat.c: Include "obsd-nat.h".
10053         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10054         add_target.
10055         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10056
10057 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10058
10059         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10060
10061 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10062
10063         * mips64obsd-nat.c: Include "obsd-nath".
10064         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10065         add_target
10066         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10067
10068 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10069
10070         * amd64obsd-nat.c: Include "obsd-nat,h.
10071         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10072         add_target.
10073         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10074
10075 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10076
10077         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10078         (find_overload_match): Update call to find_oload_champ.
10079         (find_oload_champ_namespace_loop): Likewise
10080
10081 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10082
10083         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10084
10085         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10086         * config/sparc/obsd64.mh: New file.
10087         * sparc64obsd-nat.c: New file.
10088
10089         * obsd-nat.h: New file.
10090         * obsd-nat.c: New file.
10091         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10092         (ALLDEPFILES): Add obsd-nat.c.
10093
10094 2014-02-28  Tom Tromey  <tromey@redhat.com>
10095
10096         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10097         * cli-out.h (cli_ui_out_impl): Now const.
10098         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10099         * ui-out.c (struct ui_out) <impl>: Now const.
10100         (default_ui_out_impl): Now const.
10101         (ui_out_new): Make 'impl' parameter const.
10102         * ui-out.h (ui_out_new): Update.
10103
10104 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10105
10106         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10107
10108 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10109
10110         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10111
10112 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10113
10114         Additional PR 8882 fix.
10115         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10116
10117 2014-02-27  Pedro Alves  <palves@redhat.com>
10118
10119         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10120         isn't set.
10121
10122 2014-02-27  Pedro Alves  <palves@redhat.com>
10123
10124         PR 12702
10125         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10126         * nat/linux-waitpid.c: Include string.h.
10127         (status_to_str): Moved here and made extern.
10128         * nat/linux-waitpid.h (status_to_str): New declaration.
10129
10130 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10131
10132         PR 12702
10133         * infrun.c (ptid_match): Move ...
10134         * common/ptid.c (ptid_match): ... here.
10135         * inferior.h (ptid_match): Move ...
10136         * common/ptid.h (ptid_match): ... here.
10137
10138 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10139
10140         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10141         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10142         gdb_target_obs.
10143
10144 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10145
10146         * obsd-tdep.c (obsd_auxv_parse): New function.
10147         (obsd_init_abi): Set auxv_parse.
10148
10149         * gdbarch.sh (auxv_parse): New.
10150         * gdbarch.h: Regenerated.
10151         * gdbarch.c: Regenerated.
10152         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10153
10154 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10155
10156         * guile/scm-value.c (gdbscm_history_append_x): New function.
10157         (value_functions): Add it.
10158
10159 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10160
10161         * dwarf2read.c (attr_value_as_address): New function.
10162         (dwarf2_find_base_address, read_call_site_scope): Use
10163         attr_value_as_address in place of DW_ADDR.
10164         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10165         the low and high addresses.  Slight rework of the handling
10166         of the high pc being a constant form, and limit it to
10167         DWARF verson 4 or higher.
10168         (dwarf2_record_block_ranges): Likewise.
10169         (read_partial_die): Likewise.
10170         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10171
10172 2014-02-26  Tom Tromey  <tromey@redhat.com>
10173
10174         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10175
10176 2014-02-26  Tom Tromey  <tromey@redhat.com>
10177
10178         * elfread.c (elf_read_minimal_symbols): Return early if
10179         minimal symbols have already been read.  Add "ei" parameter.
10180         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10181         * minsyms.c (prim_record_minimal_symbol_full): Update.
10182         * objfiles.h (struct objstats) <n_minsyms>: Move...
10183         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10184         * symmisc.c (print_objfile_statistics): Update.
10185
10186 2014-02-26  Tom Tromey  <tromey@redhat.com>
10187
10188         * elfread.c (elf_read_minimal_symbols): New function, from
10189         elf_symfile_read.
10190         (elf_symfile_read): Call it.
10191
10192 2014-02-26  Tom Tromey  <tromey@redhat.com>
10193
10194         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10195         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10196         (lookup_minimal_symbol_solib_trampoline)
10197         (lookup_minimal_symbol_by_pc_section_1)
10198         (lookup_minimal_symbol_and_objfile): Update.
10199         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10200         Don't allocate a minimal symbol if minsyms have already been read.
10201         (build_minimal_symbol_hash_tables): Update.
10202         (install_minimal_symbols): Do nothing if minsyms already read.
10203         Use the per-BFD obstack.
10204         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10205         * objfiles.c (allocate_objfile): Call
10206         terminate_minimal_symbol_table later.
10207         (have_minimal_symbols): Update.
10208         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10209         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10210         Move from struct objfile.
10211         <minsyms_read>: New field.
10212         (struct objfile) <msymbols, minimal_symbol_count,
10213         msymbol_hash, msymbol_demangled_hash>: Move.
10214         (ALL_OBJFILE_MSYMBOLS): Update.
10215         * symfile.c (read_symbols): Set minsyms_read.
10216         (reread_symbols): Update.
10217         * symmisc.c (dump_objfile, dump_msymbols): Update.
10218
10219 2014-02-26  Tom Tromey  <tromey@redhat.com>
10220
10221         * minsyms.c (msymbols_sort): Remove.
10222         * minsyms.h (msymbols_sort): Remove.
10223         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10224         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10225         * elfread.c (elf_symtab_read): Don't add section offsets.
10226         * xcoffread.c (record_minimal_symbol): Don't add section offset
10227         to minimal symbol address.
10228         * somread.c (text_offset, data_offset): Remove.
10229         (som_symtab_read): Don't add section offsets to minimal symbol
10230         addresses.
10231         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10232         Don't add section offsets to minimal symbols.
10233         * coffread.c (coff_symtab_read): Don't add section offsets
10234         to minimal symbol addresses.
10235         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10236         to minimal symbol addresses.
10237         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10238         section offset to minimal symbol addresses.
10239         * mdebugread.c (parse_partial_symbols): Don't add section
10240         offset to minimal symbol addresses.
10241         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10242         offset to minimal symbol addresses.
10243
10244 2014-02-26  Tom Tromey  <tromey@redhat.com>
10245
10246         * ada-lang.c (ada_main_name): Update.
10247         (ada_add_standard_exceptions): Update.
10248         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10249         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10250         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10251         * auxv.c (ld_so_xfer_auxv): Update.
10252         * avr-tdep.c (avr_scan_prologue): Update.
10253         * ax-gdb.c (gen_var_ref): Update.
10254         * blockframe.c (get_pc_function_start)
10255         (find_pc_partial_function_gnu_ifunc): Update.
10256         * breakpoint.c (create_overlay_event_breakpoint)
10257         (create_longjmp_master_breakpoint)
10258         (create_std_terminate_master_breakpoint)
10259         (create_exception_master_breakpoint): Update.
10260         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10261         * c-valprint.c (c_val_print): Update.
10262         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10263         * common/agent.c (agent_look_up_symbols): Update.
10264         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10265         * dwarf2loc.c (call_site_to_target_addr): Update.
10266         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10267         * elfread.c (elf_gnu_ifunc_record_cache)
10268         (elf_gnu_ifunc_resolve_by_got): Update.
10269         * findvar.c (default_read_var_value): Update.
10270         * frame.c (inside_main_func): Update.
10271         * frv-tdep.c (frv_frame_this_id): Update.
10272         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10273         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10274         Update.
10275         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10276         (hppa_hpux_find_dummy_bpaddr): Update.
10277         * hppa-tdep.c (hppa_symbol_address): Update.
10278         * infcmd.c (until_next_command): Update.
10279         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10280         Update.
10281         * linespec.c (minsym_found, add_minsym): Update.
10282         * linux-nat.c (get_signo): Update.
10283         * linux-thread-db.c (inferior_has_bug): Update.
10284         * m32c-tdep.c (m32c_return_value)
10285         (m32c_m16c_address_to_pointer): Update.
10286         * m32r-tdep.c (m32r_frame_this_id): Update.
10287         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10288         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10289         * maint.c (maintenance_translate_address): Update.
10290         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10291         (frob_address): New function.
10292         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10293         frob_address.  Rename parameter to "pc_in".
10294         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10295         addresses.
10296         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10297         Update.
10298         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10299         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10300         * objc-lang.c (find_objc_msgsend): Update.
10301         * objfiles.c (objfile_relocate1): Update.
10302         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10303         * p-valprint.c (pascal_val_print): Update.
10304         * parse.c (write_exp_msymbol): Update.
10305         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10306         (ppc_elfv2_skip_entrypoint): Update.
10307         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10308         * printcmd.c (build_address_symbolic, msym_info)
10309         (address_info): Update.
10310         * proc-service.c (ps_pglobal_lookup): Update.
10311         * psymtab.c (find_pc_sect_psymtab_closer)
10312         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10313         Change msymbol parameter to bound_minimal_symbol.
10314         * ravenscar-thread.c (get_running_thread_id): Update.
10315         * remote.c (remote_check_symbols): Update.
10316         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10317         address.
10318         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10319         * solib-dsbt.c (lm_base): Update.
10320         * solib-frv.c (lm_base, main_got): Update.
10321         * solib-irix.c (locate_base): Update.
10322         * solib-som.c (som_solib_create_inferior_hook)
10323         (link_map_start): Update.
10324         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10325         * solib-svr4.c (elf_locate_base, enable_break): Update.
10326         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10327         (flush_ea_cache): Update.
10328         * stabsread.c (define_symbol, scan_file_globals): Update.
10329         * stack.c (find_frame_funname): Update.
10330         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10331         (debug_qf_find_pc_sect_symtab): Update.
10332         * symfile.c (simple_read_overlay_table)
10333         (simple_overlay_update): Update.
10334         * symfile.h (struct quick_symbol_functions)
10335         <find_pc_sect_symtab>: Change type of msymbol to
10336         bound_minimal_symbol.
10337         * symmisc.c (dump_msymbols): Update.
10338         * symtab.c (find_pc_sect_symtab_via_partial)
10339         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10340         (search_symbols, print_msymbol_info): Update.
10341         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10342         (MSYMBOL_VALUE_ADDRESS): Redefine.
10343         (BMSYMBOL_VALUE_ADDRESS): New macro.
10344         * tracepoint.c (scope_info): Update.
10345         * tui/tui-disasm.c (tui_find_disassembly_address)
10346         (tui_get_begin_asm_address): Update.
10347         * valops.c (find_function_in_inferior): Update.
10348         * value.c (value_static_field, value_fn_field): Update.
10349
10350 2014-02-26  Tom Tromey  <tromey@redhat.com>
10351
10352         * ada-lang.c (ada_update_initial_language): Update.
10353         (ada_main_name, ada_has_this_exception_support): Update.
10354         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10355         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10356         * arm-tdep.c (arm_skip_stub): Update.
10357         * auxv.c (ld_so_xfer_auxv): Update.
10358         * avr-tdep.c (avr_scan_prologue): Update.
10359         * ax-gdb.c (gen_var_ref): Update.
10360         * breakpoint.c (struct breakpoint_objfile_data)
10361         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10362         type to bound_minimal_symbol.
10363         (create_overlay_event_breakpoint)
10364         (create_longjmp_master_breakpoint)
10365         (create_std_terminate_master_breakpoint)
10366         (create_exception_master_breakpoint): Update.
10367         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10368         * c-exp.y (classify_name): Update.
10369         * coffread.c (coff_symfile_read): Update.
10370         * common/agent.c (agent_look_up_symbols): Update.
10371         * d-lang.c (d_main_name): Update.
10372         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10373         * dec-thread.c (enable_dec_thread): Update.
10374         * dwarf2loc.c (call_site_to_target_addr): Update.
10375         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10376         * eval.c (evaluate_subexp_standard): Update.
10377         * findvar.c (struct minsym_lookup_data) <result>: Change type
10378         to bound_minimal_symbol.
10379         <objfile>: Remove.
10380         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10381         * frame.c (inside_main_func): Update.
10382         * frv-tdep.c (frv_frame_this_id): Update.
10383         * gcore.c (call_target_sbrk): Update.
10384         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10385         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10386         Update.
10387         * go-lang.c (go_main_name): Update.
10388         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10389         (hppa_hpux_find_import_stub_for_addr): Update.
10390         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10391         Update.  Change return type.
10392         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10393         type.
10394         * jit.c (jit_breakpoint_re_set_internal): Update.
10395         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10396         Update.
10397         * linux-nat.c (get_signo): Update.
10398         * linux-thread-db.c (inferior_has_bug): Update
10399         * m32c-tdep.c (m32c_return_value)
10400         (m32c_m16c_address_to_pointer): Update.
10401         * m32r-tdep.c (m32r_frame_this_id): Update.
10402         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10403         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10404         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10405         lookup_minimal_symbol.  Change return type.
10406         (lookup_minimal_symbol): Remove.
10407         (lookup_bound_minimal_symbol): Update.
10408         (lookup_minimal_symbol_text): Change return type.
10409         (lookup_minimal_symbol_solib_trampoline): Change return type.
10410         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10411         (lookup_minimal_symbol_solib_trampoline): Change return type.
10412         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10413         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10414         (value_nsstring, find_imps): Update.
10415         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10416         * p-lang.c (pascal_main_name): Update.
10417         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10418         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10419         * proc-service.c (ps_pglobal_lookup): Update.
10420         * ravenscar-thread.c (get_running_thread_msymbol): Change
10421         return type.
10422         (has_ravenscar_runtime, get_running_thread_id): Update.
10423         * remote.c (remote_check_symbols): Update.
10424         * sol-thread.c (ps_pglobal_lookup): Update.
10425         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10426         * solib-dsbt.c (lm_base): Update.
10427         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10428         Update.
10429         * solib-irix.c (locate_base): Update.
10430         * solib-som.c (som_solib_create_inferior_hook)
10431         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10432         Update.
10433         * solib-spu.c (spu_enable_break): Update.
10434         * solib-svr4.c (elf_locate_base, enable_break): Update.
10435         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10436         (flush_ea_cache): Update.
10437         * stabsread.c (define_symbol): Update.
10438         * symfile.c (simple_read_overlay_table): Update.
10439         * symtab.c (find_pc_sect_line): Update.
10440         * tracepoint.c (scope_info): Update.
10441         * tui-disasm.c (tui_get_begin_asm_address): Update.
10442         * value.c (value_static_field): Update.
10443
10444 2014-02-26  Tom Tromey  <tromey@redhat.com>
10445
10446         * minsyms.c (prim_record_minimal_symbol_full): Use
10447         SET_MSYMBOL_VALUE_ADDRESS.
10448         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10449         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10450         SET_MSYMBOL_VALUE_ADDRESS.
10451         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10452         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10453
10454 2014-02-26  Tom Tromey  <tromey@redhat.com>
10455
10456         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10457         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10458         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10459         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10460         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10461         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10462         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10463         * ada-lang.c (ada_main_name): Update.
10464         (ada_lookup_simple_minsym): Update.
10465         (ada_make_symbol_completion_list): Update.
10466         (ada_add_standard_exceptions): Update.
10467         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10468         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10469         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10470         * arm-tdep.c (skip_prologue_function): Update.
10471         (arm_skip_stack_protector, arm_skip_stub): Update.
10472         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10473         (arm_wince_skip_main_prologue): Update.
10474         * auxv.c (ld_so_xfer_auxv): Update.
10475         * avr-tdep.c (avr_scan_prologue): Update.
10476         * ax-gdb.c (gen_var_ref): Update.
10477         * block.c (call_site_for_pc): Update.
10478         * blockframe.c (get_pc_function_start): Update.
10479         (find_pc_partial_function_gnu_ifunc): Update.
10480         * breakpoint.c (create_overlay_event_breakpoint): Update.
10481         (create_longjmp_master_breakpoint): Update.
10482         (create_std_terminate_master_breakpoint): Update.
10483         (create_exception_master_breakpoint): Update.
10484         (resolve_sal_pc): Update.
10485         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10486         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10487         Update.
10488         * c-valprint.c (c_val_print): Update.
10489         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10490         * coffread.c (coff_symfile_read): Update.
10491         * common/agent.c (agent_look_up_symbols): Update.
10492         * dbxread.c (find_stab_function_addr): Update.
10493         (end_psymtab): Update.
10494         * dwarf2loc.c (call_site_to_target_addr): Update.
10495         (func_verify_no_selftailcall): Update.
10496         (tailcall_dump): Update.
10497         (call_site_find_chain_1): Update.
10498         (dwarf_expr_reg_to_entry_parameter): Update.
10499         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10500         (elf_gnu_ifunc_resolve_by_got): Update.
10501         * f-valprint.c (info_common_command): Update.
10502         * findvar.c (read_var_value): Update.
10503         * frame.c (get_prev_frame_1): Update.
10504         (inside_main_func): Update.
10505         * frv-tdep.c (frv_skip_main_prologue): Update.
10506         (frv_frame_this_id): Update.
10507         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10508         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10509         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10510         (gnuv3_skip_trampoline): Update.
10511         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10512         (hppa64_hpux_in_solib_call_trampoline): Update.
10513         (hppa_hpux_skip_trampoline_code): Update.
10514         (hppa64_hpux_search_dummy_call_sequence): Update.
10515         (hppa_hpux_find_import_stub_for_addr): Update.
10516         (hppa_hpux_find_dummy_bpaddr): Update.
10517         * hppa-tdep.c (hppa_symbol_address)
10518         (hppa_lookup_stub_minimal_symbol): Update.
10519         * i386-tdep.c (i386_skip_main_prologue): Update.
10520         (i386_pe_skip_trampoline_code): Update.
10521         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10522         * infcall.c (get_function_name): Update.
10523         * infcmd.c (until_next_command): Update.
10524         * jit.c (jit_breakpoint_re_set_internal): Update.
10525         (jit_inferior_init): Update.
10526         * linespec.c (minsym_found): Update.
10527         (add_minsym): Update.
10528         * linux-fork.c (info_checkpoints_command): Update.
10529         * linux-nat.c (get_signo): Update.
10530         * linux-thread-db.c (inferior_has_bug): Update.
10531         * m32c-tdep.c (m32c_return_value): Update.
10532         (m32c_m16c_address_to_pointer): Update.
10533         (m32c_m16c_pointer_to_address): Update.
10534         * m32r-tdep.c (m32r_frame_this_id): Update.
10535         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10536         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10537         * maint.c (maintenance_translate_address): Update.
10538         * minsyms.c (add_minsym_to_hash_table): Update.
10539         (add_minsym_to_demangled_hash_table): Update.
10540         (msymbol_objfile): Update.
10541         (lookup_minimal_symbol): Update.
10542         (iterate_over_minimal_symbols): Update.
10543         (lookup_minimal_symbol_text): Update.
10544         (lookup_minimal_symbol_by_pc_name): Update.
10545         (lookup_minimal_symbol_solib_trampoline): Update.
10546         (lookup_minimal_symbol_by_pc_section_1): Update.
10547         (lookup_minimal_symbol_and_objfile): Update.
10548         (prim_record_minimal_symbol_full): Update.
10549         (compare_minimal_symbols): Update.
10550         (compact_minimal_symbols): Update.
10551         (build_minimal_symbol_hash_tables): Update.
10552         (install_minimal_symbols): Update.
10553         (terminate_minimal_symbol_table): Update.
10554         (find_solib_trampoline_target): Update.
10555         (minimal_symbol_upper_bound): Update.
10556         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10557         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10558         (mips_skip_pic_trampoline_code): Update.
10559         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10560         * objc-lang.c (selectors_info): Update.
10561         (classes_info): Update.
10562         (find_methods): Update.
10563         (find_imps): Update.
10564         (find_objc_msgsend): Update.
10565         * objfiles.c (objfile_relocate1): Update.
10566         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10567         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10568         * p-valprint.c (pascal_val_print): Update.
10569         * parse.c (write_exp_msymbol): Update.
10570         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10571         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10572         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10573         * printcmd.c (build_address_symbolic): Update.
10574         (sym_info): Update.
10575         (address_info): Update.
10576         * proc-service.c (ps_pglobal_lookup): Update.
10577         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10578         (find_pc_sect_psymtab): Update.
10579         * python/py-framefilter.c (py_print_frame): Update.
10580         * ravenscar-thread.c (get_running_thread_id): Update.
10581         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10582         Update.
10583         * remote.c (remote_check_symbols): Update.
10584         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10585         (rs6000_skip_trampoline_code): Update.
10586         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10587         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10588         * solib-dsbt.c (lm_base): Update.
10589         * solib-frv.c (lm_base): Update.
10590         (main_got): Update.
10591         * solib-irix.c (locate_base): Update.
10592         * solib-som.c (som_solib_create_inferior_hook): Update.
10593         (som_solib_desire_dynamic_linker_symbols): Update.
10594         (link_map_start): Update.
10595         * solib-spu.c (spu_enable_break): Update.
10596         (ocl_enable_break): Update.
10597         * solib-svr4.c (elf_locate_base): Update.
10598         (enable_break): Update.
10599         * spu-tdep.c (spu_get_overlay_table): Update.
10600         (spu_catch_start): Update.
10601         (flush_ea_cache): Update.
10602         * stabsread.c (define_symbol): Update.
10603         (scan_file_globals): Update.
10604         * stack.c (find_frame_funname): Update.
10605         (frame_info): Update.
10606         * symfile.c (simple_read_overlay_table): Update.
10607         (simple_overlay_update): Update.
10608         * symmisc.c (dump_msymbols): Update.
10609         * symtab.c (fixup_section): Update.
10610         (find_pc_sect_line): Update.
10611         (skip_prologue_sal): Update.
10612         (search_symbols): Update.
10613         (print_msymbol_info): Update.
10614         (rbreak_command): Update.
10615         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10616         (completion_list_objc_symbol): Update.
10617         (default_make_symbol_completion_list_break_on): Update.
10618         * tracepoint.c (scope_info): Update.
10619         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10620         (tui_get_begin_asm_address): Update.
10621         * valops.c (find_function_in_inferior): Update.
10622         * value.c (value_static_field): Update.
10623         (value_fn_field): Update.
10624
10625 2014-02-26  Tom Tromey  <tromey@redhat.com>
10626
10627         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10628         bound minimal symbols.  Move code that knows about minsym
10629         table layout...
10630         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10631         function.
10632         * minsyms.h (minimal_symbol_upper_bound): Declare.
10633         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10634         minimal_symbol_upper_bound.
10635
10636 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10637
10638         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10639         Use the type's name if its basic type does not have a tag.
10640
10641 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10642
10643         * dwarf2read.c (read_subrange_type): Add comment.
10644
10645 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10646
10647         * dwarf2read.c (update_enumeration_type_from_children): New
10648         function, mostly extracted from process_structure_scope.
10649         (read_enumeration_type): Call update_enumeration_type_from_children.
10650         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10651         and flag_flag_enum fields.
10652
10653 2014-02-26  Pedro Alves  <palves@redhat.com>
10654
10655         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10656         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10657         to_xfer_partial method.
10658
10659 2014-02-26  Pedro Alves  <palves@redhat.com>
10660
10661         * target.c (complete_target_initialization): Don't install
10662         default_xfer_partial as to_xfer_partial hook.
10663         (nomemory): Delete.
10664         (update_current_target): Don't INHERIT nor de_fault
10665         deprecated_xfer_memory.  Delete de_fault macro.
10666         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10667         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10668         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10669         field.
10670
10671 2014-02-26  Pedro Alves  <palves@redhat.com>
10672
10673         * go32-nat.c (my_write_child): New function.
10674         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10675         (go32_xfer_partial): New function.
10676         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10677         Instead install a to_xfer_partial hook.
10678
10679 2014-02-26  Pedro Alves  <palves@redhat.com>
10680
10681         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10682         to_xfer_partial helper.  Rewrite.
10683         (procfs_xfer_partial): New function.
10684         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10685         Install a to_xfer_partial hook.
10686
10687 2014-02-26  Pedro Alves  <palves@redhat.com>
10688
10689         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10690         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10691         (m32r_xfer_partial): New function.
10692         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10693         Install a to_xfer_partial hook.
10694
10695 2014-02-26  Pedro Alves  <palves@redhat.com>
10696
10697         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10698         helper.
10699         (mips_xfer_partial): New function.
10700         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10701         hook.  Install a to_xfer_partial hook.
10702
10703 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10704
10705         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10706         * gdbtypes.c (create_array_type_with_stride): New function,
10707         renaming create_array_type, but with an added parameter
10708         called "bit_stride".
10709         (create_array_type): Re-implement using
10710         create_array_type_with_stride.
10711         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10712         and DW_AT_bit_stride attributes.
10713
10714 2014-02-26  Pedro Alves  <palves@redhat.com>
10715
10716         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10717         task-specific breakpoints.
10718
10719 2014-02-25  Pedro Alves  <palves@redhat.com>
10720
10721         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10722         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10723
10724 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10725
10726         * defs.h: Annotate comments for Doxygen.
10727
10728 2014-02-25  Tom Tromey  <tromey@redhat.com>
10729
10730         * target.h (target_ignore): Don't declare.
10731         * target.c (target_ignore): Remove.
10732
10733 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10734
10735         PR gdb/16626
10736         * auto-load.c (auto_load_objfile_script_1): Change filename to
10737         debugfile.
10738
10739 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10740
10741         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10742         documentation.  Adjust prototype to match the target_ops
10743         to_xfer_partial method.  Adjust implementation accordingly.
10744
10745 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10746
10747         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10748         to_traceframe_info.
10749
10750 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10751
10752         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10753         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10754         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10755         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10756         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10757         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10758         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10759         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10760         New constants.
10761         (rl78_register_type): Use a data pointer type for SP and
10762         new pseudo registers mentioned above.  Use a 16 bit integer
10763         type for all other register pairs.
10764         (rl78_register_name, rl78_g10_register_name): Update for
10765         new pseudo registers.
10766         (rl78_pseudo_register_read): Likewise.
10767         (rl78_pseudo_register_write): Likewise.
10768         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10769         to the newly added pseudo registers.
10770
10771 2014-02-24  Doug Evans  <dje@google.com>
10772
10773         * value.c (record_latest_value): Fix comment.
10774         * printcmd.c (print_command_1): Remove code to handle -1 return from
10775         record_latest_value.
10776
10777 2014-02-24  Pedro Alves  <palves@redhat.com>
10778
10779         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10780         deprecated_xfer_memory hook.
10781         (procfs_xfer_partial): Call procfs_xfer_memory instead
10782         of the deprecated_xfer_memory target hook.
10783         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10784         helper.
10785
10786 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10787
10788         * windows-nat.c (windows_xfer_shared_libraries): Return
10789         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10790         requested object is TARGET_OBJECT_LIBRARIES.
10791
10792 2014-02-24  Yao Qi  <yao@codesourcery.com>
10793
10794         * target.h (enum target_xfer_status)
10795         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10796         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10797         explicitly.  New.
10798         * corefile.c (memory_error_message): User updated.
10799         * exec.c (section_table_read_available_memory): Likewise.
10800         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10801         * target.c (target_xfer_status_to_string): Likewise.
10802         (raw_memory_xfer_partial): Likewise.
10803         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10804         * valops.c (read_value_memory): Likewise.
10805         * exec.h: Update comments.
10806
10807 2014-02-24  Yao Qi  <yao@codesourcery.com>
10808
10809         * target.c (target_xfer_status_to_string): Rename argument err
10810         to status.
10811         * target.h (target_xfer_status_to_string): Update declaration.
10812         Replace target_xfer_error_to_string with
10813         target_xfer_status_to_string in comment.
10814
10815 2014-02-24  Yao Qi  <yao@codesourcery.com>
10816
10817         * mips-linux-nat.c (super_close): Update its type.
10818         (mips_linux_close): Pass 'self' to super_close.
10819
10820 2014-02-24  Yao Qi  <yao@codesourcery.com>
10821
10822         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10823         * corefile.c (read_memory): Adjusted.
10824         * target.c (target_write_with_progress): Adjusted.
10825
10826 2014-02-23  Yao Qi  <yao@codesourcery.com>
10827
10828         Revert two patches:
10829
10830         2013-10-25  Yao Qi  <yao@codesourcery.com>
10831
10832         * remote.c (remote_traceframe_info): Return early if
10833         traceframe is not selected.
10834
10835         2013-07-19  Yao Qi  <yao@codesourcery.com>
10836
10837         * target.c (update_current_target): Change the default action
10838         of 'to_traceframe_info' from tcomplain to return_zero.
10839         * target.h (struct target_ops) <to_traceframe_info>: Add more
10840         comments.
10841
10842 2014-02-23  Yao Qi  <yao@codesourcery.com>
10843
10844         * valops.c (read_value_memory): Rewrite it.  Call
10845         target_xfer_partial in a loop.
10846         * exec.h (section_table_available_memory): Remove declaration.
10847         Move comments to ...
10848         * exec.c (section_table_available_memory): ... here.  Make it
10849         static.
10850
10851 2014-02-23  Yao Qi  <yao@codesourcery.com>
10852
10853         * exec.c (section_table_read_available_memory): New function.
10854         * exec.h (section_table_read_available_memory): Declare.
10855         * ctf.c (ctf_xfer_partial): Call
10856         section_table_read_available_memory.
10857         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10858
10859 2014-02-23  Yao Qi  <yao@codesourcery.com>
10860
10861         * ctf.c (ctf_xfer_partial): Move code to ...
10862         * exec.c (exec_read_partial_read_only): ... it.  New function.
10863         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10864         * tracefile.c: Include "exec.h".
10865         * exec.h (exec_read_partial_read_only): Declare.
10866
10867 2014-02-23  Yao Qi  <yao@codesourcery.com>
10868
10869         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10870         (tfile_has_memory): Remove.
10871         (init_tfile_ops): Don't set fields to_has_all_memory and
10872         to_has_memory of tfile_ops.
10873         * tracefile.c (tracefile_has_all_memory): New function.
10874         (tracefile_has_memory): New function.
10875         (init_tracefile_ops): Initialize fields to_has_all_memory and
10876         to_has_memory of 'ops'.
10877
10878 2014-02-23  Yao Qi  <yao@codesourcery.com>
10879
10880         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10881         (ctf_thread_alive, ctf_get_trace_status): Remove.
10882         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10883         init_tracefile_ops.
10884         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10885         (tfile_has_stack, tfile_has_registers): Remove.
10886         (tfile_thread_alive): Remove.
10887         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10888         init_tracefile_ops.
10889         * tracefile.c (tracefile_has_stack): New function.
10890         (tracefile_has_registers): New function.
10891         (tracefile_thread_alive): New function.
10892         (tracefile_get_trace_status): New function.
10893         (init_tracefile_ops): New function.
10894         * tracefile.h (init_tracefile_ops): Declare.
10895
10896 2014-02-23  Yao Qi  <yao@codesourcery.com>
10897
10898         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10899         (O_LARGEFILE): Likewise.
10900         (tfile_ops): Likewise.
10901         (TRACE_HEADER_SIZE): Likewise.
10902         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10903         (cur_data_size): Likewise.
10904         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10905         (tfile_close, tfile_files_info): Likewise.
10906         (tfile_get_trace_status): Likewise.
10907         (tfile_get_tracepoint_status): Likewise.
10908         (tfile_get_traceframe_address): Likewise.
10909         (tfile_trace_find, match_blocktype): Likewise.
10910         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10911         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10912         (tfile_get_trace_state_variable_value): Likewise.
10913         (tfile_has_all_memory, tfile_has_memory): Likewise.
10914         (tfile_has_stack, tfile_has_registers): Likewise.
10915         (tfile_thread_alive, build_traceframe_info): Likewise.
10916         (tfile_traceframe_info, init_tfile_ops): Likewise.
10917         (_initialize_tracepoint): Don't call init_tfile_ops
10918         and add_target_with_completer.
10919         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10920         exec.h, completer.h and filenames.h.
10921         (_initialize_tracefile_tfile): New function.
10922
10923 2014-02-23  Yao Qi  <yao@codesourcery.com>
10924
10925         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10926         tracefile-tfile.o.
10927         (HFILES_NO_SRCDIR): Add tracefile.h.
10928         * ctf.c: Include "tracefile.h".
10929         * tracefile.h: New file.
10930         * tracefile.c: New file
10931         * tracefile-tfile.c: New file.
10932         * tracepoint.c: Include "tracefile.h".
10933         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10934         (stop_reason_names): Add const.
10935         (trace_file_writer_xfree): Move it to tracefile.c.
10936         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10937         (trace_save_ctf): Likewise.
10938         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10939         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10940         (tfile_write_header, tfile_write_regblock_type): Likewise.
10941         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10942         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10943         (tfile_write_raw_data, tfile_end): Likewise.
10944         (tfile_trace_file_writer_new): Likewise.
10945         (free_uploaded_tp): Make it extern.
10946         (free_uploaded_tsv): Make it extern.
10947         (_initialize_tracepoint): Move code to register command 'tsave'
10948         to tracefile.c.
10949         * tracepoint.h (stop_reason_names): Declare.
10950         (struct trace_frame_write_ops): Move it to tracefile.h.
10951         (struct trace_file_write_ops): Likewise.
10952         (struct trace_file_writer): Likewise.
10953         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10954
10955 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10956
10957         PR gdb/16594
10958         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10959         process name.
10960         (get_cores_used_by_process): New parameter num_cores, use it.
10961         (linux_xfer_osdata_processes): Pass num_cores to it.
10962         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10963         process name.
10964
10965 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10966
10967         * target.c (memory_xfer_partial): Fix length arg in call to
10968         breakpoint_xfer_memory.
10969
10970 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10971
10972         PR tdep/16397
10973         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10974         number comes after the + or - signs.  Adjust length of register
10975         name to be extracted.
10976
10977 2014-02-20  Tom Tromey  <tromey@redhat.com>
10978
10979         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10980         (ada_varobj_ops): Mark "extern".
10981
10982 2014-02-20  Tom Tromey  <tromey@redhat.com>
10983
10984         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10985
10986 2014-02-20  Doug Evans  <xdje42@gmail.com>
10987
10988         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10989         All callers updated.
10990         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10991         All callers updated.
10992         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10993         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10994
10995 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10996             Joel Brobecker  <brobecker@adacore.com>
10997             Doug Evans  <xdje42@gmail.com>
10998
10999         PR symtab/16581
11000         * dwarf2read.c (struct die_info): New member in_process.
11001         (reset_die_in_process): New function.
11002         (process_die): Set it at the start, reset when returning.
11003         (inherit_abstract_dies): Only call process_die if origin_child_die
11004         not already being processed.
11005
11006 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11007
11008         * windows-nat.c (handle_unload_dll): Add function documentation.
11009         (do_initial_windows_stuff): Add comment explaining why we wait
11010         until after inferior initialization has finished before
11011         processing all DLLs.
11012
11013 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11014
11015         * windows-nat.c (get_module_name): Delete.
11016         (windows_get_exec_module_filename): New function, mostly
11017         inspired from get_module_name.
11018         (windows_pid_to_exec_file): Replace call to get_module_name
11019         by call to windows_get_exec_module_filename.
11020
11021 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11022
11023         * windows-nat.c (handle_load_dll): Rewrite this function's
11024         introductory comment.  Remove code using get_module_name
11025         to get the DLL's name.
11026
11027 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11028
11029         * windows-nat.c (get_windows_debug_event): Ignore
11030         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11031         if windows_initialization_done == 0.
11032         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11033         Adjust implementation to always load all DLLs.
11034         (do_initial_windows_stuff): Replace call to
11035         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11036
11037 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11038
11039         * windows-nat.c (_initialize_windows_nat): Deprecate the
11040         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11041         and "assf" aliases into commands, and deprecate them as well.
11042         * NEWS: Add entry explaining that "dll-symbols" and its two
11043         aliases are now deprecated.
11044
11045 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11046
11047         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11048         new-line in debug string.  Remove trailing spaces.
11049
11050 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11051
11052         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11053
11054 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11055
11056         * NEWS: Add entry for the new feature
11057         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11058         and class values.
11059
11060 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11061
11062         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11063
11064 2014-02-19  Pedro Alves  <palves@redhat.com>
11065
11066         * common/ptid.h (struct ptid): Mention that process_stratum
11067         targets should prefer ptid.lwp.
11068
11069 2014-02-19  Pedro Alves  <palves@redhat.com>
11070
11071         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11072         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11073         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11074         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11075         store remote thread ids rather than ptid.tid.
11076         (_initialize_remote): Adjust.
11077
11078 2014-02-19  Tom Tromey  <tromey@redhat.com>
11079
11080         * target.c (target_get_unwinder): Rewrite.
11081         (target_get_tailcall_unwinder): Rewrite.
11082         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11083         (record_btrace_to_get_tailcall_unwinder): New function.
11084         (init_record_btrace_ops): Update.
11085         * target.h (struct target_ops) <to_get_unwinder,
11086         to_get_tailcall_unwinder>: Now function pointers.  Use
11087         TARGET_DEFAULT_RETURN.
11088
11089 2014-02-19  Tom Tromey  <tromey@redhat.com>
11090
11091         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11092         argument.
11093         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11094
11095 2014-02-19  Tom Tromey  <tromey@redhat.com>
11096
11097         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11098         directly.
11099         * target-delegates.c: Rebuild.
11100         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11101         TARGET_DEFAULT_FUNC.
11102         * target.c (default_target_decr_pc_after_break): Rename from
11103         forward_target_decr_pc_after_break.  Simplify.
11104         (target_decr_pc_after_break): Rely on delegation.
11105
11106 2014-02-19  Tom Tromey  <tromey@redhat.com>
11107
11108         * target.c (update_current_target): Do not INHERIT to_doc or
11109         to_magic.  Do not de_fault to_open or to_close.
11110
11111 2014-02-19  Tom Tromey  <tromey@redhat.com>
11112
11113         * gcore.h (objfile_find_memory_regions): Declare.
11114         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11115         "self" argument.
11116         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11117         * exec.c: Include gcore.h.
11118         (exec_set_find_memory_regions): Remove.
11119         (exec_find_memory_regions): Remove.
11120         (exec_do_find_memory_regions): Remove.
11121         (init_exec_ops): Update.
11122         * defs.h (exec_set_find_memory_regions): Remove.
11123
11124 2014-02-19  Tom Tromey  <tromey@redhat.com>
11125
11126         * target-delegates.c: Rebuild.
11127         * target.h (struct target_ops) <to_extra_thread_info,
11128         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11129         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11130         not 0, in TARGET_DEFAULT_RETURN.
11131
11132 2014-02-19  Tom Tromey  <tromey@redhat.com>
11133
11134         * target.c (complete_target_initialization): Remove casts.  Use
11135         return_zero_has_execution.
11136         (return_zero): Add "ignore" argument.
11137         (return_zero_has_execution): New function.
11138         (init_dummy_target): Remove casts.  Use
11139         return_zero_has_execution.
11140
11141 2014-02-19  Tom Tromey  <tromey@redhat.com>
11142
11143         * target.c (update_current_target): Update comments.  Do not
11144         INHERIT to_stratum.
11145
11146 2014-02-19  Tom Tromey  <tromey@redhat.com>
11147
11148         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11149         needed.
11150         * corelow.c (core_read_description): Delegate when needed.
11151         * remote.c (remote_read_description): Delegate when needed.
11152         * target-delegates.c: Rebuild.
11153         * target.c (target_read_description): Rewrite.
11154         * target.h (struct target_ops) <to_read_description>: Update
11155         comment.  Use TARGET_DEFAULT_RETURN.
11156
11157 2014-02-19  Tom Tromey  <tromey@redhat.com>
11158
11159         * target-delegates.c: Rebuild.
11160         * target.c (update_current_target): Don't inherit or default
11161         to_can_run.
11162         (find_default_run_target): Check against delegate_can_run.
11163         * target.h (struct target_ops) <to_can_run>: Use
11164         TARGET_DEFAULT_RETURN.
11165
11166 2014-02-19  Tom Tromey  <tromey@redhat.com>
11167
11168         * target-delegates.c: Rebuild.
11169         * target.c (target_disconnect): Unconditionally delegate.
11170         * target.h (struct target_ops) <to_disconnect>: Use
11171         TARGET_DEFAULT_NORETURN.
11172
11173 2014-02-19  Tom Tromey  <tromey@redhat.com>
11174
11175         * record.c (record_stop): Unconditionally delegate.
11176         * target-delegates.c: Rebuild.
11177         * target.c (target_stop_recording): Unconditionally delegate.
11178         * target.h (struct target_ops) <to_stop_recording>: Use
11179         TARGET_DEFAULT_IGNORE.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * target-delegates.c: Rebuild.
11184         * target.c (target_enable_btrace): Unconditionally delegate.
11185         * target.h (struct target_ops) <to_enable_btrace>: Use
11186         TARGET_DEFAULT_NORETURN.
11187
11188 2014-02-19  Tom Tromey  <tromey@redhat.com>
11189
11190         * target-delegates.c: Rebuild.
11191         * target.c (target_read_btrace): Unconditionally delegate.
11192         * target.h (struct target_ops) <to_read_btrace>: Use
11193         TARGET_DEFAULT_NORETURN.
11194
11195 2014-02-19  Tom Tromey  <tromey@redhat.com>
11196
11197         * target-delegates.c: Rebuild.
11198         * target.c (target_teardown_btrace): Unconditionally delegate.
11199         * target.h (struct target_ops) <to_teardown_btrace>: Use
11200         TARGET_DEFAULT_NORETURN.
11201
11202 2014-02-19  Tom Tromey  <tromey@redhat.com>
11203
11204         * target-delegates.c: Rebuild.
11205         * target.c (target_disable_btrace): Unconditionally delegate.
11206         * target.h (struct target_ops) <to_disable_btrace>: Use
11207         TARGET_DEFAULT_NORETURN.
11208
11209 2014-02-19  Tom Tromey  <tromey@redhat.com>
11210
11211         * target-delegates.c: Rebuild.
11212         * target.c (default_search_memory): New function.
11213         (simple_search_memory): Update comment.
11214         (target_search_memory): Unconditionally delegate.
11215         * target.h (struct target_ops) <to_search_memory>: Use
11216         TARGET_DEFAULT_FUNC.
11217
11218 2014-02-19  Tom Tromey  <tromey@redhat.com>
11219
11220         * auxv.c (default_auxv_parse): No longer static.
11221         (target_auxv_parse): Unconditionally delegate.
11222         * auxv.h (default_auxv_parse): Declare.
11223         * target-delegates.c: Rebuild.
11224         * target.c: Include auxv.h.
11225         * target.h (struct target_ops) <to_auxv_parse>: Use
11226         TARGET_DEFAULT_FUNC.
11227
11228 2014-02-19  Tom Tromey  <tromey@redhat.com>
11229
11230         * target-delegates.c: Rebuild.
11231         * target.c (target_memory_map): Unconditionally delegate.
11232         * target.h (struct target_ops) <to_memory_map>: Use
11233         TARGET_DEFAULT_RETURN.
11234
11235 2014-02-19  Tom Tromey  <tromey@redhat.com>
11236
11237         * target-delegates.c: Rebuild.
11238         * target.c (target_thread_alive): Unconditionally delegate.
11239         * target.h (struct target_ops) <to_thread_alive>: Use
11240         TARGET_DEFAULT_RETURN.
11241
11242 2014-02-19  Tom Tromey  <tromey@redhat.com>
11243
11244         * target-delegates.c: Rebuild.
11245         * target.c (target_save_record): Unconditionally delegate.
11246         * target.h (struct target_ops) <to_save_record>: Use
11247         TARGET_DEFAULT_NORETURN.
11248
11249 2014-02-19  Tom Tromey  <tromey@redhat.com>
11250
11251         * target-delegates.c: Rebuild.
11252         * target.c (target_delete_record): Unconditionally delegate.
11253         * target.h (struct target_ops) <to_delete_record>: Use
11254         TARGET_DEFAULT_NORETURN.
11255
11256 2014-02-19  Tom Tromey  <tromey@redhat.com>
11257
11258         * target-delegates.c: Rebuild.
11259         * target.c (target_record_is_replaying): Unconditionally
11260         delegate.
11261         * target.h (struct target_ops) <to_record_is_replaying>: Use
11262         TARGET_DEFAULT_RETURN.
11263
11264 2014-02-19  Tom Tromey  <tromey@redhat.com>
11265
11266         * target-delegates.c: Rebuild.
11267         * target.c (target_goto_record_begin): Unconditionally delegate.
11268         * target.h (struct target_ops) <to_goto_record_begin>: Use
11269         TARGET_DEFAULT_NORETURN.
11270
11271 2014-02-19  Tom Tromey  <tromey@redhat.com>
11272
11273         * target-delegates.c: Rebuild.
11274         * target.c (target_goto_record_end): Unconditionally delegate.
11275         * target.h (struct target_ops) <to_goto_record_end>: Use
11276         TARGET_DEFAULT_NORETURN.
11277
11278 2014-02-19  Tom Tromey  <tromey@redhat.com>
11279
11280         * target-delegates.c: Rebuild.
11281         * target.c (target_goto_record): Unconditionally delegate.
11282         * target.h (struct target_ops) <to_goto_record>: Use
11283         TARGET_DEFAULT_NORETURN.
11284
11285 2014-02-19  Tom Tromey  <tromey@redhat.com>
11286
11287         * target-delegates.c: Rebuild.
11288         * target.c (target_insn_history): Unconditionally delegate.
11289         * target.h (struct target_ops) <to_insn_history>: Use
11290         TARGET_DEFAULT_NORETURN.
11291
11292 2014-02-19  Tom Tromey  <tromey@redhat.com>
11293
11294         * target-delegates.c: Rebuild.
11295         * target.c (target_insn_history_from): Unconditionally delegate.
11296         * target.h (struct target_ops) <to_insn_history_from>: Use
11297         TARGET_DEFAULT_NORETURN.
11298
11299 2014-02-19  Tom Tromey  <tromey@redhat.com>
11300
11301         * target-delegates.c: Rebuild.
11302         * target.c (target_insn_history_range): Unconditionally delegate.
11303         * target.h (struct target_ops) <to_insn_history_range>: Use
11304         TARGET_DEFAULT_NORETURN.
11305
11306 2014-02-19  Tom Tromey  <tromey@redhat.com>
11307
11308         * target-delegates.c: Rebuild.
11309         * target.c (target_call_history): Unconditionally delegate.
11310         * target.h (struct target_ops) <to_call_history>: Use
11311         TARGET_DEFAULT_NORETURN.
11312
11313 2014-02-19  Tom Tromey  <tromey@redhat.com>
11314
11315         * target-delegates.c: Rebuild.
11316         * target.c (target_call_history_from): Unconditionally delegate.
11317         * target.h (struct target_ops) <to_call_history_from>: Use
11318         TARGET_DEFAULT_NORETURN.
11319
11320 2014-02-19  Tom Tromey  <tromey@redhat.com>
11321
11322         * target-delegates.c: Rebuild.
11323         * target.c (target_call_history_range): Unconditionally delegate.
11324         * target.h (struct target_ops) <to_call_history_range>: Use
11325         TARGET_DEFAULT_NORETURN.
11326
11327 2014-02-19  Tom Tromey  <tromey@redhat.com>
11328
11329         * target-delegates.c: Rebuild.
11330         * target.c (target_verify_memory): Unconditionally delegate.
11331         * target.h (struct target_ops) <to_verify_memory>: Use
11332         TARGET_DEFAULT_NORETURN.
11333
11334 2014-02-19  Tom Tromey  <tromey@redhat.com>
11335
11336         * target-delegates.c: Rebuild.
11337         * target.c (target_core_of_thread): Unconditionally delegate.
11338         * target.h (struct target_ops) <to_core_of_thread>: Use
11339         TARGET_DEFAULT_RETURN.
11340
11341 2014-02-19  Tom Tromey  <tromey@redhat.com>
11342
11343         * target-delegates.c: Rebuild.
11344         * target.c (target_flash_done): Unconditionally delegate.
11345         * target.h (struct target_ops) <to_flash_done>: Use
11346         TARGET_DEFAULT_NORETURN.
11347
11348 2014-02-19  Tom Tromey  <tromey@redhat.com>
11349
11350         * target-delegates.c: Rebuild.
11351         * target.c (target_flash_erase): Unconditionally delegate.
11352         * target.h (struct target_ops) <to_flash_erase>: Use
11353         TARGET_DEFAULT_NORETURN.
11354
11355 2014-02-19  Tom Tromey  <tromey@redhat.com>
11356
11357         * target-delegates.c: Rebuild.
11358         * target.c (target_get_section_table): Unconditionally delegate.
11359         * target.h (struct target_ops) <to_get_section_table>: Use
11360         TARGET_DEFAULT_RETURN.
11361
11362 2014-02-19  Tom Tromey  <tromey@redhat.com>
11363
11364         * target-delegates.c: Rebuild.
11365         * target.c (target_pid_to_str): Unconditionally delegate.
11366         (init_dummy_target): Don't initialize to_pid_to_str.
11367         (default_pid_to_str): Rename from dummy_pid_to_str.
11368         * target.h (struct target_ops) <to_pid_to_str>: Use
11369         TARGET_DEFAULT_FUNC.
11370
11371 2014-02-19  Tom Tromey  <tromey@redhat.com>
11372
11373         * target-delegates.c: Rebuild.
11374         * target.c (target_find_new_threads): Unconditionally delegate.
11375         * target.h (struct target_ops) <to_find_new_threads>: Use
11376         TARGET_DEFAULT_RETURN.
11377
11378 2014-02-19  Tom Tromey  <tromey@redhat.com>
11379
11380         * target-delegates.c: Rebuild.
11381         * target.c (target_program_signals): Unconditionally delegate.
11382         * target.h (struct target_ops) <to_program_signals>: Use
11383         TARGET_DEFAULT_IGNORE.
11384
11385 2014-02-19  Tom Tromey  <tromey@redhat.com>
11386
11387         * target-delegates.c: Rebuild.
11388         * target.c (target_pass_signals): Unconditionally delegate.
11389         * target.h (struct target_ops) <to_pass_signals>: Use
11390         TARGET_DEFAULT_IGNORE.
11391
11392 2014-02-19  Tom Tromey  <tromey@redhat.com>
11393
11394         * target-delegates.c: Rebuild.
11395         * target.c (default_mourn_inferior): New function.
11396         (target_mourn_inferior): Unconditionally delegate.
11397         * target.h (struct target_ops) <to_mourn_inferior>: Use
11398         TARGET_DEFAULT_FUNC.
11399
11400 2014-02-19  Tom Tromey  <tromey@redhat.com>
11401
11402         * target-delegates.c: Rebuild.
11403         * target.c (default_follow_fork): New function.
11404         (target_follow_fork): Unconditionally delegate.
11405         * target.h (struct target_ops) <to_follow_fork>: Use
11406         TARGET_DEFAULT_FUNC.
11407
11408 2014-02-19  Tom Tromey  <tromey@redhat.com>
11409
11410         * target-delegates.c: Rebuild.
11411         * target.c (target_kill): Unconditionally delegate.
11412         * target.h (struct target_ops) <to_kill>: Use
11413         TARGET_DEFAULT_NORETURN.
11414
11415 2014-02-19  Tom Tromey  <tromey@redhat.com>
11416
11417         * target-delegates.c: Rebuild.
11418         * target.c (target_masked_watch_num_registers): Unconditionally
11419         delegate.
11420         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11421         Use TARGET_DEFAULT_RETURN.
11422
11423 2014-02-19  Tom Tromey  <tromey@redhat.com>
11424
11425         * target-delegates.c: Rebuild.
11426         * target.c (target_remove_mask_watchpoint): Unconditionally
11427         delegate.
11428         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11429         TARGET_DEFAULT_RETURN.
11430
11431 2014-02-19  Tom Tromey  <tromey@redhat.com>
11432
11433         * target-delegates.c: Rebuild.
11434         * target.c (target_insert_mask_watchpoint): Unconditionally
11435         delegate.
11436         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11437         TARGET_DEFAULT_RETURN.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * target-delegates.c: Rebuild.
11442         * target.c (target_ranged_break_num_registers): Unconditionally
11443         delegate.
11444         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11445         Use TARGET_DEFAULT_RETURN.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target-delegates.c: Rebuild.
11450         * target.c (target_fetch_registers): Unconditionally delegate.
11451         * target.h (struct target_ops) <to_fetch_registers>: Use
11452         TARGET_DEFAULT_NORETURN.
11453
11454 2014-02-19  Tom Tromey  <tromey@redhat.com>
11455
11456         * target-delegates.c: Rebuild.
11457         * target.c (update_current_target): Don't inherit or default
11458         to_stop.
11459         * target.h (struct target_ops) <to_stop>: Use
11460         TARGET_DEFAULT_IGNORE.
11461
11462 2014-02-19  Tom Tromey  <tromey@redhat.com>
11463
11464         * target-delegates.c: Rebuild.
11465         * target.c (update_current_target): Don't inherit or default
11466         to_can_run_breakpoint_commands.
11467         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11468         Use TARGET_DEFAULT_RETURN.
11469
11470 2014-02-19  Tom Tromey  <tromey@redhat.com>
11471
11472         * target-delegates.c: Rebuild.
11473         * target.c (update_current_target): Don't inherit or default
11474         to_supports_evaluation_of_breakpoint_conditions.
11475         * target.h (struct target_ops)
11476         <to_supports_evaluation_of_breakpoint_conditions>: Use
11477         TARGET_DEFAULT_RETURN.
11478
11479 2014-02-19  Tom Tromey  <tromey@redhat.com>
11480
11481         * target-delegates.c: Rebuild.
11482         * target.c (update_current_target): Don't inherit or default
11483         to_augmented_libraries_svr4_read.
11484         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11485         Use TARGET_DEFAULT_RETURN.
11486
11487 2014-02-19  Tom Tromey  <tromey@redhat.com>
11488
11489         * target-delegates.c: Rebuild.
11490         * target.c (update_current_target): Don't inherit or default
11491         to_can_use_agent.
11492         * target.h (struct target_ops) <to_can_use_agent>: Use
11493         TARGET_DEFAULT_RETURN.
11494
11495 2014-02-19  Tom Tromey  <tromey@redhat.com>
11496
11497         * target-delegates.c: Rebuild.
11498         * target.c (update_current_target): Don't inherit or default
11499         to_use_agent.
11500         * target.h (struct target_ops) <to_use_agent>: Use
11501         TARGET_DEFAULT_NORETURN.
11502
11503 2014-02-19  Tom Tromey  <tromey@redhat.com>
11504
11505         * target-delegates.c: Rebuild.
11506         * target.c (update_current_target): Don't inherit or default
11507         to_traceframe_info.
11508         (return_null): Remove.
11509         * target.h (struct target_ops) <to_traceframe_info>: Use
11510         TARGET_DEFAULT_RETURN.
11511
11512 2014-02-19  Tom Tromey  <tromey@redhat.com>
11513
11514         * target-delegates.c: Rebuild.
11515         * target.c (update_current_target): Don't inherit or default
11516         to_static_tracepoint_markers_by_strid.
11517         * target.h (struct target_ops)
11518         <to_static_tracepoint_markers_by_strid>: Use
11519         TARGET_DEFAULT_NORETURN.
11520
11521 2014-02-19  Tom Tromey  <tromey@redhat.com>
11522
11523         * target-delegates.c: Rebuild.
11524         * target.c (update_current_target): Don't inherit or default
11525         to_static_tracepoint_marker_at.
11526         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11527         Use TARGET_DEFAULT_RETURN.
11528
11529 2014-02-19  Tom Tromey  <tromey@redhat.com>
11530
11531         * target-delegates.c: Rebuild.
11532         * target.c (update_current_target): Don't inherit or default
11533         to_set_permissions.
11534         * target.h (struct target_ops) <to_set_permissions>: Use
11535         TARGET_DEFAULT_IGNORE.
11536
11537 2014-02-19  Tom Tromey  <tromey@redhat.com>
11538
11539         * target-delegates.c: Rebuild.
11540         * target.c (update_current_target): Don't inherit or default
11541         to_get_tib_address.
11542         * target.h (struct target_ops) <to_get_tib_address>: Use
11543         TARGET_DEFAULT_NORETURN.
11544
11545 2014-02-19  Tom Tromey  <tromey@redhat.com>
11546
11547         * target-delegates.c: Rebuild.
11548         * target.c (update_current_target): Don't inherit or default
11549         to_set_trace_notes.
11550         * target.h (struct target_ops) <to_set_trace_notes>: Use
11551         TARGET_DEFAULT_RETURN.
11552
11553 2014-02-19  Tom Tromey  <tromey@redhat.com>
11554
11555         * target-delegates.c: Rebuild.
11556         * target.c (update_current_target): Don't initialize
11557         to_set_trace_buffer_size.
11558         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11559         TARGET_DEFAULT_IGNORE.
11560
11561 2014-02-19  Tom Tromey  <tromey@redhat.com>
11562
11563         * target-delegates.c: Rebuild.
11564         * target.c (update_current_target): Don't inherit or default
11565         to_set_circular_trace_buffer.
11566         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11567         TARGET_DEFAULT_IGNORE.
11568
11569 2014-02-19  Tom Tromey  <tromey@redhat.com>
11570
11571         * target-delegates.c: Rebuild.
11572         * target.c (update_current_target): Don't inherit or default
11573         to_set_disconnected_tracing.
11574         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11575         TARGET_DEFAULT_IGNORE.
11576
11577 2014-02-19  Tom Tromey  <tromey@redhat.com>
11578
11579         * target-delegates.c: Rebuild.
11580         * target.c (update_current_target): Don't inherit or default
11581         to_get_min_fast_tracepoint_insn_len.
11582         (return_minus_one): Remove.
11583         * target.h (struct target_ops)
11584         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11585
11586 2014-02-19  Tom Tromey  <tromey@redhat.com>
11587
11588         * target-delegates.c: Rebuild.
11589         * target.c (update_current_target): Don't inherit or default
11590         to_get_raw_trace_data.
11591         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11592         TARGET_DEFAULT_NORETURN.
11593
11594 2014-02-19  Tom Tromey  <tromey@redhat.com>
11595
11596         * target-delegates.c: Rebuild.
11597         * target.c (update_current_target): Don't inherit or default
11598         to_upload_trace_state_variables.
11599         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11600         Use TARGET_DEFAULT_RETURN.
11601
11602 2014-02-19  Tom Tromey  <tromey@redhat.com>
11603
11604         * target-delegates.c: Rebuild.
11605         * target.c (update_current_target): Don't inherit or default
11606         to_upload_tracepoints.
11607         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11608         TARGET_DEFAULT_RETURN.
11609
11610 2014-02-19  Tom Tromey  <tromey@redhat.com>
11611
11612         * target-delegates.c: Rebuild.
11613         * target.c (update_current_target): Don't inherit or default
11614         to_save_trace_data.
11615         * target.h (struct target_ops) <to_save_trace_data>: Use
11616         TARGET_DEFAULT_NORETURN.
11617
11618 2014-02-19  Tom Tromey  <tromey@redhat.com>
11619
11620         * target-delegates.c: Rebuild.
11621         * target.c (update_current_target): Don't inherit or default
11622         to_get_trace_state_variable_value.
11623         * target.h (struct target_ops)
11624         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11625
11626 2014-02-19  Tom Tromey  <tromey@redhat.com>
11627
11628         * target-delegates.c: Rebuild.
11629         * target.c (update_current_target): Don't inherit or default
11630         to_trace_find.
11631         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11632
11633 2014-02-19  Tom Tromey  <tromey@redhat.com>
11634
11635         * target-delegates.c: Rebuild.
11636         * target.c (update_current_target): Don't inherit or default
11637         to_trace_stop.
11638         * target.h (struct target_ops) <to_trace_stop>: Use
11639         TARGET_DEFAULT_NORETURN.
11640
11641 2014-02-19  Tom Tromey  <tromey@redhat.com>
11642
11643         * target-delegates.c: Rebuild.
11644         * target.c (update_current_target): Don't inherit or default
11645         to_get_tracepoint_status.
11646         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11647         TARGET_DEFAULT_NORETURN.
11648
11649 2014-02-19  Tom Tromey  <tromey@redhat.com>
11650
11651         * target-delegates.c: Rebuild.
11652         * target.c (update_current_target): Don't inherit or default
11653         to_get_trace_status.
11654         * target.h (struct target_ops) <to_get_trace_status>: Use
11655         TARGET_DEFAULT_RETURN.
11656
11657 2014-02-19  Tom Tromey  <tromey@redhat.com>
11658
11659         * target-delegates.c: Rebuild.
11660         * target.c (update_current_target): Don't inherit or default
11661         to_trace_start.
11662         * target.h (struct target_ops) <to_trace_start>: Use
11663         TARGET_DEFAULT_NORETURN.
11664
11665 2014-02-19  Tom Tromey  <tromey@redhat.com>
11666
11667         * target-delegates.c: Rebuild.
11668         * target.c (update_current_target): Don't inherit or default
11669         to_trace_set_readonly_regions.
11670         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11671         Use TARGET_DEFAULT_NORETURN.
11672
11673 2014-02-19  Tom Tromey  <tromey@redhat.com>
11674
11675         * target-delegates.c: Rebuild.
11676         * target.c (update_current_target): Don't inherit or default
11677         to_disable_tracepoint.
11678         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11679         TARGET_DEFAULT_NORETURN.
11680
11681 2014-02-19  Tom Tromey  <tromey@redhat.com>
11682
11683         * target-delegates.c: Rebuild.
11684         * target.c (update_current_target): Don't inherit or default
11685         to_enable_tracepoint.
11686         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11687         TARGET_DEFAULT_NORETURN.
11688
11689 2014-02-19  Tom Tromey  <tromey@redhat.com>
11690
11691         * target-delegates.c: Rebuild.
11692         * target.c (update_current_target): Don't inherit or default
11693         to_download_trace_state_variable.
11694         * target.h (struct target_ops) <to_download_trace_state_variable>:
11695         Use TARGET_DEFAULT_NORETURN.
11696
11697 2014-02-19  Tom Tromey  <tromey@redhat.com>
11698
11699         * target-delegates.c: Rebuild.
11700         * target.c (update_current_target): Don't inherit or default
11701         to_can_download_tracepoint.
11702         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11703         TARGET_DEFAULT_RETURN.
11704
11705 2014-02-19  Tom Tromey  <tromey@redhat.com>
11706
11707         * target-delegates.c: Rebuild.
11708         * target.c (update_current_target): Don't inherit or default
11709         to_download_tracepoint.
11710         * target.h (struct target_ops) <to_download_tracepoint>: Use
11711         TARGET_DEFAULT_NORETURN.
11712
11713 2014-02-19  Tom Tromey  <tromey@redhat.com>
11714
11715         * target-delegates.c: Rebuild.
11716         * target.c (update_current_target): Don't inherit or default
11717         to_trace_init.
11718         * target.h (struct target_ops) <to_trace_init>: Use
11719         TARGET_DEFAULT_RETURN.
11720
11721 2014-02-19  Tom Tromey  <tromey@redhat.com>
11722
11723         * target-delegates.c: Rebuild.
11724         * target.c (update_current_target): Don't inherit or default
11725         to_supports_string_tracing.
11726         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11727         TARGET_DEFAULT_RETURN.
11728
11729 2014-02-19  Tom Tromey  <tromey@redhat.com>
11730
11731         * target-delegates.c: Rebuild.
11732         * target.c (update_current_target): Don't inherit or default
11733         to_supports_enable_disable_tracepoint.
11734         * target.h (struct target_ops)
11735         <to_supports_enable_disable_tracepoint>: Use
11736         TARGET_DEFAULT_RETURN.
11737
11738 2014-02-19  Tom Tromey  <tromey@redhat.com>
11739
11740         * target-delegates.c: Rebuild.
11741         * target.c (update_current_target): Don't inherit or default
11742         to_supports_multi_process.
11743         * target.h (struct target_ops) <to_supports_multi_process>: Use
11744         TARGET_DEFAULT_RETURN.
11745
11746 2014-02-19  Tom Tromey  <tromey@redhat.com>
11747
11748         * target-delegates.c: Rebuild.
11749         * target.c (update_current_target): Don't inherit or default
11750         to_get_ada_task_ptid.
11751         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11752         TARGET_DEFAULT_FUNC.
11753
11754 2014-02-19  Tom Tromey  <tromey@redhat.com>
11755
11756         * target-delegates.c: Rebuild.
11757         * target.c (update_current_target): Don't inherit or default
11758         to_thread_architecture.
11759         * target.h (struct target_ops) <to_thread_architecture>: Use
11760         TARGET_DEFAULT_FUNC.
11761
11762 2014-02-19  Tom Tromey  <tromey@redhat.com>
11763
11764         * target-delegates.c: Rebuild.
11765         * target.c (update_current_target): Don't inherit or default
11766         to_execution_direction.
11767         * target.h (struct target_ops) <to_execution_direction>: Use
11768         TARGET_DEFAULT_FUNC.
11769
11770 2014-02-19  Tom Tromey  <tromey@redhat.com>
11771
11772         * target-delegates.c: Rebuild.
11773         * target.c (update_current_target): Don't inherit or default
11774         to_can_execute_reverse.
11775         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11776         TARGET_DEFAULT_RETURN.
11777         (target_can_execute_reverse): Unconditionally delegate.
11778
11779 2014-02-19  Tom Tromey  <tromey@redhat.com>
11780
11781         * target-delegates.c: Rebuild.
11782         * target.c (update_current_target): Don't inherit or default
11783         to_goto_bookmark.
11784         (dummy_goto_bookmark): Remove.
11785         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11786         * target.h (struct target_ops) <to_goto_bookmark>: Use
11787         TARGET_DEFAULT_NORETURN.
11788
11789 2014-02-19  Tom Tromey  <tromey@redhat.com>
11790
11791         * target-delegates.c: Rebuild.
11792         * target.c (update_current_target): Don't inherit or default
11793         to_get_bookmark.
11794         (dummy_get_bookmark): Remove.
11795         (init_dummy_target): Don't inherit or default to_get_bookmark.
11796         * target.h (struct target_ops) <to_get_bookmark>: Use
11797         TARGET_DEFAULT_NORETURN
11798
11799 2014-02-19  Tom Tromey  <tromey@redhat.com>
11800
11801         * target-delegates.c: Rebuild.
11802         * target.c (update_current_target): Don't inherit or default
11803         to_make_corefile_notes.
11804         (init_dummy_target): Don't initialize to_make_corefile_notes.
11805         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11806         TARGET_DEFAULT_FUNC.
11807
11808 2014-02-19  Tom Tromey  <tromey@redhat.com>
11809
11810         * target-delegates.c: Rebuild.
11811         * target.c (update_current_target): Don't inherit or default
11812         to_find_memory_regions.
11813         (init_dummy_target): Don't initialize to_find_memory_regions.
11814         * target.h (struct target_ops) <to_find_memory_regions>: Use
11815         TARGET_DEFAULT_FUNC.
11816
11817 2014-02-19  Tom Tromey  <tromey@redhat.com>
11818
11819         * target-delegates.c: Rebuild.
11820         * target.c (update_current_target): Don't inherit or default
11821         to_log_command.
11822         * target.h (struct target_ops) <to_log_command>: Use
11823         TARGET_DEFAULT_IGNORE.
11824         (target_log_command): Unconditionally delegate.
11825
11826 2014-02-19  Tom Tromey  <tromey@redhat.com>
11827
11828         * target-delegates.c: Rebuild.
11829         * target.c (update_current_target): Don't inherit or default
11830         to_pid_to_exec_file.
11831         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11832         TARGET_DEFAULT_RETURN.
11833
11834 2014-02-19  Tom Tromey  <tromey@redhat.com>
11835
11836         * target-delegates.c: Rebuild.
11837         * target.c (update_current_target): Don't inherit or default
11838         to_thread_name.
11839         (target_thread_name): Unconditionally delegate.
11840         * target.h (struct target_ops) <to_thread_name>: Use
11841         TARGET_DEFAULT_RETURN.
11842
11843 2014-02-19  Tom Tromey  <tromey@redhat.com>
11844
11845         * target-delegates.c: Rebuild.
11846         * target.c (update_current_target): Don't inherit or default
11847         to_extra_thread_info.
11848         * target.h (struct target_ops) <to_extra_thread_info>: Use
11849         TARGET_DEFAULT_RETURN.
11850
11851 2014-02-19  Tom Tromey  <tromey@redhat.com>
11852
11853         * target-delegates.c: Rebuild.
11854         * target.c (update_current_target): Don't inherit or default
11855         to_has_exited.
11856         * target.h (struct target_ops) <to_has_exited>: Use
11857         TARGET_DEFAULT_RETURN..
11858
11859 2014-02-19  Tom Tromey  <tromey@redhat.com>
11860
11861         * target-delegates.c: Rebuild.
11862         * target.c (update_current_target): Don't inherit or default
11863         to_set_syscall_catchpoint.
11864         (return_one): Remove.
11865         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11866         TARGET_DEFAULT_RETURN.
11867
11868 2014-02-19  Tom Tromey  <tromey@redhat.com>
11869
11870         * target-delegates.c: Rebuild.
11871         * target.c (update_current_target): Don't inherit or default
11872         to_insert_exec_catchpoint.
11873         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11874         TARGET_DEFAULT_RETURN.
11875
11876 2014-01-08  Tom Tromey  <tromey@redhat.com>
11877
11878         * target-delegates.c: Rebuild.
11879         * target.c (update_current_target): Don't inherit or default
11880         to_insert_exec_catchpoint.
11881         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11882         TARGET_DEFAULT_RETURN.
11883
11884 2014-02-19  Tom Tromey  <tromey@redhat.com>
11885
11886         * target-delegates.c: Rebuild.
11887         * target.c (update_current_target): Don't inherit or default
11888         to_remove_vfork_catchpoint.
11889         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11890         TARGET_DEFAULT_RETURN.
11891
11892 2014-02-19  Tom Tromey  <tromey@redhat.com>
11893
11894         * target-delegates.c: Rebuild.
11895         * target.c (update_current_target): Don't inherit or default
11896         to_insert_vfork_catchpoint.
11897         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11898         TARGET_DEFAULT_RETURN.
11899
11900 2014-02-19  Tom Tromey  <tromey@redhat.com>
11901
11902         * target-delegates.c: Rebuild.
11903         * target.c (update_current_target): Don't inherit or default
11904         to_remove_fork_catchpoint.
11905         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11906         TARGET_DEFAULT_RETURN.
11907
11908 2014-02-19  Tom Tromey  <tromey@redhat.com>
11909
11910         * target-delegates.c: Rebuild.
11911         * target.c (update_current_target): Don't inherit or default
11912         to_insert_fork_catchpoint.
11913         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11914         TARGET_DEFAULT_RETURN.
11915
11916 2014-02-19  Tom Tromey  <tromey@redhat.com>
11917
11918         * target-delegates.c: Rebuild.
11919         * target.c (update_current_target): Don't inherit or default
11920         to_post_startup_inferior.
11921         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11922         TARGET_DEFAULT_IGNORE.
11923
11924 2014-02-19  Tom Tromey  <tromey@redhat.com>
11925
11926         * target-delegates.c: Rebuild.
11927         * target.c (update_current_target): Don't inherit or default
11928         to_load.
11929         * target.h (struct target_ops) <to_load>: Use
11930         TARGET_DEFAULT_NORETURN.
11931
11932 2014-02-19  Tom Tromey  <tromey@redhat.com>
11933
11934         * target-delegates.c: Rebuild.
11935         * target.c (update_current_target): Don't inherit or default
11936         to_terminal_info.
11937         * target.h (struct target_ops) <to_terminal_info>: Use
11938         TARGET_DEFAULT_FUNC.
11939
11940 2014-02-19  Tom Tromey  <tromey@redhat.com>
11941
11942         * target-delegates.c: Rebuild.
11943         * target.c (update_current_target): Don't inherit or default
11944         to_terminal_save_ours.
11945         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11946         TARGET_DEFAULT_IGNORE.
11947
11948 2014-02-19  Tom Tromey  <tromey@redhat.com>
11949
11950         * target-delegates.c: Rebuild.
11951         * target.c (update_current_target): Don't inherit or default
11952         to_terminal_ours.
11953         * target.h (struct target_ops) <to_terminal_ours>: Use
11954         TARGET_DEFAULT_IGNORE.
11955
11956 2014-02-19  Tom Tromey  <tromey@redhat.com>
11957
11958         * target-delegates.c: Rebuild.
11959         * target.c (update_current_target): Don't inherit or default
11960         to_terminal_ours_for_output.
11961         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11962         TARGET_DEFAULT_IGNORE.
11963
11964 2014-02-19  Tom Tromey  <tromey@redhat.com>
11965
11966         * target-delegates.c: Rebuild.
11967         * target.c (update_current_target): Don't inherit or default
11968         to_terminal_inferior.
11969         * target.h (struct target_ops) <to_terminal_inferior>: Use
11970         TARGET_DEFAULT_IGNORE.
11971
11972 2014-02-19  Tom Tromey  <tromey@redhat.com>
11973
11974         * target-delegates.c: Rebuild.
11975         * target.c (update_current_target): Don't inherit or default
11976         to_terminal_init.
11977         * target.h (struct target_ops) <to_terminal_init>: Use
11978         TARGET_DEFAULT_IGNORE.
11979
11980 2014-02-19  Tom Tromey  <tromey@redhat.com>
11981
11982         * target-delegates.c: Rebuild.
11983         * target.c (update_current_target): Don't inherit or default
11984         to_can_accel_watchpoint_condition.
11985         * target.h (struct target_ops)
11986         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11987
11988 2014-02-19  Tom Tromey  <tromey@redhat.com>
11989
11990         * target-delegates.c: Rebuild.
11991         * target.c (update_current_target): Don't inherit or default
11992         to_region_ok_for_hw_watchpoint.
11993         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11994         Use TARGET_DEFAULT_FUNC.
11995
11996 2014-02-19  Tom Tromey  <tromey@redhat.com>
11997
11998         * target-delegates.c: Rebuild.
11999         * target.c (update_current_target): Don't inherit or default
12000         to_watchpoint_addr_within_range.
12001         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12002         Use TARGET_DEFAULT_FUNC.
12003
12004 2014-02-19  Tom Tromey  <tromey@redhat.com>
12005
12006         * target-delegates.c: Rebuild.
12007         * target.c (update_current_target): Don't inherit or default
12008         to_remove_watchpoint.
12009         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12010         TARGET_DEFAULT_NORETURN.
12011
12012 2014-02-19  Tom Tromey  <tromey@redhat.com>
12013
12014         * target-delegates.c: Rebuild.
12015         * target.c (update_current_target): Don't inherit or default
12016         to_insert_watchpoint.
12017         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12018         TARGET_DEFAULT_RETURN.
12019
12020 2014-02-19  Tom Tromey  <tromey@redhat.com>
12021
12022         * target-delegates.c: Rebuild.
12023         * target.c (update_current_target): Don't inherit or default
12024         to_remove_hw_breakpoint.
12025         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12026         TARGET_DEFAULT_RETURN.
12027
12028 2014-02-19  Tom Tromey  <tromey@redhat.com>
12029
12030         * target-delegates.c: Rebuild.
12031         * target.c (update_current_target): Don't inherit or default
12032         to_insert_hw_breakpoint.
12033         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12034         TARGET_DEFAULT_RETURN.
12035
12036 2014-02-19  Tom Tromey  <tromey@redhat.com>
12037
12038         * target-delegates.c: Rebuild.
12039         * target.c (update_current_target): Don't inherit or default
12040         to_can_use_hw_breakpoint.
12041         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12042         TARGET_DEFAULT_RETURN.
12043
12044 2014-02-19  Tom Tromey  <tromey@redhat.com>
12045
12046         * target-delegates.c: Rebuild.
12047         * target.c (update_current_target): Don't inherit or default
12048         to_files_info.
12049         * target.h (struct target_ops) <to_files_info>: Use
12050         TARGET_DEFAULT_IGNORE.
12051
12052 2014-02-19  Tom Tromey  <tromey@redhat.com>
12053
12054         * target-delegates.c: Rebuild.
12055         * target.c (update_current_target): Don't inherit or default
12056         to_store.
12057         * target.h (struct target_ops) <to_store>: Use
12058         TARGET_DEFAULT_NORETURN.
12059
12060 2014-02-19  Tom Tromey  <tromey@redhat.com>
12061
12062         * target-delegates.c: Rebuild.
12063         * target.c (update_current_target): Don't inherit or default
12064         to_post_attach.
12065         * target.h (struct target_ops) <to_post_attach>: Use
12066         TARGET_DEFAULT_IGNORE.
12067
12068 2014-02-19  Tom Tromey  <tromey@redhat.com>
12069
12070         * target-delegates.c: Rebuild.
12071         * target.c (update_current_target): Don't inherit or default
12072         to_rcmd.
12073         (default_rcmd): New function.
12074         (do_monitor_command): Unconditionally delegate.
12075         * target.h (struct target_ops) <to_rmcd>: Use
12076         TARGET_DEFAULT_FUNC.
12077
12078 2014-02-19  Tom Tromey  <tromey@redhat.com>
12079
12080         * target-delegates.c: Rebuild.
12081         * target.c (init_dummy_target): Don't initialize to_attach.
12082         (target_attach): Unconditionally delegate.
12083         * target.h (struct target_ops) <to_attach>: Use
12084         TARGET_DEFAULT_FUNC.
12085
12086 2014-02-19  Tom Tromey  <tromey@redhat.com>
12087
12088         * target-delegates.c: Rebuild.
12089         * target.c (target_detach): Unconditionally delegate.
12090         (init_dummy_target): Don't initialize to_detach.
12091         * target.h (struct target_ops) <to_detach>: Use
12092         TARGET_DEFAULT_IGNORE.
12093
12094 2014-02-19  Tom Tromey  <tromey@redhat.com>
12095
12096         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12097         Add argument.
12098         (target_augmented_libraries_svr4_read): Add argument.
12099         * target.c (update_current_target): Update.
12100         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12101         argument.
12102
12103 2014-02-19  Tom Tromey  <tromey@redhat.com>
12104
12105         * target.h (struct target_ops) <to_call_history_range>: Add
12106         argument.
12107         * target.c (target_call_history_range): Add argument.
12108         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12109         argument.
12110         (record_btrace_call_history_from): Update.
12111
12112 2014-02-19  Tom Tromey  <tromey@redhat.com>
12113
12114         * target.h (struct target_ops) <to_call_history_from>: Add
12115         argument.
12116         * target.c (target_call_history_from): Add argument.
12117         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12118         argument.
12119
12120 2014-02-19  Tom Tromey  <tromey@redhat.com>
12121
12122         * target.h (struct target_ops) <to_call_history>: Add argument.
12123         * target.c (target_call_history): Add argument.
12124         * record-btrace.c (record_btrace_call_history): Add 'self'
12125         argument.
12126
12127 2014-02-19  Tom Tromey  <tromey@redhat.com>
12128
12129         * target.h (struct target_ops) <to_insn_history_range>: Add
12130         argument.
12131         * target.c (target_insn_history_range): Add argument.
12132         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12133         argument.
12134         (record_btrace_insn_history_from): Update.
12135
12136 2014-02-19  Tom Tromey  <tromey@redhat.com>
12137
12138         * target.h (struct target_ops) <to_insn_history_from>: Add
12139         argument.
12140         * target.c (target_insn_history_from): Add argument.
12141         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12142         argument.
12143
12144 2014-02-19  Tom Tromey  <tromey@redhat.com>
12145
12146         * target.h (struct target_ops) <to_insn_history>: Add argument.
12147         * target.c (target_insn_history): Add argument.
12148         * record-btrace.c (record_btrace_insn_history): Add 'self'
12149         argument.
12150
12151 2014-02-19  Tom Tromey  <tromey@redhat.com>
12152
12153         * target.h (struct target_ops) <to_goto_record>: Add argument.
12154         * target.c (target_goto_record): Add argument.
12155         * record-full.c (record_full_goto): Add 'self' argument.
12156         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12157
12158 2014-02-19  Tom Tromey  <tromey@redhat.com>
12159
12160         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12161         * target.c (target_goto_record_end): Add argument.
12162         * record-full.c (record_full_goto_end): Add 'self' argument.
12163         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12164
12165 2014-02-19  Tom Tromey  <tromey@redhat.com>
12166
12167         * target.h (struct target_ops) <to_goto_record_begin>: Add
12168         argument.
12169         * target.c (target_goto_record_begin): Add argument.
12170         * record-full.c (record_full_goto_begin): Add 'self' argument.
12171         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12172         argument.
12173
12174 2014-02-19  Tom Tromey  <tromey@redhat.com>
12175
12176         * target.h (struct target_ops) <to_record_is_replaying>: Add
12177         argument.
12178         * target.c (target_record_is_replaying): Add argument.
12179         * record-full.c (record_full_is_replaying): Add 'self' argument.
12180         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12181         argument.
12182         (record_btrace_xfer_partial, record_btrace_store_registers)
12183         (record_btrace_prepare_to_store, record_btrace_resume)
12184         (record_btrace_wait, record_btrace_decr_pc_after_break)
12185         (record_btrace_find_new_threads, record_btrace_thread_alive):
12186         Update.
12187
12188 2014-02-19  Tom Tromey  <tromey@redhat.com>
12189
12190         * target.h (struct target_ops) <to_delete_record>: Add argument.
12191         * target.c (target_delete_record): Add argument.
12192         * record-full.c (record_full_delete): Add 'self' argument.
12193
12194 2014-02-19  Tom Tromey  <tromey@redhat.com>
12195
12196         * target.h (struct target_ops) <to_save_record>: Add argument.
12197         * target.c (target_save_record): Add argument.
12198         * record-full.c (record_full_save): Add 'self' argument.
12199         (record_full_save): Add 'self' argument.
12200
12201 2014-02-19  Tom Tromey  <tromey@redhat.com>
12202
12203         * target.h (struct target_ops) <to_info_record>: Add argument.
12204         * target.c (target_info_record): Add argument.
12205         * record.c (info_record_command): Add argument.
12206         * record-full.c (record_full_info): Add 'self' argument.
12207         * record-btrace.c (record_btrace_info): Add 'self' argument.
12208
12209 2014-02-19  Tom Tromey  <tromey@redhat.com>
12210
12211         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12212         * target.c (target_stop_recording): Add argument.
12213         * record.c (record_stop): Add argument.
12214         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12215         argument.
12216
12217 2014-02-19  Tom Tromey  <tromey@redhat.com>
12218
12219         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12220         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12221         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12222         argument.
12223         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12224         (_initialize_amd64_linux_nat): Use it.
12225         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12226         (_initialize_i386_linux_nat): Use it.
12227
12228 2014-02-19  Tom Tromey  <tromey@redhat.com>
12229
12230         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12231         * target.c (target_teardown_btrace): Add argument.
12232         * remote.c (remote_teardown_btrace): Add 'self' argument.
12233         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12234         argument.
12235         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12236         argument.
12237
12238 2014-02-19  Tom Tromey  <tromey@redhat.com>
12239
12240         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12241         * target.c (target_disable_btrace): Add argument.
12242         * remote.c (remote_disable_btrace): Add 'self' argument.
12243         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12244         argument.
12245         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12246         argument.
12247
12248 2014-02-19  Tom Tromey  <tromey@redhat.com>
12249
12250         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12251         * target.c (target_enable_btrace): Add argument.
12252         * remote.c (remote_enable_btrace): Add 'self' argument.
12253         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12254         argument.
12255         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12256         argument.
12257
12258 2014-02-19  Tom Tromey  <tromey@redhat.com>
12259
12260         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12261         (target_can_use_agent): Add argument.
12262         * target.c (update_current_target): Update.
12263         * remote.c (remote_can_use_agent): Add 'self' argument.
12264         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12265
12266 2014-02-19  Tom Tromey  <tromey@redhat.com>
12267
12268         * target.h (struct target_ops) <to_use_agent>: Add argument.
12269         (target_use_agent): Add argument.
12270         * target.c (update_current_target): Update.
12271         * remote.c (remote_use_agent): Add 'self' argument.
12272         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12273
12274 2014-02-19  Tom Tromey  <tromey@redhat.com>
12275
12276         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12277         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12278         (target_traceframe_info): Add argument.
12279         * target.c (update_current_target): Update.
12280         * remote.c (remote_traceframe_info): Add 'self' argument.
12281         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12282
12283 2014-02-19  Tom Tromey  <tromey@redhat.com>
12284
12285         * target.h (target_static_tracepoint_markers_by_strid): Add
12286         argument.
12287         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12288         'self' argument.
12289         * target.c (update_current_target): Update.
12290         * remote.c (struct target_ops)
12291         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12292         * linux-nat.c (struct target_ops)
12293         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12294
12295 2014-02-19  Tom Tromey  <tromey@redhat.com>
12296
12297         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12298         Add argument.
12299         (target_static_tracepoint_marker_at): Add argument.
12300         * target.c (update_current_target): Update.
12301         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12302         argument.
12303
12304 2014-02-19  Tom Tromey  <tromey@redhat.com>
12305
12306         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12307         (target_set_permissions): Add argument.
12308         * target.c (update_current_target): Update.
12309         * remote.c (remote_set_permissions): Add 'self' argument.
12310         (remote_start_remote): Update.
12311
12312 2014-02-19  Tom Tromey  <tromey@redhat.com>
12313
12314         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12315         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12316         (target_get_tib_address): Add argument.
12317         * target.c (update_current_target): Update.
12318         * remote.c (remote_get_tib_address): Add 'self' argument.
12319
12320 2014-02-19  Tom Tromey  <tromey@redhat.com>
12321
12322         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12323         (target_set_trace_notes): Add argument.
12324         * target.c (update_current_target): Update.
12325         * remote.c (remote_set_trace_notes): Add 'self' argument.
12326
12327 2014-02-19  Tom Tromey  <tromey@redhat.com>
12328
12329         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12330         argument.
12331         (target_set_trace_buffer_size): Add argument.
12332         * target.c (update_current_target): Update.
12333         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12334
12335 2014-02-19  Tom Tromey  <tromey@redhat.com>
12336
12337         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12338         argument.
12339         (target_set_circular_trace_buffer): Add argument.
12340         * target.c (update_current_target): Update.
12341         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12342         argument.
12343
12344 2014-02-19  Tom Tromey  <tromey@redhat.com>
12345
12346         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12347         argument.
12348         (target_set_disconnected_tracing): Add argument.
12349         * target.c (update_current_target): Update.
12350         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12351
12352 2014-02-19  Tom Tromey  <tromey@redhat.com>
12353
12354         * target.h (struct target_ops)
12355         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12356         (target_get_min_fast_tracepoint_insn_len): Add argument.
12357         * target.c (update_current_target): Update.
12358         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12359         argument.
12360
12361 2014-02-19  Tom Tromey  <tromey@redhat.com>
12362
12363         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12364         argument.
12365         (target_get_raw_trace_data): Add argument.
12366         * target.c (update_current_target): Update.
12367         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12368
12369 2014-02-19  Tom Tromey  <tromey@redhat.com>
12370
12371         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12372         Add argument.
12373         (target_upload_trace_state_variables): Add argument.
12374         * target.c (update_current_target): Update.
12375         * remote.c (remote_upload_trace_state_variables): Add 'self'
12376         argument.
12377         (remote_start_remote): Update.
12378
12379 2014-02-19  Tom Tromey  <tromey@redhat.com>
12380
12381         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12382         argument.
12383         (target_upload_tracepoints): Add argument.
12384         * target.c (update_current_target): Update.
12385         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12386         (remote_start_remote): Update.
12387
12388 2014-02-19  Tom Tromey  <tromey@redhat.com>
12389
12390         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12391         (target_save_trace_data): Add argument.
12392         * target.c (update_current_target): Update.
12393         * remote.c (remote_save_trace_data): Add 'self' argument.
12394
12395 2014-02-19  Tom Tromey  <tromey@redhat.com>
12396
12397         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12398         argument.
12399         * target.h (struct target_ops)
12400         <to_get_trace_state_variable_value>: Add argument.
12401         (target_get_trace_state_variable_value): Add argument.
12402         * target.c (update_current_target): Update.
12403         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12404         argument.
12405         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12406
12407 2014-02-19  Tom Tromey  <tromey@redhat.com>
12408
12409         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12410         * target.h (struct target_ops) <to_trace_find>: Add argument.
12411         (target_trace_find): Add argument.
12412         * target.c (update_current_target): Update.
12413         * remote.c (remote_trace_find): Add 'self' argument.
12414         * ctf.c (ctf_trace_find): Add 'self' argument.
12415
12416 2014-02-19  Tom Tromey  <tromey@redhat.com>
12417
12418         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12419         (target_trace_stop): Add argument.
12420         * target.c (update_current_target): Update.
12421         * remote.c (remote_trace_stop): Add 'self' argument.
12422
12423 2014-02-19  Tom Tromey  <tromey@redhat.com>
12424
12425         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12426         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12427         argument.
12428         (target_get_tracepoint_status): Add argument.
12429         * target.c (update_current_target): Update.
12430         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12431
12432 2014-02-19  Tom Tromey  <tromey@redhat.com>
12433
12434         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12435         * target.h (struct target_ops) <to_get_trace_status>: Add
12436         argument.
12437         (target_get_trace_status): Add argument.
12438         * target.c (update_current_target): Update.
12439         * remote.c (remote_get_trace_status): Add 'self' argument.
12440         (remote_start_remote, remote_can_download_tracepoint): Update.
12441         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12442
12443 2014-02-19  Tom Tromey  <tromey@redhat.com>
12444
12445         * target.h (struct target_ops) <to_trace_start>: Add argument.
12446         (target_trace_start): Add argument.
12447         * target.c (update_current_target): Update.
12448         * remote.c (remote_trace_start): Add 'self' argument.
12449
12450 2014-02-19  Tom Tromey  <tromey@redhat.com>
12451
12452         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12453         Add argument.
12454         (target_trace_set_readonly_regions): Add argument.
12455         * target.c (update_current_target): Update.
12456         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12457         argument.
12458
12459 2014-02-19  Tom Tromey  <tromey@redhat.com>
12460
12461         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12462         argument.
12463         (target_disable_tracepoint): Add argument.
12464         * target.c (update_current_target): Update.
12465         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12466
12467 2014-02-19  Tom Tromey  <tromey@redhat.com>
12468
12469         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12470         argument.
12471         (target_enable_tracepoint): Add argument.
12472         * target.c (update_current_target): Update.
12473         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12474
12475 2014-02-19  Tom Tromey  <tromey@redhat.com>
12476
12477         * target.h (struct target_ops) <to_download_trace_state_variable>:
12478         Add argument.
12479         (target_download_trace_state_variable): Add argument.
12480         * target.c (update_current_target): Update.
12481         * remote.c (remote_download_trace_state_variable): Add 'self'
12482         argument.
12483
12484 2014-02-19  Tom Tromey  <tromey@redhat.com>
12485
12486         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12487         argument.
12488         (target_can_download_tracepoint): Add argument.
12489         * target.c (update_current_target): Update.
12490         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12491
12492 2014-02-19  Tom Tromey  <tromey@redhat.com>
12493
12494         * target.h (struct target_ops) <to_download_tracepoint>: Add
12495         argument.
12496         (target_download_tracepoint): Add argument.
12497         * target.c (update_current_target): Update.
12498         * remote.c (remote_download_tracepoint): Add 'self' argument.
12499
12500 2014-02-19  Tom Tromey  <tromey@redhat.com>
12501
12502         * target.h (struct target_ops) <to_trace_init>: Add argument.
12503         (target_trace_init): Add argument.
12504         * target.c (update_current_target): Update.
12505         * remote.c (remote_trace_init): Add 'self' argument.
12506
12507 2014-02-19  Tom Tromey  <tromey@redhat.com>
12508
12509         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12510         * target.c (target_fileio_readlink): Add argument.
12511         * remote.c (remote_hostio_readlink): Add 'self' argument.
12512         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12513
12514 2014-02-19  Tom Tromey  <tromey@redhat.com>
12515
12516         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12517         * target.c (target_fileio_unlink): Add argument.
12518         * remote.c (remote_hostio_unlink): Add 'self' argument.
12519         (remote_file_delete): Update.
12520         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12521
12522 2014-02-19  Tom Tromey  <tromey@redhat.com>
12523
12524         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12525         * target.c (target_fileio_close): Add argument.
12526         * remote.c (remote_hostio_close): Add 'self' argument.
12527         (remote_hostio_close_cleanup): Update.
12528         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12529         Update.
12530         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12531
12532 2014-02-19  Tom Tromey  <tromey@redhat.com>
12533
12534         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12535         * target.c (target_fileio_pread): Add argument.
12536         * remote.c (remote_hostio_pread): Add 'self' argument.
12537         (remote_bfd_iovec_pread, remote_file_get): Update.
12538         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12539
12540 2014-02-19  Tom Tromey  <tromey@redhat.com>
12541
12542         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12543         * target.c (target_fileio_pwrite): Add argument.
12544         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12545         (remote_file_put): Update.
12546         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12547
12548 2014-02-19  Tom Tromey  <tromey@redhat.com>
12549
12550         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12551         * target.c (target_fileio_open): Add argument.
12552         * remote.c (remote_hostio_open): Add 'self' argument.
12553         (remote_bfd_iovec_open): Add 'self' argument.
12554         (remote_file_put): Add 'self' argument.
12555         (remote_file_get): Add 'self' argument.
12556         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12557
12558 2014-02-19  Tom Tromey  <tromey@redhat.com>
12559
12560         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12561         Add argument.
12562         (target_can_run_breakpoint_commands): Add argument.
12563         * target.c (update_current_target): Update.
12564         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12565         argument.
12566         (remote_insert_breakpoint): Add 'self' argument.
12567         (remote_insert_hw_breakpoint): Add 'self' argument.
12568         (remote_can_run_breakpoint_commands): Add 'self' argument.
12569
12570 2014-02-19  Tom Tromey  <tromey@redhat.com>
12571
12572         * target.h (struct target_ops)
12573         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12574         (target_supports_evaluation_of_breakpoint_conditions): Add
12575         argument.
12576         * target.c (update_current_target): Update.
12577         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12578         argument.
12579         (remote_insert_breakpoint): Add 'self' argument.
12580         (remote_insert_hw_breakpoint): Add 'self' argument.
12581         (remote_supports_cond_breakpoints): Add 'self' argument.
12582
12583 2014-02-19  Tom Tromey  <tromey@redhat.com>
12584
12585         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12586         argument.
12587         (target_supports_string_tracing): Add argument.
12588         * target.c (update_current_target): Update.
12589         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12590
12591 2014-02-19  Tom Tromey  <tromey@redhat.com>
12592
12593         * target.h (struct target_ops)
12594         <to_supports_disable_randomization>: Add argument.
12595         * target.c (find_default_supports_disable_randomization): Add
12596         argument.
12597         (target_supports_disable_randomization): Add argument.
12598         (find_default_supports_disable_randomization): Add 'self'
12599         argument.
12600         * remote.c (extended_remote_supports_disable_randomization): Add
12601         'self' argument.
12602         (remote_supports_disable_randomization): Add 'self' argument.
12603         (extended_remote_create_inferior): Update.
12604         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12605         'self' argument.
12606
12607 2014-02-19  Tom Tromey  <tromey@redhat.com>
12608
12609         * target.h (struct target_ops)
12610         <to_supports_enable_disable_tracepoint>: Add argument.
12611         (target_supports_enable_disable_tracepoint): Add argument.
12612         * target.c (update_current_target): Update.
12613         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12614         argument.
12615
12616 2014-02-19  Tom Tromey  <tromey@redhat.com>
12617
12618         * target.h (struct target_ops) <to_supports_multi_process>: Add
12619         argument.
12620         (target_supports_multi_process): Add argument.
12621         * target.c (update_current_target): Update.
12622         * remote.c (remote_supports_multi_process): Add 'self' argument.
12623         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12624         argument.
12625         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12626         argument.
12627
12628 2014-02-19  Tom Tromey  <tromey@redhat.com>
12629
12630         * target.h (struct target_ops) <to_execution_direction>: Add
12631         argument.
12632         (target_execution_direction): Add argument.
12633         * target.c (default_execution_direction): Add 'self' argument.
12634         * record-full.c (record_full_execution_direction): Add 'self'
12635         argument.
12636
12637 2014-02-19  Tom Tromey  <tromey@redhat.com>
12638
12639         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12640         argument.
12641         (target_can_execute_reverse): Add argument.
12642         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12643         * record-full.c (record_full_can_execute_reverse): Add 'self'
12644         argument.
12645         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12646         argument.
12647
12648 2014-02-19  Tom Tromey  <tromey@redhat.com>
12649
12650         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12651         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12652         argument.
12653         (target_get_ada_task_ptid): Add argument.
12654         * target.c (update_current_target): Update.
12655         (default_get_ada_task_ptid): Add 'self' argument.
12656         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12657         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12658         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12659         argument.
12660         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12661         argument.
12662         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12663         argument.
12664         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12665         argument.
12666         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12667         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12668         argument.
12669
12670 2014-02-19  Tom Tromey  <tromey@redhat.com>
12671
12672         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12673         (target_goto_bookmark): Add argument.
12674         * target.c (dummy_goto_bookmark): Add 'self' argument.
12675         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12676
12677 2014-02-19  Tom Tromey  <tromey@redhat.com>
12678
12679         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12680         (target_get_bookmark): Add argument.
12681         * target.c (dummy_get_bookmark): Add 'self' argument.
12682         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12683
12684 2014-02-19  Tom Tromey  <tromey@redhat.com>
12685
12686         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12687         argument.
12688         (target_make_corefile_notes): Add argument.
12689         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12690         * procfs.c (procfs_make_note_section): Add 'self' argument.
12691         (procfs_make_note_section): Add 'self' argument.
12692         (procfs_make_note_section): Add 'self' argument.
12693         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12694         argument.
12695         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12696         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12697         * exec.c (exec_make_note_section): Add 'self' argument.
12698         (exec_make_note_section): Add 'self' argument.
12699
12700 2014-02-19  Tom Tromey  <tromey@redhat.com>
12701
12702         * target.h (struct target_ops) <to_find_memory_regions>: Add
12703         argument.
12704         (target_find_memory_regions): Add argument.
12705         * target.c (dummy_find_memory_regions): Add 'self' argument.
12706         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12707         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12708         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12709         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12710         * exec. (exec_do_find_memory_regions): New global.
12711         (exec_set_find_memory_regions): Rewrite.
12712         (exec_find_memory_regions): New function.
12713         (init_exec_ops): Use exec_find_memory_regions.
12714
12715 2014-02-19  Tom Tromey  <tromey@redhat.com>
12716
12717         * target.h (struct target_ops) <to_supports_non_stop>: Add
12718         argument.
12719         * target.c (find_default_supports_non_stop): Add argument.
12720         (target_supports_non_stop): Add argument.
12721         (find_default_supports_non_stop): Add 'self' argument.
12722         * remote.c (remote_supports_non_stop): Add 'self' argument.
12723         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12724
12725 2014-02-19  Tom Tromey  <tromey@redhat.com>
12726
12727         * target.h (struct target_ops) <to_log_command>: Add argument.
12728         (target_log_command): Add argument.
12729         * serial.h (serial_log_command): Add 'self' argument.
12730         * serial.c (serial_log_command): Add 'self' argument.
12731
12732 2014-02-19  Tom Tromey  <tromey@redhat.com>
12733
12734         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12735         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12736         argument.
12737         (target_pid_to_exec_file): Add argument.
12738         * target.c (debug_to_pid_to_exec_file): Add argument.
12739         (update_current_target): Update.
12740         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12741         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12742         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12743         (linux_handle_extended_wait): Update.
12744         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12745         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12746         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12747         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12748
12749 2014-02-19  Tom Tromey  <tromey@redhat.com>
12750
12751         * target.h (struct target_ops) <to_rcmd>: Add argument.
12752         (target_rcmd): Add argument.
12753         * target.c (debug_to_rcmd): Add argument.
12754         (update_current_target, do_monitor_command): Update.
12755         * remote.c (remote_rcmd): Add 'self' argument.
12756         * monitor.c (monitor_rcmd): Add 'self' argument.
12757
12758 2014-02-19  Tom Tromey  <tromey@redhat.com>
12759
12760         * windows-nat.c (windows_stop): Add 'self' argument.
12761         * target.h (struct target_ops) <to_stop>: Add argument.
12762         * target.c (target_stop): Add argument.
12763         (debug_to_stop): Add argument.
12764         (update_current_target): Update.
12765         * remote.c (remote_stop): Add 'self' argument.
12766         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12767         (gdbsim_cntrl_c): Update.
12768         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12769         * procfs.c (procfs_stop): Add 'self' argument.
12770         * nto-procfs.c (procfs_stop): Add 'self' argument.
12771         * monitor.c (monitor_stop): Add 'self' argument.
12772         (monitor_open): Update.
12773         * linux-nat.c (linux_nat_stop): Add argument.
12774         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12775         * gnu-nat.c (gnu_stop): Add 'self' argument.
12776         * darwin-nat.c (darwin_stop): Add 'self' argument.
12777
12778 2014-02-19  Tom Tromey  <tromey@redhat.com>
12779
12780         * target.h (struct target_ops) <to_thread_name>: Add argument.
12781         * target.c (target_thread_name): Add argument.
12782         (update_current_target): Update.
12783         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12784
12785 2014-02-19  Tom Tromey  <tromey@redhat.com>
12786
12787         * target.h (struct target_ops) <to_extra_thread_info>: Add
12788         argument.
12789         (target_extra_thread_info): Add argument.
12790         * target.c (update_current_target): Update.
12791         * remote.c (remote_threads_extra_info): Add 'self' argument.
12792         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12793         argument.
12794         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12795         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12796         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12797         argument.
12798         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12799         argument.
12800         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12801         argument.
12802         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12803         argument.
12804
12805 2014-02-19  Tom Tromey  <tromey@redhat.com>
12806
12807         * target.h (struct target_ops) <to_program_signals>: Add argument.
12808         * target.c (target_program_signals): Add argument.
12809         * remote.c (remote_program_signals): Add 'self' argument.
12810
12811 2014-02-19  Tom Tromey  <tromey@redhat.com>
12812
12813         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12814         * target.c (target_pass_signals): Add argument.
12815         * remote.c (remote_pass_signals): Add 'self' argument.
12816         (remote_start_remote): Update.
12817         * procfs.c (procfs_pass_signals): Add 'self' argument.
12818         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12819         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12820         (linux_nat_create_inferior, linux_nat_attach): Update.
12821
12822 2014-02-19  Tom Tromey  <tromey@redhat.com>
12823
12824         * windows-nat.c (windows_can_run): Add 'self' argument.
12825         * target.h (struct target_ops) <to_can_run>: Add argument.
12826         (target_can_run): Add argument.
12827         * target.c (debug_to_can_run): Add argument.
12828         (update_current_target): Update.
12829         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12830         * inf-child.c (inf_child_can_run): Add 'self' argument.
12831         * go32-nat.c (go32_can_run): Add 'self' argument.
12832
12833 2014-02-19  Tom Tromey  <tromey@redhat.com>
12834
12835         * target.h (struct target_ops) <to_has_exited>: Add argument.
12836         (target_has_exited): Add argument.
12837         * target.c (debug_to_has_exited): Add argument.
12838         (update_current_target): Update.
12839
12840 2014-02-19  Tom Tromey  <tromey@redhat.com>
12841
12842         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12843         argument.
12844         (target_set_syscall_catchpoint): Add argument.
12845         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12846         argument.
12847         * target.c (update_current_target): Update.
12848
12849 2014-02-19  Tom Tromey  <tromey@redhat.com>
12850
12851         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12852         argument.
12853         (target_remove_exec_catchpoint): Add argument.
12854         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12855         (update_current_target): Update.
12856         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12857         argument.
12858
12859 2014-02-19  Tom Tromey  <tromey@redhat.com>
12860
12861         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12862         argument.
12863         (target_insert_exec_catchpoint): Add argument.
12864         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12865         (update_current_target): Update.
12866         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12867         argument.
12868
12869 2014-02-19  Tom Tromey  <tromey@redhat.com>
12870
12871         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12872         argument.
12873         (target_remove_vfork_catchpoint): Add argument.
12874         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12875         (update_current_target): Update.
12876         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12877         argument.
12878
12879 2014-02-19  Tom Tromey  <tromey@redhat.com>
12880
12881         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12882         argument.
12883         (target_insert_vfork_catchpoint): Add argument.
12884         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12885         (update_current_target): Update.
12886         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12887         argument.
12888
12889 2014-02-19  Tom Tromey  <tromey@redhat.com>
12890
12891         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12892         argument.
12893         (target_remove_fork_catchpoint): Add argument.
12894         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12895         (update_current_target): Update.
12896         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12897         argument.
12898
12899 2014-02-19  Tom Tromey  <tromey@redhat.com>
12900
12901         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12902         argument.
12903         (target_insert_fork_catchpoint): Add argument.
12904         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12905         (update_current_target): Update.
12906         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12907         argument.
12908
12909 2014-02-19  Tom Tromey  <tromey@redhat.com>
12910
12911         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12912         argument.
12913         (target_post_startup_inferior): Add argument.
12914         * target.c (debug_to_post_startup_inferior): Add argument.
12915         (update_current_target): Update.
12916         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12917         argument.
12918         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12919         argument.
12920         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12921         argument.
12922         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12923         argument.
12924         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12925         'self' argument.
12926         (super_post_startup_inferior): Likewise.
12927         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12928         'self' argument.
12929         (super_post_startup_inferior): Likewise.
12930         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12931         Add 'self' argument.
12932         (super_post_startup_inferior): Likewise.
12933
12934 2014-02-19  Tom Tromey  <tromey@redhat.com>
12935
12936         * target.h (struct target_ops) <to_load>: Add argument.
12937         * target.c (target_load): Add argument.
12938         (debug_to_load): Add argument.
12939         (update_current_target): Update.
12940         * remote.c (remote_load): Add 'self' argument.
12941         * remote-sim.c (gdbsim_load): Add 'self' argument.
12942         * remote-mips.c (mips_load): Add 'self' argument.
12943         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12944         * monitor.c (monitor_load): Add 'self' argument.
12945         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12946
12947 2014-02-19  Tom Tromey  <tromey@redhat.com>
12948
12949         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12950         (target_terminal_info): Add argument.
12951         * target.c (debug_to_terminal_info): Add argument.
12952         (default_terminal_info): Likewise.
12953         * inflow.c (child_terminal_info): Add 'self' argument.
12954         * inferior.h (child_terminal_info): Add 'self' argument.
12955         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12956
12957 2014-02-19  Tom Tromey  <tromey@redhat.com>
12958
12959         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12960         argument.
12961         (target_terminal_save_ours): Add argument.
12962         * target.c (debug_to_terminal_save_ours): Add argument.
12963         (update_current_target): Update.
12964         * inflow.c (terminal_save_ours): Add 'self' argument.
12965         * inferior.h (terminal_save_ours): Add 'self' argument.
12966
12967 2014-02-19  Tom Tromey  <tromey@redhat.com>
12968
12969         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12970         (target_terminal_ours): Add argument.
12971         * target.c (debug_to_terminal_ours): Add argument.
12972         (update_current_target): Update.
12973         * remote.c (remote_terminal_ours): Add 'self' argument.
12974         (remote_close): Update.
12975         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12976         * inflow.c (terminal_ours): Add 'self' argument.
12977         * inferior.h (terminal_ours): Add 'self' argument.
12978         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12979
12980 2014-02-19  Pedro Alves  <palves@redhat.com>
12981             Tom Tromey  <tromey@redhat.com>
12982
12983         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12984         argument.
12985         (target_terminal_ours_for_output): Add argument.
12986         * target.c (debug_to_terminal_ours_for_output): Add argument.
12987         (update_current_target): Update.
12988         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12989         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12990         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12991
12992 2014-02-19  Tom Tromey  <tromey@redhat.com>
12993
12994         * target.h (struct target_ops) <to_terminal_inferior>: Add
12995         argument.
12996         * target.c (target_terminal_inferior): Add argument.
12997         (update_current_target): Update.
12998         * remote.c (remote_terminal_inferior): Add 'self' argument.
12999         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13000         * inflow.c (terminal_inferior): Add 'self' argument.
13001         * inferior.h (terminal_inferior): Add 'self' argument.
13002         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13003         (go32_terminal_inferior): Add 'self' argument.
13004
13005 2014-02-19  Tom Tromey  <tromey@redhat.com>
13006
13007         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13008         (target_terminal_init): Add argument.
13009         * target.c (debug_to_terminal_init): Add argument.
13010         (update_current_target): Update.
13011         * inflow.c (terminal_init_inferior): Add 'self' argument.
13012         * inferior.h (terminal_init_inferior): Add 'self' argument.
13013         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13014         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13015
13016 2014-02-19  Tom Tromey  <tromey@redhat.com>
13017
13018         * target.h (struct target_ops)
13019         <to_can_accel_watchpoint_condition>: Add argument.
13020         (target_can_accel_watchpoint_condition): Add argument.
13021         * target.c (debug_to_can_accel_watchpoint_condition): Add
13022         argument.
13023         (update_current_target): Update.
13024         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13025         'self' argument.
13026
13027 2014-02-19  Tom Tromey  <tromey@redhat.com>
13028
13029         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13030         Add argument.
13031         (target_region_ok_for_hw_watchpoint): Add argument.
13032         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13033         (default_region_ok_for_hw_watchpoint): Add argument.
13034         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13035         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13036         argument.
13037         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13038         argument.
13039         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13040         argument.
13041         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13042         'self' argument.
13043         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13044         'self' argument.
13045         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13046         'self' argument.
13047         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13048         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13049         'self' argument.
13050         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13051         Add 'self' argument.
13052
13053 2014-02-19  Tom Tromey  <tromey@redhat.com>
13054
13055         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13056         argument.
13057         (target_insert_watchpoint): Add argument.
13058         * target.c (debug_to_insert_watchpoint): Add argument.
13059         (update_current_target): Update.
13060         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13061         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13062         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13063         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13064         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13065         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13066         argument.
13067         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13068         (procfs_insert_hw_watchpoint): Add 'self' argument.
13069         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13070         argument.
13071         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13072         argument.
13073         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13074         argument.
13075         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13076         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13077         argument.
13078         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13079         'self' argument.
13080
13081 2014-02-19  Tom Tromey  <tromey@redhat.com>
13082
13083         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13084         argument.
13085         (target_remove_watchpoint): Add argument.
13086         * target.c (debug_to_remove_watchpoint): Add argument.
13087         (update_current_target): Update.
13088         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13089         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13090         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13091         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13092         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13093         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13094         argument.
13095         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13096         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13097         argument.
13098         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13099         argument.
13100         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13101         argument.
13102         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13103         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13104         argument.
13105         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13106         'self' argument.
13107
13108 2014-02-19  Tom Tromey  <tromey@redhat.com>
13109
13110         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13111         argument.
13112         (target_remove_hw_breakpoint): Add argument.
13113         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13114         (update_current_target): Update.
13115         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13116         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13117         argument.
13118         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13119         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13120         argument.
13121         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13122         'self' argument.
13123
13124 2014-02-19  Tom Tromey  <tromey@redhat.com>
13125
13126         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13127         argument.
13128         (target_insert_hw_breakpoint): Add argument.
13129         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13130         (update_current_target): Update.
13131         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13132         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13133         argument.
13134         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13135         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13136         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13137         argument.
13138         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13139         'self' argument.
13140
13141 2014-02-19  Tom Tromey  <tromey@redhat.com>
13142
13143         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13144         argument.
13145         (target_can_use_hardware_watchpoint): Add argument.
13146         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13147         (update_current_target): Update.
13148         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13149         argument.
13150         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13151         argument.
13152         * remote.c (remote_check_watch_resources): Add 'self' argument.
13153         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13154         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13155         argument.
13156         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13157         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13158         argument.
13159         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13160         argument.
13161         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13162         argument.
13163         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13164         argument.
13165         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13166         argument.
13167         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13168         argument.
13169         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13170         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13171         argument.
13172         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13173         'self' argument.
13174
13175 2014-02-19  Tom Tromey  <tromey@redhat.com>
13176
13177         * target.h (struct target_ops) <to_post_attach>: Add argument.
13178         (target_post_attach): Add argument.
13179         * target.c (debug_to_post_attach): Add argument.
13180         (update_current_target): Update.
13181         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13182         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13183         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13184         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13185         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13186
13187 2014-02-19  Tom Tromey  <tromey@redhat.com>
13188
13189         * windows-nat.c (windows_close): Add 'self' argument.
13190         * tracepoint.c (tfile_close): Add 'self' argument.
13191         * target.h (struct target_ops) <to_close>: Add argument.
13192         * target.c (target_close): Add argument.
13193         (update_current_target): Update.
13194         * remote.c (remote_close): Add 'self' argument.
13195         * remote-sim.c (gdbsim_close): Add 'self' argument.
13196         * remote-mips.c (mips_close): Add 'self' argument.
13197         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13198         * record-full.c (record_full_close): Add 'self' argument.
13199         * record-btrace.c (record_btrace_close): Add 'self' argument.
13200         * monitor.h (monitor_close): Add 'self' argument.
13201         * monitor.c (monitor_close): Add 'self' argument.
13202         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13203         * linux-nat.c (linux_nat_close): Add argument.
13204         * go32-nat.c (go32_close): Add 'self' argument.
13205         * exec.c (exec_close_1): Add 'self' argument.
13206         * ctf.c (ctf_close): Add 'self' argument.
13207         * corelow.c (core_close): Add 'self' argument.
13208         (core_close_cleanup): Update.
13209         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13210         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13211
13212 2014-02-19  Tom Tromey  <tromey@redhat.com>
13213
13214         * remote.c (remote_load): New function.
13215         (init_remote_ops): Use it.
13216
13217 2014-02-19  Tom Tromey  <tromey@redhat.com>
13218
13219         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13220         argument.
13221         * common/linux-btrace.h (linux_supports_btrace): Update.
13222         * remote.c (remote_supports_btrace): Add "self" argument.
13223         * target-delegates.c: Rebuild.
13224         * target.c (target_supports_btrace): Remove.
13225         * target.h (struct target_ops) <to_supports_btrace>: Add
13226         target_ops argument.
13227         (target_supports_btrace): New define.
13228
13229 2014-02-19  Tom Tromey  <tromey@redhat.com>
13230
13231         * record-full.c (record_full_beneath_to_resume_ops)
13232         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13233         (record_full_beneath_to_wait)
13234         (record_full_beneath_to_store_registers_ops)
13235         (record_full_beneath_to_store_registers)
13236         (record_full_beneath_to_xfer_partial_ops)
13237         (record_full_beneath_to_xfer_partial)
13238         (record_full_beneath_to_insert_breakpoint_ops)
13239         (record_full_beneath_to_insert_breakpoint)
13240         (record_full_beneath_to_remove_breakpoint_ops)
13241         (record_full_beneath_to_remove_breakpoint)
13242         (record_full_beneath_to_stopped_by_watchpoint)
13243         (record_full_beneath_to_stopped_data_address)
13244         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13245         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13246         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13247         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13248         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13249         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13250         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13251         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13252         (record_full_resume, record_full_wait_1)
13253         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13254         (record_full_store_registers, record_full_xfer_partial)
13255         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13256         (record_full_async, record_full_core_xfer_partial): Use target
13257         delegation.
13258         * target-delegates.c: Rebuild.
13259         * target.c (current_xfer_partial): Remove.
13260         (update_current_target): Do not INHERIT or de_fault
13261         to_insert_breakpoint, to_remove_breakpoint,
13262         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13263         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13264         (default_xfer_partial): Simplify.
13265         (current_xfer_partial): Remove.
13266         (target_wait, target_resume): Simplify.
13267         (find_default_can_async_p, find_default_is_async_p): Update.
13268         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13269         to_xfer_partial, to_stopped_by_watchpoint,
13270         to_stopped_data_address.
13271         (target_store_registers): Simplify.
13272         (forward_target_remove_breakpoint)
13273         (forward_target_insert_breakpoint): Remove.
13274         (target_remove_breakpoint, target_insert_breakpoint)
13275         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13276         * target.h (struct target_ops) <to_resume, to_wait,
13277         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13278         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13279         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13280         markup.
13281         (forward_target_remove_breakpoint)
13282         (forward_target_insert_breakpoint): Remove.
13283         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13284         directly.
13285         (record_btrace_insert_breakpoint): Delegate directly.
13286
13287 2014-02-19  Tom Tromey  <tromey@redhat.com>
13288
13289         PR build/7701:
13290         * target-delegates.c: New file.
13291         * target.c: Include target-delegates.c.
13292         (init_dummy_target): Call install_dummy_methods.
13293         (complete_target_initialization): Call install_delegators.
13294         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13295         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13296         * make-target-delegates: New file.
13297
13298 2014-02-19  Tom Tromey  <tromey@redhat.com>
13299
13300         * record.c (find_record_target): Use find_target_at.
13301         * target.c (find_target_at): New function.
13302         * target.h (find_target_at): Declare.
13303
13304 2014-02-19  Tom Tromey  <tromey@redhat.com>
13305
13306         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13307         Add 'ops' argument.
13308         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13309         'ops' argument.
13310         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13311         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13312         'ops' argument.
13313         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13314         argument.
13315         * linux-nat.c (save_sigtrap): Update.
13316         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13317         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13318         (linux_nat_close): Update.
13319         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13320         argument.
13321         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13322         argument.
13323         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13324         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13325         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13326         (tmp_to_async): Add 'ops' argument.
13327         (record_full_stopped_by_watchpoint, record_full_async)
13328         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13329         argument.
13330         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13331         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13332         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13333         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13334         (remote_is_async_p, remote_async): Add 'ops' argument.
13335         (remote_stopped_data_address): Update.
13336         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13337         * target.c (update_current_target)
13338         (find_default_can_async_p, find_default_is_async_p): Update.
13339         (init_dummy_target): Update.
13340         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13341         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13342         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13343         (target_can_async_p, target_is_async_p, target_async)
13344         (target_stopped_by_watchpoint): Update.
13345
13346 2014-02-19  Yao Qi  <yao@codesourcery.com>
13347
13348         PR gdb/16220
13349         * gdbarch.sh: Remove startup_gdbarch.
13350         * gdbarch.c: Regenerated.
13351         * gdbarch.h: Likewise.
13352
13353 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13354
13355         * rl78-tdep.c (rl78_g10_register_name): New function.
13356         (rl78_return_value): Add g10 support.
13357         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13358         g10.
13359
13360 2014-02-17  Doug Evans  <xdje42@gmail.com>
13361
13362         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13363         (SUBDIR_GUILE_SRCS): Ditto.
13364         (scm-gsmob.o): Ditto.
13365
13366 2014-02-17  Yao Qi  <yao@codesourcery.com>
13367
13368         * gnu-nat.c (ILL_RPC): Declare defined function.
13369
13370 2014-02-17  Yao Qi  <yao@codesourcery.com>
13371
13372         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13373         mach_msg_type_number_t.
13374         (gnu_write_inferior): Likewise.
13375
13376 2014-02-17  Yao Qi  <yao@codesourcery.com>
13377
13378         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13379         in format string.
13380         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13381         (inf_validate_procs, inf_signal): Likewise.
13382         (S_exception_raise_request): Likewise.
13383         (do_mach_notify_dead_name): Likewise.
13384         (steal_exc_port): Likewise.
13385         (gnu_read_inferior): Change 'copy_count''s type to
13386         mach_msg_type_number_t.
13387         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13388         format string.
13389
13390 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13391
13392         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13393         flag.  Adjust all users; in particular...
13394         (gnu_wait): ..., don't decrement its value in here...
13395         (gnu_create_inferior): ..., and instead set the flag in here,
13396         around the startup_inferior call, and call that one with
13397         START_INFERIOR_TRAPS_EXPECTED.
13398
13399         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13400         (ILL_RPC): ... new macro.
13401         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13402         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13403         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13404         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13405         functions with ILL_RPC macro.
13406         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13407         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13408         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13409         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13410         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13411         (S_proc_getlogin_reply, S_proc_getsid_reply)
13412         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13413         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13414         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13415         (S_proc_getnports_reply, S_proc_is_important_reply)
13416         (S_proc_get_code_reply): New stub functions, generated with
13417         ILL_RPC macro.
13418
13419         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13420         collected the type check structures.
13421
13422         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13423
13424 2014-02-14  Doug Evans  <dje@google.com>
13425
13426         * target.c (target_write_partial): Fix result type.
13427
13428 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13429
13430         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13431         the proper offsets to access fpregset_t.
13432
13433 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13434
13435         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13436         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13437         * h8300-tdep.c (setmachinelist): Remove global.
13438         * hppa-tdep.c (hppa_sigtramp): Remove global.
13439         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13440         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13441         * ravenscar-thread.c (update_target_observer): Remove global.
13442         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13443
13444 2014-02-12  Tom Tromey  <tromey@redhat.com>
13445
13446         * common/rsp-low.c: Update comments.
13447         * common/rsp-low.h: Update comments.
13448
13449 2014-02-12  Tom Tromey  <tromey@redhat.com>
13450
13451         * common/rsp-low.c (convert_ascii_to_int): Remove.
13452         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13453
13454 2014-02-12  Tom Tromey  <tromey@redhat.com>
13455
13456         * common/rsp-low.h (unhexify): Don't declare.
13457         * common/rsp-low.c (unhexify): Remove.
13458
13459 2014-02-12  Tom Tromey  <tromey@redhat.com>
13460
13461         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13462         * common/rsp-low.c (convert_int_to_ascii): Remove.
13463
13464 2014-02-12  Tom Tromey  <tromey@redhat.com>
13465
13466         * common/rsp-low.h (hexify): Don't declare.
13467         * common/rsp-low.c (hexify): Remove.
13468
13469 2014-02-12  Tom Tromey  <tromey@redhat.com>
13470
13471         * common/rsp-low.c (hexify): Never take strlen of argument.
13472
13473 2014-02-12  Tom Tromey  <tromey@redhat.com>
13474
13475         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13476         * remote.c (extended_remote_run, remote_rcmd)
13477         (remote_download_trace_state_variable, remote_save_trace_data)
13478         (remote_set_trace_notes): Update.
13479         * tracepoint.c (encode_source_string, tfile_write_status)
13480         (tfile_write_uploaded_tsv): Update.
13481
13482 2014-02-12  Tom Tromey  <tromey@redhat.com>
13483
13484         * tracepoint.c: Include rsp-low.h.
13485         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13486         * remote.c: Include rsp-low.h.
13487         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13488         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13489         (remote_unescape_input): Move to common/rsp-low.c.
13490         * common/rsp-low.h: New file.
13491         * common/rsp-low.c: New file.
13492         * Makefile.in (SFILES): Add common/rsp-low.c.
13493         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13494         (COMMON_OBS): Add rsp-low.o.
13495         (rsp-low.o): New target.
13496
13497 2014-02-12  Tom Tromey  <tromey@redhat.com>
13498
13499         * utils.h: Include print-utils.h.
13500         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13501         (int_string, core_addr_to_string, core_addr_to_string_nz)
13502         (hex_string, hex_string_custom): Don't declare.
13503         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13504         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13505         (hex_string_custom, int_string, core_addr_to_string)
13506         (core_addr_to_string_nz, host_address_to_string): Move to
13507         common/print-utils.c.
13508         * common/print-utils.h: New file.
13509         * common/print-utils.c: New file
13510         * Makefile.in (SFILES): Add common/print-utils.c.
13511         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13512         (COMMON_OBS): Add print-utils.o.
13513         (print-utils.o): New target.
13514
13515 2014-02-12  Tom Tromey  <tromey@redhat.com>
13516
13517         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13518
13519 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13520
13521         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13522
13523 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13524
13525         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13526         if a PT_IO ptrace request returns sucessfully but indicates that 0
13527         bytes were transferred.
13528
13529 2014-02-12  Pedro Alves  <palves@redhat.com>
13530             Kevin Buettner <kevinb@redhat.com>
13531
13532         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13533         TYPE_INSTANCE_FLAG_CODE_SPACE.
13534
13535 2014-02-12  Pedro Alves  <palves@redhat.com>
13536
13537         * h8300-tdep.c (pseudo_from_raw_register)
13538         (raw_from_pseudo_register): New functions.
13539         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13540         them.
13541
13542 2014-02-12  Pedro Alves  <palves@redhat.com>
13543
13544         * h8300-tdep.c (h8300_register_sim_regno): New function.
13545         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13546         gdbarch_register_sim_regno hook.
13547
13548 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13549
13550         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13551
13552 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13553
13554         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13555
13556 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13557
13558         * obsd-tdep.h (obsd_init_abi): New prototype.
13559         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13560         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13561         (obsd_init_abi): New functions.
13562         * i386obsd-tdep.c: Include "obsd-tdep.h".
13563         (i386obsd_init_abi): Call obsd_init_abi.
13564         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13565         (amd64obsd_init_abi): Call obsd_init_abi.
13566         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13567         obsd-tdep.c to gdb_target_obs.
13568
13569 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13570
13571         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13572         double float arguments to 16-byte in the argument slots.
13573
13574 2014-02-11  Doug Evans  <xdje42@gmail.com>
13575
13576         * configure.ac: Don't crash if pkg-config is not found and guile
13577         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13578         in guile checks.
13579         * configure: Regenerate.
13580
13581 2014-02-11  Yao Qi  <yao@codesourcery.com>
13582
13583         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13584         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13585         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13586         * gnu-nat.c (gnu_xfer_memory): Likewise.
13587         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13588         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13589         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13590         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13591
13592 2014-02-11  Yao Qi  <yao@codesourcery.com>
13593
13594         * target.h (enum target_xfer_error): Rename to ...
13595         (enum target_xfer_status): ... it.  New.  All users updated.
13596         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13597         New.
13598         (TARGET_XFER_STATUS_ERROR_P): New macro.
13599         (target_xfer_error_to_string): Remove declaration.
13600         (target_xfer_status_to_string): Declare.
13601         (target_xfer_partial_ftype): Adjust it.
13602         (struct target_ops) <to_xfer_partial>: Return
13603         target_xfer_status.  Add argument xfered_len.  Update
13604         comments.
13605         * target.c (target_xfer_error_to_string): Rename to ...
13606         (target_xfer_status_to_string): ... it.  New.  All callers
13607         updated.
13608         (target_read_live_memory): Likewise.  Call target_xfer_partial
13609         instead of target_read.
13610         (memory_xfer_live_readonly_partial): Return
13611         target_xfer_status.  Add argument xfered_len.
13612         (raw_memory_xfer_partial): Likewise.
13613         (memory_xfer_partial_1): Likewise.
13614         (memory_xfer_partial): Likewise.
13615         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13616         properly.  Update debug message.
13617         (default_xfer_partial, current_xfer_partial): Likewise.
13618         (target_write_partial): Likewise.
13619         (target_read_partial): Likewise.  All callers updated.
13620         (read_whatever_is_readable): Likewise.
13621         (target_write_with_progress): Likewise.
13622         (target_read_alloc_1): Likewise.
13623
13624         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13625         * auxv.c (procfs_xfer_auxv): Likewise.
13626         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13627         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13628         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13629         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13630         * corefile.c (read_memory): Adjust.
13631         * corelow.c (core_xfer_partial): Likewise.
13632         * ctf.c (ctf_xfer_partial): Likewise.
13633         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13634         updated.
13635         (darwin_xfer_partial): Likewise.
13636         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13637         callers updated.
13638         (exec_xfer_partial): Likewise.
13639         * exec.h (section_table_xfer_memory_partial): Update
13640         declaration.
13641         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13642         negative.
13643         (gnu_xfer_partial): Likewise.
13644         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13645         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13646         (ia64_hpux_xfer_solib_got): Likewise.
13647         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13648         type of 'partial_len' to ULONGEST.
13649         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13650         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13651         (linux_nat_xfer_partial): Likewise.
13652         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13653         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13654         * monitor.c (monitor_xfer_memory): Likewise.
13655         (monitor_xfer_partial): Likewise.
13656         * procfs.c (procfs_xfer_partial): Likewise.
13657         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13658         * record-full.c (record_full_xfer_partial): Likewise.
13659         (record_full_core_xfer_partial): Likewise.
13660         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13661         (gdbsim_xfer_partial): Likewise.
13662         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13663         updated.
13664         (remote_write_bytes, remote_read_bytes): Likewise.  All
13665         callers updated.
13666         (remote_flash_erase): Likewise.  All callers updated.
13667         (remote_write_qxfer): Likewise.  All callers updated.
13668         (remote_read_qxfer): Likewise.  All callers updated.
13669         (remote_xfer_partial): Likewise.
13670         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13671         (rs6000_xfer_shared_libraries): Likewise.
13672         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13673         (sol_thread_xfer_partial): Likewise.
13674         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13675         (sparc_xfer_partial): Likewise.
13676         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13677         updated.
13678         (spu_xfer_partial): Likewise.
13679         * spu-multiarch.c (spu_xfer_partial): Likewise.
13680         * tracepoint.c (tfile_xfer_partial): Likewise.
13681         * windows-nat.c (windows_xfer_memory): Likewise.
13682         (windows_xfer_shared_libraries): Likewise.
13683         (windows_xfer_partial): Likewise.
13684         * valprint.c: Replace 'target_xfer_error' with
13685         'target_xfer_status' in comments.
13686
13687 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13688
13689         Checked in by Joel Brobecker <brobecker@adacore.com>.
13690         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13691
13692 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13693
13694         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13695         function parameters.
13696
13697 2014-02-10  Will Newton  <will.newton@linaro.org>
13698
13699         * elfread.c (elf_rel_plt_read): Look for a .got section if
13700         looking up .got.plt fails.
13701         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13702         on address passed to elf_gnu_ifunc_record_cache.
13703         (elf_gnu_ifunc_resolve_addr): Likewise.
13704         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13705
13706 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13707
13708         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13709         (X_RETTURN): New macro.
13710         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13711
13712         * sparc64-tdep.c (sparc64_init_abi): Hook
13713         sparc_in_function_epilogue_p.
13714
13715 2014-02-10  Gary Benson  <gbenson@redhat.com>
13716
13717         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13718         Rename name_matcher to symbol_matcher.
13719
13720 2014-02-10  Gary Benson  <gbenson@redhat.com>
13721
13722         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13723         Use expand_symtabs_file_matcher_ftype and
13724         expand_symtabs_symbol_matcher_ftype.
13725
13726 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13727
13728         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13729         (struct ada_symbol_cache): New.
13730         (ada_free_symbol_cache): Forward declare.
13731         (struct ada_pspace_data): New.
13732         (ada_pspace_data_handle): New static global.
13733         (get_ada_pspace_data, ada_pspace_data_cleanup)
13734         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13735         (cache_space, cache): Delete, now folded inside struct
13736         ada_pspace_data.
13737         (ada_get_symbol_cache): New function.
13738         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13739         implementation.
13740         (_initialize_ada_language): Remove initialization of cache_space.
13741         Move call to observer_attach_inferior_exit up, grouping it
13742         with the other observer registrations inside this function.
13743         Rename command to be more general.  Add call to
13744         register_program_space_data_with_cleanup.
13745
13746 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13747
13748         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13749         ada_new_objfile_observer.
13750         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13751         (_initialize_tasks): Update uses of ada_new_objfile_observer
13752         and ada_tasks_normal_stop_observer.
13753
13754 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13755
13756         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13757         returned by the 'Length attribute to integer.
13758
13759 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13760
13761         * ada-lang.c (_initialize_ada_language): Initialize
13762         cache_space obstack.
13763
13764 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13765
13766         * ada-lang.c (HASH_SIZE): New macro.
13767         (struct cache_entry): New type.
13768         (cache_space, cache): New static globals.
13769         (ada_clear_symbol_cache, find_entry): New functions.
13770         (lookup_cached_symbol, cache_symbol): Implement.
13771         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13772         (_initialize_ada_language): Attach ada_new_objfile_observer
13773         and ada_free_objfile_observer.
13774
13775 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13776
13777         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13778         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13779         struct block * parameter.
13780         (ada_lookup_symbol_list_worker): Constify local variable "block".
13781         Remove cast which is no longer necessary.
13782
13783 2014-02-10  Doug Evans  <xdje42@gmail.com>
13784
13785         Add Guile as an extension language.
13786         * NEWS: Mention Guile scripting.
13787         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13788         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13789         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13790         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13791         (CLIBS): Add GUILE_LIBS.
13792         (install-guile): New rule.
13793         (guile.o): New rule.
13794         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13795         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13796         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13797         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13798         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13799         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13800         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13801         * configure.ac: New option --with-guile.
13802         * configure: Regenerate.
13803         * config.in: Regenerate.
13804         * auto-load.c: Remove #include "python/python.h".  Add #include
13805         "gdb/section-scripts.h".
13806         (source_section_scripts): Handle Guile scripts.
13807         (_initialize_auto_load): Add name of Guile objfile script to
13808         scripts-directory help text.
13809         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13810         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13811         (struct breakpoint): New member scm_bp_object.
13812         * defs.h (enum command_control_type): New value guile_control.
13813         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13814         "extension.h".
13815         (show_user): Update comment.
13816         (_initialize_cli_cmds): Update help text for "show user".  Update help
13817         text for max-user-call-depth.
13818         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13819         "extension.h".
13820         (multi_line_command_p): Add guile_control.
13821         (print_command_lines): Handle guile_control.
13822         (execute_control_command, recurse_read_control_structure): Ditto.
13823         (process_next_line): Recognize "guile" commands.
13824         * disasm.c (gdb_disassemble_info): Make non-static.
13825         * disasm.h: #include "dis-asm.h".
13826         (struct gdbarch): Add forward decl.
13827         (gdb_disassemble_info): Declare.
13828         * extension.c: #include "guile/guile.h".
13829         (extension_languages): Add guile.
13830         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13831         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13832         * gdbtypes.c (get_unsigned_type_max): New function.
13833         (get_signed_type_minmax): New function.
13834         * gdbtypes.h (get_unsigned_type_max): Declare.
13835         (get_signed_type_minmax): Declare.
13836         * guile/README: New file.
13837         * guile/guile-internal.h: New file.
13838         * guile/guile.c: New file.
13839         * guile/guile.h: New file.
13840         * guile/scm-arch.c: New file.
13841         * guile/scm-auto-load.c: New file.
13842         * guile/scm-block.c: New file.
13843         * guile/scm-breakpoint.c: New file.
13844         * guile/scm-disasm.c: New file.
13845         * guile/scm-exception.c: New file.
13846         * guile/scm-frame.c: New file.
13847         * guile/scm-gsmob.c: New file.
13848         * guile/scm-iterator.c: New file.
13849         * guile/scm-lazy-string.c: New file.
13850         * guile/scm-math.c: New file.
13851         * guile/scm-objfile.c: New file.
13852         * guile/scm-ports.c: New file.
13853         * guile/scm-pretty-print.c: New file.
13854         * guile/scm-safe-call.c: New file.
13855         * guile/scm-string.c: New file.
13856         * guile/scm-symbol.c: New file.
13857         * guile/scm-symtab.c: New file.
13858         * guile/scm-type.c: New file.
13859         * guile/scm-utils.c: New file.
13860         * guile/scm-value.c: New file.
13861         * guile/lib/gdb.scm: New file.
13862         * guile/lib/gdb/boot.scm: New file.
13863         * guile/lib/gdb/experimental.scm: New file.
13864         * guile/lib/gdb/init.scm: New file.
13865         * guile/lib/gdb/iterator.scm: New file.
13866         * guile/lib/gdb/printing.scm: New file.
13867         * guile/lib/gdb/types.scm: New file.
13868         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13869         (VPATH): Add $(GUILE_SRCDIR).
13870         (GUILE_DIR): New variable.
13871         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13872         (all): Add stamp-guile dependency.
13873         (stamp-guile): New rule.
13874         (clean-guile, install-guile, uninstall-guile): New rules.
13875         (install-only): Add install-guile dependency.
13876         (uninstall): Add uninstall-guile dependency.
13877         (clean): Add clean-guile dependency.
13878
13879 2014-02-09  Doug Evans  <xdje42@gmail.com>
13880
13881         Revert this patch (which I approved, mea culpa).
13882
13883         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13884
13885         * Makefile.in (all-lib): Remove.
13886         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13887
13888 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13889
13890         Fix Python stack corruption.
13891         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13892         gdb_py_longest.
13893
13894 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13895
13896         * Makefile.in (all-lib): Remove.
13897         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13898
13899 2014-02-07  Doug Evans  <dje@google.com>
13900
13901         * extension-priv.h (extension_language_script_ops): Add comment.
13902         (extension_language_ops): Add comment.
13903         (active_ext_lang_state): Fix typo in comment.
13904
13905 2014-02-07  Pedro Alves  <palves@redhat.com>
13906
13907         PR breakpoints/16292
13908         * infrun.c (handle_signal_stop) <signal arrives while stepping
13909         over a breakpoint>: Switch back to the stepping thread.
13910
13911 2014-02-07  Yao Qi  <yao@codesourcery.com>
13912
13913         * target.c (target_xfer_partial): Return zero if LEN is zero.
13914
13915 2014-02-07  Yao Qi  <yao@codesourcery.com>
13916
13917         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13918         (ld_so_xfer_auxv): Likewise.
13919         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13920         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13921         * corelow.c (core_xfer_partial): Likewise.
13922         * ctf.c (ctf_xfer_partial): Likewise.
13923         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13924         (darwin_xfer_partial): Likewise.
13925         * exec.c (exec_xfer_partial): Likewise.
13926         * gnu-nat.c (gnu_xfer_partial): Likewise.
13927         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13928         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13929         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13930         * linux-nat.c (linux_xfer_siginfo): Likewise.
13931         (linux_proc_xfer_spu): Likewise.
13932         * procfs.c (procfs_xfer_partial): Likewise.
13933         * record-full.c (record_full_xfer_partial): Likewise.
13934         (record_full_core_xfer_partial): Likewise.
13935         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13936         * remote.c (remote_write_qxfer): Likewise.
13937         (remote_write_qxfer, remote_read_qxfer): Likewise.
13938         (remote_xfer_partial): Likewise.
13939         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13940         (rs6000_xfer_shared_libraries): Likewise.
13941         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13942         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13943         (spu_xfer_partial): Likewise.
13944         * target.c (memory_xfer_partial_1): Likewise.
13945         * tracepoint.c (tfile_xfer_partial): Likewise.
13946         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13947         (windows_xfer_partial): Likewise.
13948
13949 2014-02-07  Yao Qi  <yao@codesourcery.com>
13950
13951         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13952         comments.
13953         (core_xfer_shared_libraries_aix): Likewise.
13954         * gdbarch.c, gdbarch.h: Regenerated.
13955         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13956         ULONGEST.  Change 'len_avail' type to ULONGEST.
13957         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13958         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13959         declaration.
13960         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13961
13962 2014-02-07  Yao Qi  <yao@codesourcery.com>
13963
13964         * corefile.c (memory_error): Get 'exception' from ERR and pass
13965         'exception' to throw_error.
13966
13967 2014-02-06  Doug Evans  <xdje42@gmail.com>
13968
13969         * configure.ac (libpython checking): Remove all but python.o from
13970         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13971         * configure: Regenerate.
13972
13973         * Makefile.in (SFILES): Add extension.c.
13974         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13975         (COMMON_OBS): Add extension.o.
13976         * extension.h: New file.
13977         * extension-priv.h: New file.
13978         * extension.c: New file.
13979
13980         * python/python-internal.h: #include "extension.h".
13981         (gdbpy_auto_load_enabled): Declare.
13982         (gdbpy_apply_val_pretty_printer): Declare.
13983         (gdbpy_apply_frame_filter): Declare.
13984         (gdbpy_preserve_values): Declare.
13985         (gdbpy_breakpoint_cond_says_stop): Declare.
13986         (gdbpy_breakpoint_has_cond): Declare.
13987         (void source_python_script_for_objfile): Delete.
13988         * python/python.c: #include "extension-priv.h".
13989         Delete inclusion of "observer.h".
13990         (extension_language_python): Moved here and renamed from
13991         script_language_python in py-auto-load.c.
13992         Redefined to be of type extension_language_defn.
13993         (python_extension_script_ops): New global.
13994         (python_extension_ops): New global.
13995         (struct python_env): New member previous_active.
13996         (restore_python_env): Call restore_active_ext_lang.
13997         (ensure_python_env): Call set_active_ext_lang.
13998         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13999         New arg extlang.
14000         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14001         New arg extlang.
14002         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14003         New arg extlang.
14004         (gdbpy_eval_from_control_command): Renamed from
14005         eval_python_from_control_command, made static.  New arg extlang.
14006         (gdbpy_source_script) Renamed from source_python_script, made static.
14007         New arg extlang.
14008         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14009         result to int.  New arg extlang.
14010         (gdbpy_source_objfile_script): Renamed from
14011         source_python_script_for_objfile, made static.  New arg extlang.
14012         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14013         static.  New args extlang, extlang_printers.  Change result type to
14014         "void".
14015         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14016         static.  New arg extlang.  Rename arg printers to extlang_printers
14017         and change type to ext_lang_type_printers *.
14018         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14019         static.  Replace argument arg with extlang, extlang_printers.
14020         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14021         (!HAVE_PYTHON, source_python_script): Delete.
14022         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14023         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14024         (!HAVE_PYTHON, start_type_printers): Delete.
14025         (!HAVE_PYTHON, apply_type_printers): Delete.
14026         (!HAVE_PYTHON, free_type_printers): Delete.
14027         (_initialize_python): Delete call to observer_attach_before_prompt.
14028         (finalize_python): Set/restore active extension language.
14029         (gdbpy_finish_initialization) Renamed from
14030         finish_python_initialization, made static.  New arg extlang.
14031         (gdbpy_initialized): New function.
14032         * python/python.h: #include "extension.h".  Delete #include
14033         "value.h", "mi/mi-cmds.h".
14034         (extension_language_python): Declare.
14035         (GDBPY_AUTO_FILE_NAME): Delete.
14036         (enum py_bt_status): Moved to extension.h and renamed to
14037         ext_lang_bt_status.
14038         (enum frame_filter_flags): Moved to extension.h.
14039         (enum py_frame_args): Moved to extension.h and renamed to
14040         ext_lang_frame_args.
14041         (finish_python_initialization): Delete.
14042         (eval_python_from_control_command): Delete.
14043         (source_python_script): Delete.
14044         (apply_val_pretty_printer): Delete.
14045         (apply_frame_filter): Delete.
14046         (preserve_python_values): Delete.
14047         (gdbpy_script_language_defn): Delete.
14048         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14049         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14050
14051         * auto-load.c: #include "extension.h".
14052         (GDB_AUTO_FILE_NAME): Delete.
14053         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14054         (script_language_gdb): Delete, moved to extension.c and renamed to
14055         extension_language_gdb.
14056         (source_gdb_script_for_objfile): Delete.
14057         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14058         (loaded_script): Change type of language member to
14059         struct extension_language_defn *.
14060         (init_loaded_scripts_info): Initialize
14061         unsupported_script_warning_printed.
14062         (maybe_add_script): Make static.  Change type of language arg to
14063         struct extension_language_defn *.
14064         (clear_section_scripts): Reset unsupported_script_warning_printed.
14065         (auto_load_objfile_script_1): Rewrite to use extension language API.
14066         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14067         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14068         (source_section_scripts): Rewrite to use extension language API.
14069         (load_auto_scripts_for_objfile): Rewrite to use
14070         auto_load_scripts_for_objfile.
14071         (collect_matching_scripts_data): Change type of language member to
14072         struct extension_language_defn *.
14073         (auto_load_info_scripts): Change type of language arg to
14074         struct extension_language_defn *.
14075         (unsupported_script_warning_print): New function.
14076         (script_not_found_warning_print): Make static.
14077         (_initialize_auto_load): Rewrite construction of scripts-directory
14078         help.
14079         * auto-load.h (struct objfile): Add forward decl.
14080         (struct script_language): Delete.
14081         (struct auto_load_pspace_info): Add forward decl.
14082         (struct extension_language_defn): Add forward decl.
14083         (maybe_add_script): Delete.
14084         (auto_load_objfile_script): Declare.
14085         (script_not_found_warning_print): Delete.
14086         (auto_load_info_scripts): Update prototype.
14087         (auto_load_gdb_scripts_enabled): Declare.
14088         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14089         auto_load_python_scripts_enabled and made public.
14090         (script_language_python): Delete, moved to python.c.
14091         (gdbpy_script_language_defn): Delete.
14092         (info_auto_load_python_scripts): Update to use
14093         extension_language_python.
14094
14095         * breakpoint.c (condition_command): Replace call to
14096         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14097         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14098         with call to breakpoint_ext_lang_cond_says_stop.
14099         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14100         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14101         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14102         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14103         New arg slang.
14104         (local_setattro): Print name of extension language with existing
14105         stop condition.
14106
14107         * valprint.c (val_print, value_print): Update to call
14108         apply_ext_lang_val_pretty_printer.
14109         * cp-valprint.c (cp_print_value): Update call to
14110         apply_ext_lang_val_pretty_printer.
14111         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14112         (gdbpy_apply_val_pretty_printer): Renamed from
14113         apply_val_pretty_printer.  New arg extlang.
14114         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14115
14116         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14117         extension language API.
14118         * cli/cli-script.c (execute_control_command): Update to call
14119         eval_ext_lang_from_control_command.
14120
14121         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14122         enum ext_lang_bt_status values.  Update call to
14123         apply_ext_lang_frame_filter.
14124         (mi_cmd_stack_list_locals): Ditto.
14125         (mi_cmd_stack_list_args): Ditto.
14126         (mi_cmd_stack_list_variables): Ditto.
14127         * mi/mi-main.c: Delete #include "python/python-internal.h".
14128         Add #include "extension.h".
14129         (mi_cmd_list_features): Replace reference to python internal variable
14130         gdb_python_initialized with call to ext_lang_initialized_p.
14131
14132         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14133         Update to use enum ext_lang_frame_args.  Update to call
14134         apply_ext_lang_frame_filter.
14135         * python/py-framefilter.c (extract_sym): Update to use enum
14136         ext_lang_bt_status.
14137         (extract_value, py_print_type, py_print_value): Ditto.
14138         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14139         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14140         (py_print_frame): Ditto.
14141         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14142         New arg extlang.  Update to use enum ext_lang_bt_status.
14143
14144         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14145         finish_python_initialization.  Replace with call to
14146         finish_ext_lang_initialization.
14147
14148         * typeprint.c (do_free_global_table): Update to call
14149         free_ext_lang_type_printers.
14150         (create_global_typedef_table): Update to call
14151         start_ext_lang_type_printers.
14152         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14153         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14154         (type_print_options): Change type of global_printers from "void *"
14155         to "struct ext_lang_type_printers *".
14156
14157         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14158         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14159         (gdbpy_preserve_values): Renamed from preserve_python_values.
14160         New arg extlang.
14161         (!HAVE_PYTHON, preserve_python_values): Delete.
14162
14163         * utils.c (quit_flag): Delete, moved to extension.c.
14164         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14165         extension.c.
14166
14167         * eval.c: Delete #include "python/python.h".
14168         * main.c: Delete #include "python/python.h".
14169
14170         * defs.h: Update comment.
14171
14172 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14173
14174         GDB 7.7 released.
14175
14176 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14177
14178         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14179         defined.
14180
14181 2014-02-05  Yao Qi  <yao@codesourcery.com>
14182
14183         * remote.c (remote_pass_signals): Remove local 'buf' and use
14184         rs->buf.
14185         (remote_program_signals): Likewise.
14186
14187 2014-02-05  Yao Qi  <yao@codesourcery.com>
14188
14189         * ctf.c: Include "inferior.h" and "gdbthread.h".
14190         (CTF_PID): A new macro.
14191         (ctf_open): Call inferior_appeared and add_thread_silent.
14192         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14193         (ctf_thread_alive): New function.
14194         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14195
14196 2014-02-05  Yao Qi  <yao@codesourcery.com>
14197
14198         Revert this patch:
14199
14200         2013-05-24  Yao Qi  <yao@codesourcery.com>
14201
14202         * tracepoint.c (TFILE_PID): Remove.
14203         (tfile_open): Don't add thread and inferior.
14204         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14205         exit_inferior_silent.
14206         (tfile_thread_alive): Remove.
14207         (init_tfile_ops): Don't set field 'to_thread_alive' of
14208         tfile_ops.
14209
14210 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14211
14212         * remote.c (remote_start_remote): Call remote_check_symbols even
14213         if only symbol-file (not file) has been given.
14214
14215 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14216
14217         * gdbarch.sh (skip_entrypoint): New callback.
14218         * gdbarch.c, gdbarch.h: Regenerate.
14219         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14220         * infrun.c (fill_in_stop_func): Likewise.
14221         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14222         (ppc_elfv2_elf_make_msymbol_special): New function.
14223         (ppc_elfv2_skip_entrypoint): Likewise.
14224         (ppc_linux_init_abi): Install them for ELFv2.
14225
14226 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14227
14228         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14229         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14230         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14231         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14232         structures returned in GPRs.
14233
14234 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14235
14236         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14237         offset to the stack parameter list for the ELFv2 ABI.
14238
14239 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14240
14241         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14242         set_gdbarch_convert_from_func_ptr_addr and
14243         set_gdbarch_elf_make_msymbol_special for ELFv1.
14244         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14245         function descriptors on ELFv1.
14246         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14247         set up r12 at function entry.
14248
14249 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14250
14251         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14252         (struct gdbarch_tdep): New member elf_abi.
14253
14254         * rs6000-tdep.c: Include "elf/ppc64.h".
14255         (rs6000_gdbarch_init): Detect ELF ABI version.
14256
14257 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14258
14259         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14260         within a register pair holding a DFP 128-bit value on little-endian.
14261         (ppc64_sysv_abi_return_value_base): Likewise.
14262         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14263         (dfp_pseudo_register_write): Likewise.
14264
14265 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14266
14267         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14268         offset on little-endian when passing _Decimal32.
14269         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14270
14271 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14272
14273         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14274         of the overlapped FP register within the VSX register on little-
14275         endian platforms.
14276         (efpr_pseudo_register_write): Likewise.
14277
14278 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14279
14280         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14281         offset on little-endian when passing small structures.
14282
14283 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14284
14285         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14286         (struct ppc64_sysv_argpos): New data structure.
14287         (ppc64_sysv_abi_push_float): Remove.
14288         (ppc64_sysv_abi_push_val): New function.
14289         (ppc64_sysv_abi_push_integer): Likewise.
14290         (ppc64_sysv_abi_push_freg): Likewise.
14291         (ppc64_sysv_abi_push_vreg): Likewise.
14292         (ppc64_sysv_abi_push_param): Likewise.
14293         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14294         (ppc64_sysv_abi_return_value_base): New function.
14295         (ppc64_sysv_abi_return_value): Refactor to use it.
14296
14297 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14298
14299         * NEWS: Document new target powerpc64le-*-linux*.
14300
14301 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14302
14303         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14304         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14305         core dumps.
14306         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14307         register set used in ELF core dumps.  Add floating-point register set.
14308
14309 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14310
14311         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14312         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14313         penultimate entry from number representing the PC register
14314         to symbolic constant representing the MDR register.  Add
14315         constant for the PC register to the end of the table.
14316
14317 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14318
14319         * bsd-kvm.c: Include <sys/param.h>
14320
14321 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14322
14323         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14324
14325 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14326
14327         * ada-lang.h (clear_ada_sym_cache): Delete.
14328
14329 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14330
14331         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14332
14333 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14334
14335         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14336           the sigreturn register save area only if the syscall is
14337           sigreturn.
14338
14339 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14340
14341         * valops.c (value_slice): Minor reformatting.
14342
14343 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14344
14345         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14346
14347 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14348
14349         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14350         New static globals.
14351         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14352         (ada_ignore_descriptive_types_p): New static global.
14353         (find_parallel_type_by_descriptive_type): Return immediately
14354         if ada_ignore_descriptive_types_p is set.
14355         (_initialize_ada_language): Register new commands "maintenance
14356         set ada", "maintenance show ada", "maintenance set ada
14357         ignore-descriptive-types" and "maintenance show ada
14358         ignore-descriptive-types".
14359         * NEWS: Add entry for new "maint ada set/show
14360         ignore-descriptive-types" commands.
14361
14362 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14363
14364         * record-btrace.c (record_btrace_close): Call btrace_teardown
14365         for all threads.
14366
14367 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14368
14369         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14370         "ui-out.h".
14371
14372 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14373
14374         * ada-typeprint (type_is_full_subrange_of_target_type):
14375         New function.
14376         (print_range): Add parameter bounds_prefered_p.  If not set,
14377         try printing range types using the name of their base type.
14378         (print_range_type): Add parameter bounds_prefered_p.
14379         Use it in call to print_range.
14380         (print_array_type, ada_print_type): Update calls to print_range
14381         and print_range_type.
14382
14383 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14384
14385         * ada-typeprint.c (print_array_type, print_choices, print_range)
14386         (print_range_bound, print_dynamic_range_bound, print_range_type):
14387         Remove declaration.
14388
14389 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14390
14391         * ada-typeprint.c (print_range): Add missing empty line
14392         after local declaration.
14393
14394 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14395
14396         * ada-valprint.c (print_optional_low_bound): Get index_type's
14397         target type for as long as it is a TYPE_CODE_RANGE.
14398
14399 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14400
14401         * procfs.c (procfs_make_note_section): Remove assertion and
14402         associated comment.
14403
14404 2014-01-24  Yao Qi  <yao@codesourcery.com>
14405
14406         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14407         * corelow.c (get_core_siginfo): Likewise.
14408
14409 2014-01-24  Yao Qi  <yao@codesourcery.com>
14410
14411         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14412         ULONGEST.  Don't check 'len' is negative.
14413         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14414
14415 2014-01-23  Tom Tromey  <tromey@redhat.com>
14416
14417         PR python/16485:
14418         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14419         Handle exception from frame.block.
14420         (FrameVars.fetch_frame_locals): Likewise.
14421
14422 2014-01-23  Tom Tromey  <tromey@redhat.com>
14423
14424         PR python/16487:
14425         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14426         on a NULL pointer.  Move "goto error" to correct place.
14427
14428 2014-01-23  Tom Tromey  <tromey@redhat.com>
14429
14430         PR python/16491:
14431         * python/py-framefilter.c (apply_frame_filter): Call
14432         ensure_python_env after computing gdbarch.
14433
14434 2014-01-23  Yao Qi  <yao@codesourcery.com>
14435
14436         * target.c (raw_memory_xfer_partial): Change argument type
14437         from void * to gdb_byte *.
14438         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14439
14440 2014-01-22  Doug Evans  <dje@google.com>
14441
14442         New gdbserver option --debug-format=timestamp.
14443         * NEWS: Mention it.
14444
14445 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14446
14447         * syscalls/s390x-linux.xml: New file.
14448         * syscalls/s390-linux.xml: New file.
14449         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14450         (XML_SYSCALL_FILENAME_S390X): Likewise.
14451         (op_svc): New enum value for SVC opcode.
14452         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14453         (s390_linux_get_syscall_number): New function.
14454         (s390_gdbarch_init): Register '*get_syscall_number' and the
14455         syscall xml file name.
14456         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14457         "s390-linux.xml" and "s390x-linux.xml".
14458         * NEWS: Announce new feature.
14459
14460 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14461
14462         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14463
14464 2014-01-22  Pedro Alves  <palves@redhat.com>
14465
14466         * xtensa-config.c: Include defs.h.
14467
14468 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14469
14470         * common/common-utils.h: Add "ARI:" comment beside __func__
14471         reference.
14472
14473 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14474
14475         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14476         documentation a bit.
14477
14478 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14479
14480         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14481         * configure: Regenerate.
14482         * aclocal.m4: Regenerate.
14483         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14484         New substituted variables.
14485         (install-strip): New target.
14486         (INSTALL_SCRIPT): New substituted variable.
14487         (FLAGS_TO_PASS): Add it.
14488         (install-only): Use $(INSTALL_SCRIPT) rather than
14489         $(INSTALL_PROGRAM) for gcore.
14490
14491 2014-01-20  Tom Tromey  <tromey@redhat.com>
14492
14493         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14494         together.
14495
14496 2014-01-20  Tom Tromey  <tromey@redhat.com>
14497
14498         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14499         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14500         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14501         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14502         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14503         (struct cmd_list_element) <flags>: Remove.
14504         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14505         doc_allocated>: New fields.
14506         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14507         bitfields.
14508         * maint.c (maintenance_do_deprecate): Update.
14509         * top.c (execute_command): Update.
14510
14511 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14512
14513         * xtensa-linux-nat.c: Include asm/ptrace.h.
14514
14515 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14516
14517         * Makefile.in (SFILES): Add d-support.c.
14518         (COMMON_OBS): Add d-support.o.
14519         * d-lang.h (d_parse_symbol): Add comment, now defined in
14520         d-support.c.
14521         * d-lang.c (parse_call_convention)
14522         (parse_attributes, parse_function_types)
14523         (parse_function_args, parse_type, parse_identifier)
14524         (call_convention_p, d_parse_symbol): Move functions to ...
14525         * d-support.c: ... New file.
14526
14527 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14528
14529         * d-lang.h (d_parse_symbol): Add declaration.
14530         * d-lang.c (extract_identifiers)
14531         (extract_type_info): Remove functions.
14532         (parse_call_convention, parse_attributes)
14533         (parse_function_types, parse_function_args)
14534         (parse_type, parse_identifier, call_convention_p)
14535         (d_parse_symbol): New functions.
14536         (d_demangle): Use d_parse_symbol to demangle D symbols.
14537
14538 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14539
14540         * d-lang.h (struct builtin_d_type): New data type.
14541         (builtin_d_type): Add declaration.
14542         * d-lang.c (d_language_arch_info, build_d_types)
14543         (builtin_d_type): New functions.
14544         (enum d_primitive_types): New data type.
14545         (d_language_defn): Change c_language_arch_info to
14546         d_language_arch_info.
14547         (d_type_data): New static variable.
14548         (_initialize_d_language): Initialize d_type_data.
14549
14550 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14551
14552         * d-lang.h (d_main_name): Add declaration.
14553         * d-lang.c (d_main_name): New function.
14554         * symtab.c (find_main_name): Add call to d_main_name.
14555
14556 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14557
14558         * d-lang.c (d_language_defn): Change macro_expansion_c to
14559         macro_expansion_no.
14560
14561 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14562
14563         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14564
14565 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14566
14567         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14568         gdb_exception" declaration.
14569         * remote.c (getpkt_or_notif_sane): Likewise.
14570
14571 2014-01-17  Doug Evans  <dje@google.com>
14572
14573         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14574         function, contents of dirnames_to_char_ptr_vec_append moved here.
14575         (delim_string_to_char_ptr_vec): New function.
14576         (dirnames_to_char_ptr_vec_append): Rewrite.
14577         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14578
14579 2014-01-17  Doug Evans  <dje@google.com>
14580
14581         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14582         and moved here ...
14583         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14584         #include "common-utils.h".
14585         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14586         * common/vec.h (VEC_ASSERT_PASS): Update.
14587         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14588         (MACH_CHECK_ERROR): Update.
14589
14590 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14591
14592         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14593         comments.
14594         * gdbarch.h: Regenerate.
14595
14596 2014-01-16  Tom Tromey  <tromey@redhat.com>
14597
14598         * value.c (struct value) <regnum>: Move earlier.
14599
14600 2014-01-16  Tom Tromey  <tromey@redhat.com>
14601
14602         * remote.c (extended_remote_create_inferior): Rename from
14603         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14604         old implementation.
14605
14606 2014-01-16  Pedro Alves  <palves@redhat.com>
14607
14608         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14609         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14610         the backchain.
14611
14612 2014-01-16  Doug Evans  <dje@google.com>
14613
14614         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14615
14616 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14617
14618         * btrace.h (btrace_thread_flag): New.
14619         (struct btrace_thread_info) <flags>: New.
14620         * record-btrace.c (record_btrace_resume_thread)
14621         (record_btrace_find_thread_to_move, btrace_step_no_history)
14622         (btrace_step_stopped, record_btrace_start_replaying)
14623         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14624         (record_btrace_find_resume_thread): New.
14625         (record_btrace_resume, record_btrace_wait): Extend.
14626         (record_btrace_can_execute_reverse): New.
14627         (record_btrace_open): Fail in non-stop mode.
14628         (record_btrace_set_replay): Split into this, ...
14629         (record_btrace_stop_replaying): ... this, ...
14630         (record_btrace_clear_histories): ... and this.
14631         (init_record_btrace_ops): Init to_can_execute_reverse.
14632         * NEWS: Announce it.
14633
14634 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14635
14636         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14637         (forward_target_decr_pc_after_break)
14638         (target_decr_pc_after_break): New.
14639         * target.c (forward_target_decr_pc_after_break)
14640         (target_decr_pc_after_break): New.
14641         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14642         instead of gdbarch_decr_pc_after_break.
14643         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14644         instead of gdbarch_decr_pc_after_break.
14645         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14646         instead of gdbarch_decr_pc_after_break.
14647         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14648         instead of gdbarch_decr_pc_after_break.
14649         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14650         instead of gdbarch_decr_pc_after_break.
14651         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14652         instead of gdbarch_decr_pc_after_break.
14653
14654 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14655
14656         * btrace.c: Include regcache.h.
14657         (btrace_add_pc): New.
14658         (btrace_enable): Call btrace_add_pc.
14659         (btrace_is_empty): New.
14660         * btrace.h (btrace_is_empty): New.
14661         * record-btrace.c (require_btrace, record_btrace_info): Call
14662         btrace_is_empty.
14663
14664 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14665
14666         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14667         Support delta reads.
14668         (linux_disable_btrace): Change return type.
14669         * common/linux-btrace.h (linux_read_btrace): Change parameters
14670         and return type to allow error reporting.  Update users.
14671         (linux_disable_btrace): Change return type.  Update users.
14672         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14673         New.
14674         (btrace_error): New.
14675         (btrace_block) <begin>: Comment on BEGIN == 0.
14676         * btrace.c (btrace_compute_ftrace): Start from the end of
14677         the current trace.
14678         (btrace_stitch_trace, btrace_clear_history): New.
14679         (btrace_fetch): Read delta trace, return if replaying.
14680         (btrace_clear): Move clear history code to btrace_clear_history.
14681         (parse_xml_btrace): Throw an error if parsing failed.
14682         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14683         and return type to allow error reporting.
14684         (target_read_btrace): Change parameters and return type to allow
14685         error reporting.
14686         * target.c (target_read_btrace): Update.
14687         * remote.c (remote_read_btrace): Support delta reads.  Pass
14688         errors on.
14689         * NEWS: Announce it.
14690
14691 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14692
14693         * record.h (record_btrace_frame_unwind)
14694         (record_btrace_tailcall_frame_unwind): New declarations.
14695         * dwarf2-frame: Include record.h
14696         (dwarf2_frame_cfa): Throw an error for btrace frames.
14697         * record-btrace.c: Include hashtab.h.
14698         (btrace_get_bfun_name): New.
14699         (btrace_call_history): Call btrace_get_bfun_name.
14700         (struct btrace_frame_cache): New.
14701         (bfcache): New.
14702         (bfcache_hash, bfcache_eq, bfcache_new): New.
14703         (btrace_get_frame_function): New.
14704         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14705         (record_btrace_frame_this_id): Compute own id.
14706         (record_btrace_frame_prev_register): Provide PC, throw_error
14707         for all other registers.
14708         (record_btrace_frame_sniffer): Detect btrace frames.
14709         (record_btrace_tailcall_frame_sniffer): New.
14710         (record_btrace_frame_dealloc_cache): New.
14711         (record_btrace_frame_unwind): Add new functions.
14712         (record_btrace_tailcall_frame_unwind): New.
14713         (_initialize_record_btrace): Allocate cache.
14714         * btrace.c (btrace_clear): Call reinit_frame_cache.
14715         * NEWS: Announce it.
14716
14717 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14718
14719         * record-btrace.c (record_btrace_set_replay)
14720         (record_btrace_goto_begin, record_btrace_goto_end)
14721         (record_btrace_goto): New.
14722         (init_record_btrace_ops): Initialize them.
14723         * NEWS: Announce it.
14724
14725 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14726
14727         * record-btrace.c (record_btrace_find_new_threads)
14728         (record_btrace_thread_alive): New.
14729         (init_record_btrace_ops): Initialize to_find_new_threads and
14730         to_thread_alive.
14731
14732 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14733
14734         * record-btrace.c (record_btrace_resume): New.
14735         (record_btrace_wait): New.
14736         (init_record_btrace_ops): Initialize to_wait and to_resume.
14737
14738 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14739
14740         * record-btrace.c (record_btrace_xfer_partial)
14741         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14742         (record_btrace_allow_memory_access): New.
14743         (init_record_btrace_ops): Initialize new methods.
14744         * target.c (raw_memory_xfer_partial): Bail out if target reports
14745         that this memory is not available.
14746
14747 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14748
14749         * target.h (target_ops) <to_insert_breakpoint>
14750         <to_remove_breakpoint>: Add target_ops parameter.
14751         (forward_target_insert_breakpoint): New.
14752         (forward_target_remove_breakpoint): New.
14753         (memory_remove_breakpoint, memory_insert_breakpoint):
14754         Add target_ops parameter.
14755         * target.c (target_insert_breakpoint): Split into this and ...
14756         (forward_target_insert_breakpoint): ... this.
14757         (target_remove_breakpoint): Split into this and ...
14758         (forward_target_remove_breakpoint): ... this.
14759         (debug_to_insert_breakpoint): Add target_ops parameter.
14760         Call forward_target_insert_breakpoint.
14761         (debug_to_remove_breakpoint): Add target_ops parameter.
14762         Call forward_target_remove_breakpoint.
14763         (update_current_target): Do not inherit or default to_insert_breakpoint
14764         and to_remove_breakpoint.
14765         * corelow.c (ignore): Add target_ops parameter.
14766         * exec.c (ignore): Add target_ops parameter.
14767         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14768         Add target_ops parameter.
14769         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14770         Add target_ops parameter.
14771         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14772         Add target_ops parameter.
14773         * record-full.c (record_full_beneath_to_insert_breakpoint)
14774         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14775         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14776         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14777         (record_full_core_remove_breakpoint): Add target_ops parameter.
14778         Update users.
14779         (record_full_beneath_to_insert_breakpoint_ops)
14780         (record_full_beneath_to_remove_breakpoint_ops)
14781         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14782         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14783         tmp_to_remove_breakpoint_ops,
14784         record_full_beneath_to_insert_breakpoint_ops, and
14785         record_full_beneath_to_remove_breakpoint_ops.
14786         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14787         (m32r_remove_breakpoint): Add target_ops parameter.
14788         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14789         Add target_ops parameter.
14790         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14791         Add target_ops parameter.
14792
14793 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14794             Markus Metzger  <markus.t.metzger@intel.com>
14795
14796         * record-btrace.c: Include frame-unwind.h.
14797         (record_btrace_frame_unwind_stop_reason)
14798         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14799         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14800         New.
14801         (init_record_btrace_ops): Install it.
14802
14803 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14804
14805         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14806         get_prev_frame_1.
14807
14808 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14809
14810         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14811         earlier.
14812
14813 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14814
14815         * frame-unwind.c: Include target.h.
14816         (frame_unwind_try_unwinder): New function with code from ...
14817         (frame_unwind_find_by_frame): ... here.  New variable
14818         unwinder_from_target, call also target_get_unwinder)
14819         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14820         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14821         * target.h (struct target_ops): New fields to_get_unwinder and
14822         to_get_tailcall_unwinder.
14823         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14824
14825 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14826
14827         * record-btrace.c (record_btrace_fetch_registers)
14828         (record_btrace_store_registers)
14829         (record_btrace_to_prepare_to_store): New.
14830         (init_record_btrace_ops): Add the above.
14831
14832 2014-01-16  Tom Tromey  <tromey@redhat.com>
14833
14834         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14835         * target.h (struct target_ops) <to_prepare_to_store>: Add
14836         argument.
14837         (target_prepare_to_store): Add argument.
14838         * target.c (debug_to_prepare_to_store): Add argument.
14839         (update_current_target): Update.
14840         * remote.c (remote_prepare_to_store): Add 'self' argument.
14841         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14842         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14843         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14844         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14845         argument.
14846         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14847         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14848         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14849         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14850         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14851
14852 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14853
14854         * btrace.h (replay) <replay>: New.
14855         (btrace_is_replaying): New.
14856         * btrace.c (btrace_clear): Free replay iterator.
14857         (btrace_is_replaying): New.
14858         * record-btrace.c (record_btrace_is_replaying): New.
14859         (record_btrace_info): Print insn number if replaying.
14860         (record_btrace_insn_history): Start at replay position.
14861         (record_btrace_call_history): Start at replay position.
14862         (init_record_btrace_ops): Init to_record_is_replaying.
14863
14864 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14865
14866         * record-btrace.c (record_btrace_insn_history_range): Include
14867         end.
14868         (record_btrace_insn_history_from): Adjust range.
14869         (record_btrace_call_history_range): Include
14870         end.
14871         (record_btrace_call_history_from): Adjust range.
14872         * NEWS: Announce changes.
14873
14874 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14875
14876         * record.h (enum record_print_flag)
14877         <record_print_indent_calls>: New.
14878         * record.c (get_call_history_modifiers): Recognize /c modifier.
14879         (_initialize_record): Document /c modifier.
14880         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14881         Reorder fields.  Optionally indent the function name.  Update
14882         all users.
14883         * NEWS: Announce changes.
14884
14885 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14886
14887         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14888
14889 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14890
14891         * btrace.c (ftrace_new_function): Start counting at one.
14892         * record-btrace.c (record_btrace_info): Adjust number of calls
14893         and insns.
14894         * NEWS: Announce it.
14895
14896 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14897
14898         * record-btrace.c (btrace_call_history_insn_range): Print
14899         insn range as [begin, end].
14900
14901 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14902
14903         * btrace.h (struct btrace_func_link): New.
14904         (enum btrace_function_flag): New.
14905         (struct btrace_inst): Rename to ...
14906         (struct btrace_insn): ...this. Update all users.
14907         (struct btrace_func) <ibegin, iend>: Remove.
14908         (struct btrace_func_link): New.
14909         (struct btrace_func): Rename to ...
14910         (struct btrace_function): ...this. Update all users.
14911         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14912         (number, level, flags>: New.
14913         (struct btrace_insn_iterator): Rename to ...
14914         (struct btrace_insn_history): ...this.
14915         Update all users.
14916         (struct btrace_insn_iterator, btrace_call_iterator): New.
14917         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14918         (struct btrace_target_info) <begin, end, level>
14919         <insn_history, call_history>: New.
14920         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14921         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14922         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14923         (btrace_call_number, btrace_call_begin, btrace_call_end)
14924         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14925         (btrace_find_function_by_number, btrace_set_insn_history)
14926         (btrace_set_call_history): New.
14927         * btrace.c (btrace_init_insn_iterator)
14928         (btrace_init_func_iterator, compute_itrace): Remove.
14929         (ftrace_print_function_name, ftrace_print_filename)
14930         (ftrace_skip_file): Change
14931         parameter to const.
14932         (ftrace_init_func): Remove.
14933         (ftrace_debug): Use new btrace_function fields.
14934         (ftrace_function_switched): Also consider gaining and
14935         losing symbol information).
14936         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14937         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14938         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14939         New.
14940         (ftrace_new_function): Move. Remove debug print.
14941         (ftrace_update_lines, ftrace_update_insns): New.
14942         (ftrace_update_function): Check for call, ret, and jump.
14943         (compute_ftrace): Renamed to ...
14944         (btrace_compute_ftrace): ...this. Rewritten to compute call
14945         stack.
14946         (btrace_fetch, btrace_clear): Updated.
14947         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14948         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14949         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14950         (btrace_call_number, btrace_call_begin, btrace_call_end)
14951         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14952         (btrace_find_function_by_number, btrace_set_insn_history)
14953         (btrace_set_call_history): New.
14954         * record-btrace.c (require_btrace): Use new btrace thread
14955         info fields.
14956         (record_btrace_info, btrace_insn_history)
14957         (record_btrace_insn_history, record_btrace_insn_history_range):
14958         Use new btrace thread info fields and new iterator.
14959         (btrace_func_history_src_line): Rename to ...
14960         (btrace_call_history_src_line): ...this. Use new btrace
14961         thread info fields.
14962         (btrace_func_history): Rename to ...
14963         (btrace_call_history): ...this. Use new btrace thread info
14964         fields and new iterator.
14965         (record_btrace_call_history, record_btrace_call_history_range):
14966         Use new btrace thread info fields and new iterator.
14967
14968 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14969
14970         * frame.h (frame_id_build_unavailable_stack_special): New.
14971         * frame.c (frame_id_build_unavailable_stack_special): New.
14972
14973 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14974
14975         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14976         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14977         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14978         to gdbarch.
14979         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14980         (i386_insn_is_jump, i386_jmp_p): New.
14981         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14982         insn_is_jump to gdbarch.
14983         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14984         * gdbarch.h: Regenerated.
14985         * gdbarch.c: Regenerated.
14986         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14987         (default_insn_is_jump): New.
14988         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14989         (default_insn_is_jump): New.
14990
14991 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14992
14993         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14994         Change to ...
14995         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14996         (btrace_read_type) <btrace_read_new>: Change to ...
14997         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14998
14999 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15000
15001         * common/linux-btrace.c (linux_read_btrace): Free trace from
15002         previous iteration.
15003
15004 2014-01-15  Doug Evans  <dje@google.com>
15005
15006         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15007         uint32_t.
15008
15009 2014-01-15  Tom Tromey  <tromey@redhat.com>
15010
15011         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15012         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15013         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15014         (set_objfile_main_name): New function.
15015         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15016         language_of_main>: New fields.
15017         (set_objfile_main_name): Declare.
15018         * symtab.c (find_main_name): Loop over objfiles to find the main
15019         name and language.
15020         (set_main_name): Now static.
15021         (get_main_info): Add comment.
15022         * symtab.h (set_main_name): Don't declare.
15023
15024 2014-01-15  Tom Tromey  <tromey@redhat.com>
15025
15026         * symtab.c (main_progspace_key): New global.
15027         (struct main_info): New.
15028         (name_of_main, language_of_main): Remove.
15029         (get_main_info, main_info_cleanup): New function.
15030         (set_main_name, main_name, main_language): Use get_main_info.
15031         (_initialize_symtab): Initialize main_progspace_key.
15032
15033 2014-01-15  Tom Tromey  <tromey@redhat.com>
15034
15035         * dbxread.c (process_one_symbol): Update.
15036         * dwarf2read.c (read_partial_die): Update.
15037         * symfile.c (set_initial_language): Call main_language.
15038         * symtab.c (language_of_main): Now static.
15039         (set_main_name): Add 'lang' parameter.
15040         (find_main_name): Update.
15041         (main_language): New function.
15042         (symtab_observer_executable_changed): Update.
15043         * symtab.h (set_main_name): Update.
15044         (language_of_main): Remove.
15045         (main_language): Declare.
15046
15047 2014-01-15  Tom Tromey  <tromey@redhat.com>
15048
15049         * symfile.c (init_entry_point_info): Use new "initialized" field.
15050         Update.
15051         * objfiles.h (struct entry_point) <initialized>: New field.
15052         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15053         (struct objfile) <ei>: ...here.  Remove.
15054         * objfiles.c (entry_point_address_query): Update.
15055
15056 2014-01-15  Tom Tromey  <tromey@redhat.com>
15057
15058         * objfiles.c (entry_point_address_query): Relocate entry point
15059         address.
15060         (objfile_relocate1): Do not relocate entry point address.
15061         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15062         <the_bfd_section_index>: New field.
15063         * symfile.c (init_entry_point_info): Find the entry point's
15064         section.
15065
15066 2014-01-15  Tom Tromey  <tromey@redhat.com>
15067
15068         * solib-frv.c (enable_break): Use entry_point_address_query.
15069
15070 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15071
15072         * NEWS: Add note on improved process record-replay on
15073         arm*-linux* targets.
15074
15075 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15076
15077         * arm-tdep.c (enum arm_record_result): New enum.
15078         (arm_record_unsupported_insn): New function.
15079         (arm_record_coproc_data_proc): Removed.
15080         (thumb2_record_ld_st_multiple): New function.
15081         (thumb2_record_ld_st_dual_ex_tbb): New function.
15082         (thumb2_record_data_proc_sreg_mimm): New function.
15083         (thumb2_record_ps_dest_generic): New function.
15084         (thumb2_record_branch_misc_cntrl): New function.
15085         (thumb2_record_str_single_data): New function.
15086         (thumb2_record_ld_mem_hints): New function.
15087         (thumb2_record_ld_word): New function.
15088         (thumb2_record_lmul_lmla_div): New function.
15089         (thumb2_record_decode_insn_handler): New function.
15090         (decode_insn): Add thumb32 instruction handlers.
15091
15092 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15093
15094         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15095         (struct arm_linux_record_tdep): Declare.
15096         (arm_canonicalize_syscall): New function.
15097         (arm_all_but_pc_registers_record): New function.
15098         (arm_linux_syscall_record): New function.
15099         (arm_linux_init_abi): Add syscall recording constructs.
15100         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15101         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15102         decoding.
15103         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15104         <arm_syscall_record>: New field.
15105         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15106         gdb_target_obs.
15107
15108 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15109
15110         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15111         register for push instruction recording.
15112
15113 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15114
15115         * arm-tdep.c (thumb_record_misc): Update to correct logical
15116         error while recording ldm, ldmia and pop instructions.
15117
15118 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15119
15120         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15121
15122 2014-01-15  Pedro Alves  <palves@redhat.com>
15123
15124         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15125         (go32_resume, go32_fetch_registers, store_register)
15126         (go32_store_registers, go32_prepare_to_store)
15127         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15128         (go32_create_inferior, go32_can_run, go32_terminal_init)
15129         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15130         declarations.
15131
15132 2014-01-15  Tom Tromey  <tromey@redhat.com>
15133
15134         * target.h (async_callback_ftype): New typedef.
15135         (struct target_ops) <to_async>: Use it.
15136
15137 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15138
15139         * python/py-value.c (get_field_type): Remove unnecessary curly
15140         braces for single-statement if block.
15141
15142 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15143
15144         * python/py-type.c (convert_field): Add missing empty line
15145         after declarations.
15146
15147 2014-01-14  Doug Evans  <dje@google.com>
15148
15149         * symfile.h (expand_symtabs_matching): Renamed from
15150         expand_partial_symbol_names.  Update prototype.
15151         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15152         * symfile.c (expand_symtabs_matching): Renamed from
15153         expand_partial_symbol_names.  New args file_matcher, kind.
15154         Rename arg fun to symbol_matcher.
15155         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15156         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15157         ada_expand_partial_symbol_name.
15158         (ada_make_symbol_completion_list): Update to call
15159         expand_symtabs_matching.
15160         (ada_add_global_exceptions): Call expand_symtabs_matching.
15161         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15162         call map_symbol_filenames.
15163         * symtab.c (sources_info): Update to call map_symbol_filenames.
15164         (search_symbols): Call expand_symtabs_matching.
15165         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15166         (default_make_symbol_completion_list_break_on): Update to call
15167         expand_symtabs_matching.
15168         (make_source_files_completion_list): Update to call
15169         map_symbol_filenames.
15170
15171 2014-01-14  Doug Evans  <dje@google.com>
15172
15173         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15174         (expand_symtabs_symbol_matcher_ftype): New typedef.
15175         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15176         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15177         * symfile.c (expand_partial_symbol_names): Update to use
15178         expand_symtabs_symbol_matcher_ftype.
15179         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15180         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15181         Arg name_matcher renamed to symbol_matcher.
15182         * psymtab.c (recursively_search_psymtabs): Update to use
15183         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15184         sym_matcher.
15185         (expand_symtabs_matching_via_partial): Update to use
15186         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15187         Arg name_matcher renamed to symbol_matcher.
15188
15189 2014-01-14  Doug Evans  <dje@google.com>
15190
15191         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15192         (map_partial_symbol_filenames): Ditto.
15193         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15194         (map_partial_symbol_filenames): Ditto.
15195         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15196         (map_partial_symbol_filenames): Ditto.
15197         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15198         (map_partial_symbol_filenames): Ditto.
15199         * symtab.c: Delete #include "psymtab.h".
15200
15201 2014-01-14  Pedro Alves  <palves@redhat.com>
15202             Tom Tromey  <tromey@redhat.com>
15203
15204         * infrun.c (use_displaced_stepping): Use find_record_target
15205         instead of RECORD_IS_USED.
15206         (adjust_pc_after_break): Use record_full_is_used instead of
15207         RECORD_IS_USED.
15208         * record-btrace.c (record_btrace_open): Call record_preopen
15209         instead of checking RECORD_IS_USED.
15210         * record-full.c (record_full_shortname)
15211         (record_full_core_shortname): New globals.
15212         (record_full_is_used): New function.
15213         (find_full_open): Call record_preopen instead of checking
15214         RECORD_IS_USED.
15215         (init_record_full_ops): Set the target's shortname to
15216         record_full_shortname.
15217         (init_record_full_core_ops): Set the target's shortname to
15218         record_full_core_shortname.
15219         * record-full.h (record_full_is_used): Declare.
15220         * record.c (find_record_target): Make extern.
15221         (record_preopen): New function.
15222         * record.h (RECORD_IS_USED): Delete macro.
15223         (find_record_target, record_preopen): Declare functions.
15224
15225 2014-01-14  Yao Qi  <yao@codesourcery.com>
15226
15227         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15228         'len''s type to ULONGEST.
15229         (core_xfer_shared_libraries_aix): Likewise.
15230         * gdbarch.c, gdbarch.h: Regenerated.
15231         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15232         Change type of 'len' to ULONGEST.
15233         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15234         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15235
15236 2014-01-14  Yao Qi  <yao@codesourcery.com>
15237
15238         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15239         type of 'len' to ULONGEST.
15240         (linux_xfer_osdata_processgroups): Likewise.
15241         (linux_xfer_osdata_threads): Likewise.
15242         (linux_xfer_osdata_fds): Likewise.
15243         (linux_xfer_osdata_isockets): Likewise.
15244         (linux_xfer_osdata_shm): Likewise.
15245         (linux_xfer_osdata_sem): Likewise.
15246         (linux_xfer_osdata_msg): Likewise.
15247         (linux_common_xfer_osdata): Likewise.
15248         (struct osdata_type) <getter>: Likewise.
15249         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15250         the declaration.
15251
15252 2014-01-14  Yao Qi  <yao@codesourcery.com>
15253
15254         * target.h (target_xfer_partial_ftype): Update.
15255         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15256         ULONGEST.
15257         * aix-thread.c (aix_thread_xfer_partial): Change type of
15258         argument 'len' to ULONGEST.
15259         * auxv.c (procfs_xfer_auxv): Likewise.
15260         (ld_so_xfer_auxv): Likewise.
15261         (memory_xfer_auxv): Likewise.
15262         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15263         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15264         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15265         * corelow.c (core_xfer_partial): Likewise.
15266         * ctf.c (ctf_xfer_partial): Likewise.
15267         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15268         '%u'.
15269         (darwin_read_dyld_info): Likewise.
15270         (darwin_xfer_partial): Likewise.
15271         * exec.c (section_table_xfer_memory_partial): Likewise.
15272         (exec_xfer_partial): Likewise.
15273         * exec.h (section_table_xfer_memory_partial): Update
15274         declaration.
15275         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15276         instead of plongest.
15277         (gnu_xfer_partial): Likewise.
15278         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15279         (ia64_hpux_xfer_solib_got): Likewise.
15280         (ia64_hpux_xfer_partial): Likewise.
15281         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15282         * inf-ptrace.c (inf_ptrace_xfer_partial):
15283         * inf-ttrace.c (inf_ttrace_xfer_partial):
15284         * linux-nat.c (linux_xfer_siginfo): Likewise.
15285         (linux_nat_xfer_partial): Likewise.
15286         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15287         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15288         * monitor.c (monitor_xfer_memory): Likewise.
15289         (monitor_xfer_partial): Likewise.
15290         * procfs.c (procfs_xfer_partial): Likewise.
15291         * record-full.c (record_full_xfer_partial): Likewise.
15292         (record_full_core_xfer_partial): Likewise.
15293         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15294         instead of plongest.
15295         (gdbsim_xfer_partial): Likewise.
15296         * remote.c (remote_xfer_partial): Likewise.
15297         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15298         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15299         declaration.
15300         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15301         (rs6000_xfer_shared_libraries): Likewise.
15302         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15303         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15304         (sparc_xfer_partial): Likewise.
15305         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15306         (spu_xfer_partial): Likewise.
15307         * spu-multiarch.c (spu_xfer_partial): Likewise.
15308         * target.c (target_read_live_memory): Likewise.
15309         (memory_xfer_live_readonly_partial): Likewise.
15310         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15311         (target_xfer_partial, default_xfer_partial): Likewise.
15312         (current_xfer_partial): Likewise.
15313         * tracepoint.c (tfile_xfer_partial): Likewise.
15314         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15315         pulongest instead of plongest.
15316         (windows_xfer_partial): Likewise.
15317         (windows_xfer_shared_libraries): Likewise.
15318
15319 2014-01-14  Yao Qi  <yao@codesourcery.com>
15320
15321         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15322         target_xfer_partial_ftype.
15323
15324 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15325
15326         PR python/15464
15327         PR python/16113
15328         * valops.c (value_struct_elt_bitpos): New function
15329         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15330         object to 'None' if the field name is an empty string ("").
15331         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15332         attribute to look for a field when 'name' is 'None'.
15333         (get_field_type): New function
15334
15335 2014-01-13  Doug Evans  <dje@google.com>
15336
15337         PR symtab/16426
15338         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15339         (try_open_dwop_file): Ditto.
15340         * gdb_bfd.c: #include "vec.h".
15341         (bfdp): New typedef.
15342         (struct gdb_bfd_data): New member included_bfds.
15343         (gdb_bfd_unref): Unref all included bfds.
15344         (gdb_bfd_record_inclusion): New function.
15345         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15346
15347 2014-01-13  Tom Tromey  <tromey@redhat.com>
15348
15349         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15350
15351 2014-01-13  Tom Tromey  <tromey@redhat.com>
15352
15353         * defs.h (use_windows): Remove.
15354         * gdb.c (main): Update.
15355         * main.c (captured_main, gdb_main): Update.
15356         * main.h (struct captured_main_args) <use_windows>: Remove.
15357         * top.c (use_windows): Remove.
15358
15359 2014-01-13  Tom Tromey  <tromey@redhat.com>
15360
15361         * defs.h (deprecated_flush_hook): Remove.
15362
15363 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15364
15365         PR threads/16216
15366         * linux-thread-db.c (try_thread_db_load): Add parameter
15367         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15368         (try_thread_db_load_from_pdir_1): Move it there from here.
15369         (try_thread_db_load_from_sdir): Update caller.
15370         (try_thread_db_load_from_dir): Move it there from here.
15371
15372 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15373
15374         * regformats/regdat.sh: Always rewrite the register file.
15375
15376 2014-01-13  Pedro Alves  <palves@redhat.com>
15377
15378         * Makefile.in (CHECK_HEADERS): New variable.
15379         (check-headers:): New rule.
15380
15381 2014-01-13  Tom Tromey  <tromey@redhat.com>
15382
15383         * cli/cli-setshow.c (do_set_command): Update.
15384         * defs.h (deprecated_set_hook): Remove.
15385         * top.c (deprecated_set_hook): Remove.
15386
15387 2014-01-13  Pedro Alves  <palves@redhat.com>
15388
15389         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15390         the tracepoint if the PC is a pseudo-register.
15391
15392 2014-01-13  Tom Tromey  <tromey@redhat.com>
15393
15394         * defs.h (XCALLOC): Remove.
15395         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15396         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15397         * dwarf2loc.c (allocate_piece_closure): Likewise.
15398         * elfread.c (elf_symfile_segments): Likewise.
15399         (elf_symfile_segments): Likewise.
15400         * gdbtypes.c (copy_type_recursive): Likewise.
15401         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15402         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15403         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15404         XCALLOC.
15405         * mt-tdep.c (mt_gdbarch_init): Likewise.
15406         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15407         XCALLOC.
15408         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15409         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15410         * registry.c (registry_alloc_data): Likewise.
15411         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15412         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15413         * serial.c (serial_fdopen_ops): Likewise.
15414         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15415         XCALLOC.
15416         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15417         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15418         not XCALLOC.
15419
15420 2014-01-13  Tom Tromey  <tromey@redhat.com>
15421
15422         * defs.h (XMALLOC): Remove.
15423         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15424         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15425         * cli-out.c (struct ui_out *): Likewise.
15426         * cli/cli-dump.c (add_dump_command): Likewise.
15427         (add_dump_command): Likewise.
15428         * complaints.c (get_complaints): Likewise.
15429         (find_complaint): Likewise.
15430         * dwarf2-frame.c (execute_cfa_program): Likewise.
15431         * dwarf2read.c (abbrev_table_read_table): Likewise.
15432         * gdbarch.sh: Likewise.
15433         * gdbarch.c: Rebuild.
15434         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15435         * interps.c (interp_new): Likewise.
15436         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15437         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15438         * mi/mi-console.c (mi_console_file_new): Likewise.
15439         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15440         * mi/mi-out.c (mi_out_new): Likewise.
15441         * mi/mi-parse.c (mi_parse): Likewise.
15442         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15443         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15444         * observer.c (xalloc_observer_list_node): Likewise.
15445         * regcache.c (regcache_xmalloc_1): Likewise.
15446         * reggroups.c (reggroup_new): Likewise.
15447         (_initialize_reggroup): Likewise.
15448         * registry.c (register_data_with_cleanup): Likewise.
15449         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15450         * ser-base.c (serial_ttystate): Likewise.
15451         * ser-mingw.c (make_pipe_state): Likewise.
15452         * ser-pipe.c (pipe_open): Likewise.
15453         * serial.c (serial_open): Likewise.
15454         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15455         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15456         (tui_alloc_win_info): Likewise.
15457         (tui_add_content_elements): Likewise.
15458         * tui/tui-file.c (tui_file_new): Likewise.
15459         * tui/tui-out.c (tui_out_new): Likewise.
15460         * ui-file.c (mem_file_new): Likewise.
15461         * ui-out.c (push_level): Likewise.
15462         (make_cleanup_ui_out_end): Likewise.
15463         (append_header_to_list): Likewise.
15464         (ui_out_new): Likewise.
15465         * user-regs.c (user_reg_add_builtin): Likewise.
15466
15467 2014-01-13  Tom Tromey  <tromey@redhat.com>
15468
15469         * defs.h (XZALLOC): Remove.
15470         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15471         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15472         (get_ada_tasks_inferior_data): Likewise.
15473         * auto-load.c (get_auto_load_pspace_data): Likewise.
15474         * auxv.c (get_auxv_inferior_data): Likewise.
15475         * bfd-target.c (target_bfd_reopen): Likewise.
15476         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15477         (deprecated_insert_raw_breakpoint): Likewise.
15478         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15479         * corelow.c (core_open): Likewise.
15480         * darwin-nat.c (darwin_check_new_threads): Likewise.
15481         (darwin_attach_pid): Likewise.
15482         * dummy-frame.c (dummy_frame_push): Likewise.
15483         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15484         * dwarf2loc.c (allocate_piece_closure): Likewise.
15485         * elfread.c (elf_symfile_segments): Likewise.
15486         * eval.c (ptrmath_type_p): Likewise.
15487         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15488         * gdbtypes.c (alloc_type_arch): Likewise.
15489         (alloc_type_instance): Likewise.
15490         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15491         * inf-child.c (inf_child_can_use_agent): Likewise.
15492         * inflow.c (get_inflow_inferior_data): Likewise.
15493         * infrun.c (save_infcall_suspend_state): Likewise.
15494         * jit.c (jit_reader_load): Likewise.
15495         (get_jit_objfile_data): Likewise.
15496         (get_jit_program_space_data): Likewise.
15497         (jit_object_open_impl): Likewise.
15498         (jit_symtab_open_impl): Likewise.
15499         (jit_block_open_impl): Likewise.
15500         (jit_frame_sniffer): Likewise.
15501         * linux-fork.c (add_fork): Likewise.
15502         * maint.c (make_command_stats_cleanup): Likewise.
15503         * objfiles.c (get_objfile_pspace_data): Likewise.
15504         * opencl-lang.c (struct lval_closure): Likewise.
15505         * osdata.c (osdata_start_osdata): Likewise.
15506         * progspace.c (new_address_space): Likewise.
15507         (add_program_space): Likewise.
15508         * remote-sim.c (get_sim_inferior_data): Likewise.
15509         * sh-tdep.c (sh_gdbarch_init): Likewise.
15510         * skip.c (Ignore): Likewise.
15511         (skip_delete_command): Likewise.
15512         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15513         (library_list_start_library): Likewise.
15514         (solib_aix_current_sos): Likewise.
15515         * solib-darwin.c (get_darwin_info): Likewise.
15516         (darwin_current_sos): Likewise.
15517         * solib-dsbt.c (get_dsbt_info): Likewise.
15518         * solib-ia64-hpux.c (new_so_list): Likewise.
15519         (ia64_hpux_get_solib_linkage_addr): Likewise.
15520         * solib-spu.c (append_ocl_sos): Likewise.
15521         (spu_current_sos): Likewise.
15522         * solib-svr4.c (get_svr4_info): Likewise.
15523         (svr4_keep_data_in_core): Likewise.
15524         (library_list_start_library): Likewise.
15525         (svr4_default_sos): Likewise.
15526         (svr4_read_so_list): Likewise.
15527         * solib-target.c (library_list_start_library): Likewise.
15528         (solib_target_current_sos): Likewise.
15529         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15530         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15531         * symfile.c (default_symfile_segments): Likewise.
15532         * target-descriptions.c (tdesc_data_init): Likewise.
15533         (tdesc_create_reg): Likewise.
15534         (struct tdesc_type *): Likewise.
15535         (tdesc_create_vector): Likewise.
15536         (tdesc_set_struct_size): Likewise.
15537         (struct tdesc_type *): Likewise.
15538         (tdesc_free_feature): Likewise.
15539         (tdesc_create_feature): Likewise.
15540         * windows-nat.c (windows_add_thread): Likewise.
15541         (windows_make_so): Likewise.
15542         * xml-support.c (gdb_xml_body_text): Likewise.
15543         (gdb_xml_create_parser_and_cleanup): Likewise.
15544         (xml_process_xincludes): Likewise.
15545         * xml-syscall.c (allocate_syscalls_info): Likewise.
15546         (syscall_create_syscall_desc): Likewise.
15547
15548 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15549
15550         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15551         function, with code from i386_stap_parse_special_token.
15552         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15553         (i386_stap_parse_special_token): Move code to the two functions
15554         above; simplify it.
15555
15556 2014-01-09  Pedro Alves  <palves@redhat.com>
15557             Hui Zhu  <hui@codesourcery.com>
15558
15559         PR gdb/16101
15560         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15561         bp_err_string.  Don't mark the location shlib_disabled if the
15562         error thrown wasn't a generic or memory error.  Catch errors
15563         thrown while inserting breakpoints in overlayed code.  Output
15564         error message of software breakpoints.
15565         * remote.c (remote_insert_breakpoint): If this breakpoint has
15566         target-side commands but this stub doesn't support Z0 packets,
15567         throw NOT_SUPPORTED_ERROR error.
15568         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15569         * target.h (target_insert_breakpoint): Extend comment.
15570         (target_insert_hw_breakpoint): Add comment.
15571
15572 2014-01-08  Pedro Alves  <palves@redhat.com>
15573
15574         * remote.c (remote_add_thread): Add threads silently if starting
15575         up.
15576         (remote_notice_new_inferior): If in all-stop, and starting up,
15577         don't call notice_new_inferior.
15578         (get_current_thread): New function, factored out from ...
15579         (add_current_inferior_and_thread): ... this.  Adjust.
15580         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15581         found any thread, then select the remote's current thread as GDB's
15582         current thread too.
15583
15584 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15585
15586         * NEWS: Create a new section for the next release branch.
15587         Rename the section of the current branch, now that it has
15588         been cut.
15589
15590 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15591
15592         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15593         * version.in: Bump version to 7.7.50.DATE-cvs.
15594
15595 2014-01-08  Yao Qi  <yao@codesourcery.com>
15596
15597         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15598         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15599         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15600
15601 2014-01-08  Yao Qi  <yao@codesourcery.com>
15602
15603         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15604         return value of bfd_get_filename to symbol_file_add_from_bfd.
15605
15606 2014-01-08  Pierre Muller  <muller@sourceware.org>
15607
15608         Fix PR16201.
15609         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15610         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15611         to prim_record_mininal_symbol_and_info.
15612         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15613         in call to prim_record_minimal_symbol_and_info.
15614         (read_pe_exported_syms): Set index field of section_data.
15615
15616 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15617
15618         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15619         * features/aarch64.c: Regenerate.
15620
15621 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15622
15623         * target.c (return_null): Define.
15624         (update_current_target): Use it instead of return_zero for
15625         functions that return a pointer.
15626
15627 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15628
15629         * source.c (add_path): Fix check for duplicated paths in the previously
15630         included paths.
15631
15632 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15633
15634         * ada-lang.c: Remove duplicated include statements.
15635         * alphabsd-nat.c: Ditto.
15636         * amd64-darwin-tdep.c: Ditto.
15637         * amd64fbsd-nat.c: Ditto.
15638         * auto-load.c: Ditto.
15639         * ax-gdb.c: Ditto.
15640         * breakpoint.c: Ditto.
15641         * dbxread.c: Ditto.
15642         * fork-child.c: Ditto.
15643         * gdb_usleep.c: Ditto.
15644         * i386-darwin-tdep.c: Ditto.
15645         * i386fbsd-nat.c: Ditto.
15646         * infcmd.c: Ditto.
15647         * inferior.c: Ditto.
15648         * jv-lang.c: Ditto.
15649         * linux-nat.c: Ditto.
15650         * linux-tdep.c: Ditto.
15651         * m68kbsd-nat.c: Ditto.
15652         * m68klinux-nat.c: Ditto.
15653         * microblaze-tdep.c: Ditto.
15654         * mips-linux-tdep.c: Ditto.
15655         * mn10300-tdep.c: Ditto.
15656         * nto-tdep.c: Ditto.
15657         * opencl-lang.c: Ditto.
15658         * osdata.c: Ditto.
15659         * printcmd.c: Ditto.
15660         * regcache.c: Ditto.
15661         * remote-m32r-sdi.c: Ditto.
15662         * remote.c: Ditto.
15663         * symfile.c: Ditto.
15664         * symtab.c: Ditto.
15665         * tilegx-linux-nat.c: Ditto.
15666         * tilegx-tdep.c: Ditto.
15667         * tracepoint.c: Ditto.
15668         * valops.c: Ditto.
15669         * vaxbsd-nat.c: Ditto.
15670         * windows-nat.c: Ditto.
15671         * xtensa-tdep.c: Ditto.
15672
15673 2014-01-07  Yao Qi  <yao@codesourcery.com>
15674
15675         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15676
15677 2014-01-07  Yao Qi  <yao@codesourcery.com>
15678             Joel Brobecker  <brobecker@adacore.com>
15679
15680         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15681         (pdc_write_regs): Likewise.
15682         (fetch_regs_kernel_thread): Likewise.
15683         (store_regs_kernel_thread): Likewise.
15684
15685 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15686
15687         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15688         tagged type objects to their actual type.
15689
15690 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15691
15692         * ada-valprint.c (print_field_values): Add "language" parameter.
15693         Update calls to print_field_values and print_variant_part.
15694         Pass new parameter "language" in call to val_print instead
15695         of "current_language".  Replace call to ada_val_print by call
15696         to val_print.
15697         (print_variant_part): Add "language" parameter.
15698         (ada_val_print_struct_union): Update call to print_field_values.
15699
15700 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15701
15702         * ada-valprint.c (ui_memcpy): Delete.
15703         (ada_print_floating): Update documentation.  Add empty line
15704         between between function documentation and implementation.
15705         Delete variable "buffer".  Use ui_file_xstrdup in place of
15706         ui_file_put.  Minor adjustments following this change.
15707
15708 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15709
15710         * ada-valprint.c (ada_val_print_string): New function,
15711         extracted from ada_val_print_array.
15712         (ada_val_print_array): Replace extracted code by call
15713         to ada_val_print_string followed by a return.  Move
15714         "else" branch to the function's top block.
15715
15716 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15717
15718         * ada-valprint.c (ada_val_print_array): Move implementation
15719         down.  Rename parameter "offset" and "val" into "offset_aligned"
15720         and "original_value" respectively.  Add parameter "offset".
15721
15722 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15723
15724         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15725         re-organizing the code. Change the "???" message printed
15726         when target type is a TYPE_CODE_UNDEF into
15727         "<ref to undefined type>".
15728
15729 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15730
15731         * ada-valprint.c (print_record): Delete, implementation inlined...
15732         (ada_val_print_struct_union): ... here.  Remove call to
15733         ada_check_typedef in inlined implementation.
15734
15735 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15736
15737         * ada-valprint.c (ada_val_print_gnat_array): New function,
15738         extracted from ada_val_print_1;
15739         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15740         (ada_val_print_flt, ada_val_print_struct_union)
15741         (ada_val_print_ref): Likewise.
15742         (ada_val_print_1): Delete variables i and elttype.
15743         Replace extracted-out code by call to corresponding
15744         new functions.
15745
15746 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15747
15748         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15749
15750 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15751
15752         * ada-valprint.c (ada_val_print_1): Replace calls to
15753         ada_val_print_1 by calls to val_print.
15754
15755 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15756
15757         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15758         Update calls to self accordingly.  Replace calls to c_val_print
15759         by calls to val_print.
15760
15761 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15762
15763         * ada-valprint.c (print_record): Delete declaration.
15764         (adjust_type_signedness, ada_val_print_1): Likewise.
15765         (ada_val_print): Move function implementation down.
15766         (print_variant_part, print_field_values, print_record):
15767         Move function implementation up.
15768
15769 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15770
15771         * python/py-type.c (typy_get_name): New function.
15772         (type_object_getset): Add entry for attribute "name".
15773         * NEWS: Add entry mentioning this new attribute.
15774
15775 2014-01-07  Yao Qi  <yao@codesourcery.com>
15776
15777         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15778         statement.
15779
15780 2014-01-07  Yao Qi  <yao@codesourcery.com>
15781
15782         * gnu-nat.c (info_port_rights): Add qualifier const to
15783         argument args.
15784
15785 2014-01-07  Yao Qi  <yao@codesourcery.com>
15786
15787         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15788
15789 2014-01-07  Yao Qi  <yao@codesourcery.com>
15790
15791         * gnu-nat.c (make_inf) Update declaration.
15792         (make_inf): Make it static.
15793         (inf_set_traced): Likewise.
15794         (inf_port_to_thread, inf_task_died_status): Likewise.
15795
15796 2014-01-07  Yao Qi  <yao@codesourcery.com>
15797
15798         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15799
15800 2014-01-07  Yao Qi  <yao@codesourcery.com>
15801
15802         * gnu-nat.c (_initialize_gnu_nat): Declare.
15803
15804 2014-01-07  Yao Qi  <yao@codesourcery.com>
15805
15806         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15807         'enum bfd_endian'.
15808         (struct gdbarch_info) <byte_order>: Change type to
15809         'enum bfd_endian'.
15810         <byte_order_for_code>: Likewise.
15811         * gdbarch.c, gdbarch.h: Regenerated.
15812
15813 2014-01-06  Sasha Smundak  <asmundak@google.com>
15814
15815         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15816
15817 2014-01-06  Tom Tromey  <tromey@redhat.com>
15818
15819         * doublest.c (convert_doublest_to_floatformat): Use const, not
15820         CONST.
15821         * somread.c (som_symtab_read): Likewise.
15822
15823 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15824
15825         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15826         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15827         (gdb_bfd_fopen): Ditto.
15828         (gdb_bfd_openr): Ditto.
15829         (gdb_bfd_openw): Ditto.
15830         (gdb_bfd_openr_iovec): Ditto.
15831         (gdb_bfd_fdopenr): Ditto.
15832         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15833         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15834         with xstrdup.
15835         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15836         with xstrdup.
15837         * symfile-mem.c (symbol_file_add_from_memory): Removed
15838         gdb_bfd_stash_filename.
15839
15840 2014-01-03  Doug Evans  <dje@google.com>
15841
15842         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15843         output.
15844
15845 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15846
15847         Update year range in copyright notice of all files.
15848
15849 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15850
15851         * top.c (print_gdb_version): Set copyright year to 2014.
15852
15853 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15854
15855         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15856
15857 For older changes see ChangeLog-2013.
15858 \f
15859 Local Variables:
15860 mode: change-log
15861 left-margin: 8
15862 fill-column: 74
15863 version-control: never
15864 coding: utf-8
15865 End: