]> Git Repo - binutils.git/blob - gdb/ChangeLog
Reindent code (resolve_dynamic_type_internal).
[binutils.git] / gdb / ChangeLog
1 2014-11-24  Jan Kratochvil  <[email protected]>
2
3         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
4
5 2014-11-24  Samuel Thibault  <[email protected]>
6
7         Pushed by Joel Brobecker  <[email protected]>
8         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
9         elements pi_len by the size of the elements before calling
10         vm_deallocate.
11         (inf_validate_task_sc): Likewise, and properly deallocate the
12         noise array.
13
14 2014-11-23  Doug Evans  <[email protected]>
15
16         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
17         number and name if present.  All callers updated.
18         (dump_fn_fieldlists): Fix indentation of args.
19
20 2014-11-23  Patrick Palka  <[email protected]>
21
22         * MAINTAINERS (Write After Approval): Add myself.
23
24 2014-11-23  Joel Brobecker  <[email protected]>
25
26         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
27         to a bp_call_dummy breakpoint type.
28
29 2014-11-23  Patrick Palka  <[email protected]>
30
31         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
32         registering the signal handler.
33
34 2014-11-23  Patrick Palka  <[email protected]>
35
36         * event-top.h (call_stdin_event_handler_again_p): Declare.
37         * event-top.c (call_stdin_event_handler_again_p): Define.
38         (stdin_event_handler): Use it.
39         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
40         handler again if there is pending input following a
41         start sequence.
42
43 2014-11-23  Patrick Palka  <[email protected]>
44
45         Pushed by Joel Brobecker  <[email protected]>
46         * linux-fork.c (checkpoint_command): Print index of new
47         checkpoint in response message.
48
49 2014-11-23  Yao Qi  <[email protected]>
50
51         * valprint.c (read_string): Move local variables 'found_nul',
52         'chunksize' and 'limit' to inner scope.  Update comments.
53
54 2014-11-22  Doug Evans  <[email protected]>
55
56         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
57         function comment.
58         (search_symbols): Fix comments and whitespace.
59
60 2014-11-22  Doug Evans  <[email protected]>
61
62         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
63
64 2014-11-21  Doug Evans  <[email protected]>
65
66         * psymtab.c (psymtab_search_name): Fix whitespace.
67
68 2014-11-21  Yao Qi  <[email protected]>
69
70         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
71         errno.
72         * gnulib/import/Makefile.am: Re-generated.
73         * gnulib/import/Makefile.in: Likewise.
74         * gnulib/import/m4/gnulib-cache.m4: Likewise.
75
76 2014-11-21  Yao Qi  <[email protected]>
77
78         * gdb_wchar.h: Include wchar.h and wctype.h.
79         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
80         include wchar.h and wctype.h.
81         Don't check HAVE_WCHAR_H.
82
83 2014-11-21  Yao Qi  <[email protected]>
84
85         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
86         and wctype-h.
87         * gnulib/import/Makefile.am: Re-generated.
88         * gnulib/import/Makefile.in: Likewise.
89         * gnulib/import/m4/gnulib-cache.m4: Likewise.
90
91 2014-11-21  Yao Qi  <[email protected]>
92
93         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
94         memchr.
95         * gnulib/import/Makefile.am: Re-generated.
96         * gnulib/import/Makefile.in: Likewise.
97         * gnulib/import/m4/gnulib-cache.m4: Likewise.
98
99 2014-11-21  Yao Qi  <[email protected]>
100
101         * common/common-defs.h: Include alloca.h
102         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
103         * configure: Re-generated.
104         * defs.h: Remove code handling alloca.
105         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
106         or not.
107
108 2014-11-21  Yao Qi  <[email protected]>
109
110         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
111         alloca.
112         * gnulib/import/Makefile.am: Re-generated.
113         * gnulib/import/Makefile.in: Likewise..
114         * gnulib/import/m4/gnulib-cache.m4: Likewise.
115
116 2014-11-21  Yao Qi  <[email protected]>
117
118         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
119         alphabetical order.
120
121 2014-11-21  Joel Brobecker  <[email protected]>
122
123         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
124         flag_unsigned if HIGH_BOUND is constant and negative.
125
126 2014-11-20  Sergio Durigan Junior  <[email protected]>
127
128         PR breakpoints/10737
129         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
130         modifier from "struct gdbarch" when compiling without Expat (XML)
131         support.
132         (get_syscall_by_number): Likewise.
133         (get_syscall_by_name): Likewise.
134         (get_syscall_names): Likewise.
135
136 2014-11-20  Sergio Durigan Junior  <[email protected]>
137
138         PR breakpoints/10737
139         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
140         set_xml_syscall_file_name to provide gdbarch.
141         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
142         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
143         * breakpoint.c (print_it_catch_syscall): Adjust call to
144         get_syscall_by_number to provide gdbarch.
145         (print_one_catch_syscall): Likewise.
146         (print_mention_catch_syscall): Likewise.
147         (print_recreate_catch_syscall): Likewise.
148         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
149         and get_syscall_by_name to provide gdbarch.
150         (catch_syscall_completer): Adjust call to get_syscall_names to
151         provide gdbarch.
152         * gdbarch.c: Regenerate.
153         * gdbarch.h: Likewise.
154         * gdbarch.sh: Forward declare "struct syscalls_info".
155         (xml_syscall_file): New variable.
156         (syscalls_info): Likewise.
157         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
158         set_xml_syscall_file_name to provide gdbarch.
159         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
160         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
161         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
162         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
163         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
164         * xml-syscall.c: Include gdbarch.h.
165         (set_xml_syscall_file_name): Accept gdbarch parameter.
166         (get_syscall_by_number): Likewise.
167         (get_syscall_by_name): Likewise.
168         (get_syscall_names): Likewise.
169         (my_gdb_datadir): Delete global variable.
170         (struct syscalls_info) <my_gdb_datadir>: New variable.
171         (struct syscalls_info) <sysinfo>: Rename variable to
172         "syscalls_info".
173         (sysinfo): Delete global variable.
174         (have_initialized_sysinfo): Likewise.
175         (xml_syscall_file): Likewise.
176         (sysinfo_free_syscalls_desc): Rename to...
177         (syscalls_info_free_syscalls_desc): ... this.
178         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
179         code to the new layout of "struct syscalls_info".
180         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
181         "syscalls_info".
182         (syscall_create_syscall_desc): Likewise.
183         (syscall_start_syscall): Likewise.
184         (syscall_parse_xml): Likewise.
185         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
186         (init_sysinfo): Rename to...
187         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
188         Adjust function to deal with gdbarch.
189         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
190         gdbarch as a parameter.  Adjust code.
191         (xml_get_syscall_name): Likewise.
192         (xml_list_of_syscalls): Likewise.
193         (set_xml_syscall_file_name): Accept gdbarch as parameter.
194         (get_syscall_by_number): Likewise.
195         (get_syscall_by_name): Likewise.
196         (get_syscall_names): Likewise.
197         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
198         (get_syscall_by_number): Likewise.
199         (get_syscall_by_name): Likewise.
200         (get_syscall_names): Likewise.
201
202 2014-11-20  Doug Evans  <[email protected]>
203
204         Split struct symtab into two: struct symtab and compunit_symtab.
205         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
206         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
207         to "struct compunit_symtab *".  All callers updated.
208         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
209         "struct symtab *" argument to "struct compunit_symtab *".
210         All callers updated.
211         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
212         result to "struct compunit_symtab *".  All callers updated.
213         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
214         Change result to "struct compunit_symtab *".  All callers updated.
215         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
216         hange type to "struct compunit_symtab *".  All uses updated.
217         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
218         Change type to "struct compunit_symtab *".  All uses updated.
219         * buildsym.c (struct buildsym_compunit): New struct.
220         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
221         (buildsym_compunit): New static global.
222         (finish_block_internal): Update to fetch objfile from
223         buildsym_compunit.
224         (make_blockvector): Delete objfile argument.
225         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
226         debugformat, producer.
227         (start_buildsym_compunit): New function.
228         (free_buildsym_compunit): Renamed from free_subfiles_list.
229         All callers updated.
230         (patch_subfile_names): Rewrite to use buildsym_compunit.
231         (get_compunit_symtab): New function.
232         (get_macro_table): Delete argument comp_dir.  All callers updated.
233         (start_symtab): Change result to "struct compunit_symtab *".
234         All callers updated.  Create the subfile of the main source file.
235         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
236         (reset_symtab_globals): Update.
237         (end_symtab_get_static_block): Update to use buildsym_compunit.
238         (end_symtab_without_blockvector): Rewrite.
239         (end_symtab_with_blockvector): Change result to
240         "struct compunit_symtab *".  All callers updated.
241         Update to use buildsym_compunit.  Don't set symtab->dirname,
242         instead set it in the compunit.
243         Explicitly make sure main symtab is first in its list.
244         Set debugformat, producer, blockvector, block_line_section, and
245         macrotable in the compunit.
246         (end_symtab_from_static_block): Change result to
247         "struct compunit_symtab *".  All callers updated.
248         (end_symtab, end_expandable_symtab): Ditto.
249         (set_missing_symtab): Change symtab argument to
250         "struct compunit_symtab *".  All callers updated.
251         (augment_type_symtab): Ditto.
252         (record_debugformat): Update to use buildsym_compunit.
253         (record_producer): Update to use buildsym_compunit.
254         * buildsym.h (struct subfile) <dirname>: Delete.
255         <producer, debugformat>: Delete.
256         <buildsym_compunit>: New member.
257         (get_compunit_symtab): Declare.
258         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
259         from primary_symtab.  Change type to "struct compunit_symtab *".
260         All uses updated.
261         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
262         All callers updated.
263         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
264         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
265         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
266         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
267         All callers updated.
268         (dw2_find_last_source_symtab): Ditto.
269         (dw2_lookup_symbol): Ditto.
270         (recursively_find_pc_sect_compunit_symtab): Renamed from
271         recursively_find_pc_sect_symtab.  Change result to
272         "struct compunit_symtab *".  All callers updated.
273         (dw2_find_pc_sect_compunit_symtab): Renamed from
274         dw2_find_pc_sect_symtab.  Change result to
275         "struct compunit_symtab *".  All callers updated.
276         (get_compunit_symtab): Renamed from get_symtab.  Change result to
277         "struct compunit_symtab *".  All callers updated.
278         (recursively_compute_inclusions): Change type of immediate_parent
279         argument to "struct compunit_symtab *".  All callers updated.
280         (compute_compunit_symtab_includes): Renamed from
281         compute_symtab_includes.  All callers updated.  Rewrite to compute
282         includes of compunit_symtabs and not symtabs.
283         (process_full_comp_unit): Update to work with struct compunit_symtab.
284         (process_full_type_unit): Ditto.
285         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
286         (dwarf_decode_lines): Remove special case handling of main subfile.
287         (macro_start_file): Delete argument comp_dir.  All callers updated.
288         (dwarf_decode_macro_bytes): Ditto.
289         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
290         use struct compunit_symtab.
291         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
292         * jit.c (finalize_symtab): Build compunit_symtab.
293         * jv-lang.c (get_java_class_symtab): Change result to
294         "struct compunit_symtab *".  All callers updated.
295         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
296         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
297         comp_dir.  Change type to "struct compunit_symtab *".
298         All uses updated.
299         (new_macro_table): Change comp_dir argument to cust,
300         "struct compunit_symtab *".  All callers updated.
301         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
302         nr_primary_symtabs.  All uses updated.
303         (count_symtabs_and_blocks): Update to handle compunits.
304         (report_command_stats): Update output, "primary symtabs" renamed to
305         "compunits".
306         * mdebugread.c (new_symtab): Change result to
307         "struct compunit_symtab *".  All callers updated.
308         (parse_procedure): Change type of search_symtab argument to
309         "struct compunit_symtab *".  All callers updated.
310         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
311         separate loop.
312         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
313         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
314         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
315         All uses updated.
316         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
317         All uses updated.
318         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
319         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
320         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
321         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
322         * psymtab.c (psymtab_to_symtab): Change result type to
323         "struct compunit_symtab *".  All callers updated.
324         (find_pc_sect_compunit_symtab_from_partial): Renamed from
325         find_pc_sect_symtab_from_partial.  Change result type to
326         "struct compunit_symtab *".  All callers updated.
327         (lookup_symbol_aux_psymtabs): Change result type to
328         "struct compunit_symtab *".  All callers updated.
329         (find_last_source_symtab_from_partial): Ditto.
330         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
331         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
332         and macro_table from compunit.
333         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
334         type to "struct compunit_symtab *".  All callers updated.
335         (debug_qf_lookup_symbol): Ditto.
336         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
337         debug_qf_find_pc_sect_symtab, change result type to
338         "struct compunit_symtab *".  All callers updated.
339         * symfile.c (allocate_symtab): Delete objfile argument.
340         New argument cust.
341         (allocate_compunit_symtab): New function.
342         (add_compunit_symtab_to_objfile): New function.
343         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
344         Change result type to "struct compunit_symtab *".  All uses updated.
345         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
346         Change result type to "struct compunit_symtab *".  All uses updated.
347         * symmisc.c (print_objfile_statistics): Compute blockvector count in
348         separate loop.
349         (dump_symtab_1): Update test for primary source symtab.
350         (maintenance_info_symtabs): Update to handle compunit symtabs.
351         (maintenance_check_symtabs): Ditto.
352         * symtab.c (set_primary_symtab): Delete.
353         (compunit_primary_filetab): New function.
354         (compunit_language): New function.
355         (iterate_over_some_symtabs): Change type of arguments "first",
356         "after_last" to "struct compunit_symtab *".  All callers updated.
357         Update to loop over symtabs in each compunit.
358         (error_in_psymtab_expansion): Rename symtab argument to cust,
359         and change type to "struct compunit_symtab *".  All callers updated.
360         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
361         Change result type to "struct compunit_symtab *".  All callers updated.
362         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
363         Change result type to "struct compunit_symtab *".  All callers updated.
364         (find_pc_sect_line): Only loop over symtabs within selected compunit
365         instead of all symtabs in the objfile.
366         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
367         <compunit_symtab> New member.
368         <block_line_section>: Moved to compunit_symtab.
369         <locations_valid>: Ditto.
370         <epilogue_unwind_valid>: Ditto.
371         <macro_table>: Ditto.
372         <dirname>: Ditto.
373         <debugformat>: Ditto.
374         <producer>: Ditto.
375         <objfile>: Ditto.
376         <call_site_htab>: Ditto.
377         <includes>: Ditto.
378         <user>: Ditto.
379         <primary>: Delete
380         (SYMTAB_COMPUNIT): New macro.
381         (SYMTAB_BLOCKVECTOR): Update definition.
382         (SYMTAB_OBJFILE): Update definition.
383         (SYMTAB_DIRNAME): Update definition.
384         (struct compunit_symtab): New type.  Common members among all source
385         symtabs within a compilation unit moved here.  All uses updated.
386         (COMPUNIT_OBJFILE): New macro.
387         (COMPUNIT_FILETABS): New macro.
388         (COMPUNIT_DEBUGFORMAT): New macro.
389         (COMPUNIT_PRODUCER): New macro.
390         (COMPUNIT_DIRNAME): New macro.
391         (COMPUNIT_BLOCKVECTOR): New macro.
392         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
393         (COMPUNIT_LOCATIONS_VALID): New macro.
394         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
395         (COMPUNIT_CALL_SITE_HTAB): New macro.
396         (COMPUNIT_MACRO_TABLE): New macro.
397         (ALL_COMPUNIT_FILETABS): New macro.
398         (compunit_symtab_ptr): New typedef.
399         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
400
401 2014-11-20  Joel Brobecker  <[email protected]>
402
403         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
404         if the TYPE_CODE of range_type's base type does not match
405         the TYPE_CODE of encoding_type's base type.
406
407 2014-11-19  Joel Brobecker  <[email protected]>
408
409         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
410         it starts with '<'.
411
412 2014-11-19  Joel Brobecker  <[email protected]>
413
414         * ada-lang.c (ada_is_redundant_range_encoding): New function.
415         (ada_is_redundant_index_type_desc): New function.
416         (to_fixed_array_type): Ignore parallel XA type if redundant.
417
418 2014-11-19  Joel Brobecker  <[email protected]>
419
420         * ada-lang.c (constrained_packed_array_type): Set the length
421         of the return array as if both bounds where zero if that
422         returned array's index type is dynamic.
423
424 2014-11-19  Yao Qi  <[email protected]>
425
426         * config/i386/go32.mh (CC): Remove.
427
428 2014-11-18  Doug Evans  <[email protected]>
429
430         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
431         updated.
432
433 2014-11-18  Doug Evans  <[email protected]>
434
435         * buildsym.c (buildsym_objfile): New static global.
436         (buildsym_comp_dir): New static global.
437         (finish_block_internal): Delete arg objfile.  All callers updated.
438         (finish_block): Delete arg objfile.  All callers updated.
439         (start_subfile): Delete arg dirname.  All callers updated.
440         (patch_subfile_names): Update buildsym_comp_dir.
441         (get_macro_table): Delete arg objfile.  All callers updated.
442         (start_symtab): New arg objfile.  All callers updated.
443         Rename arg dirname to comp_dir.
444         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
445         (end_symtab_get_static_block): Delete arg objfile.  All callers
446         updated.
447         (end_symtab_without_blockvector): Ditto.
448         (end_symtab_with_blockvector): Ditto.
449         (end_symtab_from_static_block): Ditto.
450         (end_symtab): Ditto.
451         (end_expandable_symtab): Ditto.
452         (augment_type_symtab): Ditto.
453         * coffread.c (coff_start_symtab): New arg objfile.  All callers
454         updated.
455
456 2014-11-18  Doug Evans  <[email protected]>
457
458         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
459         updated.
460
461 2014-11-18  Doug Evans  <[email protected]>
462
463         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
464         symtab.dirname updated to use it.
465
466 2014-11-18  Doug Evans  <[email protected]>
467
468         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
469         symtab.objfile updated to use it.
470
471 2014-11-18  Doug Evans  <[email protected]>
472
473         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
474
475 2014-11-18  Doug Evans  <[email protected]>
476
477         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
478         SYMBOL_OBJFILE.
479         * findvar.c (default_read_var_value): Ditto.
480         * jv-lang.c (add_class_symtab_symbol): Ditto.
481         * parse.c (operator_check_standard): Ditto.
482         * printcmd.c (address_info): Ditto.
483         * symtab.c (fixup_symbol_section): Ditto.
484         (skip_prologue_sal): Ditto.
485         * tracepoint.c (scope_info): Ditto.
486         * valops.c (find_function_in_inferior): Ditto.
487         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
488         * python/py-symbol.c (set_symbol): Ditto.
489
490 2014-11-18  Doug Evans  <[email protected]>
491
492         * buildsym.c (main_subfile): New static global.
493         (free_subfiles_list): New function.
494         (start_symtab): Set main_subfile.
495         (restart_symtab): Replace init of subfiles, current_subfile with
496         call to free_subfiles_list.
497         (watch_main_source_file_lossage): Use main_subfile.
498         (reset_symtab_globals): Replace init of current_subfile with call
499         to free_subfiles_list.
500         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
501         functions, split out from ...
502         (end_symtab_from_static_block): ... here.  Rewrite to call them.
503
504 2014-11-18  Doug Evans  <[email protected]>
505
506         The result of symtab expansion is always a primary symtab.
507         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
508         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
509         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
510         (psymtab_to_symtab): Add comment and assert.
511         (map_matching_symbols_psymtab): Remove unnecessary test for
512         non-primary symtab.
513
514 2014-11-15  Doug Evans  <[email protected]>
515
516         PR symtab/17559
517         * symtab.c (find_pc_line_symtab): New function.
518         * symtab.h (find_pc_line_symtab): Declare.
519         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
520         find_pc_symtab.
521         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
522         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
523         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
524         * tui/tui-win.c (make_visible_with_new_height): Ditto.
525         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
526         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
527
528 2014-11-15  Doug Evans  <[email protected]>
529
530         * symtab.c (expand_symtab_containing_pc): Renamed from
531         find_pc_sect_symtab_via_partial.  All callers updated.
532
533 2014-11-15  Yao Qi  <[email protected]>
534
535         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
536
537 2014-11-14  Joel Brobecker  <[email protected]>
538
539         * common/common-defs.h: Move <stdarg.h> #include ahead of
540         <stdio.h> #include.
541
542 2014-11-14  Pedro Alves  <[email protected]>
543
544         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
545         [!PHONY_ICONV] (gdb_iconv): New function.
546         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
547
548 2014-11-13  Doug Evans  <[email protected]>
549
550         PR symtab/17591
551         * dwarf2read.c (find_slot_in_mapped_hash): Handle
552         "(anonymous namespace)".
553
554 2014-11-13  Doug Evans  <[email protected]>
555
556         * dwarf2read.c (update_enumeration_type_from_children): Avoid
557         infinite loop.
558
559 2014-11-13  Jan Kratochvil  <[email protected]>
560
561         * NEWS (maint set target-async): Fix typo.
562
563 2014-11-12  Pedro Alves  <[email protected]>
564
565         * infrun.c (enum infwait_states, infwait_state): Delete.
566
567 2014-11-12  Pedro Alves  <[email protected]>
568
569         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
570         Rewrite stepping over a permanent breakpoint.
571         (thread_still_needs_step_over, proceed): Don't set
572         stepping_over_breakpoint for permanent breakpoints.
573         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
574         single-step breakpoints out of the target on hardware step
575         targets.
576         (process_event_stop_test): If stepping a permanent breakpoint
577         doesn't hit the step-resume breakpoint, delete the step-resume
578         breakpoint.
579         (switch_back_to_stepped_thread): Also check if the stepped thread
580         has advanced already on hardware step targets.
581         (currently_stepping): Return true if the thread stepped a
582         breakpoint.
583
584 2014-11-12  Pedro Alves  <[email protected]>
585
586         Mark locations as permanent, not the whole breakpoint.
587         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
588         (mark_breakpoints_out): Don't mark permanent breakpoints as
589         uninserted.
590         (breakpoint_init_inferior): Use mark_breakpoints_out.
591         (breakpoint_here_p): Adjust.
592         (bpstat_stop_status, describe_other_breakpoints): Remove handling
593         of permanent breakpoints.
594         (make_breakpoint_permanent): Mark each location as permanent,
595         instead of marking the breakpoint.
596         (add_location_to_breakpoint): If the location is permanent, mark
597         it as such, and as inserted.
598         (init_breakpoint_sal): Don't make the breakpoint permanent here.
599         (bp_location_compare, update_global_location_list): Adjust.
600         (update_breakpoint_locations): Don't make the breakpoint permanent
601         here.
602         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
603         breakpoints.
604         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
605         (struct bp_location) <permanent>: New field.
606         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
607         reference to bp_permanent.
608
609 2014-11-12  Pedro Alves  <[email protected]>
610
611         * arch-utils.c (default_skip_permanent_breakpoint): New function.
612         * arch-utils.h (default_skip_permanent_breakpoint): New
613         declaration.
614         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
615         Install default_skip_permanent_breakpoint as default method.
616         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
617         (i386_gdbarch_init): Don't install it.
618         * infrun.c (resume): Assume there's always a
619         gdbarch_skip_permanent_breakpoint implementation.
620         * gdbarch.h, gdbarch.c: Regenerate.
621
622 2014-11-11  Daniel Colascione  <[email protected]>
623
624         Warn about cross-PID-namespace debugging.
625         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
626         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
627         * linux-thread-db.c (check_pid_namespace_match): New function.
628         (thread_db_inferior_created): Call it.
629
630 2014-11-10  Doug Evans  <[email protected]>
631
632         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
633         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
634
635 2014-11-10  Doug Evans  <[email protected]>
636
637         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
638
639 2014-11-10  Doug Evans  <[email protected]>
640
641         PR symtab/17564
642         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
643         (lookup_static_symbol): Move definition to new location and rewrite.
644         (lookup_symbol_in_objfile): New function.
645         (lookup_symbol_global_iterator_cb): Call it.
646
647 2014-11-10  Ulrich Weigand  <[email protected]>
648
649         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
650
651 2014-11-07  Pedro Alves  <[email protected]>
652
653         * infrun.c (process_event_stop_test) <subroutine check>: Don't
654         check if we did a "nexti" inside a prologue.
655         * symtab.c (in_prologue): Delete function.
656         * symtab.h (in_prologue): Delete declaration.
657
658 2014-11-06  Doug Evans  <[email protected]>
659
660         * symtab.h (lookup_global_symbol): Improve function comment.
661
662 2014-11-06  Doug Evans  <[email protected]>
663
664         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
665         All callers updated.
666         * symtab.h (lookup_global_symbol): Update decl.
667         (lookup_static_symbol): Move decl to better location.
668
669 2014-11-06  Doug Evans  <[email protected]>
670
671         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
672
673 2014-11-06  Doug Evans  <[email protected]>
674
675         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
676         All callers updated.
677         (lookup_symbol_in_all_objfiles): Renamed from
678         lookup_symbol_aux_symtabs.  All callers updated.
679         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
680         All callers updated.
681         (lookup_symbol_in_objfile_symtabs): Renamed from
682         lookup_symbol_aux_objfile.  All callers updated.
683
684 2014-11-06  Doug Evans  <[email protected]>
685
686         * symtab.c (lookup_symbol_in_block): Renamed from
687         lookup_symbol_aux_block.  All callers updated.
688
689 2014-11-06  Doug Evans  <[email protected]>
690
691         * symtab.c (lookup_static_symbol): Renamed from
692         lookup_static_symbol_aux.  All callers updated.
693         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
694         All callers updated.
695
696 2014-11-06  Doug Evans  <[email protected]>
697
698         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
699         * block.c (block_lookup_symbol): Use it.
700         * cp-support.c (make_symbol_overload_list_block): Use it.
701         * symtab.c (iterate_over_symbols): Use it.
702
703 2014-11-06  Doug Evans  <[email protected]>
704
705         * symtab.c (lookup_block_symbol): Moved to ...
706         * block.c (block_lookup_symbol):  ... here and renamed.
707         All callers updated.
708         * block.h (block_lookup_symbol): Declare.
709         * symtab.h (lookup_block_symbol): Delete.
710
711 2014-11-06  Doug Evans  <[email protected]>
712
713         * ada-lang.c (ada_make_symbol_completion_list): Use
714         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
715         * symtab.c (lookup_objfile_from_block): Ditto.
716
717 2014-11-06  Doug Evans  <[email protected]>
718
719         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
720         TYPE_CODE_STRUCT.
721
722 2014-11-06  Doug Evans  <[email protected]>
723
724         * objfiles.c (get_objfile_arch): Constify.
725         * objfiles.h (get_objfile_arch): Update prototype.
726         * solib.c (solib_global_lookup): Fetch arch from objfile,
727         not target_gdbarch.
728
729 2014-11-06  Sandra Loosemore  <[email protected]>
730
731         * nios2-tdep.c (wild_insn): Delete.
732         (profiler_insn, irqentry_insn): Delete.
733         (nios2_match_sequence): Delete.
734         (nios2_analyze_prologue): Update comments.  Remove matching
735         of obsolete profiler_insn and irqentry_insn sequences.
736
737 2014-11-05  Alan Modra  <[email protected]>
738
739         * charset.c (convert_between_encodings): Shrink obstack using
740         obstack_blank_fast.
741         * minsyms.c (install_minimal_symbols): Likewise.
742         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
743         to char* before doing pointer arithmetic.
744
745 2014-11-04  Simon Marchi  <[email protected]>
746
747         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
748
749 2014-11-04  Pedro Alves  <[email protected]>
750
751         * breakpoint.c (breakpoint_thread_match): Delete function.
752         * breakpoint.h (breakpoint_thread_match): Delete declaration.
753
754 2014-11-03  Siva Chandra Reddy  <[email protected]>
755
756         PR c++/17494
757         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
758         the method args also under EVAL_SKIP when evaluating method
759         calls under EVAL_SKIP.
760
761 2014-11-02  Victor Kamensky  <[email protected]>
762
763         * dwarf2loc.c (read_pieced_value): Do big endian
764         processing only if gdb_regnum is not -1.
765         (write_pieced_value): Ditto.
766
767 2014-11-02  Victor Kamensky  <[email protected]>
768
769         * arm-linux-tdep.c (arm_linux_init_abi): Use
770         info.byte_order_for_code to choose endianity of breakpoint
771         instructions snippets.
772
773 2014-11-02  Victor Kamensky  <[email protected]>
774
775         * arm-tdep.c (extract_arm_insn): Use
776         gdbarch_byte_order_for_code to read arm instruction.
777
778 2014-11-02  Doug Evans  <[email protected]>
779
780         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
781
782 2014-11-02  Doug Evans  <[email protected]>
783
784         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
785         main_subfile before returning.
786
787 2014-10-31  Doug Evans  <[email protected]>
788
789         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
790         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
791
792 2014-10-31  Doug Evans  <[email protected]>
793
794         * valops.c (value_cast_pointers): Fix whitespace.
795         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
796         Ditto.
797
798 2014-10-30  Doug Evans  <[email protected]>
799
800         * NEWS: Mention ability add attributes to gdb.Objfile and
801         gdb.Progspace objects.
802         * python/py-objfile.c (objfile_object): New member dict.
803         (objfpy_dealloc): Py_XDECREF dict.
804         (objfpy_initialize): Initialize dict.
805         (objfile_getset): Add __dict__.
806         (objfile_object_type): Set tp_dictoffset member.
807         * python/py-progspace.c (progspace_object): New member dict.
808         (pspy_dealloc): Py_XDECREF dict.
809         (pspy_initialize): Initialize dict.
810         (pspace_getset): Add __dict__.
811         (pspace_object_type): Set tp_dictoffset member.
812
813 2014-10-30  Yao Qi  <[email protected]>
814
815         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
816         replace '\\' with '\\\\'.
817
818 2014-10-29  Joel Brobecker  <[email protected]>
819
820         GDB 7.8.1 released.
821
822 2014-10-29  Pedro Alves  <[email protected]>
823
824         PR gdb/17408
825         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
826         instead of assuming a thread with a stepping range is always
827         stepping.
828
829 2014-10-29  Pedro Alves  <[email protected]>
830
831         PR python/17372
832         * event-top.c (change_line_handler): Call
833         gdb_rl_callback_handler_remove instead of
834         rl_callback_handler_remove.
835         (callback_handler_installed): New global.
836         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
837         (gdb_rl_callback_handler_reinstall): New functions.
838         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
839         gdb_rl_callback_handler_install instead of
840         rl_callback_handler_remove and rl_callback_handler_install.
841         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
842         instead of rl_callback_handler_remove.
843         * event-top.h (gdb_rl_callback_handler_remove)
844         (gdb_rl_callback_handler_install)
845         (gdb_rl_callback_handler_reinstall): New declarations.
846         * infrun.c (reinstall_readline_callback_handler_cleanup): New
847         cleanup function.
848         (fetch_inferior_event): Install it.
849         * top.c (gdb_readline_wrapper_line) Call
850         gdb_rl_callback_handler_remove instead of
851         rl_callback_handler_remove.
852         (gdb_readline_wrapper_cleanup): Don't call
853         rl_callback_handler_install.
854
855 2014-10-29  Pedro Alves  <[email protected]>
856
857         * event-top.c (command_line_handler): Clear the first byte of
858         linebuffer, when it is first allocated.
859
860 2014-10-29  Pedro Alves  <[email protected]>
861
862         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
863         TRY_CATCH.
864
865 2014-10-29  Pedro Alves  <[email protected]>
866
867         PR tui/16138
868         PR tui/17519
869         * tui/tui-interp.c (tui_is_toplevel): Delete global.
870         (tui_allowed_p): Delete function.
871         * tui/tui.c: Include "interps.h".
872         (tui_enable): Don't use tui_allowed_p.  Error out here with
873         detailed error messages if the TUI is the top level interpreter,
874         or if output is not a terminal.  Use newterm instead of initscr,
875         and error out if initializing the terminal fails.  Also error out if
876         the terminal doesn't support cursor addressing.
877         * tui/tui.h (tui_allowed_p): Delete declaration.
878
879 2014-10-29  Joel Brobecker  <[email protected]>
880
881         * arm-tdep.c (arm_skip_stack_protector): Return early if
882         address loaded by first "ldr" instruction does not have
883         a corresponding minimal symbol.  Update comment.
884
885 2014-10-29  Yao Qi  <[email protected]>
886
887         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
888         loaded address correctly of ldr instruction.
889
890 2014-10-28  Pedro Alves  <[email protected]>
891
892         PR gdb/12623
893         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
894         field.
895         * infrun.c (resume) <stepping breakpoint instruction>: Set the
896         thread's stepped_breakpoint field.  Skip if reverse debugging.
897         Add comment.
898         (init_thread_stepping_state, handle_signal_stop): Clear the
899         thread's stepped_breakpoint field.
900
901 2014-10-27  Pedro Alves  <[email protected]>
902
903         * remote.c (remote_thread_alive): New, factored out from ...
904         (remote_thread_alive): ... this.
905         (remote_update_thread_list): Bail out before deleting threads if
906         the target returned an empty list, and, the current thread has a
907         magic/fake ptid.
908
909 2014-10-27  Pedro Alves  <[email protected]>
910
911         * infrun.c (handle_signal_stop): Also skip handlers when a random
912         signal arrives while handling a "stepi" or a "nexti".  Set the
913         thread's 'step_after_step_resume_breakpoint' flag.
914
915 2014-10-27  Luis Machado  <[email protected]>
916
917         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
918         (arm_record_ld_st_imm_offset): Reimplement to cover all
919         load/store cases for ARM opcode 010.
920         (arm_record_ld_st_multiple): Reimplement to cover all
921         load/store cases for ARM opcode 100.
922
923 2014-10-26  Doug Evans  <[email protected]>
924
925         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
926
927 2014-10-26  Doug Evans  <[email protected]>
928
929         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
930         parameter "kind" to "block_index".
931         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
932         "block_index".
933         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
934
935 2014-10-26  Doug Evans  <[email protected]>
936
937         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
938
939 2014-10-26  Doug Evans  <[email protected]>
940
941         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
942         obstack_alloc.
943
944 2014-10-26  Doug Evans  <[email protected]>
945
946         * parser-defs.h (block_found): Move decl from here ...
947         * symtab.h (block_found): ... to here.
948
949 2014-10-26  Doug Evans  <[email protected]>
950
951         * symtab.h (struct field_of_this_result): Fix typo in comment.
952         (lookup_symbol_in_language): Move function comment here.
953         (lookup_symbol): Improve function comment.
954         (basic_lookup_symbol_nonlocal): Ditto.
955         (lookup_symbol_static, lookup_symbol_global): Ditto.
956         (lookup_symbol_aux_block): Ditto.
957         (lookup_language_this): Add function comment.
958         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
959         function comment.
960         (lookup_block_symbol): Improve function comment.
961         (lookup_struct): Fix capitalization in function comment.
962         (lookup_transparent_type): Add function comment.
963         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
964         Improve function comment.
965         (lookup_objfile_from_block): Add function comment.
966         * symtab.c (lookup_symbol_in_language): Update function comment.
967         (lookup_symbol, lookup_language_this): Ditto.
968         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
969         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
970         (basic_lookup_symbol_nonlocal): Ditto.
971         (lookup_symbol_static, lookup_symbol_global): Ditto.
972         (lookup_transparent_type, lookup_block_symbol): Ditto.
973
974 2014-10-25  Doug Evans  <[email protected]>
975
976         * symtab.c (types_info): Delete forward decl.
977         (functions_info, variables_info, sources_info): Ditto.
978         (_initialize_symtab): Rewrite forward decl to use
979         initialize_file_ftype.
980
981 2014-10-25  Doug Evans  <[email protected]>
982
983         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
984
985 2014-10-25  Doug Evans  <[email protected]>
986
987         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
988         of local var child_die.
989
990 2014-10-24  Don Breazeal  <[email protected]>
991
992         * infrun.c (follow_fork_inferior): Update fork message printing
993         to use target_terminal_ours_for_output instead of
994         target_terminal_ours, to use _() for all format strings, to print
995         "vfork" instead of "fork" for vforks, and to add a detach message.
996         (handle_vfork_child_exec_or_exit): Update message printing to use
997         target_terminal_ours_for_output instead of target_terminal_ours, to
998         use _() for all format strings, and to fix some formatting.
999
1000 2014-10-24  Pedro Alves  <[email protected]>
1001
1002         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1003         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1004         * config/vax/vax.mh: Delete.
1005         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1006         obsolete configurations section.
1007         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1008         * vax-nat.c: Delete file.
1009
1010 2014-10-24  Pedro Alves  <[email protected]>
1011
1012         * NEWS (Removed targets): Add OS/arch column.
1013
1014 2014-10-24  Siva Chandra Reddy  <[email protected]>
1015
1016         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1017         on the arg type of a constructor only if it is of reference type.
1018
1019 2014-10-23  Sandra Loosemore  <[email protected]>
1020
1021         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1022         accessors and constants from nios2 opcodes update.
1023         (nios2_get_next_pc): Likewise.
1024
1025 2014-10-19  Doug Evans  <[email protected]>
1026
1027         * gdbthread.h (set_running): Fix comment.
1028         (set_executing, finish_thread_state): Fix comment.
1029
1030 2014-10-18  Doug Evans  <[email protected]>
1031
1032         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1033
1034 2014-10-17  Doug Evans  <[email protected]>
1035
1036         * NEWS: Mention new event gdb.clear_objfiles.
1037         * python/py-event.h (emit_clear_objfiles_event): Clear
1038         * python/py-events.h (events_object): New member clear_objfiles.
1039         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1040         event.
1041         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1042         emit clear_objfiles event.
1043         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1044         function.
1045         (emit_clear_objfiles_event): New function.
1046         (clear_objfiles): New event.
1047         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1048         Declare.
1049         * python/python.c (_initialize_python): Call
1050         gdbpy_initialize_clear_objfiles_event.
1051
1052 2014-10-17  Doug Evans  <[email protected]>
1053
1054         * NEWS: Mention new gdb.Objfile.progspace attribute.
1055         * python/py-objfile.c (objfpy_get_progspace): New function.
1056         (objfile_getset): New entry for "progspace".
1057
1058 2014-10-17  Pedro Alves  <[email protected]>
1059
1060         PR gdb/17471
1061         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1062         returns a copy of the input.
1063         (run_command_1, continue_command, step_1, jump_command)
1064         (signal_command, until_command, advance_command, finish_command)
1065         (attach_command): Adjust and install a cleanup to free the
1066         stripped args.
1067
1068 2014-10-17  Pedro Alves  <[email protected]>
1069
1070         PR gdb/17300
1071         * infcmd.c (continue_1): If continuing all threads in the
1072         foreground, make sure the inferior's terminal settings are put in
1073         effect.
1074
1075 2014-10-17  Pedro Alves  <[email protected]>
1076
1077         PR gdb/17472
1078         * annotate.c (annotate_breakpoints_invalid): Use
1079         target_terminal_our_for_output instead of target_terminal_ours.
1080         Give back the terminal to the target.
1081         (annotate_frames_invalid): Likewise.
1082
1083 2014-10-17  Pedro Alves  <[email protected]>
1084
1085         * target.c (enum terminal_state): New enum.
1086         (terminal_state): New global.
1087         (target_terminal_init): New function.
1088         (target_terminal_inferior): Skip if inferior already owns the
1089         terminal.
1090         (target_terminal_ours, target_terminal_ours_for_output): New
1091         functions.
1092         * target.h (target_terminal_init): Convert to function prototype.
1093         (target_terminal_ours_for_output): Convert to function prototype
1094         and tweak comment.
1095         (target_terminal_ours): Convert to function prototype and tweak
1096         comment.
1097         * windows-nat.c (do_initial_windows_stuff): Call
1098         target_terminal_init instead of child_terminal_init_with_pgrp.
1099
1100 2014-10-17  Pedro Alves  <[email protected]>
1101
1102         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1103         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1104         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1105         solib-osf.c.
1106         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1107         * ada-lang.h [__alpha__ && __osf__]
1108         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1109         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1110         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1111         GDB_OSABI_OSF1.
1112         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1113         files.
1114         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1115         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1116         * configure: Regenerate.
1117         * configure.ac: Remove references to osf.
1118         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1119         section.  Remove all other references to osf.
1120         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1121         Remove all other references to osf.
1122         * dec-thread.c: Delete file.
1123         * defs.h (GDB_OSABI_OSF1): Delete.
1124         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1125         defined.
1126         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1127         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1128         Delete code.
1129         (unconditionally_kill_inferior)
1130         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1131         * solib-osf.c: Delete file.
1132
1133 2014-10-17  Pedro Alves  <[email protected]>
1134
1135         * remote.c (clear_threads_listing_context): Move higher up, out of
1136         the HAVE_LIBEXPAT guard.
1137
1138 2014-10-16  Tristan Gingold  <[email protected]>
1139
1140         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1141         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1142         on amd64.
1143
1144 2014-10-15  Pedro Alves  <[email protected]>
1145
1146         * dec-thread.c (dec_thread_count_gdb_threads)
1147         (dec_thread_add_gdb_thread): Delete.
1148         (dec_thread_update_thread_list): Delete.
1149         (dec_thread_find_new_threads): Rename to ...
1150         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1151         threads that are no longer found in dec_thread_list.
1152         (resync_thread_list): Delete.
1153         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1154         resync_thread_list.
1155
1156 2014-10-15  Pedro Alves  <[email protected]>
1157
1158         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1159         * remote.c (remote_update_thread_list): Skip calling prune_threads
1160         if any thread listing method is supported, and instead walk over
1161         the set of remote threads listed, deleting those that are not
1162         found in GDB's thread list.
1163
1164 2014-10-15  Pedro Alves  <[email protected]>
1165
1166         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1167         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1168         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1169         (bsd_uthread_target): Adjust.
1170         * corelow.c (core_open): Adjust.
1171         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1172         (dec_thread_update_thread_list): New function.
1173         (init_dec_thread_ops): Adjust.
1174         * gdbthread.h (prune_threads): New declaration.
1175         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1176         (thread_db_update_thread_list): ... this.  Call prune_threads.
1177         (init_thread_db_ops): Adjust.
1178         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1179         (procfs_update_thread_list): ... this.  Call prune_threads.
1180         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1181         Adjust.
1182         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1183         (obsd_update_thread_list): ... this.  Call prune_threads.
1184         (obsd_add_target): Adjust.
1185         * procfs.c (procfs_target): Adjust.
1186         (procfs_notice_thread): Update comment.
1187         (procfs_find_new_threads): Rename to ...
1188         (procfs_update_thread_list): ... this.  Call prune_threads.
1189         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1190         comment.
1191         (ravenscar_wait): Adjust.
1192         (ravenscar_find_new_threads): Rename to ...
1193         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1194         (init_ravenscar_thread_ops): Adjust.
1195         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1196         (record_btrace_update_thread_list): ... this.  Adjust comment.
1197         (init_record_btrace_ops): Adjust.
1198         * remote.c (remote_threads_info): Rename to ...
1199         (remote_update_thread_list): ... this.  Call prune_threads.
1200         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1201         Adjust.
1202         * sol-thread.c (check_for_thread_db): Adjust.
1203         (sol_find_new_threads_callback): Rename to ...
1204         (sol_update_thread_list_callback): ... this.
1205         (sol_find_new_threads): Rename to ...
1206         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1207         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1208         * target-delegates.c: Regenerate.
1209         * target.c (target_find_new_threads): Rename to ...
1210         (target_update_thread_list): ... this.
1211         * target.h (struct target_ops): Rename to_find_new_threads field
1212         to to_update_thread_list.
1213         (target_find_new_threads): Rename to ...
1214         (target_update_thread_list): ... this.
1215         * thread.c (prune_threads): Make extern.
1216         (update_thread_list): Adjust.
1217
1218 2014-10-15  Pedro Alves  <[email protected]>
1219
1220         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1221         Add describing comment.  Return -1 if the qL packet is not
1222         supported.
1223         (struct thread_item, thread_item_t): Move higher up in
1224         the file.  Add comments.
1225         (struct threads_parsing_context): Move higher up in
1226         the file, add comments, and remote to ...
1227         (struct threads_listing_context): ... this.
1228         (remote_newthread_step): Don't add the thread to GDB's thread
1229         database here.  Instead push it to the thread_listing_context
1230         list.
1231         (remote_find_new_threads): Rename to ...
1232         (remote_get_threads_with_ql): ... this.  Add target_ops and
1233         targets_listing_context parameters.  Pass down context.
1234         (start_thread): Adjust.
1235         (clear_threads_parsing_context): Rename to ...
1236         (clear_threads_listing_context): ... this.
1237         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1238         remote_threads_info.
1239         (remote_get_threads_with_qthreadinfo): Ditto.
1240         (remote_threads_info): Reimplement.
1241
1242 2014-10-15  Pedro Alves  <[email protected]>
1243
1244         * infrun.c (resume): Don't force displaced-stepping for all
1245         single-steps on software single-stepping archs.
1246
1247 2014-10-15  Pedro Alves  <[email protected]>
1248
1249         * breakpoint.c (single_step_breakpoints): Delete global.
1250         (insert_single_step_breakpoint): Adjust to store the breakpoint
1251         pointer in the current thread.
1252         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1253         (cancel_single_step_breakpoints): Delete functions.
1254         (breakpoint_has_location_inserted_here): Make extern.
1255         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1256         breakpoint list.
1257         * breakpoint.h (breakpoint_has_location_inserted_here): New
1258         declaration.
1259         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1260         (cancel_single_step_breakpoints): Remove declarations.
1261         * gdbthread.h (struct thread_control_state)
1262         <single_step_breakpoints>: New field.
1263         (delete_single_step_breakpoints)
1264         (thread_has_single_step_breakpoints_set)
1265         (thread_has_single_step_breakpoint_here): New declarations.
1266         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1267         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1268         (singlestep_pc): Delete globals.
1269         (infrun_thread_ptid_changed): Remove references to removed
1270         globals.
1271         (resume_cleanups): Delete the current thread's single-step
1272         breakpoints.
1273         (maybe_software_singlestep): Remove references to removed globals.
1274         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1275         delete_single_step_breakpoints.
1276         (init_wait_for_inferior): Remove references to removed globals.
1277         (delete_thread_infrun_breakpoints): Delete the thread's
1278         single-step breakpoints too.
1279         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1280         single-step breakpoints here.
1281         (delete_stopped_threads_single_step_breakpoints): New function.
1282         (adjust_pc_after_break): Adjust to use
1283         thread_has_single_step_breakpoints_set.
1284         (handle_inferior_event): Remove references to removed globals.
1285         Use delete_stopped_threads_single_step_breakpoints.
1286         (handle_signal_stop): Adjust to per-thread single-step
1287         breakpoints.  Swap test order to do cheaper tests first.
1288         (switch_back_to_stepped_thread): Extend debug output.  Remove
1289         references to removed globals.
1290         * record-full.c (record_full_wait_1): Adjust to per-thread
1291         single-step breakpoints.
1292         * thread.c (delete_single_step_breakpoints)
1293         (thread_has_single_step_breakpoints_set)
1294         (thread_has_single_step_breakpoint_here): New functions.
1295         (clear_thread_inferior_resources): Also delete the thread's
1296         single-step breakpoints.
1297
1298 2014-10-15  Pedro Alves  <[email protected]>
1299
1300         * thread.c (delete_thread_breakpoint): New function.
1301         (delete_step_resume_breakpoint)
1302         (delete_exception_resume_breakpoint): Use it.
1303         (delete_at_next_stop): New function.
1304         (clear_thread_inferior_resources): Use delete_at_next_stop.
1305
1306 2014-10-15  Pedro Alves  <[email protected]>
1307
1308         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1309         (breakpoint_inserted_here_p): ... here.  Remove special case for
1310         software single-step breakpoints.
1311         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1312         (software_breakpoint_inserted_here_p): ... here.  Remove special
1313         case for software single-step breakpoints.
1314         (bp_target_info_copy_insertion_state)
1315         (deprecated_insert_raw_breakpoint)
1316         (deprecated_remove_raw_breakpoint): Delete functions.
1317         * breakpoint.h (deprecated_insert_raw_breakpoint)
1318         (deprecated_remove_raw_breakpoint): Remove declarations.
1319
1320 2014-10-15  Pedro Alves  <[email protected]>
1321
1322         PR breakpoints/9649
1323         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1324         Delete array globals.
1325         (single_step_breakpoints): New global.
1326         (breakpoint_xfer_memory): Remove special handling for single-step
1327         breakpoints.
1328         (update_breakpoints_after_exec): Delete bp_single_step
1329         breakpoints.
1330         (detach_breakpoints): Remove special handling for single-step
1331         breakpoints.
1332         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1333         (bpstat_stop_status): Add comment.
1334         (bpstat_what, bptype_string, print_one_breakpoint_location)
1335         (adjust_breakpoint_address, init_bp_location): Handle
1336         bp_single_step.
1337         (new_single_step_breakpoint): New function.
1338         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1339         handling for single-step breakpoints.
1340         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1341         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1342         Rewrite.
1343         (detach_single_step_breakpoints, find_single_step_breakpoint):
1344         Delete functions.
1345         (breakpoint_has_location_inserted_here): New function.
1346         (single_step_breakpoint_inserted_here_p): Rewrite.
1347         * breakpoint.h: Remove FIXME.
1348         (enum bptype) <bp_single_step>: New enum value.
1349         (insert_single_step_breakpoint): Update comment.
1350         * infrun.c (resume_cleanups)
1351         (delete_step_thread_step_resume_breakpoint): Remove single-step
1352         breakpoints.
1353         (fetch_inferior_event): Install a cleanup that removes infrun
1354         breakpoints.
1355         (switch_back_to_stepped_thread) <expect thread advanced also>:
1356         Clear step-over info.
1357
1358 2014-10-15  Pedro Alves  <[email protected]>
1359
1360         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1361         (delete_thread_infrun_breakpoints): New function, with parts
1362         salvaged from delete_step_resume_breakpoint_callback.
1363         (delete_step_thread_step_resume_breakpoint): Delete.
1364         (for_each_just_stopped_thread_callback_func): New typedef.
1365         (for_each_just_stopped_thread): New function.
1366         (delete_just_stopped_threads_infrun_breakpoints): New function.
1367         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1368         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1369         ... this.  Adjust.
1370         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1371
1372 2014-10-15  Pedro Alves  <[email protected]>
1373
1374         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1375         trying to step past a non-steppable watchpoint.
1376         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1377         field.
1378         * infrun.c (struct step_over_info): Add new field
1379         'nonsteppable_watchpoint_p' and adjust comments.
1380         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1381         Adjust.
1382         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1383         (stepping_past_nonsteppable_watchpoint): New function.
1384         (step_over_info_valid_p): Also return true if stepping past a
1385         nonsteppable watchpoint.
1386         (proceed): Adjust call to set_step_over_info.  Remove reference to
1387         init_infwait_state.
1388         (init_wait_for_inferior): Remove reference to init_infwait_state.
1389         (waiton_ptid): Delete global.
1390         (struct execution_control_state)
1391         <stepped_after_stopped_by_watchpoint>: Delete field.
1392         (wait_for_inferior, fetch_inferior_event): Always pass
1393         minus_one_ptid to target_wait.
1394         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1395         field.
1396         (init_infwait_state): Delete function.
1397         (handle_inferior_event): Remove infwait_state handling.
1398         (handle_signal_stop) <watchpoints handling>: Adjust after
1399         stepped_after_stopped_by_watchpoint removal.  Don't remove
1400         breakpoints here nor set infwait_state.  Set the thread's
1401         stepping_over_watchpoint flag, and call keep_going instead.
1402         (keep_going): Handle stepping_over_watchpoint.  Adjust
1403         set_step_over_info calls.
1404         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1405         function.
1406
1407 2014-10-15  Pedro Alves  <[email protected]>
1408
1409         * infrun.c (step_over_info_valid_p): New function.
1410         (resume): Use step_over_info_valid_p instead of checking the
1411         threads's trap_expected flag.
1412
1413 2014-10-15  Doug Evans  <[email protected]>
1414             Walfred Tedeschi  <[email protected]>
1415
1416         PR python/17364
1417         * python/lib/gdb/__init__.py (packages): Add "printer".
1418         * python/lib/gdb/command/bound_registers.py: Moved to ...
1419         * python/lib/gdb/printer/bound_registers.py: ... here.
1420         Add printer to global set of builtin printers.  Rename printer from
1421         "bound" to "mpx_bound128".
1422         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1423         registered as global "builtin" printer.
1424         (add_builtin_pretty_printer): New function.
1425         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1426         gdb/printer/__init__.py.
1427
1428 2014-10-15  Iain Buclaw  <[email protected]>
1429
1430         * Makefile.in (SFILES): Remove d-support.c.
1431         (COMMON_OBS): Remove d-support.o.
1432         * d-lang.h (d_parse_symbol): Remove declaration.
1433         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1434         * d-support.c: Remove file.
1435
1436 2014-10-15  Andreas Arnez  <[email protected]>
1437
1438         * gdb/infrun.c (process_event_stop_test): Apply
1439         gdbarch_addr_bits_remove to longjmp resume address.
1440
1441 2014-10-15  Pedro Alves  <[email protected]>
1442
1443         * regformats/microblaze.dat: Delete file.
1444
1445 2014-10-15  Ajit Agarwal  <[email protected]>
1446
1447         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1448         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1449
1450 2014-10-15  Siva Chandra Reddy  <[email protected]>
1451
1452         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1453         as non-trivial.
1454
1455 2014-10-15  Siva Chandra Reddy  <[email protected]>
1456
1457         PR c++/13403
1458         PR c++/15154
1459         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1460         with qualified args.
1461
1462 2014-10-14  Joel Brobecker  <[email protected]>
1463
1464         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1465         of the case where the second operand is a pointer.
1466         <BINOP_SUB>: Likewise.
1467
1468 2014-10-14  Sergio Durigan Junior  <[email protected]>
1469
1470         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1471         only if it is not NULL.
1472         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1473         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1474         (struct probe_ops) <clear_semaphore>: Likewise.
1475         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1476         not NULL.
1477         (stop_tracing): Likewise, for clear_semaphore.
1478
1479 2014-10-14  Sergio Durigan Junior  <[email protected]>
1480
1481         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1482         using language_c, instead of current_language.
1483
1484 2014-10-13  Doug Evans  <[email protected]>
1485
1486         * python/py-objfile.c (objfpy_initialize): New function.
1487         (objfpy_new, objfile_to_objfile_object): Call it.
1488         * python/py-progspace.c (pspy_initialize): New function.
1489         (pspy_new, pspace_to_pspace_object): Call it.
1490
1491 2014-10-13  Miroslav Franc  <[email protected]>
1492             Jan Kratochvil  <[email protected]>
1493
1494         Fix "save breakpoints" for "catch" command.
1495         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1496         newline.
1497
1498 2014-10-12  Miroslav Franc  <[email protected]>
1499
1500         Fix "save breakpoints" for "disable $bpnum" command.
1501         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1502
1503 2014-10-10  Pedro Alves  <[email protected]>
1504
1505         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1506         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1507         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1508         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1509         and been removed.
1510         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1511         * configure.ac: Remove references to IRIX.
1512         * configure.host: Add *-*-irix* to the obsolete hosts section.
1513         Remove all other references to irix.
1514         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1515         Delete files.
1516
1517 2014-10-10  Ajit Agarwal  <[email protected]>
1518
1519         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1520         isn't valid, release the tdesc arch data and return NULL.
1521
1522 2014-10-10  Pedro Alves  <[email protected]>
1523
1524         * linux-tdep.c: Include observer.h.
1525         (linux_inferior_data): New global.
1526         (struct linux_info): New structure.
1527         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1528         (get_linux_inferior_data): New functions.
1529         (linux_vsyscall_range): Rename to ...
1530         (linux_vsyscall_range_raw): ... this.
1531         (linux_vsyscall_range): New function; handles caching.
1532         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1533         inferior_exit and inferior_appeared observers.
1534
1535 2014-10-10  Jan Kratochvil  <[email protected]>
1536             Pedro Alves  <[email protected]>
1537
1538         PR symtab/14466
1539         * solib-svr4.c (svr4_read_so_list): Rename to ...
1540         (svr4_current_sos_1): ... this and change the function comment.
1541         (svr4_current_sos): New function.
1542
1543 2014-10-10  Pedro Alves  <[email protected]>
1544
1545         * arch-utils.c (default_vsyscall_range): New function.
1546         * arch-utils.h (default_vsyscall_range): New declaration.
1547         * gdbarch.sh (vsyscall_range): New hook.
1548         * gdbarch.h, gdbarch.c: Regenerate.
1549         * linux-tdep.c (linux_vsyscall_range): New function.
1550         (linux_init_abi): Install linux_vsyscall_range as
1551         vsyscall_range gdbarch hook.
1552         * memrange.c (address_in_mem_range): New function.
1553         * memrange.h (address_in_mem_range): New declaration.
1554         * symfile-mem.c (find_vdso_size): Delete function.
1555         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1556
1557 2014-10-10  Pedro Alves  <[email protected]>
1558
1559         * infrun.c (normal_stop): Fix typo in comment.
1560
1561 2014-10-09  Sergio Durigan Junior  <[email protected]>
1562
1563         PR tdep/9390
1564         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1565         typo when using logical AND to determine instruction type.
1566
1567 2014-10-09  Yao Qi  <[email protected]>
1568
1569         * infrun.c (handle_signal_stop): Remove local variable
1570         'printed'.
1571
1572 2014-10-08  Stan Shebs  <[email protected]>
1573
1574         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1575
1576 2014-10-08  Gary Benson  <[email protected]>
1577
1578         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1579
1580 2014-10-08  Gary Benson  <[email protected]>
1581
1582         * common/common-defs.h: Include common-exceptions.h.
1583         * exceptions.h: Do not include common-exceptions.h.
1584
1585 2014-10-08  Gary Benson  <[email protected]>
1586
1587         * common/common-defs.h: Include cleanups.h.
1588         * common/common-exceptions.c: Do not include cleanups.h.
1589         * utils.h: Likewise.
1590
1591 2014-10-08  Gary Benson  <[email protected]>
1592
1593         * ada-lang.c: Do not include exceptions.h.
1594         * ada-valprint.c: Likewise.
1595         * amd64-tdep.c: Likewise.
1596         * auto-load.c: Likewise.
1597         * block.c: Likewise.
1598         * break-catch-throw.c: Likewise.
1599         * breakpoint.c: Likewise.
1600         * btrace.c: Likewise.
1601         * c-lang.c: Likewise.
1602         * cli/cli-cmds.c: Likewise.
1603         * cli/cli-interp.c: Likewise.
1604         * cli/cli-script.c: Likewise.
1605         * completer.c: Likewise.
1606         * corefile.c: Likewise.
1607         * corelow.c: Likewise.
1608         * cp-abi.c: Likewise.
1609         * cp-support.c: Likewise.
1610         * cp-valprint.c: Likewise.
1611         * darwin-nat.c: Likewise.
1612         * dwarf2-frame-tailcall.c: Likewise.
1613         * dwarf2-frame.c: Likewise.
1614         * dwarf2loc.c: Likewise.
1615         * dwarf2read.c: Likewise.
1616         * eval.c: Likewise.
1617         * event-loop.c: Likewise.
1618         * event-top.c: Likewise.
1619         * f-valprint.c: Likewise.
1620         * frame-unwind.c: Likewise.
1621         * frame.c: Likewise.
1622         * gdbtypes.c: Likewise.
1623         * gnu-v2-abi.c: Likewise.
1624         * gnu-v3-abi.c: Likewise.
1625         * guile/scm-auto-load.c: Likewise.
1626         * guile/scm-breakpoint.c: Likewise.
1627         * guile/scm-cmd.c: Likewise.
1628         * guile/scm-frame.c: Likewise.
1629         * guile/scm-lazy-string.c: Likewise.
1630         * guile/scm-param.c: Likewise.
1631         * guile/scm-symbol.c: Likewise.
1632         * guile/scm-type.c: Likewise.
1633         * hppa-hpux-tdep.c: Likewise.
1634         * i386-tdep.c: Likewise.
1635         * inf-loop.c: Likewise.
1636         * infcall.c: Likewise.
1637         * infcmd.c: Likewise.
1638         * infrun.c: Likewise.
1639         * interps.c: Likewise.
1640         * interps.h: Likewise.
1641         * jit.c: Likewise.
1642         * linespec.c: Likewise.
1643         * linux-nat.c: Likewise.
1644         * linux-thread-db.c: Likewise.
1645         * m32r-rom.c: Likewise.
1646         * main.c: Likewise.
1647         * memory-map.c: Likewise.
1648         * mi/mi-cmd-break.c: Likewise.
1649         * mi/mi-cmd-stack.c: Likewise.
1650         * mi/mi-interp.c: Likewise.
1651         * mi/mi-main.c: Likewise.
1652         * monitor.c: Likewise.
1653         * nto-procfs.c: Likewise.
1654         * objc-lang.c: Likewise.
1655         * p-valprint.c: Likewise.
1656         * parse.c: Likewise.
1657         * ppc-linux-tdep.c: Likewise.
1658         * printcmd.c: Likewise.
1659         * probe.c: Likewise.
1660         * python/py-auto-load.c: Likewise.
1661         * python/py-breakpoint.c: Likewise.
1662         * python/py-cmd.c: Likewise.
1663         * python/py-finishbreakpoint.c: Likewise.
1664         * python/py-frame.c: Likewise.
1665         * python/py-framefilter.c: Likewise.
1666         * python/py-function.c: Likewise.
1667         * python/py-gdb-readline.c: Likewise.
1668         * python/py-inferior.c: Likewise.
1669         * python/py-infthread.c: Likewise.
1670         * python/py-lazy-string.c: Likewise.
1671         * python/py-linetable.c: Likewise.
1672         * python/py-param.c: Likewise.
1673         * python/py-prettyprint.c: Likewise.
1674         * python/py-symbol.c: Likewise.
1675         * python/py-type.c: Likewise.
1676         * python/py-value.c: Likewise.
1677         * python/python-internal.h: Likewise.
1678         * python/python.c: Likewise.
1679         * record-btrace.c: Likewise.
1680         * record-full.c: Likewise.
1681         * regcache.c: Likewise.
1682         * remote-fileio.c: Likewise.
1683         * remote-mips.c: Likewise.
1684         * remote.c: Likewise.
1685         * rs6000-aix-tdep.c: Likewise.
1686         * rs6000-nat.c: Likewise.
1687         * skip.c: Likewise.
1688         * solib-darwin.c: Likewise.
1689         * solib-dsbt.c: Likewise.
1690         * solib-frv.c: Likewise.
1691         * solib-ia64-hpux.c: Likewise.
1692         * solib-spu.c: Likewise.
1693         * solib-svr4.c: Likewise.
1694         * solib.c: Likewise.
1695         * spu-tdep.c: Likewise.
1696         * stack.c: Likewise.
1697         * stap-probe.c: Likewise.
1698         * symfile-mem.c: Likewise.
1699         * symmisc.c: Likewise.
1700         * target.c: Likewise.
1701         * thread.c: Likewise.
1702         * top.c: Likewise.
1703         * tracepoint.c: Likewise.
1704         * tui/tui-interp.c: Likewise.
1705         * typeprint.c: Likewise.
1706         * utils.c: Likewise.
1707         * valarith.c: Likewise.
1708         * valops.c: Likewise.
1709         * valprint.c: Likewise.
1710         * value.c: Likewise.
1711         * varobj.c: Likewise.
1712         * windows-nat.c: Likewise.
1713         * xml-support.c: Likewise.
1714
1715 2014-10-05  Maciej W. Rozycki  <[email protected]>
1716
1717         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1718         name implies.
1719         (extended_mips16_next_pc): Update accordingly.
1720
1721 2014-10-05  Maciej W. Rozycki  <[email protected]>
1722
1723         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1724         function.
1725         (micromips_instruction_is_compact_branch): Likewise.
1726         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1727         or a compact jump, reaching a jump delay slot, or seeing a
1728         second non-prologue instruction.
1729         (micromips_scan_prologue): Also terminate scanning upon seeing a
1730         compact branch or jump, or reaching a branch or jump delay slot.
1731         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1732         or jump delay slot, or seeing a second non-prologue instruction.
1733         (mips32_instruction_has_delay_slot): Retain instruction
1734         examination code only, update arguments accordingly and move
1735         instruction fetch pieces to...
1736         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1737         (micromips_instruction_has_delay_slot): Likewise and to...
1738         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1739         (mips16_instruction_has_delay_slot): Likewise and to...
1740         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1741         (mips_single_step_through_delay): Update accordingly.
1742         (mips_adjust_breakpoint_address): Likewise.
1743
1744 2014-10-05  Maciej W. Rozycki  <[email protected]>
1745
1746         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1747         !mustbe32 also return 1 for 32-bit instructions.
1748         (mips16_instruction_has_delay_slot): Likewise.  Add an
1749         explanatory comment.
1750
1751 2014-10-03  Maciej W. Rozycki  <[email protected]>
1752
1753         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1754         symbols special.
1755
1756 2014-10-03  Maciej W. Rozycki  <[email protected]>
1757
1758         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1759         update comments.
1760         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1761         for the breakpoint's address.  Don't preinitialize `placed_size'.
1762         (insert_bp_location): Set `reqstd_address' rather than
1763         `placed_address'.
1764         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1765         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1766         address.
1767         (bkpt_remove_location): Likewise.
1768         (deprecated_insert_raw_breakpoint): Likewise.
1769         (deprecated_remove_raw_breakpoint): Likewise.
1770         (find_single_step_breakpoint): Likewise.
1771         * mem-break.c (default_memory_insert_breakpoint): Use
1772         `reqstd_address' for the breakpoint's address.  Don't set
1773         `placed_address' or `placed_size' if breakpoint contents couldn't
1774         have been determined.
1775         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1776         the breakpoint's address.
1777         (remote_insert_hw_breakpoint): Likewise.  Don't set
1778         `placed_address' or `placed_size' if breakpoint couldn't have been
1779         set.
1780         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1781         `reqstd_address' for the breakpoint's address.
1782         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1783         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1784         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1785         * microblaze-linux-tdep.c
1786         (microblaze_linux_memory_remove_breakpoint): Likewise.
1787         * monitor.c (monitor_insert_breakpoint): Likewise.
1788         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1789         (procfs_insert_hw_breakpoint): Likewise.
1790         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1791         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1792         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1793         * remote-mips.c (mips_insert_breakpoint): Likewise.
1794         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1795
1796 2014-10-03  Luis Machado  <[email protected]>
1797
1798         * valops.c (value_assign): Check for bit field assignments
1799         before calling architecture-specific register value
1800         conversion functions.
1801
1802 2014-10-03  Pierre Muller  <[email protected]>
1803
1804         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1805
1806 2014-10-02  Pedro Alves  <[email protected]>
1807
1808         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1809         threads_are_executing.
1810         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1811         describing comment.
1812         * gdbthread.h (threads_are_executing): Declare.
1813         (handle_signal_stop) <random signals>: Don't print about the
1814         signal here if stopping.
1815         (end_stepping_range): Don't notify observers here.
1816         (normal_stop): Update the thread list.  If stopped by a random
1817         signal or a stepping range ended, notify observers.
1818         * thread.c (threads_executing): New global.
1819         (init_thread_list): Clear 'threads_executing'.
1820         (set_executing): Set or clear 'threads_executing'.
1821         (threads_are_executing): New function.
1822         (update_threads_executing): New function.
1823         (update_thread_list): Use it.
1824
1825 2014-10-02  Pedro Alves  <[email protected]>
1826
1827         PR breakpoints/17431
1828         * breakpoint.c (update_breakpoints_after_exec): Don't create
1829         overlay, longjmp, std terminate nor exception breakpoints here.
1830
1831 2014-10-02  Pedro Alves  <[email protected]>
1832
1833         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1834         Adjust comments.
1835         * inferior.c (find_inferior_for_program_space): Give preference to
1836         the current inferior.
1837         * inferior.h (find_inferior_for_program_space): Update comment.
1838         * progspace.c (switch_to_program_space_and_thread): Prefer the
1839         current inferior if it's bound to the program space requested.  If
1840         the inferior found doesn't have a PID yet, don't bother looking up
1841         a thread.
1842         * progspace.h (switch_to_program_space_and_thread): Adjust
1843         comment.
1844         * thread.c (any_thread_of_process, any_live_thread_of_process):
1845         Give preference to the current thread.
1846
1847 2014-10-01  Pedro Alves  <[email protected]>
1848
1849         * breakpoint.c (insert_bp_location): Error out if inserting a
1850         software breakpoint at a read-only address.
1851         * target.c (memory_xfer_check_region): New function, factored out
1852         from ...
1853         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1854         ULONGEST.
1855         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1856         against the memory region attributes.
1857
1858 2014-10-01  Simon Marchi  <[email protected]>
1859
1860         * NEWS: Announce new exit-code field in -list-thread-groups
1861         output.
1862         * inferior.c (exit_inferior_1): Don't clear exit code.
1863         (inferior_appeared): Clear exit code.
1864         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1865         code.
1866
1867 2014-10-01  Pedro Alves  <[email protected]>
1868
1869         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1870         GENERATED" along with emacs/vi read-only markers.
1871         * regformats/aarch64.dat: Regenerate.
1872         * regformats/arm-with-iwmmxt.dat: Regenerate.
1873         * regformats/arm-with-neon.dat: Regenerate.
1874         * regformats/arm-with-vfpv2.dat: Regenerate.
1875         * regformats/arm-with-vfpv3.dat: Regenerate.
1876         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1877         * regformats/i386/amd64-avx.dat: Regenerate.
1878         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1879         * regformats/i386/amd64-avx512.dat: Regenerate.
1880         * regformats/i386/amd64-linux.dat: Regenerate.
1881         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1882         * regformats/i386/amd64-mpx.dat: Regenerate.
1883         * regformats/i386/amd64.dat: Regenerate.
1884         * regformats/i386/i386-avx-linux.dat: Regenerate.
1885         * regformats/i386/i386-avx.dat: Regenerate.
1886         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1887         * regformats/i386/i386-avx512.dat: Regenerate.
1888         * regformats/i386/i386-linux.dat: Regenerate.
1889         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1890         * regformats/i386/i386-mmx.dat: Regenerate.
1891         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1892         * regformats/i386/i386-mpx.dat: Regenerate.
1893         * regformats/i386/i386.dat: Regenerate.
1894         * regformats/i386/x32-avx-linux.dat: Regenerate.
1895         * regformats/i386/x32-avx.dat: Regenerate.
1896         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1897         * regformats/i386/x32-avx512.dat: Regenerate.
1898         * regformats/i386/x32-linux.dat: Regenerate.
1899         * regformats/i386/x32.dat: Regenerate.
1900         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1901         * regformats/mips-dsp-linux.dat: Regenerate.
1902         * regformats/mips-linux.dat: Regenerate.
1903         * regformats/mips64-dsp-linux.dat: Regenerate.
1904         * regformats/mips64-linux.dat: Regenerate.
1905         * regformats/nios2-linux.dat: Regenerate.
1906         * regformats/rs6000/powerpc-32.dat: Regenerate.
1907         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1908         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1909         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1910         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1911         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1912         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1913         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1914         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1915         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1916         * regformats/s390-linux32.dat: Regenerate.
1917         * regformats/s390-linux32v1.dat: Regenerate.
1918         * regformats/s390-linux32v2.dat: Regenerate.
1919         * regformats/s390-linux64.dat: Regenerate.
1920         * regformats/s390-linux64v1.dat: Regenerate.
1921         * regformats/s390-linux64v2.dat: Regenerate.
1922         * regformats/s390-te-linux64.dat: Regenerate.
1923         * regformats/s390x-linux64.dat: Regenerate.
1924         * regformats/s390x-linux64v1.dat: Regenerate.
1925         * regformats/s390x-linux64v2.dat: Regenerate.
1926         * regformats/s390x-te-linux64.dat: Regenerate.
1927         * regformats/tic6x-c62x-linux.dat: Regenerate.
1928         * regformats/tic6x-c62x.dat: Regenerate.
1929         * regformats/tic6x-c64x-linux.dat: Regenerate.
1930         * regformats/tic6x-c64x.dat: Regenerate.
1931         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1932         * regformats/tic6x-c64xp.dat: Regenerate.
1933
1934 2014-10-01  Pedro Alves  <[email protected]>
1935
1936         * features/Makefile: Update comments.
1937         (XMLTOC): List all xml files we build C files from.
1938         (clean-cfiles): New rule.
1939
1940 2014-10-01  Pedro Alves  <[email protected]>
1941
1942         * features/i386/amd64-avx512-linux.c: Regenerate.
1943         * features/i386/amd64-avx512.c: Regenerate.
1944         * features/i386/x32-avx512-linux.c: Regenerate.
1945         * features/i386/x32-avx512.c: Regenerate.
1946
1947 2014-10-01  Pedro Alves  <[email protected]>
1948
1949         * features/Makefile (WHICH): Remove arm-with-m,
1950         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1951
1952 2014-10-01  Pedro Alves  <[email protected]>
1953
1954         * features/Makefile (clean): New rule.
1955
1956 2014-10-01  Pedro Alves  <[email protected]>
1957
1958         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1959         (zmm14h): Add missing end quotes.
1960
1961 2014-10-01  Pedro Alves  <[email protected]>
1962
1963         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1964         * features/aarch64.c: Regenerate.
1965
1966 2014-09-30  Don Breazeal  <[email protected]>
1967
1968         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1969         code so as to work with follow_fork_inferior.
1970         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1971         (inf_ttrace_create_inferior): Remove reference to
1972         inf_ttrace_vfork_ppid.
1973         (inf_ttrace_attach): Ditto.
1974         (inf_ttrace_detach): Ditto.
1975         (inf_ttrace_kill): Use current_inferior instead of
1976         inf_ttrace_vfork_ppid.
1977         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1978         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1979         inferior away from the parent.
1980         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1981         target_follow_fork.
1982         (follow_fork_inferior): New function.
1983         (follow_inferior_reset_breakpoints): Make function static.
1984         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1985         * linux-nat.c (linux_child_follow_fork): Move target-independent
1986         code to infrun.c:follow_fork_inferior.
1987
1988 2014-09-30  Andreas Arnez  <[email protected]>
1989
1990         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1991         * gdbarch.c: Regenerate.
1992         * gdbarch.h: Likewise.
1993         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1994         gdbarch method 'regset_from_core_section'.
1995         (get_core_register_section): Remove handling for the case that
1996         regset == NULL and regset_from_core_section is defined.
1997         (get_core_registers): Drop check for deleted method.
1998         * procfs.c (procfs_do_thread_registers): Adjust comment.
1999
2000 2014-09-30  Andreas Arnez  <[email protected]>
2001
2002         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2003         (linux_nat_make_corefile_notes): Remove.
2004         (linux_target_install_ops): Do not set target method
2005         'make_corefile_notes'.
2006         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2007         Remove field.
2008         (linux_corefile_thread_callback): Instead of args->collect, call
2009         linux_collect_thread_registers.
2010         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2011         NULL unless there is a regset iterator.
2012         (linux_make_corefile_notes_1): Remove.
2013         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2014         by linux_make_corefile_notes.
2015         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2016
2017 2014-09-30  Andreas Arnez  <[email protected]>
2018
2019         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2020         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2021         Remove.
2022         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2023
2024 2014-09-30  Andreas Arnez  <[email protected]>
2025
2026         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2027         (xtensa_iterate_over_regset_sections): New.
2028         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2029
2030 2014-09-30  Andreas Arnez  <[email protected]>
2031
2032         * vax-tdep.c (vax_regset_from_core_section): Remove.
2033         (vax_iterate_over_regset_sections): New.
2034         (vax_gdbarch_init): Adjust gdbarch initialization.
2035
2036 2014-09-30  Andreas Arnez  <[email protected]>
2037
2038         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2039         (tilegx_regset_from_core_section): Remove.
2040         (tilegx_iterate_over_regset_sections): New.
2041         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2042
2043 2014-09-30  Andreas Arnez  <[email protected]>
2044
2045         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2046         (sparc_iterate_over_regset_sections): New.
2047         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2048         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2049         targets.
2050         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2051         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2052         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2053         target method 'make_corefile_notes'.
2054
2055 2014-09-30  Andreas Arnez  <[email protected]>
2056
2057         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2058         'sizeof_gregset' and 'sizeof_fpregset'.
2059         * sh-tdep.c (sh_regset_from_core_section): Remove.
2060         (sh_iterate_over_regset_sections): New.
2061         (sh_gdbarch_init): Adjust gdbarch initialization.
2062         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2063         sizeof_fpregset.
2064         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2065         'sizeof_gregset'.
2066
2067 2014-09-30  Andreas Arnez  <[email protected]>
2068
2069         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2070         (score7_linux_iterate_over_regset_sections): New.
2071         (score_gdbarch_init): Adjust gdbarch initialization.
2072
2073 2014-09-30  Andreas Arnez  <[email protected]>
2074
2075         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2076         FreeBSD targets.
2077         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2078         method 'make_corefile_notes'.
2079         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2080         (ppcfbsd_regset_from_core_section): Remove.
2081         (ppcfbsd_iterate_over_regset_sections): New.
2082         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2083         initialization.
2084         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2085         (ppcnbsd_iterate_over_regset_sections): New.
2086         (ppcnbsd_init_abi): Adjust.
2087         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2088         (ppcobsd_iterate_over_regset_sections): New.
2089         (ppcobsd_init_abi): Adjust.
2090         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2091         (rs6000_aix_iterate_over_regset_sections): New.
2092         (rs6000_aix_init_osabi): Adjust.
2093
2094 2014-09-30  Andreas Arnez  <[email protected]>
2095
2096         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2097         (nios2_regset_from_core_section): Remove.
2098         (nios2_iterate_over_regset_sections): New.
2099         (nios2_linux_init_abi): Adjust gdbarch initialization.
2100
2101 2014-09-30  Andreas Arnez  <[email protected]>
2102
2103         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2104         (am33_iterate_over_regset_sections): New.
2105         (am33_linux_init_osabi): Adjust gdbarch initialization.
2106
2107 2014-09-30  Andreas Arnez  <[email protected]>
2108
2109         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2110         (mips_linux_iterate_over_regset_sections): New.
2111         (mips_linux_init_abi): Adjust gdbarch initialization.
2112         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2113         (mips64obsd_iterate_over_regset_sections): New.
2114         (mips64obsd_init_abi): Adjust.
2115         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2116         (mipsnbsd_iterate_over_regset_sections): New.
2117         (mipsnbsd_init_abi): Adjust.
2118
2119 2014-09-30  Andreas Arnez  <[email protected]>
2120
2121         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2122         (m88k_iterate_over_regset_sections): New.
2123         (m88k_gdbarch_init): Adjust gdbarch initialization.
2124
2125 2014-09-30  Andreas Arnez  <[email protected]>
2126
2127         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2128         (ia64_linux_iterate_over_regset_sections): New.
2129         (ia64_linux_init_abi): Adjust gdbarch initialization.
2130
2131 2014-09-30  Andreas Arnez  <[email protected]>
2132
2133         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2134         (m68kbsd_iterate_over_regset_sections): New.
2135         (m68kbsd_init_abi): Adjust gdbarch initialization.
2136         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2137         (m68k_linux_iterate_over_regset_sections): New.
2138         (m68k_linux_init_abi): Adjust gdbarch initialization.
2139
2140 2014-09-30  Andreas Arnez  <[email protected]>
2141
2142         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2143         (m32r_linux_regset_from_core_section): Remove.
2144         (m32r_linux_iterate_over_regset_sections): New.
2145         (m32r_linux_init_abi): Adjust gdbarch initialization.
2146
2147 2014-09-30  Andreas Arnez  <[email protected]>
2148
2149         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2150         (amd64obsd_iterate_over_regset_sections): New.
2151         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2152         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2153         Remove.
2154         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2155         regset_from_core_section initialization.
2156         * i386-tdep.c (i386_regset_from_core_section): Remove.
2157         (i386_iterate_over_regset_sections): New.
2158         (i386_gdbarch_init): Adjust gdbarch initialization.
2159         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2160         (i386_iterate_over_regset_sections): New prototype.
2161         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2162         Remove.
2163         (i386obsd_aout_iterate_over_regset_sections): New.
2164         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2165         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2166         targets.
2167         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2168         (amd64fbsd_init_abi): Call fbsd_init_abi.
2169         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2170         (i386fbsd4_init_abi): Call fbsd_init_abi.
2171         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2172         target method 'make_corefile_notes'.
2173         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2174
2175 2014-09-30  Andreas Arnez  <[email protected]>
2176
2177         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2178         (hppa_hpux_iterate_over_regset_sections): New.
2179         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2180         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2181         (hppa_linux_iterate_over_regset_sections): New.
2182         (hppa_linux_init_abi): Adjust.
2183         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2184         (hppanbsd_iterate_over_regset_sections): New.
2185         (hppanbsd_init_abi): Adjust.
2186         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2187         (hppaobsd_iterate_over_regset_sections): New.
2188         (hppaobsd_init_abi): Adjust.
2189
2190 2014-09-30  Andreas Arnez  <[email protected]>
2191
2192         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2193         (frv_linux_iterate_over_regset_sections): New.
2194         (frv_linux_init_abi): Adjust gdbarch initialization.
2195
2196 2014-09-30  Andreas Arnez  <[email protected]>
2197
2198         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2199         (armbsd_iterate_over_regset_sections): New prototype.
2200         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2201         (armbsd_iterate_over_regset_sections): New.
2202         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2203         initialization.
2204
2205 2014-09-30  Andreas Arnez  <[email protected]>
2206
2207         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2208         (alpha_linux_iterate_over_regset_sections): New.
2209         (alpha_linux_init_abi): Adjust gdbarch initialization.
2210         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2211         prototype.
2212         (alphanbsd_iterate_over_regset_sections): New prototype.
2213
2214 2014-09-30  Andreas Arnez  <[email protected]>
2215
2216         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2217         Remove.
2218         (aarch64_linux_iterate_over_regset_sections): New.
2219         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2220
2221 2014-09-30  Andreas Arnez  <[email protected]>
2222
2223         * fbsd-tdep.c: New file.
2224         * fbsd-tdep.h: New file.
2225         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2226         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2227         (ALLDEPFILES): Add fbsd-tdep.c.
2228
2229 2014-09-30  Andreas Arnez  <[email protected]>
2230
2231         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2232         parameter.
2233         * gdbarch.h: Regenerate.
2234         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2235         iterator.
2236         (get_core_register_section): Add parameter 'regset' and use it, if
2237         set.  Add parameter 'min_size' and verify the bfd section size
2238         against it.
2239         (get_core_registers_cb): Add parameter 'regset' and pass it to
2240         get_core_register section.  For the "standard" register sections
2241         ".reg" and ".reg2", set an appropriate default for human_name.
2242         (get_core_registers): Don't abort when the gdbarch has an iterator
2243         but no regset_from_core_section.  Add NULL/0 for parameters
2244         'regset'/'min_size' in calls to get_core_register_section.
2245         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2246         'regset' and use it instead of calling the
2247         regset_from_core_section gdbarch method.
2248         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2249         * i386-tdep.c (i386_supply_xstateregset)
2250         (i386_collect_xstateregset, i386_xstateregset): Moved to
2251         i386-linux-tdep.c.
2252         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2253         .reg-xstate.
2254         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2255         core file support only if the regset iterator hasn't been set.
2256         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2257         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2258         Moved from i386-tdep.c and renamed to *_linux*.
2259         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2260         each callback invocation.  Allow any .reg-xstate size when reading
2261         from a core file.
2262         * amd64-tdep.c (amd64_supply_xstateregset)
2263         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2264         amd64-linux-tdep.c.
2265         (amd64_regset_from_core_section): Remove.
2266         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2267         install an amd64-specific regset_from_core_section gdbarch method.
2268         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2269         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2270         Moved from amd64-tdep.c and renamed to *_linux*.
2271         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2272         to each callback invocation.  Allow any .reg-xstate size when
2273         reading from a core file.
2274         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2275         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2276         each callback invocation.
2277         (arm_linux_init_abi): No longer set the regset_from_core_section
2278         gdbarch method.
2279         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2280         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2281         each callback invocation.
2282         (ppc_linux_init_abi): No longer set the regset_from_core_section
2283         gdbarch method.
2284         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2285         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2286         (s390_regset_from_core_section): Remove.
2287         (s390_iterate_over_regset_sections): Add regset parameter to each
2288         callback invocation.
2289         (s390_gdbarch_init): No longer set the regset_from_core_section
2290         gdbarch method.  Drop initialization of deleted tdep fields.
2291
2292 2014-09-30  Andreas Arnez  <[email protected]>
2293
2294         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2295         (amd64_linux_iterate_over_regset_sections): New.
2296         (amd64_linux_init_abi_common): Don't install the regset section
2297         list, but the new iterator in gdbarch.
2298         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2299         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2300         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2301         (arm_linux_init_abi): Set iterator instead of section list.
2302         * corelow.c (get_core_registers_cb): New function, logic moved
2303         from...
2304         (get_core_registers): ...loop body here.  Use new iterator method
2305         instead of walking through the regset section list.
2306         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2307         'iterate_over_regset_sections'.  New typedef
2308         'iterate_over_regset_sections_cb'.
2309         * gdbarch.c: Regenerate.
2310         * gdbarch.h: Likewise.
2311         * i386-linux-tdep.c (i386_linux_regset_sections)
2312         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2313         Remove.
2314         (i386_linux_iterate_over_regset_sections): New.
2315         (i386_linux_init_abi): Don't choose a regset section list, but
2316         install new iterator in gdbarch.
2317         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2318         (linux_collect_regset_section_cb): New function, logic moved
2319         from...
2320         (linux_collect_thread_registers): ...loop body here.  Use iterator
2321         method instead of walking through list.
2322         (linux_make_corefile_notes_1): Check for presence of iterator
2323         method instead of regset section list.
2324         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2325         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2326         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2327         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2328         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2329         (ppc_linux_init_abi): Don't choose from above regset section
2330         lists, but install new iterator in gdbarch.
2331         * regset.h (struct core_regset_section): Remove.
2332         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2333         have_linux_v1, have_linux_v2, and have_tdb.
2334         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2335         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2336         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2337         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2338         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2339         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2340         new tdep fields.
2341         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2342         regset section lists, but install new iterator.
2343
2344 2014-09-29  Jan Kratochvil  <[email protected]>
2345
2346         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2347
2348 2014-09-26  Simon Marchi  <[email protected]>
2349
2350         * progspace.c (print_program_space): Don't prune program spaces
2351         before printing them.
2352
2353 2014-09-25  Pedro Alves  <[email protected]>
2354
2355         * infrun.c (user_visible_resume_ptid): Don't check
2356         singlestep_breakpoints_inserted_p.
2357
2358 2014-09-25  Pedro Alves  <[email protected]>
2359
2360         * breakpoint.c (should_be_inserted): Add debug output.
2361
2362 2014-09-25  Pedro Alves  <[email protected]>
2363
2364         * infrun.c (stepping_past_instruction_at)
2365         (clear_exit_convenience_vars): Point at infrun.h instead of
2366         inferior.h.
2367         (handle_signal_stop): Fix typo.
2368
2369 2014-09-24  Yao Qi  <[email protected]>
2370
2371         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2372         bitmask.
2373
2374 2014-09-22  Gary Benson  <[email protected]>
2375
2376         * target.c (target_stop): Updated comment.
2377
2378 2014-09-22  Gary Benson  <[email protected]>
2379
2380         * target/target.h (target_stop_ptid): Renamed as...
2381         (target_stop_and_wait): New function.  Updated comment.
2382         All uses updated.
2383         (target_continue_ptid): Renamed as...
2384         (target_continue_no_signal): New function.  Updated comment.
2385         All uses updated.
2386
2387 2014-09-22  Pedro Alves  <[email protected]>
2388
2389         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2390         and "auto" merged.
2391         * breakpoint.c (enum ugll_insert_mode): New enum.
2392         (always_inserted_mode): Now a plain boolean.
2393         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2394         (breakpoints_always_inserted_mode): Delete.
2395         (breakpoints_should_be_inserted_now): New function.
2396         (insert_breakpoints): Pass UGLL_INSERT to
2397         update_global_location_list instead of calling
2398         insert_breakpoint_locations manually.
2399         (create_solib_event_breakpoint_1): New, factored out from ...
2400         (create_solib_event_breakpoint): ... this.
2401         (create_and_insert_solib_event_breakpoint): Use
2402         create_solib_event_breakpoint_1 instead of calling
2403         insert_breakpoint_locations manually.
2404         (update_global_location_list): Change parameter type from boolean
2405         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2406         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2407         (update_global_location_list_nothrow): Change parameter type from
2408         boolean to enum ugll_insert_mode.
2409         (_initialize_breakpoint): "breakpoint always-inserted" option is
2410         now a boolean command.  Update help text.
2411         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2412         (breakpoints_should_be_inserted_now): New declaration.
2413         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2414         Remove breakpoints_always_inserted_mode check.
2415         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2416         * remote.c (remote_start_remote): Likewise.
2417
2418 2014-09-22  Pedro Alves  <[email protected]>
2419
2420         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2421         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2422         Instead, pass UGLL_INSERT to update_global_location_list.
2423         (update_global_location_list): Change parameter type from boolean
2424         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2425         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2426         (create_solib_event_breakpoint_1): New, factored out from ...
2427         (create_solib_event_breakpoint): ... this.
2428         (create_and_insert_solib_event_breakpoint): Use
2429         create_solib_event_breakpoint_1 instead of calling
2430         insert_breakpoint_locations manually.
2431         (update_global_location_list): Handle UGLL_INSERT.
2432
2433 2014-09-22  Pedro Alves  <[email protected]>
2434
2435         * breakpoint.c (enum ugll_insert_mode): New enum.
2436         (update_global_location_list)
2437         (update_global_location_list_nothrow): Change parameter type from
2438         boolean to enum ugll_insert_mode.  All callers adjusted.
2439
2440 2014-09-19  Joel Brobecker  <[email protected]>
2441
2442         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2443         SystemTap support in GDB.
2444
2445 2014-09-19  Don Breazeal  <[email protected]>
2446
2447         * linux-nat.c (linux_handle_extended_wait): Call
2448         linux_ptrace_get_extended_event.
2449         (wait_lwp): Call linux_is_extended_waitstatus.
2450         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2451         and linux_is_extended_waitstatus.
2452         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2453         linux_ptrace_get_extended_event.
2454         (linux_ptrace_get_extended_event): New function.
2455         (linux_is_extended_waitstatus): New function.
2456         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2457         (linux_is_extended_waitstatus): New declarations.
2458
2459 2014-09-19  Yao Qi  <[email protected]>
2460
2461         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2462         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2463         comments.  Callers update.
2464         (dwarf_decode_lines): Likewise.
2465         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2466         comments.  Skip the line table if  'lowpc' is greater than
2467         'address'.  Don't check
2468         dwarf2_per_objfile->has_section_at_zero.
2469
2470 2014-09-18  Doug Evans  <[email protected]>
2471
2472         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2473         * python/py-symtab.c (stpy_get_producer): New function.
2474         (symtab_object_getset): Add "producer" attribute.
2475
2476 2014-09-17  Ulrich Weigand  <[email protected]>
2477
2478         PR gdb/17384
2479         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2480         (do_captured_read_memory_integer): Remove.
2481         (safe_read_memory_integer): Use target_read_memory directly instead
2482         of catching errors in do_captured_read_memory_integer.
2483
2484 2014-09-16  Maciej W. Rozycki  <[email protected]>
2485
2486         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2487         not gdb/doc.
2488
2489 2014-09-16  Sergio Durigan Junior  <[email protected]>
2490
2491         * objc-lang.c (find_implementation_from_class): Remove dead code.
2492
2493 2014-09-16  Sergio Durigan Junior  <[email protected]>
2494
2495         PR cli/7233
2496         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2497         "fprintf_unfiltered (gdb_stdlog...)".
2498
2499 2014-09-16  Patrick Palka  <[email protected]>
2500
2501         PR breakpoints/12526
2502         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2503         val_bitsize.
2504         * breakpoint.c (watch_command_1): Use these fields to retain
2505         bitfield information.
2506         (extract_bitfield_from_watchpoint_value): New function.
2507         (watchpoint_check): Use it.
2508         (update_watchpoint): Use it.  Optimize the address and length of a
2509         HW watchpoint pointing to a bitfield.
2510         * value.h (unpack_value_bitfield): New prototype.
2511         * value.c (unpack_value_bitfield): Make extern.
2512
2513 2014-09-16  Samuel Thibault  <[email protected]>
2514
2515         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2516         x86-dregs.o.
2517         * gnu-nat.c (inf_threads): New function.
2518         * gnu-nat.h (inf_threads_ftype): New typedef.
2519         (inf_threads): New declaration.
2520         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2521         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2522         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2523         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2524         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2525         (i386_gnu_dr_get_control): New functions.
2526         (reg_addr): New structure.
2527         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2528         i386 debugging register hooks.
2529         * NEWS: Mention this.
2530
2531 2014-08-13  Omair Javaid  <[email protected]>
2532
2533         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2534         vector data transfer instructions.
2535         (arm_record_coproc_data_proc): Updated.
2536
2537 2014-08-13  Omair Javaid  <[email protected]>
2538
2539         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2540         arm_record_exreg_ld_st_insn.
2541         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2542         load/store insns.
2543
2544 2014-08-13  Omair Javaid  <[email protected]>
2545
2546         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2547         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2548         processing instructions.
2549
2550 2014-08-13  Omair Javaid  <[email protected]>
2551
2552         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2553         for advance SIMD struct ld/st insn.
2554         (thumb2_record_decode_insn_handler): Replace stub handler with
2555         thumb2_record_asimd_struct_ld_st.
2556
2557 2014-08-13  Omair Javaid  <[email protected]>
2558
2559         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2560         for asimd, vfp and coprocessor insns.
2561         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2562         and coprocessor insns.
2563         (thumb2_record_coproc_insn): New function.
2564         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2565         handlers.
2566         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2567         opcode 110 insns.
2568
2569 2014-09-13  Doug Evans  <[email protected]>
2570
2571         * NEWS: Mention new "queue-signal" command.
2572         * infcmd.c (queue_signal_command): New function.
2573         (_initialize_infcmd): Add new queue-signal command.
2574
2575 2014-09-13  Doug Evans  <[email protected]>
2576
2577         * linux-nat.c (wait_lwp): Add debugging printf.
2578         (linux_nat_wait_1): Ditto.
2579
2580 2014-09-12  Pedro Alves  <[email protected]>
2581
2582         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2583         (create_and_insert_solib_event_breakpoint): New functions.
2584         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2585         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2586         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2587         (remove_dbx_link_breakpoint): Delete function.
2588         (insert_dbx_link_bpt_in_file): Use
2589         create_and_insert_solib_event_breakpoint instead of
2590         deprecated_insert_raw_breakpoint.
2591         (procfs_wait): Don't check whether we hit __dbx_link here.
2592         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2593         here.
2594         * solib-irix.c (base_breakpoint): Delete global.
2595         (disable_break): Delete function.
2596         (enable_break): Use create_solib_event_breakpoint
2597         instead of deprecated_insert_raw_breakpoint.
2598         (irix_solib_handle_event): New function.
2599         (irix_solib_create_inferior_hook): Don't run the target or disable
2600         the mapping-complete breakpoint here.
2601         (_initialize_irix_solib): Install irix_solib_handle_event as
2602         so_ops->handle_event hook.
2603
2604 2014-09-12  Edjunior Barbosa Machado  <[email protected]>
2605             Ulrich Weigand  <[email protected]>
2606
2607         PR tdep/17379
2608         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2609         instead of read_memory_unsigned_integer.
2610
2611 2014-09-12  Gary Benson  <[email protected]>
2612
2613         * nat/linux-waitpid.c: Include common-defs.h.
2614         [GDBSERVER]: Add FIXME comment.
2615         [!GDBSERVER]: Don't include defs.h or signal.h.
2616         (linux_debug) [!GDBSERVER]: Remove empty block.
2617
2618 2014-09-12  Gary Benson  <[email protected]>
2619
2620         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2621         Don't include defs.h or server.h.
2622
2623 2014-09-12  Gary Benson  <[email protected]>
2624
2625         * nat/linux-btrace.c: Include common-defs.h.
2626         Don't include defs.h, server.h or gdbthread.h.
2627         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2628
2629 2014-09-12  Gary Benson  <[email protected]>
2630
2631         * common/agent.c: Include common-defs.h.
2632         Don't include defs.h or server.h.
2633         * common/buffer.c: Likewise.
2634         * common/common-debug.c: Likewise.
2635         * common/common-utils.c: Likewise.
2636         * common/errors.c: Likewise.
2637         * common/filestuff.c: Likewise.
2638         * common/format.c: Likewise.
2639         * common/gdb_vecs.c: Likewise.
2640         * common/print-utils.c: Likewise.
2641         * common/ptid.c: Likewise.
2642         * common/rsp-low.c: Likewise.
2643         * common/signals.c: Likewise.
2644         * common/vec.c: Likewise.
2645         * common/xml-utils.c: Likewise.
2646         * nat/linux-osdata.c: Likewise.
2647         * nat/linux-procfs.c: Likewise.
2648         * nat/linux-ptrace.c: Likewise.
2649         * nat/mips-linux-watch.c: Likewise.
2650         * target/waitstatus.c: Likewise.
2651
2652 2014-09-12  Tom Tromey  <[email protected]>
2653             Gary Benson  <[email protected]>
2654
2655         * common/common-regcache.h: New file.
2656         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2657         * regcache.h: Include common-regcache.h.
2658         (regcache_read_pc): Don't declare.
2659         * regcache.c (get_thread_regcache_for_ptid): New function.
2660         * nat/linux-btrace.c: Don't include regcache.h.
2661         Include common-regcache.h.
2662         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2663
2664 2014-09-11  Thomas Schwinge  <[email protected]>
2665
2666         * regcache.h (struct regset): Declare.
2667
2668 2014-09-11  Pedro Alves  <[email protected]>
2669
2670         PR gdb/17347
2671         * main.c: Include "infrun.h".
2672         (catch_command_errors, catch_command_errors_const): Wait for the
2673         foreground command to complete.
2674         * top.c (maybe_wait_sync_command_done): New function, factored out
2675         from ...
2676         (maybe_wait_sync_command_done): ... here.
2677         * top.h (maybe_wait_sync_command_done): New declaration.
2678
2679 2014-09-11  Tom Tromey  <[email protected]>
2680             Gary Benson  <[email protected]>
2681
2682         * common/symbol.h: New file.
2683         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2684         * minsyms.c (find_minimal_symbol_address): New function.
2685         * common/agent.c: Include common/symbol.h.
2686         [!GDBSERVER]: Don't include objfiles.h.
2687         (agent_look_up_symbols): Use find_minimal_symbol_address.
2688
2689 2014-09-11  Gary Benson  <[email protected]>
2690
2691         * target/target.h (target_stop_ptid, target_continue_ptid):
2692         Declare.
2693         * target.c (target_stop_ptid, target_continue_ptid): New
2694         functions.
2695         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2696         (agent_run_command): Always use target_stop_ptid and
2697         target_continue_ptid.
2698
2699 2014-09-11  Tom Tromey  <[email protected]>
2700             Gary Benson  <[email protected]>
2701
2702         * target/target.h: New file.
2703         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2704         * target.h: Include target/target.h.
2705         (target_read_memory, target_write_memory): Don't declare.
2706         * target.c (target_read_uint32): New function.
2707         * common/agent.c: Include target/target.h.
2708         [!GDBSERVER]: Don't include target.h.
2709         (helper_thread_id): Type changed to uint32_t.
2710         (agent_get_helper_thread_id): Use target_read_uint32.
2711         (agent_run_command): Always use target_read_memory and
2712         target_write_memory.
2713         (agent_capability): Type changed to uint32_t.
2714         (agent_capability_check): Use target_read_uint32.
2715
2716 2014-09-11  Gary Benson  <[email protected]>
2717
2718         * common/common-debug.h (show_debug_regs): Declare.
2719         * common/common-debug.c (show_debug_regs): Define.
2720         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2721         all uses with show_debug_regs.  Replace all uses that considered
2722         debug_hw_points as a multi-value integer with straight boolean
2723         uses.
2724         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2725         with show_debug_regs.
2726         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2727         all uses with show_debug_regs.
2728         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2729         uses with show_debug_regs.
2730
2731 2014-09-10  Ulrich Weigand  <[email protected]>
2732
2733         * findvar.c (address_from_register): Handle targets requiring
2734         a special conversion routine even for plain pointer types.
2735
2736 2014-09-10  Ulrich Weigand  <[email protected]>
2737
2738         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2739         (store_register): Do not call exec_one_dummy_insn.
2740
2741 2014-09-10  Joel Brobecker  <[email protected]>
2742
2743         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2744         dereference it first.  Use value_enclosing_type instead of
2745         value_type.
2746         (ada_array_length): Likewise.
2747
2748 2014-09-10  Joel Brobecker  <[email protected]>
2749
2750         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2751         Adjust function implementation and documentation accordingly.
2752         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2753         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2754         Update call to ada_value_ptr_subscript.
2755
2756 2014-09-10  Joel Brobecker  <[email protected]>
2757
2758         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2759         instead of VAL's type.
2760
2761 2014-09-10  Joel Brobecker  <[email protected]>
2762
2763         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2764
2765 2014-09-09  Doug Evans  <[email protected]>
2766
2767         PR guile/17367
2768         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2769         last parameter to pkg-config, not first.
2770         * configure.ac: Pass --with-guile provided pkg-config path to
2771         GDB_GUILE_PROGRAM_NAMES.
2772         * configure: Regenerate.
2773
2774 2014-09-09  Gabriel Krisman Bertazi  <[email protected]>
2775
2776         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2777         Bertazi".
2778
2779 2014-09-09  Maciej W. Rozycki  <[email protected]>
2780
2781         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2782         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2783         the list of sections determining GDB_OSABI_IRIX.
2784
2785 2014-09-09  James Hogan  <[email protected]>
2786
2787         * MAINTAINERS (Write After Approval): Add "James Hogan".
2788
2789 2014-09-09  James Hogan  <[email protected]>
2790
2791         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2792
2793 2014-09-09  Joel Brobecker  <[email protected]>
2794
2795         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2796
2797 2014-09-08  Doug Evans  <[email protected]>
2798
2799         PR 17247
2800         * guile.c: #include <signal.h>.
2801         (_initialize_guile): Block SIGCHLD while initializing Guile.
2802
2803         Replaces the following, which is reverted.
2804
2805         2014-07-26  Doug Evans  <[email protected]>
2806
2807         PR 17185
2808         * configure.ac: Add check for header gc/gc.h.
2809         Add check for function setenv.
2810         * configure: Regenerate.
2811         * config.in: Regenerate.
2812         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2813
2814 2014-09-08  Doug Evans  <[email protected]>
2815
2816         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2817         with named constant.  Fix style of pointer comparison.
2818         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2819
2820 2014-09-07  Gabriel Krisman Bertazi  <[email protected]>
2821
2822         PR gdb/17035
2823         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2824         decide whether we display the command on "show user".
2825         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2826         printing command name.
2827         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2828         * cli/cli-decode.c (cli_user_command_p): Create helper function
2829         to verify whether cmd_list_element is a user-defined command.
2830
2831 2014-09-07  Jan Kratochvil  <[email protected]>
2832
2833         PR python/17355
2834         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2835         Fix goto out of TRY_CATCH.
2836
2837 2014-09-06  Doug Evans  <[email protected]>
2838             Tom Tromey  <[email protected]>
2839
2840         PR 15276
2841         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2842         $_any_caller_matches.
2843         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2844         * python/lib/gdb/function/caller_is.py: New file.
2845
2846 2014-09-06  Doug Evans  <[email protected]>
2847
2848         * infcmd.c (program_info): Fix typo.
2849
2850 2014-09-05  Sergio Durigan Junior  <[email protected]>
2851
2852         PR gdb/17235
2853         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2854         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2855         subexpressions on SDT probes.
2856
2857 2014-09-04  Pedro Alves  <[email protected]>
2858
2859         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2860         the input is only one character long.
2861
2862 2014-09-04  Sergio Durigan Junior  <[email protected]>
2863
2864         PR fortran/17237
2865         * f-valprint.c (f_val_print): Specify the correct print option to
2866         use when printing integer values.
2867
2868 2014-09-04  Gary Benson  <[email protected]>
2869
2870         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2871         Remove code to cope with LWPs wrapped as PIDs.
2872         Add assertions to ensure no wrapped LWPs are passed.
2873
2874 2014-09-04  Pedro Alves  <[email protected]>
2875
2876         * value.c (value_ranges_copy_adjusted): New function, factored out
2877         from ...
2878         (value_contents_copy_raw): ... here.
2879         (unpack_value_bits_as_long_1): Rename back to ...
2880         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2881         'result' parameters.  Change return type to LONGEST.
2882         (unpack_value_bits_as_long): Delete.
2883         (unpack_value_field_as_long_1): Delete.
2884         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2885         (unpack_value_bitfield): New function.
2886         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2887         (value_fetch_lazy): Use unpack_value_bitfield.
2888         * value.h (unpack_value_bits_as_long): Delete declaration.
2889
2890 2014-09-03  Sasha Smundak  <[email protected]>
2891
2892         * python/py-frame.c (frapy_read_register): New function.
2893
2894 2014-09-03  James Hogan  <[email protected]>
2895
2896         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2897         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2898
2899 2014-09-03  Sergio Durigan Junior  <[email protected]>
2900
2901         PR python/16699
2902         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2903         function.
2904         (add_cmd): Set "completer_handle_brkchars" to NULL.
2905         * cli/cli-decode.h (struct cmd_list_element)
2906         <completer_handle_brkchars>: New field.
2907         * command.h (completer_ftype_void): New typedef.
2908         (set_cmd_completer_handle_brkchars): New prototype.
2909         * completer.c (set_gdb_completion_word_break_characters): New
2910         function.
2911         (complete_line_internal): Call "completer_handle_brkchars"
2912         callback from command.
2913         * completer.h: Include "command.h".
2914         (set_gdb_completion_word_break_characters): New prototype.
2915         * python/py-cmd.c (cmdpy_completer_helper): New function.
2916         (cmdpy_completer_handle_brkchars): New function.
2917         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2918         (cmdpy_init): Set completer_handle_brkchars to
2919         cmdpy_completer_handle_brkchars.
2920
2921 2014-09-03  Gary Benson  <[email protected]>
2922
2923         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2924         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2925         Loop conditions changed to equivalent form.
2926         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2927         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2928         ALL_DEBUG_ADDRESS_REGISTERS.
2929
2930 2014-09-03  Joel Brobecker  <[email protected]>
2931
2932         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2933         description fix.
2934
2935 2014-09-02  Doug Evans  <[email protected]>
2936
2937         * typeprint.c (find_global_typedef): Fix comment.
2938
2939 2014-09-02  Gary Benson  <[email protected]>
2940
2941         * i386-nat.h: Renamed as...
2942         * x86-nat.h: New file.  All type, function and variable name
2943         prefixes changed from "i386_" to "x86_".  All references updated.
2944         * i386-nat.c: Renamed as...
2945         * x86-nat.c: New file.  All type, function and variable name
2946         prefixes changed from "i386_" to "x86_".  All references updated.
2947         * common/i386-xstate.h: Renamed as...
2948         * common/x86-xstate.h: New file.  All type, function and variable
2949         name prefixes changed from "i386_" to "x86_".  All references
2950         updated.
2951         * nat/i386-cpuid.h: Renamed as...
2952         * nat/x86-cpuid.h: New file.  All type, function and variable name
2953         prefixes changed from "i386_" to "x86_".  All references updated.
2954         * nat/i386-gcc-cpuid.h: Renamed as...
2955         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2956         name prefixes changed from "i386_" to "x86_".  All references
2957         updated.
2958         * nat/i386-dregs.h: Renamed as...
2959         * nat/x86-dregs.h: New file.  All type, function and variable name
2960         prefixes changed from "i386_" to "x86_".  All references updated.
2961         * nat/i386-dregs.c: Renamed as...
2962         * nat/x86-dregs.c: New file.  All type, function and variable name
2963         prefixes changed from "i386_" to "x86_".  All references updated.
2964
2965 2014-09-01  Maciej W. Rozycki  <[email protected]>
2966
2967         * varobj.c (_initialize_varobj): Move to the end of file.
2968
2969 2014-08-29  Gary Benson  <[email protected]>
2970
2971         * common/common-exceptions.h: New file.
2972         * common/common-exceptions.c: Likewise.
2973         * Makefile.in (SFILES): Add common/common-exceptions.c.
2974         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2975         (COMMON_OBS): Add common-exceptions.o.
2976         (common-exceptions.o): New rule.
2977         * exceptions.h (common-exceptions.h): Include.
2978         (gdb_setjmp.h): Do not include.
2979         (return_reason): Moved to common-exceptions.h.
2980         (enum return_reason): Likewise.
2981         (RETURN_MASK): Likewise.
2982         (typedef return_mask): Likewise.
2983         (enum errors): Likewise.
2984         (struct gdb_exception): Likewise.
2985         (exceptions_state_mc_init): Likewise.
2986         (exceptions_state_mc_action_iter): Likewise.
2987         (exceptions_state_mc_action_iter_1): Likewise.
2988         (TRY_CATCH): Likewise.
2989         (throw_exception): Likewise.
2990         (throw_verror): Likewise.
2991         (throw_vquit): Likewise.
2992         (throw_error): Likewise.
2993         (throw_quit): Likewise.
2994         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2995         (enum catcher_action): Likewise.
2996         (struct catcher): Likewise.
2997         (current_catcher): Likewise.
2998         (catcher_list_size): Likewise.
2999         (exceptions_state_mc_init): Likewise.
3000         (catcher_pop): Likewise.
3001         (exceptions_state_mc): Likewise.
3002         (exceptions_state_mc_action_iter): Likewise.
3003         (exceptions_state_mc_action_iter_1): Likewise.
3004         (throw_exception): Likewise.
3005         (exception_messages): Likewise.
3006         (exception_messages_size): Likewise.
3007         (throw_it): Likewise.
3008         (throw_verror): Likewise.
3009         (throw_vquit): Likewise.
3010         (throw_error): Likewise.
3011         (throw_quit): Likewise.
3012         (prepare_to_throw_exception): New function.
3013
3014 2014-08-29  Gary Benson  <[email protected]>
3015
3016         * common/gdb_setjmp.h: New file.
3017         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3018         * configure.ac: Move sigsetjmp check...
3019         * common/common.m4: ...here.
3020         * configure: Regenerate.
3021         * cp-support.c (SIGJMP_BUF): Delete.
3022         (SIGSETJMP): Likewise.
3023         (SIGLONGJMP): Likewise.
3024         * exceptions.h (gdb_setjmp.h): Include.
3025         (setjmp.h): Do not include.
3026         (EXCEPTIONS_SIGJMP_BUF): Delete.
3027         (EXCEPTIONS_SIGSETJMP): Likewise.
3028         (EXCEPTIONS_SIGLONGJMP): Likewise.
3029         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3030         from gdb_setjmp.h.
3031         * exceptions.c: Likewise.
3032
3033 2014-08-29  Gary Benson  <[email protected]>
3034
3035         * cleanups.h: Moved to...
3036         * common/cleanups.h: New file.
3037         * cleanups.c: Moved to...
3038         * common/cleanups.c: New file.  Include common-defs.h and
3039         cleanups.h.  Do not include defs.h.
3040         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3041         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3042         (cleanups.o): New rule.
3043
3044 2014-08-29  Gary Benson  <[email protected]>
3045
3046         * common/errors.h (internal_warning): New declaration.
3047         (internal_vwarning): Likewise.
3048         * common/errors.c (internal_warning): New function.
3049         * utils.h (internal_warning): Don't declare.
3050         (internal_vwarning): Likewise.
3051         * utils.c (internal_warning): Removed.
3052
3053 2014-08-29  Gary Benson  <[email protected]>
3054
3055         * main.c (captured_main): Use warning during startup.
3056         Prefix startup warning messages with command name.
3057
3058 2014-08-29  Gary Benson  <[email protected]>
3059
3060         * main.c (captured_main): Handle usage errors with error.
3061
3062 2014-08-29  Gary Benson  <[email protected]>
3063
3064         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3065         exit pair with a call to error.  Wrap the message with _().
3066
3067 2014-08-29  Gary Benson  <[email protected]>
3068
3069         * main.c (captured_main): Replace a fprintf/exit
3070         pair with a call to error.  Wrap the message with _().
3071
3072 2014-08-29  Gary Benson  <[email protected]>
3073
3074         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3075         pairs with calls to error.  Wrap the message with _().
3076
3077 2014-08-29  Gary Benson  <[email protected]>
3078
3079         * utils.c (vwarning): Protect calls to target_terminal_ours
3080         and wrap_here.
3081
3082 2014-08-29  Gary Benson  <[email protected]>
3083
3084         * exceptions.c (print_flush): Protect calls to
3085         target_terminal_ours and wrap_here.
3086
3087 2014-08-29  Gary Benson  <[email protected]>
3088
3089         * utils.h (filtered_printing_initialized): New declaration.
3090         * utils.c (abort_with_message): New function.
3091         (internal_vproblem): Use abort_with_message for first level
3092         recursive internal problems, and if gdb_stderr is not set up.
3093         Protect calls to target_terminal_ours, begin_line and query.
3094
3095 2014-08-28  Doug Evans  <[email protected]>
3096
3097         * symtab.c (in_prologue): Move definition to better spot.
3098         (skip_prologue_using_sal): Ditto.
3099
3100 2014-08-28  Doug Evans  <[email protected]>
3101
3102         * symtab.c (find_function_start_sal): Move definition to better spot.
3103
3104 2014-08-28  Yao Qi  <[email protected]>
3105
3106         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3107         found_stack_adjust in forward scan.  Remove condition check
3108         on found_stack_adjust which is always true.  Indent the code.
3109
3110 2014-08-28  Yao Qi  <[email protected]>
3111
3112         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3113         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3114         (dwarf_decode_lines): Remove argument
3115         want_line_info.  Remove condition check on want_line_info.
3116         Callers update.
3117
3118 2014-08-27  Doug Evans  <[email protected]>
3119
3120         * dwarf2read.c (dwarf_record_line): Fix typo.
3121
3122 2014-08-27  Patrick Palka  <[email protected]>
3123
3124         * target.h (struct target_ops::to_terminal_save_ours): Remove
3125         declaration.
3126         (target_terminal_save_ours): Remove macro.
3127         * target-delegates.c: Regenerate.
3128         * inf-child.c (inf_child_target): Don't set the nonexistent
3129         field to_terminal_save_ours.
3130         * inferior.h (child_terminal_save_ours): Remove declaration.
3131         * terminal.h (gdb_save_tty_state): New declaration.
3132         * inflow.c (child_terminal_save_ours): Rename to ...
3133         (gdb_save_tty_state): ... this.
3134         * tui/tui.c: Include terminal.h.
3135         (tui_enable): Use gdb_save_tty_state instead of
3136         target_terminal_save_ours.
3137         (tui_disable): Likewise.
3138
3139 2014-08-25  Doug Evans  <[email protected]>
3140
3141         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3142         Pass NULL instead of 0 for context pointer.
3143
3144 2014-08-25  Yao Qi  <[email protected]>
3145
3146         * dwarf2read.c: Fix grammatical error.
3147
3148 2014-08-24  Yao Qi  <[email protected]>
3149
3150         * dwarf2read.c (scan_partial_symbols):  Update comments.
3151         Rename argument 'need_pc' with 'set_addrmap'.
3152         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
3153         'set_addrmap'.
3154         (add_partial_module): Likewise.
3155         (add_partial_subprogram): Likewise.  Update comments.
3156         (dwarf2_name): Fix typo.
3157
3158 2014-08-22  Doug Evans  <[email protected]>
3159
3160         PR 17276
3161         * dwarf2read.c (dwarf_record_line_p): New function.
3162         (dwarf_decode_lines_1): Ignore subsequent line number entries
3163         for the same line if any entry had a non-zero discriminator.
3164
3165 2014-08-22  Doug Evans  <[email protected]>
3166
3167         * buildsym.h (record_line_ftype): New typedef.
3168         (record_line): Use it.
3169         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3170         (dwarf_decode_lines_1): Call them.
3171
3172 2014-08-22  Yao Qi  <[email protected]>
3173
3174         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3175         (ctf_end): Remove code.
3176
3177 2014-08-21  Jan Kratochvil  <[email protected]>
3178
3179         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3180         (linux_make_corefile_notes): call update_thread_list, protected against
3181         exceptions.
3182
3183 2014-08-21  Pedro Alves  <[email protected]>
3184
3185         * infcmd.c (attach_command): Remove comment.
3186
3187 2014-08-21  Bin Cheng  <[email protected]>
3188
3189         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3190         unsigned LONGEST to ULONGEST.
3191
3192 2014-08-20  Pedro Alves  <[email protected]>
3193
3194         * Makefile.in (check-read1): New rule.
3195
3196 2014-08-20  Joel Brobecker  <[email protected]>
3197
3198         * value.c (value_from_contents_and_address): Strip resolved_type's
3199         typedef layers before checking its TYPE_DATA_LOCATION.
3200
3201 2014-08-20  Pedro Alves  <[email protected]>
3202
3203         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3204
3205 2014-08-20  Yao Qi  <[email protected]>
3206
3207         * amd64-tdep.c (amd64_classify): Add a blank line after the
3208         example.  Move "*/" to a new line.
3209         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3210         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3211         * dwarf2read.c (psymtab_include_file_name): Likewise.
3212
3213 2014-08-19  Andrew Burgess  <[email protected]>
3214             Pedro Alves  <[email protected]>
3215
3216         PR symtab/14604
3217         PR symtab/14605
3218         * ada-lang.c (coerce_unspec_val_to_type): Use
3219         value_contents_copy_raw.
3220         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3221         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3222         * cp-valprint.c (cp_print_value_fields): Let the common printing
3223         code handle optimized out values.
3224         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3225         * d-valprint.c (dynamic_array_type): Use
3226         value_bits_any_optimized_out.
3227         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3228         check_any_valid fields.
3229         (check_pieced_value_bits): Delete and inline ...
3230         (check_pieced_synthetic_pointer): ... here.
3231         (check_pieced_value_validity): Delete.
3232         (check_pieced_value_invalid): Delete.
3233         (pieced_value_funcs): Remove check_validity and check_any_valid
3234         fields.
3235         (read_pieced_value): Use mark_value_bits_optimized_out.
3236         (write_pieced_value): Switch to use
3237         mark_value_bytes_optimized_out.
3238         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3239         of assuming the whole value is optimized out.
3240         * findvar.c (read_frame_register_value): Remove special handling
3241         of optimized out registers.
3242         (value_from_register): Use mark_value_bytes_optimized_out.
3243         * frame-unwind.c (frame_unwind_got_optimized): Use
3244         mark_value_bytes_optimized_out.
3245         * jv-valprint.c (java_value_print): Adjust.
3246         (java_print_value_fields): Let the common printing code handle
3247         optimized out values.
3248         * mips-tdep.c (mips_print_register): Remove special handling of
3249         optimized out registers.
3250         * opencl-lang.c (lval_func_check_validity): Delete.
3251         (lval_func_check_any_valid): Delete.
3252         (opencl_value_funcs): Remove check_validity and check_any_valid
3253         fields.
3254         * p-valprint.c (pascal_object_print_value_fields): Let the common
3255         printing code handle optimized out values.
3256         * stack.c (read_frame_arg): Remove special handling of optimized
3257         out values.  Fetch both VAL and ENTRYVAL before comparing
3258         contents.  Adjust to value_available_contents_eq rename.
3259         * valprint.c (valprint_check_validity)
3260         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3261         (val_print_array_elements): Adjust.
3262         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3263         (value_bits_any_optimized_out): New function.
3264         (value_entirely_covered_by_range_vector): New function, factored
3265         out from value_entirely_unavailable.
3266         (value_entirely_unavailable): Reimplement.
3267         (value_entirely_optimized_out): New function.
3268         (insert_into_bit_range_vector): New function, factored out from
3269         mark_value_bits_unavailable.
3270         (mark_value_bits_unavailable): Reimplement.
3271         (struct ranges_and_idx): New struct.
3272         (find_first_range_overlap_and_match): New function, factored out
3273         from value_available_contents_bits_eq.
3274         (value_available_contents_bits_eq): Rename to ...
3275         (value_contents_bits_eq): ... this.  Check both unavailable
3276         contents and optimized out contents.
3277         (value_available_contents_eq): Rename to ...
3278         (value_contents_eq): ... this.
3279         (allocate_value_lazy): Remove reference to the old optimized_out
3280         boolean.
3281         (allocate_optimized_out_value): Use
3282         mark_value_bytes_optimized_out.
3283         (require_not_optimized_out): Adjust to check whether the
3284         optimized_out vec is empty.
3285         (ranges_copy_adjusted): New function, factored out from
3286         value_contents_copy_raw.
3287         (value_contents_copy_raw): Also copy the optimized out ranges.
3288         Assert the destination ranges aren't optimized out.
3289         (value_contents_copy): Update comment, remove call to
3290         require_not_optimized_out.
3291         (value_contents_equal): Adjust to check whether the optimized_out
3292         vec is empty.
3293         (set_value_optimized_out, value_optimized_out_const): Delete.
3294         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3295         New functions.
3296         (value_entirely_optimized_out, value_bits_valid): Delete.
3297         (value_copy): Take a VEC copy of the 'optimized_out' field.
3298         (value_primitive_field): Remove special handling of optimized out.
3299         (value_fetch_lazy): Assert that lazy values have no unavailable
3300         regions.  Use value_bits_any_optimized_out.  Remove some special
3301         handling for optimized out values.
3302         * value.h: Add intro comment about <optimized out> and
3303         <unavailable>.
3304         (struct lval_funcs): Remove check_validity and check_any_valid
3305         fields.
3306         (set_value_optimized_out, value_optimized_out_const): Remove.
3307         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3308         New declarations.
3309         (value_bits_any_optimized_out): New declaration.
3310         (value_bits_valid): Delete declaration.
3311         (value_available_contents_eq): Rename to ...
3312         (value_contents_eq): ... this, and extend comments.
3313
3314 2014-08-19  Jan Kratochvil  <[email protected]>
3315
3316         Fix -fsanitize=address on unreadable inferior strings.
3317         * valprint.c (val_print_string): Fix access before BUFFER.
3318
3319 2014-08-19  Simon Marchi  <[email protected]>
3320
3321         * target.c (target_struct_size): Remove.
3322         (target_struct_allocsize): Remove.
3323         (DEFAULT_ALLOCSIZE): Remove.
3324         (target_ops_p): New typedef.
3325         (DEF_VEC_P (target_ops_p)): New vector type.
3326         (target_structs): Change type to VEC (target_ops_p).
3327         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3328         (find_default_run_target): Rewrite for loop following changes to
3329         target_structs.
3330
3331 2014-08-19  Joel Brobecker  <[email protected]>
3332
3333         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3334         Adjust code accordingly.  Adjust function description comment.
3335
3336 2014-08-19  Yao Qi  <[email protected]>
3337
3338         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3339         types.
3340
3341 2014-08-19  Alan Modra  <[email protected]>
3342
3343         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3344         * config.in: Regenerate.
3345         * configure: Regenerate.
3346
3347 2014-08-19  Tom Tromey  <[email protected]>
3348             Gary Benson  <[email protected]>
3349
3350         * common/common-debug.h: New file.
3351         * common/common-debug.c: Likewise.
3352         * debug.c: Likewise.
3353         * Makefile.in (SFILES): Add common/common-debug.c.
3354         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3355         (COMMON_OBS): Add common-debug.o and debug.o.
3356         (common-debug.o): New rule.
3357         * common/common-defs.h: Include common-debug.h.
3358         * common/agent.c (debug_agent_printf): New function.
3359         (DEBUG_AGENT): Redefine.
3360         * nat/i386-dregs.c (debug_printf): Undefine.
3361
3362 2014-08-19  Gary Benson  <[email protected]>
3363
3364         * common/common-defs.h: Include print-utils.h.
3365         * utils.h: Do not include print-utils.h.
3366
3367 2014-08-19  Tom Tromey  <[email protected]>
3368             Gary Benson  <[email protected]>
3369
3370         * common/common-types.h: New file.
3371         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3372         * common/common-defs.h: Include common-types.h.
3373         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3374         (ULONGEST): Remove.
3375
3376 2014-08-19  Tom Tromey  <[email protected]>
3377             Gary Benson  <[email protected]>
3378
3379         * common/errors.h: New file.
3380         * common/errors.c: Likewise.
3381         * Makefile.in (SFILES): Add common/errors.c.
3382         (HFILES_NO_SRCDIR): Add common/errors.h.
3383         (COMMON_OBS): Add errors.o.
3384         (errors.o): New rule.
3385         * common/common-defs.h: Include errors.h.
3386         * utils.h (perror_with_name, error, verror, warning, vwarning):
3387         Don't declare.
3388         * common/common-utils.h: (malloc_failure, internal_error):
3389         Likewise.
3390
3391 2014-08-19  Gary Benson  <[email protected]>
3392
3393         * utils.c (internal_vproblem): Always print the message.
3394
3395 2014-08-18  Doug Evans  <[email protected]>
3396
3397         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3398
3399 2014-08-18  Joel Brobecker  <[email protected]>
3400
3401         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3402         Return 0 if TYPE is dynamic.
3403         (print_range): Add handling of dynamic ranges.
3404
3405 2014-08-18  Keven Boell  <[email protected]>
3406             Joel Brobecker  <[email protected]>
3407
3408         * gdbtypes.h (struct main_type): Add field "data_location".
3409         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3410         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3411         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3412         a dynamic data location.
3413         (resolve_dynamic_type): Add DW_AT_data_location handling.
3414         (copy_recursive, copy_type): Copy the data_location information
3415         when present.
3416         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3417         * value.c (value_from_contents_and_address): Add
3418         DW_AT_data_location handling.
3419
3420 2014-08-18  Keven Boell  <[email protected]>
3421             Joel Brobecker  <[email protected]>
3422
3423         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3424         field "get_object_address".
3425         * dwarf2expr.c (execute_stack_op): Add handling for
3426         DW_OP_push_object_address.
3427         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3428         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3429         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3430         (dwarf_expr_get_obj_addr): New function.
3431         (dwarf_expr_ctx_funcs): Add get_object_address field.
3432         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3433         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3434         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3435         (needs_get_obj_addr): New function.
3436         (needs_frame_ctx_funcs): Add get_object_address field.
3437         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3438         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3439         (resolve_dynamic_array): Likewise.
3440
3441 2014-08-18  Joel Brobecker  <[email protected]>
3442
3443         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3444         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3445         fixed value for records and unions for which some GNAT encodings
3446         are present.
3447
3448 2014-08-18  Joel Brobecker  <[email protected]>
3449
3450         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3451         rewrite to avoid "else if" and "else" constructs.  Should be
3452         a no-op in practice.
3453
3454 2014-08-18  Joel Brobecker  <[email protected]>
3455
3456         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3457         of lexical block.
3458
3459 2014-08-15  Siva Chandra Reddy  <[email protected]>
3460
3461         PR c++/17132
3462         * eval.c: Update all calls to find_overload_match.
3463         * valarith.c: Likewise.
3464         (value_user_defined_cpp_op, value_user_defined_op): New
3465         argument NOSIDE.  Update all callers.
3466         * valops.c (find_overload_match): New argument NOSIDE.
3467         * value.h (find_overload_match): Update signature.
3468
3469 2014-08-15  Siva Chandra Reddy  <[email protected]>
3470
3471         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3472         'items' methods instead of 'iteritems' method on dictionaries.
3473
3474 2014-08-15  Doug Evans  <[email protected]>
3475
3476         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3477         closer to use.
3478
3479 2014-08-15  Doug Evans  <[email protected]>
3480
3481         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3482
3483 2014-08-15  Doug Evans  <[email protected]>
3484
3485         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3486
3487 2014-08-15  Doug Evans  <[email protected]>
3488
3489         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3490         unused.
3491
3492 2014-08-15  Eli Zaretskii  <[email protected]>
3493
3494         * dcache.h: Include target.h, to avoid compile time warnings.
3495
3496 2014-08-15  Joel Brobecker  <[email protected]>
3497
3498         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3499         frame_info" partial declaration.
3500         * gdbarch.h: Regenerate.
3501
3502 2014-08-15  Yao Qi  <[email protected]>
3503
3504         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3505         Add parameter 'decode_for_pst_p'.  Callers update.
3506
3507 2014-08-13  Yao Qi  <[email protected]>
3508
3509         PR build/17104
3510         * configure.ac: Use local variable 'pos'.
3511         * configure: Regenerated.
3512
3513 2014-08-11  Doug Evans  <[email protected]>
3514
3515         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3516         message, it is redundant with "Reading symbols from ..." message.
3517
3518 2014-08-10  Doug Evans  <[email protected]>
3519
3520         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3521
3522 2014-08-09  Yao Qi  <[email protected]>
3523
3524         PR remote/9053
3525         * remote.c (remote_xfer_partial): Remove dead code.
3526
3527 2014-08-07  Andreas Arnez  <[email protected]>
3528
3529         * ia64-linux-tdep.c: Include "regset.h".
3530         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3531         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3532         (ia64_linux_supply_fpregset): New function.
3533         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3534         (ia64_linux_regset_from_core_section): New function.
3535         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3536         method.
3537
3538 2014-08-07  Andreas Arnez  <[email protected]>
3539
3540         * m68klinux-tdep.c: Include "regset.h".
3541         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3542         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3543         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3544         (m68k_linux_regset_from_core_section): New function.
3545         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3546         method.
3547
3548 2014-08-07  Andreas Arnez  <[email protected]>
3549
3550         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3551         function.  Move logic to...
3552         (tilegx_linux_regmap): ... this new register map.
3553         (tilegx_linux_regset): Refer to register map, replace supply
3554         method by regcache_supply_regset, and add collect method.
3555         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3556         TILEGX_FIRST_EASY_REGNUM.
3557
3558 2014-08-07  Andreas Arnez  <[email protected]>
3559
3560         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3561         that calls regcache_supply_regset and handles the EPC register
3562         separately.  Move main logic to...
3563         (score7_linux_gregmap): ... this new register map.
3564         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3565         (score7_linux_gregset): Refer to register map.  Add collect method.
3566         (score7_linux_regset_from_core_section): Replace
3567         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3568         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3569         (struct regset): Delete unused forward declaraction.
3570         (struct pt_regs): Delete structure definition.
3571         (elf_gregset_t): Delete typedef.
3572
3573 2014-08-07  Andreas Arnez  <[email protected]>
3574
3575         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3576         (nios2_core_regset): Add collect method.
3577
3578 2014-08-07  Andreas Arnez  <[email protected]>
3579
3580         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3581         platform-independent and don't write to read-only input buffer.
3582         (m32r_linux_collect_gregset): New function.
3583         (m32r_linux_gregset): Add collect method.
3584
3585 2014-08-07  Andreas Arnez  <[email protected]>
3586
3587         * hppa-linux-tdep.c (greg_map): Rename to...
3588         (hppa_linux_gregmap): ... this.  Also convert to
3589         regcache_map_entry format.
3590         (hppa_linux_supply_regset): Delete function.
3591         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3592         (hppa_linux_fpregmap): ... this new register map.
3593         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3594         register map, replace supply method by regcache_supply_regset, and
3595         add collect method regcache_collect_regset.
3596
3597 2014-08-07  Andreas Arnez  <[email protected]>
3598
3599         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3600         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3601         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3602         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3603         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3604         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3605         (frv_linux_supply_gregset): Replace main logic by call to
3606         regcache_supply_regset, but keep clearing gr32-gr63.
3607         (frv_linux_supply_fpregset): Delete function.
3608         (frv_linux_gregset): Refer to appropriate register map and add
3609         regcache_collect_regset as the collect method.
3610         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3611         by regcache_supply_regset.
3612
3613 2014-08-07  Andreas Arnez  <[email protected]>
3614
3615         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3616         by call to alpha_supply_int_regs.
3617         (alpha_linux_collect_gregset): New function.
3618         (alpha_linux_supply_fpregset): Replace logic by call to
3619         alpha_supply_fp_regs.
3620         (alpha_linux_collect_fpregset): New function.
3621         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3622
3623 2014-08-07  Andreas Arnez  <[email protected]>
3624
3625         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3626         by call to regcache_collect_regset.
3627         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3628         instead of aarch64_linux_supply_gregset/_fpregset.
3629         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3630         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3631         header file instead.
3632         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3633         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3634         functions.  Move logic to ...
3635         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3636         register maps.
3637         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3638         refer to new register maps, replace *_regset_from_core by
3639         regcache_supply_regset, and also use regcache_collect_regset.
3640         * aarch64-linux-tdep.h: Include "regset.h".
3641         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3642         Delete prototypes.
3643         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3644         macros, moved from C source file.
3645         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3646         variable declarations.
3647
3648 2014-08-07  Andreas Arnez  <[email protected]>
3649
3650         * s390-linux-nat.c: Include "regset.h".
3651         (regmap_gregset): Delete macro.
3652         (s390_64_regmap_gregset): New register map for
3653         regcache_supply/_collect_regset.
3654         (s390_64_gregset): New regset.
3655         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3656         (regmap_fpregset): Delete macro.
3657         (s390_native_supply, s390_native_collect): Delete functions.
3658         (supply_gregset, fill_gregset): Replace s390-specific regmap
3659         handling by a call to regcache_supply/_collect_regset.
3660         (supply_fpregset, fill_fpregset): Call regcache_supply/
3661         _collect_regset instead of s390_native_supply/_collect.
3662         (fetch_regset, store_regset): Likewise.  Also change the last
3663         parameter to a regset instead of a regmap.
3664         (s390_linux_fetch_inferior_registers)
3665         (390_linux_store_inferior_registers): Adjust last parameter in
3666         calls to fetch_regset and store_regset.
3667         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3668         (s390_gregmap): ... this.  Also make static const and convert to
3669         regcache_map_entry format.
3670         (s390x_regmap_gregset): Delete.
3671         (s390_regmap_fpregset): Rename to...
3672         (s390_fpregmap): ... this.  Make static const and convert to
3673         regcache_map_entry format.
3674         (s390_regmap_upper, s390_regmap_last_break)
3675         (s390x_regmap_last_break, s390_regmap_system_call)
3676         (s390_regmap_tdb): Likewise.
3677         (s390_supply_regset, s390_collect_regset): Remove functions.
3678         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3679         s390_supply_regset.
3680         (s390_gregset, s390_fpregset, s390_upper_regset)
3681         (s390_last_break_regset, s390x_last_break_regset)
3682         (s390_system_call_regset, s390_tdb_regset): Make global and
3683         replace s390_supply/_collect_regset by regcache_supply/
3684         _collect_regset.
3685         (s390x_gregset): Delete.
3686         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3687         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3688         (s390_regmap_fpregset, s390_regmap_last_break)
3689         (s390x_regmap_last_break, s390_regmap_system_call)
3690         (s390_regmap_tdb): Delete global variable declarations.
3691         (s390_gregset, s390_fpregset, s390_last_break_regset)
3692         (s390x_last_break_regset, s390_system_call_regset)
3693         (s390_tdb_regset): New global variable declarations.
3694
3695 2014-08-07  Andreas Arnez  <[email protected]>
3696
3697         * regcache.c: Include "regset.h".
3698         (regcache_transfer_regset): New local function.
3699         (regcache_supply_regset, regcache_collect_regset): New functions.
3700         * regcache.h (struct regcache_map_entry): New structure.
3701         (REGCACHE_MAP_SKIP): New enum value.
3702         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3703
3704 2014-08-07  Andreas Arnez  <[email protected]>
3705
3706         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3707         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3708         (ppc_linux_collect_gregset ): Likewise.
3709         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3710         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3711         (ppc_collect_vrregset): Likewise.
3712         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3713         Likewise.
3714
3715 2014-08-07  Yao Qi  <[email protected]>
3716
3717         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3718         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3719         * remote.c (remote_read_bytes): Likewise.
3720
3721 2014-08-07  Yao Qi  <[email protected]>
3722
3723         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3724
3725 2014-08-07  Yao Qi  <[email protected]>
3726
3727         PR remote/17230
3728         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3729         TARGET_XFER_OK instead of 0.
3730
3731 2014-08-07  Gary Benson  <[email protected]>
3732
3733         * common/common-defs.h: Include errno.h.
3734         * defs.h: Do not include errno.h.
3735         * ada-typeprint.c: Likewise.
3736         * c-typeprint.c: Likewise.
3737         * core-regset.c: Likewise.
3738         * corefile.c: Likewise.
3739         * corelow.c: Likewise.
3740         * event-loop.c: Likewise.
3741         * f-typeprint.c: Likewise.
3742         * gnu-nat.c: Likewise.
3743         * go32-nat.c: Likewise.
3744         * i386gnu-nat.c: Likewise.
3745         * m2-typeprint.c: Likewise.
3746         * nat/linux-btrace.c: Likewise.
3747         * p-typeprint.c: Likewise.
3748         * procfs.c: Likewise.
3749         * remote-sim.c: Likewise.
3750         * rs6000-nat.c: Likewise.
3751         * target.c: Likewise.
3752         * typeprint.c: Likewise.
3753         * ui-file.c: Likewise.
3754         * valops.c: Likewise.
3755         * valprint.c: Likewise.
3756
3757 2014-08-07  Gary Benson  <[email protected]>
3758
3759         * common/common-defs.h: Include string.h.
3760         * aarch64-tdep.c: Do not include string.h.
3761         * ada-exp.y: Likewise.
3762         * ada-lang.c: Likewise.
3763         * ada-lex.l: Likewise.
3764         * ada-typeprint.c: Likewise.
3765         * ada-valprint.c: Likewise.
3766         * aix-thread.c: Likewise.
3767         * alpha-linux-tdep.c: Likewise.
3768         * alpha-mdebug-tdep.c: Likewise.
3769         * alpha-nat.c: Likewise.
3770         * alpha-osf1-tdep.c: Likewise.
3771         * alpha-tdep.c: Likewise.
3772         * alphanbsd-tdep.c: Likewise.
3773         * amd64-dicos-tdep.c: Likewise.
3774         * amd64-linux-tdep.c: Likewise.
3775         * amd64-nat.c: Likewise.
3776         * amd64-sol2-tdep.c: Likewise.
3777         * amd64fbsd-tdep.c: Likewise.
3778         * amd64obsd-tdep.c: Likewise.
3779         * arch-utils.c: Likewise.
3780         * arm-linux-nat.c: Likewise.
3781         * arm-linux-tdep.c: Likewise.
3782         * arm-tdep.c: Likewise.
3783         * arm-wince-tdep.c: Likewise.
3784         * armbsd-tdep.c: Likewise.
3785         * armnbsd-nat.c: Likewise.
3786         * armnbsd-tdep.c: Likewise.
3787         * armobsd-tdep.c: Likewise.
3788         * avr-tdep.c: Likewise.
3789         * ax-gdb.c: Likewise.
3790         * ax-general.c: Likewise.
3791         * bcache.c: Likewise.
3792         * bfin-tdep.c: Likewise.
3793         * breakpoint.c: Likewise.
3794         * build-id.c: Likewise.
3795         * buildsym.c: Likewise.
3796         * c-exp.y: Likewise.
3797         * c-lang.c: Likewise.
3798         * c-typeprint.c: Likewise.
3799         * c-valprint.c: Likewise.
3800         * charset.c: Likewise.
3801         * cli-out.c: Likewise.
3802         * cli/cli-cmds.c: Likewise.
3803         * cli/cli-decode.c: Likewise.
3804         * cli/cli-dump.c: Likewise.
3805         * cli/cli-interp.c: Likewise.
3806         * cli/cli-logging.c: Likewise.
3807         * cli/cli-script.c: Likewise.
3808         * cli/cli-setshow.c: Likewise.
3809         * cli/cli-utils.c: Likewise.
3810         * coffread.c: Likewise.
3811         * common/agent.c: Likewise.
3812         * common/buffer.c: Likewise.
3813         * common/buffer.h: Likewise.
3814         * common/common-utils.c: Likewise.
3815         * common/filestuff.c: Likewise.
3816         * common/filestuff.c: Likewise.
3817         * common/format.c: Likewise.
3818         * common/print-utils.c: Likewise.
3819         * common/rsp-low.c: Likewise.
3820         * common/signals.c: Likewise.
3821         * common/vec.h: Likewise.
3822         * common/xml-utils.c: Likewise.
3823         * core-regset.c: Likewise.
3824         * corefile.c: Likewise.
3825         * corelow.c: Likewise.
3826         * cp-abi.c: Likewise.
3827         * cp-name-parser.y: Likewise.
3828         * cp-support.c: Likewise.
3829         * cp-valprint.c: Likewise.
3830         * cris-tdep.c: Likewise.
3831         * d-exp.y: Likewise.
3832         * darwin-nat.c: Likewise.
3833         * dbxread.c: Likewise.
3834         * dcache.c: Likewise.
3835         * demangle.c: Likewise.
3836         * dicos-tdep.c: Likewise.
3837         * disasm.c: Likewise.
3838         * doublest.c: Likewise.
3839         * dsrec.c: Likewise.
3840         * dummy-frame.c: Likewise.
3841         * dwarf2-frame.c: Likewise.
3842         * dwarf2loc.c: Likewise.
3843         * dwarf2read.c: Likewise.
3844         * elfread.c: Likewise.
3845         * environ.c: Likewise.
3846         * eval.c: Likewise.
3847         * event-loop.c: Likewise.
3848         * exceptions.c: Likewise.
3849         * exec.c: Likewise.
3850         * expprint.c: Likewise.
3851         * f-exp.y: Likewise.
3852         * f-lang.c: Likewise.
3853         * f-typeprint.c: Likewise.
3854         * f-valprint.c: Likewise.
3855         * fbsd-nat.c: Likewise.
3856         * findcmd.c: Likewise.
3857         * findvar.c: Likewise.
3858         * fork-child.c: Likewise.
3859         * frame.c: Likewise.
3860         * frv-linux-tdep.c: Likewise.
3861         * frv-tdep.c: Likewise.
3862         * gdb.c: Likewise.
3863         * gdb_bfd.c: Likewise.
3864         * gdbarch.c: Likewise.
3865         * gdbarch.sh: Likewise.
3866         * gdbtypes.c: Likewise.
3867         * gnu-nat.c: Likewise.
3868         * gnu-v2-abi.c: Likewise.
3869         * gnu-v3-abi.c: Likewise.
3870         * go-exp.y: Likewise.
3871         * go-lang.c: Likewise.
3872         * go32-nat.c: Likewise.
3873         * guile/guile.c: Likewise.
3874         * guile/scm-auto-load.c: Likewise.
3875         * hppa-hpux-tdep.c: Likewise.
3876         * hppa-linux-nat.c: Likewise.
3877         * hppanbsd-tdep.c: Likewise.
3878         * hppaobsd-tdep.c: Likewise.
3879         * i386-cygwin-tdep.c: Likewise.
3880         * i386-dicos-tdep.c: Likewise.
3881         * i386-linux-tdep.c: Likewise.
3882         * i386-nto-tdep.c: Likewise.
3883         * i386-sol2-tdep.c: Likewise.
3884         * i386-tdep.c: Likewise.
3885         * i386bsd-tdep.c: Likewise.
3886         * i386gnu-nat.c: Likewise.
3887         * i386nbsd-tdep.c: Likewise.
3888         * i386obsd-tdep.c: Likewise.
3889         * i387-tdep.c: Likewise.
3890         * ia64-libunwind-tdep.c: Likewise.
3891         * ia64-linux-nat.c: Likewise.
3892         * inf-child.c: Likewise.
3893         * inf-ptrace.c: Likewise.
3894         * inf-ttrace.c: Likewise.
3895         * infcall.c: Likewise.
3896         * infcmd.c: Likewise.
3897         * inflow.c: Likewise.
3898         * infrun.c: Likewise.
3899         * interps.c: Likewise.
3900         * iq2000-tdep.c: Likewise.
3901         * irix5-nat.c: Likewise.
3902         * jv-exp.y: Likewise.
3903         * jv-lang.c: Likewise.
3904         * jv-typeprint.c: Likewise.
3905         * jv-valprint.c: Likewise.
3906         * language.c: Likewise.
3907         * linux-fork.c: Likewise.
3908         * linux-nat.c: Likewise.
3909         * lm32-tdep.c: Likewise.
3910         * m2-exp.y: Likewise.
3911         * m2-typeprint.c: Likewise.
3912         * m32c-tdep.c: Likewise.
3913         * m32r-linux-nat.c: Likewise.
3914         * m32r-linux-tdep.c: Likewise.
3915         * m32r-rom.c: Likewise.
3916         * m32r-tdep.c: Likewise.
3917         * m68hc11-tdep.c: Likewise.
3918         * m68k-tdep.c: Likewise.
3919         * m68kbsd-tdep.c: Likewise.
3920         * m68klinux-nat.c: Likewise.
3921         * m68klinux-tdep.c: Likewise.
3922         * m88k-tdep.c: Likewise.
3923         * machoread.c: Likewise.
3924         * macrocmd.c: Likewise.
3925         * main.c: Likewise.
3926         * mdebugread.c: Likewise.
3927         * mem-break.c: Likewise.
3928         * memattr.c: Likewise.
3929         * memory-map.c: Likewise.
3930         * mep-tdep.c: Likewise.
3931         * mi/mi-cmd-break.c: Likewise.
3932         * mi/mi-cmd-disas.c: Likewise.
3933         * mi/mi-cmd-env.c: Likewise.
3934         * mi/mi-cmd-stack.c: Likewise.
3935         * mi/mi-cmd-var.c: Likewise.
3936         * mi/mi-cmds.c: Likewise.
3937         * mi/mi-console.c: Likewise.
3938         * mi/mi-getopt.c: Likewise.
3939         * mi/mi-interp.c: Likewise.
3940         * mi/mi-main.c: Likewise.
3941         * mi/mi-parse.c: Likewise.
3942         * microblaze-rom.c: Likewise.
3943         * microblaze-tdep.c: Likewise.
3944         * mingw-hdep.c: Likewise.
3945         * minidebug.c: Likewise.
3946         * minsyms.c: Likewise.
3947         * mips-irix-tdep.c: Likewise.
3948         * mips-linux-tdep.c: Likewise.
3949         * mips-tdep.c: Likewise.
3950         * mips64obsd-tdep.c: Likewise.
3951         * mipsnbsd-tdep.c: Likewise.
3952         * mipsread.c: Likewise.
3953         * mn10300-linux-tdep.c: Likewise.
3954         * mn10300-tdep.c: Likewise.
3955         * monitor.c: Likewise.
3956         * moxie-tdep.c: Likewise.
3957         * mt-tdep.c: Likewise.
3958         * nat/linux-btrace.c: Likewise.
3959         * nat/linux-osdata.c: Likewise.
3960         * nat/linux-procfs.c: Likewise.
3961         * nat/linux-ptrace.c: Likewise.
3962         * nat/linux-waitpid.c: Likewise.
3963         * nbsd-tdep.c: Likewise.
3964         * nios2-linux-tdep.c: Likewise.
3965         * nto-procfs.c: Likewise.
3966         * nto-tdep.c: Likewise.
3967         * objc-lang.c: Likewise.
3968         * objfiles.c: Likewise.
3969         * opencl-lang.c: Likewise.
3970         * osabi.c: Likewise.
3971         * osdata.c: Likewise.
3972         * p-exp.y: Likewise.
3973         * p-lang.c: Likewise.
3974         * p-typeprint.c: Likewise.
3975         * parse.c: Likewise.
3976         * posix-hdep.c: Likewise.
3977         * ppc-linux-nat.c: Likewise.
3978         * ppc-sysv-tdep.c: Likewise.
3979         * ppcfbsd-tdep.c: Likewise.
3980         * ppcnbsd-tdep.c: Likewise.
3981         * ppcobsd-tdep.c: Likewise.
3982         * printcmd.c: Likewise.
3983         * procfs.c: Likewise.
3984         * prologue-value.c: Likewise.
3985         * python/py-auto-load.c: Likewise.
3986         * python/py-gdb-readline.c: Likewise.
3987         * ravenscar-thread.c: Likewise.
3988         * regcache.c: Likewise.
3989         * registry.c: Likewise.
3990         * remote-fileio.c: Likewise.
3991         * remote-m32r-sdi.c: Likewise.
3992         * remote-mips.c: Likewise.
3993         * remote-notif.c: Likewise.
3994         * remote-sim.c: Likewise.
3995         * remote.c: Likewise.
3996         * reverse.c: Likewise.
3997         * rs6000-aix-tdep.c: Likewise.
3998         * ser-base.c: Likewise.
3999         * ser-go32.c: Likewise.
4000         * ser-mingw.c: Likewise.
4001         * ser-pipe.c: Likewise.
4002         * ser-tcp.c: Likewise.
4003         * ser-unix.c: Likewise.
4004         * serial.c: Likewise.
4005         * sh-tdep.c: Likewise.
4006         * sh64-tdep.c: Likewise.
4007         * shnbsd-tdep.c: Likewise.
4008         * skip.c: Likewise.
4009         * sol-thread.c: Likewise.
4010         * solib-dsbt.c: Likewise.
4011         * solib-frv.c: Likewise.
4012         * solib-osf.c: Likewise.
4013         * solib-som.c: Likewise.
4014         * solib-spu.c: Likewise.
4015         * solib-target.c: Likewise.
4016         * solib.c: Likewise.
4017         * somread.c: Likewise.
4018         * source.c: Likewise.
4019         * sparc-nat.c: Likewise.
4020         * sparc-sol2-tdep.c: Likewise.
4021         * sparc-tdep.c: Likewise.
4022         * sparc64-tdep.c: Likewise.
4023         * sparc64fbsd-tdep.c: Likewise.
4024         * sparc64nbsd-tdep.c: Likewise.
4025         * sparcnbsd-tdep.c: Likewise.
4026         * spu-linux-nat.c: Likewise.
4027         * spu-multiarch.c: Likewise.
4028         * spu-tdep.c: Likewise.
4029         * stabsread.c: Likewise.
4030         * stack.c: Likewise.
4031         * std-regs.c: Likewise.
4032         * symfile.c: Likewise.
4033         * symmisc.c: Likewise.
4034         * symtab.c: Likewise.
4035         * target.c: Likewise.
4036         * thread.c: Likewise.
4037         * tilegx-linux-nat.c: Likewise.
4038         * tilegx-tdep.c: Likewise.
4039         * top.c: Likewise.
4040         * tracepoint.c: Likewise.
4041         * tui/tui-command.c: Likewise.
4042         * tui/tui-data.c: Likewise.
4043         * tui/tui-disasm.c: Likewise.
4044         * tui/tui-file.c: Likewise.
4045         * tui/tui-layout.c: Likewise.
4046         * tui/tui-out.c: Likewise.
4047         * tui/tui-regs.c: Likewise.
4048         * tui/tui-source.c: Likewise.
4049         * tui/tui-stack.c: Likewise.
4050         * tui/tui-win.c: Likewise.
4051         * tui/tui-windata.c: Likewise.
4052         * tui/tui-winsource.c: Likewise.
4053         * typeprint.c: Likewise.
4054         * ui-file.c: Likewise.
4055         * ui-out.c: Likewise.
4056         * user-regs.c: Likewise.
4057         * utils.c: Likewise.
4058         * v850-tdep.c: Likewise.
4059         * valarith.c: Likewise.
4060         * valops.c: Likewise.
4061         * valprint.c: Likewise.
4062         * value.c: Likewise.
4063         * varobj.c: Likewise.
4064         * vax-tdep.c: Likewise.
4065         * vaxnbsd-tdep.c: Likewise.
4066         * vaxobsd-tdep.c: Likewise.
4067         * windows-nat.c: Likewise.
4068         * xcoffread.c: Likewise.
4069         * xml-support.c: Likewise.
4070         * xstormy16-tdep.c: Likewise.
4071         * xtensa-linux-nat.c: Likewise.
4072
4073 2014-08-07  Gary Benson  <[email protected]>
4074
4075         * common/common-defs.h: Include gdb_assert.h.
4076         * aarch64-tdep.c: Do not include gdb_assert.h.
4077         * addrmap.c: Likewise.
4078         * aix-thread.c: Likewise.
4079         * alpha-linux-tdep.c: Likewise.
4080         * alpha-mdebug-tdep.c: Likewise.
4081         * alphanbsd-tdep.c: Likewise.
4082         * amd64-nat.c: Likewise.
4083         * amd64-tdep.c: Likewise.
4084         * amd64bsd-nat.c: Likewise.
4085         * amd64fbsd-nat.c: Likewise.
4086         * amd64fbsd-tdep.c: Likewise.
4087         * amd64nbsd-nat.c: Likewise.
4088         * amd64nbsd-tdep.c: Likewise.
4089         * amd64obsd-nat.c: Likewise.
4090         * amd64obsd-tdep.c: Likewise.
4091         * arch-utils.c: Likewise.
4092         * arm-tdep.c: Likewise.
4093         * armbsd-tdep.c: Likewise.
4094         * auxv.c: Likewise.
4095         * bcache.c: Likewise.
4096         * bfin-tdep.c: Likewise.
4097         * blockframe.c: Likewise.
4098         * breakpoint.c: Likewise.
4099         * bsd-kvm.c: Likewise.
4100         * bsd-uthread.c: Likewise.
4101         * buildsym.c: Likewise.
4102         * c-exp.y: Likewise.
4103         * c-lang.c: Likewise.
4104         * charset.c: Likewise.
4105         * cleanups.c: Likewise.
4106         * cli-out.c: Likewise.
4107         * cli/cli-decode.c: Likewise.
4108         * cli/cli-dump.c: Likewise.
4109         * cli/cli-logging.c: Likewise.
4110         * cli/cli-script.c: Likewise.
4111         * cli/cli-utils.c: Likewise.
4112         * coffread.c: Likewise.
4113         * common/common-utils.c: Likewise.
4114         * common/queue.h: Likewise.
4115         * common/signals.c: Likewise.
4116         * common/vec.h: Likewise.
4117         * complaints.c: Likewise.
4118         * completer.c: Likewise.
4119         * corelow.c: Likewise.
4120         * cp-abi.c: Likewise.
4121         * cp-name-parser.y: Likewise.
4122         * cp-namespace.c: Likewise.
4123         * cp-support.c: Likewise.
4124         * cris-tdep.c: Likewise.
4125         * dbxread.c: Likewise.
4126         * dictionary.c: Likewise.
4127         * doublest.c: Likewise.
4128         * dsrec.c: Likewise.
4129         * dummy-frame.c: Likewise.
4130         * dwarf2-frame-tailcall.c: Likewise.
4131         * dwarf2-frame.c: Likewise.
4132         * dwarf2expr.c: Likewise.
4133         * dwarf2loc.c: Likewise.
4134         * dwarf2read.c: Likewise.
4135         * eval.c: Likewise.
4136         * event-loop.c: Likewise.
4137         * exceptions.c: Likewise.
4138         * expprint.c: Likewise.
4139         * f-valprint.c: Likewise.
4140         * fbsd-nat.c: Likewise.
4141         * findvar.c: Likewise.
4142         * frame-unwind.c: Likewise.
4143         * frame.c: Likewise.
4144         * frv-tdep.c: Likewise.
4145         * gcore.c: Likewise.
4146         * gdb-dlfcn.c: Likewise.
4147         * gdb_bfd.c: Likewise.
4148         * gdbarch.c: Likewise.
4149         * gdbarch.sh: Likewise.
4150         * gdbtypes.c: Likewise.
4151         * gnu-nat.c: Likewise.
4152         * gnu-v3-abi.c: Likewise.
4153         * go-lang.c: Likewise.
4154         * guile/scm-exception.c: Likewise.
4155         * guile/scm-gsmob.c: Likewise.
4156         * guile/scm-lazy-string.c: Likewise.
4157         * guile/scm-math.c: Likewise.
4158         * guile/scm-pretty-print.c: Likewise.
4159         * guile/scm-safe-call.c: Likewise.
4160         * guile/scm-utils.c: Likewise.
4161         * guile/scm-value.c: Likewise.
4162         * h8300-tdep.c: Likewise.
4163         * hppa-hpux-nat.c: Likewise.
4164         * hppa-tdep.c: Likewise.
4165         * hppanbsd-tdep.c: Likewise.
4166         * hppaobsd-tdep.c: Likewise.
4167         * i386-darwin-nat.c: Likewise.
4168         * i386-darwin-tdep.c: Likewise.
4169         * i386-nto-tdep.c: Likewise.
4170         * i386-tdep.c: Likewise.
4171         * i386bsd-nat.c: Likewise.
4172         * i386fbsd-tdep.c: Likewise.
4173         * i386gnu-nat.c: Likewise.
4174         * i386nbsd-tdep.c: Likewise.
4175         * i386obsd-tdep.c: Likewise.
4176         * i387-tdep.c: Likewise.
4177         * ia64-libunwind-tdep.c: Likewise.
4178         * ia64-tdep.c: Likewise.
4179         * inf-ptrace.c: Likewise.
4180         * inf-ttrace.c: Likewise.
4181         * infcall.c: Likewise.
4182         * infcmd.c: Likewise.
4183         * infrun.c: Likewise.
4184         * inline-frame.c: Likewise.
4185         * interps.c: Likewise.
4186         * jv-lang.c: Likewise.
4187         * jv-typeprint.c: Likewise.
4188         * linux-fork.c: Likewise.
4189         * linux-nat.c: Likewise.
4190         * linux-thread-db.c: Likewise.
4191         * m32c-tdep.c: Likewise.
4192         * m32r-linux-nat.c: Likewise.
4193         * m32r-tdep.c: Likewise.
4194         * m68k-tdep.c: Likewise.
4195         * m68kbsd-nat.c: Likewise.
4196         * m68kbsd-tdep.c: Likewise.
4197         * m88k-tdep.c: Likewise.
4198         * machoread.c: Likewise.
4199         * macroexp.c: Likewise.
4200         * macrotab.c: Likewise.
4201         * maint.c: Likewise.
4202         * mdebugread.c: Likewise.
4203         * memory-map.c: Likewise.
4204         * mep-tdep.c: Likewise.
4205         * mi/mi-common.c: Likewise.
4206         * microblaze-tdep.c: Likewise.
4207         * mingw-hdep.c: Likewise.
4208         * mips-linux-nat.c: Likewise.
4209         * mips-linux-tdep.c: Likewise.
4210         * mips-tdep.c: Likewise.
4211         * mips64obsd-tdep.c: Likewise.
4212         * mipsnbsd-tdep.c: Likewise.
4213         * mn10300-linux-tdep.c: Likewise.
4214         * mn10300-tdep.c: Likewise.
4215         * moxie-tdep.c: Likewise.
4216         * mt-tdep.c: Likewise.
4217         * nat/linux-btrace.c: Likewise.
4218         * nat/linux-osdata.c: Likewise.
4219         * nat/linux-ptrace.c: Likewise.
4220         * nat/mips-linux-watch.c: Likewise.
4221         * nios2-linux-tdep.c: Likewise.
4222         * nios2-tdep.c: Likewise.
4223         * objc-lang.c: Likewise.
4224         * objfiles.c: Likewise.
4225         * obsd-nat.c: Likewise.
4226         * opencl-lang.c: Likewise.
4227         * osabi.c: Likewise.
4228         * parse.c: Likewise.
4229         * ppc-linux-nat.c: Likewise.
4230         * ppc-sysv-tdep.c: Likewise.
4231         * ppcfbsd-nat.c: Likewise.
4232         * ppcfbsd-tdep.c: Likewise.
4233         * ppcnbsd-nat.c: Likewise.
4234         * ppcnbsd-tdep.c: Likewise.
4235         * ppcobsd-nat.c: Likewise.
4236         * ppcobsd-tdep.c: Likewise.
4237         * printcmd.c: Likewise.
4238         * procfs.c: Likewise.
4239         * prologue-value.c: Likewise.
4240         * psymtab.c: Likewise.
4241         * python/py-lazy-string.c: Likewise.
4242         * python/py-value.c: Likewise.
4243         * regcache.c: Likewise.
4244         * reggroups.c: Likewise.
4245         * registry.c: Likewise.
4246         * remote-sim.c: Likewise.
4247         * remote.c: Likewise.
4248         * rs6000-aix-tdep.c: Likewise.
4249         * rs6000-tdep.c: Likewise.
4250         * s390-linux-tdep.c: Likewise.
4251         * score-tdep.c: Likewise.
4252         * ser-base.c: Likewise.
4253         * ser-mingw.c: Likewise.
4254         * sh-tdep.c: Likewise.
4255         * sh64-tdep.c: Likewise.
4256         * solib-darwin.c: Likewise.
4257         * solib-spu.c: Likewise.
4258         * solib-svr4.c: Likewise.
4259         * source.c: Likewise.
4260         * sparc-nat.c: Likewise.
4261         * sparc-sol2-tdep.c: Likewise.
4262         * sparc-tdep.c: Likewise.
4263         * sparc64-sol2-tdep.c: Likewise.
4264         * sparc64-tdep.c: Likewise.
4265         * sparc64fbsd-tdep.c: Likewise.
4266         * sparc64nbsd-tdep.c: Likewise.
4267         * sparc64obsd-tdep.c: Likewise.
4268         * sparcnbsd-tdep.c: Likewise.
4269         * sparcobsd-tdep.c: Likewise.
4270         * spu-multiarch.c: Likewise.
4271         * spu-tdep.c: Likewise.
4272         * stabsread.c: Likewise.
4273         * stack.c: Likewise.
4274         * symfile.c: Likewise.
4275         * symtab.c: Likewise.
4276         * target-descriptions.c: Likewise.
4277         * target-memory.c: Likewise.
4278         * target.c: Likewise.
4279         * tic6x-linux-tdep.c: Likewise.
4280         * tic6x-tdep.c: Likewise.
4281         * tilegx-linux-nat.c: Likewise.
4282         * tilegx-tdep.c: Likewise.
4283         * top.c: Likewise.
4284         * tramp-frame.c: Likewise.
4285         * tui/tui-out.c: Likewise.
4286         * tui/tui-winsource.c: Likewise.
4287         * ui-out.c: Likewise.
4288         * user-regs.c: Likewise.
4289         * utils.c: Likewise.
4290         * v850-tdep.c: Likewise.
4291         * valops.c: Likewise.
4292         * value.c: Likewise.
4293         * varobj.c: Likewise.
4294         * vax-nat.c: Likewise.
4295         * xml-syscall.c: Likewise.
4296         * xml-tdesc.c: Likewise.
4297         * xstormy16-tdep.c: Likewise.
4298         * xtensa-linux-nat.c: Likewise.
4299         * xtensa-tdep.c: Likewise.
4300
4301 2014-08-07  Gary Benson  <[email protected]>
4302
4303         * common/common-defs.h: Include common-utils.h.
4304         * defs.h: Do not include common-utils.h.
4305         * common/gdb_assert.h: Likewise.
4306         * darwin-nat.h: Likewise.
4307         * nat/linux-btrace.c: Likewise.
4308         * target/waitstatus.h: Likewise.
4309
4310 2014-08-07  Gary Benson  <[email protected]>
4311
4312         * common/common-defs.h: Include ptid.h.
4313         * defs.h: Do not include ptid.h.
4314         * inferior.h: Likewise.
4315         * infrun.h: Likewise.
4316         * nat/linux-btrace.h: Likewise.
4317         * nat/linux-osdata.h: Likewise.
4318         * target/waitstatus.h: Likewise.
4319
4320 2014-08-07  Gary Benson  <[email protected]>
4321
4322         * common/common-defs.h: Include gdb_locale.h.
4323         * defs.h: Do not include gdb_locale.h.
4324
4325 2014-08-07  Gary Benson  <[email protected]>
4326
4327         * common/common-defs.h: Include gdb/signals.h.
4328         * defs.h: Do not include gdb/signals.h.
4329
4330 2014-08-07  Gary Benson  <[email protected]>
4331
4332         * common/common-defs.h: Include pathmax.h.
4333         * defs.h: Do not include pathmax.h.
4334
4335 2014-08-07  Gary Benson  <[email protected]>
4336
4337         * common/common-defs.h: Include libiberty.h.
4338         * defs.h: Do not include libiberty.h.
4339         * common/queue.h: Likewise.
4340         * cp-name-parser.y: Likewise.
4341         * mi/mi-cmd-catch.c: Likewise.
4342         * python/python.c: Likewise.
4343
4344 2014-08-07  Gary Benson  <[email protected]>
4345
4346         * common/common-defs.h: Include ansidecl.h.
4347         * defs.h: Do not include ansidecl.h.
4348         * common/buffer.h: Likewise.
4349         * common/common-utils.h: Likewise.
4350
4351 2014-08-07  Gary Benson  <[email protected]>
4352
4353         * common/common-defs.h: Include stddef.h.
4354         * defs.h: Do not include stddef.h.
4355         * common/common-utils.h: Likewise.
4356         * amd64fbsd-nat.c: Likewise.
4357         * bcache.c: Likewise.
4358         * charset.c: Likewise.
4359         * common/buffer.h: Likewise.
4360         * common/vec.h: Likewise.
4361         * i386bsd-nat.c: Likewise.
4362         * nat/linux-btrace.h: Likewise.
4363         * ppcfbsd-nat.c: Likewise.
4364         * ppcnbsd-tdep.h: Likewise.
4365         * ppcobsd-nat.c: Likewise.
4366         * ppcobsd-tdep.h: Likewise.
4367         * python/py-gdb-readline.c: Likewise.
4368
4369 2014-08-07  Gary Benson  <[email protected]>
4370
4371         * common/common-defs.h: Include stdarg.h.
4372         * defs.h: Do not include stdarg.h.
4373         * ada-lang.c: Likewise.
4374         * common/common-utils.h: Likewise.
4375         * guile/scm-string.c: Likewise.
4376         * guile/scm-utils.c: Likewise.
4377         * m32c-tdep.c: Likewise.
4378
4379 2014-08-07  Gary Benson  <[email protected]>
4380
4381         * common/common-defs.h: Include stdlib.h.
4382         * defs.h: Do not include stdlib.h.
4383         * addrmap.c: Likewise.
4384         * bcache.c: Likewise.
4385         * common/buffer.c: Likewise.
4386         * common/common-utils.c: Likewise.
4387         * cp-name-parser.y: Likewise.
4388         * go32-nat.c: Likewise.
4389         * mn10300-linux-tdep.c: Likewise.
4390         * nat/linux-osdata.c: Likewise.
4391         * tui/tui.c: Likewise.
4392         * windows-nat.c: Likewise.
4393
4394 2014-08-07  Gary Benson  <[email protected]>
4395
4396         * common/common-defs.h: Include stdio.h.
4397         * defs.h: Do not include stdio.h.
4398         * ada-lang.c: Likewise.
4399         * common/buffer.c: Likewise.
4400         * common/common-utils.c: Likewise.
4401         * cp-name-parser.y: Likewise.
4402         * gnu-nat.c: Likewise.
4403         * go32-nat.c: Likewise.
4404         * i386gnu-nat.c: Likewise.
4405         * proc-api.c: Likewise.
4406         * proc-events.c: Likewise.
4407         * proc-flags.c: Likewise.
4408         * proc-why.c: Likewise.
4409         * python/python-internal.h: Likewise.
4410         * target-memory.c: Likewise.
4411         * tui/tui-io.c: Likewise.
4412         * tui/tui.c: Likewise.
4413
4414 2014-08-06  Simon Marchi  <[email protected]>
4415
4416         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4417         (scan_dyntag_auxv): Same.
4418
4419 2014-08-06  Yao Qi  <[email protected]>
4420
4421         * amd64-linux-nat.c: Remove duplicated include
4422         "x86-linux-nat.h".
4423         * i386-linux-nat.c: Likewise.
4424
4425 2014-08-06  Yao Qi  <[email protected]>
4426
4427         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4428         operand" with "Special opcode" in comments.
4429
4430 2014-08-05  Gary Benson  <[email protected]>
4431
4432         * interps.c (initialize_interps): Remove prototype.
4433         (interpreter_initialized): Remove static global.
4434         (interp_add): Do not call initialize_interps.
4435         (initialize_interps): Remove function.
4436
4437 2014-08-05  Gary Benson  <[email protected]>
4438
4439         * utils.c (vwarning): Remove spurious va_end.
4440
4441 2014-08-05  Alan Modra  <[email protected]>
4442
4443         * charset.c (convert_between_encodings): Cast result of obstack_base.
4444         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4445         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4446         (read_unwind_info): Use size_t for some locals.
4447         * jit.c (finalize_symtab): Likewise.
4448         * utils.c (hashtab_obstack_allocate): Likewise.
4449         * symmisc.c (print_objfile_statistics): Update format strings.
4450
4451 2014-08-04  Jan Kratochvil  <[email protected]>
4452
4453         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4454         (Changes in GDB 7.8): ... here.
4455
4456 2014-08-04  Tom Tromey  <[email protected]>
4457
4458         * target.c (set_targetdebug): New function.
4459         (initialize_targets): Pass set_targetdebug when creating "set
4460         debug target".
4461
4462 2014-08-01  Joel Brobecker  <[email protected]>
4463
4464         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4465         if detecting a variable-sized field that is not the last field.
4466         Fix struct type length computation.
4467
4468 2014-08-01  Joel Brobecker  <[email protected]>
4469
4470         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4471         Add debug trace.
4472
4473 2014-08-01  Joel Brobecker  <[email protected]>
4474
4475         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4476         Remove "+ 8" offset in computation of CHAIN_VMA.
4477
4478 2014-07-31  Doug Evans  <[email protected]>
4479
4480         * inflow.c (child_terminal_inferior): Add comment.
4481         (child_terminal_ours_for_output): Add comment.
4482         (child_terminal_ours): Add comment.
4483         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4484         (linux_nat_terminal_ours): Add comment.
4485
4486 2014-07-31  Gary Benson  <[email protected]>
4487
4488         * common/btrace-common.h: Do not include defs.h or server.h.
4489         * nat/mips-linux-watch.h: Likewise.
4490         * gdb-dlfcn.h: Do not include defs.h.
4491         * tracefile.h: Likewise.
4492
4493 2014-07-30  Roland McGrath  <[email protected]>
4494
4495         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4496
4497 2014-07-30  Tom Tromey  <[email protected]>
4498
4499         * bsd-kvm.c (bsd_kvm_open): Constify.
4500         * corelow.c (core_open): Constify.
4501         * ctf.c (ctf_open): Constify.
4502         * dbug-rom.c (dbug_open): Constify.
4503         * exec.c (exec_open): Constify.
4504         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4505         * microblaze-rom.c (picobug_open): Constify.
4506         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4507         Constify.
4508         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4509         * record-btrace.c (record_btrace_open): Constify.
4510         * record-full.c (record_full_core_open_1, record_full_open_1)
4511         (record_full_open): Constify.
4512         * remote-m32r-sdi.c (m32r_open): Constify.
4513         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4514         (rockhopper_open, lsi_open): Constify.
4515         * remote-sim.c (gdbsim_open): Constify.
4516         * remote.c (remote_open, extended_remote_open, remote_open_1):
4517         Constify.
4518         * target.h (struct target_ops) <to_open>: Make "arg" const.
4519         * tracefile-tfile.c (tfile_open): Constify.
4520
4521 2014-07-30  Tom Tromey  <[email protected]>
4522
4523         * breakpoint.c (map_breakpoint_numbers): Update.
4524         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4525         (get_number_const): New function.
4526         (get_number): Rewrite using get_number_const.
4527         (init_number_or_range): Make "string" const.
4528         (number_is_in_list): Make "list" const.
4529         * cli/cli-utils.h (get_number_const): Declare.
4530         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4531         (init_number_or_range, number_is_in_list): Update.
4532         * printcmd.c (map_display_numbers): Update.
4533         * value.c (value_from_history_ref): Constify.
4534         * value.h (value_from_history_ref): Update.
4535
4536 2014-07-30  Tom Tromey  <[email protected]>
4537
4538         * corefile.c (hook_type, call_extra_exec_file_hooks)
4539         (specify_exec_file_hook): Constify.
4540         * exec.c (exec_file_attach): Make "filename" const.
4541         * gdbcore.h (deprecated_exec_file_display_hook)
4542         (specify_exec_file_hook, exec_file_attach): Constify.
4543         * main.c (captured_main): Use catch_command_errors_const.
4544
4545 2014-07-30  Tom Tromey  <[email protected]>
4546
4547         * target.c (open_target): New function.
4548         (add_target_with_completer, add_deprecated_target_alias): Use
4549         set_cmd_sfunc, set_cmd_context.
4550         (debug_to_open): Remove.
4551         (setup_target_debug): Update.
4552
4553 2014-07-30  Yao Qi  <[email protected]>
4554
4555         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4556         comments.
4557         * parse.c (exp_iterate): Update comments.
4558
4559 2014-07-30  Gary Benson  <[email protected]>
4560
4561         * common/common-defs.h: New file.
4562         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4563         * defs.h: Include common-defs.h.
4564         Do not include config.h or build-gnulib/config.h.
4565
4566 2014-07-30  Gary Benson  <[email protected]>
4567
4568         * common/common-utils.h: Do not include config.h.
4569         * nat/linux-btrace.h: Likewise.
4570
4571 2014-07-30  Gary Benson  <[email protected]>
4572
4573         * btrace.c: Include defs.h.
4574         * common/ptid.c: Include defs.h or server.h as appropriate.
4575         * nat/mips-linux-watch.c: Likewise.
4576
4577 2014-07-29  Tom Tromey  <[email protected]>
4578
4579         * target.c (target_is_pushed): Simplify.
4580
4581 2014-07-29  Joel Brobecker  <[email protected]>
4582
4583         GDB 7.8 released.
4584
4585 2014-07-29  Yao Qi  <[email protected]>
4586
4587         PR gdb/17206
4588         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4589
4590 2014-07-28  Doug Evans  <[email protected]>
4591
4592         PR guile/17203
4593         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4594         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4595         parameters.
4596
4597 2014-07-28  Will Newton  <[email protected]>
4598
4599         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4600         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4601         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4602         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4603         (THUMB2_EABI_SYSCALL): Likewise.
4604         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4605         struct tramp_frame.
4606         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4607         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4608
4609 2014-07-27  Doug Evans  <[email protected]>
4610
4611         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4612
4613 2014-07-27  Doug Evans  <[email protected]>
4614
4615         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4616
4617 2014-07-26  Ludovic Courtès  <[email protected]>
4618             Doug Evans  <[email protected]>
4619
4620         PR guile/17146
4621         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4622         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4623         * configure.ac: Try to use guild to compile an scm file, if it fails
4624         then disable guile support.
4625         * configure: Regenerate.
4626         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4627         GUILE_FILE_LIST.
4628         (GUILE_COMPILED_FILES): New variable.
4629         (GUILE_FILES) Update.
4630         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4631         (stamp-guile): Compile scm files.
4632         * guile/guile.c (boot_guile_support): New function.
4633         (standard_throw_args_p): New function.
4634         (print_standard_throw_error, print_throw_error): New functions.
4635         (handle_boot_error): New function.
4636         (initialize_scheme_side): Rewrite to call boot_guile_support.
4637         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4638         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4639
4640 2014-07-26  Ludovic Courtès  <[email protected]>
4641             Doug Evans  <[email protected]>
4642
4643         PR guile/17146
4644         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4645         * guile/lib/gdb/support.scm: New file.
4646         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4647         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4648         All uses updated.
4649         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4650         All uses updated.
4651         (%assert-type): Ditto, and renamed to assert-type.
4652         (%exception-print-style): Delete.
4653
4654 2014-07-26  Doug Evans  <[email protected]>
4655
4656         PR build/17105
4657         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4658         * configure: Regenerate.
4659         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4660         PYTHON_FILES.
4661         (PYTHON_FILES): New variable.
4662         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4663         (GUILE_FILES): New variable.
4664         (stamp-python, install-python, uninstall-python): Handle empty
4665         file list.
4666         (stamp-guile, install-guile, uninstall-guile): Ditto.
4667
4668 2014-07-26  Doug Evans  <[email protected]>
4669
4670         PR guile/17177
4671         * guile/lib/gdb.scm (pretty-printers): Export.
4672         (set-pretty-printers!): Export.
4673         * guile/lib/gdb/printing.scm (gdb module): Update.
4674         (prepend-pretty-printer!, append-pretty-printer!): Update.
4675         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4676         (pretty_printer_list_var): Delete.
4677         (pretty_printer_list): New static global.
4678         (gdbscm_pretty_printers): New function.
4679         (gdbscm_set_pretty_printers_x): New function.
4680         (ppscm_find_pretty_printer_from_gdb): Update.
4681         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4682         (gdbscm_initialize_pretty_printers): Update.
4683
4684 2014-07-26  Doug Evans  <[email protected]>
4685
4686         PR 17185
4687         * configure.ac: Add check for header gc/gc.h.
4688         Add check for function setenv.
4689         * configure: Regenerate.
4690         * config.in: Regenerate.
4691         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4692
4693 2014-07-25  Maciej W. Rozycki  <[email protected]>
4694
4695         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4696         variation in gdbarch matching.
4697
4698 2014-07-25  Tom Tromey  <[email protected]>
4699
4700         * exec.c (using_exec_ops): Remove.
4701         (exec_close_1): Update.  Remove extraneous block, reindent.
4702         (add_target_sections): Use target_is_pushed.
4703
4704 2014-07-25  Pedro Alves  <[email protected]>
4705
4706         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4707         * monitor.c (monitor_create_inferior): Likewise.
4708         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4709         * remote-sim.c (gdbsim_create_inferior): Likewise.
4710         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4711         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4712         * windows-nat.c (do_initial_windows_stuff): Likewise.
4713
4714 2014-07-25  Pedro Alves  <[email protected]>
4715
4716         * NEWS: Mention signal passing and "signal" command changes.
4717         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4718         comment.
4719         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4720         call.
4721         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4722         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4723         (jump_command): Adjust clear_proceed_status call.
4724         (signal_command): Warn if other thread that are resumed have
4725         signals that will be delivered.  Adjust clear_proceed_status call.
4726         (until_next_command, finish_command)
4727         (proceed_after_attach_callback, attach_command_post_wait)
4728         (attach_command): Adjust clear_proceed_status call.
4729         * infrun.c (proceed_after_vfork_done): Likewise.
4730         (proceed_after_attach_callback): Adjust comment.
4731         (clear_proceed_status_thread): Clear stop_signal if not in pass
4732         state.
4733         (clear_proceed_status_callback): Delete.
4734         (clear_proceed_status): New 'step' parameter.  Only clear the
4735         proceed status of threads the command being prepared is about to
4736         resume.
4737         (proceed): If passed in an explicit signal, override stop_signal
4738         with it.  Don't pass the last stop signal to the thread we're
4739         resuming.
4740         (init_wait_for_inferior): Adjust clear_proceed_status call.
4741         (switch_back_to_stepped_thread): Clear the signal if it should not
4742         be passed.
4743         * infrun.h (clear_proceed_status): New 'step' parameter.
4744         (user_visible_resume_ptid): Add comment.
4745         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4746         signal is in pass state.
4747         * remote.c (append_pending_thread_resumptions): Likewise.
4748         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4749
4750 2014-07-25  Tom Tromey  <[email protected]>
4751
4752         * target.h (target_stopped_data_address)
4753         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4754         parentheses.
4755
4756 2014-07-25  Pierre Langlois  <[email protected]>
4757
4758         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4759         comments.
4760         (avr_pointer_to_address): Likewise.
4761
4762 2014-07-24  Tom Tromey  <[email protected]>
4763
4764         * monitor.c (compile_pattern): Update.
4765         * target.h (struct target_ops) <to_shortname, to_longname,
4766         to_doc>: Now const.
4767
4768 2014-07-24  Tom Tromey  <[email protected]>
4769
4770         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4771         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4772         (add_info_alias, add_com): Make "doc" const.
4773         (print_doc_line): Make "str" const.
4774         (delete_cmd): Update.
4775         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4776         (print_doc_line): Update.
4777         * cli/cli-script.c (document_command): Update.
4778         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4779         (add_com, add_info, add_info_alias): Update.
4780         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4781         * python/py-cmd.c (cmdpy_destroyer): Update.
4782
4783 2014-07-24  Tom Tromey  <[email protected]>
4784
4785         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4786         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4787         (help_cmd_list): Constify.
4788         (lookup_cmd): Update.
4789         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4790         const.
4791         (help_cmd_list, apropos_cmd): Update.
4792         * cli/cli-script.c (show_user): Update.
4793         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4794         * cli/cli-setshow.h (cmd_show_list): Update.
4795         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4796         (cmd_show_list): Update.
4797         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4798         * python/py-cmd.c (cmdpy_destroyer): Update.
4799
4800 2014-07-24  Tom Tromey  <[email protected]>
4801
4802         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4803         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4804         const.
4805         * command.h (deprecate_cmd): Update.
4806         * maint.c (maintenance_do_deprecate): Add casts.
4807
4808 2014-07-24  Tom Tromey  <[email protected]>
4809
4810         * cli/cli-decode.c (help_cmd): Make parameter "const".
4811         * cli/cli-decode.h (help_cmd): Update.
4812
4813 2014-07-24  Tom Tromey  <[email protected]>
4814
4815         * stack.c (up_silently_base, down_silently_base): Make argument
4816         const.
4817
4818 2014-07-24  Tom Tromey  <[email protected]>
4819
4820         * solib.c (solib_add): Make "pattern" const.
4821         * solib.h (solib_add): Update.
4822
4823 2014-07-24  Tom Tromey  <[email protected]>
4824
4825         * remote.c (remote_serial_open, print_packet, putpkt)
4826         (putpkt_binary): Constify.
4827         * remote.h (putpkt): Update.
4828
4829 2014-07-24  Tom Tromey  <[email protected]>
4830
4831         * monitor.c (monitor_open): Make "args" const.
4832         * monitor.h (monitor_open): Update.
4833
4834 2014-07-24  Tom Tromey  <[email protected]>
4835
4836         * maint.c (match_bfd_flags): Make "string" const.
4837         (print_bfd_section_info): Remove casts.
4838         (print_objfile_section_info): Make "string" const.
4839
4840 2014-07-24  Tom Tromey  <[email protected]>
4841
4842         * inf-child.c (inf_child_open_target): Make "arg" const.
4843         * inf-child.h (inf_child_open_target): Update.
4844
4845 2014-07-24  Tom Tromey  <[email protected]>
4846
4847         * environ.c (unset_in_environ): Make "var" const.
4848         * environ.h (unset_in_environ): Update.
4849
4850 2014-07-24  Tom Tromey  <[email protected]>
4851
4852         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4853         Make "cmd" const.
4854         (scan_filename_with_cleanup): Likewise.
4855         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4856         Make arguments const.
4857         (restore_command): Update.
4858
4859 2014-07-24  Pedro Alves  <[email protected]>
4860
4861         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4862
4863 2014-07-24  Tom Tromey  <[email protected]>
4864             Gary Benson  <[email protected]>
4865
4866         * nat/linux-ptrace.c (additional_flags): New global.
4867         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4868         additional_flags; don't check GDBSERVER.
4869         (linux_ptrace_set_additional_flags): New function.
4870         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4871         Declare.
4872         * linux-nat.c (_initialize_linux_nat): Call
4873         linux_ptrace_set_additional_flags.
4874
4875 2014-07-24  Tom Tromey  <[email protected]>
4876
4877         * make-target-delegates (munge_type, write_debugmethod): New
4878         functions.
4879         (debug_names): New global.
4880         ($TARGET_DEBUG_PRINTER): New global.
4881         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4882         name.
4883         Write debug methods.  Generate init_debug_target.
4884         * target-debug.h: New file.
4885         * target-delegates.c: Rebuild.
4886         * target.c: Include target-debug.h.
4887         (debug_target): Hoist definition.
4888         (target_kill, target_get_section_table, target_memory_map)
4889         (target_flash_erase, target_flash_done, target_detach)
4890         (target_disconnect, target_wait, target_resume)
4891         (target_pass_signals, target_program_signals, target_follow_fork)
4892         (target_mourn_inferior, target_search_memory)
4893         (target_thread_address_space, target_close)
4894         (target_find_new_threads, target_core_of_thread)
4895         (target_verify_memory, target_insert_mask_watchpoint)
4896         (target_remove_mask_watchpoint): Remove targetdebug code.
4897         (debug_to_post_attach, debug_to_prepare_to_store)
4898         (debug_to_files_info, debug_to_insert_breakpoint)
4899         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4900         (debug_to_region_ok_for_hw_watchpoint)
4901         (debug_to_can_accel_watchpoint_condition)
4902         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4903         (debug_to_watchpoint_addr_within_range)
4904         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4905         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4906         (debug_to_terminal_init, debug_to_terminal_inferior)
4907         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4908         (debug_to_terminal_save_ours, debug_to_terminal_info)
4909         (debug_to_load, debug_to_post_startup_inferior)
4910         (debug_to_insert_fork_catchpoint)
4911         (debug_to_remove_fork_catchpoint)
4912         (debug_to_insert_vfork_catchpoint)
4913         (debug_to_remove_vfork_catchpoint)
4914         (debug_to_insert_exec_catchpoint)
4915         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4916         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4917         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4918         (setup_target_debug): Call init_debug_target.
4919         * target.h (TARGET_DEBUG_PRINTER): New macro.
4920         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4921         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4922
4923 2014-07-24  Gary Benson  <[email protected]>
4924
4925         * exceptions.h (throw_vfatal): Renamed to...
4926         (throw_vquit): New declaration.
4927         (throw_quit): Likewise.
4928         * exceptions.c (throw_vfatal): Renamed to...
4929         (throw_vquit): New function.
4930         (throw_quit): Likewise.
4931         (throw_error): Call throw_verror rather than throw_it.
4932         * utils.h (vfatal): Removed.
4933         (fatal): Likewise.
4934         * utils.c (vfatal): Removed.
4935         (fatal): Likewise.
4936         (internal_verror): Replaced call to fatal with call to throw_quit.
4937         (quit): Replaced calls to fatal with calls to throw_quit.
4938
4939 2014-07-23  Ajit Agarwal <[email protected]>
4940
4941         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4942         target_read_code.
4943
4944 2014-07-23  Chen Gang <[email protected]>
4945
4946         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4947         less than zero in conditional expression.
4948
4949 2014-07-23  Tom Tromey  <[email protected]>
4950
4951         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4952         ($INTRO_PART): Don't match whitespace.
4953         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4954         argument matching.
4955         ($METHOD): Add $METHOD_TRAILER.
4956         (trim): Rewrite.
4957         (scan_target_h): New sub.
4958         Change main loop not to collect state.
4959         * target-delegates.c: Rebuild.
4960
4961 2014-07-23  Gary Benson  <[email protected]>
4962
4963         * cp-support.c (gdb_demangle): Fix build on systems without
4964         sigaltstack.
4965
4966 2014-07-22  Jan Kratochvil  <[email protected]>
4967
4968         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4969         for reference entry value target data value.
4970
4971 2014-07-22  Jan Kratochvil  <[email protected]>
4972
4973         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4974         value_available_contents_eq.
4975
4976 2014-07-22  Pedro Alves  <[email protected]>
4977
4978         * value.c (allocate_optimized_out_value): Don't mark value as
4979         non-lazy.
4980
4981 2014-07-22  Jiong Wang  <[email protected]>
4982
4983         * MAINTAINERS (Write After Approval): Update my email address.
4984
4985 2014-07-20  Doug Evans  <[email protected]>
4986
4987         PR server/17147
4988         * remote.c (putpkt_binary): Add text to error message.
4989
4990 2014-07-20  Yao Qi  <[email protected]>
4991
4992         * eval.c: Remove "Chill" from comments.
4993         * gdbtypes.h: Likewise.
4994         * symtab.h: Likewise.
4995
4996 2014-07-20  Yao Qi  <[email protected]>
4997
4998         * std-operator.def: Update comments to TERNOP_SLICE.
4999
5000 2014-07-20  Yao Qi  <[email protected]>
5001
5002         * std-operator.def: Remove BINOP_RANGE.
5003         * breakpoint.c (watchpoint_exp_is_const): Update.
5004         * expprint.c (dump_subexp_body_standard): Likewise.
5005         * eval.c (init_array_element): Remove dead code.
5006         (evaluate_subexp_standard): Likewise.
5007
5008 2014-07-20  Yao Qi  <[email protected]>
5009
5010         * std-operator.def: Remove BINOP_IN.
5011         * breakpoint.c (watchpoint_exp_is_const): Update.
5012         * eval.c (evaluate_subexp_standard): Likewise.
5013         * expprint.c (dump_subexp_body_standard): Likewise.
5014
5015 2014-07-19  Ajit Agarwal  <[email protected]>
5016
5017         * microblaze-tdep.c (microblaze_register_names): Add
5018         the rshr and rslr register names.
5019         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5020         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5021         Use of tdesc_numbered_register. Use of
5022         microblaze_register_g_packet_guesses. Use of
5023         tdesc_use_registers. Use of set_gdbarch_register_type.
5024         (microblaze_register_g_packet_guesses): New.
5025         * microblaze-tdep.h (microblaze_reg_num): Add
5026         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5027         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5028         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5029         * features/microblaze-core.xml: New file.
5030         * features/microblaze-stack-protect.xml: New file.
5031         * features/microblaze-with-stack-protect.c: New file.
5032         * features/microblaze-with-stack-protect.xml: New file.
5033         * features/microblaze.xml: New file.
5034         * features/microblaze.c: New file.
5035         * features/Makefile (microblaze-with-stack-protect): Add
5036         microblaze-with-stack-protect microblaze and microblaze-expedite.
5037         * regformats/microblaze-with-stack-protect.dat: New file.
5038         * regformats/microblaze.dat: New file.
5039         * doc/gdb.texinfo (MicroBlaze Features): Added.
5040
5041 2014-07-18  Tom Tromey  <[email protected]>
5042
5043         * exec.c (exec_ops): Now static.
5044         * exec.h (exec_ops): Don't declare.
5045
5046 2014-07-18  Tom Tromey  <[email protected]>
5047
5048         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5049         to find_target_beneath.
5050         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5051         find_target_beneath.
5052         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5053
5054 2014-07-18  Tom Tromey  <[email protected]>
5055
5056         PR gdb/17130:
5057         * utils.c (quit): Use target_supports_terminal_ours.
5058         * target.h (target_supports_terminal_ours): Declare.
5059         * target.c (target_supports_delete_record): Don't check
5060         to_delete_record against NULL.
5061         (target_supports_terminal_ours): New function.
5062
5063 2014-07-18  Tom Tromey  <[email protected]>
5064
5065         PR gdb/17130:
5066         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5067         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5068         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5069         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5070         * windows-nat.c (windows_xfer_partial): Always delegate.
5071         * record-btrace.c (record_btrace_xfer_partial): Simplify
5072         delegation.
5073         (record_btrace_fetch_registers, record_btrace_store_registers)
5074         (record_btrace_prepare_to_store, record_btrace_resume)
5075         (record_btrace_wait, record_btrace_find_new_threads)
5076         (record_btrace_thread_alive): Likewise.
5077         * procfs.c (procfs_xfer_partial): Always delegate.
5078         * corelow.c (core_xfer_partial): Always delegate.
5079         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5080
5081 2014-07-18  Tom Tromey  <[email protected]>
5082
5083         * exec.c (exec_make_note_section): Move earlier.
5084
5085 2014-07-17  Doug Evans  <[email protected]>
5086
5087         PR gdb/17170
5088         * maint.c (count_symtabs_and_blocks): Handle NULL
5089         current_program_space.
5090         (report_command_stats): Check global enabled flag in addition to
5091         recorded enabled flag.
5092         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5093
5094 2014-07-16  Pedro Alves  <[email protected]>
5095
5096         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5097
5098 2014-07-16  Tom Tromey  <[email protected]>
5099
5100         * target.h (struct target_ops) <to_delete_record>: Reformat
5101         comment.
5102
5103 2014-07-16  Tom Tromey  <[email protected]>
5104
5105         * target-delegates.c: Rebuild.
5106
5107 2014-07-15  Pierre Langlois  <[email protected]>
5108
5109         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5110         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5111         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5112         (avr_pointer_to_address): Likewise.
5113         (avr_address_class_type_flags): New function.
5114         (avr_address_class_type_flags_to_name): Likewise.
5115         (avr_address_class_name_to_type_flags): Likewise.
5116         (avr_gdbarch_init): Set address_class_type_flags,
5117         address_class_type_flags_to_name and
5118         address_class_name_to_type_flags.
5119
5120 2014-07-15  Pedro Alves  <[email protected]>
5121
5122         * linux-nat.c (kill_callback): Save errno and work with saved
5123         copy.
5124
5125 2014-07-15  Simon Marchi  <[email protected]>
5126
5127         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5128
5129 2014-07-14  Edjunior Barbosa Machado  <[email protected]>
5130
5131         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5132         breakpoint support correctly.
5133
5134 2014-07-14  Pedro Alves  <[email protected]>
5135
5136         * utils.c (prompt_for_continue): Call target_terminal_ours.
5137
5138 2014-07-14  Pedro Alves  <[email protected]>
5139
5140         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5141         catch_errors.  Don't re-enable stdin or notify observers where,
5142         and rethrow error.
5143         (fetch_inferior_event_wrapper): Delete.
5144
5145 2014-07-14  Pedro Alves  <[email protected]>
5146
5147         PR gdb/17072
5148         * top.c: Include "inf-loop.h".
5149         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5150         field.
5151         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5152         was async before.
5153         (gdb_readline_wrapper): Store whether the target is async, and
5154         make it sync.
5155
5156 2014-07-14  Pedro Alves  <[email protected]>
5157
5158         PR gdb/17072
5159         * top.c (gdb_readline_wrapper_line): Tweak comment.
5160         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5161         the input handler callback.
5162
5163 2014-07-14  Pedro Alves  <[email protected]>
5164
5165         PR gdb/17072
5166         * main.c: Include event-top.h.
5167         (handle_command_errors): New function.
5168         (catch_command_errors, catch_command_errors_const): Use it.
5169
5170 2014-07-14  Pedro Alves  <[email protected]>
5171
5172         * exceptions.c (catch_command_errors, catch_command_errors_const):
5173         Moved to main.c.
5174         * exceptions.h (catch_command_errors_ftype)
5175         (catch_command_errors_const_ftype): Moved to main.c.
5176         (catch_command_errors, catch_command_errors_const): Delete
5177         declarations.
5178         * main.c (catch_command_errors_ftype)
5179         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5180         (catch_command_errors, catch_command_errors_const)): Moved here
5181         from exceptions.c and make static.
5182
5183 2014-07-14  Pedro Alves  <[email protected]>
5184
5185         * exceptions.c (print_any_exception): Delete.
5186         (catch_exceptions_with_msg): Use exception_print instead of
5187         print_any_exception.
5188         (catch_errors): Use exception_fprintf instead of
5189         print_any_exception.
5190         (catch_command_errors, catch_command_errors_const): Use
5191         exception_print instead of print_any_exception.
5192
5193 2014-07-14  Pedro Alves  <[email protected]>
5194
5195         * infcall.c (run_inferior_call): Set 'sync_execution' while
5196         running the inferior call.
5197
5198 2014-07-14  Pedro Alves  <[email protected]>
5199
5200         * value.c (value_contents_equal): Delete function.
5201         * value.h (value_contents_equal): Delete declaration.
5202
5203 2014-07-14  Tom Tromey  <[email protected]>
5204
5205         PR exp/17106:
5206         * gdbtypes.c (is_dynamic_type_internal): New function, from
5207         is_dynamic_type.
5208         (is_dynamic_type): Rewrite.
5209         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5210         (resolve_dynamic_struct): Likewise.
5211         (resolve_dynamic_type_internal): New function, from
5212         resolve_dynamic_type.
5213         (resolve_dynamic_type): Rewrite.
5214
5215 2014-07-14  Tom Tromey  <[email protected]>
5216
5217         * target.c (target_require_runnable): Also check record_stratum.
5218         Update comment.
5219
5220 2014-07-11  Yao Qi  <[email protected]>
5221
5222         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5223         thumb_instruction_restores_sp return true.
5224
5225 2014-07-11  Yao Qi  <[email protected]>
5226
5227         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5228         (thumb_in_function_epilogue_p): Call
5229         thumb_instruction_restores_sp.
5230
5231 2014-07-11  Yao Qi  <[email protected]>
5232
5233         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5234         'add sp, #imm'.
5235         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5236
5237 2014-07-11  Gary Benson  <[email protected]>
5238
5239         * amd64-linux-nat.c (gdbcore.h): Remove include.
5240         (regset.h): Likewise.
5241         (nat/linux-btrace.h): Likewise.
5242         (btrace.h): Likewise.
5243         (gdb_assert.h): Likewise.
5244         (string.h): Likewise.
5245         (sys/uio.h): Likewise.
5246         (sys/debugreg.h): Likewise.
5247         (sys/syscall.h): Likewise.
5248         (sys/procfs.h): Likewise.
5249         (sys/user.h): Likewise.
5250         (asm/ptrace.h): Likewise.
5251         (i386-nat.h): Likewise.
5252         * i386-linux-nat.c (i386-nat.h): Likewise.
5253         (regset.h): Likewise.
5254         (target.h): Likewise.
5255         (linux-nat.h): Likewise.
5256         (nat/linux-btrace.h): Likewise.
5257         (btrace.h): Likewise.
5258         (gdb_assert.h): Likewise.
5259         (string.h): Likewise.
5260         (sys/uio.h): Likewise.
5261         (sys/user.h): Likewise.
5262         (sys/procfs.h): Likewise.
5263         (sys/reg.h): Likewise.
5264         (sys/debugreg.h): Likewise.
5265         (ORIG_EAX): Remove definition.
5266
5267 2014-07-11  Gary Benson  <[email protected]>
5268
5269         * i386-linux-nat.h: New file.
5270         * x86-linux-nat.h: Likewise.
5271         * x86-linux-nat.c: Likewise.
5272         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5273         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5274         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5275         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5276         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5277         (PTRACE_SETREGSET): Likewise.
5278         (arch_lwp_info): Now in x86-linux-nat.c.
5279         (have_ptrace_getregset): Now in x86-linux-nat.h.
5280         (x86_linux_dr_get): Now in x86-linux-nat.c.
5281         (x86_linux_dr_set): Likewise.
5282         (x86_linux_dr_get_addr): Likewise.
5283         (x86_linux_dr_get_control): Likewise.
5284         (x86_linux_dr_get_status): Likewise.
5285         (update_debug_registers_callback): Likewise.
5286         (x86_linux_dr_set_control): Likewise.
5287         (x86_linux_dr_set_addr): Likewise.
5288         (x86_linux_prepare_to_resume): Likewise.
5289         (x86_linux_new_thread): Likewise.
5290         (x86_linux_new_fork): Likewise.
5291         (x86_linux_get_thread_area): Likewise.
5292         (super_post_startup_inferior): Likewise.
5293         (x86_linux_child_post_startup_inferior): Likewise.
5294         (AMD64_LINUX_USER64_CS): Likewise.
5295         (AMD64_LINUX_X32_DS): Likewise.
5296         (x86_linux_read_description): Likewise.
5297         (x86_linux_enable_btrace): Likewise.
5298         (x86_linux_disable_btrace): Likewise.
5299         (x86_linux_teardown_btrace): Likewise.
5300         (x86_linux_read_btrace): Likewise.
5301         (x86_linux_create_target): Likewise.
5302         (x86_linux_add_target): Likewise.
5303         * i386-linux-nat.c (x86-linux-nat.h): New include.
5304         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5305         (PTRACE_SETREGSET): Likewise.
5306         (arch_lwp_info): Now in x86-linux-nat.c.
5307         (have_ptrace_getregset): Now in x86-linux-nat.h.
5308         (x86_linux_dr_get): Now in x86-linux-nat.c.
5309         (x86_linux_dr_set): Likewise.
5310         (x86_linux_dr_get_addr): Likewise.
5311         (x86_linux_dr_get_control): Likewise.
5312         (x86_linux_dr_get_status): Likewise.
5313         (update_debug_registers_callback): Likewise.
5314         (x86_linux_dr_set_control): Likewise.
5315         (x86_linux_dr_set_addr): Likewise.
5316         (x86_linux_prepare_to_resume): Likewise.
5317         (x86_linux_new_thread): Likewise.
5318         (x86_linux_new_fork): Likewise.
5319         (x86_linux_get_thread_area): Likewise.
5320         (super_post_startup_inferior): Likewise.
5321         (x86_linux_child_post_startup_inferior): Likewise.
5322         (AMD64_LINUX_USER64_CS): Likewise.
5323         (AMD64_LINUX_X32_DS): Likewise.
5324         (x86_linux_read_description): Likewise.
5325         (x86_linux_enable_btrace): Likewise.
5326         (x86_linux_disable_btrace): Likewise.
5327         (x86_linux_teardown_btrace): Likewise.
5328         (x86_linux_read_btrace): Likewise.
5329         (x86_linux_create_target): Likewise.
5330         (x86_linux_add_target): Likewise.
5331
5332 2014-07-11  Gary Benson  <[email protected]>
5333
5334         * amd64-linux-nat.c: Comment and whitespace changes.
5335         * i386-linux-nat.c: Comment and whitespace changes.
5336
5337 2014-07-11  Gary Benson  <[email protected]>
5338
5339         * amd64-linux-nat.c (x86_linux_create_target): New function.
5340         (x86_linux_add_target): Likewise.
5341         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5342         * i386-linux-nat.c (x86_linux_create_target): New function.
5343         (x86_linux_add_target): Likewise.
5344         (_initialize_i386_linux_nat): Delegate to the above new functions.
5345
5346 2014-07-11  Gary Benson  <[email protected]>
5347
5348         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5349         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5350         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5351         (ps_get_thread_area): Delegate to the above.
5352
5353 2014-07-11  Gary Benson  <[email protected]>
5354
5355         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5356         x86_linux_read_description.  All uses updated.  amd64-specific
5357         code conditionalized.  Conditionalized i386-specific code added.
5358         Redundant cast removed.
5359         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5360         x86_linux_read_description.  All uses updated.  i386-specific
5361         code conditionalized.  Conditionalized amd64-specific code added.
5362         One sizeof replaced with the actual type it is describing.
5363
5364 2014-07-11  Gary Benson  <[email protected]>
5365
5366         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5367         x86_linux_dr_get.  All uses updated.
5368         (amd64_linux_dr_set): Renamed to
5369         x86_linux_dr_set.  All uses updated.
5370         (amd64_linux_dr_get_addr): Renamed to
5371         x86_linux_dr_get_addr.  All uses updated.
5372         (amd64_linux_dr_get_control): Renamed to
5373         x86_linux_dr_get_control.  All uses updated.
5374         (amd64_linux_dr_get_status): Renamed to
5375         x86_linux_dr_get_status.  All uses updated.
5376         (amd64_linux_dr_set_control): Renamed to
5377         x86_linux_dr_set_control.  All uses updated.
5378         (amd64_linux_dr_set_addr): Renamed to
5379         x86_linux_dr_set_addr.  All uses updated.
5380         (amd64_linux_prepare_to_resume): Renamed to
5381         x86_linux_prepare_to_resume.  All uses updated.
5382         (amd64_linux_new_thread): Renamed to
5383         x86_linux_new_thread.  All uses updated.
5384         (amd64_linux_new_fork): Renamed to
5385         x86_linux_new_fork.  All uses updated.
5386         (amd64_linux_child_post_startup_inferior): Renamed to
5387         x86_linux_child_post_startup_inferior.  All uses updated.
5388         (amd64_linux_enable_btrace): Renamed to
5389         x86_linux_enable_btrace.  All uses updated.
5390         (amd64_linux_disable_btrace): Renamed to
5391         x86_linux_disable_btrace.  All uses updated.
5392         (amd64_linux_teardown_btrace): Renamed to
5393         x86_linux_teardown_btrace.  All uses updated.
5394         (amd64_linux_read_btrace): Renamed to
5395         x86_linux_read_btrace.  All uses updated.
5396         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5397         x86_linux_dr_get.  All uses updated.
5398         (i386_linux_dr_set): Renamed to
5399         x86_linux_dr_set.  All uses updated.
5400         (i386_linux_dr_get_addr): Renamed to
5401         x86_linux_dr_get_addr.  All uses updated.
5402         (i386_linux_dr_get_control): Renamed to
5403         x86_linux_dr_get_control.  All uses updated.
5404         (i386_linux_dr_get_status): Renamed to
5405         x86_linux_dr_get_status.  All uses updated.
5406         (i386_linux_dr_set_control): Renamed to
5407         x86_linux_dr_set_control.  All uses updated.
5408         (i386_linux_dr_set_addr): Renamed to
5409         x86_linux_dr_set_addr.  All uses updated.
5410         (i386_linux_prepare_to_resume): Renamed to
5411         x86_linux_prepare_to_resume.  All uses updated.
5412         (i386_linux_new_thread): Renamed to
5413         x86_linux_new_thread.  All uses updated.
5414         (i386_linux_new_fork): Renamed to
5415         x86_linux_new_fork.  All uses updated.
5416         (i386_linux_child_post_startup_inferior): Renamed to
5417         x86_linux_child_post_startup_inferior.  All uses updated.
5418         (i386_linux_enable_btrace): Renamed to
5419         x86_linux_enable_btrace.  All uses updated.
5420         (i386_linux_disable_btrace): Renamed to
5421         x86_linux_disable_btrace.  All uses updated.
5422         (i386_linux_teardown_btrace): Renamed to
5423         x86_linux_teardown_btrace.  All uses updated.
5424         (i386_linux_read_btrace): Renamed to
5425         x86_linux_read_btrace.  All uses updated.
5426
5427 2014-07-11  Adrian Sendroiu  <[email protected]>
5428
5429         * remote.c (extended_remote_post_attach): New function.
5430         (init_extended_remote_ops): Install it as to_post_attach method.
5431
5432 2014-07-09  Pedro Alves  <[email protected]>
5433
5434         * infcmd.c (attach_command_post_wait): Don't call
5435         target_terminal_inferior here.
5436         (attach_command): Call it here instead.
5437
5438 2014-07-09  Andrew Burgess  <[email protected]>
5439
5440         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5441         field.
5442         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5443         from varobj.c, with additional checks.
5444         (c_varobj_ops): Fill in is_path_expr_parent field.
5445         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5446         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5447         field.
5448         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5449         ops method.
5450         (varobj_default_is_path_expr_parent): New function.
5451         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5452         (varobj_default_is_path_expr_parent): Declare new function.
5453
5454 2014-07-08  Markus Metzger  <[email protected]>
5455
5456         * infcmd.c (finish_backward): Turn internal error into normal error.
5457
5458 2014-07-07  Pedro Alves  <[email protected]>
5459
5460         PR gdb/17096
5461         * remote.c (async_handle_remote_sigint)
5462         (async_handle_remote_sigint_twice): Call
5463         gdb_call_async_signal_handler instead of
5464         mark_async_signal_handler.
5465
5466 2014-07-07  Tom Tromey  <[email protected]>
5467
5468         * target-delegates.c: Rebuild.
5469         * target.c (target_info_record): Remove.
5470         * record.c (info_record_command): Unconditionally call
5471         to_info_record.
5472         * target.h (struct target_ops) <to_info_record>: Use
5473         TARGET_DEFAULT_IGNORE.
5474         (target_info_record): Remove.
5475
5476 2014-07-07  Tom Tromey  <[email protected]>
5477
5478         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5479         TARGET_DEFAULT_NORETURN.
5480         * target.c (generic_tls_error): New function.
5481         (target_translate_tls_address): Don't search target stack.
5482         * target-delegates.c: Rebuild.
5483         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5484         stack.
5485         * linux-thread-db.c (thread_db_get_thread_local_address):
5486         Unconditionally call beneath target.
5487
5488 2014-07-03  Marc Khouzam  <[email protected]>
5489
5490         * cli/cli-logging.c (pop_output_files): Assign targerr to
5491         gdb_stdtargerr.
5492
5493 2014-07-03  Andrew Burgess  <[email protected]>
5494
5495         * MAINTAINERS (Write After Approval): Update my email address.
5496
5497 2014-07-02  Gary Benson  <[email protected]>
5498
5499         * proc-service.c (ps_xfer_memory): Update comment.
5500         (ps_pstop): Remove unused function.
5501         (ps_pcontinue): Likewise.
5502         (ps_lstop): Likewise.
5503         (ps_lcontinue): Likewise.
5504         (ps_lgetxregsize): Likewise.
5505         (ps_lgetxregs): Likewise.
5506         (ps_lsetxregs): Likewise.
5507         (ps_plog): Likewise.
5508         (ps_ptread): Likewise.
5509         (ps_ptwrite): Likewise.
5510
5511 2014-07-01  Mark Wielaard  <[email protected]>
5512
5513         * dwarf2read.c (add_array_cv_type): New function.
5514         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5515         (read_tag_volatile_type): Likewise.
5516
5517 2014-07-01  Tom Tromey  <[email protected]>
5518
5519         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5520         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5521         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5522         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5523         * command.h (cmd_cfunc_ftype): Move earlier.
5524         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5525         (add_com, add_info): Use cmd_cfunc_ftype.
5526
5527 2014-06-30  Tom Tromey  <[email protected]>
5528
5529         * symtab.c (operator_chars): Make parameters and return type
5530         const.
5531         (file_matches): Make "files" const.
5532         (struct search_symbols_data) <files>: Now const.
5533         (search_symbols): Make "regexp" and "files" parameters const.
5534         Update.
5535         (symtab_symbol_info): Remove cast.
5536         (rbreak_command): Update.
5537         * symtab.h (search_symbols): Update.
5538
5539 2014-06-27  Yao Qi  <[email protected]>
5540
5541         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5542         Change parameter type to 'struct thread_info *'.  Caller
5543         updated.
5544         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5545         Update declaration.
5546         * dummy-frame.c (struct dummy_frame_id): New.
5547         (dummy_frame_id_eq): New function.
5548         (struct dummy_frame) <id>: Change its type to 'struct
5549         dummy_frame_id'.
5550         (dummy_frame_push): Add parameter ptid and save it in
5551         dummy_frame_id.
5552         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5553         inferior_ptid.
5554         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5555         to inferior_ptid.
5556         (lookup_dummy_frame): Change parameter type to 'struct
5557         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5558         instead of frame_id_eq.
5559         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5560         Update comments.  Compose dummy_frame_id and pass it to
5561         lookup_dummy_frame.
5562         (dummy_frame_discard): Add parameter ptid.
5563         (dummy_frame_sniffer): Compose dummy_frame_id and call
5564         dummy_frame_id_eq instead of frame_id_eq.
5565         (fprint_dummy_frames): Print ptid.
5566         * dummy-frame.h: Remove comments.
5567         (dummy_frame_push): Add ptid in declaration.
5568         (dummy_frame_pop, dummy_frame_discard): Likewise.
5569
5570 2014-06-26  Tom Tromey  <[email protected]>
5571
5572         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5573         * command.h (error_no_arg): Update.
5574
5575 2014-06-26  Tom Tromey  <[email protected]>
5576
5577         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5578         (do_show_command): Make "arg" const.
5579         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5580
5581 2014-06-26  Tom Tromey  <[email protected]>
5582
5583         * record-full.c (record_full_get_bookmark): Make "args" const.
5584         (record_full_goto_bookmark): Make "raw_bookmark" const.
5585         * record.c (record_goto): New function.
5586         (cmd_record_goto): Use it.  Now static.
5587         * record.h (record_goto): Declare.
5588         (cmd_record_goto): Remove declaration.
5589         * target-delegates.c: Rebuild.
5590         * target.h (struct target_ops) <to_get_bookmark,
5591         to_goto_bookmark>: Make parameter const.
5592
5593 2014-06-26  Tom Tromey  <[email protected]>
5594
5595         * defs.h (generic_load): Update.
5596         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5597         * monitor.c (monitor_load): Make "args" const.
5598         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5599         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5600         const.
5601         (mips_load): Make "file" const.
5602         * remote-sim.c (gdbsim_load): Make "args" const.
5603         * remote.c (remote_load): Make "name" const.
5604         * symfile.c (generic_load): Make "args" const.
5605         * target-delegates.c: Rebuild.
5606         * target.c (target_load): Make "arg" const.
5607         (debug_to_load): Make "args" const.
5608         * target.h (struct target_ops) <to_load>: Make parameter const.
5609         (target_load): Update.
5610
5611 2014-06-26  Tom Tromey  <[email protected]>
5612
5613         PR symtab/16902:
5614         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5615         (dwarf2_physname, read_partial_die)
5616         (guess_partial_die_structure_name, fixup_partial_die)
5617         (guess_full_die_structure_name, anonymous_struct_prefix)
5618         (dwarf2_name): Use per-BFD obstack.
5619
5620 2014-06-26  Yao Qi  <[email protected]>
5621
5622         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5623         dummyframe and this_id into inner block below.
5624
5625 2014-06-26  Yao Qi  <[email protected]>
5626
5627         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5628         with "signal_pass[0]" in the initialization of signal_pass.
5629
5630 2014-06-25  Markus Metzger  <[email protected]>
5631
5632         * record-btrace.c (record_btrace_generating_corefile)
5633         (record_btrace_prepare_to_generate_core)
5634         (record_btrace_done_generating_core): New.
5635         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5636         (record_btrace_store_registers, record_btrace_prepare_to_store):
5637         Forward request when generating a core file.
5638         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5639         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5640         to_done_generating_core.
5641
5642 2014-06-25  Markus Metzger  <[email protected]>
5643
5644         * target.h (target_ops) <to_prepare_to_generate_core>
5645         <to_done_generating_core>: New.
5646         (target_prepare_to_generate_core, target_done_generating_core): New.
5647         * target.c (target_prepare_to_generate_core)
5648         (target_done_generating_core): New.
5649         * target-delegates.c: Regenerate.
5650         * gcore.c: (write_gcore_file): Rename to ...
5651         (write_gcore_file_1): ...this.
5652         (write_gcore_file): Call target_prepare_to_generate_core
5653         and target_done_generating_core.
5654
5655 2014-06-25  Markus Metzger  <[email protected]>
5656
5657         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5658         * gcore.c (write_gcore_file): Free memory returned from
5659         make_corefile_notes.
5660         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5661         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5662
5663 2014-06-24  Yao Qi  <[email protected]>
5664
5665         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5666         (arm_linux_init_abi): Set skip_trampoline_code with
5667         gdbarch_skip_trampoline_code instead of
5668         find_solib_trampoline_target.
5669
5670 2014-06-24  Yao Qi  <[email protected]>
5671
5672         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5673         arm_skip_bx_reg returns non-zero.
5674
5675 2014-06-24  Yao Qi  <[email protected]>
5676
5677         * arm-tdep.c (arm_skip_bx_reg): New function.
5678         (arm_skip_stub): Call arm_skip_bx_reg.
5679
5680 2014-06-23  Don Breazeal  <[email protected]>
5681
5682         * MAINTAINERS: Add myself as write-after-approval maintainer.
5683
5684 2014-06-23  Pedro Alves  <[email protected]>
5685
5686         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5687         DR_CONTROL before setting DR0..DR3.
5688         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5689         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5690         bits of DR_CONTROL related to the debug register slot being
5691         disabled.  If all slots are vacant, clear local slowdown as well,
5692         and assert DR_CONTROL is 0.
5693
5694 2014-06-23  Siva Chandra Reddy  <[email protected]>
5695
5696         * python/lib/gdb/command/xmethods.py
5697         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5698         current progspace only if the string "progspace" matches LOCUS_RE.
5699
5700 2014-06-20  Jan Kratochvil  <[email protected]>
5701
5702         Fix --with-system-readline with readline-6.3 patch 5.
5703         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5704         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5705         types.
5706
5707 2014-06-20  Tom Tromey  <[email protected]>
5708
5709         * dwarf2read.c (dw2_get_real_path): Use correct type in
5710         OBSTACK_CALLOC.
5711         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5712
5713 2014-06-20  Gary Benson  <[email protected]>
5714
5715         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5716         * common/glibc_thread_db.h: Likewise.
5717         * common/i386-cpuid.h: Likewise.
5718         * common/i386-gcc-cpuid.h: Likewise.
5719         * common/linux-btrace.h: Likewise.
5720         * common/linux-osdata.h: Likewise.
5721         * common/linux-procfs.h: Likewise.
5722         * common/linux-ptrace.h: Likewise.
5723         * common/mips-linux-watch.h: Likewise.
5724         * common/linux-btrace.c: Moved to nat.
5725         * common/linux-osdata.c: Likewise.
5726         * common/linux-procfs.c: Likewise.
5727         * common/linux-ptrace.c: Likewise.
5728         * common/mips-linux-watch.c: Likewise.
5729         * nat/gdb_thread_db.h: Moved from common.
5730         * nat/glibc_thread_db.h: Likewise.
5731         * nat/i386-cpuid.h: Likewise.
5732         * nat/i386-gcc-cpuid.h: Likewise.
5733         * nat/linux-btrace.c: Likewise.
5734         * nat/linux-btrace.h: Likewise.
5735         * nat/linux-osdata.c: Likewise.
5736         * nat/linux-osdata.h: Likewise.
5737         * nat/linux-procfs.c: Likewise.
5738         * nat/linux-procfs.h: Likewise.
5739         * nat/linux-ptrace.c: Likewise.
5740         * nat/linux-ptrace.h: Likewise.
5741         * nat/mips-linux-watch.c: Likewise.
5742         * nat/mips-linux-watch.h: Likewise.
5743         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5744         (object file files): Reordered.
5745         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5746         of glibc_thread_db.h.
5747
5748 2014-06-20  Gary Benson  <[email protected]>
5749
5750         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5751         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5752         (i386_dr_low): Likewise.
5753         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5754         (i386_dr_low_set_addr): Likewise.
5755         (i386_dr_low_get_addr): Likewise.
5756         (i386_dr_low_can_set_control): Likewise.
5757         (i386_dr_low_set_control): Likewise.
5758         (i386_dr_low_get_control): Likewise.
5759         (i386_dr_low_get_status): Likewise.
5760         (i386_get_debug_register_length): Likewise.
5761         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5762         (i386_dr_low): Likewise.
5763         * nat/i386-dregs.c (i386-low.h): Remove include.
5764         (i386-nat.h): Likewise.
5765         (nat/i386-dregs.h): New include.
5766         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5767         (i386_dr_low_set_addr): Likewise.
5768         (i386_dr_low_get_addr): Likewise.
5769         (i386_dr_low_can_set_control): Likewise.
5770         (i386_dr_low_set_control): Likewise.
5771         (i386_dr_low_get_control): Likewise.
5772         (i386_dr_low_get_status): Likewise.
5773         (i386_get_debug_register_length): Likewise.
5774         (debug_hw_points): Likewise.
5775
5776 2014-06-19  Iain Buclaw  <[email protected]>
5777
5778         * Makefile.in (SFILES): Add d-exp.y.
5779         (YYFILES): Add d-exp.c.
5780         (YYOBJ): Add d-exp.o.
5781         (local-maintainer-clean): Delete d-exp.c.
5782         * d-exp.y: New file.
5783         * d-lang.h (d_parse): New declaration.
5784         (d_error): New declaration.
5785         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5786         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5787         PREC_ORDER operators.
5788         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5789
5790 2014-06-19  Yao Qi  <[email protected]>
5791
5792         * gdbthread.h (any_running): Remove the declaration.
5793         * thread.c (any_running): Remove.
5794
5795 2014-06-19  Yao Qi  <[email protected]>
5796
5797         * gdbthread.h (struct thread_info) <state>: Change its type to
5798         'enum thread_state'.  Update comments.
5799
5800 2014-06-19  Pedro Alves  <[email protected]>
5801
5802         * gdbthread.h (ALL_THREADS): Delete.
5803         (ALL_NON_EXITED_THREADS): New macro.
5804         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5805         instead of ALL_THREADS.
5806         * infrun.c (find_thread_needs_step_over)
5807         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5808         instead of ALL_THREADS.
5809         * record-btrace.c (record_btrace_open)
5810         (record_btrace_stop_recording, record_btrace_close)
5811         (record_btrace_is_replaying, record_btrace_resume)
5812         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5813         * remote.c (append_pending_thread_resumptions): Likewise.
5814         * thread.c (thread_apply_all_command): Likewise.
5815
5816 2014-06-19  Gary Benson  <[email protected]>
5817
5818         * i386-nat.c (i386_stopped_by_watchpoint):
5819         Use i386_dr_stopped_by_watchpoint.
5820         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5821         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5822
5823 2014-06-19  Gary Benson  <[email protected]>
5824
5825         * nat/i386-dregs.c: New file.
5826         * Makefile.in (i386-dregs.o): New rule.
5827         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5828         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5829         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5830         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5831         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5832         * config/i386/go32.mh (NATDEPFILES): Likewise.
5833         * config/i386/linux.mh (NATDEPFILES): Likewise.
5834         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5835         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5836         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5837         * i386-nat.h (debug_hw_points): New declaration.
5838         * i386-nat.c (breakpoint.h): Remove include.
5839         (command.h): Likewise.
5840         (target.h): Likewise.
5841         (gdb_assert.h): Likewise.
5842         (debug_hw_points): Made nonstatic.
5843         (debug_printf): Now in i386-dregs.c.
5844         (TARGET_HAS_DR_LEN_8): Likewise.
5845         (DR_CONTROL_SHIFT): Likewise.
5846         (DR_CONTROL_SIZE): Likewise.
5847         (DR_RW_EXECUTE): Likewise.
5848         (DR_RW_WRITE): Likewise.
5849         (DR_RW_READ): Likewise.
5850         (DR_RW_IORW): Likewise.
5851         (DR_LEN_1): Likewise.
5852         (DR_LEN_2): Likewise.
5853         (DR_LEN_4): Likewise.
5854         (DR_LEN_8): Likewise.
5855         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5856         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5857         (DR_ENABLE_SIZE): Likewise.
5858         (DR_LOCAL_SLOWDOWN): Likewise.
5859         (DR_GLOBAL_SLOWDOWN): Likewise.
5860         (DR_CONTROL_RESERVED): Likewise.
5861         (I386_DR_CONTROL_MASK): Likewise.
5862         (I386_DR_VACANT): Likewise.
5863         (I386_DR_LOCAL_ENABLE): Likewise.
5864         (I386_DR_GLOBAL_ENABLE): Likewise.
5865         (I386_DR_DISABLE): Likewise.
5866         (I386_DR_SET_RW_LEN): Likewise.
5867         (I386_DR_GET_RW_LEN): Likewise.
5868         (I386_DR_WATCH_HIT): Likewise.
5869         (i386_wp_op_t): Likewise.
5870         (i386_show_dr): Likewise.
5871         (i386_length_and_rw_bits): Likewise.
5872         (i386_insert_aligned_watchpoint): Likewise.
5873         (i386_remove_aligned_watchpoint): Likewise.
5874         (i386_handle_nonaligned_watchpoint): Likewise.
5875         (i386_update_inferior_debug_regs): Likewise.
5876         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5877         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5878         (i386_region_ok_for_watchpoint):
5879         Use i386_dr_region_ok_for_watchpoint.
5880         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5881
5882 2014-06-19  Gary Benson  <[email protected]>
5883
5884         * i386-nat.c (i386_insert_hw_breakpoint): Use
5885         i386_insert_watchpoint.
5886         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5887
5888 2014-06-19  Gary Benson  <[email protected]>
5889
5890         * i386-nat.c (i386_dr_show): Renamed to
5891         i386_show_dr and made static.  All uses updated.
5892         (i386_dr_length_and_rw_bits): Renamed to
5893         i386_length_and_rw_bits and made static.
5894         All uses updated.
5895         (i386_dr_insert_aligned_watchpoint): Renamed to
5896         i386_insert_aligned_watchpoint and made static.
5897         All uses updated.
5898         (i386_dr_remove_aligned_watchpoint): Renamed to
5899         i386_remove_aligned_watchpoint and made static.
5900         All uses updated.
5901         (i386_dr_update_inferior_debug_regs): Renamed to
5902         i386_update_inferior_debug_regs and made static.
5903         All uses updated.
5904         * nat/i386-dregs.h (i386_dr_show): Removed.
5905         (i386_dr_length_and_rw_bits): Likewise.
5906         (i386_dr_insert_aligned_watchpoint): Likewise.
5907         (i386_dr_remove_aligned_watchpoint): Likewise.
5908         (i386_dr_update_inferior_debug_regs): Likewise.
5909
5910 2014-06-19  Gary Benson  <[email protected]>
5911
5912         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5913         * configure: Regenerate.
5914         * config.in: Likewise.
5915         * main.c (signal.h): New include.
5916         (setup_alternate_signal_stack): New function.
5917         (captured_main): Call the above.
5918         * cp-support.c (signal.h): New include.
5919         (catch_demangler_crashes): New flag.
5920         (SIGJMP_BUF): New define.
5921         (SIGSETJMP): Likewise.
5922         (SIGLONGJMP): Likewise.
5923         (gdb_demangle_jmp_buf): New static global.
5924         (gdb_demangle_attempt_core_dump): Likewise.
5925         (gdb_demangle_signal_handler): New function.
5926         (gdb_demangle): If catch_demangler_crashes is set, install the
5927         above signal handler before calling bfd_demangle, and restore
5928         the original signal handler afterwards.  Display the offending
5929         symbol and call demangler_warning the first time a segmentation
5930         fault is caught.
5931         (_initialize_cp_support): New maint set/show command.
5932
5933 2014-06-19  Gary Benson  <[email protected]>
5934
5935         * utils.h (resource_limit_kind): New enum.
5936         (can_dump_core): New declaration.
5937         (warn_cant_dump_core): Likewise.
5938         (dump_core): Likewise.
5939         * utils.c (dump_core): Made nonstatic.  Added new
5940         parameter "limit_kind".
5941         (can_dump_core): Made nonstatic. Moved printing code to...
5942         (warn_cant_dump_core): New function.
5943         (can_dump_core_warn): Likewise.
5944         (internal_vproblem): Replace calls to can_dump_core with
5945         calls to can_dump_core_warn.  Supply new argument to each.
5946
5947 2014-06-19  Gary Benson  <[email protected]>
5948
5949         * utils.h (demangler_vwarning): New declaration.
5950         (demangler_warning): Likewise.
5951         * utils.c (struct internal_problem)
5952         <user_settable_should_quit>: New field.
5953         <user_settable_should_dump_core>: Likewise
5954         (internal_error_problem): Add values for above new fields.
5955         (internal_warning_problem): Likewise.
5956         (demangler_warning_problem): New static global.
5957         (demangler_vwarning): New function.
5958         (demangler_warning): Likewise.
5959         (add_internal_problem_command): Selectively add commands.
5960         (_initialize_utils): New internal problem command.
5961         * maint.c (maintenance_demangler_warning): New function.
5962         (_initialize_maint_cmds): New command.
5963
5964 2014-06-18  Tom Tromey  <[email protected]>
5965
5966         * f-valprint.c (info_common_command_for_block): Update.
5967         * symtab.h (struct general_symbol_info) <common_block>: Now
5968         const.
5969
5970 2014-06-18  Tom Tromey  <[email protected]>
5971
5972         * symtab.h (struct symtab) <blockvector>: Now const.
5973         * ada-lang.c (ada_add_global_exceptions): Update.
5974         * buildsym.c (augment_type_symtab): Update.
5975         * dwarf2read.c (dw2_lookup_symbol): Update.
5976         * jit.c (finalize_symtab): Update.
5977         * jv-lang.c (add_class_symtab_symbol): Update.
5978         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5979         Update.
5980         * objfiles.c (objfile_relocate1): Update.
5981         * psymtab.c (lookup_symbol_aux_psymtabs)
5982         (maintenance_check_psymtabs): Update.
5983         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5984         Update.
5985         * spu-tdep.c (spu_catch_start): Update.
5986         * symmisc.c (dump_symtab_1): Update.
5987         * symtab.c (lookup_global_symbol_from_objfile)
5988         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5989         (basic_lookup_transparent_type_quick)
5990         (basic_lookup_transparent_type, find_pc_sect_symtab)
5991         (find_pc_sect_line, search_symbols): Update.
5992         * block.c (find_block_in_blockvector): Make "bl" const.
5993         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5994         const.
5995         (blockvector_contains_pc): Make "bv" const.
5996         (block_for_pc_sect): Update.
5997         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5998         (blockvector_contains_pc): Update.
5999         * breakpoint.c (resolve_sal_pc): Update.
6000         * inline-frame.c (block_starting_point_at): Update.
6001
6002 2014-06-18  Tom Tromey  <[email protected]>
6003
6004         * completer.c (complete_line): Make "line_buffer" const.
6005         * completer.h (complete_line): Update.
6006
6007 2014-06-18  Tom Tromey  <[email protected]>
6008
6009         * symtab.c (add_macro_name): Remove unneeded cast.
6010
6011 2014-06-18  Tom Tromey  <[email protected]>
6012
6013         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6014         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6015
6016 2014-06-18  Tom Tromey  <[email protected]>
6017
6018         * probe.c (info_probes_for_ops): Make "arg" const.
6019         * probe.h (info_probes_for_ops): Update.
6020
6021 2014-06-18  Tom Tromey  <[email protected]>
6022
6023         * varobj.c (varobj_create): Update.
6024         * valops.c (value_of_this): Update.
6025         * tracepoint.c (add_local_symbols, scope_info): Update.
6026         * symtab.h (struct general_symbol_info) <block>: Now const.
6027         * symtab.c (skip_prologue_sal)
6028         (default_make_symbol_completion_list_break_on)
6029         (skip_prologue_using_sal): Update.
6030         * stack.h (iterate_over_block_locals)
6031         (iterate_over_block_local_vars): Update.
6032         * stack.c (print_frame_args): Update.
6033         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6034         parameter const.
6035         (get_selected_block): Make return type const.
6036         * python/py-frame.c (frapy_block): Update.
6037         * python/py-block.c (gdbpy_block_for_pc): Update.
6038         * p-exp.y (%union) <bval>: Now const.
6039         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6040         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6041         * m2-exp.y (%union) <bval>: Now const.
6042         * linespec.c (get_current_search_block): Make return type const.
6043         (create_sals_line_offset, find_label_symbols): Update.
6044         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6045         Update.
6046         (block_starting_point_at): Make "block" const.
6047         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6048         (check_exception_resume): Update.
6049         * guile/scm-frame.c (gdbscm_frame_block): Update.
6050         * guile/scm-block.c (gdbscm_lookup_block): Update.
6051         * frame.h (get_frame_block): Update.
6052         (get_selected_block): Make return type const.
6053         * frame.c (frame_id_inner): Update.
6054         * f-valprint.c (info_common_command_for_block)
6055         (info_common_command): Update.
6056         * dwarf2loc.c (dwarf2_find_location_expression)
6057         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6058         (locexpr_describe_location_piece): Update.
6059         * c-exp.y (%union) <bval>: Now const.
6060         * breakpoint.c (resolve_sal_pc): Update.
6061         * blockframe.c (get_frame_block):Make return type const.
6062         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6063         (block_innermost_frame): Update.
6064         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6065         (block_for_pc, block_for_pc_sect): Update.
6066         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6067         'pblock' const.
6068         (block_for_pc_sect, block_for_pc): Make return type const.
6069         * ax-gdb.c (gen_expr): Update.
6070         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6071         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6072         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6073         (ada_read_var_value): Update.
6074         * ada-exp.y (struct name_info) <block>: Now const.
6075         (%union): Likewise.
6076         (block_lookup): Constify.
6077
6078 2014-06-18  Gary Benson  <[email protected]>
6079
6080         * nat/i386-dregs.h: New file.
6081         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6082         * i386-nat.h (i386-dregs.h): New include.
6083         (DR_FIRSTADDR): Now in i386-dregs.h.
6084         (DR_LASTADDR): Likewise.
6085         (DR_NADDR): Likewise.
6086         (DR_STATUS): Likewise.
6087         (DR_CONTROL): Likewise.
6088         (i386_debug_reg_state): Likewise.
6089         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6090
6091 2014-06-18  Don Breazeal  <[email protected]>
6092
6093         * breakpoint.c (set_longjmp_breakpoint): Call
6094         momentary_breakpoint_from_master with additional argument.
6095         (set_longjmp_breakpoint_for_call_dummy): Call
6096         momentary_breakpoint_from_master with additional argument.
6097         (set_std_terminate_breakpoint): Call
6098         momentary_breakpoint_from_master with additional argument.
6099         (momentary_breakpoint_from_master): Add argument to function
6100         definition and use it to initialize structure member flag.
6101         (clone_momentary_breakpoint): Call
6102         momentary_breakpoint_from_master with additional argument.
6103         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6104         member flags set in momentary_breakpoint_from_master.
6105
6106 2014-06-18  Gary Benson  <[email protected]>
6107
6108         * i386-nat.c (i386_show_dr): Renamed to
6109         i386_dr_show and made nonstatic.  All uses updated.
6110         (i386_length_and_rw_bits): Renamed to
6111         i386_dr_length_and_rw_bits and made nonstatic.
6112         All uses updated.
6113         (i386_insert_aligned_watchpoint): Renamed to
6114         i386_dr_insert_aligned_watchpoint and made nonstatic.
6115         All uses updated.
6116         (i386_remove_aligned_watchpoint): Renamed to
6117         i386_dr_remove_aligned_watchpoint and made nonstatic.
6118         All uses updated.
6119         (i386_update_inferior_debug_regs): Renamed to
6120         i386_dr_update_inferior_debug_regs and made nonstatic.
6121         All uses updated.
6122
6123 2014-06-18  Gary Benson  <[email protected]>
6124
6125         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6126         (i386_dr_low_can_set_control): Likewise.
6127         (i386_dr_low_set_addr): Likewise.
6128         (i386_dr_low_set_control): Likewise.
6129         (i386_dr_low_get_addr): Likewise.
6130         (i386_dr_low_get_status): Likewise.
6131         (i386_dr_low_get_control): Likewise.
6132         (i386_insert_aligned_watchpoint): Use new macros.
6133         (i386_update_inferior_debug_regs): Likewise.
6134         (i386_stopped_data_address): Likewise.
6135
6136 2014-06-18  Gary Benson  <[email protected]>
6137
6138         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6139         New parameter.  All uses updated.
6140
6141 2014-06-18  Gary Benson  <[email protected]>
6142
6143         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6144         All uses updated.
6145
6146 2014-06-18  Gary Benson  <[email protected]>
6147
6148         * i386-nat.c (debug_printf): New macro.
6149         (i386_get_debug_register_length): Likewise.
6150         (TARGET_HAS_DR_LEN_8): Use above macro.
6151         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6152         and printf_unfiltered.  Use phex to format values.
6153
6154 2014-06-18  Gary Benson  <[email protected]>
6155
6156         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6157         Make const.
6158
6159 2014-06-18  Gary Benson  <[email protected]>
6160
6161         * i386-nat.c: Comment changes.
6162
6163 2014-06-18  Gary Benson  <[email protected]>
6164
6165         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6166
6167 2014-06-18  Gary Benson  <[email protected]>
6168
6169         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6170         (i386_insert_aligned_watchpoint): Likewise.
6171         (i386_remove_aligned_watchpoint): Likewise.
6172         (i386_handle_nonaligned_watchpoint): Likewise.
6173
6174 2014-06-18  Gary Benson  <[email protected]>
6175
6176         * i386-nat.c: Whitespace changes.
6177
6178 2014-06-17  Samuel Bronson  <[email protected]>
6179
6180         * MAINTAINERS: Update Roland McGrath's email address.
6181         Thanks to Sergio Durigan Junior for pointing out that he left
6182         Red Hat a while ago, and giving me a current address.
6183
6184 2014-06-17  Tom Tromey  <[email protected]>
6185
6186         * utils.h (savestring): Remove declaration.
6187
6188 2014-06-17  Tom Tromey  <[email protected]>
6189
6190         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6191
6192 2014-06-16  Keith Seitz  <[email protected]>
6193
6194         PR mi/15863
6195         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6196         to update the varobj if inferior_ptid is null_ptid.
6197
6198 2014-06-16  Tom Tromey  <[email protected]>
6199
6200         * target.h (struct target_ops) <to_info_proc>: Make parameter
6201         const.
6202         (target_info_proc): Update.
6203         * target.c (target_info_proc): Make "args" const.
6204         * procfs.c (procfs_info_proc): Update.
6205         * linux-tdep.c (linux_info_proc): Update.
6206         (linux_core_info_proc_mappings): Make "args" const.
6207         (linux_core_info_proc): Update.
6208         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6209         * gdbarch.c: Rebuild.
6210         * gdbarch.h: Rebuild.
6211         * corelow.c (core_info_proc): Update.
6212
6213 2014-06-16  Tom Tromey  <[email protected]>
6214
6215         * target.h (struct target_ops) <to_disconnect>: Make parameter
6216         const.
6217         (target_disconnect): Update.
6218         * target.c (target_disconnect): Make "args" const.
6219         * target-delegates.c: Rebuild.
6220         * remote.c (remote_disconnect): Update.
6221         * record.h (record_disconnect): Update.
6222         * record.c (record_disconnect): Update.
6223         * inf-child.c (inf_child_disconnect): Update.
6224
6225 2014-06-16  Tom Tromey  <[email protected]>
6226
6227         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6228         * target.c (debug_to_rcmd, default_rcmd): Update.
6229         * target-delegates.c: Rebuild.
6230         * remote.c (remote_rcmd): Update.
6231         * monitor.c (monitor_rcmd): Update.
6232
6233 2014-06-16  Pedro Alves  <[email protected]>
6234
6235         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6236         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6237         have OBJF_SHARED set.
6238         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6239         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6240         instead of OBJF_USERLOADED.
6241         * objfiles.h (OBJF_SHARED): Update comment.
6242         (userloaded_objfile_contains_address_p): Rename to ...
6243         (shared_objfile_contains_address_p): ... this, and update
6244         comments.
6245         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6246         new objfile.
6247         (remove_symbol_file_command): Skip objfiles that don't have
6248         OBJF_SHARED set.
6249
6250 2014-06-16  Tom Tromey  <[email protected]>
6251
6252         * minsyms.h (prim_record_minimal_symbol)
6253         (prim_record_minimal_symbol_and_info): Update comments.
6254
6255 2014-06-14  Eli Zaretskii  <[email protected]>
6256
6257         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6258         or --without-guile, according to how GDB was built.
6259
6260 2014-06-13  Tom Tromey  <[email protected]>
6261
6262         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6263         to help_list.
6264         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6265         to help_list.
6266         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6267         help_list.
6268         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6269         help_list.Pass all_commands, not -1, to help_list.
6270         * cli/cli-dump.c (dump_command, append_command)
6271         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6272         (binary_dump_command, binary_append_command): Pass all_commands,
6273         not -1, to help_list.
6274         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6275         -1, to help_list.
6276         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6277         -1, to help_list.
6278         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6279         help_list.
6280         * top.c (set_history): Pass all_commands, not -1, to help_list.
6281         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6282         all_commands, not -1, to help_list.
6283         * symfile.c (overlay_command): Pass all_commands, not -1, to
6284         help_list.
6285         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6286         help_list.
6287         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6288         help_list.
6289         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6290         -1, to help_list.
6291         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6292         not -1, to help_list.
6293         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6294         not -1, to help_list.
6295         * maint.c (maintenance_command, maintenance_info_command)
6296         (maintenance_print_command, maintenance_set_cmd): Pass
6297         all_commands, not -1, to help_list.
6298         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6299         help_list.
6300         * language.c (set_check): Pass all_commands, not -1, to help_list.
6301         * infcmd.c (unset_command): Pass all_commands, not -1, to
6302         help_list.
6303         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6304         help_list.
6305         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6306         help_list.
6307         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6308         help_list.
6309         * breakpoint.c (save_command): Pass all_commands, not -1, to
6310         help_list.
6311         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6312         all_commands, not -1, to help_list.
6313
6314 2014-06-12  Pierre Langlois  <[email protected]>
6315
6316         * regcache.c (struct register_to_invalidate): New structure.
6317         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6318         functions.
6319         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6320
6321 2014-06-12  Yao Qi  <[email protected]>
6322
6323         * varobj.c (varobj_get_num_children): Call
6324         varobj_is_dynamic_p.
6325         (varobj_list_children): Likewise.
6326         (varobj_update): Likewise.  Update comments.
6327
6328 2014-06-12  Yao Qi  <[email protected]>
6329
6330         * varobj.c (varobj_pretty_printed_p): Rename to ...
6331         (varobj_is_dynamic_p): ... this.  New function.
6332         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6333         (varobj_is_dynamic_p): Declare.
6334         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6335         (mi_print_value_p, varobj_update_one): Likewise.
6336
6337 2014-06-12  Pedro Alves  <[email protected]>
6338             Yao Qi  <[email protected]>
6339
6340         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6341         (varobj_get_iterator): Wrap up code for pretty-printer by
6342         "#if HAVE_PYTHON" and "#endif".
6343         (update_dynamic_varobj_children): Likewise.
6344
6345 2014-06-12  Pedro Alves  <[email protected]>
6346             Yao Qi  <[email protected]>
6347
6348         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6349         gdb_python_initialized is false.  Move some code from varobj.c.
6350         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6351         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6352         (struct varobj_item): Moved to varobj-iter.h".
6353         (varobj_clear_saved_item): New function.
6354         (update_dynamic_varobj_children): Move python-related code to
6355         py-varobj.c.
6356         (free_variable): Call varobj_clear_saved_item and
6357         varobj_iter_delete.
6358
6359 2014-06-12  Pedro Alves  <[email protected]>
6360             Yao Qi  <[email protected]>
6361
6362         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6363         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6364         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6365         (py-varobj.o): New rule.
6366         * python/py-varobj.c: New file.
6367         * python/python-internal.h (py_varobj_get_iterator): Declare.
6368         * varobj-iter.h: New file.
6369         * varobj.c: Include "varobj-iter.h"
6370         (struct varobj) <child_iter>: Change its type from "PyObject *"
6371         to "struct varobj_iter *".
6372         <saved_item>: Likewise.
6373         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6374         [HAVE_PYTHON] (varobj_get_iterator): New function.
6375         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6376         python-specific code to python/py-varobj.c.
6377         (install_visualizer): Call varobj_iter_delete instead of
6378         Py_XDECREF.
6379         * varobj.h (varobj_ensure_python_env): Declare.
6380
6381 2014-06-12  Yao Qi  <[email protected]>
6382
6383         * varobj.c (struct varobj_item): New structure.
6384         (create_child_with_value): Update declaration.
6385         (varobj_add_child): Replace arguments 'name' and 'value' with
6386         'item'.  All callers updated.
6387         (install_dynamic_child): Likewise.
6388         (update_dynamic_varobj_children): Likewise.
6389         (varobj_add_child): Likewise.
6390         (create_child_with_value): Likewise.
6391
6392 2014-06-11  Joel Brobecker  <[email protected]>
6393
6394         * NEWS: Create a new section for the next release branch.
6395         Rename the section of the current branch, now that it has
6396         been cut.
6397
6398 2014-06-11  Joel Brobecker  <[email protected]>
6399
6400         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6401         * version.in: Bump version to 7.8.50.DATE-cvs.
6402
6403 2014-06-11  Pedro Alves  <[email protected]>
6404
6405         PR remote/17028
6406         * ser-mingw.c (net_windows_socket_check_pending): New function.
6407         (net_windows_select_thread): Ignore spurious wakeups.  Use
6408         net_windows_socket_check_pending.
6409         (net_windows_wait_handle): Check for pending events with
6410         ioctlsocket, through net_windows_socket_check_pending, instead of
6411         checking the socket's event.
6412
6413 2014-06-10  Siva Chandra Reddy  <[email protected]>
6414
6415         * python/python-internal.h (gdb_PyObject_GetAttrString)
6416         (gdb_PyObject_HasAttrString): New inline function definitions.
6417         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6418         char * of the second argument to PyObject_GetAttrString.
6419
6420 2014-06-10  Joel Brobecker  <[email protected]>
6421
6422         * serial.c (serial_write): Fix index of character to be printed
6423         in call to serial_logchar when serial debug traces are enabled.
6424
6425 2014-06-10  Joel Brobecker  <[email protected]>
6426
6427         * gdbtypes (resolve_dynamic_range): Add function description.
6428
6429 2014-06-09  Pedro Alves  <[email protected]>
6430
6431         * linux-nat.c (linux_child_follow_fork): Initialize status with
6432         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6433         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6434         state.
6435
6436 2014-06-09  Gary Benson  <[email protected]>
6437
6438         * common/signals.c (gdb_signal_from_host): Reorder to separate
6439         the always-available ANSI-standard signals from the signals that
6440         require checking.
6441         (do_gdb_signal_to_host): Likewise.
6442         * proc-events.c (signal_table): Likewise.
6443
6444 2014-06-08  Hui Zhu  <[email protected]>
6445
6446         * common/linux-ptrace.c (linux_disable_event_reporting): New
6447         function.
6448         * common/linux-ptrace.h (linux_disable_event_reporting): New
6449         declaration.
6450         * linux-nat.c (linux_child_follow_fork): Do a single step before
6451         detach.
6452
6453 2014-06-07  Keith Seitz  <[email protected]>
6454
6455         Revert:
6456         PR c++/16253
6457         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6458         from symbol_matches_domain in symtab.c. All local callers
6459         of symbol_matches_domain updated.
6460         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6461         search STRUCT_DOMAIN.
6462         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6463         independently.  standard_lookup will do that automatically.
6464         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6465         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6466         (cp_lookup_symbol_in_namespace): Likewise.
6467         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6468         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6469         may return a STRUCT_DOMAIN match.
6470         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6471         * cp-support.c: Include language.h.
6472         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6473         VAR_DOMAIN.
6474         * psymtab.c (match_partial_symbol): Compare the requested
6475         domain with the symbol's domain directly.
6476         (lookup_partial_symbol): Likewise.
6477         * symtab.c (lookup_symbol_in_language): Explain when/why
6478         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6479         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6480         appropriate languages.
6481         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6482         and moved to ada-lang.c
6483         (lookup_block_symbol): Explain that this function only returns
6484         symbol matching the requested DOMAIN.
6485         Compare the requested domain with the symbol's domain directly.
6486         (iterate_over_symbols): Compare the requested domain with the
6487         symbol's domain directly.
6488         * symtab.h (symbol_matches_domain): Remove.
6489
6490 2014-06-06  Doug Evans  <[email protected]>
6491
6492         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6493         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6494         (gdbscm_guile_version_is_at_least): Declare.
6495         (gdbscm_scm_string_to_int): Declare.
6496         * guile/guile.c (gdbscm_guile_major_version): New global.
6497         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6498         (guile_datadir): New static global.
6499         (gdbscm_guile_data_directory): New function.
6500         (initialize_scheme_side): Update.
6501         (misc_guile_functions): Add guile-data-directory.
6502         (initialize_gdb_module): Fetch guile version number.
6503         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6504         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6505         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6506         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6507         comments.
6508         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6509         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6510         * guile/scm-value.c (gdbscm_value_to_string): Only call
6511         scm_port_conversion_strategy if Guile version >= 2.0.6.
6512
6513 2014-06-06  Mingjie Xing  <[email protected]>
6514
6515         * main.c (print_gdb_help): Add -q and --silent.
6516
6517 2014-06-06  Gary Benson  <[email protected]>
6518
6519         * common/signals.c: Remove preprocessor conditionals for
6520         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6521         SIGSEGV and SIGTERM.
6522         * proc-events.c: Likewise.
6523
6524 2014-06-06  Markus Metzger  <[email protected]>
6525
6526         * symfile.c (symfile_free_objfile): Remove restriction to
6527         OBJF_USERLOADED.
6528         * symfile-mem.c (symbol_file_add_from_memory): Call
6529         add_target_sections_of_objfile.
6530
6531 2014-06-05  Ludovic Courtès  <[email protected]>
6532
6533         * guile/scm-value.c (gdbscm_history_append_x): Use
6534         'vlscm_get_value_smob_arg_unsafe' instead of
6535         'vlscm_scm_to_value'.
6536
6537 2014-06-05  Simon Marchi  <[email protected]>
6538
6539         PR mi/15806
6540         * utils.c (printchar): Don't escape at all if quoter is NUL.
6541         Update function documentation to clarify effect of parameter
6542         QUOTER.
6543         * remote.c (escape_buffer): Pass '\\' as the quoter to
6544         fputstrn_unfiltered.
6545         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6546         generate the output.
6547         (mi_solib_unloaded): Same.
6548
6549 2014-06-05  Joel Brobecker  <[email protected]>
6550
6551         * development.sh: Delete.
6552         * Makefile.in (config.status): Adjust dependency on development.sh.
6553         * configure.ac: Adjust development.sh source call.
6554         * configure: Regenerate.
6555
6556 2014-06-04  Doug Evans  <[email protected]>
6557
6558         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6559         is_scheme_bkpt, spec.
6560         (bpscm_make_breakpoint_smob): Initialize new members.
6561         (gdbscm_create_breakpoint_x): Split into two ...
6562         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6563         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6564         (scheme_function breakpoint_functions): Update.
6565         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6566         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6567         register-breakpoint!.
6568
6569 2014-06-04  Joel Brobecker  <[email protected]>
6570
6571         PR server/17023
6572         * mem-break.c (z_type_supported): Return zero if
6573         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6574
6575 2014-06-04  Tom Tromey  <[email protected]>
6576
6577         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6578         value_from_contents_and_address_unresolved.
6579         (ada_template_to_fixed_record_type_1): Likewise.
6580         (ada_which_variant_applies): Likewise.
6581         * value.h (value_from_contents_and_address_unresolved): Declare.
6582         * value.c (value_from_contents_and_address_unresolved): New
6583         function.
6584         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6585         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6586         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6587
6588 2014-06-04  Tom Tromey  <[email protected]>
6589
6590         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6591
6592 2014-06-04  Tom Tromey  <[email protected]>
6593
6594         * procfs.c (procfs_attach): Make "args" const.
6595         * windows-nat.c (windows_attach): Make "args" const.
6596         * nto-procfs.c (procfs_attach): Make "args" const.
6597         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6598         * go32-nat.c (go32_attach): Make "args" const.
6599         * gnu-nat.c (gnu_attach): Make "args" const.
6600         * darwin-nat.c (darwin_attach): Make "args" const.
6601         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6602         * linux-nat.c (linux_nat_attach): Make "args" const.
6603         * remote.c (extended_remote_attach_1, extended_remote_attach):
6604         Make "args" const.
6605         * target.h (struct target_ops) <to_attach>: Make "args" const.
6606         (find_default_attach): Likewise.
6607         * utils.c (parse_pid_to_attach): Make "args" const.
6608         * utils.h (parse_pid_to_attach): Update.
6609
6610 2014-06-04  Tom Tromey  <[email protected]>
6611
6612         * target-delegates.c: Rebuild.
6613         * target.c (default_thread_address_space): New function.
6614         (target_thread_address_space): Simplify.
6615         * target.h (struct target_ops) <to_thread_address_space>: Add
6616         TARGET_DEFAULT_FUNC.
6617
6618 2014-06-04  Doug Evans  <[email protected]>
6619
6620         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6621
6622 2014-06-04  Markus Metzger  <[email protected]>
6623
6624         * record-btrace.c: Include event-loop.h and inf-loop.h.
6625         (record_btrace_resume_exec_dir)
6626         (record_btrace_async_inferior_event_handler)
6627         (record_btrace_handle_async_inferior_event): New.
6628         (record_btrace_open): Create async event handler.
6629         (record_btrace_close): Delete async event handler.
6630         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6631         Mark async event handler.
6632         (record_btrace_execution_direction): New.
6633         (init_record_btrace_ops): Initialize to_execution_direction.
6634
6635 2014-06-03  Doug Evans  <[email protected]>
6636
6637         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6638         (gdbscm_make_parameter): Ditto.
6639
6640 2014-06-03  Doug Evans  <[email protected]>
6641
6642         * exec.c (exec_close_1): Call clear_section_table instead of
6643         resize_section_table.
6644         (clear_section_table): New function.
6645         (resize_section_table): Make static.  Rename arg num_added to
6646         adjustment.
6647         * exec.h (clear_section_table): Declare.
6648         (resize_section_table): Delete.
6649         * progspace.c (release_program_space): Call clear_section_table
6650         instead of resize_section_table.
6651
6652 2014-06-03  Siva Chandra Reddy  <[email protected]>
6653
6654         * NEWS (Python Scripting): Add entry about the new xmethods
6655         feature.
6656
6657 2014-06-03  Siva Chandra Reddy  <[email protected]>
6658
6659         * python/py-xmethods.c: New file.
6660         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6661         (objfpy_dealloc): XDECREF on the new xmethods field.
6662         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6663         field.
6664         (objfpy_get_xmethods): New function.
6665         (objfile_getset): New entry 'xmethods'.
6666         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6667         (pspy_dealloc): XDECREF on the new xmethods field.
6668         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6669         field.
6670         (pspy_get_xmethods): New function.
6671         (pspace_getset): New entry 'xmethods'.
6672         * python/python-internal.h: Add declarations for new functions.
6673         * python/python.c (_initialize_python): Invoke
6674         gdbpy_initialize_xmethods.
6675         * python/lib/gdb/__init__.py (xmethods): New
6676         attribute.
6677         * python/lib/gdb/xmethod.py: New file.
6678         * python/lib/gdb/command/xmethods.py: New file.
6679
6680 2014-06-03  Siva Chandra Reddy  <[email protected]>
6681
6682         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6683         best match method returned by find_overload_match is an xmethod.
6684         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6685         the best matching operator returned by find_overload_match is an
6686         xmethod.
6687         * valops.c: #include "extension.h".
6688         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6689         Return void.  The list of matching source methods is returned in
6690         "fn_list" and a vector of matching debug method workers is
6691         returned in "xm_worker_vec".  Update all callers.
6692         (value_find_oload_method_list): Likewise.
6693         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6694         non-NULL, then the index of the best matching method in this
6695         vector is returned.  Update all callers.
6696         (find_overload_match): Include xmethods while performing overload
6697         resolution.
6698
6699 2014-06-03  Siva Chandra Reddy  <[email protected]>
6700
6701         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6702         * extension-priv.h (struct extension_language_ops): Add the
6703         xmethod interface.
6704         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6705         get_matching_xmethod_workers, get_xmethod_argtypes,
6706         invoke_xmethod, free_xmethod_worker,
6707         free_xmethod_worker_vec): New functions.
6708         * extension.h: #include "common/vec.h".
6709         New function declarations.
6710         (struct xmethod_worker): New struct.
6711         (VEC (xmethod_worker_ptr)): New vector type.
6712         (xmethod_worker_ptr): New typedef.
6713         (xmethod_worker_vec): Likewise.
6714         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6715         builtin_type.
6716         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6717         (struct builtin_type): New field "xmethod".
6718         * valarith.c (value_ptradd): Assert that the value argument is not
6719         lval_xcallable.
6720         * valops.c (value_must_coerce_to_target): Return 0 for
6721         lval_xcallable values.
6722         * value.c (struct value): New field XM_WORKER in the field
6723         LOCATION.
6724         (value_address, value_raw_address): Return 0 for lval_xcallable
6725         values.
6726         (set_value_address): Assert that the value is not an
6727         lval_xcallable.
6728         (value_free): Free the associated xmethod worker when freeing
6729         lval_xcallable values.
6730         (set_value_component_location): Assert that the WHOLE value is not
6731         lval_xcallable.
6732         (value_of_xmethod, call_xmethod): New functions.
6733         * value.h: Declare "struct xmethod_worker".
6734         Declare new functions value_of_xmethod, call_xmethod.
6735
6736 2014-06-03  Joel Brobecker  <[email protected]>
6737             Pedro Alves  <[email protected]>
6738
6739         PR breakpoints/17000
6740         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6741         New function, extracted from software_breakpoint_inserted_here_p.
6742         (software_breakpoint_inserted_here_p): Replace factored out code
6743         by call to find_non_raw_software_breakpoint_inserted_here.
6744         (bp_target_info_copy_insertion_state): New function.
6745         (bkpt_insert_location): Handle the case of a single-step
6746         breakpoint already inserted at the same address.
6747         (bkpt_remove_location): Handle the case of a single-step
6748         breakpoint still inserted at the same address.
6749         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6750         breakpoint already inserted at the same address.
6751         (deprecated_remove_raw_breakpoint): Handle the case of a
6752         non-raw breakpoint still inserted at the same address.
6753         (find_single_step_breakpoint): New function, extracted from
6754         single_step_breakpoint_inserted_here_p.
6755         (find_single_step_breakpoint): New function,
6756         factored out from single_step_breakpoint_inserted_here_p.
6757         (single_step_breakpoint_inserted_here_p): Reimplement.
6758
6759 2014-06-03  Brad Mouring  <[email protected]>  (tiny patch)
6760
6761         Pushed by Joel Brobecker  <[email protected]>
6762         * source.c (show_substitute_path_command): Fix display of matching
6763         substitution rules.
6764
6765 2014-06-03  Gary Benson  <[email protected]>
6766
6767         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6768
6769 2014-06-02  Doug Evans  <[email protected]>
6770
6771         Add parameter support for Guile.
6772         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6773         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6774         (scm-param.o): New rule.
6775         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6776         (gdbscm_misc_error): Declare.
6777         (gdbscm_canonicalize_command_name): Declare.
6778         (gdbscm_scm_to_host_string): Declare.
6779         (gdbscm_scm_from_host_string): Declare.
6780         (gdbscm_initialize_parameters): Declare.
6781         * guile/guile.c (initialize_gdb_module): Call
6782         gdbscm_initialize_parameters.
6783         * guile/lib/gdb.scm: Export parameter symbols.
6784         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6785         cmdscm_canonicalize_name and made public.  All callers updated.
6786         * guile/scm-exception.c (gdbscm_misc_error): New function.
6787         * guile/scm-param.c: New file.
6788         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6789         (gdbscm_scm_to_host_string): New function.
6790         (gdbscm_scm_from_host_string): New function.
6791         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6792
6793 2014-06-02  Doug Evans  <[email protected]>
6794
6795         Add command support for Guile.
6796         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6797         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6798         (scm-cmd.o): New rule.
6799         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6800         (gdbscm_user_error_p): Declare.
6801         (gdbscm_parse_command_name): Declare.
6802         (gdbscm_valid_command_class_p): Declare.
6803         (gdbscm_initialize_commands): Declare.
6804         * guile/guile.c (initialize_gdb_module): Call
6805         gdbscm_initialize_commands.
6806         * guile/lib/gdb.scm: Export command symbols.
6807         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6808         (throw-user-error): New function.
6809         * guile/scm-cmd.c: New file.
6810         * guile/scm-exception.c (user_error_symbol): New static global.
6811         (gdbscm_user_error_p): New function.
6812         (gdbscm_initialize_exceptions): Set user_error_symbol.
6813         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6814
6815 2014-06-02  Phil Muldoon  <[email protected]>
6816
6817         * top.c (command_loop): Handle comments here...
6818         (command_line_input): ... not here.
6819
6820 2014-06-02  Doug Evans  <[email protected]>
6821
6822         Add progspace support for Guile.
6823         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6824         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6825         (scm-progspace.o): New rule.
6826         * guile/guile-internal.h (pspace_smob): New typedef.
6827         (psscm_pspace_smob_pretty_printers): Declare.
6828         (psscm_pspace_smob_from_pspace): Declare.
6829         (psscm_scm_from_pspace): Declare.
6830         * guile/guile.c (initialize_gdb_module): Call
6831         gdbscm_initialize_pspaces.
6832         * guile/lib/gdb.scm: Export progspace symbols.
6833         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6834         support.
6835         (append-pretty-printer!): Ditto.
6836         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6837         Implement.
6838         * guile/scm-progspace.c: New file.
6839
6840 2014-06-03  Alan Modra  <[email protected]>
6841
6842         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6843         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6844
6845 2014-06-02  Doug Evans  <[email protected]>
6846
6847         Add support for skeletonless type units.
6848         * dwarf2read.c (struct dwarf2_per_objfile): New member
6849         n_allocated_type_units.
6850         (struct dwarf2_per_objfile) <tu_stats>: New member
6851         nr_all_type_units_reallocs.
6852         (create_signatured_type_table_from_index): Initialize
6853         n_allocated_type_units
6854         (create_all_type_units): Ditto.
6855         (add_type_unit): Move up in file.  New arg slot.
6856         All callers updated.  Increase space for all_type_units more
6857         efficiently.
6858         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6859         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6860         (lookup_dwp_signatured_type): Ditto.
6861         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6862         All callers updated.
6863         (build_type_psymtabs_1): Leave type_unit_groups as
6864         NULL if no TUs present.
6865         (print_tu_stats): New function.
6866         (process_skeletonless_type_unit): New function.
6867         (process_dwo_file_for_skeletonless_type_units): New
6868         function.
6869         (process_skeletonless_type_units): New function.
6870         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6871         Call print tu_stats if debugging enabled.
6872
6873 2014-06-02  Pedro Alves  <[email protected]>
6874
6875         * breakpoint.c (build_target_command_list): Don't build a command
6876         list if we have any duplicate location that isn't a dprintf.
6877
6878 2014-06-02  Pedro Alves  <[email protected]>
6879
6880         * breakpoint.c (dprintf_breakpoint_hit): New function.
6881         (initialize_breakpoint_ops): Install it as dprintf's
6882         breakpoint_hit method.
6883
6884 2014-06-02  Joel Brobecker  <[email protected]>
6885
6886         * source.c (substitute_path_rule_matches): Simplify using
6887         filename_ncmp instead of FILENAME_CMP.
6888
6889 2014-06-02  Joel Brobecker  <[email protected]>
6890
6891         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6892
6893 2014-06-01  Ludovic Courtès  <[email protected]>
6894
6895         * configure.ac: When Guile is available, check for the
6896         availability of 'scm_new_smob'.
6897         * configure, config.h.in: Regenerate.
6898         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6899         function.
6900
6901 2014-05-30  Andrew Burgess  <[email protected]>
6902
6903         * frame.c (struct frame_info): Add stop_string field.
6904         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6905         (get_prev_frame_always): Old content moved into
6906         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6907         TRY_CATCH, handle MEMORY_ERROR exceptions.
6908         (frame_stop_reason_string): New function definition.
6909         * frame.h (unwind_stop_reason_to_string): Extend comment to
6910         mention frame_stop_reason_string.
6911         (frame_stop_reason_string): New function declaration.
6912         * stack.c (frame_info): Switch to frame_stop_reason_string.
6913         (backtrace_command_1): Switch to frame_stop_reason_string.
6914         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6915         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6916         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6917
6918 2014-05-30  Andrew Burgess  <[email protected]>
6919
6920         * frame.c (frame_stop_reason_string): Rename to ...
6921         (unwind_stop_reason_to_string): this.
6922         * frame.h (frame_stop_reason_string): Rename to ...
6923         (unwind_stop_reason_to_string): this.
6924         * stack.c (frame_info): Update call to frame_stop_reason_string.
6925         (backtrace_command_1): Likewise.
6926         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6927         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6928
6929 2014-05-30  Andrew Burgess  <[email protected]>
6930
6931         * frame.c (remove_prev_frame): New function.
6932         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6933         remove_prev_frame.
6934
6935 2014-05-29  Pedro Alves  <[email protected]>
6936
6937         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6938         and make it const.  When a single-step decays to a continue,
6939         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6940         to step to user_visible_resume_ptid, not what we ask the
6941         target to do.
6942
6943 2014-05-29  Pedro Alves  <[email protected]>
6944
6945         * infrun.c (process_event_stop_test, handle_step_into_function)
6946         (handle_step_into_function_backward): Adjust.
6947         Don't set the even thread's stop_step and call stop_waiting before
6948         calling end_stepping_range.  Instead do that ...
6949         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6950
6951 2014-05-29  Pedro Alves  <[email protected]>
6952
6953         * infrun.c (stop_stepping): Rename to ...
6954         (stop_waiting): ... this.
6955         (proceed): Update comment.
6956         (process_event_stop_test, handle_inferior_event)
6957         (handle_signal_stop, handle_step_into_function)
6958         (handle_step_into_function_backward): Update.
6959
6960 2014-05-29  Pedro Alves  <[email protected]>
6961
6962         * infcall.c (run_inferior_call): Don't check whether the current
6963         thread is running after the proceed call.
6964
6965 2014-05-29  Pedro Alves  <[email protected]>
6966             Tom Tromey  <[email protected]>
6967
6968         * NEWS: Mention "maint set target-async", "set mi-async", and that
6969         background execution commands are now always available.
6970         * target.h (target_async_permitted): Update comment.
6971         * target.c (target_async_permitted, target_async_permitted_1):
6972         Default to 1.
6973         (set_target_async_command): Rename to ...
6974         (maint_set_target_async_command): ... this.
6975         (show_target_async_command): Rename to ...
6976         (maint_show_target_async_command): ... this.
6977         (_initialize_target): Adjust.
6978         * infcmd.c (prepare_execution_command): Make extern.
6979         * inferior.h (prepare_execution_command): Declare.
6980         * infrun.c (set_observer_mode): Leave target async alone.
6981         * mi/mi-interp.c (mi_interpreter_init): Install
6982         mi_on_sync_execution_done as sync_execution_done observer.
6983         (mi_on_sync_execution_done): New function.
6984         (mi_execute_command_input_handler): Don't print the prompt if we
6985         just started a synchronous command with an async target.
6986         (mi_on_resume): Check sync_execution before printing prompt.
6987         * mi/mi-main.h (mi_async_p): Declare.
6988         * mi/mi-main.c: Include gdbcmd.h.
6989         (mi_async_p): New function.
6990         (mi_async, mi_async_1): New globals.
6991         (set_mi_async_command, show_mi_async_command, mi_async): New
6992         functions.
6993         (exec_continue): Call prepare_execution_command.
6994         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6995         (mi_execute_async_cli_command): Use mi_async_p.
6996         (_initialize_mi_main): Install "set mi-async".  Make
6997         "target-async" a deprecated alias.
6998
6999 2014-05-29  Pedro Alves  <[email protected]>
7000
7001         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7002         (_initialize_cli_interp): Adjust.
7003         * event-loop.c: Include "observer.h".
7004         (start_event_loop): Notify 'command_error' observers instead of
7005         calling display_gdb_prompt.  Remove FIXME comment.
7006         * event-top.c (display_gdb_prompt): Remove call into the
7007         interpreters.
7008         * inf-loop.c: Include "observer.h".
7009         (inferior_event_handler): Notify 'command_error' observers instead
7010         of calling display_gdb_prompt.
7011         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7012         observers instead of calling display_gdb_prompt.
7013         * interps.c (interp_set): Don't call display_gdb_prompt.
7014         (current_interp_display_prompt_p): Delete.
7015         * interps.h (interp_prompt_p): Delete declaration.
7016         (interp_prompt_p_ftype): Delete.
7017         (struct interp_procs) <prompt_proc_p>: Delete field.
7018         (current_interp_display_prompt_p): Delete declaration.
7019         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7020         (_initialize_mi_interp): Adjust.
7021         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7022         'command_error' observers.
7023         (tui_on_sync_execution_done, tui_on_command_error): New
7024         functions.
7025         (tui_display_prompt_p): Delete.
7026         (_initialize_tui_interp): Adjust.
7027
7028 2014-05-29  Pedro Alves  <[email protected]>
7029
7030         PR gdb/13860
7031         * cli/cli-interp.c: Include infrun.h and observer.h.
7032         (cli_uiout, cli_interp): New globals.
7033         (cli_on_signal_received, cli_on_end_stepping_range)
7034         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7035         functions.
7036         (cli_interpreter_init): Install them as 'end_stepping_range',
7037         'signal_received' 'signal_exited', 'exited' and 'no_history'
7038         observers.
7039         (_initialize_cli_interp): Remove cli_interp local.
7040         * infrun.c (handle_inferior_event): Call the several stop reason
7041         observers instead of printing the stop reason directly.
7042         (end_stepping_range): New function.
7043         (print_end_stepping_range_reason, print_signal_exited_reason)
7044         (print_exited_reason, print_signal_received_reason)
7045         (print_no_history_reason): Make static, and add an uiout
7046         parameter.  Print to that instead of to CURRENT_UIOUT.
7047         * infrun.h (print_end_stepping_range_reason)
7048         (print_signal_exited_reason, print_exited_reason)
7049         (print_signal_received_reason print_no_history_reason): New
7050         declarations.
7051         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7052         'mi_uiout'.
7053         <cli_uiout>: New field.
7054         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7055         uiout for CLI output.  Install 'signal_received',
7056         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7057         observers.
7058         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7059         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7060         (mi_on_no_history): New functions.
7061         (ui_out_free_cleanup): Delete function.
7062         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7063         instead use the one already stored in the MI interpreter data.
7064         (mi_ui_out): Adjust.
7065         * tui/tui-interp.c: Include infrun.h and observer.h.
7066         (tui_interp): New global.
7067         (tui_on_signal_received, tui_on_end_stepping_range)
7068         (tui_on_signal_exited, tui_on_exited)
7069         (tui_on_no_history): New functions.
7070         (tui_init): Install them as 'end_stepping_range',
7071         'signal_received' 'signal_exited', 'exited' and 'no_history'
7072         observers.
7073         (_initialize_tui_interp): Delete tui_interp local.
7074
7075 2014-05-29  Pedro Alves  <[email protected]>
7076
7077         PR gdb/15713
7078         * linux-nat.c (linux_nat_resume_callback): Rename the second
7079         parameter to 'except'.  Skip LP if it points to EXCEPT.
7080         (linux_nat_resume): Don't mark the event lwp as not stopped
7081         before resuming sibling lwps.  Instead ask
7082         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7083         stopped after actually resuming it.
7084         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7085         resuming it.
7086         (wait_lwp): Mark the lwp as stopped here.
7087         (stop_wait_callback): Mark the lwp as not stopped right after
7088         resuming it.  Don't mark lwps as stopped here.
7089         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7090         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7091
7092 2014-05-29  Pedro Alves  <[email protected]>
7093
7094         PR PR15693
7095         * infrun.c (resume): Determine how much to resume depending on
7096         whether the caller wanted a step, not whether we can hardware step
7097         the target.  Mark all threads that we intend to run as running,
7098         unless we're calling an inferior function.
7099         (normal_stop): If the thread is running an infcall, don't finish
7100         thread state.
7101         * target.c (target_resume): Don't mark threads as running here.
7102
7103 2014-05-28  Joel Brobecker  <[email protected]>
7104
7105         * serial.c (_initialize_serial): Remove support for
7106         the "set remotebaud" and "show remotebaud" commands.
7107         * NEWS: Add entry documenting the removal of that command.
7108
7109 2014-05-28  Yao Qi  <[email protected]>
7110
7111         * charset.c: Fix typo in comments.
7112
7113 2014-05-27  Gary Benson  <[email protected]>
7114
7115         * utils.c (internal_vproblem): Prompt for a bug report.
7116
7117 2014-05-26  Andy Wingo  <[email protected]>
7118
7119         * guile/scm-arch.c (arscm_mark_arch_smob):
7120         * guile/scm-block.c (bkscm_mark_block_smob)
7121         (bkscm_mark_block_syms_progress_smob):
7122         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7123         * guile/scm-exception.c (exscm_mark_exception_smob):
7124         * guile/scm-frame.c (frscm_mark_frame_smob):
7125         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7126         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7127         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7128         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7129         (ppscm_mark_pretty_printer_worker_smob):
7130         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7131         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7132         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7133         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7134         mark functions.
7135         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7136         function.
7137
7138 2014-05-26  Andy Wingo  <[email protected]>
7139             Doug Evans  <[email protected]>
7140
7141         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7142         empty_base_class.  All uses updated.
7143         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7144         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7145         Adapt all callers.
7146         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7147         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7148         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7149         (gdbscm_gsmob_has_property_p, add_property_name)
7150         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7151         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7152         (gdb-object-has-property?, gdb-object-properties): Remove.
7153         (gdb-object-kind): Renamed from gsmob-kind.
7154
7155 2014-05-26  Andy Wingo  <[email protected]>
7156
7157         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7158         * configure: Regenerate.
7159
7160 2014-05-23  Markus Metzger  <[email protected]>
7161
7162         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7163
7164 2014-05-23  Markus Metzger  <[email protected]>
7165
7166         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7167         (replay_memory_access_read_only, replay_memory_access_read_write)
7168         (replay_memory_access_types, replay_memory_access)
7169         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7170         (cmd_set_record_btrace, cmd_show_record_btrace)
7171         (cmd_show_replay_memory_access): New.
7172         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7173         (record_btrace_remove_breakpoint): Replace
7174         record_btrace_allow_memory_access with replay_memory_access.
7175         (_initialize_record_btrace): Add commands.
7176         * NEWS: Announce it.
7177
7178 2014-05-22  Ramana Radhakrishnan  <[email protected]>
7179
7180         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7181
7182 2014-05-22  Ramana Radhakrishnan  <[email protected]>
7183
7184         * MAINTAINERS (Write After Approval): Move self back from
7185         paper trail.
7186
7187 2014-05-22  Pedro Alves  <[email protected]>
7188
7189         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7190         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7191         (disable_randomization, enum exec_direction_kind)
7192         (execution_direction, stop_registers, start_remote)
7193         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7194         (wait_for_inferior, normal_stop, get_last_target_status)
7195         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7196         (insert_step_resume_breakpoint_at_sal)
7197         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7198         (set_step_info, print_stop_event, signal_stop_state)
7199         (signal_print_state, signal_pass_state, signal_stop_update)
7200         (signal_print_update, signal_pass_update)
7201         (update_signals_program_target, clear_exit_convenience_vars)
7202         (displaced_step_dump_bytes, update_observer_mode)
7203         (signal_catch_update, gdb_signal_from_command): Move
7204         declarations ...
7205         * infrun.h: ... to this new file.
7206         * amd64-tdep.c: Include infrun.h.
7207         * annotate.c: Include infrun.h.
7208         * arch-utils.c: Include infrun.h.
7209         * arm-linux-tdep.c: Include infrun.h.
7210         * arm-tdep.c: Include infrun.h.
7211         * break-catch-sig.c: Include infrun.h.
7212         * breakpoint.c: Include infrun.h.
7213         * common/agent.c: Include infrun.h instead of inferior.h.
7214         * corelow.c: Include infrun.h.
7215         * event-top.c: Include infrun.h.
7216         * go32-nat.c: Include infrun.h.
7217         * i386-tdep.c: Include infrun.h.
7218         * inf-loop.c: Include infrun.h.
7219         * infcall.c: Include infrun.h.
7220         * infcmd.c: Include infrun.h.
7221         * infrun.c: Include infrun.h.
7222         * linux-fork.c: Include infrun.h.
7223         * linux-nat.c: Include infrun.h.
7224         * linux-thread-db.c: Include infrun.h.
7225         * monitor.c: Include infrun.h.
7226         * nto-tdep.c: Include infrun.h.
7227         * procfs.c: Include infrun.h.
7228         * record-btrace.c: Include infrun.h.
7229         * record-full.c: Include infrun.h.
7230         * remote-m32r-sdi.c: Include infrun.h.
7231         * remote-mips.c: Include infrun.h.
7232         * remote-notif.c: Include infrun.h.
7233         * remote-sim.c: Include infrun.h.
7234         * remote.c: Include infrun.h.
7235         * reverse.c: Include infrun.h.
7236         * rs6000-tdep.c: Include infrun.h.
7237         * s390-linux-tdep.c: Include infrun.h.
7238         * solib-irix.c: Include infrun.h.
7239         * solib-osf.c: Include infrun.h.
7240         * solib-svr4.c: Include infrun.h.
7241         * target.c: Include infrun.h.
7242         * top.c: Include infrun.h.
7243         * windows-nat.c: Include infrun.h.
7244         * mi/mi-interp.c: Include infrun.h.
7245         * mi/mi-main.c: Include infrun.h.
7246         * python/py-threadevent.c: Include infrun.h.
7247
7248 2014-05-22  Pedro Alves  <[email protected]>
7249
7250         * infrun.c (handle_inferior_event): Store the exit code for
7251         --return-child-result here, instead of ...
7252         (print_exited_reason): ... here.
7253
7254 2014-05-21  Pedro Alves  <[email protected]>
7255
7256         PR gdb/13860
7257         * gdbthread.h (struct thread_control_state): New field
7258         `command_interp'.
7259         * infrun.c (follow_fork): Copy the new thread control field to the
7260         child fork thread.
7261         (clear_proceed_status_thread): Clear the new thread control field.
7262         (proceed): Set the new thread control field.
7263         * interps.h (command_interp): Declare.
7264         * interps.c (command_interpreter): New global.
7265         (command_interp): New function.
7266         (interp_exec): Set `command_interpreter' while here.
7267         * cli-out.c (cli_uiout_dtor): New function.
7268         (cli_ui_out_impl): Install it.
7269         * mi/mi-interp.c: Include cli-out.h.
7270         (mi_cmd_interpreter_exec): Add comment.
7271         (restore_current_uiout_cleanup): New function.
7272         (ui_out_free_cleanup): New function.
7273         (mi_on_normal_stop): If finishing an execution command started by
7274         a CLI command, or any kind of breakpoint-like event triggered,
7275         print the stop event to the output (CLI) stream.
7276         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7277
7278 2014-05-21  Pedro Alves  <[email protected]>
7279
7280         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7281         current source line having changed.
7282         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7283         * infrun.c (normal_stop): Adjust call to
7284         set_current_sal_from_frame.
7285         * source.c (clear_lines_listed_range): New function.
7286         (set_current_source_symtab_and_line, identify_source_line): Clear
7287         the lines listed range.
7288         (line_info): Handle the first "info line" after the current source
7289         line having changed.
7290         * stack.c (print_stack_frame): Remove center handling.
7291         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7292         center sal.line.
7293
7294 2014-05-21  Pedro Alves  <[email protected]>
7295
7296         * inf-child.c (inf_child_mourn_inferior): New function.
7297         * inf-child.h (inf_child_mourn_inferior): New declaration.
7298         * darwin-nat.c (darwin_mourn_inferior): Use
7299         inf_child_mourn_inferior.
7300         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7301         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7302         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7303         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7304         * windows-nat.c (windows_mourn_inferior): Likewise.
7305
7306 2014-05-21  Doug Evans  <[email protected]>
7307
7308         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7309
7310 2014-05-21  Doug Evans  <[email protected]>
7311
7312         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7313         (gdbscm_out_of_range_error): Ditto.
7314         (gdbscm_memory_error): Ditto.
7315         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7316         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7317         (gdbscm_out_of_range_error): Update.
7318         (gdbscm_memory_error): Update.
7319         (gdbscm_scm_to_target_string_unsafe): Delete.
7320
7321 2014-05-21  Pedro Alves  <[email protected]>
7322
7323         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7324         globals.
7325         (inf_child_open_target): New function.
7326         (inf_child_open): Use inf_child_open_target to push the target
7327         instead of erroring out.
7328         (inf_child_disconnect, inf_child_close)
7329         (inf_child_maybe_unpush_target): New functions.
7330         (inf_child_target): Install inf_child_disconnect and
7331         inf_child_close.  Store a pointer to the returned object.
7332         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7333         declarations.
7334         * target.c (auto_connect_native_target): New global.
7335         (show_default_run_target): New function.
7336         (find_default_run_target): Return NULL if automatically connecting
7337         to the native target is disabled.
7338         (_initialize_target): Install set/show auto-connect-native-target.
7339         * NEWS: Mention "set auto-connect-native-target", and "target
7340         native".
7341         * linux-nat.c (super_close): New global.
7342         (linux_nat_close): Call super_close.
7343         (linux_nat_add_target): Store a pointer to the base class's
7344         to_close method.
7345         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7346         inf_child_maybe_unpush.
7347         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7348         already pushed.
7349         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7350         the inferior.  Use inf_child_maybe_unpush_target.
7351         (inf_ttrace_attach): Don't push the target if it is already
7352         pushed.
7353         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7354         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7355         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7356         (darwin_attach_pid): Don't push the target if it is already
7357         pushed.
7358         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7359         mourning the inferior.  Use inf_child_maybe_unpush_target.
7360         (gnu_detach): Use inf_child_maybe_unpush_target.
7361         * go32-nat.c (go32_create_inferior): Don't push the target if it
7362         is already pushed.
7363         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7364         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7365         (procfs_open): Rename to ...
7366         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7367         comments.  Can target_preopen before changing node.  Call
7368         inf_child_open_target to push the target explicitly.
7369         (procfs_attach): Don't push the target if it is already pushed.
7370         (procfs_detach): Use inf_child_maybe_unpush_target.
7371         (procfs_create_inferior): Don't push the target if it is already
7372         pushed.
7373         (nto_native_ops): New global.
7374         (procfs_open): Reimplement.
7375         (procfs_native_open): New function.
7376         (init_procfs_targets): Install procfs_native_open as to_open of
7377         "target native".  Store a pointer to the "native" target in
7378         nto_native_ops.
7379         * procfs.c (procfs_attach): Don't push the target if it is already
7380         pushed.
7381         (procfs_detach): Use inf_child_maybe_unpush_target.
7382         (procfs_mourn_inferior): Only unpush the target after mourning the
7383         inferior.  Use inf_child_maybe_unpush_target.
7384         (procfs_init_inferior): Don't push the target if it is already
7385         pushed.
7386         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7387         if it is already pushed.
7388
7389 2014-05-21  Pedro Alves  <[email protected]>
7390
7391         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7392         and "procfs" targets are now called "native" instead.
7393
7394 2014-05-21  Pedro Alves  <[email protected]>
7395
7396         * go32-nat.c (go32_open): Delete.
7397         (go32_target): Don't override the to_open method.
7398
7399 2014-05-21  Pedro Alves  <[email protected]>
7400
7401         * nto-procfs.c (procfs_can_run): New function.
7402         (nto_procfs_ops): New global.
7403         (init_procfs_targets): New, based on procfs_target.  Install
7404         "target native" in addition to "target procfs".
7405         (_initialize_procfs): Call init_procfs_targets instead of adding
7406         the target here.
7407
7408 2014-05-21  Pedro Alves  <[email protected]>
7409
7410         * windows-nat.c (windows_target): Don't override to_shortname,
7411         to_longname or to_doc.
7412
7413 2014-05-21  Pedro Alves  <[email protected]>
7414
7415         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7416         to_doc.
7417
7418 2014-05-21  Pedro Alves  <[email protected]>
7419
7420         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7421         to_shortname, to_longname or to_doc.
7422
7423 2014-05-21  Pedro Alves  <[email protected]>
7424
7425         * go32-nat.c (go32_target): Don't override to_shortname,
7426         to_longname or to_doc.
7427
7428 2014-05-21  Pedro Alves  <[email protected]>
7429
7430         * inf-child.c (inf_child_open): Remove mention of "child".
7431         (inf_child_target): Rename target to "native" instead of "child".
7432
7433 2014-05-21  Andreas Arnez  <[email protected]>
7434
7435         * Makefile.in (SFILES): Delete "regset.c".
7436         (COMMON_OBS): Delete "regset.o".
7437         * regset.c: Remove.
7438         * regset.h (regset_alloc): Delete prototype.
7439
7440 2014-05-21  Andreas Arnez  <[email protected]>
7441
7442         * sparc-linux-tdep.c (sparc32_linux_gregset)
7443         (sparc32_linux_fpregset): New static regset structures.
7444         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7445         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7446         'fpregset' fields.
7447         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7448         (sparc64_linux_fpregset): New static regset structures.
7449         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7450         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7451         New static regset structures.
7452         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7453         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7454         New static regset structures.
7455         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7456         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7457         New static regset structures.
7458         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7459         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7460         New static regset structures.
7461         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7462
7463 2014-05-21  Andreas Arnez  <[email protected]>
7464
7465         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7466         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7467         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7468         for all regmap types and variables.
7469         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7470         (sparc32_linux_supply_core_gregset)
7471         (sparc32_linux_collect_core_gregset)
7472         (sparc32_linux_supply_core_fpregset)
7473         (sparc32_linux_collect_core_fpregset): Likewise.
7474         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7475         (sparc_gregmap, sparc_fpregmap): ... these.
7476         (sparc_supply_gregset, sparc_collect_gregset)
7477         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7478         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7479         (_initialize_sparc_nat): Rename regmaps.
7480         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7481         (sparc_gregmap, sparc_fpregmap): ... these.
7482         (sparc_supply_gregset, sparc_collect_gregset)
7483         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7484         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7485         Rename macros to...
7486         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7487         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7488         Likewise.
7489         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7490         Rename to...
7491         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7492         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7493         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7494         regmaps.
7495         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7496         (sparc32_bsd_fpregset): Rename to...
7497         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7498         (sparc32_bsd_fpregmap): ... these.
7499         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7500         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7501         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7502         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7503         (struct sparc_gregmap, struct sparc_fpregmap)
7504         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7505         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7506         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7507         (sparc32_supply_regset, sparc32_collect_gregset)
7508         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7509         prototypes.
7510         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7511         (sparc64_linux_ptrace_gregmap): ... this.
7512         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7513         (_initialize_sparc64_linux_nat): Rename regmaps.
7514         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7515         (sparc64_linux_core_gregmap): ... this.
7516         (sparc64_linux_supply_core_gregset)
7517         (sparc64_linux_collect_core_gregset)
7518         (sparc64_linux_supply_core_fpregset)
7519         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7520         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7521         (sparc64_sol2_fpregset): Rename to...
7522         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7523         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7524         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7525         regmaps.
7526         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7527         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7528         (sparc64_bsd_fpregset): Rename to...
7529         (struct sparc_gregmap, sparc64_sol2_gregmap)
7530         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7531         (sparc64_bsd_fpregmap): ... these.
7532         (sparc64_supply_gregset, sparc64_collect_gregset)
7533         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7534         prototypes.
7535         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7536         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7537         (sparc64fbsd_gregmap): ... this.
7538         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7539         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7540         Rename regmaps.
7541         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7542         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7543         (sparc64nbsd_collect_fpregset): Likewise.
7544         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7545         (sparc64nbsd_gregmap): ... this.
7546         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7547         regmaps.
7548         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7549         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7550         (sparc64obsd_gregmap): ... this.
7551         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7552         regmaps.
7553         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7554         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7555         (sparc32nbsd_gregmap): ... this.
7556         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7557         regmaps.
7558
7559 2014-05-21  Andreas Arnez  <[email protected]>
7560
7561         * score-tdep.c (score7_linux_gregset): New static regset
7562         structure.
7563         (score7_linux_regset_from_core_section): Remove dynamic regset
7564         allocation.
7565         (score_gdbarch_init): Drop allocation of tdep structure.
7566         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7567
7568 2014-05-21  Andreas Arnez  <[email protected]>
7569
7570         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7571         regset structures.
7572         (am33_regset_from_core_section): Remove dynamic regset
7573         allocations.
7574
7575 2014-05-21  Andreas Arnez  <[email protected]>
7576
7577         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7578         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7579         structures.
7580         (mips_linux_regset_from_core_section): Remove dynamic regset
7581         allocations.
7582         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7583         'gregset64', 'fpregset', and 'fpregset64'.
7584         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7585         deleted tdep fields.
7586
7587 2014-05-21  Andreas Arnez  <[email protected]>
7588
7589         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7590         regset structures.
7591         (amd64_regset_from_core_section): Remove dynamic regset
7592         allocations.
7593         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7594         structure.
7595         (amd64obsd_regset_from_core_section): Remove dynamic regset
7596         allocation.
7597         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7598         Likewise.
7599         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7600         x86-common regset supply function.
7601         * i386-tdep.c (i386_collect_gregset): Make static.
7602         (i386_gregset): New global regset structure.
7603         (i386_fpregset, i386_xstateregset): New static regset structures.
7604         (i386_regset_from_core_section): Remove dynamic regset
7605         allocations.
7606         (i386_gdbarch_init): Remove initialization of tdep fields
7607         'gregset', 'fpregset', and 'xstateregset'.
7608         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7609         'fpregset', and 'xstateregset'.
7610         (i386_collect_gregset): Remove prototype.
7611         (i386_gregset): New declaration.
7612         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7613         structure.
7614         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7615         allocation.
7616
7617 2014-05-21  Andreas Arnez  <[email protected]>
7618
7619         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7620         (arm_linux_vfpregset): New static regset structures.
7621         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7622         regset structures.
7623         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7624         and 'vfpregset' fields.
7625
7626 2014-05-21  Andreas Arnez  <[email protected]>
7627
7628         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7629         (aarch64_linux_fpregset): New static regset structures.
7630         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7631         of regset structures.
7632         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7633         'fpregset' fields.
7634
7635 2014-05-21  Andreas Arnez  <[email protected]>
7636
7637         * regset.h (struct regset): Remove gdbarch field.
7638         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7639         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7640         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7641         Likewise.
7642         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7643         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7644         (ppc32_linux_vsxregset): Likewise.
7645         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7646         via the regcache instead of the regset.
7647         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7648         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7649         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7650         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7651         Likewise.
7652
7653 2014-05-21  Andreas Arnez  <[email protected]>
7654
7655         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7656         Constify structures.
7657         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7658         (alphanbsd_aout_gregset): Likewise.
7659         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7660         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7661         Likewise.
7662         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7663         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7664         Likewise.
7665         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7666         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7667         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7668         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7669         * m88k-tdep.c (m88k_gregset): Likewise.
7670         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7671         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7672         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7673         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7674         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7675         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7676         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7677         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7678         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7679         Likewise.
7680         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7681         * sh-tdep.h (sh_corefile_gregset): Likewise.
7682         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7683         * vax-tdep.c (vax_gregset): Likewise.
7684
7685 2014-05-21  Jan Kratochvil  <[email protected]>
7686
7687         Fix TLS access for -static -pthread.
7688         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7689         (try_thread_db_load_1): Initialize it.
7690         (thread_db_get_thread_local_address): Call it if LM is zero.
7691         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7692         * target.h (struct target_ops) (to_get_thread_local_address): Add
7693         load_module_addr comment.
7694
7695 2014-05-21  Pedro Alves  <[email protected]>
7696
7697         * dcache.c (dcache_read_memory_partial): If reading the cache line
7698         fails, fallback to reading just the memory the caller wanted.
7699
7700 2014-05-20  Doug Evans  <[email protected]>
7701
7702         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7703         instead of get_current_arch.
7704
7705 2014-05-20  Pedro Alves  <[email protected]>
7706
7707         * NEWS: Mention that compare-sections now works with all targets.
7708
7709         * remote.c (PACKET_qCRC): New enum value.
7710         (remote_verify_memory): Don't send qCRC if the target has no
7711         execution.  Use packet_support/packet_ok.  If the target doesn't
7712         support the qCRC packet, fallback to a deep memory copy.
7713         (compare_sections_command): Say "target image" instead of "remote
7714         executable".
7715         (_initialize_remote): Add PACKET_qCRC to the list of config
7716         packets that have no associated command.  Extend comment.
7717         * target.c (simple_verify_memory, default_verify_memory): New
7718         function.
7719         * target.h (struct target_ops) <to_verify_memory>: Default to
7720         default_verify_memory.
7721         (simple_verify_memory): New declaration.
7722         * target-delegates.c: Regenerate.
7723
7724 2014-05-20  Markus Metzger  <[email protected]>
7725
7726         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7727
7728 2014-05-20  Hui Zhu  <[email protected]>
7729             Yao Qi  <[email protected]>
7730
7731         PR backtrace/16558
7732         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7733         and change address of sp and pc.
7734
7735 2014-05-19  Tom Tromey  <[email protected]>
7736
7737         * gdbtypes.c (rank_function): Use XNEWVEC.
7738         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7739
7740 2014-05-19  Doug Evans  <[email protected]>
7741
7742         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7743         build_type_unit_groups and moved closer to only caller.  Remove
7744         arguments.  All references updated.  Remove outdated .gdb_index
7745         comment.
7746         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7747         build_type_psymtabs_1.
7748
7749 2014-05-19  Doug Evans  <[email protected]>
7750
7751         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7752         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7753         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7754         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7755         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7756         (add_type_unit_group_to_table): Delete.
7757
7758 2014-05-19  Doug Evans  <[email protected]>
7759
7760         * eval.c (evaluate_subexp_standard): Add some comments.
7761
7762 2014-05-17  Doug Evans  <[email protected]>
7763
7764         * progspace.c (remove_program_space): Delete, unused.
7765         * progspace.h (remove_program_space): Ditto.
7766
7767 2014-05-17  Doug Evans  <[email protected]>
7768
7769         * inferior.c (prune_inferiors): Fix comment.
7770         (remove_inferior_command): Call prune_program_spaces.
7771
7772 2014-05-16  Doug Evans  <[email protected]>
7773
7774         New command line option -D.
7775         * NEWS: Mention it.
7776         * main.c (set_gdb_data_directory): New function.
7777         (captured_main): Recognize -D.  Flag error for --data-directory "".
7778         Call set_gdb_data_directory.
7779         (print_gdb_help): Print --data-directory, -D.
7780         * main.h (set_gdb_data_directory): Declare.
7781         * top.c (staged_gdb_datadir): New static global.
7782         (set_gdb_datadir): Call set_gdb_data_directory
7783         (show_gdb_datadir): New function.
7784         (init_main): Update init of data-directory parameter.
7785
7786 2014-05-16  Gregory Fong  <[email protected]>
7787
7788         Import the "dirfd" gnulib module.
7789         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7790         * gnulib/aclocal.m4: Update.
7791         * gnulib/config.in: Update.
7792         * gnulib/configure: Update.
7793         * gnulib/import/Makefile.am: Update.
7794         * gnulib/import/Makefile.in: Update.
7795         * gnulib/import/dirfd.c: New.
7796         * gnulib/import/m4/dirfd.m4: New.
7797         * gnulib/import/m4/gnulib-cache.m4: Update.
7798         * gnulib/import/m4/gnulib-comp.m4: Update.
7799
7800 2014-05-16  Pierre Muller  <[email protected]>
7801             Yao Qi  <[email protected]>
7802
7803         * valprint.c (print_wchar): Move the code on checking whether
7804         W is a printable wide char to the default branch of switch
7805         statement below.  Call wchar_printable instead of gdb_iswprint.
7806
7807 2014-05-16  Taimoor Mirza  <[email protected]>
7808
7809         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7810         ldr.w and ldrd instructions.
7811
7812 2014-05-15  Doug Evans  <[email protected]>
7813
7814         * dwarf2read.c (read_structure_type): Delete outdated comments.
7815
7816 2014-05-14  Tom Tromey  <[email protected]>
7817
7818         * macrocmd.c (print_macro_definition): Reindent.
7819
7820 2014-05-13  Doug Evans  <[email protected]>
7821
7822         * python/py-cmd.c (cmdpy_completer): Add comment.
7823         (completers): Make const.
7824
7825 2014-05-13  Simon Marchi  <[email protected]>
7826
7827         * infrun.c (resume): Remove should_resume (unused).  Move up
7828         declaration of resume_ptid.
7829
7830 2014-05-13  Tom Tromey  <[email protected]>
7831
7832         * language.h (unop_type_check): Remove.
7833         (binop_type_check): Don't declare.
7834
7835 2014-05-13  Andreas Arnez  <[email protected]>
7836
7837         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7838         call to regcache_raw_collect.
7839
7840 2014-05-12  Simon Marchi  <[email protected]>
7841
7842         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7843         mi_console->quote as the quoting character.
7844
7845 2014-05-12  Simon Marchi  <[email protected]>
7846
7847         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7848
7849 2014-04-29  Tom Tromey  <[email protected]>
7850
7851         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7852         "show debug varobj".
7853
7854 2014-05-07  Kyle McMartin  <[email protected]>
7855
7856         Pushed by Joel Brobecker  <[email protected]>.
7857         * aarch64-tdep.c (aarch64_software_single_step): New function.
7858         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7859         with aarch64_software_single_step.
7860
7861 2014-05-05  Joel Brobecker  <[email protected]>
7862
7863         GDB 7.7.1 released.
7864
7865 2014-05-05  Keith Seitz  <[email protected]>
7866
7867         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7868         variable or history value is successfully parsed.
7869
7870 2014-05-05  Yao Qi  <[email protected]>
7871             Pedro Alves  <[email protected]>
7872
7873         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7874         address of blocks that intersects the requested range.  Trim
7875         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7876         sections.
7877         * ctf.c (ctf_xfer_partial): Likewise.
7878
7879 2014-05-05  Yao Qi  <[email protected]>
7880
7881         * printcmd.c (display_command): Remove the check to
7882         target_has_execution.
7883
7884 2014-05-03  Mark Kettenis  <[email protected]>
7885
7886         * ppcobsd-nat.c: Include "obsd-nat.h".
7887         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7888         add_target.
7889         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7890
7891 2014-05-02  Sergio Durigan Junior  <[email protected]>
7892
7893         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7894         and 16-bit signed and unsigned arguments.  Update comment.
7895         (stap_parse_probe_arguments): Extend code to handle such
7896         arguments.  Use warning instead of complaint to notify about
7897         unrecognized bitness.
7898
7899 2014-05-02  Sergio Durigan Junior  <[email protected]>
7900
7901         PR breakpoints/16889
7902         * stap-probe.c (stap_parse_probe_arguments): Simplify
7903         check for non-prefixed probes (i.e., probes whose
7904         arguments do not start with "N@").  Always set the
7905         argument type to a sane value.
7906
7907 2014-05-01  David Taylor  <[email protected]>
7908
7909         * remote.c (compare_sections_command): Add -r option to compare
7910         all loadable read-only sections.
7911
7912 2014-04-30  Siva Chandra Reddy  <[email protected]>
7913
7914         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7915         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7916         Update all callers.
7917         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7918         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7919         Remove unused CORE_ADDR argument.  Update all callers.
7920
7921 2014-04-29  Pedro Alves  <[email protected]>
7922
7923         * remote.c (struct packet_config) <detect>: Extend comment.
7924         (add_packet_config_cmd): Don't set the config's detect or support
7925         fields here.
7926         (init_all_packet_configs): Also initialize the config's 'detect'
7927         field.
7928         (reset_all_packet_configs_support): New function.
7929         (remote_open_1): Call reset_all_packet_configs_support instead of
7930         init_all_packet_configs.
7931         (_initialize_remote): Initialize all packet configs.  Assert that
7932         all packets have an associated command, except a few known
7933         outliers.
7934
7935 2014-04-28  Joel Brobecker  <[email protected]>
7936
7937         * dwarf2read.c (read_subrange_type): Handle dynamic
7938         DW_AT_lower_bound attributes.
7939
7940 2014-04-28  Joel Brobecker  <[email protected]>
7941
7942         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7943         dynamic bounds before computing its upper bound.
7944         (ada_discrete_type_low_bound): Same as above with the lower bound.
7945
7946 2014-04-28  Joel Brobecker  <[email protected]>
7947
7948         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7949         range types.  Adjust the array handling implementation to
7950         take advantage of this change.
7951         (resolve_dynamic_range): New function, mostly extracted from
7952         resolve_dynamic_bounds.
7953         (resolve_dynamic_array): New function, mostly extracted from
7954         resolve_dynamic_bounds.
7955         (resolve_dynamic_bounds): Delete.
7956         (resolve_dynamic_type): Reimplement.  Add handling of
7957         TYPE_CODE_RANGE types.
7958
7959 2014-04-28  Joel Brobecker  <[email protected]>
7960
7961         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7962         handling of parallel ___XA types.
7963
7964 2014-04-28  Joel Brobecker  <[email protected]>
7965
7966         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7967         unnecessary second call to static_unwrap_type.
7968
7969 2014-04-27  Hui Zhu  <[email protected]>
7970
7971         * stack.c (print_frame_info): Call do_gdb_disassembly with
7972         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7973
7974 2014-04-26  Doug Evans  <[email protected]>
7975
7976         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7977
7978 2014-04-25  Pedro Alves  <[email protected]>
7979
7980         PR server/16255
7981         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7982         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7983         and newline from built string.
7984         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7985         (linux_ptrace_attach_fail_reason): ... this.
7986         * linux-nat.c (linux_nat_attach): Adjust to use
7987         linux_ptrace_attach_fail_reason.
7988
7989 2014-04-25  Pedro Alves  <[email protected]>
7990
7991         * remote.c (struct remote_state): Remove multi_process_aware,
7992         non_stop_aware, cond_tracepoints, cond_breakpoints,
7993         breakpoint_commands, fast_tracepoints, static_tracepoints,
7994         install_in_trace, disconnected_tracing,
7995         enable_disable_tracepoints, string_tracing, and
7996         augmented_libraries_svr4_read fields.
7997         (remote_multi_process_p): Move further below in the file.
7998         (struct packet_config): Add comments.
7999         (update_packet_config): Delete function.
8000         (show_packet_config_cmd): Use packet_config_support.
8001         (add_packet_config_cmd): Use NULL as set callback.
8002         (packet_ok): "set remote foo-packet"-style commands no longer
8003         change config->supported -- adjust.
8004         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8005         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8006         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8007         (PACKET_QNonStop, PACKET_multiprocess_feature)
8008         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8009         (PACKET_DisconnectedTracing_feature)
8010         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8011         (set_remote_protocol_packet_cmd): Delete function.
8012         (packet_config_support, packet_support): New functions.
8013         (set_remote_protocol_Z_packet_cmd): Don't call
8014         update_packet_config.
8015         (remote_query_attached, remote_pass_signals)
8016         (remote_program_signals, remote_threads_info)
8017         (remote_threads_extra_info, remote_start_remote): Use
8018         packet_support.
8019         (remote_start_remote): Use packet_config_support and
8020         packet_support.
8021         (init_all_packet_configs): Set all packets to unknown support,
8022         instead of calling update_packet_config.
8023         (remote_check_symbols): Use packet_support.
8024         (remote_supported_packet): Unconditionally set the packet config's
8025         support status.
8026         (remote_multi_process_feature, remote_non_stop_feature)
8027         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8028         (remote_breakpoint_commands_feature)
8029         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8030         (remote_install_in_trace_feature)
8031         (remote_disconnected_tracing_feature)
8032         (remote_enable_disable_tracepoint_feature)
8033         (remote_string_tracing_feature)
8034         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8035         (remote_protocol_features): Adjust to use remote_supported_packet
8036         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8037         "ConditionalTracepoints", "ConditionalBreakpoints",
8038         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8039         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8040         "EnableDisableTracepoints", and "tracenz".
8041         (remote_query_supported): Use packet_support.
8042         (remote_open_1): Adjust.
8043         (extended_remote_attach_1): Use packet_support.  Switch on the
8044         result of packet_ok instead of checking whether the packet ended
8045         up disabled.
8046         (remote_vcont_resume): Use packet_support.
8047         (remote_resume, remote_stop_ns, fetch_register_using_p)
8048         (remote_prepare_to_store, store_register_using_P)
8049         (check_binary_download, remote_write_bytes): Use packet_support.
8050         (remote_vkill): Use packet_support.  Switch on the result of
8051         packet_ok instead of checking whether the packet ended up
8052         disabled.
8053         (extended_remote_supports_disable_randomization): Use
8054         packet_support.
8055         (extended_remote_run): Switch on the result of packet_ok instead
8056         of checking whether the packet ended up disabled.
8057         (remote_insert_breakpoint, remote_remove_breakpoint)
8058         (remote_insert_watchpoint, remote_remove_watchpoint)
8059         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8060         packet_support.
8061         (remote_search_memory): Use packet_config_support.
8062         (remote_get_thread_local_address, remote_get_tib_address)
8063         (remote_hostio_send_command, remote_can_execute_reverse): Use
8064         packet_support.
8065         (remote_supports_cond_tracepoints)
8066         (remote_supports_cond_breakpoints)
8067         (remote_supports_fast_tracepoints)
8068         (remote_supports_static_tracepoints)
8069         (remote_supports_install_in_trace)
8070         (remote_supports_enable_disable_tracepoint)
8071         (remote_supports_string_tracing)
8072         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8073         the packet config says the feature is enabled or disabled.
8074         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8075         (remote_get_trace_status): Use packet_support.
8076         (remote_set_disconnected_tracing): Adjust to check whether the
8077         feature is enabled with packet_support.
8078         (remote_set_trace_buffer_size, remote_use_agent)
8079         (remote_can_use_agent, remote_supports_btrace): Use
8080         packet_support.
8081         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8082         Use packet_config_support.
8083         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8084         the packet config says the feature is enabled or disabled.
8085         (set_range_stepping): Use packet_support.
8086
8087 2014-04-25  Tom Tromey  <[email protected]>
8088
8089         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8090         argument.
8091
8092 2014-04-24  Sanimir Agovic  <[email protected]>
8093
8094         * NEWS: Mention support for C99 variable length arrays.
8095
8096 2014-04-24  Joel Brobecker  <[email protected]>
8097
8098         * ada-lang.c (standard_exc): Expand introductory comment.
8099
8100 2014-04-24  Michael Sturm  <[email protected]>
8101             Walfred Tedeschi  <[email protected]>
8102
8103         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8104         AVX512 registers.
8105         (amd64_linux_read_description): Add code to handle AVX512 xstate
8106         mask and return respective tdesc.
8107         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8108         and features/i386/x32-avx512-linux.c.
8109         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8110         (amd64_linux_core_read_description): Add code to handle AVX512
8111         xstate mask and return respective tdesc.
8112         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8113         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8114         calculation.
8115         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8116         (tdesc_amd64_avx512_linux): New prototype.
8117         (tdesc_x32_avx512_linux): Likewise.
8118         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8119         features/i386/x32-avx512.c.
8120         (amd64_ymm_avx512_names): New register names for pseudo
8121         registers YMM16-31.
8122         (amd64_ymmh_avx512_names): New register names for raw registers
8123         YMMH16-31.
8124         (amd64_k_names): New register names for K registers.
8125         (amd64_zmmh_names): New register names for ZMM raw registers.
8126         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8127         (amd64_xmm_avx512_names): New register names for XMM16-31
8128         registers.
8129         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8130         registers.
8131         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8132         if feature is present.
8133         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8134         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8135         (AMD64_NUM_REGS): Adjust to new number of registers.
8136         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8137         registers supplied via XSTATE by AVX512 registers.
8138         (i386_linux_read_description): Add case for AVX512.
8139         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8140         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8141         (i386_linux_core_read_description): Add case for AVX512.
8142         (i386_linux_init_abi): Install supported register note section
8143         for AVX512.
8144         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8145         AVX512.
8146         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8147         registers to be number of zmm7h + 1.
8148         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8149         * i386-tdep.c: Include features/i386/i386-avx512.c.
8150         (i386_zmm_names): Add ZMM pseudo register names array.
8151         (i386_zmmh_names): Add ZMM raw register names array.
8152         (i386_k_names): Add K raw register names array.
8153         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8154         registers. AVX512 has 16 more ZMM registers than there are YMM
8155         registers.
8156         (i386_zmmh_regnum_p): Add function to look up register number of
8157         ZMM raw registers.
8158         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8159         (i386_k_regnum_p): Likewise for K raw registers.
8160         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8161         registers added by AVX512.
8162         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8163         registers added by AVX512.
8164         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8165         added by AVX512.
8166         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8167         (i386_pseudo_register_name): Add ZMM pseudo registers.
8168         (i386_zmm_type): Construct and return vector registers type for ZMM
8169         registers.
8170         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8171         ZMM0-31 pseudo registers and K registers.
8172         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8173         and YMM16-31 registers from register cache.
8174         (i386_pseudo_register_write): Add code to write  K, ZMM and
8175         YMM16-31 registers.
8176         (i386_register_reggroup_p): Add code to include/exclude AVX512
8177         registers in/from respective register groups.
8178         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8179         registers if feature is present in xcr0.
8180         (i386_gdbarch_init): Add code to initialize AVX512 feature
8181         variables in tdep structure, wire in pseudo registers and call
8182         initialize_tdesc_i386_avx512.
8183         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8184         variables.
8185         (i386_regnum): Add AVX512 registers.
8186         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8187         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8188         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8189         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8190         512 bits wide.
8191         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8192         (i386_ymm_avx512_regnum_p): Likewise.
8193         (i386_k_regnum_p): Likewise.
8194         (i386_zmm_regnum_p): Likewise.
8195         (i386_zmmh_regnum_p): Likewise.
8196         * i387-tdep.c : Update year in copyright notice.
8197         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8198         XSAVE buffer.
8199         (XSAVE_YMM_AVX512_ADDR): New macro.
8200         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8201         XSAVE buffer.
8202         (XSAVE_XMM_AVX512_ADDR): New macro.
8203         (xsave_avx512_k_offset): New table for K register offsets in
8204         XSAVE buffer.
8205         (XSAVE_AVX512_K_ADDR): New macro.
8206         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8207         in XSAVE buffer.
8208         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8209         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8210         buffer.
8211         (i387_collect_xsave): Add code to collect AVX512 registers from
8212         XSAVE buffer.
8213         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8214         of XMM16-31 registers.
8215         (I387_NUM_K_REGS): New define for number of K registers.
8216         (I387_K0_REGNUM): New define for K0 register number.
8217         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8218         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8219         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8220         registers.
8221         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8222         (I387_XMM16_REGNUM): New define for XMM16 register number.
8223         (I387_YMM0_REGNUM): New define for YMM0 register number.
8224         (I387_KEND_REGNUM): New define for last K register number.
8225         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8226         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8227         number.
8228         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8229         number.
8230         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8231         size.
8232         * features/Makefile: Add AVX512 related files.
8233         * features/i386/32bit-avx512.xml: New file.
8234         * features/i386/64bit-avx512.xml: Likewise.
8235         * features/i386/amd64-avx512-linux.c: Likewise.
8236         * features/i386/amd64-avx512-linux.xml: Likewise.
8237         * features/i386/amd64-avx512.c: Likewise.
8238         * features/i386/amd64-avx512.xml: Likewise.
8239         * features/i386/i386-avx512-linux.c: Likewise.
8240         * features/i386/i386-avx512-linux.xml: Likewise.
8241         * features/i386/i386-avx512.c: Likewise.
8242         * features/i386/i386-avx512.xml: Likewise.
8243         * features/i386/x32-avx512-linux.c: Likewise.
8244         * features/i386/x32-avx512-linux.xml: Likewise.
8245         * features/i386/x32-avx512.c: Likewise.
8246         * features/i386/x32-avx512.xml: Likewise.
8247         * regformats/i386/amd64-avx512-linux.dat: New file.
8248         * regformats/i386/amd64-avx512.dat: Likewise.
8249         * regformats/i386/i386-avx512-linux.dat: Likewise.
8250         * regformats/i386/i386-avx512.dat: Likewise.
8251         * regformats/i386/x32-avx512-linux.dat: Likewise.
8252         * regformats/i386/x32-avx512.dat: Likewise.
8253         * NEWS: Add note about new support for AVX512.
8254
8255
8256 2014-04-23  Pedro Alves  <[email protected]>
8257
8258         * breakpoint.c (insert_bp_location): Tolerate errors if the
8259         breakpoint is set in a user-loaded objfile.
8260         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8261         location is marked shlib_disabled.  If the breakpoint is set in a
8262         user-loaded objfile is a GDB-side memory breakpoint, validate it
8263         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8264         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8265         flag.
8266         * mem-break.c (memory_validate_breakpoint): New function.
8267         * objfiles.c (userloaded_objfile_contains_address_p): New
8268         function.
8269         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8270         * target.h (memory_validate_breakpoint): New declaration.
8271
8272 2014-04-23  Pedro Alves  <[email protected]>
8273
8274         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8275         the breakpoint is set in a shared library, only suppress
8276         errors for software breakpoints, not hardware breakpoints.
8277
8278 2014-04-22  Pedro Alves  <[email protected]>
8279
8280         * infrun.c (schedlock_applies): New function, factored out from
8281         find_thread_needs_step_over.
8282         (find_thread_needs_step_over): Use it.
8283         (switch_back_to_stepped_thread): Always clear trap_expected if the
8284         step over is finished.  Return early if scheduler locking applies.
8285         Look for the stepping thread and a potential step-over thread with
8286         a single loop.
8287         (currently_stepping_or_nexting_callback): Delete.
8288
8289 2014-04-22  Nick Clifton  <[email protected]>
8290
8291         * NEWS: Mention that ARM sim now supports tracing.
8292
8293 2014-04-22  Yao Qi  <[email protected]>
8294
8295         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8296         to ...
8297         * tracefile.c (tracefile_fetch_registers): ... it.  New
8298         function.
8299         * tracefile.h (tracefile_fetch_registers): Declare.
8300         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8301         tracefile_fetch_registers.
8302
8303 2014-04-19  Eli Zaretskii  <[email protected]>
8304
8305         PR gdb/14018
8306         * windows-nat.c (thread_rec): Don't display a warning when
8307         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8308         fails for any reason, set th->suspended to -1, so that we don't
8309         try to resume such a thread.  Also, don't return NULL in these
8310         cases, to avoid completely ruin the session due to "PC register is
8311         not available" error.
8312         (do_windows_fetch_inferior_registers): Check errors in
8313         GetThreadContext call.
8314         (windows_continue): Accept an additional argument KILLED; if not
8315         zero, ignore errors in the SetThreadContext call, since the
8316         inferior was killed and is shutting down.
8317         (windows_resume, get_windows_debug_event)
8318         (windows_create_inferior, windows_mourn_inferior)
8319         (windows_kill_inferior): All callers of windows_continue changed
8320         to adjust to its new calling sequence.
8321
8322 2014-04-19  Yao Qi  <[email protected]>
8323
8324         * ctf.c (ctf_open): Call post_create_inferior.
8325
8326 2014-04-19  Yao Qi  <[email protected]>
8327
8328         * ctf.c (handle_id): New static variable.
8329         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8330         value.  Get the declaration of event "register" and get length
8331         of field "contents".
8332
8333 2014-04-19  Yao Qi  <[email protected]>
8334
8335         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8336
8337 2014-04-18  Siva Chandra Reddy  <[email protected]>
8338
8339         * valops.c (oload_method_static): Remove unnecessary argument
8340         METHOD.  Update all callers.
8341
8342 2014-04-18  Pedro alves  <[email protected]>
8343             Tom Tromey  <[email protected]>
8344
8345         PR backtrace/15558
8346         * frame.c (get_prev_frame_1): Rename to ...
8347         (get_prev_frame_always): ... this, and make extern.  Adjust.
8348         (skip_artificial_frames): Use get_prev_frame_always.
8349         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8350         (get_frame_unwind_stop_reason): Adjust to rename.
8351         * frame.h (get_prev_frame_always): Declare.
8352         * inline-frame.c: Include frame.h.
8353         (inline_frame_this_id): Use get_prev_frame_always.
8354
8355 2014-04-18  Tristan Gingold  <[email protected]>
8356
8357         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8358         code by using bfd_mach_o_get_base_address.
8359
8360 2014-04-17  Ulrich Weigand  <[email protected]>
8361
8362         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8363         (spu_ax_pseudo_register_collect): New function.
8364         (spu_ax_pseudo_register_push_stack): Likewise.
8365         (spu_dwarf_reg_to_regnum): Likewise.
8366         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8367
8368 2014-04-17  Ulrich Weigand  <[email protected]>
8369
8370         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8371         Replace FRAME argument with FRAME_ID.
8372         * gdbarch.c, gdbarch.h: Regenerate.
8373         * findvar.c (default_value_from_register): Add GDBARCH argument;
8374         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8375         (value_from_register): Update call to gdbarch_value_from_register.
8376         * value.h (default_value_from_register): Update prototype.
8377         * s390-linux-tdep.c (s390_value_from_register): Update interface
8378         and call to default_value_from_register.
8379         * spu-tdep.c (spu_value_from_register): Likewise.
8380
8381         * findvar.c (address_from_register): Remove TYPE argument.
8382         Do not call value_from_register; use gdbarch_value_from_register
8383         with null_frame_id instead.
8384         * value.h (address_from_register): Update prototype.
8385         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8386         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8387         address_from_register interface change.
8388
8389 2014-04-17  Yao Qi  <[email protected]>
8390
8391         * gdbtypes.h: Update comments to link to types and macros'
8392         definitions.
8393
8394 2014-04-16  Siva Chandra Reddy  <[email protected]>
8395
8396         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8397
8398 2014-04-16  Keith Seitz  <[email protected]>
8399
8400         PR gdb/15827
8401         * dwarf2read.c (skip_one_die): Check that all relative-offset
8402         sibling DIEs fall within range of the current reader's buffer.
8403         (read_partial_die): Likewise.
8404
8405 2014-04-16  Keith Seitz  <[email protected]>
8406
8407         PR c++/16597
8408         * cp-namespace.c (lookup_symbol_file): If the type name of
8409         `this' is NULL, return immediately.
8410
8411 2014-04-14  Keith Seitz  <[email protected]>
8412
8413         PR c++/16253
8414         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8415         from symbol_matches_domain in symtab.c. All local callers
8416         of symbol_matches_domain updated.
8417         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8418         search STRUCT_DOMAIN.
8419         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8420         independently.  standard_lookup will do that automatically.
8421         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8422         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8423         (cp_lookup_symbol_in_namespace): Likewise.
8424         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8425         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8426         may return a STRUCT_DOMAIN match.
8427         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8428         * cp-support.c: Include language.h.
8429         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8430         VAR_DOMAIN.
8431         * psymtab.c (match_partial_symbol): Compare the requested
8432         domain with the symbol's domain directly.
8433         (lookup_partial_symbol): Likewise.
8434         * symtab.c (lookup_symbol_in_language): Explain when/why
8435         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8436         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8437         appropriate languages.
8438         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8439         and moved to ada-lang.c
8440         (lookup_block_symbol): Explain that this function only returns
8441         symbol matching the requested DOMAIN.
8442         Compare the requested domain with the symbol's domain directly.
8443         (iterate_over_symbols): Compare the requested domain with the
8444         symbol's domain directly.
8445         * symtab.h (symbol_matches_domain): Remove.
8446
8447 2014-04-14  Tom Tromey  <[email protected]>
8448
8449         PR c++/15246:
8450         * c-exp.y (type_aggregate_p): New function.
8451         (qualified_name, classify_inner_name): Use it.
8452         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8453         and TYPE_TARGET_TYPE of an enum type.
8454         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8455         an enum type.
8456         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8457         handle TYPE_DECLARED_CLASS.
8458         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8459         types.
8460         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8461         * valops.c (enum_constant_from_type): New function.
8462         (value_aggregate_elt): Use it.
8463         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8464         TYPE_CODE_ENUM.
8465
8466 2014-04-14  Tom Tromey  <[email protected]>
8467
8468         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8469         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8470         const.
8471         * value.h (value_aggregate_elt): Update.
8472
8473 2014-04-14  Tom Tromey  <[email protected]>
8474
8475         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8476
8477 2014-04-14  Sanimir Agovic  <[email protected]>
8478
8479         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8480         (evaluate_subexp_standard): Pass noside argument.
8481         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8482         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8483         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8484         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8485         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8486
8487 2014-04-14  Sanimir Agovic  <[email protected]>
8488
8489         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8490         points to a constant blob.
8491
8492 2014-04-14  Sanimir Agovic  <[email protected]>
8493
8494         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8495         property and store it as the high bound and flag the range accordingly.
8496         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8497         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8498         * gdbtypes.h (enum range_flags): New enum.
8499         (struct range_bounds): Add flags member.
8500
8501 2014-04-14  Sanimir Agovic  <[email protected]>
8502
8503         * c-typeprint.c (c_type_print_varspec_suffix): Added
8504         check for not yet resolved high bound. If unresolved, print
8505         "variable length" string to the console instead of random
8506         length.
8507
8508 2014-04-14  Sanimir Agovic  <[email protected]>
8509
8510         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8511         value.
8512         (ada_template_to_fixed_record_type_1): Likewise.
8513         (ada_to_fixed_type_1): Likewise.
8514         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8515         (cp_print_value): Likewise.
8516         * d-valprint.c (dynamic_array_type): Likewise.
8517         * findvar.c (address_of_variable): Likewise.
8518         * jv-valprint.c (java_value_print): Likewise.
8519         * valops.c (value_ind): Likewise.
8520         * value.c (coerce_ref): Likewise.
8521
8522 2014-04-14  Sanimir Agovic  <[email protected]>
8523
8524         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8525         value and retrieve the dynamic type size.
8526
8527 2014-04-14  Sanimir Agovic  <[email protected]>
8528
8529         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8530         passed to sizeof is dynamic evaluate the argument to compute the length.
8531
8532 2014-04-14  Sanimir Agovic  <[email protected]>
8533             Joel Brobecker  <[email protected]>
8534
8535         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8536         (dwarf2_evaluate_property): New function.
8537         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8538         * dwarf2read.c (attr_to_dynamic_prop): New function.
8539         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8540         attribute.
8541         * gdbtypes.c: Include dwarf2loc.h.
8542         (is_dynamic_type): New function.
8543         (resolve_dynamic_type): New function.
8544         (resolve_dynamic_bounds): New function.
8545         (get_type_length): New function.
8546         (check_typedef): Use get_type_length to compute type length.
8547         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8548         (TYPE_LOW_BOUND_KIND): New macro.
8549         (is_dynamic_type): New function prototype.
8550         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8551         to resolve dynamic properties of the type. Update comment.
8552         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8553
8554 2014-04-14  Richard Henderson  <[email protected]>
8555
8556         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8557
8558 2014-04-12  Siva Chandra Reddy  <[email protected]>
8559             Doug Evans  <[email protected]>
8560
8561         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8562         dereference TYPE_CODE_REF values.
8563
8564 2014-04-11  Joel Brobecker  <[email protected]>
8565
8566         Revert the following changes due to regressions:
8567
8568         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8569         (dwarf2_evaluate_property): New function.
8570         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8571         * dwarf2read.c (attr_to_dynamic_prop): New function.
8572         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8573         attribute.
8574         * gdbtypes.c: Include dwarf2loc.h.
8575         (is_dynamic_type): New function.
8576         (resolve_dynamic_type): New function.
8577         (resolve_dynamic_bounds): New function.
8578         (get_type_length): New function.
8579         (check_typedef): Use get_type_length to compute type length.
8580         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8581         (TYPE_LOW_BOUND_KIND): New macro.
8582         (is_dynamic_type): New function prototype.
8583         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8584         to resolve dynamic properties of the type. Update comment.
8585         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8586
8587         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8588         passed to sizeof is dynamic evaluate the argument to compute the length.
8589
8590         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8591         value and retrieve the dynamic type size.
8592
8593         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8594         (ada_template_to_fixed_record_type_1): Likewise.
8595         (ada_to_fixed_type_1): Likewise.
8596         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8597         (cp_print_value): Likewise.
8598         * d-valprint.c (dynamic_array_type): Likewise.
8599         * eval.c (evaluate_subexp_with_coercion): Likewise.
8600         * findvar.c (address_of_variable): Likewise.
8601         * jv-valprint.c (java_value_print): Likewise.
8602         * valops.c (value_ind): Likewise.
8603         * value.c (coerce_ref): Likewise.
8604
8605         * c-typeprint.c (c_type_print_varspec_suffix): Added
8606         check for not yet resolved high bound. If unresolved, print
8607         "variable length" string to the console instead of random
8608         length.
8609
8610         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8611         property and store it as the high bound and flag the range accordingly.
8612         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8613         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8614         * gdbtypes.h (enum range_flags): New enum.
8615         (struct range_bounds): Add flags member.
8616
8617         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8618         points to a constant blob.
8619
8620         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8621         (evaluate_subexp_standard): Pass noside argument.
8622         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8623         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8624         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8625         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8626         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8627
8628 2014-04-11  Keith Seitz  <[email protected]>
8629
8630         PR c++/16675
8631         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8632         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8633         reference types.
8634
8635 2014-04-11  Sanimir Agovic  <[email protected]>
8636
8637         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8638         (evaluate_subexp_standard): Pass noside argument.
8639         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8640         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8641         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8642         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8643         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8644
8645 2014-04-11  Sanimir Agovic  <[email protected]>
8646
8647         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8648         points to a constant blob.
8649
8650 2014-04-11  Sanimir Agovic  <[email protected]>
8651
8652         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8653         property and store it as the high bound and flag the range accordingly.
8654         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8655         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8656         * gdbtypes.h (enum range_flags): New enum.
8657         (struct range_bounds): Add flags member.
8658
8659 2014-04-11  Sanimir Agovic  <[email protected]>
8660
8661         * c-typeprint.c (c_type_print_varspec_suffix): Added
8662         check for not yet resolved high bound. If unresolved, print
8663         "variable length" string to the console instead of random
8664         length.
8665
8666 2014-04-11  Sanimir Agovic  <[email protected]>
8667
8668         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8669         (ada_template_to_fixed_record_type_1): Likewise.
8670         (ada_to_fixed_type_1): Likewise.
8671         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8672         (cp_print_value): Likewise.
8673         * d-valprint.c (dynamic_array_type): Likewise.
8674         * eval.c (evaluate_subexp_with_coercion): Likewise.
8675         * findvar.c (address_of_variable): Likewise.
8676         * jv-valprint.c (java_value_print): Likewise.
8677         * valops.c (value_ind): Likewise.
8678         * value.c (coerce_ref): Likewise.
8679
8680 2014-04-11  Sanimir Agovic  <[email protected]>
8681
8682         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8683         value and retrieve the dynamic type size.
8684
8685 2014-04-11  Sanimir Agovic  <[email protected]>
8686
8687         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8688         passed to sizeof is dynamic evaluate the argument to compute the length.
8689
8690 2014-04-11  Sanimir Agovic  <[email protected]>
8691
8692         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8693         (dwarf2_evaluate_property): New function.
8694         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8695         * dwarf2read.c (attr_to_dynamic_prop): New function.
8696         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8697         attribute.
8698         * gdbtypes.c: Include dwarf2loc.h.
8699         (is_dynamic_type): New function.
8700         (resolve_dynamic_type): New function.
8701         (resolve_dynamic_bounds): New function.
8702         (get_type_length): New function.
8703         (check_typedef): Use get_type_length to compute type length.
8704         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8705         (TYPE_LOW_BOUND_KIND): New macro.
8706         (is_dynamic_type): New function prototype.
8707         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8708         to resolve dynamic properties of the type. Update comment.
8709         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8710
8711 2014-04-11  Sanimir Agovic  <[email protected]>
8712
8713         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8714         declaring high/low bounds and change uses accordingly. Call
8715         create_range_type instead of create_static_range_type.
8716         * gdbtypes.c (create_range_type): New function.
8717         (create_range_type): Convert bounds into struct bound_prop and pass
8718         them to create_range_type.
8719         * gdbtypes.h (struct bound_prop): New struct.
8720         (create_range_type): New function prototype.
8721         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8722         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8723         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8724         part of the bound.
8725         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8726
8727 2014-04-11  Sanimir Agovic  <[email protected]>
8728
8729         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8730         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8731         * ada-lang.c: All uses of create_range_type updated.
8732         * coffread.c: All uses of create_range_type updated.
8733         * dwarf2read.c: All uses of create_range_type updated.
8734         * f-exp.y: All uses of create_range_type updated.
8735         * m2-valprint.c: All uses of create_range_type updated.
8736         * mdebugread.c: All uses of create_range_type updated.
8737         * stabsread.c: All uses of create_range_type updated.
8738         * valops.c: All uses of create_range_type updated.
8739         * valprint.c: All uses of create_range_type updated.
8740
8741 2014-04-10  Pedro Alves  <[email protected]>
8742
8743         * breakpoint.c (single_step_breakpoints)
8744         (single_step_gdbarch): Move up in the file.
8745         (one_breakpoint_xfer_memory): New function, factored out from ...
8746         (breakpoint_xfer_memory): ... here.  Also process single-step
8747         breakpoints.
8748
8749 2014-04-09  Tristan Gingold  <[email protected]>
8750
8751         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8752         comments.
8753         (darwin_decode_exception_message): Free port only after use.
8754
8755 2014-04-08  Pierre Langlois  <[email protected]>
8756
8757         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8758         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8759         when setting the size of call_length.
8760
8761 2014-04-07  Siva Chandra Reddy  <[email protected]>
8762
8763         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8764         dereference TYPE_CODE_REF values.
8765
8766 2014-04-07  Joel Brobecker  <[email protected]>
8767
8768         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8769         end of warning message.
8770
8771 2014-04-03  Doug Evans  <[email protected]>
8772
8773         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8774         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8775
8776 2014-04-02  Alan Modra  <[email protected]>
8777
8778         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8779         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8780         (struct symbol_file_add_from_memory_args): Add size field.
8781         (find_vdso_size): New function.
8782         (add_vsyscall_page): Attempt to find vdso size.
8783
8784 2014-04-01  Doug Evans  <[email protected]>
8785
8786         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8787
8788 2014-04-01  Tristan Gingold  <[email protected]>
8789
8790         * darwin-nat.c (darwin_encode_reply): Add prototype.
8791         (darwin_decode_exception_message): Reply to unknown inferiors.
8792         (darwin_decode_message): Handle message by id.  Ignore message
8793         to unknown inferior.
8794         (darwin_wait): Discard unknown messages, add debug trace.
8795
8796 2014-03-31  Doug Evans  <[email protected]>
8797
8798         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8799         comp_dir_string.
8800
8801 2014-03-31  Doug Evans  <[email protected]>
8802
8803         New option "set print symbol-loading".
8804         * NEWS: Mention it.
8805         * solib.c (solib_read_symbols): Only print symbol loading messages
8806         if requested.
8807         (solib_add): If symbol loading is in "brief" mode, notify user
8808         symbols are being loaded.
8809         (reload_shared_libraries_1): Ditto.
8810         * symfile.c (print_symbol_loading_off): New static global.
8811         (print_symbol_loading_brief): New static global.
8812         (print_symbol_loading_full): New static global.
8813         (print_symbol_loading_enums): New static global.
8814         (print_symbol_loading): New static global.
8815         (print_symbol_loading_p): New function.
8816         (symbol_file_add_with_addrs): Only print symbol loading messages
8817         if requested.
8818         (_initialize_symfile): Register "print symbol-loading" set/show
8819         command.
8820         * symfile.h (print_symbol_loading_p): Declare.
8821
8822 2014-03-30  Doug Evans  <[email protected]>
8823
8824         * infrun.c (set_last_target_status): New function.
8825         (handle_inferior_event): Call it.
8826
8827 2014-03-30  Doug Evans  <[email protected]>
8828
8829         * inferior.h (enum stop_kind): Improve comment.
8830
8831 2014-03-28  Joel Brobecker  <[email protected]>
8832
8833         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8834         a reference, strip the reference layer before calling
8835         the lang_ops value_has_mutated callback.
8836
8837 2014-03-27  Sergio Durigan Junior  <[email protected]>
8838
8839         Remove some globals from our parser.
8840         * language.c (unk_lang_parser): Add "struct parser_state"
8841         argument.
8842         * language.h (struct language_defn) <la_parser>: Likewise.
8843         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8844         (initialize_expout): Add "struct parser_state" argument.
8845         Rewrite function to use the parser state.
8846         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8847         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8848         write_exp_elt_longcst, write_exp_elt_dblcst,
8849         write_exp_elt_decfloatcst, write_exp_elt_type,
8850         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8851         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8852         write_dollar_variable): Likewise.
8853         (parse_exp_in_context_1): Use parser state.
8854         (insert_type_address_space): Add "struct parser_state" argument.
8855         Use parser state.
8856         (increase_expout_size): New function.
8857         * parser-defs.h: Forward declare "struct language_defn" and
8858         "struct parser_state".
8859         (expout, expout_size, expout_ptr): Remove extern declarations.
8860         (parse_gdbarch, parse_language): Rewrite macro declarations to
8861         accept the parser state.
8862         (struct parser_state): New struct.
8863         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8864         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8865         write_exp_elt_decfloatcst, write_exp_elt_type,
8866         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8867         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8868         write_exp_msymbol, write_dollar_variable,
8869         mark_struct_expression, insert_type_address_space): Add "struct
8870         parser_state" argument.
8871         (increase_expout_size): New function.
8872         * utils.c (do_clear_parser_state): New function.
8873         (make_cleanup_clear_parser_state): Likewise.
8874         * utils.h (make_cleanup_clear_parser_state): New function
8875         prototype.
8876         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8877         Update calls to write_exp* in order to pass the parser state.
8878         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8879         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8880         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8881         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8882         * stap-probe.c (stap_parse_register_operand): Likewise.
8883         (stap_parse_single_operand): Likewise.
8884         (stap_parse_argument_1): Likewise.
8885         (stap_parse_argument): Use parser state.
8886         * stap-probe.h: Include "parser-defs.h".
8887         (struct stap_parse_info) <pstate>: New field.
8888         * c-exp.y (parse_type): Rewrite to use parser state.
8889         (yyparse): Redefine to c_parse_internal.
8890         (pstate): New global variable.
8891         (parse_number): Add "struct parser_state" argument.
8892         (write_destructor_name): Likewise.
8893         (type_exp): Update calls to write_exp* and similars in order to
8894         use parser state.
8895         (exp1, exp, variable, qualified_name, space_identifier,
8896         typename, typebase): Likewise.
8897         (write_destructor_name, parse_number, lex_one_token,
8898         classify_name, classify_inner_name, c_parse): Add "struct
8899         parser_state" argument.  Update function to use parser state.
8900         * c-lang.h: Forward declare "struct parser_state".
8901         (c_parse): Add "struct parser_state" argument.
8902         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8903         (yyparse): Redefine macro to ada_parse_internal.
8904         (pstate): New variable.
8905         (write_int, write_object_renaming, write_var_or_type,
8906         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8907         type_int, type_long, type_long_long, type_float, type_double,
8908         type_long_double, type_char, type_boolean, type_system_address):
8909         Add "struct parser_state" argument.
8910         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8911         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8912         var_or_type, aggregate, aggregate_component_list,
8913         positional_list, others, component_group,
8914         component_associations): Update calls to write_exp* and similar
8915         functions in order to use parser state.
8916         (ada_parse, write_var_from_sym, write_int,
8917         write_exp_op_with_string, write_object_renaming,
8918         find_primitive_type, write_selectors, write_ambiguous_var,
8919         write_var_or_type, write_name_assoc, type_int, type_long,
8920         type_long_long, type_float, type_double, type_long_double,
8921         type_char, type_boolean, type_system_address): Add "struct
8922         parser_state" argument.  Adjust function to use parser state.
8923         * ada-lang.c (parse): Likewise.
8924         * ada-lang.h: Forward declare "struct parser_state".
8925         (ada_parse): Add "struct parser_state" argument.
8926         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8927         calls to both functions.
8928         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8929         parser state.
8930         (yyparse): Redefine macro to f_parse_internal.
8931         (pstate): New variable.
8932         (parse_number): Add "struct parser_state" argument.
8933         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8934         and similars in order to use parser state.
8935         (parse_number): Adjust code to use parser state.
8936         (yylex): Likewise.
8937         (f_parse): New function.
8938         * f-lang.h: Forward declare "struct parser_state".
8939         (f_parse): Add "struct parser_state" argument.
8940         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8941         parser state.
8942         (yyparse): Redefine macro for java_parse_internal.
8943         (pstate): New variable.
8944         (push_expression_name, push_expression_name, insert_exp): Add
8945         "struct parser_state" argument.
8946         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8947         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8948         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8949         PostIncrementExpression, PostDecrementExpression,
8950         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8951         UnaryExpressionNotPlusMinus, CastExpression,
8952         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8953         RelationalExpression, EqualityExpression, AndExpression,
8954         ExclusiveOrExpression, InclusiveOrExpression,
8955         ConditionalAndExpression, ConditionalOrExpression,
8956         ConditionalExpression, Assignment, LeftHandSide): Update
8957         calls to write_exp* and similars in order to use parser state.
8958         (parse_number): Ajust code to use parser state.
8959         (yylex): Likewise.
8960         (java_parse): New function.
8961         (push_variable): Add "struct parser_state" argument.  Adjust
8962         code to user parser state.
8963         (push_fieldnames, push_qualified_expression_name,
8964         push_expression_name, insert_exp): Likewise.
8965         * jv-lang.h: Forward declare "struct parser_state".
8966         (java_parse): Add "struct parser_state" argument.
8967         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8968         parser state.
8969         (yyparse): Redefine macro to m2_parse_internal.
8970         (pstate): New variable.
8971         (type_exp, exp, fblock, variable, type): Update calls to
8972         write_exp* and similars to use parser state.
8973         (yylex): Likewise.
8974         (m2_parse): New function.
8975         * m2-lang.h: Forward declare "struct parser_state".
8976         (m2_parse): Add "struct parser_state" argument.
8977         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8978         * objc-lang.h: Forward declare "struct parser_state".
8979         (end_msglist): Add "struct parser_state" argument.
8980         * p-exp.y (parse_type): Rewrite macro to use parser state.
8981         (yyparse): Redefine macro to pascal_parse_internal.
8982         (pstate): New variable.
8983         (parse_number): Add "struct parser_state" argument.
8984         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8985         write_exp* and similars in order to use parser state.
8986         (parse_number, yylex): Adjust code to use parser state.
8987         (pascal_parse): New function.
8988         * p-lang.h: Forward declare "struct parser_state".
8989         (pascal_parse): Add "struct parser_state" argument.
8990         * go-exp.y (parse_type): Rewrite macro to use parser state.
8991         (yyparse): Redefine macro to go_parse_internal.
8992         (pstate): New variable.
8993         (parse_number): Add "struct parser_state" argument.
8994         (type_exp, exp1, exp, variable, type): Update calls to
8995         write_exp* and similars in order to use parser state.
8996         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8997         to use parser state.
8998         (go_parse): Likewise.
8999         * go-lang.h: Forward declare "struct parser_state".
9000         (go_parse): Add "struct parser_state" argument.
9001
9002 2014-03-27  Doug Evans  <[email protected]>
9003
9004         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9005
9006 2014-03-27  Doug Evans  <[email protected]>
9007
9008         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9009         Remove argument abbrev_section.  All callers updated.
9010
9011 2014-03-27  Doug Evans  <[email protected]>
9012
9013         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9014         addr_base, ranges_base.
9015
9016 2014-03-26  Keith Seitz  <[email protected]>
9017
9018         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9019         types, not VAR_DOMAIN.
9020
9021 2014-03-25  Sandra Loosemore  <[email protected]>
9022
9023         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9024         "ra" registers.
9025         * features/nios2-linux.c: Regenerated.
9026         * features/nios2.c: Regenerated.
9027
9028 2014-03-25  Pedro Alves  <[email protected]>
9029
9030         * cli/cli-script.c (script_from_file): Force the interpreter to
9031         sync mode.
9032
9033 2014-03-24  Pierre Langlois  <[email protected]>
9034
9035         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9036         small stack allocation.
9037
9038 2014-03-24  Tristan Gingold  <[email protected]>
9039
9040         * darwin-nat.c (exc_server): Remove unused prototype.
9041         (darwin_dump_message): Correctly display data on x86_64.
9042         (darwin_encode_reply): Fix style.
9043         Add comments and fix indentation.
9044
9045 2014-03-24  Pierre Langlois  <[email protected]>
9046
9047         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9048
9049 2014-03-22  Doug Evans  <[email protected]>
9050
9051         * infcmd.c: Whitespace fixes.
9052         (interrupt_command): Merge two function comments into one.
9053
9054 2014-03-22  Doug Evans  <[email protected]>
9055
9056         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9057         All uses updated.
9058
9059 2014-03-22  Yao Qi  <[email protected]>
9060
9061         * remote.c (target_read_live_memory): Remove.
9062         (memory_xfer_live_readonly_partial): Rename it to
9063         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9064         All callers updated.  Call remote_read_bytes_1
9065         instead of target_read_live_memory.
9066         * tracepoint.c (set_traceframe_number): Remove.
9067         (make_cleanup_restore_traceframe_number): Likewise .
9068         * tracepoint.h (set_traceframe_number): Remove declaration.
9069         (make_cleanup_restore_traceframe_number): Likewise.
9070
9071 2014-03-22  Yao Qi  <[email protected]>
9072
9073         * remote.c (remote_read_bytes): Move code on reading from the
9074         remote stub to ...
9075         (remote_read_bytes_1): ... here.  New function.
9076
9077 2014-03-22  Yao Qi  <[email protected]>
9078
9079         * ctf.c (ctf_xfer_partial): Check the return value of
9080         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9081         return TARGET_XFER_UNAVAILABLE.
9082         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9083         * target.c (target_read_live_memory): Move it to remote.c.
9084         (memory_xfer_live_readonly_partial): Likewise.
9085         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9086         * remote.c (target_read_live_memory): Moved from target.c.
9087         (memory_xfer_live_readonly_partial): Likewise.
9088         (remote_read_bytes): Factored out from
9089         memory_xfer_partial_1.
9090
9091 2014-03-21  Daniel Gutson  <[email protected]>
9092
9093         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9094         NULL pointer.
9095
9096 2014-03-21  Pedro Alves  <[email protected]>
9097
9098         * infrun.c (normal_stop): Extend comment.
9099
9100 2014-03-21  Hui Zhu  <[email protected]>
9101             Pedro Alves  <[email protected]>
9102
9103         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9104         static buffer.
9105         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9106         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9107         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9108
9109 2014-03-20  Maciej W. Rozycki  <[email protected]>
9110
9111         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9112         `z' formatted output modifier.
9113
9114 2014-03-20  Tom Tromey  <[email protected]>
9115             Sergio Durigan Junior  <[email protected]>
9116
9117         * probe.c (parse_probes): Turn assert into an ordinary error.
9118         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9119         exceptions when parsing probes.  Rearrange the code for clarity.
9120
9121 2014-03-20  Tom Tromey  <[email protected]>
9122
9123         PR gdb/14135
9124         * top.c (execute_command): Only dispatch events if the command
9125         started the target.
9126
9127 2014-03-20  Tom Tromey  <[email protected]>
9128
9129         PR cli/15718
9130         * infcall.c: Include event-top.h.
9131         (run_inferior_call): Call async_disable_stdin if needed.
9132
9133 2014-03-20  Pedro Alves  <[email protected]>
9134
9135         * infrun.c (prepare_to_proceed): Delete.
9136         (thread_still_needs_step_over): New function.
9137         (find_thread_needs_step_over): New function.
9138         (proceed): If the current thread needs a step-over, set its
9139         steping_over_breakpoint flag.  Adjust to use
9140         find_thread_needs_step_over instead of prepare_to_proceed.
9141         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9142         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9143         breakpoint.
9144         (switch_back_to_stepped_thread): Step over breakpoints of all
9145         threads not the stepping thread, before switching back to the
9146         stepping thread.
9147
9148 2014-03-20  Pedro Alves  <[email protected]>
9149
9150         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9151         extern.
9152         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9153         * infrun.c (saved_singlestep_ptid)
9154         (stepping_past_singlestep_breakpoint): Delete.
9155         (resume): Remove stepping_past_singlestep_breakpoint handling.
9156         (proceed): Store the prev_pc of the stepping thread too.
9157         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9158         singlestep_pc.
9159         (enum infwait_states): Delete infwait_thread_hop_state.
9160         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9161         field.
9162         (handle_inferior_event): Adjust.
9163         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9164         handling and the thread-hop code.  Before removing single-step
9165         breakpoints, check whether the thread hit a single-step breakpoint
9166         of another thread.  If it did, the trap is not a random signal.
9167         (switch_back_to_stepped_thread): If the event thread hit a
9168         single-step breakpoint, unblock it before switching to the
9169         stepping thread.  Handle the case of the stepped thread having
9170         advanced already.
9171         (keep_going): Handle the case of the current thread moving past a
9172         single-step breakpoint.
9173
9174 2014-03-20  Pedro Alves  <[email protected]>
9175
9176         PR breakpoints/7143
9177         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9178         are being stepped over.
9179         (breakpoint_address_match): Make extern.
9180         * breakpoint.h (breakpoint_address_match): New declaration.
9181         * inferior.h (stepping_past_instruction_at): New declaration.
9182         * infrun.c (struct step_over_info): New type.
9183         (step_over_info): New global.
9184         (set_step_over_info, clear_step_over_info)
9185         (stepping_past_instruction_at): New functions.
9186         (handle_inferior_event): Clear the step-over info when
9187         trap_expected is cleared.
9188         (resume): Remove now stale comment.
9189         (clear_proceed_status): Clear step-over info.
9190         (proceed): Adjust step-over handling to set or clear the step-over
9191         info instead of removing all breakpoints.
9192         (handle_signal_stop): When setting up a thread-hop, don't remove
9193         breakpoints here.
9194         (stop_stepping): Clear step-over info.
9195         (keep_going): Adjust step-over handling to set or clear step-over
9196         info and then always inserting breakpoints, instead of removing
9197         all breakpoints when stepping over one.
9198
9199 2014-03-20  Pedro Alves  <[email protected]>
9200
9201         * infrun.c (previous_inferior_ptid): Adjust comment.
9202         (deferred_step_ptid): Delete.
9203         (infrun_thread_ptid_changed, prepare_to_proceed)
9204         (init_wait_for_inferior): Adjust.
9205         (handle_signal_stop): Delete deferred_step_ptid handling.
9206
9207 2014-03-18  Jan Kratochvil  <[email protected]>
9208
9209         PR gdb/15358
9210         * defs.h (sync_quit_force_run): New declaration.
9211         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9212         * event-top.c (async_sigterm_handler): New declaration.
9213         (async_sigterm_token): New variable.
9214         (async_init_signals): Create also async_sigterm_token.
9215         (async_sigterm_handler): New function.
9216         (sync_quit_force_run): New variable.
9217         (handle_sigterm): Replace quit_force call by other calls.
9218         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9219
9220 2014-03-18  Maciej W. Rozycki  <[email protected]>
9221
9222         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9223         offset into SPE pseudo registers.
9224
9225 2014-03-18  Pedro Alves  <[email protected]>
9226
9227         PR gdb/13860
9228         * inferior.h (print_stop_event): Declare.
9229         * infrun.c (print_stop_event): New, factored out from ...
9230         (normal_stop): ... this.
9231         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9232         of bpstat_print/print_stack_frame.
9233
9234 2014-03-17  Tom Tromey  <[email protected]>
9235
9236         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9237
9238 2014-03-17  Pierre-Marie de Rodat  <[email protected]>
9239
9240         * ada-lang.c (decode_constrained_packed_array): Perform a
9241         minimal coercion for reference with coerce_ref instead of
9242         ada_coerce_ref.
9243
9244 2014-03-17  Tristan Gingold  <[email protected]>
9245
9246         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9247         (darwin_solib_create_inferior_hook): Emit a warning if version
9248         is unhandled.
9249
9250 2014-03-16  Ulrich Weigand  <[email protected]>
9251
9252         * python/py-value.c (get_field_flag): Cast flag_name argument to
9253         PyObject_GetAttrString to support Python 2.4.
9254
9255 2014-03-14  Jan Kratochvil  <[email protected]>
9256
9257         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9258         (Global Maintainers): Remove Jan Kratochvil.
9259
9260 2014-03-14  Pedro Alves  <[email protected]>
9261
9262         * inferior.h (terminal_ours_for_output): Rename to ...
9263         (child_terminal_ours_for_output): ... this.
9264         (terminal_save_ours): Rename to ...
9265         (child_terminal_save_ours): ... this.
9266         (terminal_ours): Rename to ...
9267         (child_terminal_ours): ... this.
9268         (terminal_inferior): Rename to ...
9269         (child_terminal_inferior): ... this.
9270         (terminal_init_inferior): Rename to ...
9271         (child_terminal_init_inferior): ... this.
9272         (terminal_init_inferior_with_pgrp): Rename to ...
9273         (child_terminal_init_inferior_with_pgrp): ... this.
9274         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9275         (child_terminal_init_with_pgrp): ... this.
9276         (terminal_save_ours): Rename to ...
9277         (child_terminal_save_ours): ... this.
9278         (terminal_init_inferior): Rename to ...
9279         (child_terminal_init): ... this.  Adjust.
9280         (terminal_inferior): Rename to ...
9281         (child_terminal_inferior): ... this.
9282         (terminal_ours_for_output): Rename to ...
9283         (child_terminal_ours_for_output): ... this.  Adjust.
9284         (terminal_ours): Rename to ...
9285         (child_terminal_ours): ... this.
9286         (terminal_ours_1): Rename to ...
9287         (child_terminal_ours_1): ... this.  Adjust.
9288         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9289         * windows-nat.c (do_initial_windows_stuff): Adjust.
9290         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9291         (gnu_terminal_init): ... this.  Adjust.
9292         (gnu_target): Adjust.
9293         * inf-child.c (inf_child_target): Adjust.
9294
9295 2014-03-13  Doug Evans  <[email protected]>
9296
9297         PR guile/16612
9298         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9299         new eq?-hashtab.
9300
9301 2014-03-13  Doug Evans  <[email protected]>
9302
9303         * value.c (record_latest_value): Call release_value_or_incref
9304         instead of release_value.
9305
9306 2014-03-13  Pedro Alves  <[email protected]>
9307
9308         * procfs.c (procfs_target): Don't override to_shortname,
9309         to_longname or to_doc.
9310
9311 2014-03-13  Pedro Alves  <[email protected]>
9312
9313         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9314         Unix in user visible strings.
9315
9316 2014-03-12  Stan Shebs  <[email protected]>
9317
9318         * gdbtypes.h: Annotate comments for Doxygen, add a page
9319         block comment with some general info.
9320
9321 2014-03-12  Pedro Alves  <[email protected]>
9322
9323         * infcmd.c (prepare_execution_command): New function, factored out
9324         from several execution commands.
9325         (run_command_1, continue_command, step_1, jump_command)
9326         (signal_command, until_command, advance_command, finish_command)
9327         (attach_command): Use prepare_execution_command.
9328
9329 2014-03-12  Omair Javaid  <[email protected]>
9330
9331         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9332         (MAX_BPTS): Define.
9333         (MAX_WPTS): Define.
9334         (struct arm_linux_thread_points): Removed.
9335         (struct arm_linux_process_info): New.
9336         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9337         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9338         (arm_linux_find_breakpoints_by_tid): Removed.
9339         (struct arch_lwp_info): New.
9340         (arm_linux_find_process_pid): New functions.
9341         (arm_linux_add_process): New functions.
9342         (arm_linux_process_info_get): New functions.
9343         (arm_linux_forget_process): New function.
9344         (arm_linux_get_debug_reg_state): New function.
9345         (struct update_registers_data): New.
9346         (update_registers_callback): New function.
9347         (arm_linux_insert_hw_breakpoint1): Updated.
9348         (arm_linux_remove_hw_breakpoint1): Updated.
9349         (arm_linux_insert_hw_breakpoint): Updated.
9350         (arm_linux_remove_hw_breakpoint): Updated.
9351         (arm_linux_insert_watchpoint): Updated.
9352         (arm_linux_remove_watchpoint): Updated.
9353         (arm_linux_new_thread): Updated.
9354         (arm_linux_prepare_to_resume): New function.
9355         (arm_linux_new_fork): New function.
9356         (_initialize_arm_linux_nat): Updated.
9357
9358 2014-03-12  Pedro Alves  <[email protected]>
9359
9360         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9361
9362 2014-03-12  Tom Tromey  <[email protected]>
9363
9364         * inf-child.c (return_zero): New function.
9365         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9366         * aix-thread.c (aix_thread_inferior_created): New function.
9367         (aix_thread_attach): Remove.
9368         (init_aix_thread_ops): Don't set to_attach.
9369         (_initialize_aix_thread): Register inferior_created observer.
9370         * corelow.c (init_core_ops): Don't set to_attach or
9371         to_create_inferior.
9372         * exec.c (init_exec_ops): Don't set to_attach or
9373         to_create_inferior.
9374         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9375         target calls.
9376         (attach_command): Use find_attach_target.  Make direct target
9377         calls.
9378         * record-btrace.c (init_record_btrace_ops): Don't set
9379         to_create_inferior.
9380         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9381         Remove.
9382         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9383         set to_create_inferior.
9384         * target.c (complete_target_initialization): Add assertion.
9385         (target_create_inferior): Remove.
9386         (find_default_attach, find_default_create_inferior): Remove.
9387         (find_attach_target, find_run_target): New functions.
9388         (find_default_is_async_p, find_default_can_async_p)
9389         (target_supports_non_stop, target_attach): Remove.
9390         (init_dummy_target): Don't set to_create_inferior or
9391         to_supports_non_stop.
9392         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9393         TARGET_DEFAULT_FUNC.
9394         <to_create_inferior>: Add comment.
9395         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9396         TARGET_DEFAULT_RETURN.
9397         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9398         (find_attach_target, find_run_target): Declare.
9399         (target_create_inferior): Remove.
9400         (target_has_execution_1): Update comment.
9401         (target_supports_non_stop): Remove.
9402         * target-delegates.c: Rebuild.
9403
9404 2014-03-12  Pedro Alves  <[email protected]>
9405
9406         * inf-child.h: Update comment to not mention Unix.
9407
9408 2014-03-12  Pedro Alves  <[email protected]>
9409
9410         * inf-child.c: Update top comment to not mention Unix.  Add
9411         generic comment describing how this target is meant to be used.
9412         (inf_child_post_attach, inf_child_post_startup_inferior)
9413         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9414         Unix in comment.
9415
9416 2014-03-12  Pedro Alves  <[email protected]>
9417
9418         * nto-procfs.c: Include inf-child.h.
9419         (procfs_ops): Delete global.
9420         (procfs_can_run): Delete method.
9421         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9422         target pointer instead of referencing procfs_ops.
9423         (procfs_prepare_to_store): Delete.
9424         (init_procfs_ops): Delete function.
9425         (procfs_target): New function, based on init_procfs_ops, but
9426         inherit inf_child_target.
9427         (_initialize_procfs): Use procfs_target.
9428
9429 2014-03-12  Pedro Alves  <[email protected]>
9430
9431         * windows-nat.c: Include inf-child.h.
9432         (windows_ops): Delete global.
9433         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9434         methods.
9435         (init_windows_ops): Delete function.
9436         (windows_target): New function, based on init_windows_ops, but
9437         inherit inf_child_target.
9438         (_initialize_windows_nat): Use windows_target.  Install x86
9439         specific target methods here.
9440
9441 2014-03-10  Doug Evans  <[email protected]>
9442
9443         * guile/guile.c (call_initialize_gdb_module): New function.
9444         (initialize_guile): Replace call to scm_init_guile with call to
9445         scm_with_guile.
9446
9447 2014-03-10  Joel Brobecker  <[email protected]>
9448
9449         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9450         in call to TYPE_CODE macro.
9451
9452 2014-03-10  Jerome Guitton  <[email protected]>
9453
9454         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9455         Resolve tagged types to full view.
9456
9457 2014-03-10  Hui Zhu  <[email protected]>
9458
9459         * target.h (target_insert_breakpoint): Remove "hardware" from its
9460         comments.
9461
9462 2014-03-07  Doug Evans  <[email protected]>
9463
9464         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9465
9466 2014-03-07  Doug Evans  <[email protected]>
9467
9468         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9469         Remove unused local comp_dir_attr.  Assert exactly one of
9470         stub_comp_unit_die, stub_comp_dir is non-NULL.
9471
9472 2014-03-07  Joel Brobecker  <[email protected]>
9473
9474         * target.h (complete_target_initialization, add_target):
9475         Add comment.
9476
9477 2014-03-07  Pedro Alves  <[email protected]>
9478
9479         * go32-nat.c: Include inf-child.h.
9480         (go32_ops): Delete global.
9481         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9482         Delete methods.
9483         (go32_create_inferior): Push the passed in target pointer instead
9484         of referencing go32_ops.
9485         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9486         (go32_target): New function, based on init_go32_ops, but inherit
9487         inf_child_target.
9488         (_initialize_go32_nat): Use go32_target.  Move parts of
9489         init_go32_ops here.
9490
9491 2014-03-06  Joel Brobecker  <[email protected]>
9492
9493         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9494         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9495         SYMBOL_VALUE_ADDRESS.
9496         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9497
9498 2014-03-06  Yao Qi  <[email protected]>
9499
9500         * breakpoint.c (get_tracepoint_by_number): Remove argument
9501         optional_p.  All callers updated.  Adjust comments.  Update
9502         output message.
9503         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9504
9505 2014-03-06  Yao Qi  <[email protected]>
9506
9507         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9508         early if get_number returns zero.  Use 'p' instead of 'args'.
9509
9510 2014-03-06  Yao Qi  <[email protected]>
9511
9512         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9513         message.
9514
9515 2014-03-06  Yao Qi  <[email protected]>
9516
9517         PR breakpoints/16508
9518         * tracepoint.c (check_trace_running): New function.
9519         (trace_find_command): Move code to check_trace_running and
9520         call check_trace_running.
9521         (trace_find_pc_command): Likewise.
9522         (trace_find_tracepoint_command): Likewise.
9523         (trace_find_line_command): Likewise.
9524         (trace_find_range_command): Likewise.
9525         * tracepoint.h (check_trace_running): Likewise.
9526         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9527
9528 2014-03-06  Yao Qi  <[email protected]>
9529
9530         * target.h (struct target_ops) <to_traceframe_info>: Use
9531         TARGET_DEFAULT_NORETURN (tcomplain ()).
9532         * target-delegates.c: Regenerated.
9533
9534 2014-03-05  Pedro Alves  <[email protected]>
9535
9536         PR gdb/16575
9537         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9538         void.  Update comment.
9539         (dcache_xfer_memory): Delete.
9540         (dcache_read_memory_partial): New, based on the read bits of
9541         dcache_xfer_memory.
9542         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9543         adjust.  Discard cache lines if the reason for the update was
9544         error.
9545         * dcache.h (dcache_xfer_memory): Delete declaration.
9546         (dcache_read_memory_partial): New declaration.
9547         (dcache_update): Update prototype.
9548         * target.c (raw_memory_xfer_partial): Update the dcache here.
9549         (memory_xfer_partial_1): Don't handle dcache writes here.
9550
9551 2014-03-05  Mike Frysinger  <[email protected]>
9552
9553         * remote-sim.c (gdbsim_load): Add const to prog.
9554
9555 2014-03-03  Tom Tromey  <[email protected]>
9556
9557         * elfread.c (probe_key): Change to bfd_data.
9558         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9559         now per-BFD, not per-objfile.
9560         * stap-probe.c (stap_probe_destroy): Update comment.
9561         (handle_stap_probe): Allocate on the per-BFD obstack.
9562
9563 2014-03-03  Tom Tromey  <[email protected]>
9564
9565         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9566         * breakpoint.c (create_longjmp_master_breakpoint): Use
9567         get_probe_address.
9568         (add_location_to_breakpoint, bkpt_probe_insert_location)
9569         (bkpt_probe_remove_location): Update.
9570         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9571         * elfread.c (elf_symfile_relocate_probe): Remove.
9572         (elf_probe_fns): Update.
9573         (insert_exception_resume_breakpoint): Change type of "probe"
9574         parameter to bound_probe.
9575         (check_exception_resume): Update.
9576         * objfiles.c (objfile_relocate1): Don't relocate probes.
9577         * probe.c (bound_probe_s): New typedef.
9578         (parse_probes): Use get_probe_address.  Set sal's objfile.
9579         (find_probe_by_pc): Return a bound_probe.
9580         (collect_probes): Return a VEC(bound_probe_s).
9581         (compare_probes): Update.
9582         (gen_ui_out_table_header_info): Change type of "probes"
9583         parameter.  Update.
9584         (info_probes_for_ops): Update.
9585         (get_probe_address): New function.
9586         (probe_safe_evaluate_at_pc): Update.
9587         * probe.h (struct probe_ops) <get_probe_address>: New field.
9588         <set_semaphore, clear_semaphore>: Add objfile parameter.
9589         (struct probe) <objfile>: Remove field.
9590         <arch>: New field.
9591         <address>: Update comment.
9592         (struct bound_probe): New.
9593         (find_probe_by_pc): Return a bound_probe.
9594         (get_probe_address): Declare.
9595         * solib-svr4.c (struct probe_and_action) <address>: New field.
9596         (hash_probe_and_action, equal_probe_and_action): Update.
9597         (register_solib_event_probe): Add address parameter.
9598         (solib_event_probe_at): Update.
9599         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9600         get_probe_address.
9601         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9602         (stap_get_probe_address): New function.
9603         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9604         (compile_probe_arg): Update.
9605         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9606         address.
9607         (handle_stap_probe): Don't relocate the probe.
9608         (stap_relocate): Remove.
9609         (stap_gen_info_probes_table_values): Update.
9610         (stap_probe_ops): Remove stap_relocate.
9611         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9612         (debug_sym_probe_fns): Update.
9613         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9614         * symtab.c (init_sal): Use memset.
9615         * symtab.h (struct symtab_and_line) <objfile>: New field.
9616         * tracepoint.c (start_tracing, stop_tracing): Update.
9617
9618 2014-03-03  Tom Tromey  <[email protected]>
9619
9620         * probe.h (parse_probes, find_probe_by_pc)
9621         (find_probes_in_objfile): Fix comments.
9622
9623 2014-03-02  Doug Evans  <[email protected]>
9624
9625         * infrun.c (handle_signal_stop): Replace test for
9626         TARGET_WAITKIND_STOPPED with an assert.
9627
9628 2014-03-02  Doug Evans  <[email protected]>
9629
9630         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9631
9632 2014-03-02  Doug Evans  <[email protected]>
9633
9634         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9635
9636 2014-03-01  Mark Kettenis  <[email protected]>
9637
9638         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9639
9640 2014-03-01  Mark Kettenis  <[email protected]>
9641
9642         * i386obsd-nat.c: Include "obsd-nat.h".
9643         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9644         add_target.
9645         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9646
9647 2014-03-01  Mark Kettenis  <[email protected]>
9648
9649         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9650
9651 2014-03-01  Mark Kettenis  <[email protected]>
9652
9653         * mips64obsd-nat.c: Include "obsd-nath".
9654         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9655         add_target
9656         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9657
9658 2014-03-01  Mark Kettenis  <[email protected]>
9659
9660         * amd64obsd-nat.c: Include "obsd-nat,h.
9661         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9662         add_target.
9663         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9664
9665 2014-02-28  Siva Chandra Reddy  <[email protected]>
9666
9667         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9668         (find_overload_match): Update call to find_oload_champ.
9669         (find_oload_champ_namespace_loop): Likewise
9670
9671 2014-02-28  Mark Kettenis  <[email protected]>
9672
9673         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9674
9675         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9676         * config/sparc/obsd64.mh: New file.
9677         * sparc64obsd-nat.c: New file.
9678
9679         * obsd-nat.h: New file.
9680         * obsd-nat.c: New file.
9681         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9682         (ALLDEPFILES): Add obsd-nat.c.
9683
9684 2014-02-28  Tom Tromey  <[email protected]>
9685
9686         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9687         * cli-out.h (cli_ui_out_impl): Now const.
9688         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9689         * ui-out.c (struct ui_out) <impl>: Now const.
9690         (default_ui_out_impl): Now const.
9691         (ui_out_new): Make 'impl' parameter const.
9692         * ui-out.h (ui_out_new): Update.
9693
9694 2014-02-27  Mark Kettenis  <[email protected]>
9695
9696         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9697
9698 2014-02-27  Mark Kettenis  <[email protected]>
9699
9700         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9701
9702 2014-02-27  Jan Kratochvil  <[email protected]>
9703
9704         Additional PR 8882 fix.
9705         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9706
9707 2014-02-27  Pedro Alves  <[email protected]>
9708
9709         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9710         isn't set.
9711
9712 2014-02-27  Pedro Alves  <[email protected]>
9713
9714         PR 12702
9715         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9716         * nat/linux-waitpid.c: Include string.h.
9717         (status_to_str): Moved here and made extern.
9718         * nat/linux-waitpid.h (status_to_str): New declaration.
9719
9720 2014-02-27  Hui Zhu  <[email protected]>
9721
9722         PR 12702
9723         * infrun.c (ptid_match): Move ...
9724         * common/ptid.c (ptid_match): ... here.
9725         * inferior.h (ptid_match): Move ...
9726         * common/ptid.h (ptid_match): ... here.
9727
9728 2014-02-27  Mark Kettenis  <[email protected]>
9729
9730         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9731         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9732         gdb_target_obs.
9733
9734 2014-02-27  Mark Kettenis  <[email protected]>
9735
9736         * obsd-tdep.c (obsd_auxv_parse): New function.
9737         (obsd_init_abi): Set auxv_parse.
9738
9739         * gdbarch.sh (auxv_parse): New.
9740         * gdbarch.h: Regenerated.
9741         * gdbarch.c: Regenerated.
9742         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9743
9744 2014-02-26  Ludovic Courtès  <[email protected]>
9745
9746         * guile/scm-value.c (gdbscm_history_append_x): New function.
9747         (value_functions): Add it.
9748
9749 2014-02-27  Joel Brobecker  <[email protected]>
9750
9751         * dwarf2read.c (attr_value_as_address): New function.
9752         (dwarf2_find_base_address, read_call_site_scope): Use
9753         attr_value_as_address in place of DW_ADDR.
9754         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9755         the low and high addresses.  Slight rework of the handling
9756         of the high pc being a constant form, and limit it to
9757         DWARF verson 4 or higher.
9758         (dwarf2_record_block_ranges): Likewise.
9759         (read_partial_die): Likewise.
9760         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9761
9762 2014-02-26  Tom Tromey  <[email protected]>
9763
9764         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9765
9766 2014-02-26  Tom Tromey  <[email protected]>
9767
9768         * elfread.c (elf_read_minimal_symbols): Return early if
9769         minimal symbols have already been read.  Add "ei" parameter.
9770         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9771         * minsyms.c (prim_record_minimal_symbol_full): Update.
9772         * objfiles.h (struct objstats) <n_minsyms>: Move...
9773         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9774         * symmisc.c (print_objfile_statistics): Update.
9775
9776 2014-02-26  Tom Tromey  <[email protected]>
9777
9778         * elfread.c (elf_read_minimal_symbols): New function, from
9779         elf_symfile_read.
9780         (elf_symfile_read): Call it.
9781
9782 2014-02-26  Tom Tromey  <[email protected]>
9783
9784         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9785         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9786         (lookup_minimal_symbol_solib_trampoline)
9787         (lookup_minimal_symbol_by_pc_section_1)
9788         (lookup_minimal_symbol_and_objfile): Update.
9789         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9790         Don't allocate a minimal symbol if minsyms have already been read.
9791         (build_minimal_symbol_hash_tables): Update.
9792         (install_minimal_symbols): Do nothing if minsyms already read.
9793         Use the per-BFD obstack.
9794         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9795         * objfiles.c (allocate_objfile): Call
9796         terminate_minimal_symbol_table later.
9797         (have_minimal_symbols): Update.
9798         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9799         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9800         Move from struct objfile.
9801         <minsyms_read>: New field.
9802         (struct objfile) <msymbols, minimal_symbol_count,
9803         msymbol_hash, msymbol_demangled_hash>: Move.
9804         (ALL_OBJFILE_MSYMBOLS): Update.
9805         * symfile.c (read_symbols): Set minsyms_read.
9806         (reread_symbols): Update.
9807         * symmisc.c (dump_objfile, dump_msymbols): Update.
9808
9809 2014-02-26  Tom Tromey  <[email protected]>
9810
9811         * minsyms.c (msymbols_sort): Remove.
9812         * minsyms.h (msymbols_sort): Remove.
9813         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9814         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9815         * elfread.c (elf_symtab_read): Don't add section offsets.
9816         * xcoffread.c (record_minimal_symbol): Don't add section offset
9817         to minimal symbol address.
9818         * somread.c (text_offset, data_offset): Remove.
9819         (som_symtab_read): Don't add section offsets to minimal symbol
9820         addresses.
9821         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9822         Don't add section offsets to minimal symbols.
9823         * coffread.c (coff_symtab_read): Don't add section offsets
9824         to minimal symbol addresses.
9825         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9826         to minimal symbol addresses.
9827         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9828         section offset to minimal symbol addresses.
9829         * mdebugread.c (parse_partial_symbols): Don't add section
9830         offset to minimal symbol addresses.
9831         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9832         offset to minimal symbol addresses.
9833
9834 2014-02-26  Tom Tromey  <[email protected]>
9835
9836         * ada-lang.c (ada_main_name): Update.
9837         (ada_add_standard_exceptions): Update.
9838         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9839         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9840         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9841         * auxv.c (ld_so_xfer_auxv): Update.
9842         * avr-tdep.c (avr_scan_prologue): Update.
9843         * ax-gdb.c (gen_var_ref): Update.
9844         * blockframe.c (get_pc_function_start)
9845         (find_pc_partial_function_gnu_ifunc): Update.
9846         * breakpoint.c (create_overlay_event_breakpoint)
9847         (create_longjmp_master_breakpoint)
9848         (create_std_terminate_master_breakpoint)
9849         (create_exception_master_breakpoint): Update.
9850         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9851         * c-valprint.c (c_val_print): Update.
9852         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9853         * common/agent.c (agent_look_up_symbols): Update.
9854         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9855         * dwarf2loc.c (call_site_to_target_addr): Update.
9856         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9857         * elfread.c (elf_gnu_ifunc_record_cache)
9858         (elf_gnu_ifunc_resolve_by_got): Update.
9859         * findvar.c (default_read_var_value): Update.
9860         * frame.c (inside_main_func): Update.
9861         * frv-tdep.c (frv_frame_this_id): Update.
9862         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9863         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9864         Update.
9865         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9866         (hppa_hpux_find_dummy_bpaddr): Update.
9867         * hppa-tdep.c (hppa_symbol_address): Update.
9868         * infcmd.c (until_next_command): Update.
9869         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9870         Update.
9871         * linespec.c (minsym_found, add_minsym): Update.
9872         * linux-nat.c (get_signo): Update.
9873         * linux-thread-db.c (inferior_has_bug): Update.
9874         * m32c-tdep.c (m32c_return_value)
9875         (m32c_m16c_address_to_pointer): Update.
9876         * m32r-tdep.c (m32r_frame_this_id): Update.
9877         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9878         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9879         * maint.c (maintenance_translate_address): Update.
9880         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9881         (frob_address): New function.
9882         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9883         frob_address.  Rename parameter to "pc_in".
9884         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9885         addresses.
9886         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9887         Update.
9888         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9889         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9890         * objc-lang.c (find_objc_msgsend): Update.
9891         * objfiles.c (objfile_relocate1): Update.
9892         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9893         * p-valprint.c (pascal_val_print): Update.
9894         * parse.c (write_exp_msymbol): Update.
9895         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9896         (ppc_elfv2_skip_entrypoint): Update.
9897         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9898         * printcmd.c (build_address_symbolic, msym_info)
9899         (address_info): Update.
9900         * proc-service.c (ps_pglobal_lookup): Update.
9901         * psymtab.c (find_pc_sect_psymtab_closer)
9902         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9903         Change msymbol parameter to bound_minimal_symbol.
9904         * ravenscar-thread.c (get_running_thread_id): Update.
9905         * remote.c (remote_check_symbols): Update.
9906         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9907         address.
9908         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9909         * solib-dsbt.c (lm_base): Update.
9910         * solib-frv.c (lm_base, main_got): Update.
9911         * solib-irix.c (locate_base): Update.
9912         * solib-som.c (som_solib_create_inferior_hook)
9913         (link_map_start): Update.
9914         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9915         * solib-svr4.c (elf_locate_base, enable_break): Update.
9916         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9917         (flush_ea_cache): Update.
9918         * stabsread.c (define_symbol, scan_file_globals): Update.
9919         * stack.c (find_frame_funname): Update.
9920         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9921         (debug_qf_find_pc_sect_symtab): Update.
9922         * symfile.c (simple_read_overlay_table)
9923         (simple_overlay_update): Update.
9924         * symfile.h (struct quick_symbol_functions)
9925         <find_pc_sect_symtab>: Change type of msymbol to
9926         bound_minimal_symbol.
9927         * symmisc.c (dump_msymbols): Update.
9928         * symtab.c (find_pc_sect_symtab_via_partial)
9929         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9930         (search_symbols, print_msymbol_info): Update.
9931         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9932         (MSYMBOL_VALUE_ADDRESS): Redefine.
9933         (BMSYMBOL_VALUE_ADDRESS): New macro.
9934         * tracepoint.c (scope_info): Update.
9935         * tui/tui-disasm.c (tui_find_disassembly_address)
9936         (tui_get_begin_asm_address): Update.
9937         * valops.c (find_function_in_inferior): Update.
9938         * value.c (value_static_field, value_fn_field): Update.
9939
9940 2014-02-26  Tom Tromey  <[email protected]>
9941
9942         * ada-lang.c (ada_update_initial_language): Update.
9943         (ada_main_name, ada_has_this_exception_support): Update.
9944         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9945         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9946         * arm-tdep.c (arm_skip_stub): Update.
9947         * auxv.c (ld_so_xfer_auxv): Update.
9948         * avr-tdep.c (avr_scan_prologue): Update.
9949         * ax-gdb.c (gen_var_ref): Update.
9950         * breakpoint.c (struct breakpoint_objfile_data)
9951         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9952         type to bound_minimal_symbol.
9953         (create_overlay_event_breakpoint)
9954         (create_longjmp_master_breakpoint)
9955         (create_std_terminate_master_breakpoint)
9956         (create_exception_master_breakpoint): Update.
9957         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9958         * c-exp.y (classify_name): Update.
9959         * coffread.c (coff_symfile_read): Update.
9960         * common/agent.c (agent_look_up_symbols): Update.
9961         * d-lang.c (d_main_name): Update.
9962         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9963         * dec-thread.c (enable_dec_thread): Update.
9964         * dwarf2loc.c (call_site_to_target_addr): Update.
9965         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9966         * eval.c (evaluate_subexp_standard): Update.
9967         * findvar.c (struct minsym_lookup_data) <result>: Change type
9968         to bound_minimal_symbol.
9969         <objfile>: Remove.
9970         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9971         * frame.c (inside_main_func): Update.
9972         * frv-tdep.c (frv_frame_this_id): Update.
9973         * gcore.c (call_target_sbrk): Update.
9974         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9975         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9976         Update.
9977         * go-lang.c (go_main_name): Update.
9978         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9979         (hppa_hpux_find_import_stub_for_addr): Update.
9980         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9981         Update.  Change return type.
9982         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9983         type.
9984         * jit.c (jit_breakpoint_re_set_internal): Update.
9985         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9986         Update.
9987         * linux-nat.c (get_signo): Update.
9988         * linux-thread-db.c (inferior_has_bug): Update
9989         * m32c-tdep.c (m32c_return_value)
9990         (m32c_m16c_address_to_pointer): Update.
9991         * m32r-tdep.c (m32r_frame_this_id): Update.
9992         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9993         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9994         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9995         lookup_minimal_symbol.  Change return type.
9996         (lookup_minimal_symbol): Remove.
9997         (lookup_bound_minimal_symbol): Update.
9998         (lookup_minimal_symbol_text): Change return type.
9999         (lookup_minimal_symbol_solib_trampoline): Change return type.
10000         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10001         (lookup_minimal_symbol_solib_trampoline): Change return type.
10002         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10003         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10004         (value_nsstring, find_imps): Update.
10005         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10006         * p-lang.c (pascal_main_name): Update.
10007         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10008         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10009         * proc-service.c (ps_pglobal_lookup): Update.
10010         * ravenscar-thread.c (get_running_thread_msymbol): Change
10011         return type.
10012         (has_ravenscar_runtime, get_running_thread_id): Update.
10013         * remote.c (remote_check_symbols): Update.
10014         * sol-thread.c (ps_pglobal_lookup): Update.
10015         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10016         * solib-dsbt.c (lm_base): Update.
10017         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10018         Update.
10019         * solib-irix.c (locate_base): Update.
10020         * solib-som.c (som_solib_create_inferior_hook)
10021         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10022         Update.
10023         * solib-spu.c (spu_enable_break): Update.
10024         * solib-svr4.c (elf_locate_base, enable_break): Update.
10025         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10026         (flush_ea_cache): Update.
10027         * stabsread.c (define_symbol): Update.
10028         * symfile.c (simple_read_overlay_table): Update.
10029         * symtab.c (find_pc_sect_line): Update.
10030         * tracepoint.c (scope_info): Update.
10031         * tui-disasm.c (tui_get_begin_asm_address): Update.
10032         * value.c (value_static_field): Update.
10033
10034 2014-02-26  Tom Tromey  <[email protected]>
10035
10036         * minsyms.c (prim_record_minimal_symbol_full): Use
10037         SET_MSYMBOL_VALUE_ADDRESS.
10038         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10039         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10040         SET_MSYMBOL_VALUE_ADDRESS.
10041         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10042         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10043
10044 2014-02-26  Tom Tromey  <[email protected]>
10045
10046         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10047         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10048         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10049         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10050         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10051         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10052         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10053         * ada-lang.c (ada_main_name): Update.
10054         (ada_lookup_simple_minsym): Update.
10055         (ada_make_symbol_completion_list): Update.
10056         (ada_add_standard_exceptions): Update.
10057         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10058         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10059         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10060         * arm-tdep.c (skip_prologue_function): Update.
10061         (arm_skip_stack_protector, arm_skip_stub): Update.
10062         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10063         (arm_wince_skip_main_prologue): Update.
10064         * auxv.c (ld_so_xfer_auxv): Update.
10065         * avr-tdep.c (avr_scan_prologue): Update.
10066         * ax-gdb.c (gen_var_ref): Update.
10067         * block.c (call_site_for_pc): Update.
10068         * blockframe.c (get_pc_function_start): Update.
10069         (find_pc_partial_function_gnu_ifunc): Update.
10070         * breakpoint.c (create_overlay_event_breakpoint): Update.
10071         (create_longjmp_master_breakpoint): Update.
10072         (create_std_terminate_master_breakpoint): Update.
10073         (create_exception_master_breakpoint): Update.
10074         (resolve_sal_pc): Update.
10075         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10076         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10077         Update.
10078         * c-valprint.c (c_val_print): Update.
10079         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10080         * coffread.c (coff_symfile_read): Update.
10081         * common/agent.c (agent_look_up_symbols): Update.
10082         * dbxread.c (find_stab_function_addr): Update.
10083         (end_psymtab): Update.
10084         * dwarf2loc.c (call_site_to_target_addr): Update.
10085         (func_verify_no_selftailcall): Update.
10086         (tailcall_dump): Update.
10087         (call_site_find_chain_1): Update.
10088         (dwarf_expr_reg_to_entry_parameter): Update.
10089         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10090         (elf_gnu_ifunc_resolve_by_got): Update.
10091         * f-valprint.c (info_common_command): Update.
10092         * findvar.c (read_var_value): Update.
10093         * frame.c (get_prev_frame_1): Update.
10094         (inside_main_func): Update.
10095         * frv-tdep.c (frv_skip_main_prologue): Update.
10096         (frv_frame_this_id): Update.
10097         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10098         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10099         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10100         (gnuv3_skip_trampoline): Update.
10101         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10102         (hppa64_hpux_in_solib_call_trampoline): Update.
10103         (hppa_hpux_skip_trampoline_code): Update.
10104         (hppa64_hpux_search_dummy_call_sequence): Update.
10105         (hppa_hpux_find_import_stub_for_addr): Update.
10106         (hppa_hpux_find_dummy_bpaddr): Update.
10107         * hppa-tdep.c (hppa_symbol_address)
10108         (hppa_lookup_stub_minimal_symbol): Update.
10109         * i386-tdep.c (i386_skip_main_prologue): Update.
10110         (i386_pe_skip_trampoline_code): Update.
10111         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10112         * infcall.c (get_function_name): Update.
10113         * infcmd.c (until_next_command): Update.
10114         * jit.c (jit_breakpoint_re_set_internal): Update.
10115         (jit_inferior_init): Update.
10116         * linespec.c (minsym_found): Update.
10117         (add_minsym): Update.
10118         * linux-fork.c (info_checkpoints_command): Update.
10119         * linux-nat.c (get_signo): Update.
10120         * linux-thread-db.c (inferior_has_bug): Update.
10121         * m32c-tdep.c (m32c_return_value): Update.
10122         (m32c_m16c_address_to_pointer): Update.
10123         (m32c_m16c_pointer_to_address): Update.
10124         * m32r-tdep.c (m32r_frame_this_id): Update.
10125         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10126         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10127         * maint.c (maintenance_translate_address): Update.
10128         * minsyms.c (add_minsym_to_hash_table): Update.
10129         (add_minsym_to_demangled_hash_table): Update.
10130         (msymbol_objfile): Update.
10131         (lookup_minimal_symbol): Update.
10132         (iterate_over_minimal_symbols): Update.
10133         (lookup_minimal_symbol_text): Update.
10134         (lookup_minimal_symbol_by_pc_name): Update.
10135         (lookup_minimal_symbol_solib_trampoline): Update.
10136         (lookup_minimal_symbol_by_pc_section_1): Update.
10137         (lookup_minimal_symbol_and_objfile): Update.
10138         (prim_record_minimal_symbol_full): Update.
10139         (compare_minimal_symbols): Update.
10140         (compact_minimal_symbols): Update.
10141         (build_minimal_symbol_hash_tables): Update.
10142         (install_minimal_symbols): Update.
10143         (terminate_minimal_symbol_table): Update.
10144         (find_solib_trampoline_target): Update.
10145         (minimal_symbol_upper_bound): Update.
10146         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10147         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10148         (mips_skip_pic_trampoline_code): Update.
10149         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10150         * objc-lang.c (selectors_info): Update.
10151         (classes_info): Update.
10152         (find_methods): Update.
10153         (find_imps): Update.
10154         (find_objc_msgsend): Update.
10155         * objfiles.c (objfile_relocate1): Update.
10156         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10157         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10158         * p-valprint.c (pascal_val_print): Update.
10159         * parse.c (write_exp_msymbol): Update.
10160         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10161         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10162         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10163         * printcmd.c (build_address_symbolic): Update.
10164         (sym_info): Update.
10165         (address_info): Update.
10166         * proc-service.c (ps_pglobal_lookup): Update.
10167         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10168         (find_pc_sect_psymtab): Update.
10169         * python/py-framefilter.c (py_print_frame): Update.
10170         * ravenscar-thread.c (get_running_thread_id): Update.
10171         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10172         Update.
10173         * remote.c (remote_check_symbols): Update.
10174         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10175         (rs6000_skip_trampoline_code): Update.
10176         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10177         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10178         * solib-dsbt.c (lm_base): Update.
10179         * solib-frv.c (lm_base): Update.
10180         (main_got): Update.
10181         * solib-irix.c (locate_base): Update.
10182         * solib-som.c (som_solib_create_inferior_hook): Update.
10183         (som_solib_desire_dynamic_linker_symbols): Update.
10184         (link_map_start): Update.
10185         * solib-spu.c (spu_enable_break): Update.
10186         (ocl_enable_break): Update.
10187         * solib-svr4.c (elf_locate_base): Update.
10188         (enable_break): Update.
10189         * spu-tdep.c (spu_get_overlay_table): Update.
10190         (spu_catch_start): Update.
10191         (flush_ea_cache): Update.
10192         * stabsread.c (define_symbol): Update.
10193         (scan_file_globals): Update.
10194         * stack.c (find_frame_funname): Update.
10195         (frame_info): Update.
10196         * symfile.c (simple_read_overlay_table): Update.
10197         (simple_overlay_update): Update.
10198         * symmisc.c (dump_msymbols): Update.
10199         * symtab.c (fixup_section): Update.
10200         (find_pc_sect_line): Update.
10201         (skip_prologue_sal): Update.
10202         (search_symbols): Update.
10203         (print_msymbol_info): Update.
10204         (rbreak_command): Update.
10205         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10206         (completion_list_objc_symbol): Update.
10207         (default_make_symbol_completion_list_break_on): Update.
10208         * tracepoint.c (scope_info): Update.
10209         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10210         (tui_get_begin_asm_address): Update.
10211         * valops.c (find_function_in_inferior): Update.
10212         * value.c (value_static_field): Update.
10213         (value_fn_field): Update.
10214
10215 2014-02-26  Tom Tromey  <[email protected]>
10216
10217         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10218         bound minimal symbols.  Move code that knows about minsym
10219         table layout...
10220         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10221         function.
10222         * minsyms.h (minimal_symbol_upper_bound): Declare.
10223         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10224         minimal_symbol_upper_bound.
10225
10226 2014-02-27  Joel Brobecker  <[email protected]>
10227
10228         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10229         Use the type's name if its basic type does not have a tag.
10230
10231 2014-02-27  Joel Brobecker  <[email protected]>
10232
10233         * dwarf2read.c (read_subrange_type): Add comment.
10234
10235 2014-02-27  Joel Brobecker  <[email protected]>
10236
10237         * dwarf2read.c (update_enumeration_type_from_children): New
10238         function, mostly extracted from process_structure_scope.
10239         (read_enumeration_type): Call update_enumeration_type_from_children.
10240         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10241         and flag_flag_enum fields.
10242
10243 2014-02-26  Pedro Alves  <[email protected]>
10244
10245         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10246         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10247         to_xfer_partial method.
10248
10249 2014-02-26  Pedro Alves  <[email protected]>
10250
10251         * target.c (complete_target_initialization): Don't install
10252         default_xfer_partial as to_xfer_partial hook.
10253         (nomemory): Delete.
10254         (update_current_target): Don't INHERIT nor de_fault
10255         deprecated_xfer_memory.  Delete de_fault macro.
10256         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10257         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10258         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10259         field.
10260
10261 2014-02-26  Pedro Alves  <[email protected]>
10262
10263         * go32-nat.c (my_write_child): New function.
10264         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10265         (go32_xfer_partial): New function.
10266         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10267         Instead install a to_xfer_partial hook.
10268
10269 2014-02-26  Pedro Alves  <[email protected]>
10270
10271         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10272         to_xfer_partial helper.  Rewrite.
10273         (procfs_xfer_partial): New function.
10274         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10275         Install a to_xfer_partial hook.
10276
10277 2014-02-26  Pedro Alves  <[email protected]>
10278
10279         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10280         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10281         (m32r_xfer_partial): New function.
10282         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10283         Install a to_xfer_partial hook.
10284
10285 2014-02-26  Pedro Alves  <[email protected]>
10286
10287         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10288         helper.
10289         (mips_xfer_partial): New function.
10290         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10291         hook.  Install a to_xfer_partial hook.
10292
10293 2014-02-26  Joel Brobecker  <[email protected]>
10294
10295         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10296         * gdbtypes.c (create_array_type_with_stride): New function,
10297         renaming create_array_type, but with an added parameter
10298         called "bit_stride".
10299         (create_array_type): Re-implement using
10300         create_array_type_with_stride.
10301         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10302         and DW_AT_bit_stride attributes.
10303
10304 2014-02-26  Pedro Alves  <[email protected]>
10305
10306         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10307         task-specific breakpoints.
10308
10309 2014-02-25  Pedro Alves  <[email protected]>
10310
10311         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10312         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10313
10314 2014-02-25  Stan Shebs  <[email protected]>
10315
10316         * defs.h: Annotate comments for Doxygen.
10317
10318 2014-02-25  Tom Tromey  <[email protected]>
10319
10320         * target.h (target_ignore): Don't declare.
10321         * target.c (target_ignore): Remove.
10322
10323 2014-02-25  Jan Kratochvil  <[email protected]>
10324
10325         PR gdb/16626
10326         * auto-load.c (auto_load_objfile_script_1): Change filename to
10327         debugfile.
10328
10329 2014-02-25  Joel Brobecker  <[email protected]>
10330
10331         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10332         documentation.  Adjust prototype to match the target_ops
10333         to_xfer_partial method.  Adjust implementation accordingly.
10334
10335 2014-02-25  Hui Zhu  <[email protected]>
10336
10337         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10338         to_traceframe_info.
10339
10340 2014-02-25  Kevin Buettner  <[email protected]>
10341
10342         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10343         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10344         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10345         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10346         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10347         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10348         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10349         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10350         New constants.
10351         (rl78_register_type): Use a data pointer type for SP and
10352         new pseudo registers mentioned above.  Use a 16 bit integer
10353         type for all other register pairs.
10354         (rl78_register_name, rl78_g10_register_name): Update for
10355         new pseudo registers.
10356         (rl78_pseudo_register_read): Likewise.
10357         (rl78_pseudo_register_write): Likewise.
10358         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10359         to the newly added pseudo registers.
10360
10361 2014-02-24  Doug Evans  <[email protected]>
10362
10363         * value.c (record_latest_value): Fix comment.
10364         * printcmd.c (print_command_1): Remove code to handle -1 return from
10365         record_latest_value.
10366
10367 2014-02-24  Pedro Alves  <[email protected]>
10368
10369         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10370         deprecated_xfer_memory hook.
10371         (procfs_xfer_partial): Call procfs_xfer_memory instead
10372         of the deprecated_xfer_memory target hook.
10373         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10374         helper.
10375
10376 2014-02-24  Yuanhui Zhang  <[email protected]>
10377
10378         * windows-nat.c (windows_xfer_shared_libraries): Return
10379         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10380         requested object is TARGET_OBJECT_LIBRARIES.
10381
10382 2014-02-24  Yao Qi  <[email protected]>
10383
10384         * target.h (enum target_xfer_status)
10385         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10386         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10387         explicitly.  New.
10388         * corefile.c (memory_error_message): User updated.
10389         * exec.c (section_table_read_available_memory): Likewise.
10390         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10391         * target.c (target_xfer_status_to_string): Likewise.
10392         (raw_memory_xfer_partial): Likewise.
10393         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10394         * valops.c (read_value_memory): Likewise.
10395         * exec.h: Update comments.
10396
10397 2014-02-24  Yao Qi  <[email protected]>
10398
10399         * target.c (target_xfer_status_to_string): Rename argument err
10400         to status.
10401         * target.h (target_xfer_status_to_string): Update declaration.
10402         Replace target_xfer_error_to_string with
10403         target_xfer_status_to_string in comment.
10404
10405 2014-02-24  Yao Qi  <[email protected]>
10406
10407         * mips-linux-nat.c (super_close): Update its type.
10408         (mips_linux_close): Pass 'self' to super_close.
10409
10410 2014-02-24  Yao Qi  <[email protected]>
10411
10412         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10413         * corefile.c (read_memory): Adjusted.
10414         * target.c (target_write_with_progress): Adjusted.
10415
10416 2014-02-23  Yao Qi  <[email protected]>
10417
10418         Revert two patches:
10419
10420         2013-10-25  Yao Qi  <[email protected]>
10421
10422         * remote.c (remote_traceframe_info): Return early if
10423         traceframe is not selected.
10424
10425         2013-07-19  Yao Qi  <[email protected]>
10426
10427         * target.c (update_current_target): Change the default action
10428         of 'to_traceframe_info' from tcomplain to return_zero.
10429         * target.h (struct target_ops) <to_traceframe_info>: Add more
10430         comments.
10431
10432 2014-02-23  Yao Qi  <[email protected]>
10433
10434         * valops.c (read_value_memory): Rewrite it.  Call
10435         target_xfer_partial in a loop.
10436         * exec.h (section_table_available_memory): Remove declaration.
10437         Move comments to ...
10438         * exec.c (section_table_available_memory): ... here.  Make it
10439         static.
10440
10441 2014-02-23  Yao Qi  <[email protected]>
10442
10443         * exec.c (section_table_read_available_memory): New function.
10444         * exec.h (section_table_read_available_memory): Declare.
10445         * ctf.c (ctf_xfer_partial): Call
10446         section_table_read_available_memory.
10447         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10448
10449 2014-02-23  Yao Qi  <[email protected]>
10450
10451         * ctf.c (ctf_xfer_partial): Move code to ...
10452         * exec.c (exec_read_partial_read_only): ... it.  New function.
10453         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10454         * tracefile.c: Include "exec.h".
10455         * exec.h (exec_read_partial_read_only): Declare.
10456
10457 2014-02-23  Yao Qi  <[email protected]>
10458
10459         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10460         (tfile_has_memory): Remove.
10461         (init_tfile_ops): Don't set fields to_has_all_memory and
10462         to_has_memory of tfile_ops.
10463         * tracefile.c (tracefile_has_all_memory): New function.
10464         (tracefile_has_memory): New function.
10465         (init_tracefile_ops): Initialize fields to_has_all_memory and
10466         to_has_memory of 'ops'.
10467
10468 2014-02-23  Yao Qi  <[email protected]>
10469
10470         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10471         (ctf_thread_alive, ctf_get_trace_status): Remove.
10472         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10473         init_tracefile_ops.
10474         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10475         (tfile_has_stack, tfile_has_registers): Remove.
10476         (tfile_thread_alive): Remove.
10477         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10478         init_tracefile_ops.
10479         * tracefile.c (tracefile_has_stack): New function.
10480         (tracefile_has_registers): New function.
10481         (tracefile_thread_alive): New function.
10482         (tracefile_get_trace_status): New function.
10483         (init_tracefile_ops): New function.
10484         * tracefile.h (init_tracefile_ops): Declare.
10485
10486 2014-02-23  Yao Qi  <[email protected]>
10487
10488         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10489         (O_LARGEFILE): Likewise.
10490         (tfile_ops): Likewise.
10491         (TRACE_HEADER_SIZE): Likewise.
10492         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10493         (cur_data_size): Likewise.
10494         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10495         (tfile_close, tfile_files_info): Likewise.
10496         (tfile_get_trace_status): Likewise.
10497         (tfile_get_tracepoint_status): Likewise.
10498         (tfile_get_traceframe_address): Likewise.
10499         (tfile_trace_find, match_blocktype): Likewise.
10500         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10501         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10502         (tfile_get_trace_state_variable_value): Likewise.
10503         (tfile_has_all_memory, tfile_has_memory): Likewise.
10504         (tfile_has_stack, tfile_has_registers): Likewise.
10505         (tfile_thread_alive, build_traceframe_info): Likewise.
10506         (tfile_traceframe_info, init_tfile_ops): Likewise.
10507         (_initialize_tracepoint): Don't call init_tfile_ops
10508         and add_target_with_completer.
10509         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10510         exec.h, completer.h and filenames.h.
10511         (_initialize_tracefile_tfile): New function.
10512
10513 2014-02-23  Yao Qi  <[email protected]>
10514
10515         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10516         tracefile-tfile.o.
10517         (HFILES_NO_SRCDIR): Add tracefile.h.
10518         * ctf.c: Include "tracefile.h".
10519         * tracefile.h: New file.
10520         * tracefile.c: New file
10521         * tracefile-tfile.c: New file.
10522         * tracepoint.c: Include "tracefile.h".
10523         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10524         (stop_reason_names): Add const.
10525         (trace_file_writer_xfree): Move it to tracefile.c.
10526         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10527         (trace_save_ctf): Likewise.
10528         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10529         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10530         (tfile_write_header, tfile_write_regblock_type): Likewise.
10531         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10532         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10533         (tfile_write_raw_data, tfile_end): Likewise.
10534         (tfile_trace_file_writer_new): Likewise.
10535         (free_uploaded_tp): Make it extern.
10536         (free_uploaded_tsv): Make it extern.
10537         (_initialize_tracepoint): Move code to register command 'tsave'
10538         to tracefile.c.
10539         * tracepoint.h (stop_reason_names): Declare.
10540         (struct trace_frame_write_ops): Move it to tracefile.h.
10541         (struct trace_file_write_ops): Likewise.
10542         (struct trace_file_writer): Likewise.
10543         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10544
10545 2014-02-21  Jan Kratochvil  <[email protected]>
10546
10547         PR gdb/16594
10548         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10549         process name.
10550         (get_cores_used_by_process): New parameter num_cores, use it.
10551         (linux_xfer_osdata_processes): Pass num_cores to it.
10552         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10553         process name.
10554
10555 2014-02-21  Andreas Arnez  <[email protected]>
10556
10557         * target.c (memory_xfer_partial): Fix length arg in call to
10558         breakpoint_xfer_memory.
10559
10560 2014-02-20  Sergio Durigan Junior  <[email protected]>
10561
10562         PR tdep/16397
10563         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10564         number comes after the + or - signs.  Adjust length of register
10565         name to be extracted.
10566
10567 2014-02-20  Tom Tromey  <[email protected]>
10568
10569         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10570         (ada_varobj_ops): Mark "extern".
10571
10572 2014-02-20  Tom Tromey  <[email protected]>
10573
10574         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10575
10576 2014-02-20  Doug Evans  <[email protected]>
10577
10578         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10579         All callers updated.
10580         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10581         All callers updated.
10582         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10583         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10584
10585 2014-02-20  lin zuojian  <[email protected]>
10586             Joel Brobecker  <[email protected]>
10587             Doug Evans  <[email protected]>
10588
10589         PR symtab/16581
10590         * dwarf2read.c (struct die_info): New member in_process.
10591         (reset_die_in_process): New function.
10592         (process_die): Set it at the start, reset when returning.
10593         (inherit_abstract_dies): Only call process_die if origin_child_die
10594         not already being processed.
10595
10596 2014-02-20  Joel Brobecker  <[email protected]>
10597
10598         * windows-nat.c (handle_unload_dll): Add function documentation.
10599         (do_initial_windows_stuff): Add comment explaining why we wait
10600         until after inferior initialization has finished before
10601         processing all DLLs.
10602
10603 2014-02-20  Joel Brobecker  <[email protected]>
10604
10605         * windows-nat.c (get_module_name): Delete.
10606         (windows_get_exec_module_filename): New function, mostly
10607         inspired from get_module_name.
10608         (windows_pid_to_exec_file): Replace call to get_module_name
10609         by call to windows_get_exec_module_filename.
10610
10611 2014-02-20  Joel Brobecker  <[email protected]>
10612
10613         * windows-nat.c (handle_load_dll): Rewrite this function's
10614         introductory comment.  Remove code using get_module_name
10615         to get the DLL's name.
10616
10617 2014-02-20  Joel Brobecker  <[email protected]>
10618
10619         * windows-nat.c (get_windows_debug_event): Ignore
10620         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10621         if windows_initialization_done == 0.
10622         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10623         Adjust implementation to always load all DLLs.
10624         (do_initial_windows_stuff): Replace call to
10625         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10626
10627 2014-02-20  Joel Brobecker  <[email protected]>
10628
10629         * windows-nat.c (_initialize_windows_nat): Deprecate the
10630         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10631         and "assf" aliases into commands, and deprecate them as well.
10632         * NEWS: Add entry explaining that "dll-symbols" and its two
10633         aliases are now deprecated.
10634
10635 2014-02-20  Joel Brobecker  <[email protected]>
10636
10637         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10638         new-line in debug string.  Remove trailing spaces.
10639
10640 2014-02-19  Stan Shebs  <[email protected]>
10641
10642         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10643
10644 2014-02-19  Siva Chandra Reddy  <[email protected]>
10645
10646         * NEWS: Add entry for the new feature
10647         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10648         and class values.
10649
10650 2014-02-19  Stan Shebs  <[email protected]>
10651
10652         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10653
10654 2014-02-19  Pedro Alves  <[email protected]>
10655
10656         * common/ptid.h (struct ptid): Mention that process_stratum
10657         targets should prefer ptid.lwp.
10658
10659 2014-02-19  Pedro Alves  <[email protected]>
10660
10661         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10662         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10663         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10664         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10665         store remote thread ids rather than ptid.tid.
10666         (_initialize_remote): Adjust.
10667
10668 2014-02-19  Tom Tromey  <[email protected]>
10669
10670         * target.c (target_get_unwinder): Rewrite.
10671         (target_get_tailcall_unwinder): Rewrite.
10672         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10673         (record_btrace_to_get_tailcall_unwinder): New function.
10674         (init_record_btrace_ops): Update.
10675         * target.h (struct target_ops) <to_get_unwinder,
10676         to_get_tailcall_unwinder>: Now function pointers.  Use
10677         TARGET_DEFAULT_RETURN.
10678
10679 2014-02-19  Tom Tromey  <[email protected]>
10680
10681         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10682         argument.
10683         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10684
10685 2014-02-19  Tom Tromey  <[email protected]>
10686
10687         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10688         directly.
10689         * target-delegates.c: Rebuild.
10690         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10691         TARGET_DEFAULT_FUNC.
10692         * target.c (default_target_decr_pc_after_break): Rename from
10693         forward_target_decr_pc_after_break.  Simplify.
10694         (target_decr_pc_after_break): Rely on delegation.
10695
10696 2014-02-19  Tom Tromey  <[email protected]>
10697
10698         * target.c (update_current_target): Do not INHERIT to_doc or
10699         to_magic.  Do not de_fault to_open or to_close.
10700
10701 2014-02-19  Tom Tromey  <[email protected]>
10702
10703         * gcore.h (objfile_find_memory_regions): Declare.
10704         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10705         "self" argument.
10706         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10707         * exec.c: Include gcore.h.
10708         (exec_set_find_memory_regions): Remove.
10709         (exec_find_memory_regions): Remove.
10710         (exec_do_find_memory_regions): Remove.
10711         (init_exec_ops): Update.
10712         * defs.h (exec_set_find_memory_regions): Remove.
10713
10714 2014-02-19  Tom Tromey  <[email protected]>
10715
10716         * target-delegates.c: Rebuild.
10717         * target.h (struct target_ops) <to_extra_thread_info,
10718         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10719         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10720         not 0, in TARGET_DEFAULT_RETURN.
10721
10722 2014-02-19  Tom Tromey  <[email protected]>
10723
10724         * target.c (complete_target_initialization): Remove casts.  Use
10725         return_zero_has_execution.
10726         (return_zero): Add "ignore" argument.
10727         (return_zero_has_execution): New function.
10728         (init_dummy_target): Remove casts.  Use
10729         return_zero_has_execution.
10730
10731 2014-02-19  Tom Tromey  <[email protected]>
10732
10733         * target.c (update_current_target): Update comments.  Do not
10734         INHERIT to_stratum.
10735
10736 2014-02-19  Tom Tromey  <[email protected]>
10737
10738         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10739         needed.
10740         * corelow.c (core_read_description): Delegate when needed.
10741         * remote.c (remote_read_description): Delegate when needed.
10742         * target-delegates.c: Rebuild.
10743         * target.c (target_read_description): Rewrite.
10744         * target.h (struct target_ops) <to_read_description>: Update
10745         comment.  Use TARGET_DEFAULT_RETURN.
10746
10747 2014-02-19  Tom Tromey  <[email protected]>
10748
10749         * target-delegates.c: Rebuild.
10750         * target.c (update_current_target): Don't inherit or default
10751         to_can_run.
10752         (find_default_run_target): Check against delegate_can_run.
10753         * target.h (struct target_ops) <to_can_run>: Use
10754         TARGET_DEFAULT_RETURN.
10755
10756 2014-02-19  Tom Tromey  <[email protected]>
10757
10758         * target-delegates.c: Rebuild.
10759         * target.c (target_disconnect): Unconditionally delegate.
10760         * target.h (struct target_ops) <to_disconnect>: Use
10761         TARGET_DEFAULT_NORETURN.
10762
10763 2014-02-19  Tom Tromey  <[email protected]>
10764
10765         * record.c (record_stop): Unconditionally delegate.
10766         * target-delegates.c: Rebuild.
10767         * target.c (target_stop_recording): Unconditionally delegate.
10768         * target.h (struct target_ops) <to_stop_recording>: Use
10769         TARGET_DEFAULT_IGNORE.
10770
10771 2014-02-19  Tom Tromey  <[email protected]>
10772
10773         * target-delegates.c: Rebuild.
10774         * target.c (target_enable_btrace): Unconditionally delegate.
10775         * target.h (struct target_ops) <to_enable_btrace>: Use
10776         TARGET_DEFAULT_NORETURN.
10777
10778 2014-02-19  Tom Tromey  <[email protected]>
10779
10780         * target-delegates.c: Rebuild.
10781         * target.c (target_read_btrace): Unconditionally delegate.
10782         * target.h (struct target_ops) <to_read_btrace>: Use
10783         TARGET_DEFAULT_NORETURN.
10784
10785 2014-02-19  Tom Tromey  <[email protected]>
10786
10787         * target-delegates.c: Rebuild.
10788         * target.c (target_teardown_btrace): Unconditionally delegate.
10789         * target.h (struct target_ops) <to_teardown_btrace>: Use
10790         TARGET_DEFAULT_NORETURN.
10791
10792 2014-02-19  Tom Tromey  <[email protected]>
10793
10794         * target-delegates.c: Rebuild.
10795         * target.c (target_disable_btrace): Unconditionally delegate.
10796         * target.h (struct target_ops) <to_disable_btrace>: Use
10797         TARGET_DEFAULT_NORETURN.
10798
10799 2014-02-19  Tom Tromey  <[email protected]>
10800
10801         * target-delegates.c: Rebuild.
10802         * target.c (default_search_memory): New function.
10803         (simple_search_memory): Update comment.
10804         (target_search_memory): Unconditionally delegate.
10805         * target.h (struct target_ops) <to_search_memory>: Use
10806         TARGET_DEFAULT_FUNC.
10807
10808 2014-02-19  Tom Tromey  <[email protected]>
10809
10810         * auxv.c (default_auxv_parse): No longer static.
10811         (target_auxv_parse): Unconditionally delegate.
10812         * auxv.h (default_auxv_parse): Declare.
10813         * target-delegates.c: Rebuild.
10814         * target.c: Include auxv.h.
10815         * target.h (struct target_ops) <to_auxv_parse>: Use
10816         TARGET_DEFAULT_FUNC.
10817
10818 2014-02-19  Tom Tromey  <[email protected]>
10819
10820         * target-delegates.c: Rebuild.
10821         * target.c (target_memory_map): Unconditionally delegate.
10822         * target.h (struct target_ops) <to_memory_map>: Use
10823         TARGET_DEFAULT_RETURN.
10824
10825 2014-02-19  Tom Tromey  <[email protected]>
10826
10827         * target-delegates.c: Rebuild.
10828         * target.c (target_thread_alive): Unconditionally delegate.
10829         * target.h (struct target_ops) <to_thread_alive>: Use
10830         TARGET_DEFAULT_RETURN.
10831
10832 2014-02-19  Tom Tromey  <[email protected]>
10833
10834         * target-delegates.c: Rebuild.
10835         * target.c (target_save_record): Unconditionally delegate.
10836         * target.h (struct target_ops) <to_save_record>: Use
10837         TARGET_DEFAULT_NORETURN.
10838
10839 2014-02-19  Tom Tromey  <[email protected]>
10840
10841         * target-delegates.c: Rebuild.
10842         * target.c (target_delete_record): Unconditionally delegate.
10843         * target.h (struct target_ops) <to_delete_record>: Use
10844         TARGET_DEFAULT_NORETURN.
10845
10846 2014-02-19  Tom Tromey  <[email protected]>
10847
10848         * target-delegates.c: Rebuild.
10849         * target.c (target_record_is_replaying): Unconditionally
10850         delegate.
10851         * target.h (struct target_ops) <to_record_is_replaying>: Use
10852         TARGET_DEFAULT_RETURN.
10853
10854 2014-02-19  Tom Tromey  <[email protected]>
10855
10856         * target-delegates.c: Rebuild.
10857         * target.c (target_goto_record_begin): Unconditionally delegate.
10858         * target.h (struct target_ops) <to_goto_record_begin>: Use
10859         TARGET_DEFAULT_NORETURN.
10860
10861 2014-02-19  Tom Tromey  <[email protected]>
10862
10863         * target-delegates.c: Rebuild.
10864         * target.c (target_goto_record_end): Unconditionally delegate.
10865         * target.h (struct target_ops) <to_goto_record_end>: Use
10866         TARGET_DEFAULT_NORETURN.
10867
10868 2014-02-19  Tom Tromey  <[email protected]>
10869
10870         * target-delegates.c: Rebuild.
10871         * target.c (target_goto_record): Unconditionally delegate.
10872         * target.h (struct target_ops) <to_goto_record>: Use
10873         TARGET_DEFAULT_NORETURN.
10874
10875 2014-02-19  Tom Tromey  <[email protected]>
10876
10877         * target-delegates.c: Rebuild.
10878         * target.c (target_insn_history): Unconditionally delegate.
10879         * target.h (struct target_ops) <to_insn_history>: Use
10880         TARGET_DEFAULT_NORETURN.
10881
10882 2014-02-19  Tom Tromey  <[email protected]>
10883
10884         * target-delegates.c: Rebuild.
10885         * target.c (target_insn_history_from): Unconditionally delegate.
10886         * target.h (struct target_ops) <to_insn_history_from>: Use
10887         TARGET_DEFAULT_NORETURN.
10888
10889 2014-02-19  Tom Tromey  <[email protected]>
10890
10891         * target-delegates.c: Rebuild.
10892         * target.c (target_insn_history_range): Unconditionally delegate.
10893         * target.h (struct target_ops) <to_insn_history_range>: Use
10894         TARGET_DEFAULT_NORETURN.
10895
10896 2014-02-19  Tom Tromey  <[email protected]>
10897
10898         * target-delegates.c: Rebuild.
10899         * target.c (target_call_history): Unconditionally delegate.
10900         * target.h (struct target_ops) <to_call_history>: Use
10901         TARGET_DEFAULT_NORETURN.
10902
10903 2014-02-19  Tom Tromey  <[email protected]>
10904
10905         * target-delegates.c: Rebuild.
10906         * target.c (target_call_history_from): Unconditionally delegate.
10907         * target.h (struct target_ops) <to_call_history_from>: Use
10908         TARGET_DEFAULT_NORETURN.
10909
10910 2014-02-19  Tom Tromey  <[email protected]>
10911
10912         * target-delegates.c: Rebuild.
10913         * target.c (target_call_history_range): Unconditionally delegate.
10914         * target.h (struct target_ops) <to_call_history_range>: Use
10915         TARGET_DEFAULT_NORETURN.
10916
10917 2014-02-19  Tom Tromey  <[email protected]>
10918
10919         * target-delegates.c: Rebuild.
10920         * target.c (target_verify_memory): Unconditionally delegate.
10921         * target.h (struct target_ops) <to_verify_memory>: Use
10922         TARGET_DEFAULT_NORETURN.
10923
10924 2014-02-19  Tom Tromey  <[email protected]>
10925
10926         * target-delegates.c: Rebuild.
10927         * target.c (target_core_of_thread): Unconditionally delegate.
10928         * target.h (struct target_ops) <to_core_of_thread>: Use
10929         TARGET_DEFAULT_RETURN.
10930
10931 2014-02-19  Tom Tromey  <[email protected]>
10932
10933         * target-delegates.c: Rebuild.
10934         * target.c (target_flash_done): Unconditionally delegate.
10935         * target.h (struct target_ops) <to_flash_done>: Use
10936         TARGET_DEFAULT_NORETURN.
10937
10938 2014-02-19  Tom Tromey  <[email protected]>
10939
10940         * target-delegates.c: Rebuild.
10941         * target.c (target_flash_erase): Unconditionally delegate.
10942         * target.h (struct target_ops) <to_flash_erase>: Use
10943         TARGET_DEFAULT_NORETURN.
10944
10945 2014-02-19  Tom Tromey  <[email protected]>
10946
10947         * target-delegates.c: Rebuild.
10948         * target.c (target_get_section_table): Unconditionally delegate.
10949         * target.h (struct target_ops) <to_get_section_table>: Use
10950         TARGET_DEFAULT_RETURN.
10951
10952 2014-02-19  Tom Tromey  <[email protected]>
10953
10954         * target-delegates.c: Rebuild.
10955         * target.c (target_pid_to_str): Unconditionally delegate.
10956         (init_dummy_target): Don't initialize to_pid_to_str.
10957         (default_pid_to_str): Rename from dummy_pid_to_str.
10958         * target.h (struct target_ops) <to_pid_to_str>: Use
10959         TARGET_DEFAULT_FUNC.
10960
10961 2014-02-19  Tom Tromey  <[email protected]>
10962
10963         * target-delegates.c: Rebuild.
10964         * target.c (target_find_new_threads): Unconditionally delegate.
10965         * target.h (struct target_ops) <to_find_new_threads>: Use
10966         TARGET_DEFAULT_RETURN.
10967
10968 2014-02-19  Tom Tromey  <[email protected]>
10969
10970         * target-delegates.c: Rebuild.
10971         * target.c (target_program_signals): Unconditionally delegate.
10972         * target.h (struct target_ops) <to_program_signals>: Use
10973         TARGET_DEFAULT_IGNORE.
10974
10975 2014-02-19  Tom Tromey  <[email protected]>
10976
10977         * target-delegates.c: Rebuild.
10978         * target.c (target_pass_signals): Unconditionally delegate.
10979         * target.h (struct target_ops) <to_pass_signals>: Use
10980         TARGET_DEFAULT_IGNORE.
10981
10982 2014-02-19  Tom Tromey  <[email protected]>
10983
10984         * target-delegates.c: Rebuild.
10985         * target.c (default_mourn_inferior): New function.
10986         (target_mourn_inferior): Unconditionally delegate.
10987         * target.h (struct target_ops) <to_mourn_inferior>: Use
10988         TARGET_DEFAULT_FUNC.
10989
10990 2014-02-19  Tom Tromey  <[email protected]>
10991
10992         * target-delegates.c: Rebuild.
10993         * target.c (default_follow_fork): New function.
10994         (target_follow_fork): Unconditionally delegate.
10995         * target.h (struct target_ops) <to_follow_fork>: Use
10996         TARGET_DEFAULT_FUNC.
10997
10998 2014-02-19  Tom Tromey  <[email protected]>
10999
11000         * target-delegates.c: Rebuild.
11001         * target.c (target_kill): Unconditionally delegate.
11002         * target.h (struct target_ops) <to_kill>: Use
11003         TARGET_DEFAULT_NORETURN.
11004
11005 2014-02-19  Tom Tromey  <[email protected]>
11006
11007         * target-delegates.c: Rebuild.
11008         * target.c (target_masked_watch_num_registers): Unconditionally
11009         delegate.
11010         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11011         Use TARGET_DEFAULT_RETURN.
11012
11013 2014-02-19  Tom Tromey  <[email protected]>
11014
11015         * target-delegates.c: Rebuild.
11016         * target.c (target_remove_mask_watchpoint): Unconditionally
11017         delegate.
11018         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11019         TARGET_DEFAULT_RETURN.
11020
11021 2014-02-19  Tom Tromey  <[email protected]>
11022
11023         * target-delegates.c: Rebuild.
11024         * target.c (target_insert_mask_watchpoint): Unconditionally
11025         delegate.
11026         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11027         TARGET_DEFAULT_RETURN.
11028
11029 2014-02-19  Tom Tromey  <[email protected]>
11030
11031         * target-delegates.c: Rebuild.
11032         * target.c (target_ranged_break_num_registers): Unconditionally
11033         delegate.
11034         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11035         Use TARGET_DEFAULT_RETURN.
11036
11037 2014-02-19  Tom Tromey  <[email protected]>
11038
11039         * target-delegates.c: Rebuild.
11040         * target.c (target_fetch_registers): Unconditionally delegate.
11041         * target.h (struct target_ops) <to_fetch_registers>: Use
11042         TARGET_DEFAULT_NORETURN.
11043
11044 2014-02-19  Tom Tromey  <[email protected]>
11045
11046         * target-delegates.c: Rebuild.
11047         * target.c (update_current_target): Don't inherit or default
11048         to_stop.
11049         * target.h (struct target_ops) <to_stop>: Use
11050         TARGET_DEFAULT_IGNORE.
11051
11052 2014-02-19  Tom Tromey  <[email protected]>
11053
11054         * target-delegates.c: Rebuild.
11055         * target.c (update_current_target): Don't inherit or default
11056         to_can_run_breakpoint_commands.
11057         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11058         Use TARGET_DEFAULT_RETURN.
11059
11060 2014-02-19  Tom Tromey  <[email protected]>
11061
11062         * target-delegates.c: Rebuild.
11063         * target.c (update_current_target): Don't inherit or default
11064         to_supports_evaluation_of_breakpoint_conditions.
11065         * target.h (struct target_ops)
11066         <to_supports_evaluation_of_breakpoint_conditions>: Use
11067         TARGET_DEFAULT_RETURN.
11068
11069 2014-02-19  Tom Tromey  <[email protected]>
11070
11071         * target-delegates.c: Rebuild.
11072         * target.c (update_current_target): Don't inherit or default
11073         to_augmented_libraries_svr4_read.
11074         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11075         Use TARGET_DEFAULT_RETURN.
11076
11077 2014-02-19  Tom Tromey  <[email protected]>
11078
11079         * target-delegates.c: Rebuild.
11080         * target.c (update_current_target): Don't inherit or default
11081         to_can_use_agent.
11082         * target.h (struct target_ops) <to_can_use_agent>: Use
11083         TARGET_DEFAULT_RETURN.
11084
11085 2014-02-19  Tom Tromey  <[email protected]>
11086
11087         * target-delegates.c: Rebuild.
11088         * target.c (update_current_target): Don't inherit or default
11089         to_use_agent.
11090         * target.h (struct target_ops) <to_use_agent>: Use
11091         TARGET_DEFAULT_NORETURN.
11092
11093 2014-02-19  Tom Tromey  <[email protected]>
11094
11095         * target-delegates.c: Rebuild.
11096         * target.c (update_current_target): Don't inherit or default
11097         to_traceframe_info.
11098         (return_null): Remove.
11099         * target.h (struct target_ops) <to_traceframe_info>: Use
11100         TARGET_DEFAULT_RETURN.
11101
11102 2014-02-19  Tom Tromey  <[email protected]>
11103
11104         * target-delegates.c: Rebuild.
11105         * target.c (update_current_target): Don't inherit or default
11106         to_static_tracepoint_markers_by_strid.
11107         * target.h (struct target_ops)
11108         <to_static_tracepoint_markers_by_strid>: Use
11109         TARGET_DEFAULT_NORETURN.
11110
11111 2014-02-19  Tom Tromey  <[email protected]>
11112
11113         * target-delegates.c: Rebuild.
11114         * target.c (update_current_target): Don't inherit or default
11115         to_static_tracepoint_marker_at.
11116         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11117         Use TARGET_DEFAULT_RETURN.
11118
11119 2014-02-19  Tom Tromey  <[email protected]>
11120
11121         * target-delegates.c: Rebuild.
11122         * target.c (update_current_target): Don't inherit or default
11123         to_set_permissions.
11124         * target.h (struct target_ops) <to_set_permissions>: Use
11125         TARGET_DEFAULT_IGNORE.
11126
11127 2014-02-19  Tom Tromey  <[email protected]>
11128
11129         * target-delegates.c: Rebuild.
11130         * target.c (update_current_target): Don't inherit or default
11131         to_get_tib_address.
11132         * target.h (struct target_ops) <to_get_tib_address>: Use
11133         TARGET_DEFAULT_NORETURN.
11134
11135 2014-02-19  Tom Tromey  <[email protected]>
11136
11137         * target-delegates.c: Rebuild.
11138         * target.c (update_current_target): Don't inherit or default
11139         to_set_trace_notes.
11140         * target.h (struct target_ops) <to_set_trace_notes>: Use
11141         TARGET_DEFAULT_RETURN.
11142
11143 2014-02-19  Tom Tromey  <[email protected]>
11144
11145         * target-delegates.c: Rebuild.
11146         * target.c (update_current_target): Don't initialize
11147         to_set_trace_buffer_size.
11148         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11149         TARGET_DEFAULT_IGNORE.
11150
11151 2014-02-19  Tom Tromey  <[email protected]>
11152
11153         * target-delegates.c: Rebuild.
11154         * target.c (update_current_target): Don't inherit or default
11155         to_set_circular_trace_buffer.
11156         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11157         TARGET_DEFAULT_IGNORE.
11158
11159 2014-02-19  Tom Tromey  <[email protected]>
11160
11161         * target-delegates.c: Rebuild.
11162         * target.c (update_current_target): Don't inherit or default
11163         to_set_disconnected_tracing.
11164         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11165         TARGET_DEFAULT_IGNORE.
11166
11167 2014-02-19  Tom Tromey  <[email protected]>
11168
11169         * target-delegates.c: Rebuild.
11170         * target.c (update_current_target): Don't inherit or default
11171         to_get_min_fast_tracepoint_insn_len.
11172         (return_minus_one): Remove.
11173         * target.h (struct target_ops)
11174         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11175
11176 2014-02-19  Tom Tromey  <[email protected]>
11177
11178         * target-delegates.c: Rebuild.
11179         * target.c (update_current_target): Don't inherit or default
11180         to_get_raw_trace_data.
11181         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11182         TARGET_DEFAULT_NORETURN.
11183
11184 2014-02-19  Tom Tromey  <[email protected]>
11185
11186         * target-delegates.c: Rebuild.
11187         * target.c (update_current_target): Don't inherit or default
11188         to_upload_trace_state_variables.
11189         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11190         Use TARGET_DEFAULT_RETURN.
11191
11192 2014-02-19  Tom Tromey  <[email protected]>
11193
11194         * target-delegates.c: Rebuild.
11195         * target.c (update_current_target): Don't inherit or default
11196         to_upload_tracepoints.
11197         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11198         TARGET_DEFAULT_RETURN.
11199
11200 2014-02-19  Tom Tromey  <[email protected]>
11201
11202         * target-delegates.c: Rebuild.
11203         * target.c (update_current_target): Don't inherit or default
11204         to_save_trace_data.
11205         * target.h (struct target_ops) <to_save_trace_data>: Use
11206         TARGET_DEFAULT_NORETURN.
11207
11208 2014-02-19  Tom Tromey  <[email protected]>
11209
11210         * target-delegates.c: Rebuild.
11211         * target.c (update_current_target): Don't inherit or default
11212         to_get_trace_state_variable_value.
11213         * target.h (struct target_ops)
11214         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11215
11216 2014-02-19  Tom Tromey  <[email protected]>
11217
11218         * target-delegates.c: Rebuild.
11219         * target.c (update_current_target): Don't inherit or default
11220         to_trace_find.
11221         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11222
11223 2014-02-19  Tom Tromey  <[email protected]>
11224
11225         * target-delegates.c: Rebuild.
11226         * target.c (update_current_target): Don't inherit or default
11227         to_trace_stop.
11228         * target.h (struct target_ops) <to_trace_stop>: Use
11229         TARGET_DEFAULT_NORETURN.
11230
11231 2014-02-19  Tom Tromey  <[email protected]>
11232
11233         * target-delegates.c: Rebuild.
11234         * target.c (update_current_target): Don't inherit or default
11235         to_get_tracepoint_status.
11236         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11237         TARGET_DEFAULT_NORETURN.
11238
11239 2014-02-19  Tom Tromey  <[email protected]>
11240
11241         * target-delegates.c: Rebuild.
11242         * target.c (update_current_target): Don't inherit or default
11243         to_get_trace_status.
11244         * target.h (struct target_ops) <to_get_trace_status>: Use
11245         TARGET_DEFAULT_RETURN.
11246
11247 2014-02-19  Tom Tromey  <[email protected]>
11248
11249         * target-delegates.c: Rebuild.
11250         * target.c (update_current_target): Don't inherit or default
11251         to_trace_start.
11252         * target.h (struct target_ops) <to_trace_start>: Use
11253         TARGET_DEFAULT_NORETURN.
11254
11255 2014-02-19  Tom Tromey  <[email protected]>
11256
11257         * target-delegates.c: Rebuild.
11258         * target.c (update_current_target): Don't inherit or default
11259         to_trace_set_readonly_regions.
11260         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11261         Use TARGET_DEFAULT_NORETURN.
11262
11263 2014-02-19  Tom Tromey  <[email protected]>
11264
11265         * target-delegates.c: Rebuild.
11266         * target.c (update_current_target): Don't inherit or default
11267         to_disable_tracepoint.
11268         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11269         TARGET_DEFAULT_NORETURN.
11270
11271 2014-02-19  Tom Tromey  <[email protected]>
11272
11273         * target-delegates.c: Rebuild.
11274         * target.c (update_current_target): Don't inherit or default
11275         to_enable_tracepoint.
11276         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11277         TARGET_DEFAULT_NORETURN.
11278
11279 2014-02-19  Tom Tromey  <[email protected]>
11280
11281         * target-delegates.c: Rebuild.
11282         * target.c (update_current_target): Don't inherit or default
11283         to_download_trace_state_variable.
11284         * target.h (struct target_ops) <to_download_trace_state_variable>:
11285         Use TARGET_DEFAULT_NORETURN.
11286
11287 2014-02-19  Tom Tromey  <[email protected]>
11288
11289         * target-delegates.c: Rebuild.
11290         * target.c (update_current_target): Don't inherit or default
11291         to_can_download_tracepoint.
11292         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11293         TARGET_DEFAULT_RETURN.
11294
11295 2014-02-19  Tom Tromey  <[email protected]>
11296
11297         * target-delegates.c: Rebuild.
11298         * target.c (update_current_target): Don't inherit or default
11299         to_download_tracepoint.
11300         * target.h (struct target_ops) <to_download_tracepoint>: Use
11301         TARGET_DEFAULT_NORETURN.
11302
11303 2014-02-19  Tom Tromey  <[email protected]>
11304
11305         * target-delegates.c: Rebuild.
11306         * target.c (update_current_target): Don't inherit or default
11307         to_trace_init.
11308         * target.h (struct target_ops) <to_trace_init>: Use
11309         TARGET_DEFAULT_RETURN.
11310
11311 2014-02-19  Tom Tromey  <[email protected]>
11312
11313         * target-delegates.c: Rebuild.
11314         * target.c (update_current_target): Don't inherit or default
11315         to_supports_string_tracing.
11316         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11317         TARGET_DEFAULT_RETURN.
11318
11319 2014-02-19  Tom Tromey  <[email protected]>
11320
11321         * target-delegates.c: Rebuild.
11322         * target.c (update_current_target): Don't inherit or default
11323         to_supports_enable_disable_tracepoint.
11324         * target.h (struct target_ops)
11325         <to_supports_enable_disable_tracepoint>: Use
11326         TARGET_DEFAULT_RETURN.
11327
11328 2014-02-19  Tom Tromey  <[email protected]>
11329
11330         * target-delegates.c: Rebuild.
11331         * target.c (update_current_target): Don't inherit or default
11332         to_supports_multi_process.
11333         * target.h (struct target_ops) <to_supports_multi_process>: Use
11334         TARGET_DEFAULT_RETURN.
11335
11336 2014-02-19  Tom Tromey  <[email protected]>
11337
11338         * target-delegates.c: Rebuild.
11339         * target.c (update_current_target): Don't inherit or default
11340         to_get_ada_task_ptid.
11341         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11342         TARGET_DEFAULT_FUNC.
11343
11344 2014-02-19  Tom Tromey  <[email protected]>
11345
11346         * target-delegates.c: Rebuild.
11347         * target.c (update_current_target): Don't inherit or default
11348         to_thread_architecture.
11349         * target.h (struct target_ops) <to_thread_architecture>: Use
11350         TARGET_DEFAULT_FUNC.
11351
11352 2014-02-19  Tom Tromey  <[email protected]>
11353
11354         * target-delegates.c: Rebuild.
11355         * target.c (update_current_target): Don't inherit or default
11356         to_execution_direction.
11357         * target.h (struct target_ops) <to_execution_direction>: Use
11358         TARGET_DEFAULT_FUNC.
11359
11360 2014-02-19  Tom Tromey  <[email protected]>
11361
11362         * target-delegates.c: Rebuild.
11363         * target.c (update_current_target): Don't inherit or default
11364         to_can_execute_reverse.
11365         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11366         TARGET_DEFAULT_RETURN.
11367         (target_can_execute_reverse): Unconditionally delegate.
11368
11369 2014-02-19  Tom Tromey  <[email protected]>
11370
11371         * target-delegates.c: Rebuild.
11372         * target.c (update_current_target): Don't inherit or default
11373         to_goto_bookmark.
11374         (dummy_goto_bookmark): Remove.
11375         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11376         * target.h (struct target_ops) <to_goto_bookmark>: Use
11377         TARGET_DEFAULT_NORETURN.
11378
11379 2014-02-19  Tom Tromey  <[email protected]>
11380
11381         * target-delegates.c: Rebuild.
11382         * target.c (update_current_target): Don't inherit or default
11383         to_get_bookmark.
11384         (dummy_get_bookmark): Remove.
11385         (init_dummy_target): Don't inherit or default to_get_bookmark.
11386         * target.h (struct target_ops) <to_get_bookmark>: Use
11387         TARGET_DEFAULT_NORETURN
11388
11389 2014-02-19  Tom Tromey  <[email protected]>
11390
11391         * target-delegates.c: Rebuild.
11392         * target.c (update_current_target): Don't inherit or default
11393         to_make_corefile_notes.
11394         (init_dummy_target): Don't initialize to_make_corefile_notes.
11395         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11396         TARGET_DEFAULT_FUNC.
11397
11398 2014-02-19  Tom Tromey  <[email protected]>
11399
11400         * target-delegates.c: Rebuild.
11401         * target.c (update_current_target): Don't inherit or default
11402         to_find_memory_regions.
11403         (init_dummy_target): Don't initialize to_find_memory_regions.
11404         * target.h (struct target_ops) <to_find_memory_regions>: Use
11405         TARGET_DEFAULT_FUNC.
11406
11407 2014-02-19  Tom Tromey  <[email protected]>
11408
11409         * target-delegates.c: Rebuild.
11410         * target.c (update_current_target): Don't inherit or default
11411         to_log_command.
11412         * target.h (struct target_ops) <to_log_command>: Use
11413         TARGET_DEFAULT_IGNORE.
11414         (target_log_command): Unconditionally delegate.
11415
11416 2014-02-19  Tom Tromey  <[email protected]>
11417
11418         * target-delegates.c: Rebuild.
11419         * target.c (update_current_target): Don't inherit or default
11420         to_pid_to_exec_file.
11421         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11422         TARGET_DEFAULT_RETURN.
11423
11424 2014-02-19  Tom Tromey  <[email protected]>
11425
11426         * target-delegates.c: Rebuild.
11427         * target.c (update_current_target): Don't inherit or default
11428         to_thread_name.
11429         (target_thread_name): Unconditionally delegate.
11430         * target.h (struct target_ops) <to_thread_name>: Use
11431         TARGET_DEFAULT_RETURN.
11432
11433 2014-02-19  Tom Tromey  <[email protected]>
11434
11435         * target-delegates.c: Rebuild.
11436         * target.c (update_current_target): Don't inherit or default
11437         to_extra_thread_info.
11438         * target.h (struct target_ops) <to_extra_thread_info>: Use
11439         TARGET_DEFAULT_RETURN.
11440
11441 2014-02-19  Tom Tromey  <[email protected]>
11442
11443         * target-delegates.c: Rebuild.
11444         * target.c (update_current_target): Don't inherit or default
11445         to_has_exited.
11446         * target.h (struct target_ops) <to_has_exited>: Use
11447         TARGET_DEFAULT_RETURN..
11448
11449 2014-02-19  Tom Tromey  <[email protected]>
11450
11451         * target-delegates.c: Rebuild.
11452         * target.c (update_current_target): Don't inherit or default
11453         to_set_syscall_catchpoint.
11454         (return_one): Remove.
11455         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11456         TARGET_DEFAULT_RETURN.
11457
11458 2014-02-19  Tom Tromey  <[email protected]>
11459
11460         * target-delegates.c: Rebuild.
11461         * target.c (update_current_target): Don't inherit or default
11462         to_insert_exec_catchpoint.
11463         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11464         TARGET_DEFAULT_RETURN.
11465
11466 2014-01-08  Tom Tromey  <[email protected]>
11467
11468         * target-delegates.c: Rebuild.
11469         * target.c (update_current_target): Don't inherit or default
11470         to_insert_exec_catchpoint.
11471         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11472         TARGET_DEFAULT_RETURN.
11473
11474 2014-02-19  Tom Tromey  <[email protected]>
11475
11476         * target-delegates.c: Rebuild.
11477         * target.c (update_current_target): Don't inherit or default
11478         to_remove_vfork_catchpoint.
11479         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11480         TARGET_DEFAULT_RETURN.
11481
11482 2014-02-19  Tom Tromey  <[email protected]>
11483
11484         * target-delegates.c: Rebuild.
11485         * target.c (update_current_target): Don't inherit or default
11486         to_insert_vfork_catchpoint.
11487         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11488         TARGET_DEFAULT_RETURN.
11489
11490 2014-02-19  Tom Tromey  <[email protected]>
11491
11492         * target-delegates.c: Rebuild.
11493         * target.c (update_current_target): Don't inherit or default
11494         to_remove_fork_catchpoint.
11495         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11496         TARGET_DEFAULT_RETURN.
11497
11498 2014-02-19  Tom Tromey  <[email protected]>
11499
11500         * target-delegates.c: Rebuild.
11501         * target.c (update_current_target): Don't inherit or default
11502         to_insert_fork_catchpoint.
11503         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11504         TARGET_DEFAULT_RETURN.
11505
11506 2014-02-19  Tom Tromey  <[email protected]>
11507
11508         * target-delegates.c: Rebuild.
11509         * target.c (update_current_target): Don't inherit or default
11510         to_post_startup_inferior.
11511         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11512         TARGET_DEFAULT_IGNORE.
11513
11514 2014-02-19  Tom Tromey  <[email protected]>
11515
11516         * target-delegates.c: Rebuild.
11517         * target.c (update_current_target): Don't inherit or default
11518         to_load.
11519         * target.h (struct target_ops) <to_load>: Use
11520         TARGET_DEFAULT_NORETURN.
11521
11522 2014-02-19  Tom Tromey  <[email protected]>
11523
11524         * target-delegates.c: Rebuild.
11525         * target.c (update_current_target): Don't inherit or default
11526         to_terminal_info.
11527         * target.h (struct target_ops) <to_terminal_info>: Use
11528         TARGET_DEFAULT_FUNC.
11529
11530 2014-02-19  Tom Tromey  <[email protected]>
11531
11532         * target-delegates.c: Rebuild.
11533         * target.c (update_current_target): Don't inherit or default
11534         to_terminal_save_ours.
11535         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11536         TARGET_DEFAULT_IGNORE.
11537
11538 2014-02-19  Tom Tromey  <[email protected]>
11539
11540         * target-delegates.c: Rebuild.
11541         * target.c (update_current_target): Don't inherit or default
11542         to_terminal_ours.
11543         * target.h (struct target_ops) <to_terminal_ours>: Use
11544         TARGET_DEFAULT_IGNORE.
11545
11546 2014-02-19  Tom Tromey  <[email protected]>
11547
11548         * target-delegates.c: Rebuild.
11549         * target.c (update_current_target): Don't inherit or default
11550         to_terminal_ours_for_output.
11551         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11552         TARGET_DEFAULT_IGNORE.
11553
11554 2014-02-19  Tom Tromey  <[email protected]>
11555
11556         * target-delegates.c: Rebuild.
11557         * target.c (update_current_target): Don't inherit or default
11558         to_terminal_inferior.
11559         * target.h (struct target_ops) <to_terminal_inferior>: Use
11560         TARGET_DEFAULT_IGNORE.
11561
11562 2014-02-19  Tom Tromey  <[email protected]>
11563
11564         * target-delegates.c: Rebuild.
11565         * target.c (update_current_target): Don't inherit or default
11566         to_terminal_init.
11567         * target.h (struct target_ops) <to_terminal_init>: Use
11568         TARGET_DEFAULT_IGNORE.
11569
11570 2014-02-19  Tom Tromey  <[email protected]>
11571
11572         * target-delegates.c: Rebuild.
11573         * target.c (update_current_target): Don't inherit or default
11574         to_can_accel_watchpoint_condition.
11575         * target.h (struct target_ops)
11576         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11577
11578 2014-02-19  Tom Tromey  <[email protected]>
11579
11580         * target-delegates.c: Rebuild.
11581         * target.c (update_current_target): Don't inherit or default
11582         to_region_ok_for_hw_watchpoint.
11583         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11584         Use TARGET_DEFAULT_FUNC.
11585
11586 2014-02-19  Tom Tromey  <[email protected]>
11587
11588         * target-delegates.c: Rebuild.
11589         * target.c (update_current_target): Don't inherit or default
11590         to_watchpoint_addr_within_range.
11591         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11592         Use TARGET_DEFAULT_FUNC.
11593
11594 2014-02-19  Tom Tromey  <[email protected]>
11595
11596         * target-delegates.c: Rebuild.
11597         * target.c (update_current_target): Don't inherit or default
11598         to_remove_watchpoint.
11599         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11600         TARGET_DEFAULT_NORETURN.
11601
11602 2014-02-19  Tom Tromey  <[email protected]>
11603
11604         * target-delegates.c: Rebuild.
11605         * target.c (update_current_target): Don't inherit or default
11606         to_insert_watchpoint.
11607         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11608         TARGET_DEFAULT_RETURN.
11609
11610 2014-02-19  Tom Tromey  <[email protected]>
11611
11612         * target-delegates.c: Rebuild.
11613         * target.c (update_current_target): Don't inherit or default
11614         to_remove_hw_breakpoint.
11615         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11616         TARGET_DEFAULT_RETURN.
11617
11618 2014-02-19  Tom Tromey  <[email protected]>
11619
11620         * target-delegates.c: Rebuild.
11621         * target.c (update_current_target): Don't inherit or default
11622         to_insert_hw_breakpoint.
11623         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11624         TARGET_DEFAULT_RETURN.
11625
11626 2014-02-19  Tom Tromey  <[email protected]>
11627
11628         * target-delegates.c: Rebuild.
11629         * target.c (update_current_target): Don't inherit or default
11630         to_can_use_hw_breakpoint.
11631         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11632         TARGET_DEFAULT_RETURN.
11633
11634 2014-02-19  Tom Tromey  <[email protected]>
11635
11636         * target-delegates.c: Rebuild.
11637         * target.c (update_current_target): Don't inherit or default
11638         to_files_info.
11639         * target.h (struct target_ops) <to_files_info>: Use
11640         TARGET_DEFAULT_IGNORE.
11641
11642 2014-02-19  Tom Tromey  <[email protected]>
11643
11644         * target-delegates.c: Rebuild.
11645         * target.c (update_current_target): Don't inherit or default
11646         to_store.
11647         * target.h (struct target_ops) <to_store>: Use
11648         TARGET_DEFAULT_NORETURN.
11649
11650 2014-02-19  Tom Tromey  <[email protected]>
11651
11652         * target-delegates.c: Rebuild.
11653         * target.c (update_current_target): Don't inherit or default
11654         to_post_attach.
11655         * target.h (struct target_ops) <to_post_attach>: Use
11656         TARGET_DEFAULT_IGNORE.
11657
11658 2014-02-19  Tom Tromey  <[email protected]>
11659
11660         * target-delegates.c: Rebuild.
11661         * target.c (update_current_target): Don't inherit or default
11662         to_rcmd.
11663         (default_rcmd): New function.
11664         (do_monitor_command): Unconditionally delegate.
11665         * target.h (struct target_ops) <to_rmcd>: Use
11666         TARGET_DEFAULT_FUNC.
11667
11668 2014-02-19  Tom Tromey  <[email protected]>
11669
11670         * target-delegates.c: Rebuild.
11671         * target.c (init_dummy_target): Don't initialize to_attach.
11672         (target_attach): Unconditionally delegate.
11673         * target.h (struct target_ops) <to_attach>: Use
11674         TARGET_DEFAULT_FUNC.
11675
11676 2014-02-19  Tom Tromey  <[email protected]>
11677
11678         * target-delegates.c: Rebuild.
11679         * target.c (target_detach): Unconditionally delegate.
11680         (init_dummy_target): Don't initialize to_detach.
11681         * target.h (struct target_ops) <to_detach>: Use
11682         TARGET_DEFAULT_IGNORE.
11683
11684 2014-02-19  Tom Tromey  <[email protected]>
11685
11686         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11687         Add argument.
11688         (target_augmented_libraries_svr4_read): Add argument.
11689         * target.c (update_current_target): Update.
11690         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11691         argument.
11692
11693 2014-02-19  Tom Tromey  <[email protected]>
11694
11695         * target.h (struct target_ops) <to_call_history_range>: Add
11696         argument.
11697         * target.c (target_call_history_range): Add argument.
11698         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11699         argument.
11700         (record_btrace_call_history_from): Update.
11701
11702 2014-02-19  Tom Tromey  <[email protected]>
11703
11704         * target.h (struct target_ops) <to_call_history_from>: Add
11705         argument.
11706         * target.c (target_call_history_from): Add argument.
11707         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11708         argument.
11709
11710 2014-02-19  Tom Tromey  <[email protected]>
11711
11712         * target.h (struct target_ops) <to_call_history>: Add argument.
11713         * target.c (target_call_history): Add argument.
11714         * record-btrace.c (record_btrace_call_history): Add 'self'
11715         argument.
11716
11717 2014-02-19  Tom Tromey  <[email protected]>
11718
11719         * target.h (struct target_ops) <to_insn_history_range>: Add
11720         argument.
11721         * target.c (target_insn_history_range): Add argument.
11722         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11723         argument.
11724         (record_btrace_insn_history_from): Update.
11725
11726 2014-02-19  Tom Tromey  <[email protected]>
11727
11728         * target.h (struct target_ops) <to_insn_history_from>: Add
11729         argument.
11730         * target.c (target_insn_history_from): Add argument.
11731         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11732         argument.
11733
11734 2014-02-19  Tom Tromey  <[email protected]>
11735
11736         * target.h (struct target_ops) <to_insn_history>: Add argument.
11737         * target.c (target_insn_history): Add argument.
11738         * record-btrace.c (record_btrace_insn_history): Add 'self'
11739         argument.
11740
11741 2014-02-19  Tom Tromey  <[email protected]>
11742
11743         * target.h (struct target_ops) <to_goto_record>: Add argument.
11744         * target.c (target_goto_record): Add argument.
11745         * record-full.c (record_full_goto): Add 'self' argument.
11746         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11747
11748 2014-02-19  Tom Tromey  <[email protected]>
11749
11750         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11751         * target.c (target_goto_record_end): Add argument.
11752         * record-full.c (record_full_goto_end): Add 'self' argument.
11753         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11754
11755 2014-02-19  Tom Tromey  <[email protected]>
11756
11757         * target.h (struct target_ops) <to_goto_record_begin>: Add
11758         argument.
11759         * target.c (target_goto_record_begin): Add argument.
11760         * record-full.c (record_full_goto_begin): Add 'self' argument.
11761         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11762         argument.
11763
11764 2014-02-19  Tom Tromey  <[email protected]>
11765
11766         * target.h (struct target_ops) <to_record_is_replaying>: Add
11767         argument.
11768         * target.c (target_record_is_replaying): Add argument.
11769         * record-full.c (record_full_is_replaying): Add 'self' argument.
11770         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11771         argument.
11772         (record_btrace_xfer_partial, record_btrace_store_registers)
11773         (record_btrace_prepare_to_store, record_btrace_resume)
11774         (record_btrace_wait, record_btrace_decr_pc_after_break)
11775         (record_btrace_find_new_threads, record_btrace_thread_alive):
11776         Update.
11777
11778 2014-02-19  Tom Tromey  <[email protected]>
11779
11780         * target.h (struct target_ops) <to_delete_record>: Add argument.
11781         * target.c (target_delete_record): Add argument.
11782         * record-full.c (record_full_delete): Add 'self' argument.
11783
11784 2014-02-19  Tom Tromey  <[email protected]>
11785
11786         * target.h (struct target_ops) <to_save_record>: Add argument.
11787         * target.c (target_save_record): Add argument.
11788         * record-full.c (record_full_save): Add 'self' argument.
11789         (record_full_save): Add 'self' argument.
11790
11791 2014-02-19  Tom Tromey  <[email protected]>
11792
11793         * target.h (struct target_ops) <to_info_record>: Add argument.
11794         * target.c (target_info_record): Add argument.
11795         * record.c (info_record_command): Add argument.
11796         * record-full.c (record_full_info): Add 'self' argument.
11797         * record-btrace.c (record_btrace_info): Add 'self' argument.
11798
11799 2014-02-19  Tom Tromey  <[email protected]>
11800
11801         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11802         * target.c (target_stop_recording): Add argument.
11803         * record.c (record_stop): Add argument.
11804         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11805         argument.
11806
11807 2014-02-19  Tom Tromey  <[email protected]>
11808
11809         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11810         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11811         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11812         argument.
11813         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11814         (_initialize_amd64_linux_nat): Use it.
11815         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11816         (_initialize_i386_linux_nat): Use it.
11817
11818 2014-02-19  Tom Tromey  <[email protected]>
11819
11820         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11821         * target.c (target_teardown_btrace): Add argument.
11822         * remote.c (remote_teardown_btrace): Add 'self' argument.
11823         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11824         argument.
11825         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11826         argument.
11827
11828 2014-02-19  Tom Tromey  <[email protected]>
11829
11830         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11831         * target.c (target_disable_btrace): Add argument.
11832         * remote.c (remote_disable_btrace): Add 'self' argument.
11833         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11834         argument.
11835         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11836         argument.
11837
11838 2014-02-19  Tom Tromey  <[email protected]>
11839
11840         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11841         * target.c (target_enable_btrace): Add argument.
11842         * remote.c (remote_enable_btrace): Add 'self' argument.
11843         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11844         argument.
11845         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11846         argument.
11847
11848 2014-02-19  Tom Tromey  <[email protected]>
11849
11850         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11851         (target_can_use_agent): Add argument.
11852         * target.c (update_current_target): Update.
11853         * remote.c (remote_can_use_agent): Add 'self' argument.
11854         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11855
11856 2014-02-19  Tom Tromey  <[email protected]>
11857
11858         * target.h (struct target_ops) <to_use_agent>: Add argument.
11859         (target_use_agent): Add argument.
11860         * target.c (update_current_target): Update.
11861         * remote.c (remote_use_agent): Add 'self' argument.
11862         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11863
11864 2014-02-19  Tom Tromey  <[email protected]>
11865
11866         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11867         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11868         (target_traceframe_info): Add argument.
11869         * target.c (update_current_target): Update.
11870         * remote.c (remote_traceframe_info): Add 'self' argument.
11871         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11872
11873 2014-02-19  Tom Tromey  <[email protected]>
11874
11875         * target.h (target_static_tracepoint_markers_by_strid): Add
11876         argument.
11877         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11878         'self' argument.
11879         * target.c (update_current_target): Update.
11880         * remote.c (struct target_ops)
11881         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11882         * linux-nat.c (struct target_ops)
11883         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11884
11885 2014-02-19  Tom Tromey  <[email protected]>
11886
11887         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11888         Add argument.
11889         (target_static_tracepoint_marker_at): Add argument.
11890         * target.c (update_current_target): Update.
11891         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11892         argument.
11893
11894 2014-02-19  Tom Tromey  <[email protected]>
11895
11896         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11897         (target_set_permissions): Add argument.
11898         * target.c (update_current_target): Update.
11899         * remote.c (remote_set_permissions): Add 'self' argument.
11900         (remote_start_remote): Update.
11901
11902 2014-02-19  Tom Tromey  <[email protected]>
11903
11904         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11905         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11906         (target_get_tib_address): Add argument.
11907         * target.c (update_current_target): Update.
11908         * remote.c (remote_get_tib_address): Add 'self' argument.
11909
11910 2014-02-19  Tom Tromey  <[email protected]>
11911
11912         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11913         (target_set_trace_notes): Add argument.
11914         * target.c (update_current_target): Update.
11915         * remote.c (remote_set_trace_notes): Add 'self' argument.
11916
11917 2014-02-19  Tom Tromey  <[email protected]>
11918
11919         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11920         argument.
11921         (target_set_trace_buffer_size): Add argument.
11922         * target.c (update_current_target): Update.
11923         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11924
11925 2014-02-19  Tom Tromey  <[email protected]>
11926
11927         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11928         argument.
11929         (target_set_circular_trace_buffer): Add argument.
11930         * target.c (update_current_target): Update.
11931         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11932         argument.
11933
11934 2014-02-19  Tom Tromey  <[email protected]>
11935
11936         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11937         argument.
11938         (target_set_disconnected_tracing): Add argument.
11939         * target.c (update_current_target): Update.
11940         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11941
11942 2014-02-19  Tom Tromey  <[email protected]>
11943
11944         * target.h (struct target_ops)
11945         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11946         (target_get_min_fast_tracepoint_insn_len): Add argument.
11947         * target.c (update_current_target): Update.
11948         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11949         argument.
11950
11951 2014-02-19  Tom Tromey  <[email protected]>
11952
11953         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11954         argument.
11955         (target_get_raw_trace_data): Add argument.
11956         * target.c (update_current_target): Update.
11957         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11958
11959 2014-02-19  Tom Tromey  <[email protected]>
11960
11961         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11962         Add argument.
11963         (target_upload_trace_state_variables): Add argument.
11964         * target.c (update_current_target): Update.
11965         * remote.c (remote_upload_trace_state_variables): Add 'self'
11966         argument.
11967         (remote_start_remote): Update.
11968
11969 2014-02-19  Tom Tromey  <[email protected]>
11970
11971         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11972         argument.
11973         (target_upload_tracepoints): Add argument.
11974         * target.c (update_current_target): Update.
11975         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11976         (remote_start_remote): Update.
11977
11978 2014-02-19  Tom Tromey  <[email protected]>
11979
11980         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11981         (target_save_trace_data): Add argument.
11982         * target.c (update_current_target): Update.
11983         * remote.c (remote_save_trace_data): Add 'self' argument.
11984
11985 2014-02-19  Tom Tromey  <[email protected]>
11986
11987         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11988         argument.
11989         * target.h (struct target_ops)
11990         <to_get_trace_state_variable_value>: Add argument.
11991         (target_get_trace_state_variable_value): Add argument.
11992         * target.c (update_current_target): Update.
11993         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11994         argument.
11995         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11996
11997 2014-02-19  Tom Tromey  <[email protected]>
11998
11999         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12000         * target.h (struct target_ops) <to_trace_find>: Add argument.
12001         (target_trace_find): Add argument.
12002         * target.c (update_current_target): Update.
12003         * remote.c (remote_trace_find): Add 'self' argument.
12004         * ctf.c (ctf_trace_find): Add 'self' argument.
12005
12006 2014-02-19  Tom Tromey  <[email protected]>
12007
12008         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12009         (target_trace_stop): Add argument.
12010         * target.c (update_current_target): Update.
12011         * remote.c (remote_trace_stop): Add 'self' argument.
12012
12013 2014-02-19  Tom Tromey  <[email protected]>
12014
12015         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12016         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12017         argument.
12018         (target_get_tracepoint_status): Add argument.
12019         * target.c (update_current_target): Update.
12020         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12021
12022 2014-02-19  Tom Tromey  <[email protected]>
12023
12024         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12025         * target.h (struct target_ops) <to_get_trace_status>: Add
12026         argument.
12027         (target_get_trace_status): Add argument.
12028         * target.c (update_current_target): Update.
12029         * remote.c (remote_get_trace_status): Add 'self' argument.
12030         (remote_start_remote, remote_can_download_tracepoint): Update.
12031         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12032
12033 2014-02-19  Tom Tromey  <[email protected]>
12034
12035         * target.h (struct target_ops) <to_trace_start>: Add argument.
12036         (target_trace_start): Add argument.
12037         * target.c (update_current_target): Update.
12038         * remote.c (remote_trace_start): Add 'self' argument.
12039
12040 2014-02-19  Tom Tromey  <[email protected]>
12041
12042         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12043         Add argument.
12044         (target_trace_set_readonly_regions): Add argument.
12045         * target.c (update_current_target): Update.
12046         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12047         argument.
12048
12049 2014-02-19  Tom Tromey  <[email protected]>
12050
12051         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12052         argument.
12053         (target_disable_tracepoint): Add argument.
12054         * target.c (update_current_target): Update.
12055         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12056
12057 2014-02-19  Tom Tromey  <[email protected]>
12058
12059         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12060         argument.
12061         (target_enable_tracepoint): Add argument.
12062         * target.c (update_current_target): Update.
12063         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12064
12065 2014-02-19  Tom Tromey  <[email protected]>
12066
12067         * target.h (struct target_ops) <to_download_trace_state_variable>:
12068         Add argument.
12069         (target_download_trace_state_variable): Add argument.
12070         * target.c (update_current_target): Update.
12071         * remote.c (remote_download_trace_state_variable): Add 'self'
12072         argument.
12073
12074 2014-02-19  Tom Tromey  <[email protected]>
12075
12076         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12077         argument.
12078         (target_can_download_tracepoint): Add argument.
12079         * target.c (update_current_target): Update.
12080         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12081
12082 2014-02-19  Tom Tromey  <[email protected]>
12083
12084         * target.h (struct target_ops) <to_download_tracepoint>: Add
12085         argument.
12086         (target_download_tracepoint): Add argument.
12087         * target.c (update_current_target): Update.
12088         * remote.c (remote_download_tracepoint): Add 'self' argument.
12089
12090 2014-02-19  Tom Tromey  <[email protected]>
12091
12092         * target.h (struct target_ops) <to_trace_init>: Add argument.
12093         (target_trace_init): Add argument.
12094         * target.c (update_current_target): Update.
12095         * remote.c (remote_trace_init): Add 'self' argument.
12096
12097 2014-02-19  Tom Tromey  <[email protected]>
12098
12099         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12100         * target.c (target_fileio_readlink): Add argument.
12101         * remote.c (remote_hostio_readlink): Add 'self' argument.
12102         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12103
12104 2014-02-19  Tom Tromey  <[email protected]>
12105
12106         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12107         * target.c (target_fileio_unlink): Add argument.
12108         * remote.c (remote_hostio_unlink): Add 'self' argument.
12109         (remote_file_delete): Update.
12110         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12111
12112 2014-02-19  Tom Tromey  <[email protected]>
12113
12114         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12115         * target.c (target_fileio_close): Add argument.
12116         * remote.c (remote_hostio_close): Add 'self' argument.
12117         (remote_hostio_close_cleanup): Update.
12118         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12119         Update.
12120         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12121
12122 2014-02-19  Tom Tromey  <[email protected]>
12123
12124         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12125         * target.c (target_fileio_pread): Add argument.
12126         * remote.c (remote_hostio_pread): Add 'self' argument.
12127         (remote_bfd_iovec_pread, remote_file_get): Update.
12128         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12129
12130 2014-02-19  Tom Tromey  <[email protected]>
12131
12132         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12133         * target.c (target_fileio_pwrite): Add argument.
12134         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12135         (remote_file_put): Update.
12136         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12137
12138 2014-02-19  Tom Tromey  <[email protected]>
12139
12140         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12141         * target.c (target_fileio_open): Add argument.
12142         * remote.c (remote_hostio_open): Add 'self' argument.
12143         (remote_bfd_iovec_open): Add 'self' argument.
12144         (remote_file_put): Add 'self' argument.
12145         (remote_file_get): Add 'self' argument.
12146         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12147
12148 2014-02-19  Tom Tromey  <[email protected]>
12149
12150         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12151         Add argument.
12152         (target_can_run_breakpoint_commands): Add argument.
12153         * target.c (update_current_target): Update.
12154         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12155         argument.
12156         (remote_insert_breakpoint): Add 'self' argument.
12157         (remote_insert_hw_breakpoint): Add 'self' argument.
12158         (remote_can_run_breakpoint_commands): Add 'self' argument.
12159
12160 2014-02-19  Tom Tromey  <[email protected]>
12161
12162         * target.h (struct target_ops)
12163         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12164         (target_supports_evaluation_of_breakpoint_conditions): Add
12165         argument.
12166         * target.c (update_current_target): Update.
12167         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12168         argument.
12169         (remote_insert_breakpoint): Add 'self' argument.
12170         (remote_insert_hw_breakpoint): Add 'self' argument.
12171         (remote_supports_cond_breakpoints): Add 'self' argument.
12172
12173 2014-02-19  Tom Tromey  <[email protected]>
12174
12175         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12176         argument.
12177         (target_supports_string_tracing): Add argument.
12178         * target.c (update_current_target): Update.
12179         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12180
12181 2014-02-19  Tom Tromey  <[email protected]>
12182
12183         * target.h (struct target_ops)
12184         <to_supports_disable_randomization>: Add argument.
12185         * target.c (find_default_supports_disable_randomization): Add
12186         argument.
12187         (target_supports_disable_randomization): Add argument.
12188         (find_default_supports_disable_randomization): Add 'self'
12189         argument.
12190         * remote.c (extended_remote_supports_disable_randomization): Add
12191         'self' argument.
12192         (remote_supports_disable_randomization): Add 'self' argument.
12193         (extended_remote_create_inferior): Update.
12194         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12195         'self' argument.
12196
12197 2014-02-19  Tom Tromey  <[email protected]>
12198
12199         * target.h (struct target_ops)
12200         <to_supports_enable_disable_tracepoint>: Add argument.
12201         (target_supports_enable_disable_tracepoint): Add argument.
12202         * target.c (update_current_target): Update.
12203         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12204         argument.
12205
12206 2014-02-19  Tom Tromey  <[email protected]>
12207
12208         * target.h (struct target_ops) <to_supports_multi_process>: Add
12209         argument.
12210         (target_supports_multi_process): Add argument.
12211         * target.c (update_current_target): Update.
12212         * remote.c (remote_supports_multi_process): Add 'self' argument.
12213         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12214         argument.
12215         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12216         argument.
12217
12218 2014-02-19  Tom Tromey  <[email protected]>
12219
12220         * target.h (struct target_ops) <to_execution_direction>: Add
12221         argument.
12222         (target_execution_direction): Add argument.
12223         * target.c (default_execution_direction): Add 'self' argument.
12224         * record-full.c (record_full_execution_direction): Add 'self'
12225         argument.
12226
12227 2014-02-19  Tom Tromey  <[email protected]>
12228
12229         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12230         argument.
12231         (target_can_execute_reverse): Add argument.
12232         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12233         * record-full.c (record_full_can_execute_reverse): Add 'self'
12234         argument.
12235         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12236         argument.
12237
12238 2014-02-19  Tom Tromey  <[email protected]>
12239
12240         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12241         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12242         argument.
12243         (target_get_ada_task_ptid): Add argument.
12244         * target.c (update_current_target): Update.
12245         (default_get_ada_task_ptid): Add 'self' argument.
12246         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12247         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12248         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12249         argument.
12250         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12251         argument.
12252         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12253         argument.
12254         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12255         argument.
12256         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12257         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12258         argument.
12259
12260 2014-02-19  Tom Tromey  <[email protected]>
12261
12262         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12263         (target_goto_bookmark): Add argument.
12264         * target.c (dummy_goto_bookmark): Add 'self' argument.
12265         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12266
12267 2014-02-19  Tom Tromey  <[email protected]>
12268
12269         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12270         (target_get_bookmark): Add argument.
12271         * target.c (dummy_get_bookmark): Add 'self' argument.
12272         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12273
12274 2014-02-19  Tom Tromey  <[email protected]>
12275
12276         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12277         argument.
12278         (target_make_corefile_notes): Add argument.
12279         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12280         * procfs.c (procfs_make_note_section): Add 'self' argument.
12281         (procfs_make_note_section): Add 'self' argument.
12282         (procfs_make_note_section): Add 'self' argument.
12283         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12284         argument.
12285         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12286         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12287         * exec.c (exec_make_note_section): Add 'self' argument.
12288         (exec_make_note_section): Add 'self' argument.
12289
12290 2014-02-19  Tom Tromey  <[email protected]>
12291
12292         * target.h (struct target_ops) <to_find_memory_regions>: Add
12293         argument.
12294         (target_find_memory_regions): Add argument.
12295         * target.c (dummy_find_memory_regions): Add 'self' argument.
12296         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12297         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12298         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12299         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12300         * exec. (exec_do_find_memory_regions): New global.
12301         (exec_set_find_memory_regions): Rewrite.
12302         (exec_find_memory_regions): New function.
12303         (init_exec_ops): Use exec_find_memory_regions.
12304
12305 2014-02-19  Tom Tromey  <[email protected]>
12306
12307         * target.h (struct target_ops) <to_supports_non_stop>: Add
12308         argument.
12309         * target.c (find_default_supports_non_stop): Add argument.
12310         (target_supports_non_stop): Add argument.
12311         (find_default_supports_non_stop): Add 'self' argument.
12312         * remote.c (remote_supports_non_stop): Add 'self' argument.
12313         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12314
12315 2014-02-19  Tom Tromey  <[email protected]>
12316
12317         * target.h (struct target_ops) <to_log_command>: Add argument.
12318         (target_log_command): Add argument.
12319         * serial.h (serial_log_command): Add 'self' argument.
12320         * serial.c (serial_log_command): Add 'self' argument.
12321
12322 2014-02-19  Tom Tromey  <[email protected]>
12323
12324         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12325         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12326         argument.
12327         (target_pid_to_exec_file): Add argument.
12328         * target.c (debug_to_pid_to_exec_file): Add argument.
12329         (update_current_target): Update.
12330         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12331         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12332         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12333         (linux_handle_extended_wait): Update.
12334         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12335         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12336         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12337         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12338
12339 2014-02-19  Tom Tromey  <[email protected]>
12340
12341         * target.h (struct target_ops) <to_rcmd>: Add argument.
12342         (target_rcmd): Add argument.
12343         * target.c (debug_to_rcmd): Add argument.
12344         (update_current_target, do_monitor_command): Update.
12345         * remote.c (remote_rcmd): Add 'self' argument.
12346         * monitor.c (monitor_rcmd): Add 'self' argument.
12347
12348 2014-02-19  Tom Tromey  <[email protected]>
12349
12350         * windows-nat.c (windows_stop): Add 'self' argument.
12351         * target.h (struct target_ops) <to_stop>: Add argument.
12352         * target.c (target_stop): Add argument.
12353         (debug_to_stop): Add argument.
12354         (update_current_target): Update.
12355         * remote.c (remote_stop): Add 'self' argument.
12356         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12357         (gdbsim_cntrl_c): Update.
12358         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12359         * procfs.c (procfs_stop): Add 'self' argument.
12360         * nto-procfs.c (procfs_stop): Add 'self' argument.
12361         * monitor.c (monitor_stop): Add 'self' argument.
12362         (monitor_open): Update.
12363         * linux-nat.c (linux_nat_stop): Add argument.
12364         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12365         * gnu-nat.c (gnu_stop): Add 'self' argument.
12366         * darwin-nat.c (darwin_stop): Add 'self' argument.
12367
12368 2014-02-19  Tom Tromey  <[email protected]>
12369
12370         * target.h (struct target_ops) <to_thread_name>: Add argument.
12371         * target.c (target_thread_name): Add argument.
12372         (update_current_target): Update.
12373         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12374
12375 2014-02-19  Tom Tromey  <[email protected]>
12376
12377         * target.h (struct target_ops) <to_extra_thread_info>: Add
12378         argument.
12379         (target_extra_thread_info): Add argument.
12380         * target.c (update_current_target): Update.
12381         * remote.c (remote_threads_extra_info): Add 'self' argument.
12382         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12383         argument.
12384         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12385         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12386         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12387         argument.
12388         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12389         argument.
12390         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12391         argument.
12392         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12393         argument.
12394
12395 2014-02-19  Tom Tromey  <[email protected]>
12396
12397         * target.h (struct target_ops) <to_program_signals>: Add argument.
12398         * target.c (target_program_signals): Add argument.
12399         * remote.c (remote_program_signals): Add 'self' argument.
12400
12401 2014-02-19  Tom Tromey  <[email protected]>
12402
12403         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12404         * target.c (target_pass_signals): Add argument.
12405         * remote.c (remote_pass_signals): Add 'self' argument.
12406         (remote_start_remote): Update.
12407         * procfs.c (procfs_pass_signals): Add 'self' argument.
12408         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12409         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12410         (linux_nat_create_inferior, linux_nat_attach): Update.
12411
12412 2014-02-19  Tom Tromey  <[email protected]>
12413
12414         * windows-nat.c (windows_can_run): Add 'self' argument.
12415         * target.h (struct target_ops) <to_can_run>: Add argument.
12416         (target_can_run): Add argument.
12417         * target.c (debug_to_can_run): Add argument.
12418         (update_current_target): Update.
12419         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12420         * inf-child.c (inf_child_can_run): Add 'self' argument.
12421         * go32-nat.c (go32_can_run): Add 'self' argument.
12422
12423 2014-02-19  Tom Tromey  <[email protected]>
12424
12425         * target.h (struct target_ops) <to_has_exited>: Add argument.
12426         (target_has_exited): Add argument.
12427         * target.c (debug_to_has_exited): Add argument.
12428         (update_current_target): Update.
12429
12430 2014-02-19  Tom Tromey  <[email protected]>
12431
12432         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12433         argument.
12434         (target_set_syscall_catchpoint): Add argument.
12435         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12436         argument.
12437         * target.c (update_current_target): Update.
12438
12439 2014-02-19  Tom Tromey  <[email protected]>
12440
12441         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12442         argument.
12443         (target_remove_exec_catchpoint): Add argument.
12444         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12445         (update_current_target): Update.
12446         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12447         argument.
12448
12449 2014-02-19  Tom Tromey  <[email protected]>
12450
12451         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12452         argument.
12453         (target_insert_exec_catchpoint): Add argument.
12454         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12455         (update_current_target): Update.
12456         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12457         argument.
12458
12459 2014-02-19  Tom Tromey  <[email protected]>
12460
12461         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12462         argument.
12463         (target_remove_vfork_catchpoint): Add argument.
12464         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12465         (update_current_target): Update.
12466         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12467         argument.
12468
12469 2014-02-19  Tom Tromey  <[email protected]>
12470
12471         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12472         argument.
12473         (target_insert_vfork_catchpoint): Add argument.
12474         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12475         (update_current_target): Update.
12476         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12477         argument.
12478
12479 2014-02-19  Tom Tromey  <[email protected]>
12480
12481         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12482         argument.
12483         (target_remove_fork_catchpoint): Add argument.
12484         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12485         (update_current_target): Update.
12486         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12487         argument.
12488
12489 2014-02-19  Tom Tromey  <[email protected]>
12490
12491         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12492         argument.
12493         (target_insert_fork_catchpoint): Add argument.
12494         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12495         (update_current_target): Update.
12496         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12497         argument.
12498
12499 2014-02-19  Tom Tromey  <[email protected]>
12500
12501         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12502         argument.
12503         (target_post_startup_inferior): Add argument.
12504         * target.c (debug_to_post_startup_inferior): Add argument.
12505         (update_current_target): Update.
12506         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12507         argument.
12508         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12509         argument.
12510         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12511         argument.
12512         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12513         argument.
12514         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12515         'self' argument.
12516         (super_post_startup_inferior): Likewise.
12517         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12518         'self' argument.
12519         (super_post_startup_inferior): Likewise.
12520         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12521         Add 'self' argument.
12522         (super_post_startup_inferior): Likewise.
12523
12524 2014-02-19  Tom Tromey  <[email protected]>
12525
12526         * target.h (struct target_ops) <to_load>: Add argument.
12527         * target.c (target_load): Add argument.
12528         (debug_to_load): Add argument.
12529         (update_current_target): Update.
12530         * remote.c (remote_load): Add 'self' argument.
12531         * remote-sim.c (gdbsim_load): Add 'self' argument.
12532         * remote-mips.c (mips_load): Add 'self' argument.
12533         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12534         * monitor.c (monitor_load): Add 'self' argument.
12535         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12536
12537 2014-02-19  Tom Tromey  <[email protected]>
12538
12539         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12540         (target_terminal_info): Add argument.
12541         * target.c (debug_to_terminal_info): Add argument.
12542         (default_terminal_info): Likewise.
12543         * inflow.c (child_terminal_info): Add 'self' argument.
12544         * inferior.h (child_terminal_info): Add 'self' argument.
12545         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12546
12547 2014-02-19  Tom Tromey  <[email protected]>
12548
12549         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12550         argument.
12551         (target_terminal_save_ours): Add argument.
12552         * target.c (debug_to_terminal_save_ours): Add argument.
12553         (update_current_target): Update.
12554         * inflow.c (terminal_save_ours): Add 'self' argument.
12555         * inferior.h (terminal_save_ours): Add 'self' argument.
12556
12557 2014-02-19  Tom Tromey  <[email protected]>
12558
12559         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12560         (target_terminal_ours): Add argument.
12561         * target.c (debug_to_terminal_ours): Add argument.
12562         (update_current_target): Update.
12563         * remote.c (remote_terminal_ours): Add 'self' argument.
12564         (remote_close): Update.
12565         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12566         * inflow.c (terminal_ours): Add 'self' argument.
12567         * inferior.h (terminal_ours): Add 'self' argument.
12568         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12569
12570 2014-02-19  Pedro Alves  <[email protected]>
12571             Tom Tromey  <[email protected]>
12572
12573         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12574         argument.
12575         (target_terminal_ours_for_output): Add argument.
12576         * target.c (debug_to_terminal_ours_for_output): Add argument.
12577         (update_current_target): Update.
12578         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12579         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12580         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12581
12582 2014-02-19  Tom Tromey  <[email protected]>
12583
12584         * target.h (struct target_ops) <to_terminal_inferior>: Add
12585         argument.
12586         * target.c (target_terminal_inferior): Add argument.
12587         (update_current_target): Update.
12588         * remote.c (remote_terminal_inferior): Add 'self' argument.
12589         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12590         * inflow.c (terminal_inferior): Add 'self' argument.
12591         * inferior.h (terminal_inferior): Add 'self' argument.
12592         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12593         (go32_terminal_inferior): Add 'self' argument.
12594
12595 2014-02-19  Tom Tromey  <[email protected]>
12596
12597         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12598         (target_terminal_init): Add argument.
12599         * target.c (debug_to_terminal_init): Add argument.
12600         (update_current_target): Update.
12601         * inflow.c (terminal_init_inferior): Add 'self' argument.
12602         * inferior.h (terminal_init_inferior): Add 'self' argument.
12603         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12604         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12605
12606 2014-02-19  Tom Tromey  <[email protected]>
12607
12608         * target.h (struct target_ops)
12609         <to_can_accel_watchpoint_condition>: Add argument.
12610         (target_can_accel_watchpoint_condition): Add argument.
12611         * target.c (debug_to_can_accel_watchpoint_condition): Add
12612         argument.
12613         (update_current_target): Update.
12614         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12615         'self' argument.
12616
12617 2014-02-19  Tom Tromey  <[email protected]>
12618
12619         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12620         Add argument.
12621         (target_region_ok_for_hw_watchpoint): Add argument.
12622         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12623         (default_region_ok_for_hw_watchpoint): Add argument.
12624         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12625         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12626         argument.
12627         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12628         argument.
12629         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12630         argument.
12631         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12632         'self' argument.
12633         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12634         'self' argument.
12635         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12636         'self' argument.
12637         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12638         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12639         'self' argument.
12640         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12641         Add 'self' argument.
12642
12643 2014-02-19  Tom Tromey  <[email protected]>
12644
12645         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12646         argument.
12647         (target_insert_watchpoint): Add argument.
12648         * target.c (debug_to_insert_watchpoint): Add argument.
12649         (update_current_target): Update.
12650         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12651         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12652         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12653         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12654         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12655         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12656         argument.
12657         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12658         (procfs_insert_hw_watchpoint): Add 'self' argument.
12659         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12660         argument.
12661         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12662         argument.
12663         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12664         argument.
12665         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12666         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12667         argument.
12668         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12669         'self' argument.
12670
12671 2014-02-19  Tom Tromey  <[email protected]>
12672
12673         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12674         argument.
12675         (target_remove_watchpoint): Add argument.
12676         * target.c (debug_to_remove_watchpoint): Add argument.
12677         (update_current_target): Update.
12678         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12679         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12680         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12681         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12682         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12683         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12684         argument.
12685         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12686         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12687         argument.
12688         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12689         argument.
12690         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12691         argument.
12692         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12693         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12694         argument.
12695         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12696         'self' argument.
12697
12698 2014-02-19  Tom Tromey  <[email protected]>
12699
12700         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12701         argument.
12702         (target_remove_hw_breakpoint): Add argument.
12703         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12704         (update_current_target): Update.
12705         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12706         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12707         argument.
12708         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12709         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12710         argument.
12711         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12712         'self' argument.
12713
12714 2014-02-19  Tom Tromey  <[email protected]>
12715
12716         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12717         argument.
12718         (target_insert_hw_breakpoint): Add argument.
12719         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12720         (update_current_target): Update.
12721         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12722         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12723         argument.
12724         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12725         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12726         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12727         argument.
12728         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12729         'self' argument.
12730
12731 2014-02-19  Tom Tromey  <[email protected]>
12732
12733         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12734         argument.
12735         (target_can_use_hardware_watchpoint): Add argument.
12736         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12737         (update_current_target): Update.
12738         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12739         argument.
12740         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12741         argument.
12742         * remote.c (remote_check_watch_resources): Add 'self' argument.
12743         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12744         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12745         argument.
12746         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12747         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12748         argument.
12749         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12750         argument.
12751         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12752         argument.
12753         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12754         argument.
12755         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12756         argument.
12757         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12758         argument.
12759         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12760         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12761         argument.
12762         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12763         'self' argument.
12764
12765 2014-02-19  Tom Tromey  <[email protected]>
12766
12767         * target.h (struct target_ops) <to_post_attach>: Add argument.
12768         (target_post_attach): Add argument.
12769         * target.c (debug_to_post_attach): Add argument.
12770         (update_current_target): Update.
12771         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12772         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12773         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12774         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12775         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12776
12777 2014-02-19  Tom Tromey  <[email protected]>
12778
12779         * windows-nat.c (windows_close): Add 'self' argument.
12780         * tracepoint.c (tfile_close): Add 'self' argument.
12781         * target.h (struct target_ops) <to_close>: Add argument.
12782         * target.c (target_close): Add argument.
12783         (update_current_target): Update.
12784         * remote.c (remote_close): Add 'self' argument.
12785         * remote-sim.c (gdbsim_close): Add 'self' argument.
12786         * remote-mips.c (mips_close): Add 'self' argument.
12787         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12788         * record-full.c (record_full_close): Add 'self' argument.
12789         * record-btrace.c (record_btrace_close): Add 'self' argument.
12790         * monitor.h (monitor_close): Add 'self' argument.
12791         * monitor.c (monitor_close): Add 'self' argument.
12792         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12793         * linux-nat.c (linux_nat_close): Add argument.
12794         * go32-nat.c (go32_close): Add 'self' argument.
12795         * exec.c (exec_close_1): Add 'self' argument.
12796         * ctf.c (ctf_close): Add 'self' argument.
12797         * corelow.c (core_close): Add 'self' argument.
12798         (core_close_cleanup): Update.
12799         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12800         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12801
12802 2014-02-19  Tom Tromey  <[email protected]>
12803
12804         * remote.c (remote_load): New function.
12805         (init_remote_ops): Use it.
12806
12807 2014-02-19  Tom Tromey  <[email protected]>
12808
12809         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12810         argument.
12811         * common/linux-btrace.h (linux_supports_btrace): Update.
12812         * remote.c (remote_supports_btrace): Add "self" argument.
12813         * target-delegates.c: Rebuild.
12814         * target.c (target_supports_btrace): Remove.
12815         * target.h (struct target_ops) <to_supports_btrace>: Add
12816         target_ops argument.
12817         (target_supports_btrace): New define.
12818
12819 2014-02-19  Tom Tromey  <[email protected]>
12820
12821         * record-full.c (record_full_beneath_to_resume_ops)
12822         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12823         (record_full_beneath_to_wait)
12824         (record_full_beneath_to_store_registers_ops)
12825         (record_full_beneath_to_store_registers)
12826         (record_full_beneath_to_xfer_partial_ops)
12827         (record_full_beneath_to_xfer_partial)
12828         (record_full_beneath_to_insert_breakpoint_ops)
12829         (record_full_beneath_to_insert_breakpoint)
12830         (record_full_beneath_to_remove_breakpoint_ops)
12831         (record_full_beneath_to_remove_breakpoint)
12832         (record_full_beneath_to_stopped_by_watchpoint)
12833         (record_full_beneath_to_stopped_data_address)
12834         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12835         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12836         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12837         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12838         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12839         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12840         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12841         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12842         (record_full_resume, record_full_wait_1)
12843         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12844         (record_full_store_registers, record_full_xfer_partial)
12845         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12846         (record_full_async, record_full_core_xfer_partial): Use target
12847         delegation.
12848         * target-delegates.c: Rebuild.
12849         * target.c (current_xfer_partial): Remove.
12850         (update_current_target): Do not INHERIT or de_fault
12851         to_insert_breakpoint, to_remove_breakpoint,
12852         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12853         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12854         (default_xfer_partial): Simplify.
12855         (current_xfer_partial): Remove.
12856         (target_wait, target_resume): Simplify.
12857         (find_default_can_async_p, find_default_is_async_p): Update.
12858         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12859         to_xfer_partial, to_stopped_by_watchpoint,
12860         to_stopped_data_address.
12861         (target_store_registers): Simplify.
12862         (forward_target_remove_breakpoint)
12863         (forward_target_insert_breakpoint): Remove.
12864         (target_remove_breakpoint, target_insert_breakpoint)
12865         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12866         * target.h (struct target_ops) <to_resume, to_wait,
12867         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12868         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12869         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12870         markup.
12871         (forward_target_remove_breakpoint)
12872         (forward_target_insert_breakpoint): Remove.
12873         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12874         directly.
12875         (record_btrace_insert_breakpoint): Delegate directly.
12876
12877 2014-02-19  Tom Tromey  <[email protected]>
12878
12879         PR build/7701:
12880         * target-delegates.c: New file.
12881         * target.c: Include target-delegates.c.
12882         (init_dummy_target): Call install_dummy_methods.
12883         (complete_target_initialization): Call install_delegators.
12884         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12885         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12886         * make-target-delegates: New file.
12887
12888 2014-02-19  Tom Tromey  <[email protected]>
12889
12890         * record.c (find_record_target): Use find_target_at.
12891         * target.c (find_target_at): New function.
12892         * target.h (find_target_at): Declare.
12893
12894 2014-02-19  Tom Tromey  <[email protected]>
12895
12896         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12897         Add 'ops' argument.
12898         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12899         'ops' argument.
12900         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12901         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12902         'ops' argument.
12903         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12904         argument.
12905         * linux-nat.c (save_sigtrap): Update.
12906         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12907         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12908         (linux_nat_close): Update.
12909         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12910         argument.
12911         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12912         argument.
12913         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12914         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12915         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12916         (tmp_to_async): Add 'ops' argument.
12917         (record_full_stopped_by_watchpoint, record_full_async)
12918         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12919         argument.
12920         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12921         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12922         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12923         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12924         (remote_is_async_p, remote_async): Add 'ops' argument.
12925         (remote_stopped_data_address): Update.
12926         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12927         * target.c (update_current_target)
12928         (find_default_can_async_p, find_default_is_async_p): Update.
12929         (init_dummy_target): Update.
12930         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12931         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12932         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12933         (target_can_async_p, target_is_async_p, target_async)
12934         (target_stopped_by_watchpoint): Update.
12935
12936 2014-02-19  Yao Qi  <[email protected]>
12937
12938         PR gdb/16220
12939         * gdbarch.sh: Remove startup_gdbarch.
12940         * gdbarch.c: Regenerated.
12941         * gdbarch.h: Likewise.
12942
12943 2014-02-17  Kevin Buettner  <[email protected]>
12944
12945         * rl78-tdep.c (rl78_g10_register_name): New function.
12946         (rl78_return_value): Add g10 support.
12947         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12948         g10.
12949
12950 2014-02-17  Doug Evans  <[email protected]>
12951
12952         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12953         (SUBDIR_GUILE_SRCS): Ditto.
12954         (scm-gsmob.o): Ditto.
12955
12956 2014-02-17  Yao Qi  <[email protected]>
12957
12958         * gnu-nat.c (ILL_RPC): Declare defined function.
12959
12960 2014-02-17  Yao Qi  <[email protected]>
12961
12962         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12963         mach_msg_type_number_t.
12964         (gnu_write_inferior): Likewise.
12965
12966 2014-02-17  Yao Qi  <[email protected]>
12967
12968         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12969         in format string.
12970         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12971         (inf_validate_procs, inf_signal): Likewise.
12972         (S_exception_raise_request): Likewise.
12973         (do_mach_notify_dead_name): Likewise.
12974         (steal_exc_port): Likewise.
12975         (gnu_read_inferior): Change 'copy_count''s type to
12976         mach_msg_type_number_t.
12977         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12978         format string.
12979
12980 2014-02-16  Thomas Schwinge  <[email protected]>
12981
12982         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12983         flag.  Adjust all users; in particular...
12984         (gnu_wait): ..., don't decrement its value in here...
12985         (gnu_create_inferior): ..., and instead set the flag in here,
12986         around the startup_inferior call, and call that one with
12987         START_INFERIOR_TRAPS_EXPECTED.
12988
12989         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12990         (ILL_RPC): ... new macro.
12991         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12992         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12993         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12994         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12995         functions with ILL_RPC macro.
12996         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12997         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12998         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12999         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13000         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13001         (S_proc_getlogin_reply, S_proc_getsid_reply)
13002         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13003         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13004         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13005         (S_proc_getnports_reply, S_proc_is_important_reply)
13006         (S_proc_get_code_reply): New stub functions, generated with
13007         ILL_RPC macro.
13008
13009         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13010         collected the type check structures.
13011
13012         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13013
13014 2014-02-14  Doug Evans  <[email protected]>
13015
13016         * target.c (target_write_partial): Fix result type.
13017
13018 2014-02-14  Jose E. Marchesi  <[email protected]>
13019
13020         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13021         the proper offsets to access fpregset_t.
13022
13023 2014-02-13  Sanimir Agovic  <[email protected]>
13024
13025         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13026         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13027         * h8300-tdep.c (setmachinelist): Remove global.
13028         * hppa-tdep.c (hppa_sigtramp): Remove global.
13029         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13030         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13031         * ravenscar-thread.c (update_target_observer): Remove global.
13032         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13033
13034 2014-02-12  Tom Tromey  <[email protected]>
13035
13036         * common/rsp-low.c: Update comments.
13037         * common/rsp-low.h: Update comments.
13038
13039 2014-02-12  Tom Tromey  <[email protected]>
13040
13041         * common/rsp-low.c (convert_ascii_to_int): Remove.
13042         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13043
13044 2014-02-12  Tom Tromey  <[email protected]>
13045
13046         * common/rsp-low.h (unhexify): Don't declare.
13047         * common/rsp-low.c (unhexify): Remove.
13048
13049 2014-02-12  Tom Tromey  <[email protected]>
13050
13051         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13052         * common/rsp-low.c (convert_int_to_ascii): Remove.
13053
13054 2014-02-12  Tom Tromey  <[email protected]>
13055
13056         * common/rsp-low.h (hexify): Don't declare.
13057         * common/rsp-low.c (hexify): Remove.
13058
13059 2014-02-12  Tom Tromey  <[email protected]>
13060
13061         * common/rsp-low.c (hexify): Never take strlen of argument.
13062
13063 2014-02-12  Tom Tromey  <[email protected]>
13064
13065         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13066         * remote.c (extended_remote_run, remote_rcmd)
13067         (remote_download_trace_state_variable, remote_save_trace_data)
13068         (remote_set_trace_notes): Update.
13069         * tracepoint.c (encode_source_string, tfile_write_status)
13070         (tfile_write_uploaded_tsv): Update.
13071
13072 2014-02-12  Tom Tromey  <[email protected]>
13073
13074         * tracepoint.c: Include rsp-low.h.
13075         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13076         * remote.c: Include rsp-low.h.
13077         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13078         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13079         (remote_unescape_input): Move to common/rsp-low.c.
13080         * common/rsp-low.h: New file.
13081         * common/rsp-low.c: New file.
13082         * Makefile.in (SFILES): Add common/rsp-low.c.
13083         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13084         (COMMON_OBS): Add rsp-low.o.
13085         (rsp-low.o): New target.
13086
13087 2014-02-12  Tom Tromey  <[email protected]>
13088
13089         * utils.h: Include print-utils.h.
13090         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13091         (int_string, core_addr_to_string, core_addr_to_string_nz)
13092         (hex_string, hex_string_custom): Don't declare.
13093         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13094         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13095         (hex_string_custom, int_string, core_addr_to_string)
13096         (core_addr_to_string_nz, host_address_to_string): Move to
13097         common/print-utils.c.
13098         * common/print-utils.h: New file.
13099         * common/print-utils.c: New file
13100         * Makefile.in (SFILES): Add common/print-utils.c.
13101         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13102         (COMMON_OBS): Add print-utils.o.
13103         (print-utils.o): New target.
13104
13105 2014-02-12  Tom Tromey  <[email protected]>
13106
13107         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13108
13109 2014-02-12  Mark Kettenis  <[email protected]>
13110
13111         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13112
13113 2014-02-12  Mark Kettenis  <[email protected]>
13114
13115         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13116         if a PT_IO ptrace request returns sucessfully but indicates that 0
13117         bytes were transferred.
13118
13119 2014-02-12  Pedro Alves  <[email protected]>
13120             Kevin Buettner <[email protected]>
13121
13122         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13123         TYPE_INSTANCE_FLAG_CODE_SPACE.
13124
13125 2014-02-12  Pedro Alves  <[email protected]>
13126
13127         * h8300-tdep.c (pseudo_from_raw_register)
13128         (raw_from_pseudo_register): New functions.
13129         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13130         them.
13131
13132 2014-02-12  Pedro Alves  <[email protected]>
13133
13134         * h8300-tdep.c (h8300_register_sim_regno): New function.
13135         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13136         gdbarch_register_sim_regno hook.
13137
13138 2014-02-12  Sanimir Agovic  <[email protected]>
13139
13140         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13141
13142 2014-02-12  Sanimir Agovic  <[email protected]>
13143
13144         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13145
13146 2014-02-12  Mark Kettenis  <[email protected]>
13147
13148         * obsd-tdep.h (obsd_init_abi): New prototype.
13149         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13150         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13151         (obsd_init_abi): New functions.
13152         * i386obsd-tdep.c: Include "obsd-tdep.h".
13153         (i386obsd_init_abi): Call obsd_init_abi.
13154         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13155         (amd64obsd_init_abi): Call obsd_init_abi.
13156         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13157         obsd-tdep.c to gdb_target_obs.
13158
13159 2014-02-11  Jose E. Marchesi  <[email protected]>
13160
13161         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13162         double float arguments to 16-byte in the argument slots.
13163
13164 2014-02-11  Doug Evans  <[email protected]>
13165
13166         * configure.ac: Don't crash if pkg-config is not found and guile
13167         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13168         in guile checks.
13169         * configure: Regenerate.
13170
13171 2014-02-11  Yao Qi  <[email protected]>
13172
13173         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13174         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13175         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13176         * gnu-nat.c (gnu_xfer_memory): Likewise.
13177         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13178         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13179         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13180         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13181
13182 2014-02-11  Yao Qi  <[email protected]>
13183
13184         * target.h (enum target_xfer_error): Rename to ...
13185         (enum target_xfer_status): ... it.  New.  All users updated.
13186         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13187         New.
13188         (TARGET_XFER_STATUS_ERROR_P): New macro.
13189         (target_xfer_error_to_string): Remove declaration.
13190         (target_xfer_status_to_string): Declare.
13191         (target_xfer_partial_ftype): Adjust it.
13192         (struct target_ops) <to_xfer_partial>: Return
13193         target_xfer_status.  Add argument xfered_len.  Update
13194         comments.
13195         * target.c (target_xfer_error_to_string): Rename to ...
13196         (target_xfer_status_to_string): ... it.  New.  All callers
13197         updated.
13198         (target_read_live_memory): Likewise.  Call target_xfer_partial
13199         instead of target_read.
13200         (memory_xfer_live_readonly_partial): Return
13201         target_xfer_status.  Add argument xfered_len.
13202         (raw_memory_xfer_partial): Likewise.
13203         (memory_xfer_partial_1): Likewise.
13204         (memory_xfer_partial): Likewise.
13205         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13206         properly.  Update debug message.
13207         (default_xfer_partial, current_xfer_partial): Likewise.
13208         (target_write_partial): Likewise.
13209         (target_read_partial): Likewise.  All callers updated.
13210         (read_whatever_is_readable): Likewise.
13211         (target_write_with_progress): Likewise.
13212         (target_read_alloc_1): Likewise.
13213
13214         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13215         * auxv.c (procfs_xfer_auxv): Likewise.
13216         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13217         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13218         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13219         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13220         * corefile.c (read_memory): Adjust.
13221         * corelow.c (core_xfer_partial): Likewise.
13222         * ctf.c (ctf_xfer_partial): Likewise.
13223         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13224         updated.
13225         (darwin_xfer_partial): Likewise.
13226         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13227         callers updated.
13228         (exec_xfer_partial): Likewise.
13229         * exec.h (section_table_xfer_memory_partial): Update
13230         declaration.
13231         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13232         negative.
13233         (gnu_xfer_partial): Likewise.
13234         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13235         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13236         (ia64_hpux_xfer_solib_got): Likewise.
13237         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13238         type of 'partial_len' to ULONGEST.
13239         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13240         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13241         (linux_nat_xfer_partial): Likewise.
13242         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13243         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13244         * monitor.c (monitor_xfer_memory): Likewise.
13245         (monitor_xfer_partial): Likewise.
13246         * procfs.c (procfs_xfer_partial): Likewise.
13247         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13248         * record-full.c (record_full_xfer_partial): Likewise.
13249         (record_full_core_xfer_partial): Likewise.
13250         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13251         (gdbsim_xfer_partial): Likewise.
13252         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13253         updated.
13254         (remote_write_bytes, remote_read_bytes): Likewise.  All
13255         callers updated.
13256         (remote_flash_erase): Likewise.  All callers updated.
13257         (remote_write_qxfer): Likewise.  All callers updated.
13258         (remote_read_qxfer): Likewise.  All callers updated.
13259         (remote_xfer_partial): Likewise.
13260         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13261         (rs6000_xfer_shared_libraries): Likewise.
13262         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13263         (sol_thread_xfer_partial): Likewise.
13264         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13265         (sparc_xfer_partial): Likewise.
13266         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13267         updated.
13268         (spu_xfer_partial): Likewise.
13269         * spu-multiarch.c (spu_xfer_partial): Likewise.
13270         * tracepoint.c (tfile_xfer_partial): Likewise.
13271         * windows-nat.c (windows_xfer_memory): Likewise.
13272         (windows_xfer_shared_libraries): Likewise.
13273         (windows_xfer_partial): Likewise.
13274         * valprint.c: Replace 'target_xfer_error' with
13275         'target_xfer_status' in comments.
13276
13277 2014-02-11  Simon Marchi  <[email protected]>  (tiny patch)
13278
13279         Checked in by Joel Brobecker <[email protected]>.
13280         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13281
13282 2014-02-11  Joel Brobecker  <[email protected]>
13283
13284         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13285         function parameters.
13286
13287 2014-02-10  Will Newton  <[email protected]>
13288
13289         * elfread.c (elf_rel_plt_read): Look for a .got section if
13290         looking up .got.plt fails.
13291         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13292         on address passed to elf_gnu_ifunc_record_cache.
13293         (elf_gnu_ifunc_resolve_addr): Likewise.
13294         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13295
13296 2014-02-10  Jose E. Marchesi  <[email protected]>
13297
13298         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13299         (X_RETTURN): New macro.
13300         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13301
13302         * sparc64-tdep.c (sparc64_init_abi): Hook
13303         sparc_in_function_epilogue_p.
13304
13305 2014-02-10  Gary Benson  <[email protected]>
13306
13307         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13308         Rename name_matcher to symbol_matcher.
13309
13310 2014-02-10  Gary Benson  <[email protected]>
13311
13312         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13313         Use expand_symtabs_file_matcher_ftype and
13314         expand_symtabs_symbol_matcher_ftype.
13315
13316 2014-02-10  Joel Brobecker  <[email protected]>
13317
13318         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13319         (struct ada_symbol_cache): New.
13320         (ada_free_symbol_cache): Forward declare.
13321         (struct ada_pspace_data): New.
13322         (ada_pspace_data_handle): New static global.
13323         (get_ada_pspace_data, ada_pspace_data_cleanup)
13324         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13325         (cache_space, cache): Delete, now folded inside struct
13326         ada_pspace_data.
13327         (ada_get_symbol_cache): New function.
13328         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13329         implementation.
13330         (_initialize_ada_language): Remove initialization of cache_space.
13331         Move call to observer_attach_inferior_exit up, grouping it
13332         with the other observer registrations inside this function.
13333         Rename command to be more general.  Add call to
13334         register_program_space_data_with_cleanup.
13335
13336 2014-02-10  Joel Brobecker  <[email protected]>
13337
13338         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13339         ada_new_objfile_observer.
13340         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13341         (_initialize_tasks): Update uses of ada_new_objfile_observer
13342         and ada_tasks_normal_stop_observer.
13343
13344 2014-02-10  Joel Brobecker  <[email protected]>
13345
13346         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13347         returned by the 'Length attribute to integer.
13348
13349 2014-02-10  Joel Brobecker  <[email protected]>
13350
13351         * ada-lang.c (_initialize_ada_language): Initialize
13352         cache_space obstack.
13353
13354 2014-02-10  Joel Brobecker  <[email protected]>
13355
13356         * ada-lang.c (HASH_SIZE): New macro.
13357         (struct cache_entry): New type.
13358         (cache_space, cache): New static globals.
13359         (ada_clear_symbol_cache, find_entry): New functions.
13360         (lookup_cached_symbol, cache_symbol): Implement.
13361         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13362         (_initialize_ada_language): Attach ada_new_objfile_observer
13363         and ada_free_objfile_observer.
13364
13365 2014-02-10  Joel Brobecker  <[email protected]>
13366
13367         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13368         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13369         struct block * parameter.
13370         (ada_lookup_symbol_list_worker): Constify local variable "block".
13371         Remove cast which is no longer necessary.
13372
13373 2014-02-10  Doug Evans  <[email protected]>
13374
13375         Add Guile as an extension language.
13376         * NEWS: Mention Guile scripting.
13377         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13378         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13379         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13380         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13381         (CLIBS): Add GUILE_LIBS.
13382         (install-guile): New rule.
13383         (guile.o): New rule.
13384         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13385         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13386         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13387         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13388         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13389         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13390         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13391         * configure.ac: New option --with-guile.
13392         * configure: Regenerate.
13393         * config.in: Regenerate.
13394         * auto-load.c: Remove #include "python/python.h".  Add #include
13395         "gdb/section-scripts.h".
13396         (source_section_scripts): Handle Guile scripts.
13397         (_initialize_auto_load): Add name of Guile objfile script to
13398         scripts-directory help text.
13399         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13400         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13401         (struct breakpoint): New member scm_bp_object.
13402         * defs.h (enum command_control_type): New value guile_control.
13403         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13404         "extension.h".
13405         (show_user): Update comment.
13406         (_initialize_cli_cmds): Update help text for "show user".  Update help
13407         text for max-user-call-depth.
13408         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13409         "extension.h".
13410         (multi_line_command_p): Add guile_control.
13411         (print_command_lines): Handle guile_control.
13412         (execute_control_command, recurse_read_control_structure): Ditto.
13413         (process_next_line): Recognize "guile" commands.
13414         * disasm.c (gdb_disassemble_info): Make non-static.
13415         * disasm.h: #include "dis-asm.h".
13416         (struct gdbarch): Add forward decl.
13417         (gdb_disassemble_info): Declare.
13418         * extension.c: #include "guile/guile.h".
13419         (extension_languages): Add guile.
13420         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13421         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13422         * gdbtypes.c (get_unsigned_type_max): New function.
13423         (get_signed_type_minmax): New function.
13424         * gdbtypes.h (get_unsigned_type_max): Declare.
13425         (get_signed_type_minmax): Declare.
13426         * guile/README: New file.
13427         * guile/guile-internal.h: New file.
13428         * guile/guile.c: New file.
13429         * guile/guile.h: New file.
13430         * guile/scm-arch.c: New file.
13431         * guile/scm-auto-load.c: New file.
13432         * guile/scm-block.c: New file.
13433         * guile/scm-breakpoint.c: New file.
13434         * guile/scm-disasm.c: New file.
13435         * guile/scm-exception.c: New file.
13436         * guile/scm-frame.c: New file.
13437         * guile/scm-gsmob.c: New file.
13438         * guile/scm-iterator.c: New file.
13439         * guile/scm-lazy-string.c: New file.
13440         * guile/scm-math.c: New file.
13441         * guile/scm-objfile.c: New file.
13442         * guile/scm-ports.c: New file.
13443         * guile/scm-pretty-print.c: New file.
13444         * guile/scm-safe-call.c: New file.
13445         * guile/scm-string.c: New file.
13446         * guile/scm-symbol.c: New file.
13447         * guile/scm-symtab.c: New file.
13448         * guile/scm-type.c: New file.
13449         * guile/scm-utils.c: New file.
13450         * guile/scm-value.c: New file.
13451         * guile/lib/gdb.scm: New file.
13452         * guile/lib/gdb/boot.scm: New file.
13453         * guile/lib/gdb/experimental.scm: New file.
13454         * guile/lib/gdb/init.scm: New file.
13455         * guile/lib/gdb/iterator.scm: New file.
13456         * guile/lib/gdb/printing.scm: New file.
13457         * guile/lib/gdb/types.scm: New file.
13458         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13459         (VPATH): Add $(GUILE_SRCDIR).
13460         (GUILE_DIR): New variable.
13461         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13462         (all): Add stamp-guile dependency.
13463         (stamp-guile): New rule.
13464         (clean-guile, install-guile, uninstall-guile): New rules.
13465         (install-only): Add install-guile dependency.
13466         (uninstall): Add uninstall-guile dependency.
13467         (clean): Add clean-guile dependency.
13468
13469 2014-02-09  Doug Evans  <[email protected]>
13470
13471         Revert this patch (which I approved, mea culpa).
13472
13473         2014-02-08  Mark Kettenis  <[email protected]>
13474
13475         * Makefile.in (all-lib): Remove.
13476         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13477
13478 2014-02-09  Jan Kratochvil  <[email protected]>
13479
13480         Fix Python stack corruption.
13481         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13482         gdb_py_longest.
13483
13484 2014-02-08  Mark Kettenis  <[email protected]>
13485
13486         * Makefile.in (all-lib): Remove.
13487         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13488
13489 2014-02-07  Doug Evans  <[email protected]>
13490
13491         * extension-priv.h (extension_language_script_ops): Add comment.
13492         (extension_language_ops): Add comment.
13493         (active_ext_lang_state): Fix typo in comment.
13494
13495 2014-02-07  Pedro Alves  <[email protected]>
13496
13497         PR breakpoints/16292
13498         * infrun.c (handle_signal_stop) <signal arrives while stepping
13499         over a breakpoint>: Switch back to the stepping thread.
13500
13501 2014-02-07  Yao Qi  <[email protected]>
13502
13503         * target.c (target_xfer_partial): Return zero if LEN is zero.
13504
13505 2014-02-07  Yao Qi  <[email protected]>
13506
13507         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13508         (ld_so_xfer_auxv): Likewise.
13509         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13510         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13511         * corelow.c (core_xfer_partial): Likewise.
13512         * ctf.c (ctf_xfer_partial): Likewise.
13513         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13514         (darwin_xfer_partial): Likewise.
13515         * exec.c (exec_xfer_partial): Likewise.
13516         * gnu-nat.c (gnu_xfer_partial): Likewise.
13517         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13518         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13519         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13520         * linux-nat.c (linux_xfer_siginfo): Likewise.
13521         (linux_proc_xfer_spu): Likewise.
13522         * procfs.c (procfs_xfer_partial): Likewise.
13523         * record-full.c (record_full_xfer_partial): Likewise.
13524         (record_full_core_xfer_partial): Likewise.
13525         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13526         * remote.c (remote_write_qxfer): Likewise.
13527         (remote_write_qxfer, remote_read_qxfer): Likewise.
13528         (remote_xfer_partial): Likewise.
13529         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13530         (rs6000_xfer_shared_libraries): Likewise.
13531         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13532         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13533         (spu_xfer_partial): Likewise.
13534         * target.c (memory_xfer_partial_1): Likewise.
13535         * tracepoint.c (tfile_xfer_partial): Likewise.
13536         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13537         (windows_xfer_partial): Likewise.
13538
13539 2014-02-07  Yao Qi  <[email protected]>
13540
13541         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13542         comments.
13543         (core_xfer_shared_libraries_aix): Likewise.
13544         * gdbarch.c, gdbarch.h: Regenerated.
13545         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13546         ULONGEST.  Change 'len_avail' type to ULONGEST.
13547         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13548         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13549         declaration.
13550         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13551
13552 2014-02-07  Yao Qi  <[email protected]>
13553
13554         * corefile.c (memory_error): Get 'exception' from ERR and pass
13555         'exception' to throw_error.
13556
13557 2014-02-06  Doug Evans  <[email protected]>
13558
13559         * configure.ac (libpython checking): Remove all but python.o from
13560         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13561         * configure: Regenerate.
13562
13563         * Makefile.in (SFILES): Add extension.c.
13564         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13565         (COMMON_OBS): Add extension.o.
13566         * extension.h: New file.
13567         * extension-priv.h: New file.
13568         * extension.c: New file.
13569
13570         * python/python-internal.h: #include "extension.h".
13571         (gdbpy_auto_load_enabled): Declare.
13572         (gdbpy_apply_val_pretty_printer): Declare.
13573         (gdbpy_apply_frame_filter): Declare.
13574         (gdbpy_preserve_values): Declare.
13575         (gdbpy_breakpoint_cond_says_stop): Declare.
13576         (gdbpy_breakpoint_has_cond): Declare.
13577         (void source_python_script_for_objfile): Delete.
13578         * python/python.c: #include "extension-priv.h".
13579         Delete inclusion of "observer.h".
13580         (extension_language_python): Moved here and renamed from
13581         script_language_python in py-auto-load.c.
13582         Redefined to be of type extension_language_defn.
13583         (python_extension_script_ops): New global.
13584         (python_extension_ops): New global.
13585         (struct python_env): New member previous_active.
13586         (restore_python_env): Call restore_active_ext_lang.
13587         (ensure_python_env): Call set_active_ext_lang.
13588         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13589         New arg extlang.
13590         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13591         New arg extlang.
13592         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13593         New arg extlang.
13594         (gdbpy_eval_from_control_command): Renamed from
13595         eval_python_from_control_command, made static.  New arg extlang.
13596         (gdbpy_source_script) Renamed from source_python_script, made static.
13597         New arg extlang.
13598         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13599         result to int.  New arg extlang.
13600         (gdbpy_source_objfile_script): Renamed from
13601         source_python_script_for_objfile, made static.  New arg extlang.
13602         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13603         static.  New args extlang, extlang_printers.  Change result type to
13604         "void".
13605         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13606         static.  New arg extlang.  Rename arg printers to extlang_printers
13607         and change type to ext_lang_type_printers *.
13608         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13609         static.  Replace argument arg with extlang, extlang_printers.
13610         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13611         (!HAVE_PYTHON, source_python_script): Delete.
13612         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13613         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13614         (!HAVE_PYTHON, start_type_printers): Delete.
13615         (!HAVE_PYTHON, apply_type_printers): Delete.
13616         (!HAVE_PYTHON, free_type_printers): Delete.
13617         (_initialize_python): Delete call to observer_attach_before_prompt.
13618         (finalize_python): Set/restore active extension language.
13619         (gdbpy_finish_initialization) Renamed from
13620         finish_python_initialization, made static.  New arg extlang.
13621         (gdbpy_initialized): New function.
13622         * python/python.h: #include "extension.h".  Delete #include
13623         "value.h", "mi/mi-cmds.h".
13624         (extension_language_python): Declare.
13625         (GDBPY_AUTO_FILE_NAME): Delete.
13626         (enum py_bt_status): Moved to extension.h and renamed to
13627         ext_lang_bt_status.
13628         (enum frame_filter_flags): Moved to extension.h.
13629         (enum py_frame_args): Moved to extension.h and renamed to
13630         ext_lang_frame_args.
13631         (finish_python_initialization): Delete.
13632         (eval_python_from_control_command): Delete.
13633         (source_python_script): Delete.
13634         (apply_val_pretty_printer): Delete.
13635         (apply_frame_filter): Delete.
13636         (preserve_python_values): Delete.
13637         (gdbpy_script_language_defn): Delete.
13638         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13639         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13640
13641         * auto-load.c: #include "extension.h".
13642         (GDB_AUTO_FILE_NAME): Delete.
13643         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13644         (script_language_gdb): Delete, moved to extension.c and renamed to
13645         extension_language_gdb.
13646         (source_gdb_script_for_objfile): Delete.
13647         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13648         (loaded_script): Change type of language member to
13649         struct extension_language_defn *.
13650         (init_loaded_scripts_info): Initialize
13651         unsupported_script_warning_printed.
13652         (maybe_add_script): Make static.  Change type of language arg to
13653         struct extension_language_defn *.
13654         (clear_section_scripts): Reset unsupported_script_warning_printed.
13655         (auto_load_objfile_script_1): Rewrite to use extension language API.
13656         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13657         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13658         (source_section_scripts): Rewrite to use extension language API.
13659         (load_auto_scripts_for_objfile): Rewrite to use
13660         auto_load_scripts_for_objfile.
13661         (collect_matching_scripts_data): Change type of language member to
13662         struct extension_language_defn *.
13663         (auto_load_info_scripts): Change type of language arg to
13664         struct extension_language_defn *.
13665         (unsupported_script_warning_print): New function.
13666         (script_not_found_warning_print): Make static.
13667         (_initialize_auto_load): Rewrite construction of scripts-directory
13668         help.
13669         * auto-load.h (struct objfile): Add forward decl.
13670         (struct script_language): Delete.
13671         (struct auto_load_pspace_info): Add forward decl.
13672         (struct extension_language_defn): Add forward decl.
13673         (maybe_add_script): Delete.
13674         (auto_load_objfile_script): Declare.
13675         (script_not_found_warning_print): Delete.
13676         (auto_load_info_scripts): Update prototype.
13677         (auto_load_gdb_scripts_enabled): Declare.
13678         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13679         auto_load_python_scripts_enabled and made public.
13680         (script_language_python): Delete, moved to python.c.
13681         (gdbpy_script_language_defn): Delete.
13682         (info_auto_load_python_scripts): Update to use
13683         extension_language_python.
13684
13685         * breakpoint.c (condition_command): Replace call to
13686         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13687         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13688         with call to breakpoint_ext_lang_cond_says_stop.
13689         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13690         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13691         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13692         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13693         New arg slang.
13694         (local_setattro): Print name of extension language with existing
13695         stop condition.
13696
13697         * valprint.c (val_print, value_print): Update to call
13698         apply_ext_lang_val_pretty_printer.
13699         * cp-valprint.c (cp_print_value): Update call to
13700         apply_ext_lang_val_pretty_printer.
13701         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13702         (gdbpy_apply_val_pretty_printer): Renamed from
13703         apply_val_pretty_printer.  New arg extlang.
13704         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13705
13706         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13707         extension language API.
13708         * cli/cli-script.c (execute_control_command): Update to call
13709         eval_ext_lang_from_control_command.
13710
13711         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13712         enum ext_lang_bt_status values.  Update call to
13713         apply_ext_lang_frame_filter.
13714         (mi_cmd_stack_list_locals): Ditto.
13715         (mi_cmd_stack_list_args): Ditto.
13716         (mi_cmd_stack_list_variables): Ditto.
13717         * mi/mi-main.c: Delete #include "python/python-internal.h".
13718         Add #include "extension.h".
13719         (mi_cmd_list_features): Replace reference to python internal variable
13720         gdb_python_initialized with call to ext_lang_initialized_p.
13721
13722         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13723         Update to use enum ext_lang_frame_args.  Update to call
13724         apply_ext_lang_frame_filter.
13725         * python/py-framefilter.c (extract_sym): Update to use enum
13726         ext_lang_bt_status.
13727         (extract_value, py_print_type, py_print_value): Ditto.
13728         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13729         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13730         (py_print_frame): Ditto.
13731         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13732         New arg extlang.  Update to use enum ext_lang_bt_status.
13733
13734         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13735         finish_python_initialization.  Replace with call to
13736         finish_ext_lang_initialization.
13737
13738         * typeprint.c (do_free_global_table): Update to call
13739         free_ext_lang_type_printers.
13740         (create_global_typedef_table): Update to call
13741         start_ext_lang_type_printers.
13742         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13743         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13744         (type_print_options): Change type of global_printers from "void *"
13745         to "struct ext_lang_type_printers *".
13746
13747         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13748         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13749         (gdbpy_preserve_values): Renamed from preserve_python_values.
13750         New arg extlang.
13751         (!HAVE_PYTHON, preserve_python_values): Delete.
13752
13753         * utils.c (quit_flag): Delete, moved to extension.c.
13754         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13755         extension.c.
13756
13757         * eval.c: Delete #include "python/python.h".
13758         * main.c: Delete #include "python/python.h".
13759
13760         * defs.h: Update comment.
13761
13762 2014-02-06  Joel Brobecker  <[email protected]>
13763
13764         GDB 7.7 released.
13765
13766 2014-02-05  Mark Kettenis  <[email protected]>
13767
13768         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13769         defined.
13770
13771 2014-02-05  Yao Qi  <[email protected]>
13772
13773         * remote.c (remote_pass_signals): Remove local 'buf' and use
13774         rs->buf.
13775         (remote_program_signals): Likewise.
13776
13777 2014-02-05  Yao Qi  <[email protected]>
13778
13779         * ctf.c: Include "inferior.h" and "gdbthread.h".
13780         (CTF_PID): A new macro.
13781         (ctf_open): Call inferior_appeared and add_thread_silent.
13782         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13783         (ctf_thread_alive): New function.
13784         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13785
13786 2014-02-05  Yao Qi  <[email protected]>
13787
13788         Revert this patch:
13789
13790         2013-05-24  Yao Qi  <[email protected]>
13791
13792         * tracepoint.c (TFILE_PID): Remove.
13793         (tfile_open): Don't add thread and inferior.
13794         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13795         exit_inferior_silent.
13796         (tfile_thread_alive): Remove.
13797         (init_tfile_ops): Don't set field 'to_thread_alive' of
13798         tfile_ops.
13799
13800 2014-02-04  Christian Eggers  <[email protected]>  (tiny change)
13801
13802         * remote.c (remote_start_remote): Call remote_check_symbols even
13803         if only symbol-file (not file) has been given.
13804
13805 2014-02-04  Ulrich Weigand  <[email protected]>
13806
13807         * gdbarch.sh (skip_entrypoint): New callback.
13808         * gdbarch.c, gdbarch.h: Regenerate.
13809         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13810         * infrun.c (fill_in_stop_func): Likewise.
13811         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13812         (ppc_elfv2_elf_make_msymbol_special): New function.
13813         (ppc_elfv2_skip_entrypoint): Likewise.
13814         (ppc_linux_init_abi): Install them for ELFv2.
13815
13816 2014-02-04  Ulrich Weigand  <[email protected]>
13817
13818         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13819         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13820         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13821         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13822         structures returned in GPRs.
13823
13824 2014-02-04  Ulrich Weigand  <[email protected]>
13825
13826         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13827         offset to the stack parameter list for the ELFv2 ABI.
13828
13829 2014-02-04  Ulrich Weigand  <[email protected]>
13830
13831         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13832         set_gdbarch_convert_from_func_ptr_addr and
13833         set_gdbarch_elf_make_msymbol_special for ELFv1.
13834         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13835         function descriptors on ELFv1.
13836         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13837         set up r12 at function entry.
13838
13839 2014-02-04  Ulrich Weigand  <[email protected]>
13840
13841         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13842         (struct gdbarch_tdep): New member elf_abi.
13843
13844         * rs6000-tdep.c: Include "elf/ppc64.h".
13845         (rs6000_gdbarch_init): Detect ELF ABI version.
13846
13847 2014-02-04  Ulrich Weigand  <[email protected]>
13848
13849         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13850         within a register pair holding a DFP 128-bit value on little-endian.
13851         (ppc64_sysv_abi_return_value_base): Likewise.
13852         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13853         (dfp_pseudo_register_write): Likewise.
13854
13855 2014-02-04  Ulrich Weigand  <[email protected]>
13856
13857         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13858         offset on little-endian when passing _Decimal32.
13859         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13860
13861 2014-02-04  Ulrich Weigand  <[email protected]>
13862
13863         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13864         of the overlapped FP register within the VSX register on little-
13865         endian platforms.
13866         (efpr_pseudo_register_write): Likewise.
13867
13868 2014-02-04  Ulrich Weigand  <[email protected]>
13869
13870         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13871         offset on little-endian when passing small structures.
13872
13873 2014-02-04  Ulrich Weigand  <[email protected]>
13874
13875         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13876         (struct ppc64_sysv_argpos): New data structure.
13877         (ppc64_sysv_abi_push_float): Remove.
13878         (ppc64_sysv_abi_push_val): New function.
13879         (ppc64_sysv_abi_push_integer): Likewise.
13880         (ppc64_sysv_abi_push_freg): Likewise.
13881         (ppc64_sysv_abi_push_vreg): Likewise.
13882         (ppc64_sysv_abi_push_param): Likewise.
13883         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13884         (ppc64_sysv_abi_return_value_base): New function.
13885         (ppc64_sysv_abi_return_value): Refactor to use it.
13886
13887 2014-02-04  Ulrich Weigand  <[email protected]>
13888
13889         * NEWS: Document new target powerpc64le-*-linux*.
13890
13891 2014-02-04  Mark Kettenis  <[email protected]>
13892
13893         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13894         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13895         core dumps.
13896         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13897         register set used in ELF core dumps.  Add floating-point register set.
13898
13899 2014-02-03  Kevin Buettner  <[email protected]>
13900
13901         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13902         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13903         penultimate entry from number representing the PC register
13904         to symbolic constant representing the MDR register.  Add
13905         constant for the PC register to the end of the table.
13906
13907 2014-02-03  Mark Kettenis  <[email protected]>
13908
13909         * bsd-kvm.c: Include <sys/param.h>
13910
13911 2014-02-03  Mark Kettenis  <[email protected]>
13912
13913         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13914
13915 2014-01-31  Joel Brobecker  <[email protected]>
13916
13917         * ada-lang.h (clear_ada_sym_cache): Delete.
13918
13919 2014-01-30  Ulrich Weigand  <[email protected]>
13920
13921         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13922
13923 2014-01-29  Jose E. Marchesi  <[email protected]>
13924
13925         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13926           the sigreturn register save area only if the syscall is
13927           sigreturn.
13928
13929 2014-01-29  Joel Brobecker  <[email protected]>
13930
13931         * valops.c (value_slice): Minor reformatting.
13932
13933 2014-01-28  Ulrich Weigand  <[email protected]>
13934
13935         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13936
13937 2014-01-28  Joel Brobecker  <[email protected]>
13938
13939         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13940         New static globals.
13941         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13942         (ada_ignore_descriptive_types_p): New static global.
13943         (find_parallel_type_by_descriptive_type): Return immediately
13944         if ada_ignore_descriptive_types_p is set.
13945         (_initialize_ada_language): Register new commands "maintenance
13946         set ada", "maintenance show ada", "maintenance set ada
13947         ignore-descriptive-types" and "maintenance show ada
13948         ignore-descriptive-types".
13949         * NEWS: Add entry for new "maint ada set/show
13950         ignore-descriptive-types" commands.
13951
13952 2014-01-27  Markus Metzger  <[email protected]>
13953
13954         * record-btrace.c (record_btrace_close): Call btrace_teardown
13955         for all threads.
13956
13957 2014-01-27  Joel Brobecker  <[email protected]>
13958
13959         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13960         "ui-out.h".
13961
13962 2014-01-27  Joel Brobecker  <[email protected]>
13963
13964         * ada-typeprint (type_is_full_subrange_of_target_type):
13965         New function.
13966         (print_range): Add parameter bounds_prefered_p.  If not set,
13967         try printing range types using the name of their base type.
13968         (print_range_type): Add parameter bounds_prefered_p.
13969         Use it in call to print_range.
13970         (print_array_type, ada_print_type): Update calls to print_range
13971         and print_range_type.
13972
13973 2014-01-27  Joel Brobecker  <[email protected]>
13974
13975         * ada-typeprint.c (print_array_type, print_choices, print_range)
13976         (print_range_bound, print_dynamic_range_bound, print_range_type):
13977         Remove declaration.
13978
13979 2014-01-27  Joel Brobecker  <[email protected]>
13980
13981         * ada-typeprint.c (print_range): Add missing empty line
13982         after local declaration.
13983
13984 2014-01-27  Joel Brobecker  <[email protected]>
13985
13986         * ada-valprint.c (print_optional_low_bound): Get index_type's
13987         target type for as long as it is a TYPE_CODE_RANGE.
13988
13989 2014-01-27  Joel Brobecker  <[email protected]>
13990
13991         * procfs.c (procfs_make_note_section): Remove assertion and
13992         associated comment.
13993
13994 2014-01-24  Yao Qi  <[email protected]>
13995
13996         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13997         * corelow.c (get_core_siginfo): Likewise.
13998
13999 2014-01-24  Yao Qi  <[email protected]>
14000
14001         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14002         ULONGEST.  Don't check 'len' is negative.
14003         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14004
14005 2014-01-23  Tom Tromey  <[email protected]>
14006
14007         PR python/16485:
14008         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14009         Handle exception from frame.block.
14010         (FrameVars.fetch_frame_locals): Likewise.
14011
14012 2014-01-23  Tom Tromey  <[email protected]>
14013
14014         PR python/16487:
14015         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14016         on a NULL pointer.  Move "goto error" to correct place.
14017
14018 2014-01-23  Tom Tromey  <[email protected]>
14019
14020         PR python/16491:
14021         * python/py-framefilter.c (apply_frame_filter): Call
14022         ensure_python_env after computing gdbarch.
14023
14024 2014-01-23  Yao Qi  <[email protected]>
14025
14026         * target.c (raw_memory_xfer_partial): Change argument type
14027         from void * to gdb_byte *.
14028         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14029
14030 2014-01-22  Doug Evans  <[email protected]>
14031
14032         New gdbserver option --debug-format=timestamp.
14033         * NEWS: Mention it.
14034
14035 2014-01-22  Andreas Arnez  <[email protected]>
14036
14037         * syscalls/s390x-linux.xml: New file.
14038         * syscalls/s390-linux.xml: New file.
14039         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14040         (XML_SYSCALL_FILENAME_S390X): Likewise.
14041         (op_svc): New enum value for SVC opcode.
14042         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14043         (s390_linux_get_syscall_number): New function.
14044         (s390_gdbarch_init): Register '*get_syscall_number' and the
14045         syscall xml file name.
14046         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14047         "s390-linux.xml" and "s390x-linux.xml".
14048         * NEWS: Announce new feature.
14049
14050 2014-01-22  Baruch Siach  <[email protected]>
14051
14052         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14053
14054 2014-01-22  Pedro Alves  <[email protected]>
14055
14056         * xtensa-config.c: Include defs.h.
14057
14058 2014-01-22  Joel Brobecker  <[email protected]>
14059
14060         * common/common-utils.h: Add "ARI:" comment beside __func__
14061         reference.
14062
14063 2014-01-22  Joel Brobecker  <[email protected]>
14064
14065         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14066         documentation a bit.
14067
14068 2014-01-21  Roland McGrath  <[email protected]>
14069
14070         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14071         * configure: Regenerate.
14072         * aclocal.m4: Regenerate.
14073         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14074         New substituted variables.
14075         (install-strip): New target.
14076         (INSTALL_SCRIPT): New substituted variable.
14077         (FLAGS_TO_PASS): Add it.
14078         (install-only): Use $(INSTALL_SCRIPT) rather than
14079         $(INSTALL_PROGRAM) for gcore.
14080
14081 2014-01-20  Tom Tromey  <[email protected]>
14082
14083         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14084         together.
14085
14086 2014-01-20  Tom Tromey  <[email protected]>
14087
14088         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14089         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14090         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14091         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14092         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14093         (struct cmd_list_element) <flags>: Remove.
14094         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14095         doc_allocated>: New fields.
14096         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14097         bitfields.
14098         * maint.c (maintenance_do_deprecate): Update.
14099         * top.c (execute_command): Update.
14100
14101 2014-01-20  Baruch Siach  <[email protected]>
14102
14103         * xtensa-linux-nat.c: Include asm/ptrace.h.
14104
14105 2014-01-17  Iain Buclaw  <[email protected]>
14106
14107         * Makefile.in (SFILES): Add d-support.c.
14108         (COMMON_OBS): Add d-support.o.
14109         * d-lang.h (d_parse_symbol): Add comment, now defined in
14110         d-support.c.
14111         * d-lang.c (parse_call_convention)
14112         (parse_attributes, parse_function_types)
14113         (parse_function_args, parse_type, parse_identifier)
14114         (call_convention_p, d_parse_symbol): Move functions to ...
14115         * d-support.c: ... New file.
14116
14117 2014-01-17  Iain Buclaw  <[email protected]>
14118
14119         * d-lang.h (d_parse_symbol): Add declaration.
14120         * d-lang.c (extract_identifiers)
14121         (extract_type_info): Remove functions.
14122         (parse_call_convention, parse_attributes)
14123         (parse_function_types, parse_function_args)
14124         (parse_type, parse_identifier, call_convention_p)
14125         (d_parse_symbol): New functions.
14126         (d_demangle): Use d_parse_symbol to demangle D symbols.
14127
14128 2014-01-17  Iain Buclaw  <[email protected]>
14129
14130         * d-lang.h (struct builtin_d_type): New data type.
14131         (builtin_d_type): Add declaration.
14132         * d-lang.c (d_language_arch_info, build_d_types)
14133         (builtin_d_type): New functions.
14134         (enum d_primitive_types): New data type.
14135         (d_language_defn): Change c_language_arch_info to
14136         d_language_arch_info.
14137         (d_type_data): New static variable.
14138         (_initialize_d_language): Initialize d_type_data.
14139
14140 2014-01-17  Iain Buclaw  <[email protected]>
14141
14142         * d-lang.h (d_main_name): Add declaration.
14143         * d-lang.c (d_main_name): New function.
14144         * symtab.c (find_main_name): Add call to d_main_name.
14145
14146 2014-01-17  Iain Buclaw  <[email protected]>
14147
14148         * d-lang.c (d_language_defn): Change macro_expansion_c to
14149         macro_expansion_no.
14150
14151 2014-01-17  Iain Buclaw  <[email protected]>
14152
14153         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14154
14155 2014-01-17  Sergio Durigan Junior  <[email protected]>
14156
14157         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14158         gdb_exception" declaration.
14159         * remote.c (getpkt_or_notif_sane): Likewise.
14160
14161 2014-01-17  Doug Evans  <[email protected]>
14162
14163         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14164         function, contents of dirnames_to_char_ptr_vec_append moved here.
14165         (delim_string_to_char_ptr_vec): New function.
14166         (dirnames_to_char_ptr_vec_append): Rewrite.
14167         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14168
14169 2014-01-17  Doug Evans  <[email protected]>
14170
14171         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14172         and moved here ...
14173         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14174         #include "common-utils.h".
14175         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14176         * common/vec.h (VEC_ASSERT_PASS): Update.
14177         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14178         (MACH_CHECK_ERROR): Update.
14179
14180 2014-01-17  Simon Marchi  <[email protected]>
14181
14182         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14183         comments.
14184         * gdbarch.h: Regenerate.
14185
14186 2014-01-16  Tom Tromey  <[email protected]>
14187
14188         * value.c (struct value) <regnum>: Move earlier.
14189
14190 2014-01-16  Tom Tromey  <[email protected]>
14191
14192         * remote.c (extended_remote_create_inferior): Rename from
14193         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14194         old implementation.
14195
14196 2014-01-16  Pedro Alves  <[email protected]>
14197
14198         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14199         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14200         the backchain.
14201
14202 2014-01-16  Doug Evans  <[email protected]>
14203
14204         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14205
14206 2014-01-16  Markus Metzger  <[email protected]>
14207
14208         * btrace.h (btrace_thread_flag): New.
14209         (struct btrace_thread_info) <flags>: New.
14210         * record-btrace.c (record_btrace_resume_thread)
14211         (record_btrace_find_thread_to_move, btrace_step_no_history)
14212         (btrace_step_stopped, record_btrace_start_replaying)
14213         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14214         (record_btrace_find_resume_thread): New.
14215         (record_btrace_resume, record_btrace_wait): Extend.
14216         (record_btrace_can_execute_reverse): New.
14217         (record_btrace_open): Fail in non-stop mode.
14218         (record_btrace_set_replay): Split into this, ...
14219         (record_btrace_stop_replaying): ... this, ...
14220         (record_btrace_clear_histories): ... and this.
14221         (init_record_btrace_ops): Init to_can_execute_reverse.
14222         * NEWS: Announce it.
14223
14224 2014-01-16  Markus Metzger  <[email protected]>
14225
14226         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14227         (forward_target_decr_pc_after_break)
14228         (target_decr_pc_after_break): New.
14229         * target.c (forward_target_decr_pc_after_break)
14230         (target_decr_pc_after_break): New.
14231         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14232         instead of gdbarch_decr_pc_after_break.
14233         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14234         instead of gdbarch_decr_pc_after_break.
14235         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14236         instead of gdbarch_decr_pc_after_break.
14237         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14238         instead of gdbarch_decr_pc_after_break.
14239         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14240         instead of gdbarch_decr_pc_after_break.
14241         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14242         instead of gdbarch_decr_pc_after_break.
14243
14244 2014-01-16  Markus Metzger  <[email protected]>
14245
14246         * btrace.c: Include regcache.h.
14247         (btrace_add_pc): New.
14248         (btrace_enable): Call btrace_add_pc.
14249         (btrace_is_empty): New.
14250         * btrace.h (btrace_is_empty): New.
14251         * record-btrace.c (require_btrace, record_btrace_info): Call
14252         btrace_is_empty.
14253
14254 2014-01-16  Markus Metzger  <[email protected]>
14255
14256         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14257         Support delta reads.
14258         (linux_disable_btrace): Change return type.
14259         * common/linux-btrace.h (linux_read_btrace): Change parameters
14260         and return type to allow error reporting.  Update users.
14261         (linux_disable_btrace): Change return type.  Update users.
14262         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14263         New.
14264         (btrace_error): New.
14265         (btrace_block) <begin>: Comment on BEGIN == 0.
14266         * btrace.c (btrace_compute_ftrace): Start from the end of
14267         the current trace.
14268         (btrace_stitch_trace, btrace_clear_history): New.
14269         (btrace_fetch): Read delta trace, return if replaying.
14270         (btrace_clear): Move clear history code to btrace_clear_history.
14271         (parse_xml_btrace): Throw an error if parsing failed.
14272         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14273         and return type to allow error reporting.
14274         (target_read_btrace): Change parameters and return type to allow
14275         error reporting.
14276         * target.c (target_read_btrace): Update.
14277         * remote.c (remote_read_btrace): Support delta reads.  Pass
14278         errors on.
14279         * NEWS: Announce it.
14280
14281 2014-01-16  Markus Metzger  <[email protected]>
14282
14283         * record.h (record_btrace_frame_unwind)
14284         (record_btrace_tailcall_frame_unwind): New declarations.
14285         * dwarf2-frame: Include record.h
14286         (dwarf2_frame_cfa): Throw an error for btrace frames.
14287         * record-btrace.c: Include hashtab.h.
14288         (btrace_get_bfun_name): New.
14289         (btrace_call_history): Call btrace_get_bfun_name.
14290         (struct btrace_frame_cache): New.
14291         (bfcache): New.
14292         (bfcache_hash, bfcache_eq, bfcache_new): New.
14293         (btrace_get_frame_function): New.
14294         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14295         (record_btrace_frame_this_id): Compute own id.
14296         (record_btrace_frame_prev_register): Provide PC, throw_error
14297         for all other registers.
14298         (record_btrace_frame_sniffer): Detect btrace frames.
14299         (record_btrace_tailcall_frame_sniffer): New.
14300         (record_btrace_frame_dealloc_cache): New.
14301         (record_btrace_frame_unwind): Add new functions.
14302         (record_btrace_tailcall_frame_unwind): New.
14303         (_initialize_record_btrace): Allocate cache.
14304         * btrace.c (btrace_clear): Call reinit_frame_cache.
14305         * NEWS: Announce it.
14306
14307 2014-01-16  Markus Metzger  <[email protected]>
14308
14309         * record-btrace.c (record_btrace_set_replay)
14310         (record_btrace_goto_begin, record_btrace_goto_end)
14311         (record_btrace_goto): New.
14312         (init_record_btrace_ops): Initialize them.
14313         * NEWS: Announce it.
14314
14315 2014-01-16  Markus Metzger  <[email protected]>
14316
14317         * record-btrace.c (record_btrace_find_new_threads)
14318         (record_btrace_thread_alive): New.
14319         (init_record_btrace_ops): Initialize to_find_new_threads and
14320         to_thread_alive.
14321
14322 2014-01-16  Markus Metzger  <[email protected]>
14323
14324         * record-btrace.c (record_btrace_resume): New.
14325         (record_btrace_wait): New.
14326         (init_record_btrace_ops): Initialize to_wait and to_resume.
14327
14328 2014-01-16  Markus Metzger  <[email protected]>
14329
14330         * record-btrace.c (record_btrace_xfer_partial)
14331         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14332         (record_btrace_allow_memory_access): New.
14333         (init_record_btrace_ops): Initialize new methods.
14334         * target.c (raw_memory_xfer_partial): Bail out if target reports
14335         that this memory is not available.
14336
14337 2014-01-16  Markus Metzger  <[email protected]>
14338
14339         * target.h (target_ops) <to_insert_breakpoint>
14340         <to_remove_breakpoint>: Add target_ops parameter.
14341         (forward_target_insert_breakpoint): New.
14342         (forward_target_remove_breakpoint): New.
14343         (memory_remove_breakpoint, memory_insert_breakpoint):
14344         Add target_ops parameter.
14345         * target.c (target_insert_breakpoint): Split into this and ...
14346         (forward_target_insert_breakpoint): ... this.
14347         (target_remove_breakpoint): Split into this and ...
14348         (forward_target_remove_breakpoint): ... this.
14349         (debug_to_insert_breakpoint): Add target_ops parameter.
14350         Call forward_target_insert_breakpoint.
14351         (debug_to_remove_breakpoint): Add target_ops parameter.
14352         Call forward_target_remove_breakpoint.
14353         (update_current_target): Do not inherit or default to_insert_breakpoint
14354         and to_remove_breakpoint.
14355         * corelow.c (ignore): Add target_ops parameter.
14356         * exec.c (ignore): Add target_ops parameter.
14357         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14358         Add target_ops parameter.
14359         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14360         Add target_ops parameter.
14361         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14362         Add target_ops parameter.
14363         * record-full.c (record_full_beneath_to_insert_breakpoint)
14364         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14365         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14366         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14367         (record_full_core_remove_breakpoint): Add target_ops parameter.
14368         Update users.
14369         (record_full_beneath_to_insert_breakpoint_ops)
14370         (record_full_beneath_to_remove_breakpoint_ops)
14371         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14372         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14373         tmp_to_remove_breakpoint_ops,
14374         record_full_beneath_to_insert_breakpoint_ops, and
14375         record_full_beneath_to_remove_breakpoint_ops.
14376         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14377         (m32r_remove_breakpoint): Add target_ops parameter.
14378         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14379         Add target_ops parameter.
14380         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14381         Add target_ops parameter.
14382
14383 2014-01-16  Jan Kratochvil  <[email protected]>
14384             Markus Metzger  <[email protected]>
14385
14386         * record-btrace.c: Include frame-unwind.h.
14387         (record_btrace_frame_unwind_stop_reason)
14388         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14389         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14390         New.
14391         (init_record_btrace_ops): Install it.
14392
14393 2014-01-16  Jan Kratochvil  <[email protected]>
14394
14395         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14396         get_prev_frame_1.
14397
14398 2014-01-16  Jan Kratochvil  <[email protected]>
14399
14400         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14401         earlier.
14402
14403 2014-01-16  Jan Kratochvil  <[email protected]>
14404
14405         * frame-unwind.c: Include target.h.
14406         (frame_unwind_try_unwinder): New function with code from ...
14407         (frame_unwind_find_by_frame): ... here.  New variable
14408         unwinder_from_target, call also target_get_unwinder)
14409         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14410         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14411         * target.h (struct target_ops): New fields to_get_unwinder and
14412         to_get_tailcall_unwinder.
14413         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14414
14415 2014-01-16  Markus Metzger  <[email protected]>
14416
14417         * record-btrace.c (record_btrace_fetch_registers)
14418         (record_btrace_store_registers)
14419         (record_btrace_to_prepare_to_store): New.
14420         (init_record_btrace_ops): Add the above.
14421
14422 2014-01-16  Tom Tromey  <[email protected]>
14423
14424         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14425         * target.h (struct target_ops) <to_prepare_to_store>: Add
14426         argument.
14427         (target_prepare_to_store): Add argument.
14428         * target.c (debug_to_prepare_to_store): Add argument.
14429         (update_current_target): Update.
14430         * remote.c (remote_prepare_to_store): Add 'self' argument.
14431         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14432         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14433         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14434         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14435         argument.
14436         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14437         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14438         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14439         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14440         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14441
14442 2014-01-16  Markus Metzger  <[email protected]>
14443
14444         * btrace.h (replay) <replay>: New.
14445         (btrace_is_replaying): New.
14446         * btrace.c (btrace_clear): Free replay iterator.
14447         (btrace_is_replaying): New.
14448         * record-btrace.c (record_btrace_is_replaying): New.
14449         (record_btrace_info): Print insn number if replaying.
14450         (record_btrace_insn_history): Start at replay position.
14451         (record_btrace_call_history): Start at replay position.
14452         (init_record_btrace_ops): Init to_record_is_replaying.
14453
14454 2014-01-16  Markus Metzger  <[email protected]>
14455
14456         * record-btrace.c (record_btrace_insn_history_range): Include
14457         end.
14458         (record_btrace_insn_history_from): Adjust range.
14459         (record_btrace_call_history_range): Include
14460         end.
14461         (record_btrace_call_history_from): Adjust range.
14462         * NEWS: Announce changes.
14463
14464 2014-01-16  Markus Metzger  <[email protected]>
14465
14466         * record.h (enum record_print_flag)
14467         <record_print_indent_calls>: New.
14468         * record.c (get_call_history_modifiers): Recognize /c modifier.
14469         (_initialize_record): Document /c modifier.
14470         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14471         Reorder fields.  Optionally indent the function name.  Update
14472         all users.
14473         * NEWS: Announce changes.
14474
14475 2014-01-16  Markus Metzger  <[email protected]>
14476
14477         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14478
14479 2014-01-16  Markus Metzger  <[email protected]>
14480
14481         * btrace.c (ftrace_new_function): Start counting at one.
14482         * record-btrace.c (record_btrace_info): Adjust number of calls
14483         and insns.
14484         * NEWS: Announce it.
14485
14486 2014-01-16  Markus Metzger  <[email protected]>
14487
14488         * record-btrace.c (btrace_call_history_insn_range): Print
14489         insn range as [begin, end].
14490
14491 2014-01-16  Markus Metzger  <[email protected]>
14492
14493         * btrace.h (struct btrace_func_link): New.
14494         (enum btrace_function_flag): New.
14495         (struct btrace_inst): Rename to ...
14496         (struct btrace_insn): ...this. Update all users.
14497         (struct btrace_func) <ibegin, iend>: Remove.
14498         (struct btrace_func_link): New.
14499         (struct btrace_func): Rename to ...
14500         (struct btrace_function): ...this. Update all users.
14501         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14502         (number, level, flags>: New.
14503         (struct btrace_insn_iterator): Rename to ...
14504         (struct btrace_insn_history): ...this.
14505         Update all users.
14506         (struct btrace_insn_iterator, btrace_call_iterator): New.
14507         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14508         (struct btrace_target_info) <begin, end, level>
14509         <insn_history, call_history>: New.
14510         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14511         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14512         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14513         (btrace_call_number, btrace_call_begin, btrace_call_end)
14514         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14515         (btrace_find_function_by_number, btrace_set_insn_history)
14516         (btrace_set_call_history): New.
14517         * btrace.c (btrace_init_insn_iterator)
14518         (btrace_init_func_iterator, compute_itrace): Remove.
14519         (ftrace_print_function_name, ftrace_print_filename)
14520         (ftrace_skip_file): Change
14521         parameter to const.
14522         (ftrace_init_func): Remove.
14523         (ftrace_debug): Use new btrace_function fields.
14524         (ftrace_function_switched): Also consider gaining and
14525         losing symbol information).
14526         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14527         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14528         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14529         New.
14530         (ftrace_new_function): Move. Remove debug print.
14531         (ftrace_update_lines, ftrace_update_insns): New.
14532         (ftrace_update_function): Check for call, ret, and jump.
14533         (compute_ftrace): Renamed to ...
14534         (btrace_compute_ftrace): ...this. Rewritten to compute call
14535         stack.
14536         (btrace_fetch, btrace_clear): Updated.
14537         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14538         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14539         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14540         (btrace_call_number, btrace_call_begin, btrace_call_end)
14541         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14542         (btrace_find_function_by_number, btrace_set_insn_history)
14543         (btrace_set_call_history): New.
14544         * record-btrace.c (require_btrace): Use new btrace thread
14545         info fields.
14546         (record_btrace_info, btrace_insn_history)
14547         (record_btrace_insn_history, record_btrace_insn_history_range):
14548         Use new btrace thread info fields and new iterator.
14549         (btrace_func_history_src_line): Rename to ...
14550         (btrace_call_history_src_line): ...this. Use new btrace
14551         thread info fields.
14552         (btrace_func_history): Rename to ...
14553         (btrace_call_history): ...this. Use new btrace thread info
14554         fields and new iterator.
14555         (record_btrace_call_history, record_btrace_call_history_range):
14556         Use new btrace thread info fields and new iterator.
14557
14558 2014-01-16  Markus Metzger  <[email protected]>
14559
14560         * frame.h (frame_id_build_unavailable_stack_special): New.
14561         * frame.c (frame_id_build_unavailable_stack_special): New.
14562
14563 2014-01-16  Markus Metzger  <[email protected]>
14564
14565         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14566         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14567         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14568         to gdbarch.
14569         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14570         (i386_insn_is_jump, i386_jmp_p): New.
14571         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14572         insn_is_jump to gdbarch.
14573         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14574         * gdbarch.h: Regenerated.
14575         * gdbarch.c: Regenerated.
14576         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14577         (default_insn_is_jump): New.
14578         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14579         (default_insn_is_jump): New.
14580
14581 2014-01-16  Markus Metzger  <[email protected]>
14582
14583         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14584         Change to ...
14585         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14586         (btrace_read_type) <btrace_read_new>: Change to ...
14587         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14588
14589 2014-01-16  Markus Metzger  <[email protected]>
14590
14591         * common/linux-btrace.c (linux_read_btrace): Free trace from
14592         previous iteration.
14593
14594 2014-01-15  Doug Evans  <[email protected]>
14595
14596         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14597         uint32_t.
14598
14599 2014-01-15  Tom Tromey  <[email protected]>
14600
14601         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14602         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14603         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14604         (set_objfile_main_name): New function.
14605         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14606         language_of_main>: New fields.
14607         (set_objfile_main_name): Declare.
14608         * symtab.c (find_main_name): Loop over objfiles to find the main
14609         name and language.
14610         (set_main_name): Now static.
14611         (get_main_info): Add comment.
14612         * symtab.h (set_main_name): Don't declare.
14613
14614 2014-01-15  Tom Tromey  <[email protected]>
14615
14616         * symtab.c (main_progspace_key): New global.
14617         (struct main_info): New.
14618         (name_of_main, language_of_main): Remove.
14619         (get_main_info, main_info_cleanup): New function.
14620         (set_main_name, main_name, main_language): Use get_main_info.
14621         (_initialize_symtab): Initialize main_progspace_key.
14622
14623 2014-01-15  Tom Tromey  <[email protected]>
14624
14625         * dbxread.c (process_one_symbol): Update.
14626         * dwarf2read.c (read_partial_die): Update.
14627         * symfile.c (set_initial_language): Call main_language.
14628         * symtab.c (language_of_main): Now static.
14629         (set_main_name): Add 'lang' parameter.
14630         (find_main_name): Update.
14631         (main_language): New function.
14632         (symtab_observer_executable_changed): Update.
14633         * symtab.h (set_main_name): Update.
14634         (language_of_main): Remove.
14635         (main_language): Declare.
14636
14637 2014-01-15  Tom Tromey  <[email protected]>
14638
14639         * symfile.c (init_entry_point_info): Use new "initialized" field.
14640         Update.
14641         * objfiles.h (struct entry_point) <initialized>: New field.
14642         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14643         (struct objfile) <ei>: ...here.  Remove.
14644         * objfiles.c (entry_point_address_query): Update.
14645
14646 2014-01-15  Tom Tromey  <[email protected]>
14647
14648         * objfiles.c (entry_point_address_query): Relocate entry point
14649         address.
14650         (objfile_relocate1): Do not relocate entry point address.
14651         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14652         <the_bfd_section_index>: New field.
14653         * symfile.c (init_entry_point_info): Find the entry point's
14654         section.
14655
14656 2014-01-15  Tom Tromey  <[email protected]>
14657
14658         * solib-frv.c (enable_break): Use entry_point_address_query.
14659
14660 2014-01-15  Omair Javaid  <[email protected]>
14661
14662         * NEWS: Add note on improved process record-replay on
14663         arm*-linux* targets.
14664
14665 2014-01-15  Omair Javaid  <[email protected]>
14666
14667         * arm-tdep.c (enum arm_record_result): New enum.
14668         (arm_record_unsupported_insn): New function.
14669         (arm_record_coproc_data_proc): Removed.
14670         (thumb2_record_ld_st_multiple): New function.
14671         (thumb2_record_ld_st_dual_ex_tbb): New function.
14672         (thumb2_record_data_proc_sreg_mimm): New function.
14673         (thumb2_record_ps_dest_generic): New function.
14674         (thumb2_record_branch_misc_cntrl): New function.
14675         (thumb2_record_str_single_data): New function.
14676         (thumb2_record_ld_mem_hints): New function.
14677         (thumb2_record_ld_word): New function.
14678         (thumb2_record_lmul_lmla_div): New function.
14679         (thumb2_record_decode_insn_handler): New function.
14680         (decode_insn): Add thumb32 instruction handlers.
14681
14682 2014-01-15  Omair Javaid  <[email protected]>
14683
14684         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14685         (struct arm_linux_record_tdep): Declare.
14686         (arm_canonicalize_syscall): New function.
14687         (arm_all_but_pc_registers_record): New function.
14688         (arm_linux_syscall_record): New function.
14689         (arm_linux_init_abi): Add syscall recording constructs.
14690         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14691         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14692         decoding.
14693         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14694         <arm_syscall_record>: New field.
14695         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14696         gdb_target_obs.
14697
14698 2014-01-15  Omair Javaid  <[email protected]>
14699
14700         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14701         register for push instruction recording.
14702
14703 2014-01-15  Omair Javaid  <[email protected]>
14704
14705         * arm-tdep.c (thumb_record_misc): Update to correct logical
14706         error while recording ldm, ldmia and pop instructions.
14707
14708 2014-01-15  Omair Javaid  <[email protected]>
14709
14710         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14711
14712 2014-01-15  Pedro Alves  <[email protected]>
14713
14714         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14715         (go32_resume, go32_fetch_registers, store_register)
14716         (go32_store_registers, go32_prepare_to_store)
14717         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14718         (go32_create_inferior, go32_can_run, go32_terminal_init)
14719         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14720         declarations.
14721
14722 2014-01-15  Tom Tromey  <[email protected]>
14723
14724         * target.h (async_callback_ftype): New typedef.
14725         (struct target_ops) <to_async>: Use it.
14726
14727 2014-01-15  Joel Brobecker  <[email protected]>
14728
14729         * python/py-value.c (get_field_type): Remove unnecessary curly
14730         braces for single-statement if block.
14731
14732 2014-01-15  Joel Brobecker  <[email protected]>
14733
14734         * python/py-type.c (convert_field): Add missing empty line
14735         after declarations.
14736
14737 2014-01-14  Doug Evans  <[email protected]>
14738
14739         * symfile.h (expand_symtabs_matching): Renamed from
14740         expand_partial_symbol_names.  Update prototype.
14741         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14742         * symfile.c (expand_symtabs_matching): Renamed from
14743         expand_partial_symbol_names.  New args file_matcher, kind.
14744         Rename arg fun to symbol_matcher.
14745         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14746         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14747         ada_expand_partial_symbol_name.
14748         (ada_make_symbol_completion_list): Update to call
14749         expand_symtabs_matching.
14750         (ada_add_global_exceptions): Call expand_symtabs_matching.
14751         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14752         call map_symbol_filenames.
14753         * symtab.c (sources_info): Update to call map_symbol_filenames.
14754         (search_symbols): Call expand_symtabs_matching.
14755         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14756         (default_make_symbol_completion_list_break_on): Update to call
14757         expand_symtabs_matching.
14758         (make_source_files_completion_list): Update to call
14759         map_symbol_filenames.
14760
14761 2014-01-14  Doug Evans  <[email protected]>
14762
14763         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14764         (expand_symtabs_symbol_matcher_ftype): New typedef.
14765         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14766         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14767         * symfile.c (expand_partial_symbol_names): Update to use
14768         expand_symtabs_symbol_matcher_ftype.
14769         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14770         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14771         Arg name_matcher renamed to symbol_matcher.
14772         * psymtab.c (recursively_search_psymtabs): Update to use
14773         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14774         sym_matcher.
14775         (expand_symtabs_matching_via_partial): Update to use
14776         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14777         Arg name_matcher renamed to symbol_matcher.
14778
14779 2014-01-14  Doug Evans  <[email protected]>
14780
14781         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14782         (map_partial_symbol_filenames): Ditto.
14783         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14784         (map_partial_symbol_filenames): Ditto.
14785         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14786         (map_partial_symbol_filenames): Ditto.
14787         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14788         (map_partial_symbol_filenames): Ditto.
14789         * symtab.c: Delete #include "psymtab.h".
14790
14791 2014-01-14  Pedro Alves  <[email protected]>
14792             Tom Tromey  <[email protected]>
14793
14794         * infrun.c (use_displaced_stepping): Use find_record_target
14795         instead of RECORD_IS_USED.
14796         (adjust_pc_after_break): Use record_full_is_used instead of
14797         RECORD_IS_USED.
14798         * record-btrace.c (record_btrace_open): Call record_preopen
14799         instead of checking RECORD_IS_USED.
14800         * record-full.c (record_full_shortname)
14801         (record_full_core_shortname): New globals.
14802         (record_full_is_used): New function.
14803         (find_full_open): Call record_preopen instead of checking
14804         RECORD_IS_USED.
14805         (init_record_full_ops): Set the target's shortname to
14806         record_full_shortname.
14807         (init_record_full_core_ops): Set the target's shortname to
14808         record_full_core_shortname.
14809         * record-full.h (record_full_is_used): Declare.
14810         * record.c (find_record_target): Make extern.
14811         (record_preopen): New function.
14812         * record.h (RECORD_IS_USED): Delete macro.
14813         (find_record_target, record_preopen): Declare functions.
14814
14815 2014-01-14  Yao Qi  <[email protected]>
14816
14817         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14818         'len''s type to ULONGEST.
14819         (core_xfer_shared_libraries_aix): Likewise.
14820         * gdbarch.c, gdbarch.h: Regenerated.
14821         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14822         Change type of 'len' to ULONGEST.
14823         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14824         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14825
14826 2014-01-14  Yao Qi  <[email protected]>
14827
14828         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14829         type of 'len' to ULONGEST.
14830         (linux_xfer_osdata_processgroups): Likewise.
14831         (linux_xfer_osdata_threads): Likewise.
14832         (linux_xfer_osdata_fds): Likewise.
14833         (linux_xfer_osdata_isockets): Likewise.
14834         (linux_xfer_osdata_shm): Likewise.
14835         (linux_xfer_osdata_sem): Likewise.
14836         (linux_xfer_osdata_msg): Likewise.
14837         (linux_common_xfer_osdata): Likewise.
14838         (struct osdata_type) <getter>: Likewise.
14839         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14840         the declaration.
14841
14842 2014-01-14  Yao Qi  <[email protected]>
14843
14844         * target.h (target_xfer_partial_ftype): Update.
14845         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14846         ULONGEST.
14847         * aix-thread.c (aix_thread_xfer_partial): Change type of
14848         argument 'len' to ULONGEST.
14849         * auxv.c (procfs_xfer_auxv): Likewise.
14850         (ld_so_xfer_auxv): Likewise.
14851         (memory_xfer_auxv): Likewise.
14852         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14853         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14854         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14855         * corelow.c (core_xfer_partial): Likewise.
14856         * ctf.c (ctf_xfer_partial): Likewise.
14857         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14858         '%u'.
14859         (darwin_read_dyld_info): Likewise.
14860         (darwin_xfer_partial): Likewise.
14861         * exec.c (section_table_xfer_memory_partial): Likewise.
14862         (exec_xfer_partial): Likewise.
14863         * exec.h (section_table_xfer_memory_partial): Update
14864         declaration.
14865         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14866         instead of plongest.
14867         (gnu_xfer_partial): Likewise.
14868         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14869         (ia64_hpux_xfer_solib_got): Likewise.
14870         (ia64_hpux_xfer_partial): Likewise.
14871         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14872         * inf-ptrace.c (inf_ptrace_xfer_partial):
14873         * inf-ttrace.c (inf_ttrace_xfer_partial):
14874         * linux-nat.c (linux_xfer_siginfo): Likewise.
14875         (linux_nat_xfer_partial): Likewise.
14876         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14877         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14878         * monitor.c (monitor_xfer_memory): Likewise.
14879         (monitor_xfer_partial): Likewise.
14880         * procfs.c (procfs_xfer_partial): Likewise.
14881         * record-full.c (record_full_xfer_partial): Likewise.
14882         (record_full_core_xfer_partial): Likewise.
14883         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14884         instead of plongest.
14885         (gdbsim_xfer_partial): Likewise.
14886         * remote.c (remote_xfer_partial): Likewise.
14887         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14888         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14889         declaration.
14890         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14891         (rs6000_xfer_shared_libraries): Likewise.
14892         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14893         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14894         (sparc_xfer_partial): Likewise.
14895         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14896         (spu_xfer_partial): Likewise.
14897         * spu-multiarch.c (spu_xfer_partial): Likewise.
14898         * target.c (target_read_live_memory): Likewise.
14899         (memory_xfer_live_readonly_partial): Likewise.
14900         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14901         (target_xfer_partial, default_xfer_partial): Likewise.
14902         (current_xfer_partial): Likewise.
14903         * tracepoint.c (tfile_xfer_partial): Likewise.
14904         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14905         pulongest instead of plongest.
14906         (windows_xfer_partial): Likewise.
14907         (windows_xfer_shared_libraries): Likewise.
14908
14909 2014-01-14  Yao Qi  <[email protected]>
14910
14911         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14912         target_xfer_partial_ftype.
14913
14914 2014-01-13  Siva Chandra Reddy  <[email protected]>
14915
14916         PR python/15464
14917         PR python/16113
14918         * valops.c (value_struct_elt_bitpos): New function
14919         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14920         object to 'None' if the field name is an empty string ("").
14921         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14922         attribute to look for a field when 'name' is 'None'.
14923         (get_field_type): New function
14924
14925 2014-01-13  Doug Evans  <[email protected]>
14926
14927         PR symtab/16426
14928         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14929         (try_open_dwop_file): Ditto.
14930         * gdb_bfd.c: #include "vec.h".
14931         (bfdp): New typedef.
14932         (struct gdb_bfd_data): New member included_bfds.
14933         (gdb_bfd_unref): Unref all included bfds.
14934         (gdb_bfd_record_inclusion): New function.
14935         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14936
14937 2014-01-13  Tom Tromey  <[email protected]>
14938
14939         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14940
14941 2014-01-13  Tom Tromey  <[email protected]>
14942
14943         * defs.h (use_windows): Remove.
14944         * gdb.c (main): Update.
14945         * main.c (captured_main, gdb_main): Update.
14946         * main.h (struct captured_main_args) <use_windows>: Remove.
14947         * top.c (use_windows): Remove.
14948
14949 2014-01-13  Tom Tromey  <[email protected]>
14950
14951         * defs.h (deprecated_flush_hook): Remove.
14952
14953 2014-01-13  Jan Kratochvil  <[email protected]>
14954
14955         PR threads/16216
14956         * linux-thread-db.c (try_thread_db_load): Add parameter
14957         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14958         (try_thread_db_load_from_pdir_1): Move it there from here.
14959         (try_thread_db_load_from_sdir): Update caller.
14960         (try_thread_db_load_from_dir): Move it there from here.
14961
14962 2014-01-13  Patrick Palka  <[email protected]>
14963
14964         * regformats/regdat.sh: Always rewrite the register file.
14965
14966 2014-01-13  Pedro Alves  <[email protected]>
14967
14968         * Makefile.in (CHECK_HEADERS): New variable.
14969         (check-headers:): New rule.
14970
14971 2014-01-13  Tom Tromey  <[email protected]>
14972
14973         * cli/cli-setshow.c (do_set_command): Update.
14974         * defs.h (deprecated_set_hook): Remove.
14975         * top.c (deprecated_set_hook): Remove.
14976
14977 2014-01-13  Pedro Alves  <[email protected]>
14978
14979         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14980         the tracepoint if the PC is a pseudo-register.
14981
14982 2014-01-13  Tom Tromey  <[email protected]>
14983
14984         * defs.h (XCALLOC): Remove.
14985         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14986         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14987         * dwarf2loc.c (allocate_piece_closure): Likewise.
14988         * elfread.c (elf_symfile_segments): Likewise.
14989         (elf_symfile_segments): Likewise.
14990         * gdbtypes.c (copy_type_recursive): Likewise.
14991         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14992         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14993         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14994         XCALLOC.
14995         * mt-tdep.c (mt_gdbarch_init): Likewise.
14996         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14997         XCALLOC.
14998         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14999         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15000         * registry.c (registry_alloc_data): Likewise.
15001         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15002         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15003         * serial.c (serial_fdopen_ops): Likewise.
15004         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15005         XCALLOC.
15006         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15007         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15008         not XCALLOC.
15009
15010 2014-01-13  Tom Tromey  <[email protected]>
15011
15012         * defs.h (XMALLOC): Remove.
15013         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15014         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15015         * cli-out.c (struct ui_out *): Likewise.
15016         * cli/cli-dump.c (add_dump_command): Likewise.
15017         (add_dump_command): Likewise.
15018         * complaints.c (get_complaints): Likewise.
15019         (find_complaint): Likewise.
15020         * dwarf2-frame.c (execute_cfa_program): Likewise.
15021         * dwarf2read.c (abbrev_table_read_table): Likewise.
15022         * gdbarch.sh: Likewise.
15023         * gdbarch.c: Rebuild.
15024         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15025         * interps.c (interp_new): Likewise.
15026         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15027         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15028         * mi/mi-console.c (mi_console_file_new): Likewise.
15029         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15030         * mi/mi-out.c (mi_out_new): Likewise.
15031         * mi/mi-parse.c (mi_parse): Likewise.
15032         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15033         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15034         * observer.c (xalloc_observer_list_node): Likewise.
15035         * regcache.c (regcache_xmalloc_1): Likewise.
15036         * reggroups.c (reggroup_new): Likewise.
15037         (_initialize_reggroup): Likewise.
15038         * registry.c (register_data_with_cleanup): Likewise.
15039         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15040         * ser-base.c (serial_ttystate): Likewise.
15041         * ser-mingw.c (make_pipe_state): Likewise.
15042         * ser-pipe.c (pipe_open): Likewise.
15043         * serial.c (serial_open): Likewise.
15044         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15045         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15046         (tui_alloc_win_info): Likewise.
15047         (tui_add_content_elements): Likewise.
15048         * tui/tui-file.c (tui_file_new): Likewise.
15049         * tui/tui-out.c (tui_out_new): Likewise.
15050         * ui-file.c (mem_file_new): Likewise.
15051         * ui-out.c (push_level): Likewise.
15052         (make_cleanup_ui_out_end): Likewise.
15053         (append_header_to_list): Likewise.
15054         (ui_out_new): Likewise.
15055         * user-regs.c (user_reg_add_builtin): Likewise.
15056
15057 2014-01-13  Tom Tromey  <[email protected]>
15058
15059         * defs.h (XZALLOC): Remove.
15060         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15061         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15062         (get_ada_tasks_inferior_data): Likewise.
15063         * auto-load.c (get_auto_load_pspace_data): Likewise.
15064         * auxv.c (get_auxv_inferior_data): Likewise.
15065         * bfd-target.c (target_bfd_reopen): Likewise.
15066         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15067         (deprecated_insert_raw_breakpoint): Likewise.
15068         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15069         * corelow.c (core_open): Likewise.
15070         * darwin-nat.c (darwin_check_new_threads): Likewise.
15071         (darwin_attach_pid): Likewise.
15072         * dummy-frame.c (dummy_frame_push): Likewise.
15073         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15074         * dwarf2loc.c (allocate_piece_closure): Likewise.
15075         * elfread.c (elf_symfile_segments): Likewise.
15076         * eval.c (ptrmath_type_p): Likewise.
15077         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15078         * gdbtypes.c (alloc_type_arch): Likewise.
15079         (alloc_type_instance): Likewise.
15080         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15081         * inf-child.c (inf_child_can_use_agent): Likewise.
15082         * inflow.c (get_inflow_inferior_data): Likewise.
15083         * infrun.c (save_infcall_suspend_state): Likewise.
15084         * jit.c (jit_reader_load): Likewise.
15085         (get_jit_objfile_data): Likewise.
15086         (get_jit_program_space_data): Likewise.
15087         (jit_object_open_impl): Likewise.
15088         (jit_symtab_open_impl): Likewise.
15089         (jit_block_open_impl): Likewise.
15090         (jit_frame_sniffer): Likewise.
15091         * linux-fork.c (add_fork): Likewise.
15092         * maint.c (make_command_stats_cleanup): Likewise.
15093         * objfiles.c (get_objfile_pspace_data): Likewise.
15094         * opencl-lang.c (struct lval_closure): Likewise.
15095         * osdata.c (osdata_start_osdata): Likewise.
15096         * progspace.c (new_address_space): Likewise.
15097         (add_program_space): Likewise.
15098         * remote-sim.c (get_sim_inferior_data): Likewise.
15099         * sh-tdep.c (sh_gdbarch_init): Likewise.
15100         * skip.c (Ignore): Likewise.
15101         (skip_delete_command): Likewise.
15102         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15103         (library_list_start_library): Likewise.
15104         (solib_aix_current_sos): Likewise.
15105         * solib-darwin.c (get_darwin_info): Likewise.
15106         (darwin_current_sos): Likewise.
15107         * solib-dsbt.c (get_dsbt_info): Likewise.
15108         * solib-ia64-hpux.c (new_so_list): Likewise.
15109         (ia64_hpux_get_solib_linkage_addr): Likewise.
15110         * solib-spu.c (append_ocl_sos): Likewise.
15111         (spu_current_sos): Likewise.
15112         * solib-svr4.c (get_svr4_info): Likewise.
15113         (svr4_keep_data_in_core): Likewise.
15114         (library_list_start_library): Likewise.
15115         (svr4_default_sos): Likewise.
15116         (svr4_read_so_list): Likewise.
15117         * solib-target.c (library_list_start_library): Likewise.
15118         (solib_target_current_sos): Likewise.
15119         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15120         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15121         * symfile.c (default_symfile_segments): Likewise.
15122         * target-descriptions.c (tdesc_data_init): Likewise.
15123         (tdesc_create_reg): Likewise.
15124         (struct tdesc_type *): Likewise.
15125         (tdesc_create_vector): Likewise.
15126         (tdesc_set_struct_size): Likewise.
15127         (struct tdesc_type *): Likewise.
15128         (tdesc_free_feature): Likewise.
15129         (tdesc_create_feature): Likewise.
15130         * windows-nat.c (windows_add_thread): Likewise.
15131         (windows_make_so): Likewise.
15132         * xml-support.c (gdb_xml_body_text): Likewise.
15133         (gdb_xml_create_parser_and_cleanup): Likewise.
15134         (xml_process_xincludes): Likewise.
15135         * xml-syscall.c (allocate_syscalls_info): Likewise.
15136         (syscall_create_syscall_desc): Likewise.
15137
15138 2014-01-12  Sergio Durigan Junior  <[email protected]>
15139
15140         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15141         function, with code from i386_stap_parse_special_token.
15142         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15143         (i386_stap_parse_special_token): Move code to the two functions
15144         above; simplify it.
15145
15146 2014-01-09  Pedro Alves  <[email protected]>
15147             Hui Zhu  <[email protected]>
15148
15149         PR gdb/16101
15150         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15151         bp_err_string.  Don't mark the location shlib_disabled if the
15152         error thrown wasn't a generic or memory error.  Catch errors
15153         thrown while inserting breakpoints in overlayed code.  Output
15154         error message of software breakpoints.
15155         * remote.c (remote_insert_breakpoint): If this breakpoint has
15156         target-side commands but this stub doesn't support Z0 packets,
15157         throw NOT_SUPPORTED_ERROR error.
15158         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15159         * target.h (target_insert_breakpoint): Extend comment.
15160         (target_insert_hw_breakpoint): Add comment.
15161
15162 2014-01-08  Pedro Alves  <[email protected]>
15163
15164         * remote.c (remote_add_thread): Add threads silently if starting
15165         up.
15166         (remote_notice_new_inferior): If in all-stop, and starting up,
15167         don't call notice_new_inferior.
15168         (get_current_thread): New function, factored out from ...
15169         (add_current_inferior_and_thread): ... this.  Adjust.
15170         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15171         found any thread, then select the remote's current thread as GDB's
15172         current thread too.
15173
15174 2014-01-08  Joel Brobecker  <[email protected]>
15175
15176         * NEWS: Create a new section for the next release branch.
15177         Rename the section of the current branch, now that it has
15178         been cut.
15179
15180 2014-01-08  Joel Brobecker  <[email protected]>
15181
15182         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15183         * version.in: Bump version to 7.7.50.DATE-cvs.
15184
15185 2014-01-08  Yao Qi  <[email protected]>
15186
15187         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15188         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15189         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15190
15191 2014-01-08  Yao Qi  <[email protected]>
15192
15193         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15194         return value of bfd_get_filename to symbol_file_add_from_bfd.
15195
15196 2014-01-08  Pierre Muller  <[email protected]>
15197
15198         Fix PR16201.
15199         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15200         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15201         to prim_record_mininal_symbol_and_info.
15202         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15203         in call to prim_record_minimal_symbol_and_info.
15204         (read_pe_exported_syms): Set index field of section_data.
15205
15206 2014-01-07  Andrew Pinski  <[email protected]>
15207
15208         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15209         * features/aarch64.c: Regenerate.
15210
15211 2014-01-07  Andreas Schwab  <[email protected]>
15212
15213         * target.c (return_null): Define.
15214         (update_current_target): Use it instead of return_zero for
15215         functions that return a pointer.
15216
15217 2014-01-07  Edjunior Barbosa Machado  <[email protected]>
15218
15219         * source.c (add_path): Fix check for duplicated paths in the previously
15220         included paths.
15221
15222 2014-01-07  Honggyu Kim  <[email protected]>
15223
15224         * ada-lang.c: Remove duplicated include statements.
15225         * alphabsd-nat.c: Ditto.
15226         * amd64-darwin-tdep.c: Ditto.
15227         * amd64fbsd-nat.c: Ditto.
15228         * auto-load.c: Ditto.
15229         * ax-gdb.c: Ditto.
15230         * breakpoint.c: Ditto.
15231         * dbxread.c: Ditto.
15232         * fork-child.c: Ditto.
15233         * gdb_usleep.c: Ditto.
15234         * i386-darwin-tdep.c: Ditto.
15235         * i386fbsd-nat.c: Ditto.
15236         * infcmd.c: Ditto.
15237         * inferior.c: Ditto.
15238         * jv-lang.c: Ditto.
15239         * linux-nat.c: Ditto.
15240         * linux-tdep.c: Ditto.
15241         * m68kbsd-nat.c: Ditto.
15242         * m68klinux-nat.c: Ditto.
15243         * microblaze-tdep.c: Ditto.
15244         * mips-linux-tdep.c: Ditto.
15245         * mn10300-tdep.c: Ditto.
15246         * nto-tdep.c: Ditto.
15247         * opencl-lang.c: Ditto.
15248         * osdata.c: Ditto.
15249         * printcmd.c: Ditto.
15250         * regcache.c: Ditto.
15251         * remote-m32r-sdi.c: Ditto.
15252         * remote.c: Ditto.
15253         * symfile.c: Ditto.
15254         * symtab.c: Ditto.
15255         * tilegx-linux-nat.c: Ditto.
15256         * tilegx-tdep.c: Ditto.
15257         * tracepoint.c: Ditto.
15258         * valops.c: Ditto.
15259         * vaxbsd-nat.c: Ditto.
15260         * windows-nat.c: Ditto.
15261         * xtensa-tdep.c: Ditto.
15262
15263 2014-01-07  Yao Qi  <[email protected]>
15264
15265         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15266
15267 2014-01-07  Yao Qi  <[email protected]>
15268             Joel Brobecker  <[email protected]>
15269
15270         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15271         (pdc_write_regs): Likewise.
15272         (fetch_regs_kernel_thread): Likewise.
15273         (store_regs_kernel_thread): Likewise.
15274
15275 2014-01-07  Joel Brobecker  <[email protected]>
15276
15277         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15278         tagged type objects to their actual type.
15279
15280 2014-01-07  Joel Brobecker  <[email protected]>
15281
15282         * ada-valprint.c (print_field_values): Add "language" parameter.
15283         Update calls to print_field_values and print_variant_part.
15284         Pass new parameter "language" in call to val_print instead
15285         of "current_language".  Replace call to ada_val_print by call
15286         to val_print.
15287         (print_variant_part): Add "language" parameter.
15288         (ada_val_print_struct_union): Update call to print_field_values.
15289
15290 2014-01-07  Joel Brobecker  <[email protected]>
15291
15292         * ada-valprint.c (ui_memcpy): Delete.
15293         (ada_print_floating): Update documentation.  Add empty line
15294         between between function documentation and implementation.
15295         Delete variable "buffer".  Use ui_file_xstrdup in place of
15296         ui_file_put.  Minor adjustments following this change.
15297
15298 2014-01-07  Joel Brobecker  <[email protected]>
15299
15300         * ada-valprint.c (ada_val_print_string): New function,
15301         extracted from ada_val_print_array.
15302         (ada_val_print_array): Replace extracted code by call
15303         to ada_val_print_string followed by a return.  Move
15304         "else" branch to the function's top block.
15305
15306 2014-01-07  Joel Brobecker  <[email protected]>
15307
15308         * ada-valprint.c (ada_val_print_array): Move implementation
15309         down.  Rename parameter "offset" and "val" into "offset_aligned"
15310         and "original_value" respectively.  Add parameter "offset".
15311
15312 2014-01-07  Joel Brobecker  <[email protected]>
15313
15314         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15315         re-organizing the code. Change the "???" message printed
15316         when target type is a TYPE_CODE_UNDEF into
15317         "<ref to undefined type>".
15318
15319 2014-01-07  Joel Brobecker  <[email protected]>
15320
15321         * ada-valprint.c (print_record): Delete, implementation inlined...
15322         (ada_val_print_struct_union): ... here.  Remove call to
15323         ada_check_typedef in inlined implementation.
15324
15325 2014-01-07  Joel Brobecker  <[email protected]>
15326
15327         * ada-valprint.c (ada_val_print_gnat_array): New function,
15328         extracted from ada_val_print_1;
15329         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15330         (ada_val_print_flt, ada_val_print_struct_union)
15331         (ada_val_print_ref): Likewise.
15332         (ada_val_print_1): Delete variables i and elttype.
15333         Replace extracted-out code by call to corresponding
15334         new functions.
15335
15336 2014-01-07  Joel Brobecker  <[email protected]>
15337
15338         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15339
15340 2014-01-07  Joel Brobecker  <[email protected]>
15341
15342         * ada-valprint.c (ada_val_print_1): Replace calls to
15343         ada_val_print_1 by calls to val_print.
15344
15345 2014-01-07  Joel Brobecker  <[email protected]>
15346
15347         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15348         Update calls to self accordingly.  Replace calls to c_val_print
15349         by calls to val_print.
15350
15351 2014-01-07  Joel Brobecker  <[email protected]>
15352
15353         * ada-valprint.c (print_record): Delete declaration.
15354         (adjust_type_signedness, ada_val_print_1): Likewise.
15355         (ada_val_print): Move function implementation down.
15356         (print_variant_part, print_field_values, print_record):
15357         Move function implementation up.
15358
15359 2014-01-07  Joel Brobecker  <[email protected]>
15360
15361         * python/py-type.c (typy_get_name): New function.
15362         (type_object_getset): Add entry for attribute "name".
15363         * NEWS: Add entry mentioning this new attribute.
15364
15365 2014-01-07  Yao Qi  <[email protected]>
15366
15367         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15368         statement.
15369
15370 2014-01-07  Yao Qi  <[email protected]>
15371
15372         * gnu-nat.c (info_port_rights): Add qualifier const to
15373         argument args.
15374
15375 2014-01-07  Yao Qi  <[email protected]>
15376
15377         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15378
15379 2014-01-07  Yao Qi  <[email protected]>
15380
15381         * gnu-nat.c (make_inf) Update declaration.
15382         (make_inf): Make it static.
15383         (inf_set_traced): Likewise.
15384         (inf_port_to_thread, inf_task_died_status): Likewise.
15385
15386 2014-01-07  Yao Qi  <[email protected]>
15387
15388         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15389
15390 2014-01-07  Yao Qi  <[email protected]>
15391
15392         * gnu-nat.c (_initialize_gnu_nat): Declare.
15393
15394 2014-01-07  Yao Qi  <[email protected]>
15395
15396         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15397         'enum bfd_endian'.
15398         (struct gdbarch_info) <byte_order>: Change type to
15399         'enum bfd_endian'.
15400         <byte_order_for_code>: Likewise.
15401         * gdbarch.c, gdbarch.h: Regenerated.
15402
15403 2014-01-06  Sasha Smundak  <[email protected]>
15404
15405         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15406
15407 2014-01-06  Tom Tromey  <[email protected]>
15408
15409         * doublest.c (convert_doublest_to_floatformat): Use const, not
15410         CONST.
15411         * somread.c (som_symtab_read): Likewise.
15412
15413 2014-01-07  Hui Zhu  <[email protected]>
15414
15415         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15416         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15417         (gdb_bfd_fopen): Ditto.
15418         (gdb_bfd_openr): Ditto.
15419         (gdb_bfd_openw): Ditto.
15420         (gdb_bfd_openr_iovec): Ditto.
15421         (gdb_bfd_fdopenr): Ditto.
15422         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15423         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15424         with xstrdup.
15425         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15426         with xstrdup.
15427         * symfile-mem.c (symbol_file_add_from_memory): Removed
15428         gdb_bfd_stash_filename.
15429
15430 2014-01-03  Doug Evans  <[email protected]>
15431
15432         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15433         output.
15434
15435 2014-01-01  Joel Brobecker  <[email protected]>
15436
15437         Update year range in copyright notice of all files.
15438
15439 2014-01-01  Joel Brobecker  <[email protected]>
15440
15441         * top.c (print_gdb_version): Set copyright year to 2014.
15442
15443 2014-01-01  Joel Brobecker  <[email protected]>
15444
15445         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15446
15447 For older changes see ChangeLog-2013.
15448 \f
15449 Local Variables:
15450 mode: change-log
15451 left-margin: 8
15452 fill-column: 74
15453 version-control: never
15454 coding: utf-8
15455 End:
This page took 0.942618 seconds and 4 git commands to generate.