checkpoint: print index of new checkpoint in response message
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
2
3 Pushed by Joel Brobecker <brobecker@adacore.com>
4 * linux-fork.c (checkpoint_command): Print index of new
5 checkpoint in response message.
6
7 2014-11-23 Yao Qi <yao@codesourcery.com>
8
9 * valprint.c (read_string): Move local variables 'found_nul',
10 'chunksize' and 'limit' to inner scope. Update comments.
11
12 2014-11-22 Doug Evans <xdje42@gmail.com>
13
14 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
15 function comment.
16 (search_symbols): Fix comments and whitespace.
17
18 2014-11-22 Doug Evans <xdje42@gmail.com>
19
20 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
21
22 2014-11-21 Doug Evans <dje@google.com>
23
24 * psymtab.c (psymtab_search_name): Fix whitespace.
25
26 2014-11-21 Yao Qi <yao@codesourcery.com>
27
28 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
29 errno.
30 * gnulib/import/Makefile.am: Re-generated.
31 * gnulib/import/Makefile.in: Likewise.
32 * gnulib/import/m4/gnulib-cache.m4: Likewise.
33
34 2014-11-21 Yao Qi <yao@codesourcery.com>
35
36 * gdb_wchar.h: Include wchar.h and wctype.h.
37 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
38 include wchar.h and wctype.h.
39 Don't check HAVE_WCHAR_H.
40
41 2014-11-21 Yao Qi <yao@codesourcery.com>
42
43 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
44 and wctype-h.
45 * gnulib/import/Makefile.am: Re-generated.
46 * gnulib/import/Makefile.in: Likewise.
47 * gnulib/import/m4/gnulib-cache.m4: Likewise.
48
49 2014-11-21 Yao Qi <yao@codesourcery.com>
50
51 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
52 memchr.
53 * gnulib/import/Makefile.am: Re-generated.
54 * gnulib/import/Makefile.in: Likewise.
55 * gnulib/import/m4/gnulib-cache.m4: Likewise.
56
57 2014-11-21 Yao Qi <yao@codesourcery.com>
58
59 * common/common-defs.h: Include alloca.h
60 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
61 * configure: Re-generated.
62 * defs.h: Remove code handling alloca.
63 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
64 or not.
65
66 2014-11-21 Yao Qi <yao@codesourcery.com>
67
68 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
69 alloca.
70 * gnulib/import/Makefile.am: Re-generated.
71 * gnulib/import/Makefile.in: Likewise..
72 * gnulib/import/m4/gnulib-cache.m4: Likewise.
73
74 2014-11-21 Yao Qi <yao@codesourcery.com>
75
76 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
77 alphabetical order.
78
79 2014-11-21 Joel Brobecker <brobecker@adacore.com>
80
81 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
82 flag_unsigned if HIGH_BOUND is constant and negative.
83
84 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
85
86 PR breakpoints/10737
87 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
88 modifier from "struct gdbarch" when compiling without Expat (XML)
89 support.
90 (get_syscall_by_number): Likewise.
91 (get_syscall_by_name): Likewise.
92 (get_syscall_names): Likewise.
93
94 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
95
96 PR breakpoints/10737
97 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
98 set_xml_syscall_file_name to provide gdbarch.
99 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
100 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
101 * breakpoint.c (print_it_catch_syscall): Adjust call to
102 get_syscall_by_number to provide gdbarch.
103 (print_one_catch_syscall): Likewise.
104 (print_mention_catch_syscall): Likewise.
105 (print_recreate_catch_syscall): Likewise.
106 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
107 and get_syscall_by_name to provide gdbarch.
108 (catch_syscall_completer): Adjust call to get_syscall_names to
109 provide gdbarch.
110 * gdbarch.c: Regenerate.
111 * gdbarch.h: Likewise.
112 * gdbarch.sh: Forward declare "struct syscalls_info".
113 (xml_syscall_file): New variable.
114 (syscalls_info): Likewise.
115 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
116 set_xml_syscall_file_name to provide gdbarch.
117 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
118 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
119 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
120 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
121 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
122 * xml-syscall.c: Include gdbarch.h.
123 (set_xml_syscall_file_name): Accept gdbarch parameter.
124 (get_syscall_by_number): Likewise.
125 (get_syscall_by_name): Likewise.
126 (get_syscall_names): Likewise.
127 (my_gdb_datadir): Delete global variable.
128 (struct syscalls_info) <my_gdb_datadir>: New variable.
129 (struct syscalls_info) <sysinfo>: Rename variable to
130 "syscalls_info".
131 (sysinfo): Delete global variable.
132 (have_initialized_sysinfo): Likewise.
133 (xml_syscall_file): Likewise.
134 (sysinfo_free_syscalls_desc): Rename to...
135 (syscalls_info_free_syscalls_desc): ... this.
136 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
137 code to the new layout of "struct syscalls_info".
138 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
139 "syscalls_info".
140 (syscall_create_syscall_desc): Likewise.
141 (syscall_start_syscall): Likewise.
142 (syscall_parse_xml): Likewise.
143 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
144 (init_sysinfo): Rename to...
145 (init_syscalls_info): ...this. Add gdbarch as a parameter.
146 Adjust function to deal with gdbarch.
147 (xml_get_syscall_number): Delete parameter sysinfo. Accept
148 gdbarch as a parameter. Adjust code.
149 (xml_get_syscall_name): Likewise.
150 (xml_list_of_syscalls): Likewise.
151 (set_xml_syscall_file_name): Accept gdbarch as parameter.
152 (get_syscall_by_number): Likewise.
153 (get_syscall_by_name): Likewise.
154 (get_syscall_names): Likewise.
155 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
156 (get_syscall_by_number): Likewise.
157 (get_syscall_by_name): Likewise.
158 (get_syscall_names): Likewise.
159
160 2014-11-20 Doug Evans <xdje42@gmail.com>
161
162 Split struct symtab into two: struct symtab and compunit_symtab.
163 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
164 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
165 to "struct compunit_symtab *". All callers updated.
166 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
167 "struct symtab *" argument to "struct compunit_symtab *".
168 All callers updated.
169 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
170 result to "struct compunit_symtab *". All callers updated.
171 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
172 Change result to "struct compunit_symtab *". All callers updated.
173 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
174 hange type to "struct compunit_symtab *". All uses updated.
175 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
176 Change type to "struct compunit_symtab *". All uses updated.
177 * buildsym.c (struct buildsym_compunit): New struct.
178 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
179 (buildsym_compunit): New static global.
180 (finish_block_internal): Update to fetch objfile from
181 buildsym_compunit.
182 (make_blockvector): Delete objfile argument.
183 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
184 debugformat, producer.
185 (start_buildsym_compunit): New function.
186 (free_buildsym_compunit): Renamed from free_subfiles_list.
187 All callers updated.
188 (patch_subfile_names): Rewrite to use buildsym_compunit.
189 (get_compunit_symtab): New function.
190 (get_macro_table): Delete argument comp_dir. All callers updated.
191 (start_symtab): Change result to "struct compunit_symtab *".
192 All callers updated. Create the subfile of the main source file.
193 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
194 (reset_symtab_globals): Update.
195 (end_symtab_get_static_block): Update to use buildsym_compunit.
196 (end_symtab_without_blockvector): Rewrite.
197 (end_symtab_with_blockvector): Change result to
198 "struct compunit_symtab *". All callers updated.
199 Update to use buildsym_compunit. Don't set symtab->dirname,
200 instead set it in the compunit.
201 Explicitly make sure main symtab is first in its list.
202 Set debugformat, producer, blockvector, block_line_section, and
203 macrotable in the compunit.
204 (end_symtab_from_static_block): Change result to
205 "struct compunit_symtab *". All callers updated.
206 (end_symtab, end_expandable_symtab): Ditto.
207 (set_missing_symtab): Change symtab argument to
208 "struct compunit_symtab *". All callers updated.
209 (augment_type_symtab): Ditto.
210 (record_debugformat): Update to use buildsym_compunit.
211 (record_producer): Update to use buildsym_compunit.
212 * buildsym.h (struct subfile) <dirname>: Delete.
213 <producer, debugformat>: Delete.
214 <buildsym_compunit>: New member.
215 (get_compunit_symtab): Declare.
216 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
217 from primary_symtab. Change type to "struct compunit_symtab *".
218 All uses updated.
219 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
220 All callers updated.
221 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
222 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
223 symtab. Change type to "struct compunit_symtab *". All uses updated.
224 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
225 All callers updated.
226 (dw2_find_last_source_symtab): Ditto.
227 (dw2_lookup_symbol): Ditto.
228 (recursively_find_pc_sect_compunit_symtab): Renamed from
229 recursively_find_pc_sect_symtab. Change result to
230 "struct compunit_symtab *". All callers updated.
231 (dw2_find_pc_sect_compunit_symtab): Renamed from
232 dw2_find_pc_sect_symtab. Change result to
233 "struct compunit_symtab *". All callers updated.
234 (get_compunit_symtab): Renamed from get_symtab. Change result to
235 "struct compunit_symtab *". All callers updated.
236 (recursively_compute_inclusions): Change type of immediate_parent
237 argument to "struct compunit_symtab *". All callers updated.
238 (compute_compunit_symtab_includes): Renamed from
239 compute_symtab_includes. All callers updated. Rewrite to compute
240 includes of compunit_symtabs and not symtabs.
241 (process_full_comp_unit): Update to work with struct compunit_symtab.
242 (process_full_type_unit): Ditto.
243 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
244 (dwarf_decode_lines): Remove special case handling of main subfile.
245 (macro_start_file): Delete argument comp_dir. All callers updated.
246 (dwarf_decode_macro_bytes): Ditto.
247 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
248 use struct compunit_symtab.
249 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
250 * jit.c (finalize_symtab): Build compunit_symtab.
251 * jv-lang.c (get_java_class_symtab): Change result to
252 "struct compunit_symtab *". All callers updated.
253 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
254 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
255 comp_dir. Change type to "struct compunit_symtab *".
256 All uses updated.
257 (new_macro_table): Change comp_dir argument to cust,
258 "struct compunit_symtab *". All callers updated.
259 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
260 nr_primary_symtabs. All uses updated.
261 (count_symtabs_and_blocks): Update to handle compunits.
262 (report_command_stats): Update output, "primary symtabs" renamed to
263 "compunits".
264 * mdebugread.c (new_symtab): Change result to
265 "struct compunit_symtab *". All callers updated.
266 (parse_procedure): Change type of search_symtab argument to
267 "struct compunit_symtab *". All callers updated.
268 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
269 separate loop.
270 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
271 symtabs. Change type to "struct compunit_symtab *". All uses updated.
272 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
273 All uses updated.
274 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
275 All uses updated.
276 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
277 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
278 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
279 symtab. Change type to "struct compunit_symtab *". All uses updated.
280 * psymtab.c (psymtab_to_symtab): Change result type to
281 "struct compunit_symtab *". All callers updated.
282 (find_pc_sect_compunit_symtab_from_partial): Renamed from
283 find_pc_sect_symtab_from_partial. Change result type to
284 "struct compunit_symtab *". All callers updated.
285 (lookup_symbol_aux_psymtabs): Change result type to
286 "struct compunit_symtab *". All callers updated.
287 (find_last_source_symtab_from_partial): Ditto.
288 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
289 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
290 and macro_table from compunit.
291 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
292 type to "struct compunit_symtab *". All callers updated.
293 (debug_qf_lookup_symbol): Ditto.
294 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
295 debug_qf_find_pc_sect_symtab, change result type to
296 "struct compunit_symtab *". All callers updated.
297 * symfile.c (allocate_symtab): Delete objfile argument.
298 New argument cust.
299 (allocate_compunit_symtab): New function.
300 (add_compunit_symtab_to_objfile): New function.
301 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
302 Change result type to "struct compunit_symtab *". All uses updated.
303 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
304 Change result type to "struct compunit_symtab *". All uses updated.
305 * symmisc.c (print_objfile_statistics): Compute blockvector count in
306 separate loop.
307 (dump_symtab_1): Update test for primary source symtab.
308 (maintenance_info_symtabs): Update to handle compunit symtabs.
309 (maintenance_check_symtabs): Ditto.
310 * symtab.c (set_primary_symtab): Delete.
311 (compunit_primary_filetab): New function.
312 (compunit_language): New function.
313 (iterate_over_some_symtabs): Change type of arguments "first",
314 "after_last" to "struct compunit_symtab *". All callers updated.
315 Update to loop over symtabs in each compunit.
316 (error_in_psymtab_expansion): Rename symtab argument to cust,
317 and change type to "struct compunit_symtab *". All callers updated.
318 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
319 Change result type to "struct compunit_symtab *". All callers updated.
320 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
321 Change result type to "struct compunit_symtab *". All callers updated.
322 (find_pc_sect_line): Only loop over symtabs within selected compunit
323 instead of all symtabs in the objfile.
324 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
325 <compunit_symtab> New member.
326 <block_line_section>: Moved to compunit_symtab.
327 <locations_valid>: Ditto.
328 <epilogue_unwind_valid>: Ditto.
329 <macro_table>: Ditto.
330 <dirname>: Ditto.
331 <debugformat>: Ditto.
332 <producer>: Ditto.
333 <objfile>: Ditto.
334 <call_site_htab>: Ditto.
335 <includes>: Ditto.
336 <user>: Ditto.
337 <primary>: Delete
338 (SYMTAB_COMPUNIT): New macro.
339 (SYMTAB_BLOCKVECTOR): Update definition.
340 (SYMTAB_OBJFILE): Update definition.
341 (SYMTAB_DIRNAME): Update definition.
342 (struct compunit_symtab): New type. Common members among all source
343 symtabs within a compilation unit moved here. All uses updated.
344 (COMPUNIT_OBJFILE): New macro.
345 (COMPUNIT_FILETABS): New macro.
346 (COMPUNIT_DEBUGFORMAT): New macro.
347 (COMPUNIT_PRODUCER): New macro.
348 (COMPUNIT_DIRNAME): New macro.
349 (COMPUNIT_BLOCKVECTOR): New macro.
350 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
351 (COMPUNIT_LOCATIONS_VALID): New macro.
352 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
353 (COMPUNIT_CALL_SITE_HTAB): New macro.
354 (COMPUNIT_MACRO_TABLE): New macro.
355 (ALL_COMPUNIT_FILETABS): New macro.
356 (compunit_symtab_ptr): New typedef.
357 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
358
359 2014-11-20 Joel Brobecker <brobecker@adacore.com>
360
361 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
362 if the TYPE_CODE of range_type's base type does not match
363 the TYPE_CODE of encoding_type's base type.
364
365 2014-11-19 Joel Brobecker <brobecker@adacore.com>
366
367 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
368 it starts with '<'.
369
370 2014-11-19 Joel Brobecker <brobecker@adacore.com>
371
372 * ada-lang.c (ada_is_redundant_range_encoding): New function.
373 (ada_is_redundant_index_type_desc): New function.
374 (to_fixed_array_type): Ignore parallel XA type if redundant.
375
376 2014-11-19 Joel Brobecker <brobecker@adacore.com>
377
378 * ada-lang.c (constrained_packed_array_type): Set the length
379 of the return array as if both bounds where zero if that
380 returned array's index type is dynamic.
381
382 2014-11-19 Yao Qi <yao@codesourcery.com>
383
384 * config/i386/go32.mh (CC): Remove.
385
386 2014-11-18 Doug Evans <xdje42@gmail.com>
387
388 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
389 updated.
390
391 2014-11-18 Doug Evans <xdje42@gmail.com>
392
393 * buildsym.c (buildsym_objfile): New static global.
394 (buildsym_comp_dir): New static global.
395 (finish_block_internal): Delete arg objfile. All callers updated.
396 (finish_block): Delete arg objfile. All callers updated.
397 (start_subfile): Delete arg dirname. All callers updated.
398 (patch_subfile_names): Update buildsym_comp_dir.
399 (get_macro_table): Delete arg objfile. All callers updated.
400 (start_symtab): New arg objfile. All callers updated.
401 Rename arg dirname to comp_dir.
402 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
403 (end_symtab_get_static_block): Delete arg objfile. All callers
404 updated.
405 (end_symtab_without_blockvector): Ditto.
406 (end_symtab_with_blockvector): Ditto.
407 (end_symtab_from_static_block): Ditto.
408 (end_symtab): Ditto.
409 (end_expandable_symtab): Ditto.
410 (augment_type_symtab): Ditto.
411 * coffread.c (coff_start_symtab): New arg objfile. All callers
412 updated.
413
414 2014-11-18 Doug Evans <xdje42@gmail.com>
415
416 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
417 updated.
418
419 2014-11-18 Doug Evans <xdje42@gmail.com>
420
421 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
422 symtab.dirname updated to use it.
423
424 2014-11-18 Doug Evans <xdje42@gmail.com>
425
426 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
427 symtab.objfile updated to use it.
428
429 2014-11-18 Doug Evans <xdje42@gmail.com>
430
431 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
432
433 2014-11-18 Doug Evans <xdje42@gmail.com>
434
435 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
436 SYMBOL_OBJFILE.
437 * findvar.c (default_read_var_value): Ditto.
438 * jv-lang.c (add_class_symtab_symbol): Ditto.
439 * parse.c (operator_check_standard): Ditto.
440 * printcmd.c (address_info): Ditto.
441 * symtab.c (fixup_symbol_section): Ditto.
442 (skip_prologue_sal): Ditto.
443 * tracepoint.c (scope_info): Ditto.
444 * valops.c (find_function_in_inferior): Ditto.
445 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
446 * python/py-symbol.c (set_symbol): Ditto.
447
448 2014-11-18 Doug Evans <xdje42@gmail.com>
449
450 * buildsym.c (main_subfile): New static global.
451 (free_subfiles_list): New function.
452 (start_symtab): Set main_subfile.
453 (restart_symtab): Replace init of subfiles, current_subfile with
454 call to free_subfiles_list.
455 (watch_main_source_file_lossage): Use main_subfile.
456 (reset_symtab_globals): Replace init of current_subfile with call
457 to free_subfiles_list.
458 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
459 functions, split out from ...
460 (end_symtab_from_static_block): ... here. Rewrite to call them.
461
462 2014-11-18 Doug Evans <xdje42@gmail.com>
463
464 The result of symtab expansion is always a primary symtab.
465 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
466 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
467 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
468 (psymtab_to_symtab): Add comment and assert.
469 (map_matching_symbols_psymtab): Remove unnecessary test for
470 non-primary symtab.
471
472 2014-11-15 Doug Evans <xdje42@gmail.com>
473
474 PR symtab/17559
475 * symtab.c (find_pc_line_symtab): New function.
476 * symtab.h (find_pc_line_symtab): Declare.
477 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
478 find_pc_symtab.
479 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
480 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
481 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
482 * tui/tui-win.c (make_visible_with_new_height): Ditto.
483 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
484 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
485
486 2014-11-15 Doug Evans <xdje42@gmail.com>
487
488 * symtab.c (expand_symtab_containing_pc): Renamed from
489 find_pc_sect_symtab_via_partial. All callers updated.
490
491 2014-11-15 Yao Qi <yao@codesourcery.com>
492
493 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
494
495 2014-11-14 Joel Brobecker <brobecker@adacore.com>
496
497 * common/common-defs.h: Move <stdarg.h> #include ahead of
498 <stdio.h> #include.
499
500 2014-11-14 Pedro Alves <palves@redhat.com>
501
502 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
503 [!PHONY_ICONV] (gdb_iconv): New function.
504 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
505
506 2014-11-13 Doug Evans <dje@google.com>
507
508 PR symtab/17591
509 * dwarf2read.c (find_slot_in_mapped_hash): Handle
510 "(anonymous namespace)".
511
512 2014-11-13 Doug Evans <dje@google.com>
513
514 * dwarf2read.c (update_enumeration_type_from_children): Avoid
515 infinite loop.
516
517 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
518
519 * NEWS (maint set target-async): Fix typo.
520
521 2014-11-12 Pedro Alves <palves@redhat.com>
522
523 * infrun.c (enum infwait_states, infwait_state): Delete.
524
525 2014-11-12 Pedro Alves <palves@redhat.com>
526
527 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
528 Rewrite stepping over a permanent breakpoint.
529 (thread_still_needs_step_over, proceed): Don't set
530 stepping_over_breakpoint for permanent breakpoints.
531 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
532 single-step breakpoints out of the target on hardware step
533 targets.
534 (process_event_stop_test): If stepping a permanent breakpoint
535 doesn't hit the step-resume breakpoint, delete the step-resume
536 breakpoint.
537 (switch_back_to_stepped_thread): Also check if the stepped thread
538 has advanced already on hardware step targets.
539 (currently_stepping): Return true if the thread stepped a
540 breakpoint.
541
542 2014-11-12 Pedro Alves <palves@redhat.com>
543
544 Mark locations as permanent, not the whole breakpoint.
545 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
546 (mark_breakpoints_out): Don't mark permanent breakpoints as
547 uninserted.
548 (breakpoint_init_inferior): Use mark_breakpoints_out.
549 (breakpoint_here_p): Adjust.
550 (bpstat_stop_status, describe_other_breakpoints): Remove handling
551 of permanent breakpoints.
552 (make_breakpoint_permanent): Mark each location as permanent,
553 instead of marking the breakpoint.
554 (add_location_to_breakpoint): If the location is permanent, mark
555 it as such, and as inserted.
556 (init_breakpoint_sal): Don't make the breakpoint permanent here.
557 (bp_location_compare, update_global_location_list): Adjust.
558 (update_breakpoint_locations): Don't make the breakpoint permanent
559 here.
560 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
561 breakpoints.
562 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
563 (struct bp_location) <permanent>: New field.
564 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
565 reference to bp_permanent.
566
567 2014-11-12 Pedro Alves <palves@redhat.com>
568
569 * arch-utils.c (default_skip_permanent_breakpoint): New function.
570 * arch-utils.h (default_skip_permanent_breakpoint): New
571 declaration.
572 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
573 Install default_skip_permanent_breakpoint as default method.
574 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
575 (i386_gdbarch_init): Don't install it.
576 * infrun.c (resume): Assume there's always a
577 gdbarch_skip_permanent_breakpoint implementation.
578 * gdbarch.h, gdbarch.c: Regenerate.
579
580 2014-11-11 Daniel Colascione <dancol@dancol.org>
581
582 Warn about cross-PID-namespace debugging.
583 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
584 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
585 * linux-thread-db.c (check_pid_namespace_match): New function.
586 (thread_db_inferior_created): Call it.
587
588 2014-11-10 Doug Evans <xdje42@gmail.com>
589
590 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
591 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
592
593 2014-11-10 Doug Evans <xdje42@gmail.com>
594
595 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
596
597 2014-11-10 Doug Evans <xdje42@gmail.com>
598
599 PR symtab/17564
600 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
601 (lookup_static_symbol): Move definition to new location and rewrite.
602 (lookup_symbol_in_objfile): New function.
603 (lookup_symbol_global_iterator_cb): Call it.
604
605 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
606
607 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
608
609 2014-11-07 Pedro Alves <palves@redhat.com>
610
611 * infrun.c (process_event_stop_test) <subroutine check>: Don't
612 check if we did a "nexti" inside a prologue.
613 * symtab.c (in_prologue): Delete function.
614 * symtab.h (in_prologue): Delete declaration.
615
616 2014-11-06 Doug Evans <xdje42@gmail.com>
617
618 * symtab.h (lookup_global_symbol): Improve function comment.
619
620 2014-11-06 Doug Evans <xdje42@gmail.com>
621
622 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
623 All callers updated.
624 * symtab.h (lookup_global_symbol): Update decl.
625 (lookup_static_symbol): Move decl to better location.
626
627 2014-11-06 Doug Evans <xdje42@gmail.com>
628
629 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
630
631 2014-11-06 Doug Evans <xdje42@gmail.com>
632
633 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
634 All callers updated.
635 (lookup_symbol_in_all_objfiles): Renamed from
636 lookup_symbol_aux_symtabs. All callers updated.
637 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
638 All callers updated.
639 (lookup_symbol_in_objfile_symtabs): Renamed from
640 lookup_symbol_aux_objfile. All callers updated.
641
642 2014-11-06 Doug Evans <xdje42@gmail.com>
643
644 * symtab.c (lookup_symbol_in_block): Renamed from
645 lookup_symbol_aux_block. All callers updated.
646
647 2014-11-06 Doug Evans <xdje42@gmail.com>
648
649 * symtab.c (lookup_static_symbol): Renamed from
650 lookup_static_symbol_aux. All callers updated.
651 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
652 All callers updated.
653
654 2014-11-06 Doug Evans <xdje42@gmail.com>
655
656 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
657 * block.c (block_lookup_symbol): Use it.
658 * cp-support.c (make_symbol_overload_list_block): Use it.
659 * symtab.c (iterate_over_symbols): Use it.
660
661 2014-11-06 Doug Evans <xdje42@gmail.com>
662
663 * symtab.c (lookup_block_symbol): Moved to ...
664 * block.c (block_lookup_symbol): ... here and renamed.
665 All callers updated.
666 * block.h (block_lookup_symbol): Declare.
667 * symtab.h (lookup_block_symbol): Delete.
668
669 2014-11-06 Doug Evans <xdje42@gmail.com>
670
671 * ada-lang.c (ada_make_symbol_completion_list): Use
672 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
673 * symtab.c (lookup_objfile_from_block): Ditto.
674
675 2014-11-06 Doug Evans <xdje42@gmail.com>
676
677 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
678 TYPE_CODE_STRUCT.
679
680 2014-11-06 Doug Evans <xdje42@gmail.com>
681
682 * objfiles.c (get_objfile_arch): Constify.
683 * objfiles.h (get_objfile_arch): Update prototype.
684 * solib.c (solib_global_lookup): Fetch arch from objfile,
685 not target_gdbarch.
686
687 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
688
689 * nios2-tdep.c (wild_insn): Delete.
690 (profiler_insn, irqentry_insn): Delete.
691 (nios2_match_sequence): Delete.
692 (nios2_analyze_prologue): Update comments. Remove matching
693 of obsolete profiler_insn and irqentry_insn sequences.
694
695 2014-11-05 Alan Modra <amodra@gmail.com>
696
697 * charset.c (convert_between_encodings): Shrink obstack using
698 obstack_blank_fast.
699 * minsyms.c (install_minimal_symbols): Likewise.
700 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
701 to char* before doing pointer arithmetic.
702
703 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
704
705 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
706
707 2014-11-04 Pedro Alves <palves@redhat.com>
708
709 * breakpoint.c (breakpoint_thread_match): Delete function.
710 * breakpoint.h (breakpoint_thread_match): Delete declaration.
711
712 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
713
714 PR c++/17494
715 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
716 the method args also under EVAL_SKIP when evaluating method
717 calls under EVAL_SKIP.
718
719 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
720
721 * dwarf2loc.c (read_pieced_value): Do big endian
722 processing only if gdb_regnum is not -1.
723 (write_pieced_value): Ditto.
724
725 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
726
727 * arm-linux-tdep.c (arm_linux_init_abi): Use
728 info.byte_order_for_code to choose endianity of breakpoint
729 instructions snippets.
730
731 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
732
733 * arm-tdep.c (extract_arm_insn): Use
734 gdbarch_byte_order_for_code to read arm instruction.
735
736 2014-11-02 Doug Evans <xdje42@gmail.com>
737
738 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
739
740 2014-11-02 Doug Evans <xdje42@gmail.com>
741
742 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
743 main_subfile before returning.
744
745 2014-10-31 Doug Evans <xdje42@gmail.com>
746
747 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
748 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
749
750 2014-10-31 Doug Evans <xdje42@gmail.com>
751
752 * valops.c (value_cast_pointers): Fix whitespace.
753 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
754 Ditto.
755
756 2014-10-30 Doug Evans <dje@google.com>
757
758 * NEWS: Mention ability add attributes to gdb.Objfile and
759 gdb.Progspace objects.
760 * python/py-objfile.c (objfile_object): New member dict.
761 (objfpy_dealloc): Py_XDECREF dict.
762 (objfpy_initialize): Initialize dict.
763 (objfile_getset): Add __dict__.
764 (objfile_object_type): Set tp_dictoffset member.
765 * python/py-progspace.c (progspace_object): New member dict.
766 (pspy_dealloc): Py_XDECREF dict.
767 (pspy_initialize): Initialize dict.
768 (pspace_getset): Add __dict__.
769 (pspace_object_type): Set tp_dictoffset member.
770
771 2014-10-30 Yao Qi <yao@codesourcery.com>
772
773 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
774 replace '\\' with '\\\\'.
775
776 2014-10-29 Joel Brobecker <brobecker@adacore.com>
777
778 GDB 7.8.1 released.
779
780 2014-10-29 Pedro Alves <palves@redhat.com>
781
782 PR gdb/17408
783 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
784 instead of assuming a thread with a stepping range is always
785 stepping.
786
787 2014-10-29 Pedro Alves <palves@redhat.com>
788
789 PR python/17372
790 * event-top.c (change_line_handler): Call
791 gdb_rl_callback_handler_remove instead of
792 rl_callback_handler_remove.
793 (callback_handler_installed): New global.
794 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
795 (gdb_rl_callback_handler_reinstall): New functions.
796 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
797 gdb_rl_callback_handler_install instead of
798 rl_callback_handler_remove and rl_callback_handler_install.
799 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
800 instead of rl_callback_handler_remove.
801 * event-top.h (gdb_rl_callback_handler_remove)
802 (gdb_rl_callback_handler_install)
803 (gdb_rl_callback_handler_reinstall): New declarations.
804 * infrun.c (reinstall_readline_callback_handler_cleanup): New
805 cleanup function.
806 (fetch_inferior_event): Install it.
807 * top.c (gdb_readline_wrapper_line) Call
808 gdb_rl_callback_handler_remove instead of
809 rl_callback_handler_remove.
810 (gdb_readline_wrapper_cleanup): Don't call
811 rl_callback_handler_install.
812
813 2014-10-29 Pedro Alves <palves@redhat.com>
814
815 * event-top.c (command_line_handler): Clear the first byte of
816 linebuffer, when it is first allocated.
817
818 2014-10-29 Pedro Alves <palves@redhat.com>
819
820 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
821 TRY_CATCH.
822
823 2014-10-29 Pedro Alves <palves@redhat.com>
824
825 PR tui/16138
826 PR tui/17519
827 * tui/tui-interp.c (tui_is_toplevel): Delete global.
828 (tui_allowed_p): Delete function.
829 * tui/tui.c: Include "interps.h".
830 (tui_enable): Don't use tui_allowed_p. Error out here with
831 detailed error messages if the TUI is the top level interpreter,
832 or if output is not a terminal. Use newterm instead of initscr,
833 and error out if initializing the terminal fails. Also error out if
834 the terminal doesn't support cursor addressing.
835 * tui/tui.h (tui_allowed_p): Delete declaration.
836
837 2014-10-29 Joel Brobecker <brobecker@adacore.com>
838
839 * arm-tdep.c (arm_skip_stack_protector): Return early if
840 address loaded by first "ldr" instruction does not have
841 a corresponding minimal symbol. Update comment.
842
843 2014-10-29 Yao Qi <yao@codesourcery.com>
844
845 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
846 loaded address correctly of ldr instruction.
847
848 2014-10-28 Pedro Alves <palves@redhat.com>
849
850 PR gdb/12623
851 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
852 field.
853 * infrun.c (resume) <stepping breakpoint instruction>: Set the
854 thread's stepped_breakpoint field. Skip if reverse debugging.
855 Add comment.
856 (init_thread_stepping_state, handle_signal_stop): Clear the
857 thread's stepped_breakpoint field.
858
859 2014-10-27 Pedro Alves <palves@redhat.com>
860
861 * remote.c (remote_thread_alive): New, factored out from ...
862 (remote_thread_alive): ... this.
863 (remote_update_thread_list): Bail out before deleting threads if
864 the target returned an empty list, and, the current thread has a
865 magic/fake ptid.
866
867 2014-10-27 Pedro Alves <palves@redhat.com>
868
869 * infrun.c (handle_signal_stop): Also skip handlers when a random
870 signal arrives while handling a "stepi" or a "nexti". Set the
871 thread's 'step_after_step_resume_breakpoint' flag.
872
873 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
874
875 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
876 (arm_record_ld_st_imm_offset): Reimplement to cover all
877 load/store cases for ARM opcode 010.
878 (arm_record_ld_st_multiple): Reimplement to cover all
879 load/store cases for ARM opcode 100.
880
881 2014-10-26 Doug Evans <xdje42@gmail.com>
882
883 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
884
885 2014-10-26 Doug Evans <xdje42@gmail.com>
886
887 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
888 parameter "kind" to "block_index".
889 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
890 "block_index".
891 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
892
893 2014-10-26 Doug Evans <xdje42@gmail.com>
894
895 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
896
897 2014-10-26 Doug Evans <xdje42@gmail.com>
898
899 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
900 obstack_alloc.
901
902 2014-10-26 Doug Evans <xdje42@gmail.com>
903
904 * parser-defs.h (block_found): Move decl from here ...
905 * symtab.h (block_found): ... to here.
906
907 2014-10-26 Doug Evans <xdje42@gmail.com>
908
909 * symtab.h (struct field_of_this_result): Fix typo in comment.
910 (lookup_symbol_in_language): Move function comment here.
911 (lookup_symbol): Improve function comment.
912 (basic_lookup_symbol_nonlocal): Ditto.
913 (lookup_symbol_static, lookup_symbol_global): Ditto.
914 (lookup_symbol_aux_block): Ditto.
915 (lookup_language_this): Add function comment.
916 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
917 function comment.
918 (lookup_block_symbol): Improve function comment.
919 (lookup_struct): Fix capitalization in function comment.
920 (lookup_transparent_type): Add function comment.
921 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
922 Improve function comment.
923 (lookup_objfile_from_block): Add function comment.
924 * symtab.c (lookup_symbol_in_language): Update function comment.
925 (lookup_symbol, lookup_language_this): Ditto.
926 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
927 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
928 (basic_lookup_symbol_nonlocal): Ditto.
929 (lookup_symbol_static, lookup_symbol_global): Ditto.
930 (lookup_transparent_type, lookup_block_symbol): Ditto.
931
932 2014-10-25 Doug Evans <xdje42@gmail.com>
933
934 * symtab.c (types_info): Delete forward decl.
935 (functions_info, variables_info, sources_info): Ditto.
936 (_initialize_symtab): Rewrite forward decl to use
937 initialize_file_ftype.
938
939 2014-10-25 Doug Evans <xdje42@gmail.com>
940
941 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
942
943 2014-10-25 Doug Evans <xdje42@gmail.com>
944
945 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
946 of local var child_die.
947
948 2014-10-24 Don Breazeal <donb@codesourcery.com>
949
950 * infrun.c (follow_fork_inferior): Update fork message printing
951 to use target_terminal_ours_for_output instead of
952 target_terminal_ours, to use _() for all format strings, to print
953 "vfork" instead of "fork" for vforks, and to add a detach message.
954 (handle_vfork_child_exec_or_exit): Update message printing to use
955 target_terminal_ours_for_output instead of target_terminal_ours, to
956 use _() for all format strings, and to fix some formatting.
957
958 2014-10-24 Pedro Alves <palves@redhat.com>
959
960 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
961 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
962 * config/vax/vax.mh: Delete.
963 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
964 obsolete configurations section.
965 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
966 * vax-nat.c: Delete file.
967
968 2014-10-24 Pedro Alves <palves@redhat.com>
969
970 * NEWS (Removed targets): Add OS/arch column.
971
972 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
973
974 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
975 on the arg type of a constructor only if it is of reference type.
976
977 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
978
979 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
980 accessors and constants from nios2 opcodes update.
981 (nios2_get_next_pc): Likewise.
982
983 2014-10-19 Doug Evans <xdje42@gmail.com>
984
985 * gdbthread.h (set_running): Fix comment.
986 (set_executing, finish_thread_state): Fix comment.
987
988 2014-10-18 Doug Evans <xdje42@gmail.com>
989
990 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
991
992 2014-10-17 Doug Evans <dje@google.com>
993
994 * NEWS: Mention new event gdb.clear_objfiles.
995 * python/py-event.h (emit_clear_objfiles_event): Clear
996 * python/py-events.h (events_object): New member clear_objfiles.
997 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
998 event.
999 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1000 emit clear_objfiles event.
1001 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1002 function.
1003 (emit_clear_objfiles_event): New function.
1004 (clear_objfiles): New event.
1005 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1006 Declare.
1007 * python/python.c (_initialize_python): Call
1008 gdbpy_initialize_clear_objfiles_event.
1009
1010 2014-10-17 Doug Evans <dje@google.com>
1011
1012 * NEWS: Mention new gdb.Objfile.progspace attribute.
1013 * python/py-objfile.c (objfpy_get_progspace): New function.
1014 (objfile_getset): New entry for "progspace".
1015
1016 2014-10-17 Pedro Alves <palves@redhat.com>
1017
1018 PR gdb/17471
1019 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1020 returns a copy of the input.
1021 (run_command_1, continue_command, step_1, jump_command)
1022 (signal_command, until_command, advance_command, finish_command)
1023 (attach_command): Adjust and install a cleanup to free the
1024 stripped args.
1025
1026 2014-10-17 Pedro Alves <palves@redhat.com>
1027
1028 PR gdb/17300
1029 * infcmd.c (continue_1): If continuing all threads in the
1030 foreground, make sure the inferior's terminal settings are put in
1031 effect.
1032
1033 2014-10-17 Pedro Alves <palves@redhat.com>
1034
1035 PR gdb/17472
1036 * annotate.c (annotate_breakpoints_invalid): Use
1037 target_terminal_our_for_output instead of target_terminal_ours.
1038 Give back the terminal to the target.
1039 (annotate_frames_invalid): Likewise.
1040
1041 2014-10-17 Pedro Alves <palves@redhat.com>
1042
1043 * target.c (enum terminal_state): New enum.
1044 (terminal_state): New global.
1045 (target_terminal_init): New function.
1046 (target_terminal_inferior): Skip if inferior already owns the
1047 terminal.
1048 (target_terminal_ours, target_terminal_ours_for_output): New
1049 functions.
1050 * target.h (target_terminal_init): Convert to function prototype.
1051 (target_terminal_ours_for_output): Convert to function prototype
1052 and tweak comment.
1053 (target_terminal_ours): Convert to function prototype and tweak
1054 comment.
1055 * windows-nat.c (do_initial_windows_stuff): Call
1056 target_terminal_init instead of child_terminal_init_with_pgrp.
1057
1058 2014-10-17 Pedro Alves <palves@redhat.com>
1059
1060 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1061 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1062 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1063 solib-osf.c.
1064 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1065 * ada-lang.h [__alpha__ && __osf__]
1066 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1067 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1068 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1069 GDB_OSABI_OSF1.
1070 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1071 files.
1072 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1073 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1074 * configure: Regenerate.
1075 * configure.ac: Remove references to osf.
1076 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1077 section. Remove all other references to osf.
1078 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1079 Remove all other references to osf.
1080 * dec-thread.c: Delete file.
1081 * defs.h (GDB_OSABI_OSF1): Delete.
1082 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1083 defined.
1084 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1085 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1086 Delete code.
1087 (unconditionally_kill_inferior)
1088 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1089 * solib-osf.c: Delete file.
1090
1091 2014-10-17 Pedro Alves <palves@redhat.com>
1092
1093 * remote.c (clear_threads_listing_context): Move higher up, out of
1094 the HAVE_LIBEXPAT guard.
1095
1096 2014-10-16 Tristan Gingold <gingold@adacore.com>
1097
1098 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1099 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1100 on amd64.
1101
1102 2014-10-15 Pedro Alves <palves@redhat.com>
1103
1104 * dec-thread.c (dec_thread_count_gdb_threads)
1105 (dec_thread_add_gdb_thread): Delete.
1106 (dec_thread_update_thread_list): Delete.
1107 (dec_thread_find_new_threads): Rename to ...
1108 (dec_thread_update_thread_list): ... this. Delete GDB-size
1109 threads that are no longer found in dec_thread_list.
1110 (resync_thread_list): Delete.
1111 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1112 resync_thread_list.
1113
1114 2014-10-15 Pedro Alves <palves@redhat.com>
1115
1116 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1117 * remote.c (remote_update_thread_list): Skip calling prune_threads
1118 if any thread listing method is supported, and instead walk over
1119 the set of remote threads listed, deleting those that are not
1120 found in GDB's thread list.
1121
1122 2014-10-15 Pedro Alves <palves@redhat.com>
1123
1124 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1125 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1126 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1127 (bsd_uthread_target): Adjust.
1128 * corelow.c (core_open): Adjust.
1129 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1130 (dec_thread_update_thread_list): New function.
1131 (init_dec_thread_ops): Adjust.
1132 * gdbthread.h (prune_threads): New declaration.
1133 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1134 (thread_db_update_thread_list): ... this. Call prune_threads.
1135 (init_thread_db_ops): Adjust.
1136 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1137 (procfs_update_thread_list): ... this. Call prune_threads.
1138 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1139 Adjust.
1140 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1141 (obsd_update_thread_list): ... this. Call prune_threads.
1142 (obsd_add_target): Adjust.
1143 * procfs.c (procfs_target): Adjust.
1144 (procfs_notice_thread): Update comment.
1145 (procfs_find_new_threads): Rename to ...
1146 (procfs_update_thread_list): ... this. Call prune_threads.
1147 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1148 comment.
1149 (ravenscar_wait): Adjust.
1150 (ravenscar_find_new_threads): Rename to ...
1151 (ravenscar_update_thread_list): ... this. Call prune_threads.
1152 (init_ravenscar_thread_ops): Adjust.
1153 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1154 (record_btrace_update_thread_list): ... this. Adjust comment.
1155 (init_record_btrace_ops): Adjust.
1156 * remote.c (remote_threads_info): Rename to ...
1157 (remote_update_thread_list): ... this. Call prune_threads.
1158 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1159 Adjust.
1160 * sol-thread.c (check_for_thread_db): Adjust.
1161 (sol_find_new_threads_callback): Rename to ...
1162 (sol_update_thread_list_callback): ... this.
1163 (sol_find_new_threads): Rename to ...
1164 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1165 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1166 * target-delegates.c: Regenerate.
1167 * target.c (target_find_new_threads): Rename to ...
1168 (target_update_thread_list): ... this.
1169 * target.h (struct target_ops): Rename to_find_new_threads field
1170 to to_update_thread_list.
1171 (target_find_new_threads): Rename to ...
1172 (target_update_thread_list): ... this.
1173 * thread.c (prune_threads): Make extern.
1174 (update_thread_list): Adjust.
1175
1176 2014-10-15 Pedro Alves <palves@redhat.com>
1177
1178 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1179 Add describing comment. Return -1 if the qL packet is not
1180 supported.
1181 (struct thread_item, thread_item_t): Move higher up in
1182 the file. Add comments.
1183 (struct threads_parsing_context): Move higher up in
1184 the file, add comments, and remote to ...
1185 (struct threads_listing_context): ... this.
1186 (remote_newthread_step): Don't add the thread to GDB's thread
1187 database here. Instead push it to the thread_listing_context
1188 list.
1189 (remote_find_new_threads): Rename to ...
1190 (remote_get_threads_with_ql): ... this. Add target_ops and
1191 targets_listing_context parameters. Pass down context.
1192 (start_thread): Adjust.
1193 (clear_threads_parsing_context): Rename to ...
1194 (clear_threads_listing_context): ... this.
1195 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1196 remote_threads_info.
1197 (remote_get_threads_with_qthreadinfo): Ditto.
1198 (remote_threads_info): Reimplement.
1199
1200 2014-10-15 Pedro Alves <palves@redhat.com>
1201
1202 * infrun.c (resume): Don't force displaced-stepping for all
1203 single-steps on software single-stepping archs.
1204
1205 2014-10-15 Pedro Alves <palves@redhat.com>
1206
1207 * breakpoint.c (single_step_breakpoints): Delete global.
1208 (insert_single_step_breakpoint): Adjust to store the breakpoint
1209 pointer in the current thread.
1210 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1211 (cancel_single_step_breakpoints): Delete functions.
1212 (breakpoint_has_location_inserted_here): Make extern.
1213 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1214 breakpoint list.
1215 * breakpoint.h (breakpoint_has_location_inserted_here): New
1216 declaration.
1217 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1218 (cancel_single_step_breakpoints): Remove declarations.
1219 * gdbthread.h (struct thread_control_state)
1220 <single_step_breakpoints>: New field.
1221 (delete_single_step_breakpoints)
1222 (thread_has_single_step_breakpoints_set)
1223 (thread_has_single_step_breakpoint_here): New declarations.
1224 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1225 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1226 (singlestep_pc): Delete globals.
1227 (infrun_thread_ptid_changed): Remove references to removed
1228 globals.
1229 (resume_cleanups): Delete the current thread's single-step
1230 breakpoints.
1231 (maybe_software_singlestep): Remove references to removed globals.
1232 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1233 delete_single_step_breakpoints.
1234 (init_wait_for_inferior): Remove references to removed globals.
1235 (delete_thread_infrun_breakpoints): Delete the thread's
1236 single-step breakpoints too.
1237 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1238 single-step breakpoints here.
1239 (delete_stopped_threads_single_step_breakpoints): New function.
1240 (adjust_pc_after_break): Adjust to use
1241 thread_has_single_step_breakpoints_set.
1242 (handle_inferior_event): Remove references to removed globals.
1243 Use delete_stopped_threads_single_step_breakpoints.
1244 (handle_signal_stop): Adjust to per-thread single-step
1245 breakpoints. Swap test order to do cheaper tests first.
1246 (switch_back_to_stepped_thread): Extend debug output. Remove
1247 references to removed globals.
1248 * record-full.c (record_full_wait_1): Adjust to per-thread
1249 single-step breakpoints.
1250 * thread.c (delete_single_step_breakpoints)
1251 (thread_has_single_step_breakpoints_set)
1252 (thread_has_single_step_breakpoint_here): New functions.
1253 (clear_thread_inferior_resources): Also delete the thread's
1254 single-step breakpoints.
1255
1256 2014-10-15 Pedro Alves <palves@redhat.com>
1257
1258 * thread.c (delete_thread_breakpoint): New function.
1259 (delete_step_resume_breakpoint)
1260 (delete_exception_resume_breakpoint): Use it.
1261 (delete_at_next_stop): New function.
1262 (clear_thread_inferior_resources): Use delete_at_next_stop.
1263
1264 2014-10-15 Pedro Alves <palves@redhat.com>
1265
1266 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1267 (breakpoint_inserted_here_p): ... here. Remove special case for
1268 software single-step breakpoints.
1269 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1270 (software_breakpoint_inserted_here_p): ... here. Remove special
1271 case for software single-step breakpoints.
1272 (bp_target_info_copy_insertion_state)
1273 (deprecated_insert_raw_breakpoint)
1274 (deprecated_remove_raw_breakpoint): Delete functions.
1275 * breakpoint.h (deprecated_insert_raw_breakpoint)
1276 (deprecated_remove_raw_breakpoint): Remove declarations.
1277
1278 2014-10-15 Pedro Alves <palves@redhat.com>
1279
1280 PR breakpoints/9649
1281 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1282 Delete array globals.
1283 (single_step_breakpoints): New global.
1284 (breakpoint_xfer_memory): Remove special handling for single-step
1285 breakpoints.
1286 (update_breakpoints_after_exec): Delete bp_single_step
1287 breakpoints.
1288 (detach_breakpoints): Remove special handling for single-step
1289 breakpoints.
1290 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1291 (bpstat_stop_status): Add comment.
1292 (bpstat_what, bptype_string, print_one_breakpoint_location)
1293 (adjust_breakpoint_address, init_bp_location): Handle
1294 bp_single_step.
1295 (new_single_step_breakpoint): New function.
1296 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1297 handling for single-step breakpoints.
1298 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1299 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1300 Rewrite.
1301 (detach_single_step_breakpoints, find_single_step_breakpoint):
1302 Delete functions.
1303 (breakpoint_has_location_inserted_here): New function.
1304 (single_step_breakpoint_inserted_here_p): Rewrite.
1305 * breakpoint.h: Remove FIXME.
1306 (enum bptype) <bp_single_step>: New enum value.
1307 (insert_single_step_breakpoint): Update comment.
1308 * infrun.c (resume_cleanups)
1309 (delete_step_thread_step_resume_breakpoint): Remove single-step
1310 breakpoints.
1311 (fetch_inferior_event): Install a cleanup that removes infrun
1312 breakpoints.
1313 (switch_back_to_stepped_thread) <expect thread advanced also>:
1314 Clear step-over info.
1315
1316 2014-10-15 Pedro Alves <palves@redhat.com>
1317
1318 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1319 (delete_thread_infrun_breakpoints): New function, with parts
1320 salvaged from delete_step_resume_breakpoint_callback.
1321 (delete_step_thread_step_resume_breakpoint): Delete.
1322 (for_each_just_stopped_thread_callback_func): New typedef.
1323 (for_each_just_stopped_thread): New function.
1324 (delete_just_stopped_threads_infrun_breakpoints): New function.
1325 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1326 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1327 ... this. Adjust.
1328 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1329
1330 2014-10-15 Pedro Alves <palves@redhat.com>
1331
1332 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1333 trying to step past a non-steppable watchpoint.
1334 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1335 field.
1336 * infrun.c (struct step_over_info): Add new field
1337 'nonsteppable_watchpoint_p' and adjust comments.
1338 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1339 Adjust.
1340 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1341 (stepping_past_nonsteppable_watchpoint): New function.
1342 (step_over_info_valid_p): Also return true if stepping past a
1343 nonsteppable watchpoint.
1344 (proceed): Adjust call to set_step_over_info. Remove reference to
1345 init_infwait_state.
1346 (init_wait_for_inferior): Remove reference to init_infwait_state.
1347 (waiton_ptid): Delete global.
1348 (struct execution_control_state)
1349 <stepped_after_stopped_by_watchpoint>: Delete field.
1350 (wait_for_inferior, fetch_inferior_event): Always pass
1351 minus_one_ptid to target_wait.
1352 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1353 field.
1354 (init_infwait_state): Delete function.
1355 (handle_inferior_event): Remove infwait_state handling.
1356 (handle_signal_stop) <watchpoints handling>: Adjust after
1357 stepped_after_stopped_by_watchpoint removal. Don't remove
1358 breakpoints here nor set infwait_state. Set the thread's
1359 stepping_over_watchpoint flag, and call keep_going instead.
1360 (keep_going): Handle stepping_over_watchpoint. Adjust
1361 set_step_over_info calls.
1362 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1363 function.
1364
1365 2014-10-15 Pedro Alves <palves@redhat.com>
1366
1367 * infrun.c (step_over_info_valid_p): New function.
1368 (resume): Use step_over_info_valid_p instead of checking the
1369 threads's trap_expected flag.
1370
1371 2014-10-15 Doug Evans <dje@google.com>
1372 Walfred Tedeschi <walfred.tedeschi@intel.com>
1373
1374 PR python/17364
1375 * python/lib/gdb/__init__.py (packages): Add "printer".
1376 * python/lib/gdb/command/bound_registers.py: Moved to ...
1377 * python/lib/gdb/printer/bound_registers.py: ... here.
1378 Add printer to global set of builtin printers. Rename printer from
1379 "bound" to "mpx_bound128".
1380 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1381 registered as global "builtin" printer.
1382 (add_builtin_pretty_printer): New function.
1383 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1384 gdb/printer/__init__.py.
1385
1386 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1387
1388 * Makefile.in (SFILES): Remove d-support.c.
1389 (COMMON_OBS): Remove d-support.o.
1390 * d-lang.h (d_parse_symbol): Remove declaration.
1391 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1392 * d-support.c: Remove file.
1393
1394 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1395
1396 * gdb/infrun.c (process_event_stop_test): Apply
1397 gdbarch_addr_bits_remove to longjmp resume address.
1398
1399 2014-10-15 Pedro Alves <palves@redhat.com>
1400
1401 * regformats/microblaze.dat: Delete file.
1402
1403 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1404
1405 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1406 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1407
1408 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1409
1410 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1411 as non-trivial.
1412
1413 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1414
1415 PR c++/13403
1416 PR c++/15154
1417 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1418 with qualified args.
1419
1420 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1421
1422 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1423 of the case where the second operand is a pointer.
1424 <BINOP_SUB>: Likewise.
1425
1426 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1427
1428 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1429 only if it is not NULL.
1430 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1431 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1432 (struct probe_ops) <clear_semaphore>: Likewise.
1433 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1434 not NULL.
1435 (stop_tracing): Likewise, for clear_semaphore.
1436
1437 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1438
1439 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1440 using language_c, instead of current_language.
1441
1442 2014-10-13 Doug Evans <dje@google.com>
1443
1444 * python/py-objfile.c (objfpy_initialize): New function.
1445 (objfpy_new, objfile_to_objfile_object): Call it.
1446 * python/py-progspace.c (pspy_initialize): New function.
1447 (pspy_new, pspace_to_pspace_object): Call it.
1448
1449 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1450 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 Fix "save breakpoints" for "catch" command.
1453 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1454 newline.
1455
1456 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1457
1458 Fix "save breakpoints" for "disable $bpnum" command.
1459 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1460
1461 2014-10-10 Pedro Alves <palves@redhat.com>
1462
1463 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1464 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1465 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1466 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1467 and been removed.
1468 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1469 * configure.ac: Remove references to IRIX.
1470 * configure.host: Add *-*-irix* to the obsolete hosts section.
1471 Remove all other references to irix.
1472 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1473 Delete files.
1474
1475 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1476
1477 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1478 isn't valid, release the tdesc arch data and return NULL.
1479
1480 2014-10-10 Pedro Alves <palves@redhat.com>
1481
1482 * linux-tdep.c: Include observer.h.
1483 (linux_inferior_data): New global.
1484 (struct linux_info): New structure.
1485 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1486 (get_linux_inferior_data): New functions.
1487 (linux_vsyscall_range): Rename to ...
1488 (linux_vsyscall_range_raw): ... this.
1489 (linux_vsyscall_range): New function; handles caching.
1490 (_initialize_linux_tdep): Register linux_inferior_data. Install
1491 inferior_exit and inferior_appeared observers.
1492
1493 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1494 Pedro Alves <palves@redhat.com>
1495
1496 PR symtab/14466
1497 * solib-svr4.c (svr4_read_so_list): Rename to ...
1498 (svr4_current_sos_1): ... this and change the function comment.
1499 (svr4_current_sos): New function.
1500
1501 2014-10-10 Pedro Alves <palves@redhat.com>
1502
1503 * arch-utils.c (default_vsyscall_range): New function.
1504 * arch-utils.h (default_vsyscall_range): New declaration.
1505 * gdbarch.sh (vsyscall_range): New hook.
1506 * gdbarch.h, gdbarch.c: Regenerate.
1507 * linux-tdep.c (linux_vsyscall_range): New function.
1508 (linux_init_abi): Install linux_vsyscall_range as
1509 vsyscall_range gdbarch hook.
1510 * memrange.c (address_in_mem_range): New function.
1511 * memrange.h (address_in_mem_range): New declaration.
1512 * symfile-mem.c (find_vdso_size): Delete function.
1513 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1514
1515 2014-10-10 Pedro Alves <palves@redhat.com>
1516
1517 * infrun.c (normal_stop): Fix typo in comment.
1518
1519 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1520
1521 PR tdep/9390
1522 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1523 typo when using logical AND to determine instruction type.
1524
1525 2014-10-09 Yao Qi <yao@codesourcery.com>
1526
1527 * infrun.c (handle_signal_stop): Remove local variable
1528 'printed'.
1529
1530 2014-10-08 Stan Shebs <stan@codesourcery.com>
1531
1532 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1533
1534 2014-10-08 Gary Benson <gbenson@redhat.com>
1535
1536 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1537
1538 2014-10-08 Gary Benson <gbenson@redhat.com>
1539
1540 * common/common-defs.h: Include common-exceptions.h.
1541 * exceptions.h: Do not include common-exceptions.h.
1542
1543 2014-10-08 Gary Benson <gbenson@redhat.com>
1544
1545 * common/common-defs.h: Include cleanups.h.
1546 * common/common-exceptions.c: Do not include cleanups.h.
1547 * utils.h: Likewise.
1548
1549 2014-10-08 Gary Benson <gbenson@redhat.com>
1550
1551 * ada-lang.c: Do not include exceptions.h.
1552 * ada-valprint.c: Likewise.
1553 * amd64-tdep.c: Likewise.
1554 * auto-load.c: Likewise.
1555 * block.c: Likewise.
1556 * break-catch-throw.c: Likewise.
1557 * breakpoint.c: Likewise.
1558 * btrace.c: Likewise.
1559 * c-lang.c: Likewise.
1560 * cli/cli-cmds.c: Likewise.
1561 * cli/cli-interp.c: Likewise.
1562 * cli/cli-script.c: Likewise.
1563 * completer.c: Likewise.
1564 * corefile.c: Likewise.
1565 * corelow.c: Likewise.
1566 * cp-abi.c: Likewise.
1567 * cp-support.c: Likewise.
1568 * cp-valprint.c: Likewise.
1569 * darwin-nat.c: Likewise.
1570 * dwarf2-frame-tailcall.c: Likewise.
1571 * dwarf2-frame.c: Likewise.
1572 * dwarf2loc.c: Likewise.
1573 * dwarf2read.c: Likewise.
1574 * eval.c: Likewise.
1575 * event-loop.c: Likewise.
1576 * event-top.c: Likewise.
1577 * f-valprint.c: Likewise.
1578 * frame-unwind.c: Likewise.
1579 * frame.c: Likewise.
1580 * gdbtypes.c: Likewise.
1581 * gnu-v2-abi.c: Likewise.
1582 * gnu-v3-abi.c: Likewise.
1583 * guile/scm-auto-load.c: Likewise.
1584 * guile/scm-breakpoint.c: Likewise.
1585 * guile/scm-cmd.c: Likewise.
1586 * guile/scm-frame.c: Likewise.
1587 * guile/scm-lazy-string.c: Likewise.
1588 * guile/scm-param.c: Likewise.
1589 * guile/scm-symbol.c: Likewise.
1590 * guile/scm-type.c: Likewise.
1591 * hppa-hpux-tdep.c: Likewise.
1592 * i386-tdep.c: Likewise.
1593 * inf-loop.c: Likewise.
1594 * infcall.c: Likewise.
1595 * infcmd.c: Likewise.
1596 * infrun.c: Likewise.
1597 * interps.c: Likewise.
1598 * interps.h: Likewise.
1599 * jit.c: Likewise.
1600 * linespec.c: Likewise.
1601 * linux-nat.c: Likewise.
1602 * linux-thread-db.c: Likewise.
1603 * m32r-rom.c: Likewise.
1604 * main.c: Likewise.
1605 * memory-map.c: Likewise.
1606 * mi/mi-cmd-break.c: Likewise.
1607 * mi/mi-cmd-stack.c: Likewise.
1608 * mi/mi-interp.c: Likewise.
1609 * mi/mi-main.c: Likewise.
1610 * monitor.c: Likewise.
1611 * nto-procfs.c: Likewise.
1612 * objc-lang.c: Likewise.
1613 * p-valprint.c: Likewise.
1614 * parse.c: Likewise.
1615 * ppc-linux-tdep.c: Likewise.
1616 * printcmd.c: Likewise.
1617 * probe.c: Likewise.
1618 * python/py-auto-load.c: Likewise.
1619 * python/py-breakpoint.c: Likewise.
1620 * python/py-cmd.c: Likewise.
1621 * python/py-finishbreakpoint.c: Likewise.
1622 * python/py-frame.c: Likewise.
1623 * python/py-framefilter.c: Likewise.
1624 * python/py-function.c: Likewise.
1625 * python/py-gdb-readline.c: Likewise.
1626 * python/py-inferior.c: Likewise.
1627 * python/py-infthread.c: Likewise.
1628 * python/py-lazy-string.c: Likewise.
1629 * python/py-linetable.c: Likewise.
1630 * python/py-param.c: Likewise.
1631 * python/py-prettyprint.c: Likewise.
1632 * python/py-symbol.c: Likewise.
1633 * python/py-type.c: Likewise.
1634 * python/py-value.c: Likewise.
1635 * python/python-internal.h: Likewise.
1636 * python/python.c: Likewise.
1637 * record-btrace.c: Likewise.
1638 * record-full.c: Likewise.
1639 * regcache.c: Likewise.
1640 * remote-fileio.c: Likewise.
1641 * remote-mips.c: Likewise.
1642 * remote.c: Likewise.
1643 * rs6000-aix-tdep.c: Likewise.
1644 * rs6000-nat.c: Likewise.
1645 * skip.c: Likewise.
1646 * solib-darwin.c: Likewise.
1647 * solib-dsbt.c: Likewise.
1648 * solib-frv.c: Likewise.
1649 * solib-ia64-hpux.c: Likewise.
1650 * solib-spu.c: Likewise.
1651 * solib-svr4.c: Likewise.
1652 * solib.c: Likewise.
1653 * spu-tdep.c: Likewise.
1654 * stack.c: Likewise.
1655 * stap-probe.c: Likewise.
1656 * symfile-mem.c: Likewise.
1657 * symmisc.c: Likewise.
1658 * target.c: Likewise.
1659 * thread.c: Likewise.
1660 * top.c: Likewise.
1661 * tracepoint.c: Likewise.
1662 * tui/tui-interp.c: Likewise.
1663 * typeprint.c: Likewise.
1664 * utils.c: Likewise.
1665 * valarith.c: Likewise.
1666 * valops.c: Likewise.
1667 * valprint.c: Likewise.
1668 * value.c: Likewise.
1669 * varobj.c: Likewise.
1670 * windows-nat.c: Likewise.
1671 * xml-support.c: Likewise.
1672
1673 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1674
1675 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1676 name implies.
1677 (extended_mips16_next_pc): Update accordingly.
1678
1679 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1680
1681 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1682 function.
1683 (micromips_instruction_is_compact_branch): Likewise.
1684 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1685 or a compact jump, reaching a jump delay slot, or seeing a
1686 second non-prologue instruction.
1687 (micromips_scan_prologue): Also terminate scanning upon seeing a
1688 compact branch or jump, or reaching a branch or jump delay slot.
1689 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1690 or jump delay slot, or seeing a second non-prologue instruction.
1691 (mips32_instruction_has_delay_slot): Retain instruction
1692 examination code only, update arguments accordingly and move
1693 instruction fetch pieces to...
1694 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1695 (micromips_instruction_has_delay_slot): Likewise and to...
1696 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1697 (mips16_instruction_has_delay_slot): Likewise and to...
1698 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1699 (mips_single_step_through_delay): Update accordingly.
1700 (mips_adjust_breakpoint_address): Likewise.
1701
1702 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1703
1704 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1705 !mustbe32 also return 1 for 32-bit instructions.
1706 (mips16_instruction_has_delay_slot): Likewise. Add an
1707 explanatory comment.
1708
1709 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1710
1711 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1712 symbols special.
1713
1714 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1715
1716 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1717 update comments.
1718 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1719 for the breakpoint's address. Don't preinitialize `placed_size'.
1720 (insert_bp_location): Set `reqstd_address' rather than
1721 `placed_address'.
1722 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1723 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1724 address.
1725 (bkpt_remove_location): Likewise.
1726 (deprecated_insert_raw_breakpoint): Likewise.
1727 (deprecated_remove_raw_breakpoint): Likewise.
1728 (find_single_step_breakpoint): Likewise.
1729 * mem-break.c (default_memory_insert_breakpoint): Use
1730 `reqstd_address' for the breakpoint's address. Don't set
1731 `placed_address' or `placed_size' if breakpoint contents couldn't
1732 have been determined.
1733 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1734 the breakpoint's address.
1735 (remote_insert_hw_breakpoint): Likewise. Don't set
1736 `placed_address' or `placed_size' if breakpoint couldn't have been
1737 set.
1738 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1739 `reqstd_address' for the breakpoint's address.
1740 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1741 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1742 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1743 * microblaze-linux-tdep.c
1744 (microblaze_linux_memory_remove_breakpoint): Likewise.
1745 * monitor.c (monitor_insert_breakpoint): Likewise.
1746 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1747 (procfs_insert_hw_breakpoint): Likewise.
1748 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1749 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1750 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1751 * remote-mips.c (mips_insert_breakpoint): Likewise.
1752 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1753
1754 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1755
1756 * valops.c (value_assign): Check for bit field assignments
1757 before calling architecture-specific register value
1758 conversion functions.
1759
1760 2014-10-03 Pierre Muller <muller@sourceware.org>
1761
1762 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1763
1764 2014-10-02 Pedro Alves <palves@redhat.com>
1765
1766 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1767 threads_are_executing.
1768 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1769 describing comment.
1770 * gdbthread.h (threads_are_executing): Declare.
1771 (handle_signal_stop) <random signals>: Don't print about the
1772 signal here if stopping.
1773 (end_stepping_range): Don't notify observers here.
1774 (normal_stop): Update the thread list. If stopped by a random
1775 signal or a stepping range ended, notify observers.
1776 * thread.c (threads_executing): New global.
1777 (init_thread_list): Clear 'threads_executing'.
1778 (set_executing): Set or clear 'threads_executing'.
1779 (threads_are_executing): New function.
1780 (update_threads_executing): New function.
1781 (update_thread_list): Use it.
1782
1783 2014-10-02 Pedro Alves <palves@redhat.com>
1784
1785 PR breakpoints/17431
1786 * breakpoint.c (update_breakpoints_after_exec): Don't create
1787 overlay, longjmp, std terminate nor exception breakpoints here.
1788
1789 2014-10-02 Pedro Alves <palves@redhat.com>
1790
1791 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1792 Adjust comments.
1793 * inferior.c (find_inferior_for_program_space): Give preference to
1794 the current inferior.
1795 * inferior.h (find_inferior_for_program_space): Update comment.
1796 * progspace.c (switch_to_program_space_and_thread): Prefer the
1797 current inferior if it's bound to the program space requested. If
1798 the inferior found doesn't have a PID yet, don't bother looking up
1799 a thread.
1800 * progspace.h (switch_to_program_space_and_thread): Adjust
1801 comment.
1802 * thread.c (any_thread_of_process, any_live_thread_of_process):
1803 Give preference to the current thread.
1804
1805 2014-10-01 Pedro Alves <palves@redhat.com>
1806
1807 * breakpoint.c (insert_bp_location): Error out if inserting a
1808 software breakpoint at a read-only address.
1809 * target.c (memory_xfer_check_region): New function, factored out
1810 from ...
1811 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1812 ULONGEST.
1813 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1814 against the memory region attributes.
1815
1816 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1817
1818 * NEWS: Announce new exit-code field in -list-thread-groups
1819 output.
1820 * inferior.c (exit_inferior_1): Don't clear exit code.
1821 (inferior_appeared): Clear exit code.
1822 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1823 code.
1824
1825 2014-10-01 Pedro Alves <palves@redhat.com>
1826
1827 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1828 GENERATED" along with emacs/vi read-only markers.
1829 * regformats/aarch64.dat: Regenerate.
1830 * regformats/arm-with-iwmmxt.dat: Regenerate.
1831 * regformats/arm-with-neon.dat: Regenerate.
1832 * regformats/arm-with-vfpv2.dat: Regenerate.
1833 * regformats/arm-with-vfpv3.dat: Regenerate.
1834 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1835 * regformats/i386/amd64-avx.dat: Regenerate.
1836 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1837 * regformats/i386/amd64-avx512.dat: Regenerate.
1838 * regformats/i386/amd64-linux.dat: Regenerate.
1839 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1840 * regformats/i386/amd64-mpx.dat: Regenerate.
1841 * regformats/i386/amd64.dat: Regenerate.
1842 * regformats/i386/i386-avx-linux.dat: Regenerate.
1843 * regformats/i386/i386-avx.dat: Regenerate.
1844 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1845 * regformats/i386/i386-avx512.dat: Regenerate.
1846 * regformats/i386/i386-linux.dat: Regenerate.
1847 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1848 * regformats/i386/i386-mmx.dat: Regenerate.
1849 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1850 * regformats/i386/i386-mpx.dat: Regenerate.
1851 * regformats/i386/i386.dat: Regenerate.
1852 * regformats/i386/x32-avx-linux.dat: Regenerate.
1853 * regformats/i386/x32-avx.dat: Regenerate.
1854 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1855 * regformats/i386/x32-avx512.dat: Regenerate.
1856 * regformats/i386/x32-linux.dat: Regenerate.
1857 * regformats/i386/x32.dat: Regenerate.
1858 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1859 * regformats/mips-dsp-linux.dat: Regenerate.
1860 * regformats/mips-linux.dat: Regenerate.
1861 * regformats/mips64-dsp-linux.dat: Regenerate.
1862 * regformats/mips64-linux.dat: Regenerate.
1863 * regformats/nios2-linux.dat: Regenerate.
1864 * regformats/rs6000/powerpc-32.dat: Regenerate.
1865 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1866 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1867 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1868 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1869 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1870 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1871 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1872 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1873 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1874 * regformats/s390-linux32.dat: Regenerate.
1875 * regformats/s390-linux32v1.dat: Regenerate.
1876 * regformats/s390-linux32v2.dat: Regenerate.
1877 * regformats/s390-linux64.dat: Regenerate.
1878 * regformats/s390-linux64v1.dat: Regenerate.
1879 * regformats/s390-linux64v2.dat: Regenerate.
1880 * regformats/s390-te-linux64.dat: Regenerate.
1881 * regformats/s390x-linux64.dat: Regenerate.
1882 * regformats/s390x-linux64v1.dat: Regenerate.
1883 * regformats/s390x-linux64v2.dat: Regenerate.
1884 * regformats/s390x-te-linux64.dat: Regenerate.
1885 * regformats/tic6x-c62x-linux.dat: Regenerate.
1886 * regformats/tic6x-c62x.dat: Regenerate.
1887 * regformats/tic6x-c64x-linux.dat: Regenerate.
1888 * regformats/tic6x-c64x.dat: Regenerate.
1889 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1890 * regformats/tic6x-c64xp.dat: Regenerate.
1891
1892 2014-10-01 Pedro Alves <palves@redhat.com>
1893
1894 * features/Makefile: Update comments.
1895 (XMLTOC): List all xml files we build C files from.
1896 (clean-cfiles): New rule.
1897
1898 2014-10-01 Pedro Alves <palves@redhat.com>
1899
1900 * features/i386/amd64-avx512-linux.c: Regenerate.
1901 * features/i386/amd64-avx512.c: Regenerate.
1902 * features/i386/x32-avx512-linux.c: Regenerate.
1903 * features/i386/x32-avx512.c: Regenerate.
1904
1905 2014-10-01 Pedro Alves <palves@redhat.com>
1906
1907 * features/Makefile (WHICH): Remove arm-with-m,
1908 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1909
1910 2014-10-01 Pedro Alves <palves@redhat.com>
1911
1912 * features/Makefile (clean): New rule.
1913
1914 2014-10-01 Pedro Alves <palves@redhat.com>
1915
1916 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1917 (zmm14h): Add missing end quotes.
1918
1919 2014-10-01 Pedro Alves <palves@redhat.com>
1920
1921 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1922 * features/aarch64.c: Regenerate.
1923
1924 2014-09-30 Don Breazeal <donb@codesourcery.com>
1925
1926 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1927 code so as to work with follow_fork_inferior.
1928 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1929 (inf_ttrace_create_inferior): Remove reference to
1930 inf_ttrace_vfork_ppid.
1931 (inf_ttrace_attach): Ditto.
1932 (inf_ttrace_detach): Ditto.
1933 (inf_ttrace_kill): Use current_inferior instead of
1934 inf_ttrace_vfork_ppid.
1935 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1936 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1937 inferior away from the parent.
1938 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1939 target_follow_fork.
1940 (follow_fork_inferior): New function.
1941 (follow_inferior_reset_breakpoints): Make function static.
1942 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1943 * linux-nat.c (linux_child_follow_fork): Move target-independent
1944 code to infrun.c:follow_fork_inferior.
1945
1946 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1947
1948 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1949 * gdbarch.c: Regenerate.
1950 * gdbarch.h: Likewise.
1951 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1952 gdbarch method 'regset_from_core_section'.
1953 (get_core_register_section): Remove handling for the case that
1954 regset == NULL and regset_from_core_section is defined.
1955 (get_core_registers): Drop check for deleted method.
1956 * procfs.c (procfs_do_thread_registers): Adjust comment.
1957
1958 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1959
1960 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1961 (linux_nat_make_corefile_notes): Remove.
1962 (linux_target_install_ops): Do not set target method
1963 'make_corefile_notes'.
1964 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1965 Remove field.
1966 (linux_corefile_thread_callback): Instead of args->collect, call
1967 linux_collect_thread_registers.
1968 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1969 NULL unless there is a regset iterator.
1970 (linux_make_corefile_notes_1): Remove.
1971 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1972 by linux_make_corefile_notes.
1973 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1974
1975 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1976
1977 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1978 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1979 Remove.
1980 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1981
1982 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983
1984 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1985 (xtensa_iterate_over_regset_sections): New.
1986 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1987
1988 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1989
1990 * vax-tdep.c (vax_regset_from_core_section): Remove.
1991 (vax_iterate_over_regset_sections): New.
1992 (vax_gdbarch_init): Adjust gdbarch initialization.
1993
1994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995
1996 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1997 (tilegx_regset_from_core_section): Remove.
1998 (tilegx_iterate_over_regset_sections): New.
1999 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2000
2001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2002
2003 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2004 (sparc_iterate_over_regset_sections): New.
2005 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2006 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2007 targets.
2008 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2009 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2010 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2011 target method 'make_corefile_notes'.
2012
2013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014
2015 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2016 'sizeof_gregset' and 'sizeof_fpregset'.
2017 * sh-tdep.c (sh_regset_from_core_section): Remove.
2018 (sh_iterate_over_regset_sections): New.
2019 (sh_gdbarch_init): Adjust gdbarch initialization.
2020 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2021 sizeof_fpregset.
2022 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2023 'sizeof_gregset'.
2024
2025 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2026
2027 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2028 (score7_linux_iterate_over_regset_sections): New.
2029 (score_gdbarch_init): Adjust gdbarch initialization.
2030
2031 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2032
2033 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2034 FreeBSD targets.
2035 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2036 method 'make_corefile_notes'.
2037 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2038 (ppcfbsd_regset_from_core_section): Remove.
2039 (ppcfbsd_iterate_over_regset_sections): New.
2040 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2041 initialization.
2042 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2043 (ppcnbsd_iterate_over_regset_sections): New.
2044 (ppcnbsd_init_abi): Adjust.
2045 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2046 (ppcobsd_iterate_over_regset_sections): New.
2047 (ppcobsd_init_abi): Adjust.
2048 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2049 (rs6000_aix_iterate_over_regset_sections): New.
2050 (rs6000_aix_init_osabi): Adjust.
2051
2052 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2053
2054 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2055 (nios2_regset_from_core_section): Remove.
2056 (nios2_iterate_over_regset_sections): New.
2057 (nios2_linux_init_abi): Adjust gdbarch initialization.
2058
2059 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2060
2061 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2062 (am33_iterate_over_regset_sections): New.
2063 (am33_linux_init_osabi): Adjust gdbarch initialization.
2064
2065 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2066
2067 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2068 (mips_linux_iterate_over_regset_sections): New.
2069 (mips_linux_init_abi): Adjust gdbarch initialization.
2070 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2071 (mips64obsd_iterate_over_regset_sections): New.
2072 (mips64obsd_init_abi): Adjust.
2073 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2074 (mipsnbsd_iterate_over_regset_sections): New.
2075 (mipsnbsd_init_abi): Adjust.
2076
2077 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2078
2079 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2080 (m88k_iterate_over_regset_sections): New.
2081 (m88k_gdbarch_init): Adjust gdbarch initialization.
2082
2083 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2084
2085 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2086 (ia64_linux_iterate_over_regset_sections): New.
2087 (ia64_linux_init_abi): Adjust gdbarch initialization.
2088
2089 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2090
2091 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2092 (m68kbsd_iterate_over_regset_sections): New.
2093 (m68kbsd_init_abi): Adjust gdbarch initialization.
2094 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2095 (m68k_linux_iterate_over_regset_sections): New.
2096 (m68k_linux_init_abi): Adjust gdbarch initialization.
2097
2098 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2099
2100 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2101 (m32r_linux_regset_from_core_section): Remove.
2102 (m32r_linux_iterate_over_regset_sections): New.
2103 (m32r_linux_init_abi): Adjust gdbarch initialization.
2104
2105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2106
2107 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2108 (amd64obsd_iterate_over_regset_sections): New.
2109 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2110 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2111 Remove.
2112 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2113 regset_from_core_section initialization.
2114 * i386-tdep.c (i386_regset_from_core_section): Remove.
2115 (i386_iterate_over_regset_sections): New.
2116 (i386_gdbarch_init): Adjust gdbarch initialization.
2117 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2118 (i386_iterate_over_regset_sections): New prototype.
2119 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2120 Remove.
2121 (i386obsd_aout_iterate_over_regset_sections): New.
2122 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2123 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2124 targets.
2125 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2126 (amd64fbsd_init_abi): Call fbsd_init_abi.
2127 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2128 (i386fbsd4_init_abi): Call fbsd_init_abi.
2129 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2130 target method 'make_corefile_notes'.
2131 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2132
2133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2134
2135 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2136 (hppa_hpux_iterate_over_regset_sections): New.
2137 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2138 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2139 (hppa_linux_iterate_over_regset_sections): New.
2140 (hppa_linux_init_abi): Adjust.
2141 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2142 (hppanbsd_iterate_over_regset_sections): New.
2143 (hppanbsd_init_abi): Adjust.
2144 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2145 (hppaobsd_iterate_over_regset_sections): New.
2146 (hppaobsd_init_abi): Adjust.
2147
2148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2149
2150 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2151 (frv_linux_iterate_over_regset_sections): New.
2152 (frv_linux_init_abi): Adjust gdbarch initialization.
2153
2154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2155
2156 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2157 (armbsd_iterate_over_regset_sections): New prototype.
2158 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2159 (armbsd_iterate_over_regset_sections): New.
2160 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2161 initialization.
2162
2163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2164
2165 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2166 (alpha_linux_iterate_over_regset_sections): New.
2167 (alpha_linux_init_abi): Adjust gdbarch initialization.
2168 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2169 prototype.
2170 (alphanbsd_iterate_over_regset_sections): New prototype.
2171
2172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2173
2174 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2175 Remove.
2176 (aarch64_linux_iterate_over_regset_sections): New.
2177 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2178
2179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2180
2181 * fbsd-tdep.c: New file.
2182 * fbsd-tdep.h: New file.
2183 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2184 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2185 (ALLDEPFILES): Add fbsd-tdep.c.
2186
2187 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188
2189 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2190 parameter.
2191 * gdbarch.h: Regenerate.
2192 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2193 iterator.
2194 (get_core_register_section): Add parameter 'regset' and use it, if
2195 set. Add parameter 'min_size' and verify the bfd section size
2196 against it.
2197 (get_core_registers_cb): Add parameter 'regset' and pass it to
2198 get_core_register section. For the "standard" register sections
2199 ".reg" and ".reg2", set an appropriate default for human_name.
2200 (get_core_registers): Don't abort when the gdbarch has an iterator
2201 but no regset_from_core_section. Add NULL/0 for parameters
2202 'regset'/'min_size' in calls to get_core_register_section.
2203 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2204 'regset' and use it instead of calling the
2205 regset_from_core_section gdbarch method.
2206 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2207 * i386-tdep.c (i386_supply_xstateregset)
2208 (i386_collect_xstateregset, i386_xstateregset): Moved to
2209 i386-linux-tdep.c.
2210 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2211 .reg-xstate.
2212 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2213 core file support only if the regset iterator hasn't been set.
2214 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2215 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2216 Moved from i386-tdep.c and renamed to *_linux*.
2217 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2218 each callback invocation. Allow any .reg-xstate size when reading
2219 from a core file.
2220 * amd64-tdep.c (amd64_supply_xstateregset)
2221 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2222 amd64-linux-tdep.c.
2223 (amd64_regset_from_core_section): Remove.
2224 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2225 install an amd64-specific regset_from_core_section gdbarch method.
2226 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2227 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2228 Moved from amd64-tdep.c and renamed to *_linux*.
2229 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2230 to each callback invocation. Allow any .reg-xstate size when
2231 reading from a core file.
2232 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2233 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2234 each callback invocation.
2235 (arm_linux_init_abi): No longer set the regset_from_core_section
2236 gdbarch method.
2237 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2238 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2239 each callback invocation.
2240 (ppc_linux_init_abi): No longer set the regset_from_core_section
2241 gdbarch method.
2242 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2243 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2244 (s390_regset_from_core_section): Remove.
2245 (s390_iterate_over_regset_sections): Add regset parameter to each
2246 callback invocation.
2247 (s390_gdbarch_init): No longer set the regset_from_core_section
2248 gdbarch method. Drop initialization of deleted tdep fields.
2249
2250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2251
2252 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2253 (amd64_linux_iterate_over_regset_sections): New.
2254 (amd64_linux_init_abi_common): Don't install the regset section
2255 list, but the new iterator in gdbarch.
2256 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2257 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2258 (arm_linux_iterate_over_regset_sections): ...here. New function.
2259 (arm_linux_init_abi): Set iterator instead of section list.
2260 * corelow.c (get_core_registers_cb): New function, logic moved
2261 from...
2262 (get_core_registers): ...loop body here. Use new iterator method
2263 instead of walking through the regset section list.
2264 * gdbarch.sh: Remove 'core_regset_sections'. New method
2265 'iterate_over_regset_sections'. New typedef
2266 'iterate_over_regset_sections_cb'.
2267 * gdbarch.c: Regenerate.
2268 * gdbarch.h: Likewise.
2269 * i386-linux-tdep.c (i386_linux_regset_sections)
2270 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2271 Remove.
2272 (i386_linux_iterate_over_regset_sections): New.
2273 (i386_linux_init_abi): Don't choose a regset section list, but
2274 install new iterator in gdbarch.
2275 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2276 (linux_collect_regset_section_cb): New function, logic moved
2277 from...
2278 (linux_collect_thread_registers): ...loop body here. Use iterator
2279 method instead of walking through list.
2280 (linux_make_corefile_notes_1): Check for presence of iterator
2281 method instead of regset section list.
2282 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2283 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2284 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2285 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2286 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2287 (ppc_linux_init_abi): Don't choose from above regset section
2288 lists, but install new iterator in gdbarch.
2289 * regset.h (struct core_regset_section): Remove.
2290 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2291 have_linux_v1, have_linux_v2, and have_tdb.
2292 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2293 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2294 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2295 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2296 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2297 (s390_iterate_over_regset_sections): ...here. New function. Use
2298 new tdep fields.
2299 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2300 regset section lists, but install new iterator.
2301
2302 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2305
2306 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2307
2308 * progspace.c (print_program_space): Don't prune program spaces
2309 before printing them.
2310
2311 2014-09-25 Pedro Alves <palves@redhat.com>
2312
2313 * infrun.c (user_visible_resume_ptid): Don't check
2314 singlestep_breakpoints_inserted_p.
2315
2316 2014-09-25 Pedro Alves <palves@redhat.com>
2317
2318 * breakpoint.c (should_be_inserted): Add debug output.
2319
2320 2014-09-25 Pedro Alves <palves@redhat.com>
2321
2322 * infrun.c (stepping_past_instruction_at)
2323 (clear_exit_convenience_vars): Point at infrun.h instead of
2324 inferior.h.
2325 (handle_signal_stop): Fix typo.
2326
2327 2014-09-24 Yao Qi <yao@codesourcery.com>
2328
2329 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2330 bitmask.
2331
2332 2014-09-22 Gary Benson <gbenson@redhat.com>
2333
2334 * target.c (target_stop): Updated comment.
2335
2336 2014-09-22 Gary Benson <gbenson@redhat.com>
2337
2338 * target/target.h (target_stop_ptid): Renamed as...
2339 (target_stop_and_wait): New function. Updated comment.
2340 All uses updated.
2341 (target_continue_ptid): Renamed as...
2342 (target_continue_no_signal): New function. Updated comment.
2343 All uses updated.
2344
2345 2014-09-22 Pedro Alves <palves@redhat.com>
2346
2347 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2348 and "auto" merged.
2349 * breakpoint.c (enum ugll_insert_mode): New enum.
2350 (always_inserted_mode): Now a plain boolean.
2351 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2352 (breakpoints_always_inserted_mode): Delete.
2353 (breakpoints_should_be_inserted_now): New function.
2354 (insert_breakpoints): Pass UGLL_INSERT to
2355 update_global_location_list instead of calling
2356 insert_breakpoint_locations manually.
2357 (create_solib_event_breakpoint_1): New, factored out from ...
2358 (create_solib_event_breakpoint): ... this.
2359 (create_and_insert_solib_event_breakpoint): Use
2360 create_solib_event_breakpoint_1 instead of calling
2361 insert_breakpoint_locations manually.
2362 (update_global_location_list): Change parameter type from boolean
2363 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2364 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2365 (update_global_location_list_nothrow): Change parameter type from
2366 boolean to enum ugll_insert_mode.
2367 (_initialize_breakpoint): "breakpoint always-inserted" option is
2368 now a boolean command. Update help text.
2369 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2370 (breakpoints_should_be_inserted_now): New declaration.
2371 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2372 Remove breakpoints_always_inserted_mode check.
2373 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2374 * remote.c (remote_start_remote): Likewise.
2375
2376 2014-09-22 Pedro Alves <palves@redhat.com>
2377
2378 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2379 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2380 Instead, pass UGLL_INSERT to update_global_location_list.
2381 (update_global_location_list): Change parameter type from boolean
2382 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2383 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2384 (create_solib_event_breakpoint_1): New, factored out from ...
2385 (create_solib_event_breakpoint): ... this.
2386 (create_and_insert_solib_event_breakpoint): Use
2387 create_solib_event_breakpoint_1 instead of calling
2388 insert_breakpoint_locations manually.
2389 (update_global_location_list): Handle UGLL_INSERT.
2390
2391 2014-09-22 Pedro Alves <palves@redhat.com>
2392
2393 * breakpoint.c (enum ugll_insert_mode): New enum.
2394 (update_global_location_list)
2395 (update_global_location_list_nothrow): Change parameter type from
2396 boolean to enum ugll_insert_mode. All callers adjusted.
2397
2398 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2399
2400 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2401 SystemTap support in GDB.
2402
2403 2014-09-19 Don Breazeal <donb@codesourcery.com>
2404
2405 * linux-nat.c (linux_handle_extended_wait): Call
2406 linux_ptrace_get_extended_event.
2407 (wait_lwp): Call linux_is_extended_waitstatus.
2408 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2409 and linux_is_extended_waitstatus.
2410 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2411 linux_ptrace_get_extended_event.
2412 (linux_ptrace_get_extended_event): New function.
2413 (linux_is_extended_waitstatus): New function.
2414 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2415 (linux_is_extended_waitstatus): New declarations.
2416
2417 2014-09-19 Yao Qi <yao@codesourcery.com>
2418
2419 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2420 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2421 comments. Callers update.
2422 (dwarf_decode_lines): Likewise.
2423 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2424 comments. Skip the line table if 'lowpc' is greater than
2425 'address'. Don't check
2426 dwarf2_per_objfile->has_section_at_zero.
2427
2428 2014-09-18 Doug Evans <dje@google.com>
2429
2430 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2431 * python/py-symtab.c (stpy_get_producer): New function.
2432 (symtab_object_getset): Add "producer" attribute.
2433
2434 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2435
2436 PR gdb/17384
2437 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2438 (do_captured_read_memory_integer): Remove.
2439 (safe_read_memory_integer): Use target_read_memory directly instead
2440 of catching errors in do_captured_read_memory_integer.
2441
2442 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2443
2444 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2445 not gdb/doc.
2446
2447 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2448
2449 * objc-lang.c (find_implementation_from_class): Remove dead code.
2450
2451 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2452
2453 PR cli/7233
2454 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2455 "fprintf_unfiltered (gdb_stdlog...)".
2456
2457 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2458
2459 PR breakpoints/12526
2460 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2461 val_bitsize.
2462 * breakpoint.c (watch_command_1): Use these fields to retain
2463 bitfield information.
2464 (extract_bitfield_from_watchpoint_value): New function.
2465 (watchpoint_check): Use it.
2466 (update_watchpoint): Use it. Optimize the address and length of a
2467 HW watchpoint pointing to a bitfield.
2468 * value.h (unpack_value_bitfield): New prototype.
2469 * value.c (unpack_value_bitfield): Make extern.
2470
2471 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2472
2473 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2474 x86-dregs.o.
2475 * gnu-nat.c (inf_threads): New function.
2476 * gnu-nat.h (inf_threads_ftype): New typedef.
2477 (inf_threads): New declaration.
2478 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2479 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2480 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2481 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2482 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2483 (i386_gnu_dr_get_control): New functions.
2484 (reg_addr): New structure.
2485 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2486 i386 debugging register hooks.
2487 * NEWS: Mention this.
2488
2489 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2490
2491 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2492 vector data transfer instructions.
2493 (arm_record_coproc_data_proc): Updated.
2494
2495 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2496
2497 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2498 arm_record_exreg_ld_st_insn.
2499 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2500 load/store insns.
2501
2502 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2503
2504 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2505 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2506 processing instructions.
2507
2508 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2509
2510 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2511 for advance SIMD struct ld/st insn.
2512 (thumb2_record_decode_insn_handler): Replace stub handler with
2513 thumb2_record_asimd_struct_ld_st.
2514
2515 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2516
2517 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2518 for asimd, vfp and coprocessor insns.
2519 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2520 and coprocessor insns.
2521 (thumb2_record_coproc_insn): New function.
2522 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2523 handlers.
2524 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2525 opcode 110 insns.
2526
2527 2014-09-13 Doug Evans <xdje42@gmail.com>
2528
2529 * NEWS: Mention new "queue-signal" command.
2530 * infcmd.c (queue_signal_command): New function.
2531 (_initialize_infcmd): Add new queue-signal command.
2532
2533 2014-09-13 Doug Evans <xdje42@gmail.com>
2534
2535 * linux-nat.c (wait_lwp): Add debugging printf.
2536 (linux_nat_wait_1): Ditto.
2537
2538 2014-09-12 Pedro Alves <palves@redhat.com>
2539
2540 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2541 (create_and_insert_solib_event_breakpoint): New functions.
2542 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2543 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2544 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2545 (remove_dbx_link_breakpoint): Delete function.
2546 (insert_dbx_link_bpt_in_file): Use
2547 create_and_insert_solib_event_breakpoint instead of
2548 deprecated_insert_raw_breakpoint.
2549 (procfs_wait): Don't check whether we hit __dbx_link here.
2550 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2551 here.
2552 * solib-irix.c (base_breakpoint): Delete global.
2553 (disable_break): Delete function.
2554 (enable_break): Use create_solib_event_breakpoint
2555 instead of deprecated_insert_raw_breakpoint.
2556 (irix_solib_handle_event): New function.
2557 (irix_solib_create_inferior_hook): Don't run the target or disable
2558 the mapping-complete breakpoint here.
2559 (_initialize_irix_solib): Install irix_solib_handle_event as
2560 so_ops->handle_event hook.
2561
2562 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2563 Ulrich Weigand  <uweigand@de.ibm.com>
2564
2565 PR tdep/17379
2566 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2567 instead of read_memory_unsigned_integer.
2568
2569 2014-09-12 Gary Benson <gbenson@redhat.com>
2570
2571 * nat/linux-waitpid.c: Include common-defs.h.
2572 [GDBSERVER]: Add FIXME comment.
2573 [!GDBSERVER]: Don't include defs.h or signal.h.
2574 (linux_debug) [!GDBSERVER]: Remove empty block.
2575
2576 2014-09-12 Gary Benson <gbenson@redhat.com>
2577
2578 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2579 Don't include defs.h or server.h.
2580
2581 2014-09-12 Gary Benson <gbenson@redhat.com>
2582
2583 * nat/linux-btrace.c: Include common-defs.h.
2584 Don't include defs.h, server.h or gdbthread.h.
2585 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2586
2587 2014-09-12 Gary Benson <gbenson@redhat.com>
2588
2589 * common/agent.c: Include common-defs.h.
2590 Don't include defs.h or server.h.
2591 * common/buffer.c: Likewise.
2592 * common/common-debug.c: Likewise.
2593 * common/common-utils.c: Likewise.
2594 * common/errors.c: Likewise.
2595 * common/filestuff.c: Likewise.
2596 * common/format.c: Likewise.
2597 * common/gdb_vecs.c: Likewise.
2598 * common/print-utils.c: Likewise.
2599 * common/ptid.c: Likewise.
2600 * common/rsp-low.c: Likewise.
2601 * common/signals.c: Likewise.
2602 * common/vec.c: Likewise.
2603 * common/xml-utils.c: Likewise.
2604 * nat/linux-osdata.c: Likewise.
2605 * nat/linux-procfs.c: Likewise.
2606 * nat/linux-ptrace.c: Likewise.
2607 * nat/mips-linux-watch.c: Likewise.
2608 * target/waitstatus.c: Likewise.
2609
2610 2014-09-12 Tom Tromey <tromey@redhat.com>
2611 Gary Benson <gbenson@redhat.com>
2612
2613 * common/common-regcache.h: New file.
2614 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2615 * regcache.h: Include common-regcache.h.
2616 (regcache_read_pc): Don't declare.
2617 * regcache.c (get_thread_regcache_for_ptid): New function.
2618 * nat/linux-btrace.c: Don't include regcache.h.
2619 Include common-regcache.h.
2620 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2621
2622 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2623
2624 * regcache.h (struct regset): Declare.
2625
2626 2014-09-11 Pedro Alves <palves@redhat.com>
2627
2628 PR gdb/17347
2629 * main.c: Include "infrun.h".
2630 (catch_command_errors, catch_command_errors_const): Wait for the
2631 foreground command to complete.
2632 * top.c (maybe_wait_sync_command_done): New function, factored out
2633 from ...
2634 (maybe_wait_sync_command_done): ... here.
2635 * top.h (maybe_wait_sync_command_done): New declaration.
2636
2637 2014-09-11 Tom Tromey <tromey@redhat.com>
2638 Gary Benson <gbenson@redhat.com>
2639
2640 * common/symbol.h: New file.
2641 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2642 * minsyms.c (find_minimal_symbol_address): New function.
2643 * common/agent.c: Include common/symbol.h.
2644 [!GDBSERVER]: Don't include objfiles.h.
2645 (agent_look_up_symbols): Use find_minimal_symbol_address.
2646
2647 2014-09-11 Gary Benson <gbenson@redhat.com>
2648
2649 * target/target.h (target_stop_ptid, target_continue_ptid):
2650 Declare.
2651 * target.c (target_stop_ptid, target_continue_ptid): New
2652 functions.
2653 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2654 (agent_run_command): Always use target_stop_ptid and
2655 target_continue_ptid.
2656
2657 2014-09-11 Tom Tromey <tromey@redhat.com>
2658 Gary Benson <gbenson@redhat.com>
2659
2660 * target/target.h: New file.
2661 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2662 * target.h: Include target/target.h.
2663 (target_read_memory, target_write_memory): Don't declare.
2664 * target.c (target_read_uint32): New function.
2665 * common/agent.c: Include target/target.h.
2666 [!GDBSERVER]: Don't include target.h.
2667 (helper_thread_id): Type changed to uint32_t.
2668 (agent_get_helper_thread_id): Use target_read_uint32.
2669 (agent_run_command): Always use target_read_memory and
2670 target_write_memory.
2671 (agent_capability): Type changed to uint32_t.
2672 (agent_capability_check): Use target_read_uint32.
2673
2674 2014-09-11 Gary Benson <gbenson@redhat.com>
2675
2676 * common/common-debug.h (show_debug_regs): Declare.
2677 * common/common-debug.c (show_debug_regs): Define.
2678 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2679 all uses with show_debug_regs. Replace all uses that considered
2680 debug_hw_points as a multi-value integer with straight boolean
2681 uses.
2682 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2683 with show_debug_regs.
2684 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2685 all uses with show_debug_regs.
2686 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2687 uses with show_debug_regs.
2688
2689 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2690
2691 * findvar.c (address_from_register): Handle targets requiring
2692 a special conversion routine even for plain pointer types.
2693
2694 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2695
2696 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2697 (store_register): Do not call exec_one_dummy_insn.
2698
2699 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2700
2701 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2702 dereference it first. Use value_enclosing_type instead of
2703 value_type.
2704 (ada_array_length): Likewise.
2705
2706 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2707
2708 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2709 Adjust function implementation and documentation accordingly.
2710 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2711 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2712 Update call to ada_value_ptr_subscript.
2713
2714 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2715
2716 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2717 instead of VAL's type.
2718
2719 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2720
2721 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2722
2723 2014-09-09 Doug Evans <xdje42@gmail.com>
2724
2725 PR guile/17367
2726 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2727 last parameter to pkg-config, not first.
2728 * configure.ac: Pass --with-guile provided pkg-config path to
2729 GDB_GUILE_PROGRAM_NAMES.
2730 * configure: Regenerate.
2731
2732 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2733
2734 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2735 Bertazi".
2736
2737 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2738
2739 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2740 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2741 the list of sections determining GDB_OSABI_IRIX.
2742
2743 2014-09-09 James Hogan <james.hogan@imgtec.com>
2744
2745 * MAINTAINERS (Write After Approval): Add "James Hogan".
2746
2747 2014-09-09 James Hogan <james.hogan@imgtec.com>
2748
2749 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2750
2751 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2752
2753 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2754
2755 2014-09-08 Doug Evans <xdje42@gmail.com>
2756
2757 PR 17247
2758 * guile.c: #include <signal.h>.
2759 (_initialize_guile): Block SIGCHLD while initializing Guile.
2760
2761 Replaces the following, which is reverted.
2762
2763 2014-07-26 Doug Evans <xdje42@gmail.com>
2764
2765 PR 17185
2766 * configure.ac: Add check for header gc/gc.h.
2767 Add check for function setenv.
2768 * configure: Regenerate.
2769 * config.in: Regenerate.
2770 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2771
2772 2014-09-08 Doug Evans <xdje42@gmail.com>
2773
2774 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2775 with named constant. Fix style of pointer comparison.
2776 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2777
2778 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2779
2780 PR gdb/17035
2781 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2782 decide whether we display the command on "show user".
2783 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2784 printing command name.
2785 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2786 * cli/cli-decode.c (cli_user_command_p): Create helper function
2787 to verify whether cmd_list_element is a user-defined command.
2788
2789 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 PR python/17355
2792 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2793 Fix goto out of TRY_CATCH.
2794
2795 2014-09-06 Doug Evans <xdje42@gmail.com>
2796 Tom Tromey <tromey@redhat.com>
2797
2798 PR 15276
2799 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2800 $_any_caller_matches.
2801 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2802 * python/lib/gdb/function/caller_is.py: New file.
2803
2804 2014-09-06 Doug Evans <xdje42@gmail.com>
2805
2806 * infcmd.c (program_info): Fix typo.
2807
2808 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2809
2810 PR gdb/17235
2811 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2812 'number'. New variable 'has_digit'. Rewrite code to deal with
2813 subexpressions on SDT probes.
2814
2815 2014-09-04 Pedro Alves <palves@redhat.com>
2816
2817 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2818 the input is only one character long.
2819
2820 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2821
2822 PR fortran/17237
2823 * f-valprint.c (f_val_print): Specify the correct print option to
2824 use when printing integer values.
2825
2826 2014-09-04 Gary Benson <gbenson@redhat.com>
2827
2828 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2829 Remove code to cope with LWPs wrapped as PIDs.
2830 Add assertions to ensure no wrapped LWPs are passed.
2831
2832 2014-09-04 Pedro Alves <palves@redhat.com>
2833
2834 * value.c (value_ranges_copy_adjusted): New function, factored out
2835 from ...
2836 (value_contents_copy_raw): ... here.
2837 (unpack_value_bits_as_long_1): Rename back to ...
2838 (unpack_bits_as_long): ... this. Remove 'original_value' and
2839 'result' parameters. Change return type to LONGEST.
2840 (unpack_value_bits_as_long): Delete.
2841 (unpack_value_field_as_long_1): Delete.
2842 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2843 (unpack_value_bitfield): New function.
2844 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2845 (value_fetch_lazy): Use unpack_value_bitfield.
2846 * value.h (unpack_value_bits_as_long): Delete declaration.
2847
2848 2014-09-03 Sasha Smundak <asmundak@google.com>
2849
2850 * python/py-frame.c (frapy_read_register): New function.
2851
2852 2014-09-03 James Hogan <james.hogan@imgtec.com>
2853
2854 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2855 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2856
2857 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2858
2859 PR python/16699
2860 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2861 function.
2862 (add_cmd): Set "completer_handle_brkchars" to NULL.
2863 * cli/cli-decode.h (struct cmd_list_element)
2864 <completer_handle_brkchars>: New field.
2865 * command.h (completer_ftype_void): New typedef.
2866 (set_cmd_completer_handle_brkchars): New prototype.
2867 * completer.c (set_gdb_completion_word_break_characters): New
2868 function.
2869 (complete_line_internal): Call "completer_handle_brkchars"
2870 callback from command.
2871 * completer.h: Include "command.h".
2872 (set_gdb_completion_word_break_characters): New prototype.
2873 * python/py-cmd.c (cmdpy_completer_helper): New function.
2874 (cmdpy_completer_handle_brkchars): New function.
2875 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2876 (cmdpy_init): Set completer_handle_brkchars to
2877 cmdpy_completer_handle_brkchars.
2878
2879 2014-09-03 Gary Benson <gbenson@redhat.com>
2880
2881 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2882 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2883 Loop conditions changed to equivalent form.
2884 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2885 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2886 ALL_DEBUG_ADDRESS_REGISTERS.
2887
2888 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2889
2890 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2891 description fix.
2892
2893 2014-09-02 Doug Evans <dje@google.com>
2894
2895 * typeprint.c (find_global_typedef): Fix comment.
2896
2897 2014-09-02 Gary Benson <gbenson@redhat.com>
2898
2899 * i386-nat.h: Renamed as...
2900 * x86-nat.h: New file. All type, function and variable name
2901 prefixes changed from "i386_" to "x86_". All references updated.
2902 * i386-nat.c: Renamed as...
2903 * x86-nat.c: New file. All type, function and variable name
2904 prefixes changed from "i386_" to "x86_". All references updated.
2905 * common/i386-xstate.h: Renamed as...
2906 * common/x86-xstate.h: New file. All type, function and variable
2907 name prefixes changed from "i386_" to "x86_". All references
2908 updated.
2909 * nat/i386-cpuid.h: Renamed as...
2910 * nat/x86-cpuid.h: New file. All type, function and variable name
2911 prefixes changed from "i386_" to "x86_". All references updated.
2912 * nat/i386-gcc-cpuid.h: Renamed as...
2913 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2914 name prefixes changed from "i386_" to "x86_". All references
2915 updated.
2916 * nat/i386-dregs.h: Renamed as...
2917 * nat/x86-dregs.h: New file. All type, function and variable name
2918 prefixes changed from "i386_" to "x86_". All references updated.
2919 * nat/i386-dregs.c: Renamed as...
2920 * nat/x86-dregs.c: New file. All type, function and variable name
2921 prefixes changed from "i386_" to "x86_". All references updated.
2922
2923 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2924
2925 * varobj.c (_initialize_varobj): Move to the end of file.
2926
2927 2014-08-29 Gary Benson <gbenson@redhat.com>
2928
2929 * common/common-exceptions.h: New file.
2930 * common/common-exceptions.c: Likewise.
2931 * Makefile.in (SFILES): Add common/common-exceptions.c.
2932 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2933 (COMMON_OBS): Add common-exceptions.o.
2934 (common-exceptions.o): New rule.
2935 * exceptions.h (common-exceptions.h): Include.
2936 (gdb_setjmp.h): Do not include.
2937 (return_reason): Moved to common-exceptions.h.
2938 (enum return_reason): Likewise.
2939 (RETURN_MASK): Likewise.
2940 (typedef return_mask): Likewise.
2941 (enum errors): Likewise.
2942 (struct gdb_exception): Likewise.
2943 (exceptions_state_mc_init): Likewise.
2944 (exceptions_state_mc_action_iter): Likewise.
2945 (exceptions_state_mc_action_iter_1): Likewise.
2946 (TRY_CATCH): Likewise.
2947 (throw_exception): Likewise.
2948 (throw_verror): Likewise.
2949 (throw_vquit): Likewise.
2950 (throw_error): Likewise.
2951 (throw_quit): Likewise.
2952 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2953 (enum catcher_action): Likewise.
2954 (struct catcher): Likewise.
2955 (current_catcher): Likewise.
2956 (catcher_list_size): Likewise.
2957 (exceptions_state_mc_init): Likewise.
2958 (catcher_pop): Likewise.
2959 (exceptions_state_mc): Likewise.
2960 (exceptions_state_mc_action_iter): Likewise.
2961 (exceptions_state_mc_action_iter_1): Likewise.
2962 (throw_exception): Likewise.
2963 (exception_messages): Likewise.
2964 (exception_messages_size): Likewise.
2965 (throw_it): Likewise.
2966 (throw_verror): Likewise.
2967 (throw_vquit): Likewise.
2968 (throw_error): Likewise.
2969 (throw_quit): Likewise.
2970 (prepare_to_throw_exception): New function.
2971
2972 2014-08-29 Gary Benson <gbenson@redhat.com>
2973
2974 * common/gdb_setjmp.h: New file.
2975 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2976 * configure.ac: Move sigsetjmp check...
2977 * common/common.m4: ...here.
2978 * configure: Regenerate.
2979 * cp-support.c (SIGJMP_BUF): Delete.
2980 (SIGSETJMP): Likewise.
2981 (SIGLONGJMP): Likewise.
2982 * exceptions.h (gdb_setjmp.h): Include.
2983 (setjmp.h): Do not include.
2984 (EXCEPTIONS_SIGJMP_BUF): Delete.
2985 (EXCEPTIONS_SIGSETJMP): Likewise.
2986 (EXCEPTIONS_SIGLONGJMP): Likewise.
2987 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2988 from gdb_setjmp.h.
2989 * exceptions.c: Likewise.
2990
2991 2014-08-29 Gary Benson <gbenson@redhat.com>
2992
2993 * cleanups.h: Moved to...
2994 * common/cleanups.h: New file.
2995 * cleanups.c: Moved to...
2996 * common/cleanups.c: New file. Include common-defs.h and
2997 cleanups.h. Do not include defs.h.
2998 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2999 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3000 (cleanups.o): New rule.
3001
3002 2014-08-29 Gary Benson <gbenson@redhat.com>
3003
3004 * common/errors.h (internal_warning): New declaration.
3005 (internal_vwarning): Likewise.
3006 * common/errors.c (internal_warning): New function.
3007 * utils.h (internal_warning): Don't declare.
3008 (internal_vwarning): Likewise.
3009 * utils.c (internal_warning): Removed.
3010
3011 2014-08-29 Gary Benson <gbenson@redhat.com>
3012
3013 * main.c (captured_main): Use warning during startup.
3014 Prefix startup warning messages with command name.
3015
3016 2014-08-29 Gary Benson <gbenson@redhat.com>
3017
3018 * main.c (captured_main): Handle usage errors with error.
3019
3020 2014-08-29 Gary Benson <gbenson@redhat.com>
3021
3022 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3023 exit pair with a call to error. Wrap the message with _().
3024
3025 2014-08-29 Gary Benson <gbenson@redhat.com>
3026
3027 * main.c (captured_main): Replace a fprintf/exit
3028 pair with a call to error. Wrap the message with _().
3029
3030 2014-08-29 Gary Benson <gbenson@redhat.com>
3031
3032 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3033 pairs with calls to error. Wrap the message with _().
3034
3035 2014-08-29 Gary Benson <gbenson@redhat.com>
3036
3037 * utils.c (vwarning): Protect calls to target_terminal_ours
3038 and wrap_here.
3039
3040 2014-08-29 Gary Benson <gbenson@redhat.com>
3041
3042 * exceptions.c (print_flush): Protect calls to
3043 target_terminal_ours and wrap_here.
3044
3045 2014-08-29 Gary Benson <gbenson@redhat.com>
3046
3047 * utils.h (filtered_printing_initialized): New declaration.
3048 * utils.c (abort_with_message): New function.
3049 (internal_vproblem): Use abort_with_message for first level
3050 recursive internal problems, and if gdb_stderr is not set up.
3051 Protect calls to target_terminal_ours, begin_line and query.
3052
3053 2014-08-28 Doug Evans <dje@google.com>
3054
3055 * symtab.c (in_prologue): Move definition to better spot.
3056 (skip_prologue_using_sal): Ditto.
3057
3058 2014-08-28 Doug Evans <dje@google.com>
3059
3060 * symtab.c (find_function_start_sal): Move definition to better spot.
3061
3062 2014-08-28 Yao Qi <yao@codesourcery.com>
3063
3064 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3065 found_stack_adjust in forward scan. Remove condition check
3066 on found_stack_adjust which is always true. Indent the code.
3067
3068 2014-08-28 Yao Qi <yao@codesourcery.com>
3069
3070 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3071 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3072 (dwarf_decode_lines): Remove argument
3073 want_line_info. Remove condition check on want_line_info.
3074 Callers update.
3075
3076 2014-08-27 Doug Evans <dje@google.com>
3077
3078 * dwarf2read.c (dwarf_record_line): Fix typo.
3079
3080 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3081
3082 * target.h (struct target_ops::to_terminal_save_ours): Remove
3083 declaration.
3084 (target_terminal_save_ours): Remove macro.
3085 * target-delegates.c: Regenerate.
3086 * inf-child.c (inf_child_target): Don't set the nonexistent
3087 field to_terminal_save_ours.
3088 * inferior.h (child_terminal_save_ours): Remove declaration.
3089 * terminal.h (gdb_save_tty_state): New declaration.
3090 * inflow.c (child_terminal_save_ours): Rename to ...
3091 (gdb_save_tty_state): ... this.
3092 * tui/tui.c: Include terminal.h.
3093 (tui_enable): Use gdb_save_tty_state instead of
3094 target_terminal_save_ours.
3095 (tui_disable): Likewise.
3096
3097 2014-08-25 Doug Evans <dje@google.com>
3098
3099 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3100 Pass NULL instead of 0 for context pointer.
3101
3102 2014-08-25 Yao Qi <yao@codesourcery.com>
3103
3104 * dwarf2read.c: Fix grammatical error.
3105
3106 2014-08-24 Yao Qi <yao@codesourcery.com>
3107
3108 * dwarf2read.c (scan_partial_symbols): Update comments.
3109 Rename argument 'need_pc' with 'set_addrmap'.
3110 (add_partial_namespace): Rename argument 'need_pc' with
3111 'set_addrmap'.
3112 (add_partial_module): Likewise.
3113 (add_partial_subprogram): Likewise. Update comments.
3114 (dwarf2_name): Fix typo.
3115
3116 2014-08-22 Doug Evans <dje@google.com>
3117
3118 PR 17276
3119 * dwarf2read.c (dwarf_record_line_p): New function.
3120 (dwarf_decode_lines_1): Ignore subsequent line number entries
3121 for the same line if any entry had a non-zero discriminator.
3122
3123 2014-08-22 Doug Evans <dje@google.com>
3124
3125 * buildsym.h (record_line_ftype): New typedef.
3126 (record_line): Use it.
3127 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3128 (dwarf_decode_lines_1): Call them.
3129
3130 2014-08-22 Yao Qi <yao@codesourcery.com>
3131
3132 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3133 (ctf_end): Remove code.
3134
3135 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3138 (linux_make_corefile_notes): call update_thread_list, protected against
3139 exceptions.
3140
3141 2014-08-21 Pedro Alves <palves@redhat.com>
3142
3143 * infcmd.c (attach_command): Remove comment.
3144
3145 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3146
3147 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3148 unsigned LONGEST to ULONGEST.
3149
3150 2014-08-20 Pedro Alves <palves@redhat.com>
3151
3152 * Makefile.in (check-read1): New rule.
3153
3154 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3155
3156 * value.c (value_from_contents_and_address): Strip resolved_type's
3157 typedef layers before checking its TYPE_DATA_LOCATION.
3158
3159 2014-08-20 Pedro Alves <palves@redhat.com>
3160
3161 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3162
3163 2014-08-20 Yao Qi <yao@codesourcery.com>
3164
3165 * amd64-tdep.c (amd64_classify): Add a blank line after the
3166 example. Move "*/" to a new line.
3167 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3168 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3169 * dwarf2read.c (psymtab_include_file_name): Likewise.
3170
3171 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3172 Pedro Alves <palves@redhat.com>
3173
3174 PR symtab/14604
3175 PR symtab/14605
3176 * ada-lang.c (coerce_unspec_val_to_type): Use
3177 value_contents_copy_raw.
3178 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3179 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3180 * cp-valprint.c (cp_print_value_fields): Let the common printing
3181 code handle optimized out values.
3182 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3183 * d-valprint.c (dynamic_array_type): Use
3184 value_bits_any_optimized_out.
3185 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3186 check_any_valid fields.
3187 (check_pieced_value_bits): Delete and inline ...
3188 (check_pieced_synthetic_pointer): ... here.
3189 (check_pieced_value_validity): Delete.
3190 (check_pieced_value_invalid): Delete.
3191 (pieced_value_funcs): Remove check_validity and check_any_valid
3192 fields.
3193 (read_pieced_value): Use mark_value_bits_optimized_out.
3194 (write_pieced_value): Switch to use
3195 mark_value_bytes_optimized_out.
3196 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3197 of assuming the whole value is optimized out.
3198 * findvar.c (read_frame_register_value): Remove special handling
3199 of optimized out registers.
3200 (value_from_register): Use mark_value_bytes_optimized_out.
3201 * frame-unwind.c (frame_unwind_got_optimized): Use
3202 mark_value_bytes_optimized_out.
3203 * jv-valprint.c (java_value_print): Adjust.
3204 (java_print_value_fields): Let the common printing code handle
3205 optimized out values.
3206 * mips-tdep.c (mips_print_register): Remove special handling of
3207 optimized out registers.
3208 * opencl-lang.c (lval_func_check_validity): Delete.
3209 (lval_func_check_any_valid): Delete.
3210 (opencl_value_funcs): Remove check_validity and check_any_valid
3211 fields.
3212 * p-valprint.c (pascal_object_print_value_fields): Let the common
3213 printing code handle optimized out values.
3214 * stack.c (read_frame_arg): Remove special handling of optimized
3215 out values. Fetch both VAL and ENTRYVAL before comparing
3216 contents. Adjust to value_available_contents_eq rename.
3217 * valprint.c (valprint_check_validity)
3218 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3219 (val_print_array_elements): Adjust.
3220 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3221 (value_bits_any_optimized_out): New function.
3222 (value_entirely_covered_by_range_vector): New function, factored
3223 out from value_entirely_unavailable.
3224 (value_entirely_unavailable): Reimplement.
3225 (value_entirely_optimized_out): New function.
3226 (insert_into_bit_range_vector): New function, factored out from
3227 mark_value_bits_unavailable.
3228 (mark_value_bits_unavailable): Reimplement.
3229 (struct ranges_and_idx): New struct.
3230 (find_first_range_overlap_and_match): New function, factored out
3231 from value_available_contents_bits_eq.
3232 (value_available_contents_bits_eq): Rename to ...
3233 (value_contents_bits_eq): ... this. Check both unavailable
3234 contents and optimized out contents.
3235 (value_available_contents_eq): Rename to ...
3236 (value_contents_eq): ... this.
3237 (allocate_value_lazy): Remove reference to the old optimized_out
3238 boolean.
3239 (allocate_optimized_out_value): Use
3240 mark_value_bytes_optimized_out.
3241 (require_not_optimized_out): Adjust to check whether the
3242 optimized_out vec is empty.
3243 (ranges_copy_adjusted): New function, factored out from
3244 value_contents_copy_raw.
3245 (value_contents_copy_raw): Also copy the optimized out ranges.
3246 Assert the destination ranges aren't optimized out.
3247 (value_contents_copy): Update comment, remove call to
3248 require_not_optimized_out.
3249 (value_contents_equal): Adjust to check whether the optimized_out
3250 vec is empty.
3251 (set_value_optimized_out, value_optimized_out_const): Delete.
3252 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3253 New functions.
3254 (value_entirely_optimized_out, value_bits_valid): Delete.
3255 (value_copy): Take a VEC copy of the 'optimized_out' field.
3256 (value_primitive_field): Remove special handling of optimized out.
3257 (value_fetch_lazy): Assert that lazy values have no unavailable
3258 regions. Use value_bits_any_optimized_out. Remove some special
3259 handling for optimized out values.
3260 * value.h: Add intro comment about <optimized out> and
3261 <unavailable>.
3262 (struct lval_funcs): Remove check_validity and check_any_valid
3263 fields.
3264 (set_value_optimized_out, value_optimized_out_const): Remove.
3265 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3266 New declarations.
3267 (value_bits_any_optimized_out): New declaration.
3268 (value_bits_valid): Delete declaration.
3269 (value_available_contents_eq): Rename to ...
3270 (value_contents_eq): ... this, and extend comments.
3271
3272 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3273
3274 Fix -fsanitize=address on unreadable inferior strings.
3275 * valprint.c (val_print_string): Fix access before BUFFER.
3276
3277 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3278
3279 * target.c (target_struct_size): Remove.
3280 (target_struct_allocsize): Remove.
3281 (DEFAULT_ALLOCSIZE): Remove.
3282 (target_ops_p): New typedef.
3283 (DEF_VEC_P (target_ops_p)): New vector type.
3284 (target_structs): Change type to VEC (target_ops_p).
3285 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3286 (find_default_run_target): Rewrite for loop following changes to
3287 target_structs.
3288
3289 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3290
3291 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3292 Adjust code accordingly. Adjust function description comment.
3293
3294 2014-08-19 Yao Qi <yao@codesourcery.com>
3295
3296 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3297 types.
3298
3299 2014-08-19 Alan Modra <amodra@gmail.com>
3300
3301 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3302 * config.in: Regenerate.
3303 * configure: Regenerate.
3304
3305 2014-08-19 Tom Tromey <tromey@redhat.com>
3306 Gary Benson <gbenson@redhat.com>
3307
3308 * common/common-debug.h: New file.
3309 * common/common-debug.c: Likewise.
3310 * debug.c: Likewise.
3311 * Makefile.in (SFILES): Add common/common-debug.c.
3312 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3313 (COMMON_OBS): Add common-debug.o and debug.o.
3314 (common-debug.o): New rule.
3315 * common/common-defs.h: Include common-debug.h.
3316 * common/agent.c (debug_agent_printf): New function.
3317 (DEBUG_AGENT): Redefine.
3318 * nat/i386-dregs.c (debug_printf): Undefine.
3319
3320 2014-08-19 Gary Benson <gbenson@redhat.com>
3321
3322 * common/common-defs.h: Include print-utils.h.
3323 * utils.h: Do not include print-utils.h.
3324
3325 2014-08-19 Tom Tromey <tromey@redhat.com>
3326 Gary Benson <gbenson@redhat.com>
3327
3328 * common/common-types.h: New file.
3329 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3330 * common/common-defs.h: Include common-types.h.
3331 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3332 (ULONGEST): Remove.
3333
3334 2014-08-19 Tom Tromey <tromey@redhat.com>
3335 Gary Benson <gbenson@redhat.com>
3336
3337 * common/errors.h: New file.
3338 * common/errors.c: Likewise.
3339 * Makefile.in (SFILES): Add common/errors.c.
3340 (HFILES_NO_SRCDIR): Add common/errors.h.
3341 (COMMON_OBS): Add errors.o.
3342 (errors.o): New rule.
3343 * common/common-defs.h: Include errors.h.
3344 * utils.h (perror_with_name, error, verror, warning, vwarning):
3345 Don't declare.
3346 * common/common-utils.h: (malloc_failure, internal_error):
3347 Likewise.
3348
3349 2014-08-19 Gary Benson <gbenson@redhat.com>
3350
3351 * utils.c (internal_vproblem): Always print the message.
3352
3353 2014-08-18 Doug Evans <dje@google.com>
3354
3355 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3356
3357 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3358
3359 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3360 Return 0 if TYPE is dynamic.
3361 (print_range): Add handling of dynamic ranges.
3362
3363 2014-08-18 Keven Boell <keven.boell@intel.com>
3364 Joel Brobecker <brobecker@adacore.com>
3365
3366 * gdbtypes.h (struct main_type): Add field "data_location".
3367 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3368 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3369 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3370 a dynamic data location.
3371 (resolve_dynamic_type): Add DW_AT_data_location handling.
3372 (copy_recursive, copy_type): Copy the data_location information
3373 when present.
3374 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3375 * value.c (value_from_contents_and_address): Add
3376 DW_AT_data_location handling.
3377
3378 2014-08-18 Keven Boell <keven.boell@intel.com>
3379 Joel Brobecker <brobecker@adacore.com>
3380
3381 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3382 field "get_object_address".
3383 * dwarf2expr.c (execute_stack_op): Add handling for
3384 DW_OP_push_object_address.
3385 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3386 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3387 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3388 (dwarf_expr_get_obj_addr): New function.
3389 (dwarf_expr_ctx_funcs): Add get_object_address field.
3390 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3391 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3392 (dwarf2_evaluate_property): Add parameter "address". Use it.
3393 (needs_get_obj_addr): New function.
3394 (needs_frame_ctx_funcs): Add get_object_address field.
3395 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3396 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3397 (resolve_dynamic_array): Likewise.
3398
3399 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3400
3401 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3402 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3403 fixed value for records and unions for which some GNAT encodings
3404 are present.
3405
3406 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3407
3408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3409 rewrite to avoid "else if" and "else" constructs. Should be
3410 a no-op in practice.
3411
3412 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3413
3414 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3415 of lexical block.
3416
3417 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3418
3419 PR c++/17132
3420 * eval.c: Update all calls to find_overload_match.
3421 * valarith.c: Likewise.
3422 (value_user_defined_cpp_op, value_user_defined_op): New
3423 argument NOSIDE. Update all callers.
3424 * valops.c (find_overload_match): New argument NOSIDE.
3425 * value.h (find_overload_match): Update signature.
3426
3427 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3428
3429 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3430 'items' methods instead of 'iteritems' method on dictionaries.
3431
3432 2014-08-15 Doug Evans <dje@google.com>
3433
3434 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3435 closer to use.
3436
3437 2014-08-15 Doug Evans <dje@google.com>
3438
3439 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3440
3441 2014-08-15 Doug Evans <dje@google.com>
3442
3443 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3444
3445 2014-08-15 Doug Evans <dje@google.com>
3446
3447 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3448 unused.
3449
3450 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3451
3452 * dcache.h: Include target.h, to avoid compile time warnings.
3453
3454 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3455
3456 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3457 frame_info" partial declaration.
3458 * gdbarch.h: Regenerate.
3459
3460 2014-08-15 Yao Qi <yao@codesourcery.com>
3461
3462 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3463 Add parameter 'decode_for_pst_p'. Callers update.
3464
3465 2014-08-13 Yao Qi <yao@codesourcery.com>
3466
3467 PR build/17104
3468 * configure.ac: Use local variable 'pos'.
3469 * configure: Regenerated.
3470
3471 2014-08-11 Doug Evans <dje@google.com>
3472
3473 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3474 message, it is redundant with "Reading symbols from ..." message.
3475
3476 2014-08-10 Doug Evans <xdje42@gmail.com>
3477
3478 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3479
3480 2014-08-09 Yao Qi <yao@codesourcery.com>
3481
3482 PR remote/9053
3483 * remote.c (remote_xfer_partial): Remove dead code.
3484
3485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3486
3487 * ia64-linux-tdep.c: Include "regset.h".
3488 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3489 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3490 (ia64_linux_supply_fpregset): New function.
3491 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3492 (ia64_linux_regset_from_core_section): New function.
3493 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3494 method.
3495
3496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3497
3498 * m68klinux-tdep.c: Include "regset.h".
3499 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3500 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3501 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3502 (m68k_linux_regset_from_core_section): New function.
3503 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3504 method.
3505
3506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3507
3508 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3509 function. Move logic to...
3510 (tilegx_linux_regmap): ... this new register map.
3511 (tilegx_linux_regset): Refer to register map, replace supply
3512 method by regcache_supply_regset, and add collect method.
3513 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3514 TILEGX_FIRST_EASY_REGNUM.
3515
3516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3517
3518 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3519 that calls regcache_supply_regset and handles the EPC register
3520 separately. Move main logic to...
3521 (score7_linux_gregmap): ... this new register map.
3522 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3523 (score7_linux_gregset): Refer to register map. Add collect method.
3524 (score7_linux_regset_from_core_section): Replace
3525 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3526 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3527 (struct regset): Delete unused forward declaraction.
3528 (struct pt_regs): Delete structure definition.
3529 (elf_gregset_t): Delete typedef.
3530
3531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3532
3533 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3534 (nios2_core_regset): Add collect method.
3535
3536 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3537
3538 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3539 platform-independent and don't write to read-only input buffer.
3540 (m32r_linux_collect_gregset): New function.
3541 (m32r_linux_gregset): Add collect method.
3542
3543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3544
3545 * hppa-linux-tdep.c (greg_map): Rename to...
3546 (hppa_linux_gregmap): ... this. Also convert to
3547 regcache_map_entry format.
3548 (hppa_linux_supply_regset): Delete function.
3549 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3550 (hppa_linux_fpregmap): ... this new register map.
3551 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3552 register map, replace supply method by regcache_supply_regset, and
3553 add collect method regcache_collect_regset.
3554
3555 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3556
3557 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3558 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3559 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3560 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3561 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3562 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3563 (frv_linux_supply_gregset): Replace main logic by call to
3564 regcache_supply_regset, but keep clearing gr32-gr63.
3565 (frv_linux_supply_fpregset): Delete function.
3566 (frv_linux_gregset): Refer to appropriate register map and add
3567 regcache_collect_regset as the collect method.
3568 (frv_linux_fpregset): Likewise. Also exchange the supply method
3569 by regcache_supply_regset.
3570
3571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3572
3573 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3574 by call to alpha_supply_int_regs.
3575 (alpha_linux_collect_gregset): New function.
3576 (alpha_linux_supply_fpregset): Replace logic by call to
3577 alpha_supply_fp_regs.
3578 (alpha_linux_collect_fpregset): New function.
3579 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3580
3581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3582
3583 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3584 by call to regcache_collect_regset.
3585 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3586 instead of aarch64_linux_supply_gregset/_fpregset.
3587 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3588 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3589 header file instead.
3590 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3591 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3592 functions. Move logic to ...
3593 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3594 register maps.
3595 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3596 refer to new register maps, replace *_regset_from_core by
3597 regcache_supply_regset, and also use regcache_collect_regset.
3598 * aarch64-linux-tdep.h: Include "regset.h".
3599 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3600 Delete prototypes.
3601 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3602 macros, moved from C source file.
3603 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3604 variable declarations.
3605
3606 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3607
3608 * s390-linux-nat.c: Include "regset.h".
3609 (regmap_gregset): Delete macro.
3610 (s390_64_regmap_gregset): New register map for
3611 regcache_supply/_collect_regset.
3612 (s390_64_gregset): New regset.
3613 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3614 (regmap_fpregset): Delete macro.
3615 (s390_native_supply, s390_native_collect): Delete functions.
3616 (supply_gregset, fill_gregset): Replace s390-specific regmap
3617 handling by a call to regcache_supply/_collect_regset.
3618 (supply_fpregset, fill_fpregset): Call regcache_supply/
3619 _collect_regset instead of s390_native_supply/_collect.
3620 (fetch_regset, store_regset): Likewise. Also change the last
3621 parameter to a regset instead of a regmap.
3622 (s390_linux_fetch_inferior_registers)
3623 (390_linux_store_inferior_registers): Adjust last parameter in
3624 calls to fetch_regset and store_regset.
3625 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3626 (s390_gregmap): ... this. Also make static const and convert to
3627 regcache_map_entry format.
3628 (s390x_regmap_gregset): Delete.
3629 (s390_regmap_fpregset): Rename to...
3630 (s390_fpregmap): ... this. Make static const and convert to
3631 regcache_map_entry format.
3632 (s390_regmap_upper, s390_regmap_last_break)
3633 (s390x_regmap_last_break, s390_regmap_system_call)
3634 (s390_regmap_tdb): Likewise.
3635 (s390_supply_regset, s390_collect_regset): Remove functions.
3636 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3637 s390_supply_regset.
3638 (s390_gregset, s390_fpregset, s390_upper_regset)
3639 (s390_last_break_regset, s390x_last_break_regset)
3640 (s390_system_call_regset, s390_tdb_regset): Make global and
3641 replace s390_supply/_collect_regset by regcache_supply/
3642 _collect_regset.
3643 (s390x_gregset): Delete.
3644 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3645 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3646 (s390_regmap_fpregset, s390_regmap_last_break)
3647 (s390x_regmap_last_break, s390_regmap_system_call)
3648 (s390_regmap_tdb): Delete global variable declarations.
3649 (s390_gregset, s390_fpregset, s390_last_break_regset)
3650 (s390x_last_break_regset, s390_system_call_regset)
3651 (s390_tdb_regset): New global variable declarations.
3652
3653 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3654
3655 * regcache.c: Include "regset.h".
3656 (regcache_transfer_regset): New local function.
3657 (regcache_supply_regset, regcache_collect_regset): New functions.
3658 * regcache.h (struct regcache_map_entry): New structure.
3659 (REGCACHE_MAP_SKIP): New enum value.
3660 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3661
3662 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3663
3664 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3665 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3666 (ppc_linux_collect_gregset ): Likewise.
3667 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3668 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3669 (ppc_collect_vrregset): Likewise.
3670 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3671 Likewise.
3672
3673 2014-08-07 Yao Qi <yao@codesourcery.com>
3674
3675 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3676 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3677 * remote.c (remote_read_bytes): Likewise.
3678
3679 2014-08-07 Yao Qi <yao@codesourcery.com>
3680
3681 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3682
3683 2014-08-07 Yao Qi <yao@codesourcery.com>
3684
3685 PR remote/17230
3686 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3687 TARGET_XFER_OK instead of 0.
3688
3689 2014-08-07 Gary Benson <gbenson@redhat.com>
3690
3691 * common/common-defs.h: Include errno.h.
3692 * defs.h: Do not include errno.h.
3693 * ada-typeprint.c: Likewise.
3694 * c-typeprint.c: Likewise.
3695 * core-regset.c: Likewise.
3696 * corefile.c: Likewise.
3697 * corelow.c: Likewise.
3698 * event-loop.c: Likewise.
3699 * f-typeprint.c: Likewise.
3700 * gnu-nat.c: Likewise.
3701 * go32-nat.c: Likewise.
3702 * i386gnu-nat.c: Likewise.
3703 * m2-typeprint.c: Likewise.
3704 * nat/linux-btrace.c: Likewise.
3705 * p-typeprint.c: Likewise.
3706 * procfs.c: Likewise.
3707 * remote-sim.c: Likewise.
3708 * rs6000-nat.c: Likewise.
3709 * target.c: Likewise.
3710 * typeprint.c: Likewise.
3711 * ui-file.c: Likewise.
3712 * valops.c: Likewise.
3713 * valprint.c: Likewise.
3714
3715 2014-08-07 Gary Benson <gbenson@redhat.com>
3716
3717 * common/common-defs.h: Include string.h.
3718 * aarch64-tdep.c: Do not include string.h.
3719 * ada-exp.y: Likewise.
3720 * ada-lang.c: Likewise.
3721 * ada-lex.l: Likewise.
3722 * ada-typeprint.c: Likewise.
3723 * ada-valprint.c: Likewise.
3724 * aix-thread.c: Likewise.
3725 * alpha-linux-tdep.c: Likewise.
3726 * alpha-mdebug-tdep.c: Likewise.
3727 * alpha-nat.c: Likewise.
3728 * alpha-osf1-tdep.c: Likewise.
3729 * alpha-tdep.c: Likewise.
3730 * alphanbsd-tdep.c: Likewise.
3731 * amd64-dicos-tdep.c: Likewise.
3732 * amd64-linux-tdep.c: Likewise.
3733 * amd64-nat.c: Likewise.
3734 * amd64-sol2-tdep.c: Likewise.
3735 * amd64fbsd-tdep.c: Likewise.
3736 * amd64obsd-tdep.c: Likewise.
3737 * arch-utils.c: Likewise.
3738 * arm-linux-nat.c: Likewise.
3739 * arm-linux-tdep.c: Likewise.
3740 * arm-tdep.c: Likewise.
3741 * arm-wince-tdep.c: Likewise.
3742 * armbsd-tdep.c: Likewise.
3743 * armnbsd-nat.c: Likewise.
3744 * armnbsd-tdep.c: Likewise.
3745 * armobsd-tdep.c: Likewise.
3746 * avr-tdep.c: Likewise.
3747 * ax-gdb.c: Likewise.
3748 * ax-general.c: Likewise.
3749 * bcache.c: Likewise.
3750 * bfin-tdep.c: Likewise.
3751 * breakpoint.c: Likewise.
3752 * build-id.c: Likewise.
3753 * buildsym.c: Likewise.
3754 * c-exp.y: Likewise.
3755 * c-lang.c: Likewise.
3756 * c-typeprint.c: Likewise.
3757 * c-valprint.c: Likewise.
3758 * charset.c: Likewise.
3759 * cli-out.c: Likewise.
3760 * cli/cli-cmds.c: Likewise.
3761 * cli/cli-decode.c: Likewise.
3762 * cli/cli-dump.c: Likewise.
3763 * cli/cli-interp.c: Likewise.
3764 * cli/cli-logging.c: Likewise.
3765 * cli/cli-script.c: Likewise.
3766 * cli/cli-setshow.c: Likewise.
3767 * cli/cli-utils.c: Likewise.
3768 * coffread.c: Likewise.
3769 * common/agent.c: Likewise.
3770 * common/buffer.c: Likewise.
3771 * common/buffer.h: Likewise.
3772 * common/common-utils.c: Likewise.
3773 * common/filestuff.c: Likewise.
3774 * common/filestuff.c: Likewise.
3775 * common/format.c: Likewise.
3776 * common/print-utils.c: Likewise.
3777 * common/rsp-low.c: Likewise.
3778 * common/signals.c: Likewise.
3779 * common/vec.h: Likewise.
3780 * common/xml-utils.c: Likewise.
3781 * core-regset.c: Likewise.
3782 * corefile.c: Likewise.
3783 * corelow.c: Likewise.
3784 * cp-abi.c: Likewise.
3785 * cp-name-parser.y: Likewise.
3786 * cp-support.c: Likewise.
3787 * cp-valprint.c: Likewise.
3788 * cris-tdep.c: Likewise.
3789 * d-exp.y: Likewise.
3790 * darwin-nat.c: Likewise.
3791 * dbxread.c: Likewise.
3792 * dcache.c: Likewise.
3793 * demangle.c: Likewise.
3794 * dicos-tdep.c: Likewise.
3795 * disasm.c: Likewise.
3796 * doublest.c: Likewise.
3797 * dsrec.c: Likewise.
3798 * dummy-frame.c: Likewise.
3799 * dwarf2-frame.c: Likewise.
3800 * dwarf2loc.c: Likewise.
3801 * dwarf2read.c: Likewise.
3802 * elfread.c: Likewise.
3803 * environ.c: Likewise.
3804 * eval.c: Likewise.
3805 * event-loop.c: Likewise.
3806 * exceptions.c: Likewise.
3807 * exec.c: Likewise.
3808 * expprint.c: Likewise.
3809 * f-exp.y: Likewise.
3810 * f-lang.c: Likewise.
3811 * f-typeprint.c: Likewise.
3812 * f-valprint.c: Likewise.
3813 * fbsd-nat.c: Likewise.
3814 * findcmd.c: Likewise.
3815 * findvar.c: Likewise.
3816 * fork-child.c: Likewise.
3817 * frame.c: Likewise.
3818 * frv-linux-tdep.c: Likewise.
3819 * frv-tdep.c: Likewise.
3820 * gdb.c: Likewise.
3821 * gdb_bfd.c: Likewise.
3822 * gdbarch.c: Likewise.
3823 * gdbarch.sh: Likewise.
3824 * gdbtypes.c: Likewise.
3825 * gnu-nat.c: Likewise.
3826 * gnu-v2-abi.c: Likewise.
3827 * gnu-v3-abi.c: Likewise.
3828 * go-exp.y: Likewise.
3829 * go-lang.c: Likewise.
3830 * go32-nat.c: Likewise.
3831 * guile/guile.c: Likewise.
3832 * guile/scm-auto-load.c: Likewise.
3833 * hppa-hpux-tdep.c: Likewise.
3834 * hppa-linux-nat.c: Likewise.
3835 * hppanbsd-tdep.c: Likewise.
3836 * hppaobsd-tdep.c: Likewise.
3837 * i386-cygwin-tdep.c: Likewise.
3838 * i386-dicos-tdep.c: Likewise.
3839 * i386-linux-tdep.c: Likewise.
3840 * i386-nto-tdep.c: Likewise.
3841 * i386-sol2-tdep.c: Likewise.
3842 * i386-tdep.c: Likewise.
3843 * i386bsd-tdep.c: Likewise.
3844 * i386gnu-nat.c: Likewise.
3845 * i386nbsd-tdep.c: Likewise.
3846 * i386obsd-tdep.c: Likewise.
3847 * i387-tdep.c: Likewise.
3848 * ia64-libunwind-tdep.c: Likewise.
3849 * ia64-linux-nat.c: Likewise.
3850 * inf-child.c: Likewise.
3851 * inf-ptrace.c: Likewise.
3852 * inf-ttrace.c: Likewise.
3853 * infcall.c: Likewise.
3854 * infcmd.c: Likewise.
3855 * inflow.c: Likewise.
3856 * infrun.c: Likewise.
3857 * interps.c: Likewise.
3858 * iq2000-tdep.c: Likewise.
3859 * irix5-nat.c: Likewise.
3860 * jv-exp.y: Likewise.
3861 * jv-lang.c: Likewise.
3862 * jv-typeprint.c: Likewise.
3863 * jv-valprint.c: Likewise.
3864 * language.c: Likewise.
3865 * linux-fork.c: Likewise.
3866 * linux-nat.c: Likewise.
3867 * lm32-tdep.c: Likewise.
3868 * m2-exp.y: Likewise.
3869 * m2-typeprint.c: Likewise.
3870 * m32c-tdep.c: Likewise.
3871 * m32r-linux-nat.c: Likewise.
3872 * m32r-linux-tdep.c: Likewise.
3873 * m32r-rom.c: Likewise.
3874 * m32r-tdep.c: Likewise.
3875 * m68hc11-tdep.c: Likewise.
3876 * m68k-tdep.c: Likewise.
3877 * m68kbsd-tdep.c: Likewise.
3878 * m68klinux-nat.c: Likewise.
3879 * m68klinux-tdep.c: Likewise.
3880 * m88k-tdep.c: Likewise.
3881 * machoread.c: Likewise.
3882 * macrocmd.c: Likewise.
3883 * main.c: Likewise.
3884 * mdebugread.c: Likewise.
3885 * mem-break.c: Likewise.
3886 * memattr.c: Likewise.
3887 * memory-map.c: Likewise.
3888 * mep-tdep.c: Likewise.
3889 * mi/mi-cmd-break.c: Likewise.
3890 * mi/mi-cmd-disas.c: Likewise.
3891 * mi/mi-cmd-env.c: Likewise.
3892 * mi/mi-cmd-stack.c: Likewise.
3893 * mi/mi-cmd-var.c: Likewise.
3894 * mi/mi-cmds.c: Likewise.
3895 * mi/mi-console.c: Likewise.
3896 * mi/mi-getopt.c: Likewise.
3897 * mi/mi-interp.c: Likewise.
3898 * mi/mi-main.c: Likewise.
3899 * mi/mi-parse.c: Likewise.
3900 * microblaze-rom.c: Likewise.
3901 * microblaze-tdep.c: Likewise.
3902 * mingw-hdep.c: Likewise.
3903 * minidebug.c: Likewise.
3904 * minsyms.c: Likewise.
3905 * mips-irix-tdep.c: Likewise.
3906 * mips-linux-tdep.c: Likewise.
3907 * mips-tdep.c: Likewise.
3908 * mips64obsd-tdep.c: Likewise.
3909 * mipsnbsd-tdep.c: Likewise.
3910 * mipsread.c: Likewise.
3911 * mn10300-linux-tdep.c: Likewise.
3912 * mn10300-tdep.c: Likewise.
3913 * monitor.c: Likewise.
3914 * moxie-tdep.c: Likewise.
3915 * mt-tdep.c: Likewise.
3916 * nat/linux-btrace.c: Likewise.
3917 * nat/linux-osdata.c: Likewise.
3918 * nat/linux-procfs.c: Likewise.
3919 * nat/linux-ptrace.c: Likewise.
3920 * nat/linux-waitpid.c: Likewise.
3921 * nbsd-tdep.c: Likewise.
3922 * nios2-linux-tdep.c: Likewise.
3923 * nto-procfs.c: Likewise.
3924 * nto-tdep.c: Likewise.
3925 * objc-lang.c: Likewise.
3926 * objfiles.c: Likewise.
3927 * opencl-lang.c: Likewise.
3928 * osabi.c: Likewise.
3929 * osdata.c: Likewise.
3930 * p-exp.y: Likewise.
3931 * p-lang.c: Likewise.
3932 * p-typeprint.c: Likewise.
3933 * parse.c: Likewise.
3934 * posix-hdep.c: Likewise.
3935 * ppc-linux-nat.c: Likewise.
3936 * ppc-sysv-tdep.c: Likewise.
3937 * ppcfbsd-tdep.c: Likewise.
3938 * ppcnbsd-tdep.c: Likewise.
3939 * ppcobsd-tdep.c: Likewise.
3940 * printcmd.c: Likewise.
3941 * procfs.c: Likewise.
3942 * prologue-value.c: Likewise.
3943 * python/py-auto-load.c: Likewise.
3944 * python/py-gdb-readline.c: Likewise.
3945 * ravenscar-thread.c: Likewise.
3946 * regcache.c: Likewise.
3947 * registry.c: Likewise.
3948 * remote-fileio.c: Likewise.
3949 * remote-m32r-sdi.c: Likewise.
3950 * remote-mips.c: Likewise.
3951 * remote-notif.c: Likewise.
3952 * remote-sim.c: Likewise.
3953 * remote.c: Likewise.
3954 * reverse.c: Likewise.
3955 * rs6000-aix-tdep.c: Likewise.
3956 * ser-base.c: Likewise.
3957 * ser-go32.c: Likewise.
3958 * ser-mingw.c: Likewise.
3959 * ser-pipe.c: Likewise.
3960 * ser-tcp.c: Likewise.
3961 * ser-unix.c: Likewise.
3962 * serial.c: Likewise.
3963 * sh-tdep.c: Likewise.
3964 * sh64-tdep.c: Likewise.
3965 * shnbsd-tdep.c: Likewise.
3966 * skip.c: Likewise.
3967 * sol-thread.c: Likewise.
3968 * solib-dsbt.c: Likewise.
3969 * solib-frv.c: Likewise.
3970 * solib-osf.c: Likewise.
3971 * solib-som.c: Likewise.
3972 * solib-spu.c: Likewise.
3973 * solib-target.c: Likewise.
3974 * solib.c: Likewise.
3975 * somread.c: Likewise.
3976 * source.c: Likewise.
3977 * sparc-nat.c: Likewise.
3978 * sparc-sol2-tdep.c: Likewise.
3979 * sparc-tdep.c: Likewise.
3980 * sparc64-tdep.c: Likewise.
3981 * sparc64fbsd-tdep.c: Likewise.
3982 * sparc64nbsd-tdep.c: Likewise.
3983 * sparcnbsd-tdep.c: Likewise.
3984 * spu-linux-nat.c: Likewise.
3985 * spu-multiarch.c: Likewise.
3986 * spu-tdep.c: Likewise.
3987 * stabsread.c: Likewise.
3988 * stack.c: Likewise.
3989 * std-regs.c: Likewise.
3990 * symfile.c: Likewise.
3991 * symmisc.c: Likewise.
3992 * symtab.c: Likewise.
3993 * target.c: Likewise.
3994 * thread.c: Likewise.
3995 * tilegx-linux-nat.c: Likewise.
3996 * tilegx-tdep.c: Likewise.
3997 * top.c: Likewise.
3998 * tracepoint.c: Likewise.
3999 * tui/tui-command.c: Likewise.
4000 * tui/tui-data.c: Likewise.
4001 * tui/tui-disasm.c: Likewise.
4002 * tui/tui-file.c: Likewise.
4003 * tui/tui-layout.c: Likewise.
4004 * tui/tui-out.c: Likewise.
4005 * tui/tui-regs.c: Likewise.
4006 * tui/tui-source.c: Likewise.
4007 * tui/tui-stack.c: Likewise.
4008 * tui/tui-win.c: Likewise.
4009 * tui/tui-windata.c: Likewise.
4010 * tui/tui-winsource.c: Likewise.
4011 * typeprint.c: Likewise.
4012 * ui-file.c: Likewise.
4013 * ui-out.c: Likewise.
4014 * user-regs.c: Likewise.
4015 * utils.c: Likewise.
4016 * v850-tdep.c: Likewise.
4017 * valarith.c: Likewise.
4018 * valops.c: Likewise.
4019 * valprint.c: Likewise.
4020 * value.c: Likewise.
4021 * varobj.c: Likewise.
4022 * vax-tdep.c: Likewise.
4023 * vaxnbsd-tdep.c: Likewise.
4024 * vaxobsd-tdep.c: Likewise.
4025 * windows-nat.c: Likewise.
4026 * xcoffread.c: Likewise.
4027 * xml-support.c: Likewise.
4028 * xstormy16-tdep.c: Likewise.
4029 * xtensa-linux-nat.c: Likewise.
4030
4031 2014-08-07 Gary Benson <gbenson@redhat.com>
4032
4033 * common/common-defs.h: Include gdb_assert.h.
4034 * aarch64-tdep.c: Do not include gdb_assert.h.
4035 * addrmap.c: Likewise.
4036 * aix-thread.c: Likewise.
4037 * alpha-linux-tdep.c: Likewise.
4038 * alpha-mdebug-tdep.c: Likewise.
4039 * alphanbsd-tdep.c: Likewise.
4040 * amd64-nat.c: Likewise.
4041 * amd64-tdep.c: Likewise.
4042 * amd64bsd-nat.c: Likewise.
4043 * amd64fbsd-nat.c: Likewise.
4044 * amd64fbsd-tdep.c: Likewise.
4045 * amd64nbsd-nat.c: Likewise.
4046 * amd64nbsd-tdep.c: Likewise.
4047 * amd64obsd-nat.c: Likewise.
4048 * amd64obsd-tdep.c: Likewise.
4049 * arch-utils.c: Likewise.
4050 * arm-tdep.c: Likewise.
4051 * armbsd-tdep.c: Likewise.
4052 * auxv.c: Likewise.
4053 * bcache.c: Likewise.
4054 * bfin-tdep.c: Likewise.
4055 * blockframe.c: Likewise.
4056 * breakpoint.c: Likewise.
4057 * bsd-kvm.c: Likewise.
4058 * bsd-uthread.c: Likewise.
4059 * buildsym.c: Likewise.
4060 * c-exp.y: Likewise.
4061 * c-lang.c: Likewise.
4062 * charset.c: Likewise.
4063 * cleanups.c: Likewise.
4064 * cli-out.c: Likewise.
4065 * cli/cli-decode.c: Likewise.
4066 * cli/cli-dump.c: Likewise.
4067 * cli/cli-logging.c: Likewise.
4068 * cli/cli-script.c: Likewise.
4069 * cli/cli-utils.c: Likewise.
4070 * coffread.c: Likewise.
4071 * common/common-utils.c: Likewise.
4072 * common/queue.h: Likewise.
4073 * common/signals.c: Likewise.
4074 * common/vec.h: Likewise.
4075 * complaints.c: Likewise.
4076 * completer.c: Likewise.
4077 * corelow.c: Likewise.
4078 * cp-abi.c: Likewise.
4079 * cp-name-parser.y: Likewise.
4080 * cp-namespace.c: Likewise.
4081 * cp-support.c: Likewise.
4082 * cris-tdep.c: Likewise.
4083 * dbxread.c: Likewise.
4084 * dictionary.c: Likewise.
4085 * doublest.c: Likewise.
4086 * dsrec.c: Likewise.
4087 * dummy-frame.c: Likewise.
4088 * dwarf2-frame-tailcall.c: Likewise.
4089 * dwarf2-frame.c: Likewise.
4090 * dwarf2expr.c: Likewise.
4091 * dwarf2loc.c: Likewise.
4092 * dwarf2read.c: Likewise.
4093 * eval.c: Likewise.
4094 * event-loop.c: Likewise.
4095 * exceptions.c: Likewise.
4096 * expprint.c: Likewise.
4097 * f-valprint.c: Likewise.
4098 * fbsd-nat.c: Likewise.
4099 * findvar.c: Likewise.
4100 * frame-unwind.c: Likewise.
4101 * frame.c: Likewise.
4102 * frv-tdep.c: Likewise.
4103 * gcore.c: Likewise.
4104 * gdb-dlfcn.c: Likewise.
4105 * gdb_bfd.c: Likewise.
4106 * gdbarch.c: Likewise.
4107 * gdbarch.sh: Likewise.
4108 * gdbtypes.c: Likewise.
4109 * gnu-nat.c: Likewise.
4110 * gnu-v3-abi.c: Likewise.
4111 * go-lang.c: Likewise.
4112 * guile/scm-exception.c: Likewise.
4113 * guile/scm-gsmob.c: Likewise.
4114 * guile/scm-lazy-string.c: Likewise.
4115 * guile/scm-math.c: Likewise.
4116 * guile/scm-pretty-print.c: Likewise.
4117 * guile/scm-safe-call.c: Likewise.
4118 * guile/scm-utils.c: Likewise.
4119 * guile/scm-value.c: Likewise.
4120 * h8300-tdep.c: Likewise.
4121 * hppa-hpux-nat.c: Likewise.
4122 * hppa-tdep.c: Likewise.
4123 * hppanbsd-tdep.c: Likewise.
4124 * hppaobsd-tdep.c: Likewise.
4125 * i386-darwin-nat.c: Likewise.
4126 * i386-darwin-tdep.c: Likewise.
4127 * i386-nto-tdep.c: Likewise.
4128 * i386-tdep.c: Likewise.
4129 * i386bsd-nat.c: Likewise.
4130 * i386fbsd-tdep.c: Likewise.
4131 * i386gnu-nat.c: Likewise.
4132 * i386nbsd-tdep.c: Likewise.
4133 * i386obsd-tdep.c: Likewise.
4134 * i387-tdep.c: Likewise.
4135 * ia64-libunwind-tdep.c: Likewise.
4136 * ia64-tdep.c: Likewise.
4137 * inf-ptrace.c: Likewise.
4138 * inf-ttrace.c: Likewise.
4139 * infcall.c: Likewise.
4140 * infcmd.c: Likewise.
4141 * infrun.c: Likewise.
4142 * inline-frame.c: Likewise.
4143 * interps.c: Likewise.
4144 * jv-lang.c: Likewise.
4145 * jv-typeprint.c: Likewise.
4146 * linux-fork.c: Likewise.
4147 * linux-nat.c: Likewise.
4148 * linux-thread-db.c: Likewise.
4149 * m32c-tdep.c: Likewise.
4150 * m32r-linux-nat.c: Likewise.
4151 * m32r-tdep.c: Likewise.
4152 * m68k-tdep.c: Likewise.
4153 * m68kbsd-nat.c: Likewise.
4154 * m68kbsd-tdep.c: Likewise.
4155 * m88k-tdep.c: Likewise.
4156 * machoread.c: Likewise.
4157 * macroexp.c: Likewise.
4158 * macrotab.c: Likewise.
4159 * maint.c: Likewise.
4160 * mdebugread.c: Likewise.
4161 * memory-map.c: Likewise.
4162 * mep-tdep.c: Likewise.
4163 * mi/mi-common.c: Likewise.
4164 * microblaze-tdep.c: Likewise.
4165 * mingw-hdep.c: Likewise.
4166 * mips-linux-nat.c: Likewise.
4167 * mips-linux-tdep.c: Likewise.
4168 * mips-tdep.c: Likewise.
4169 * mips64obsd-tdep.c: Likewise.
4170 * mipsnbsd-tdep.c: Likewise.
4171 * mn10300-linux-tdep.c: Likewise.
4172 * mn10300-tdep.c: Likewise.
4173 * moxie-tdep.c: Likewise.
4174 * mt-tdep.c: Likewise.
4175 * nat/linux-btrace.c: Likewise.
4176 * nat/linux-osdata.c: Likewise.
4177 * nat/linux-ptrace.c: Likewise.
4178 * nat/mips-linux-watch.c: Likewise.
4179 * nios2-linux-tdep.c: Likewise.
4180 * nios2-tdep.c: Likewise.
4181 * objc-lang.c: Likewise.
4182 * objfiles.c: Likewise.
4183 * obsd-nat.c: Likewise.
4184 * opencl-lang.c: Likewise.
4185 * osabi.c: Likewise.
4186 * parse.c: Likewise.
4187 * ppc-linux-nat.c: Likewise.
4188 * ppc-sysv-tdep.c: Likewise.
4189 * ppcfbsd-nat.c: Likewise.
4190 * ppcfbsd-tdep.c: Likewise.
4191 * ppcnbsd-nat.c: Likewise.
4192 * ppcnbsd-tdep.c: Likewise.
4193 * ppcobsd-nat.c: Likewise.
4194 * ppcobsd-tdep.c: Likewise.
4195 * printcmd.c: Likewise.
4196 * procfs.c: Likewise.
4197 * prologue-value.c: Likewise.
4198 * psymtab.c: Likewise.
4199 * python/py-lazy-string.c: Likewise.
4200 * python/py-value.c: Likewise.
4201 * regcache.c: Likewise.
4202 * reggroups.c: Likewise.
4203 * registry.c: Likewise.
4204 * remote-sim.c: Likewise.
4205 * remote.c: Likewise.
4206 * rs6000-aix-tdep.c: Likewise.
4207 * rs6000-tdep.c: Likewise.
4208 * s390-linux-tdep.c: Likewise.
4209 * score-tdep.c: Likewise.
4210 * ser-base.c: Likewise.
4211 * ser-mingw.c: Likewise.
4212 * sh-tdep.c: Likewise.
4213 * sh64-tdep.c: Likewise.
4214 * solib-darwin.c: Likewise.
4215 * solib-spu.c: Likewise.
4216 * solib-svr4.c: Likewise.
4217 * source.c: Likewise.
4218 * sparc-nat.c: Likewise.
4219 * sparc-sol2-tdep.c: Likewise.
4220 * sparc-tdep.c: Likewise.
4221 * sparc64-sol2-tdep.c: Likewise.
4222 * sparc64-tdep.c: Likewise.
4223 * sparc64fbsd-tdep.c: Likewise.
4224 * sparc64nbsd-tdep.c: Likewise.
4225 * sparc64obsd-tdep.c: Likewise.
4226 * sparcnbsd-tdep.c: Likewise.
4227 * sparcobsd-tdep.c: Likewise.
4228 * spu-multiarch.c: Likewise.
4229 * spu-tdep.c: Likewise.
4230 * stabsread.c: Likewise.
4231 * stack.c: Likewise.
4232 * symfile.c: Likewise.
4233 * symtab.c: Likewise.
4234 * target-descriptions.c: Likewise.
4235 * target-memory.c: Likewise.
4236 * target.c: Likewise.
4237 * tic6x-linux-tdep.c: Likewise.
4238 * tic6x-tdep.c: Likewise.
4239 * tilegx-linux-nat.c: Likewise.
4240 * tilegx-tdep.c: Likewise.
4241 * top.c: Likewise.
4242 * tramp-frame.c: Likewise.
4243 * tui/tui-out.c: Likewise.
4244 * tui/tui-winsource.c: Likewise.
4245 * ui-out.c: Likewise.
4246 * user-regs.c: Likewise.
4247 * utils.c: Likewise.
4248 * v850-tdep.c: Likewise.
4249 * valops.c: Likewise.
4250 * value.c: Likewise.
4251 * varobj.c: Likewise.
4252 * vax-nat.c: Likewise.
4253 * xml-syscall.c: Likewise.
4254 * xml-tdesc.c: Likewise.
4255 * xstormy16-tdep.c: Likewise.
4256 * xtensa-linux-nat.c: Likewise.
4257 * xtensa-tdep.c: Likewise.
4258
4259 2014-08-07 Gary Benson <gbenson@redhat.com>
4260
4261 * common/common-defs.h: Include common-utils.h.
4262 * defs.h: Do not include common-utils.h.
4263 * common/gdb_assert.h: Likewise.
4264 * darwin-nat.h: Likewise.
4265 * nat/linux-btrace.c: Likewise.
4266 * target/waitstatus.h: Likewise.
4267
4268 2014-08-07 Gary Benson <gbenson@redhat.com>
4269
4270 * common/common-defs.h: Include ptid.h.
4271 * defs.h: Do not include ptid.h.
4272 * inferior.h: Likewise.
4273 * infrun.h: Likewise.
4274 * nat/linux-btrace.h: Likewise.
4275 * nat/linux-osdata.h: Likewise.
4276 * target/waitstatus.h: Likewise.
4277
4278 2014-08-07 Gary Benson <gbenson@redhat.com>
4279
4280 * common/common-defs.h: Include gdb_locale.h.
4281 * defs.h: Do not include gdb_locale.h.
4282
4283 2014-08-07 Gary Benson <gbenson@redhat.com>
4284
4285 * common/common-defs.h: Include gdb/signals.h.
4286 * defs.h: Do not include gdb/signals.h.
4287
4288 2014-08-07 Gary Benson <gbenson@redhat.com>
4289
4290 * common/common-defs.h: Include pathmax.h.
4291 * defs.h: Do not include pathmax.h.
4292
4293 2014-08-07 Gary Benson <gbenson@redhat.com>
4294
4295 * common/common-defs.h: Include libiberty.h.
4296 * defs.h: Do not include libiberty.h.
4297 * common/queue.h: Likewise.
4298 * cp-name-parser.y: Likewise.
4299 * mi/mi-cmd-catch.c: Likewise.
4300 * python/python.c: Likewise.
4301
4302 2014-08-07 Gary Benson <gbenson@redhat.com>
4303
4304 * common/common-defs.h: Include ansidecl.h.
4305 * defs.h: Do not include ansidecl.h.
4306 * common/buffer.h: Likewise.
4307 * common/common-utils.h: Likewise.
4308
4309 2014-08-07 Gary Benson <gbenson@redhat.com>
4310
4311 * common/common-defs.h: Include stddef.h.
4312 * defs.h: Do not include stddef.h.
4313 * common/common-utils.h: Likewise.
4314 * amd64fbsd-nat.c: Likewise.
4315 * bcache.c: Likewise.
4316 * charset.c: Likewise.
4317 * common/buffer.h: Likewise.
4318 * common/vec.h: Likewise.
4319 * i386bsd-nat.c: Likewise.
4320 * nat/linux-btrace.h: Likewise.
4321 * ppcfbsd-nat.c: Likewise.
4322 * ppcnbsd-tdep.h: Likewise.
4323 * ppcobsd-nat.c: Likewise.
4324 * ppcobsd-tdep.h: Likewise.
4325 * python/py-gdb-readline.c: Likewise.
4326
4327 2014-08-07 Gary Benson <gbenson@redhat.com>
4328
4329 * common/common-defs.h: Include stdarg.h.
4330 * defs.h: Do not include stdarg.h.
4331 * ada-lang.c: Likewise.
4332 * common/common-utils.h: Likewise.
4333 * guile/scm-string.c: Likewise.
4334 * guile/scm-utils.c: Likewise.
4335 * m32c-tdep.c: Likewise.
4336
4337 2014-08-07 Gary Benson <gbenson@redhat.com>
4338
4339 * common/common-defs.h: Include stdlib.h.
4340 * defs.h: Do not include stdlib.h.
4341 * addrmap.c: Likewise.
4342 * bcache.c: Likewise.
4343 * common/buffer.c: Likewise.
4344 * common/common-utils.c: Likewise.
4345 * cp-name-parser.y: Likewise.
4346 * go32-nat.c: Likewise.
4347 * mn10300-linux-tdep.c: Likewise.
4348 * nat/linux-osdata.c: Likewise.
4349 * tui/tui.c: Likewise.
4350 * windows-nat.c: Likewise.
4351
4352 2014-08-07 Gary Benson <gbenson@redhat.com>
4353
4354 * common/common-defs.h: Include stdio.h.
4355 * defs.h: Do not include stdio.h.
4356 * ada-lang.c: Likewise.
4357 * common/buffer.c: Likewise.
4358 * common/common-utils.c: Likewise.
4359 * cp-name-parser.y: Likewise.
4360 * gnu-nat.c: Likewise.
4361 * go32-nat.c: Likewise.
4362 * i386gnu-nat.c: Likewise.
4363 * proc-api.c: Likewise.
4364 * proc-events.c: Likewise.
4365 * proc-flags.c: Likewise.
4366 * proc-why.c: Likewise.
4367 * python/python-internal.h: Likewise.
4368 * target-memory.c: Likewise.
4369 * tui/tui-io.c: Likewise.
4370 * tui/tui.c: Likewise.
4371
4372 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4375 (scan_dyntag_auxv): Same.
4376
4377 2014-08-06 Yao Qi <yao@codesourcery.com>
4378
4379 * amd64-linux-nat.c: Remove duplicated include
4380 "x86-linux-nat.h".
4381 * i386-linux-nat.c: Likewise.
4382
4383 2014-08-06 Yao Qi <yao@codesourcery.com>
4384
4385 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4386 operand" with "Special opcode" in comments.
4387
4388 2014-08-05 Gary Benson <gbenson@redhat.com>
4389
4390 * interps.c (initialize_interps): Remove prototype.
4391 (interpreter_initialized): Remove static global.
4392 (interp_add): Do not call initialize_interps.
4393 (initialize_interps): Remove function.
4394
4395 2014-08-05 Gary Benson <gbenson@redhat.com>
4396
4397 * utils.c (vwarning): Remove spurious va_end.
4398
4399 2014-08-05 Alan Modra <amodra@gmail.com>
4400
4401 * charset.c (convert_between_encodings): Cast result of obstack_base.
4402 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4403 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4404 (read_unwind_info): Use size_t for some locals.
4405 * jit.c (finalize_symtab): Likewise.
4406 * utils.c (hashtab_obstack_allocate): Likewise.
4407 * symmisc.c (print_objfile_statistics): Update format strings.
4408
4409 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4410
4411 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4412 (Changes in GDB 7.8): ... here.
4413
4414 2014-08-04 Tom Tromey <tromey@redhat.com>
4415
4416 * target.c (set_targetdebug): New function.
4417 (initialize_targets): Pass set_targetdebug when creating "set
4418 debug target".
4419
4420 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4421
4422 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4423 if detecting a variable-sized field that is not the last field.
4424 Fix struct type length computation.
4425
4426 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4427
4428 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4429 Add debug trace.
4430
4431 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4432
4433 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4434 Remove "+ 8" offset in computation of CHAIN_VMA.
4435
4436 2014-07-31 Doug Evans <dje@google.com>
4437
4438 * inflow.c (child_terminal_inferior): Add comment.
4439 (child_terminal_ours_for_output): Add comment.
4440 (child_terminal_ours): Add comment.
4441 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4442 (linux_nat_terminal_ours): Add comment.
4443
4444 2014-07-31 Gary Benson <gbenson@redhat.com>
4445
4446 * common/btrace-common.h: Do not include defs.h or server.h.
4447 * nat/mips-linux-watch.h: Likewise.
4448 * gdb-dlfcn.h: Do not include defs.h.
4449 * tracefile.h: Likewise.
4450
4451 2014-07-30 Roland McGrath <mcgrathr@google.com>
4452
4453 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4454
4455 2014-07-30 Tom Tromey <tromey@redhat.com>
4456
4457 * bsd-kvm.c (bsd_kvm_open): Constify.
4458 * corelow.c (core_open): Constify.
4459 * ctf.c (ctf_open): Constify.
4460 * dbug-rom.c (dbug_open): Constify.
4461 * exec.c (exec_open): Constify.
4462 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4463 * microblaze-rom.c (picobug_open): Constify.
4464 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4465 Constify.
4466 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4467 * record-btrace.c (record_btrace_open): Constify.
4468 * record-full.c (record_full_core_open_1, record_full_open_1)
4469 (record_full_open): Constify.
4470 * remote-m32r-sdi.c (m32r_open): Constify.
4471 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4472 (rockhopper_open, lsi_open): Constify.
4473 * remote-sim.c (gdbsim_open): Constify.
4474 * remote.c (remote_open, extended_remote_open, remote_open_1):
4475 Constify.
4476 * target.h (struct target_ops) <to_open>: Make "arg" const.
4477 * tracefile-tfile.c (tfile_open): Constify.
4478
4479 2014-07-30 Tom Tromey <tromey@redhat.com>
4480
4481 * breakpoint.c (map_breakpoint_numbers): Update.
4482 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4483 (get_number_const): New function.
4484 (get_number): Rewrite using get_number_const.
4485 (init_number_or_range): Make "string" const.
4486 (number_is_in_list): Make "list" const.
4487 * cli/cli-utils.h (get_number_const): Declare.
4488 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4489 (init_number_or_range, number_is_in_list): Update.
4490 * printcmd.c (map_display_numbers): Update.
4491 * value.c (value_from_history_ref): Constify.
4492 * value.h (value_from_history_ref): Update.
4493
4494 2014-07-30 Tom Tromey <tromey@redhat.com>
4495
4496 * corefile.c (hook_type, call_extra_exec_file_hooks)
4497 (specify_exec_file_hook): Constify.
4498 * exec.c (exec_file_attach): Make "filename" const.
4499 * gdbcore.h (deprecated_exec_file_display_hook)
4500 (specify_exec_file_hook, exec_file_attach): Constify.
4501 * main.c (captured_main): Use catch_command_errors_const.
4502
4503 2014-07-30 Tom Tromey <tromey@redhat.com>
4504
4505 * target.c (open_target): New function.
4506 (add_target_with_completer, add_deprecated_target_alias): Use
4507 set_cmd_sfunc, set_cmd_context.
4508 (debug_to_open): Remove.
4509 (setup_target_debug): Update.
4510
4511 2014-07-30 Yao Qi <yao@codesourcery.com>
4512
4513 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4514 comments.
4515 * parse.c (exp_iterate): Update comments.
4516
4517 2014-07-30 Gary Benson <gbenson@redhat.com>
4518
4519 * common/common-defs.h: New file.
4520 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4521 * defs.h: Include common-defs.h.
4522 Do not include config.h or build-gnulib/config.h.
4523
4524 2014-07-30 Gary Benson <gbenson@redhat.com>
4525
4526 * common/common-utils.h: Do not include config.h.
4527 * nat/linux-btrace.h: Likewise.
4528
4529 2014-07-30 Gary Benson <gbenson@redhat.com>
4530
4531 * btrace.c: Include defs.h.
4532 * common/ptid.c: Include defs.h or server.h as appropriate.
4533 * nat/mips-linux-watch.c: Likewise.
4534
4535 2014-07-29 Tom Tromey <tromey@redhat.com>
4536
4537 * target.c (target_is_pushed): Simplify.
4538
4539 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4540
4541 GDB 7.8 released.
4542
4543 2014-07-29 Yao Qi <yao@codesourcery.com>
4544
4545 PR gdb/17206
4546 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4547
4548 2014-07-28 Doug Evans <xdje42@gmail.com>
4549
4550 PR guile/17203
4551 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4552 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4553 parameters.
4554
4555 2014-07-28 Will Newton <will.newton@linaro.org>
4556
4557 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4558 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4559 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4560 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4561 (THUMB2_EABI_SYSCALL): Likewise.
4562 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4563 struct tramp_frame.
4564 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4565 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4566
4567 2014-07-27 Doug Evans <xdje42@gmail.com>
4568
4569 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4570
4571 2014-07-27 Doug Evans <xdje42@gmail.com>
4572
4573 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4574
4575 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4576 Doug Evans <xdje42@gmail.com>
4577
4578 PR guile/17146
4579 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4580 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4581 * configure.ac: Try to use guild to compile an scm file, if it fails
4582 then disable guile support.
4583 * configure: Regenerate.
4584 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4585 GUILE_FILE_LIST.
4586 (GUILE_COMPILED_FILES): New variable.
4587 (GUILE_FILES) Update.
4588 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4589 (stamp-guile): Compile scm files.
4590 * guile/guile.c (boot_guile_support): New function.
4591 (standard_throw_args_p): New function.
4592 (print_standard_throw_error, print_throw_error): New functions.
4593 (handle_boot_error): New function.
4594 (initialize_scheme_side): Rewrite to call boot_guile_support.
4595 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4596 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4597
4598 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4599 Doug Evans <xdje42@gmail.com>
4600
4601 PR guile/17146
4602 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4603 * guile/lib/gdb/support.scm: New file.
4604 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4605 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4606 All uses updated.
4607 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4608 All uses updated.
4609 (%assert-type): Ditto, and renamed to assert-type.
4610 (%exception-print-style): Delete.
4611
4612 2014-07-26 Doug Evans <xdje42@gmail.com>
4613
4614 PR build/17105
4615 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4616 * configure: Regenerate.
4617 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4618 PYTHON_FILES.
4619 (PYTHON_FILES): New variable.
4620 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4621 (GUILE_FILES): New variable.
4622 (stamp-python, install-python, uninstall-python): Handle empty
4623 file list.
4624 (stamp-guile, install-guile, uninstall-guile): Ditto.
4625
4626 2014-07-26 Doug Evans <xdje42@gmail.com>
4627
4628 PR guile/17177
4629 * guile/lib/gdb.scm (pretty-printers): Export.
4630 (set-pretty-printers!): Export.
4631 * guile/lib/gdb/printing.scm (gdb module): Update.
4632 (prepend-pretty-printer!, append-pretty-printer!): Update.
4633 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4634 (pretty_printer_list_var): Delete.
4635 (pretty_printer_list): New static global.
4636 (gdbscm_pretty_printers): New function.
4637 (gdbscm_set_pretty_printers_x): New function.
4638 (ppscm_find_pretty_printer_from_gdb): Update.
4639 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4640 (gdbscm_initialize_pretty_printers): Update.
4641
4642 2014-07-26 Doug Evans <xdje42@gmail.com>
4643
4644 PR 17185
4645 * configure.ac: Add check for header gc/gc.h.
4646 Add check for function setenv.
4647 * configure: Regenerate.
4648 * config.in: Regenerate.
4649 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4650
4651 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4652
4653 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4654 variation in gdbarch matching.
4655
4656 2014-07-25 Tom Tromey <tromey@redhat.com>
4657
4658 * exec.c (using_exec_ops): Remove.
4659 (exec_close_1): Update. Remove extraneous block, reindent.
4660 (add_target_sections): Use target_is_pushed.
4661
4662 2014-07-25 Pedro Alves <palves@redhat.com>
4663
4664 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4665 * monitor.c (monitor_create_inferior): Likewise.
4666 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4667 * remote-sim.c (gdbsim_create_inferior): Likewise.
4668 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4669 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4670 * windows-nat.c (do_initial_windows_stuff): Likewise.
4671
4672 2014-07-25 Pedro Alves <palves@redhat.com>
4673
4674 * NEWS: Mention signal passing and "signal" command changes.
4675 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4676 comment.
4677 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4678 call.
4679 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4680 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4681 (jump_command): Adjust clear_proceed_status call.
4682 (signal_command): Warn if other thread that are resumed have
4683 signals that will be delivered. Adjust clear_proceed_status call.
4684 (until_next_command, finish_command)
4685 (proceed_after_attach_callback, attach_command_post_wait)
4686 (attach_command): Adjust clear_proceed_status call.
4687 * infrun.c (proceed_after_vfork_done): Likewise.
4688 (proceed_after_attach_callback): Adjust comment.
4689 (clear_proceed_status_thread): Clear stop_signal if not in pass
4690 state.
4691 (clear_proceed_status_callback): Delete.
4692 (clear_proceed_status): New 'step' parameter. Only clear the
4693 proceed status of threads the command being prepared is about to
4694 resume.
4695 (proceed): If passed in an explicit signal, override stop_signal
4696 with it. Don't pass the last stop signal to the thread we're
4697 resuming.
4698 (init_wait_for_inferior): Adjust clear_proceed_status call.
4699 (switch_back_to_stepped_thread): Clear the signal if it should not
4700 be passed.
4701 * infrun.h (clear_proceed_status): New 'step' parameter.
4702 (user_visible_resume_ptid): Add comment.
4703 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4704 signal is in pass state.
4705 * remote.c (append_pending_thread_resumptions): Likewise.
4706 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4707
4708 2014-07-25 Tom Tromey <tromey@redhat.com>
4709
4710 * target.h (target_stopped_data_address)
4711 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4712 parentheses.
4713
4714 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4715
4716 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4717 comments.
4718 (avr_pointer_to_address): Likewise.
4719
4720 2014-07-24 Tom Tromey <tromey@redhat.com>
4721
4722 * monitor.c (compile_pattern): Update.
4723 * target.h (struct target_ops) <to_shortname, to_longname,
4724 to_doc>: Now const.
4725
4726 2014-07-24 Tom Tromey <tromey@redhat.com>
4727
4728 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4729 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4730 (add_info_alias, add_com): Make "doc" const.
4731 (print_doc_line): Make "str" const.
4732 (delete_cmd): Update.
4733 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4734 (print_doc_line): Update.
4735 * cli/cli-script.c (document_command): Update.
4736 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4737 (add_com, add_info, add_info_alias): Update.
4738 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4739 * python/py-cmd.c (cmdpy_destroyer): Update.
4740
4741 2014-07-24 Tom Tromey <tromey@redhat.com>
4742
4743 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4744 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4745 (help_cmd_list): Constify.
4746 (lookup_cmd): Update.
4747 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4748 const.
4749 (help_cmd_list, apropos_cmd): Update.
4750 * cli/cli-script.c (show_user): Update.
4751 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4752 * cli/cli-setshow.h (cmd_show_list): Update.
4753 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4754 (cmd_show_list): Update.
4755 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4756 * python/py-cmd.c (cmdpy_destroyer): Update.
4757
4758 2014-07-24 Tom Tromey <tromey@redhat.com>
4759
4760 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4761 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4762 const.
4763 * command.h (deprecate_cmd): Update.
4764 * maint.c (maintenance_do_deprecate): Add casts.
4765
4766 2014-07-24 Tom Tromey <tromey@redhat.com>
4767
4768 * cli/cli-decode.c (help_cmd): Make parameter "const".
4769 * cli/cli-decode.h (help_cmd): Update.
4770
4771 2014-07-24 Tom Tromey <tromey@redhat.com>
4772
4773 * stack.c (up_silently_base, down_silently_base): Make argument
4774 const.
4775
4776 2014-07-24 Tom Tromey <tromey@redhat.com>
4777
4778 * solib.c (solib_add): Make "pattern" const.
4779 * solib.h (solib_add): Update.
4780
4781 2014-07-24 Tom Tromey <tromey@redhat.com>
4782
4783 * remote.c (remote_serial_open, print_packet, putpkt)
4784 (putpkt_binary): Constify.
4785 * remote.h (putpkt): Update.
4786
4787 2014-07-24 Tom Tromey <tromey@redhat.com>
4788
4789 * monitor.c (monitor_open): Make "args" const.
4790 * monitor.h (monitor_open): Update.
4791
4792 2014-07-24 Tom Tromey <tromey@redhat.com>
4793
4794 * maint.c (match_bfd_flags): Make "string" const.
4795 (print_bfd_section_info): Remove casts.
4796 (print_objfile_section_info): Make "string" const.
4797
4798 2014-07-24 Tom Tromey <tromey@redhat.com>
4799
4800 * inf-child.c (inf_child_open_target): Make "arg" const.
4801 * inf-child.h (inf_child_open_target): Update.
4802
4803 2014-07-24 Tom Tromey <tromey@redhat.com>
4804
4805 * environ.c (unset_in_environ): Make "var" const.
4806 * environ.h (unset_in_environ): Update.
4807
4808 2014-07-24 Tom Tromey <tromey@redhat.com>
4809
4810 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4811 Make "cmd" const.
4812 (scan_filename_with_cleanup): Likewise.
4813 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4814 Make arguments const.
4815 (restore_command): Update.
4816
4817 2014-07-24 Pedro Alves <palves@redhat.com>
4818
4819 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4820
4821 2014-07-24 Tom Tromey <tromey@redhat.com>
4822 Gary Benson <gbenson@redhat.com>
4823
4824 * nat/linux-ptrace.c (additional_flags): New global.
4825 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4826 additional_flags; don't check GDBSERVER.
4827 (linux_ptrace_set_additional_flags): New function.
4828 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4829 Declare.
4830 * linux-nat.c (_initialize_linux_nat): Call
4831 linux_ptrace_set_additional_flags.
4832
4833 2014-07-24 Tom Tromey <tromey@redhat.com>
4834
4835 * make-target-delegates (munge_type, write_debugmethod): New
4836 functions.
4837 (debug_names): New global.
4838 ($TARGET_DEBUG_PRINTER): New global.
4839 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4840 name.
4841 Write debug methods. Generate init_debug_target.
4842 * target-debug.h: New file.
4843 * target-delegates.c: Rebuild.
4844 * target.c: Include target-debug.h.
4845 (debug_target): Hoist definition.
4846 (target_kill, target_get_section_table, target_memory_map)
4847 (target_flash_erase, target_flash_done, target_detach)
4848 (target_disconnect, target_wait, target_resume)
4849 (target_pass_signals, target_program_signals, target_follow_fork)
4850 (target_mourn_inferior, target_search_memory)
4851 (target_thread_address_space, target_close)
4852 (target_find_new_threads, target_core_of_thread)
4853 (target_verify_memory, target_insert_mask_watchpoint)
4854 (target_remove_mask_watchpoint): Remove targetdebug code.
4855 (debug_to_post_attach, debug_to_prepare_to_store)
4856 (debug_to_files_info, debug_to_insert_breakpoint)
4857 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4858 (debug_to_region_ok_for_hw_watchpoint)
4859 (debug_to_can_accel_watchpoint_condition)
4860 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4861 (debug_to_watchpoint_addr_within_range)
4862 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4863 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4864 (debug_to_terminal_init, debug_to_terminal_inferior)
4865 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4866 (debug_to_terminal_save_ours, debug_to_terminal_info)
4867 (debug_to_load, debug_to_post_startup_inferior)
4868 (debug_to_insert_fork_catchpoint)
4869 (debug_to_remove_fork_catchpoint)
4870 (debug_to_insert_vfork_catchpoint)
4871 (debug_to_remove_vfork_catchpoint)
4872 (debug_to_insert_exec_catchpoint)
4873 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4874 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4875 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4876 (setup_target_debug): Call init_debug_target.
4877 * target.h (TARGET_DEBUG_PRINTER): New macro.
4878 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4879 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4880
4881 2014-07-24 Gary Benson <gbenson@redhat.com>
4882
4883 * exceptions.h (throw_vfatal): Renamed to...
4884 (throw_vquit): New declaration.
4885 (throw_quit): Likewise.
4886 * exceptions.c (throw_vfatal): Renamed to...
4887 (throw_vquit): New function.
4888 (throw_quit): Likewise.
4889 (throw_error): Call throw_verror rather than throw_it.
4890 * utils.h (vfatal): Removed.
4891 (fatal): Likewise.
4892 * utils.c (vfatal): Removed.
4893 (fatal): Likewise.
4894 (internal_verror): Replaced call to fatal with call to throw_quit.
4895 (quit): Replaced calls to fatal with calls to throw_quit.
4896
4897 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4898
4899 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4900 target_read_code.
4901
4902 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4903
4904 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4905 less than zero in conditional expression.
4906
4907 2014-07-23 Tom Tromey <tromey@redhat.com>
4908
4909 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4910 ($INTRO_PART): Don't match whitespace.
4911 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4912 argument matching.
4913 ($METHOD): Add $METHOD_TRAILER.
4914 (trim): Rewrite.
4915 (scan_target_h): New sub.
4916 Change main loop not to collect state.
4917 * target-delegates.c: Rebuild.
4918
4919 2014-07-23 Gary Benson <gbenson@redhat.com>
4920
4921 * cp-support.c (gdb_demangle): Fix build on systems without
4922 sigaltstack.
4923
4924 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4927 for reference entry value target data value.
4928
4929 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4930
4931 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4932 value_available_contents_eq.
4933
4934 2014-07-22 Pedro Alves <palves@redhat.com>
4935
4936 * value.c (allocate_optimized_out_value): Don't mark value as
4937 non-lazy.
4938
4939 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4940
4941 * MAINTAINERS (Write After Approval): Update my email address.
4942
4943 2014-07-20 Doug Evans <dje@google.com>
4944
4945 PR server/17147
4946 * remote.c (putpkt_binary): Add text to error message.
4947
4948 2014-07-20 Yao Qi <yao@codesourcery.com>
4949
4950 * eval.c: Remove "Chill" from comments.
4951 * gdbtypes.h: Likewise.
4952 * symtab.h: Likewise.
4953
4954 2014-07-20 Yao Qi <yao@codesourcery.com>
4955
4956 * std-operator.def: Update comments to TERNOP_SLICE.
4957
4958 2014-07-20 Yao Qi <yao@codesourcery.com>
4959
4960 * std-operator.def: Remove BINOP_RANGE.
4961 * breakpoint.c (watchpoint_exp_is_const): Update.
4962 * expprint.c (dump_subexp_body_standard): Likewise.
4963 * eval.c (init_array_element): Remove dead code.
4964 (evaluate_subexp_standard): Likewise.
4965
4966 2014-07-20 Yao Qi <yao@codesourcery.com>
4967
4968 * std-operator.def: Remove BINOP_IN.
4969 * breakpoint.c (watchpoint_exp_is_const): Update.
4970 * eval.c (evaluate_subexp_standard): Likewise.
4971 * expprint.c (dump_subexp_body_standard): Likewise.
4972
4973 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4974
4975 * microblaze-tdep.c (microblaze_register_names): Add
4976 the rshr and rslr register names.
4977 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4978 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4979 Use of tdesc_numbered_register. Use of
4980 microblaze_register_g_packet_guesses. Use of
4981 tdesc_use_registers. Use of set_gdbarch_register_type.
4982 (microblaze_register_g_packet_guesses): New.
4983 * microblaze-tdep.h (microblaze_reg_num): Add
4984 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4985 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4986 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4987 * features/microblaze-core.xml: New file.
4988 * features/microblaze-stack-protect.xml: New file.
4989 * features/microblaze-with-stack-protect.c: New file.
4990 * features/microblaze-with-stack-protect.xml: New file.
4991 * features/microblaze.xml: New file.
4992 * features/microblaze.c: New file.
4993 * features/Makefile (microblaze-with-stack-protect): Add
4994 microblaze-with-stack-protect microblaze and microblaze-expedite.
4995 * regformats/microblaze-with-stack-protect.dat: New file.
4996 * regformats/microblaze.dat: New file.
4997 * doc/gdb.texinfo (MicroBlaze Features): Added.
4998
4999 2014-07-18 Tom Tromey <tromey@redhat.com>
5000
5001 * exec.c (exec_ops): Now static.
5002 * exec.h (exec_ops): Don't declare.
5003
5004 2014-07-18 Tom Tromey <tromey@redhat.com>
5005
5006 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5007 to find_target_beneath.
5008 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5009 find_target_beneath.
5010 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5011
5012 2014-07-18 Tom Tromey <tromey@redhat.com>
5013
5014 PR gdb/17130:
5015 * utils.c (quit): Use target_supports_terminal_ours.
5016 * target.h (target_supports_terminal_ours): Declare.
5017 * target.c (target_supports_delete_record): Don't check
5018 to_delete_record against NULL.
5019 (target_supports_terminal_ours): New function.
5020
5021 2014-07-18 Tom Tromey <tromey@redhat.com>
5022
5023 PR gdb/17130:
5024 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5025 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5026 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5027 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5028 * windows-nat.c (windows_xfer_partial): Always delegate.
5029 * record-btrace.c (record_btrace_xfer_partial): Simplify
5030 delegation.
5031 (record_btrace_fetch_registers, record_btrace_store_registers)
5032 (record_btrace_prepare_to_store, record_btrace_resume)
5033 (record_btrace_wait, record_btrace_find_new_threads)
5034 (record_btrace_thread_alive): Likewise.
5035 * procfs.c (procfs_xfer_partial): Always delegate.
5036 * corelow.c (core_xfer_partial): Always delegate.
5037 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5038
5039 2014-07-18 Tom Tromey <tromey@redhat.com>
5040
5041 * exec.c (exec_make_note_section): Move earlier.
5042
5043 2014-07-17 Doug Evans <dje@google.com>
5044
5045 PR gdb/17170
5046 * maint.c (count_symtabs_and_blocks): Handle NULL
5047 current_program_space.
5048 (report_command_stats): Check global enabled flag in addition to
5049 recorded enabled flag.
5050 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5051
5052 2014-07-16 Pedro Alves <palves@redhat.com>
5053
5054 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5055
5056 2014-07-16 Tom Tromey <tromey@redhat.com>
5057
5058 * target.h (struct target_ops) <to_delete_record>: Reformat
5059 comment.
5060
5061 2014-07-16 Tom Tromey <tromey@redhat.com>
5062
5063 * target-delegates.c: Rebuild.
5064
5065 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5066
5067 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5068 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5069 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5070 (avr_pointer_to_address): Likewise.
5071 (avr_address_class_type_flags): New function.
5072 (avr_address_class_type_flags_to_name): Likewise.
5073 (avr_address_class_name_to_type_flags): Likewise.
5074 (avr_gdbarch_init): Set address_class_type_flags,
5075 address_class_type_flags_to_name and
5076 address_class_name_to_type_flags.
5077
5078 2014-07-15 Pedro Alves <palves@redhat.com>
5079
5080 * linux-nat.c (kill_callback): Save errno and work with saved
5081 copy.
5082
5083 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5084
5085 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5086
5087 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5088
5089 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5090 breakpoint support correctly.
5091
5092 2014-07-14 Pedro Alves <palves@redhat.com>
5093
5094 * utils.c (prompt_for_continue): Call target_terminal_ours.
5095
5096 2014-07-14 Pedro Alves <palves@redhat.com>
5097
5098 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5099 catch_errors. Don't re-enable stdin or notify observers where,
5100 and rethrow error.
5101 (fetch_inferior_event_wrapper): Delete.
5102
5103 2014-07-14 Pedro Alves <palves@redhat.com>
5104
5105 PR gdb/17072
5106 * top.c: Include "inf-loop.h".
5107 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5108 field.
5109 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5110 was async before.
5111 (gdb_readline_wrapper): Store whether the target is async, and
5112 make it sync.
5113
5114 2014-07-14 Pedro Alves <palves@redhat.com>
5115
5116 PR gdb/17072
5117 * top.c (gdb_readline_wrapper_line): Tweak comment.
5118 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5119 the input handler callback.
5120
5121 2014-07-14 Pedro Alves <palves@redhat.com>
5122
5123 PR gdb/17072
5124 * main.c: Include event-top.h.
5125 (handle_command_errors): New function.
5126 (catch_command_errors, catch_command_errors_const): Use it.
5127
5128 2014-07-14 Pedro Alves <palves@redhat.com>
5129
5130 * exceptions.c (catch_command_errors, catch_command_errors_const):
5131 Moved to main.c.
5132 * exceptions.h (catch_command_errors_ftype)
5133 (catch_command_errors_const_ftype): Moved to main.c.
5134 (catch_command_errors, catch_command_errors_const): Delete
5135 declarations.
5136 * main.c (catch_command_errors_ftype)
5137 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5138 (catch_command_errors, catch_command_errors_const)): Moved here
5139 from exceptions.c and make static.
5140
5141 2014-07-14 Pedro Alves <palves@redhat.com>
5142
5143 * exceptions.c (print_any_exception): Delete.
5144 (catch_exceptions_with_msg): Use exception_print instead of
5145 print_any_exception.
5146 (catch_errors): Use exception_fprintf instead of
5147 print_any_exception.
5148 (catch_command_errors, catch_command_errors_const): Use
5149 exception_print instead of print_any_exception.
5150
5151 2014-07-14 Pedro Alves <palves@redhat.com>
5152
5153 * infcall.c (run_inferior_call): Set 'sync_execution' while
5154 running the inferior call.
5155
5156 2014-07-14 Pedro Alves <palves@redhat.com>
5157
5158 * value.c (value_contents_equal): Delete function.
5159 * value.h (value_contents_equal): Delete declaration.
5160
5161 2014-07-14 Tom Tromey <tromey@redhat.com>
5162
5163 PR exp/17106:
5164 * gdbtypes.c (is_dynamic_type_internal): New function, from
5165 is_dynamic_type.
5166 (is_dynamic_type): Rewrite.
5167 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5168 (resolve_dynamic_struct): Likewise.
5169 (resolve_dynamic_type_internal): New function, from
5170 resolve_dynamic_type.
5171 (resolve_dynamic_type): Rewrite.
5172
5173 2014-07-14 Tom Tromey <tromey@redhat.com>
5174
5175 * target.c (target_require_runnable): Also check record_stratum.
5176 Update comment.
5177
5178 2014-07-11 Yao Qi <yao@codesourcery.com>
5179
5180 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5181 thumb_instruction_restores_sp return true.
5182
5183 2014-07-11 Yao Qi <yao@codesourcery.com>
5184
5185 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5186 (thumb_in_function_epilogue_p): Call
5187 thumb_instruction_restores_sp.
5188
5189 2014-07-11 Yao Qi <yao@codesourcery.com>
5190
5191 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5192 'add sp, #imm'.
5193 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5194
5195 2014-07-11 Gary Benson <gbenson@redhat.com>
5196
5197 * amd64-linux-nat.c (gdbcore.h): Remove include.
5198 (regset.h): Likewise.
5199 (nat/linux-btrace.h): Likewise.
5200 (btrace.h): Likewise.
5201 (gdb_assert.h): Likewise.
5202 (string.h): Likewise.
5203 (sys/uio.h): Likewise.
5204 (sys/debugreg.h): Likewise.
5205 (sys/syscall.h): Likewise.
5206 (sys/procfs.h): Likewise.
5207 (sys/user.h): Likewise.
5208 (asm/ptrace.h): Likewise.
5209 (i386-nat.h): Likewise.
5210 * i386-linux-nat.c (i386-nat.h): Likewise.
5211 (regset.h): Likewise.
5212 (target.h): Likewise.
5213 (linux-nat.h): Likewise.
5214 (nat/linux-btrace.h): Likewise.
5215 (btrace.h): Likewise.
5216 (gdb_assert.h): Likewise.
5217 (string.h): Likewise.
5218 (sys/uio.h): Likewise.
5219 (sys/user.h): Likewise.
5220 (sys/procfs.h): Likewise.
5221 (sys/reg.h): Likewise.
5222 (sys/debugreg.h): Likewise.
5223 (ORIG_EAX): Remove definition.
5224
5225 2014-07-11 Gary Benson <gbenson@redhat.com>
5226
5227 * i386-linux-nat.h: New file.
5228 * x86-linux-nat.h: Likewise.
5229 * x86-linux-nat.c: Likewise.
5230 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5231 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5232 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5233 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5234 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5235 (PTRACE_SETREGSET): Likewise.
5236 (arch_lwp_info): Now in x86-linux-nat.c.
5237 (have_ptrace_getregset): Now in x86-linux-nat.h.
5238 (x86_linux_dr_get): Now in x86-linux-nat.c.
5239 (x86_linux_dr_set): Likewise.
5240 (x86_linux_dr_get_addr): Likewise.
5241 (x86_linux_dr_get_control): Likewise.
5242 (x86_linux_dr_get_status): Likewise.
5243 (update_debug_registers_callback): Likewise.
5244 (x86_linux_dr_set_control): Likewise.
5245 (x86_linux_dr_set_addr): Likewise.
5246 (x86_linux_prepare_to_resume): Likewise.
5247 (x86_linux_new_thread): Likewise.
5248 (x86_linux_new_fork): Likewise.
5249 (x86_linux_get_thread_area): Likewise.
5250 (super_post_startup_inferior): Likewise.
5251 (x86_linux_child_post_startup_inferior): Likewise.
5252 (AMD64_LINUX_USER64_CS): Likewise.
5253 (AMD64_LINUX_X32_DS): Likewise.
5254 (x86_linux_read_description): Likewise.
5255 (x86_linux_enable_btrace): Likewise.
5256 (x86_linux_disable_btrace): Likewise.
5257 (x86_linux_teardown_btrace): Likewise.
5258 (x86_linux_read_btrace): Likewise.
5259 (x86_linux_create_target): Likewise.
5260 (x86_linux_add_target): Likewise.
5261 * i386-linux-nat.c (x86-linux-nat.h): New include.
5262 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5263 (PTRACE_SETREGSET): Likewise.
5264 (arch_lwp_info): Now in x86-linux-nat.c.
5265 (have_ptrace_getregset): Now in x86-linux-nat.h.
5266 (x86_linux_dr_get): Now in x86-linux-nat.c.
5267 (x86_linux_dr_set): Likewise.
5268 (x86_linux_dr_get_addr): Likewise.
5269 (x86_linux_dr_get_control): Likewise.
5270 (x86_linux_dr_get_status): Likewise.
5271 (update_debug_registers_callback): Likewise.
5272 (x86_linux_dr_set_control): Likewise.
5273 (x86_linux_dr_set_addr): Likewise.
5274 (x86_linux_prepare_to_resume): Likewise.
5275 (x86_linux_new_thread): Likewise.
5276 (x86_linux_new_fork): Likewise.
5277 (x86_linux_get_thread_area): Likewise.
5278 (super_post_startup_inferior): Likewise.
5279 (x86_linux_child_post_startup_inferior): Likewise.
5280 (AMD64_LINUX_USER64_CS): Likewise.
5281 (AMD64_LINUX_X32_DS): Likewise.
5282 (x86_linux_read_description): Likewise.
5283 (x86_linux_enable_btrace): Likewise.
5284 (x86_linux_disable_btrace): Likewise.
5285 (x86_linux_teardown_btrace): Likewise.
5286 (x86_linux_read_btrace): Likewise.
5287 (x86_linux_create_target): Likewise.
5288 (x86_linux_add_target): Likewise.
5289
5290 2014-07-11 Gary Benson <gbenson@redhat.com>
5291
5292 * amd64-linux-nat.c: Comment and whitespace changes.
5293 * i386-linux-nat.c: Comment and whitespace changes.
5294
5295 2014-07-11 Gary Benson <gbenson@redhat.com>
5296
5297 * amd64-linux-nat.c (x86_linux_create_target): New function.
5298 (x86_linux_add_target): Likewise.
5299 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5300 * i386-linux-nat.c (x86_linux_create_target): New function.
5301 (x86_linux_add_target): Likewise.
5302 (_initialize_i386_linux_nat): Delegate to the above new functions.
5303
5304 2014-07-11 Gary Benson <gbenson@redhat.com>
5305
5306 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5307 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5308 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5309 (ps_get_thread_area): Delegate to the above.
5310
5311 2014-07-11 Gary Benson <gbenson@redhat.com>
5312
5313 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5314 x86_linux_read_description. All uses updated. amd64-specific
5315 code conditionalized. Conditionalized i386-specific code added.
5316 Redundant cast removed.
5317 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5318 x86_linux_read_description. All uses updated. i386-specific
5319 code conditionalized. Conditionalized amd64-specific code added.
5320 One sizeof replaced with the actual type it is describing.
5321
5322 2014-07-11 Gary Benson <gbenson@redhat.com>
5323
5324 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5325 x86_linux_dr_get. All uses updated.
5326 (amd64_linux_dr_set): Renamed to
5327 x86_linux_dr_set. All uses updated.
5328 (amd64_linux_dr_get_addr): Renamed to
5329 x86_linux_dr_get_addr. All uses updated.
5330 (amd64_linux_dr_get_control): Renamed to
5331 x86_linux_dr_get_control. All uses updated.
5332 (amd64_linux_dr_get_status): Renamed to
5333 x86_linux_dr_get_status. All uses updated.
5334 (amd64_linux_dr_set_control): Renamed to
5335 x86_linux_dr_set_control. All uses updated.
5336 (amd64_linux_dr_set_addr): Renamed to
5337 x86_linux_dr_set_addr. All uses updated.
5338 (amd64_linux_prepare_to_resume): Renamed to
5339 x86_linux_prepare_to_resume. All uses updated.
5340 (amd64_linux_new_thread): Renamed to
5341 x86_linux_new_thread. All uses updated.
5342 (amd64_linux_new_fork): Renamed to
5343 x86_linux_new_fork. All uses updated.
5344 (amd64_linux_child_post_startup_inferior): Renamed to
5345 x86_linux_child_post_startup_inferior. All uses updated.
5346 (amd64_linux_enable_btrace): Renamed to
5347 x86_linux_enable_btrace. All uses updated.
5348 (amd64_linux_disable_btrace): Renamed to
5349 x86_linux_disable_btrace. All uses updated.
5350 (amd64_linux_teardown_btrace): Renamed to
5351 x86_linux_teardown_btrace. All uses updated.
5352 (amd64_linux_read_btrace): Renamed to
5353 x86_linux_read_btrace. All uses updated.
5354 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5355 x86_linux_dr_get. All uses updated.
5356 (i386_linux_dr_set): Renamed to
5357 x86_linux_dr_set. All uses updated.
5358 (i386_linux_dr_get_addr): Renamed to
5359 x86_linux_dr_get_addr. All uses updated.
5360 (i386_linux_dr_get_control): Renamed to
5361 x86_linux_dr_get_control. All uses updated.
5362 (i386_linux_dr_get_status): Renamed to
5363 x86_linux_dr_get_status. All uses updated.
5364 (i386_linux_dr_set_control): Renamed to
5365 x86_linux_dr_set_control. All uses updated.
5366 (i386_linux_dr_set_addr): Renamed to
5367 x86_linux_dr_set_addr. All uses updated.
5368 (i386_linux_prepare_to_resume): Renamed to
5369 x86_linux_prepare_to_resume. All uses updated.
5370 (i386_linux_new_thread): Renamed to
5371 x86_linux_new_thread. All uses updated.
5372 (i386_linux_new_fork): Renamed to
5373 x86_linux_new_fork. All uses updated.
5374 (i386_linux_child_post_startup_inferior): Renamed to
5375 x86_linux_child_post_startup_inferior. All uses updated.
5376 (i386_linux_enable_btrace): Renamed to
5377 x86_linux_enable_btrace. All uses updated.
5378 (i386_linux_disable_btrace): Renamed to
5379 x86_linux_disable_btrace. All uses updated.
5380 (i386_linux_teardown_btrace): Renamed to
5381 x86_linux_teardown_btrace. All uses updated.
5382 (i386_linux_read_btrace): Renamed to
5383 x86_linux_read_btrace. All uses updated.
5384
5385 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5386
5387 * remote.c (extended_remote_post_attach): New function.
5388 (init_extended_remote_ops): Install it as to_post_attach method.
5389
5390 2014-07-09 Pedro Alves <palves@redhat.com>
5391
5392 * infcmd.c (attach_command_post_wait): Don't call
5393 target_terminal_inferior here.
5394 (attach_command): Call it here instead.
5395
5396 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5397
5398 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5399 field.
5400 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5401 from varobj.c, with additional checks.
5402 (c_varobj_ops): Fill in is_path_expr_parent field.
5403 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5404 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5405 field.
5406 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5407 ops method.
5408 (varobj_default_is_path_expr_parent): New function.
5409 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5410 (varobj_default_is_path_expr_parent): Declare new function.
5411
5412 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5413
5414 * infcmd.c (finish_backward): Turn internal error into normal error.
5415
5416 2014-07-07 Pedro Alves <palves@redhat.com>
5417
5418 PR gdb/17096
5419 * remote.c (async_handle_remote_sigint)
5420 (async_handle_remote_sigint_twice): Call
5421 gdb_call_async_signal_handler instead of
5422 mark_async_signal_handler.
5423
5424 2014-07-07 Tom Tromey <tromey@redhat.com>
5425
5426 * target-delegates.c: Rebuild.
5427 * target.c (target_info_record): Remove.
5428 * record.c (info_record_command): Unconditionally call
5429 to_info_record.
5430 * target.h (struct target_ops) <to_info_record>: Use
5431 TARGET_DEFAULT_IGNORE.
5432 (target_info_record): Remove.
5433
5434 2014-07-07 Tom Tromey <tromey@redhat.com>
5435
5436 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5437 TARGET_DEFAULT_NORETURN.
5438 * target.c (generic_tls_error): New function.
5439 (target_translate_tls_address): Don't search target stack.
5440 * target-delegates.c: Rebuild.
5441 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5442 stack.
5443 * linux-thread-db.c (thread_db_get_thread_local_address):
5444 Unconditionally call beneath target.
5445
5446 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5447
5448 * cli/cli-logging.c (pop_output_files): Assign targerr to
5449 gdb_stdtargerr.
5450
5451 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5452
5453 * MAINTAINERS (Write After Approval): Update my email address.
5454
5455 2014-07-02 Gary Benson <gbenson@redhat.com>
5456
5457 * proc-service.c (ps_xfer_memory): Update comment.
5458 (ps_pstop): Remove unused function.
5459 (ps_pcontinue): Likewise.
5460 (ps_lstop): Likewise.
5461 (ps_lcontinue): Likewise.
5462 (ps_lgetxregsize): Likewise.
5463 (ps_lgetxregs): Likewise.
5464 (ps_lsetxregs): Likewise.
5465 (ps_plog): Likewise.
5466 (ps_ptread): Likewise.
5467 (ps_ptwrite): Likewise.
5468
5469 2014-07-01 Mark Wielaard <mjw@redhat.com>
5470
5471 * dwarf2read.c (add_array_cv_type): New function.
5472 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5473 (read_tag_volatile_type): Likewise.
5474
5475 2014-07-01 Tom Tromey <tromey@redhat.com>
5476
5477 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5478 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5479 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5480 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5481 * command.h (cmd_cfunc_ftype): Move earlier.
5482 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5483 (add_com, add_info): Use cmd_cfunc_ftype.
5484
5485 2014-06-30 Tom Tromey <tromey@redhat.com>
5486
5487 * symtab.c (operator_chars): Make parameters and return type
5488 const.
5489 (file_matches): Make "files" const.
5490 (struct search_symbols_data) <files>: Now const.
5491 (search_symbols): Make "regexp" and "files" parameters const.
5492 Update.
5493 (symtab_symbol_info): Remove cast.
5494 (rbreak_command): Update.
5495 * symtab.h (search_symbols): Update.
5496
5497 2014-06-27 Yao Qi <yao@codesourcery.com>
5498
5499 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5500 Change parameter type to 'struct thread_info *'. Caller
5501 updated.
5502 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5503 Update declaration.
5504 * dummy-frame.c (struct dummy_frame_id): New.
5505 (dummy_frame_id_eq): New function.
5506 (struct dummy_frame) <id>: Change its type to 'struct
5507 dummy_frame_id'.
5508 (dummy_frame_push): Add parameter ptid and save it in
5509 dummy_frame_id.
5510 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5511 inferior_ptid.
5512 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5513 to inferior_ptid.
5514 (lookup_dummy_frame): Change parameter type to 'struct
5515 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5516 instead of frame_id_eq.
5517 (dummy_frame_pop): Add parameter ptid. Callers updated.
5518 Update comments. Compose dummy_frame_id and pass it to
5519 lookup_dummy_frame.
5520 (dummy_frame_discard): Add parameter ptid.
5521 (dummy_frame_sniffer): Compose dummy_frame_id and call
5522 dummy_frame_id_eq instead of frame_id_eq.
5523 (fprint_dummy_frames): Print ptid.
5524 * dummy-frame.h: Remove comments.
5525 (dummy_frame_push): Add ptid in declaration.
5526 (dummy_frame_pop, dummy_frame_discard): Likewise.
5527
5528 2014-06-26 Tom Tromey <tromey@redhat.com>
5529
5530 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5531 * command.h (error_no_arg): Update.
5532
5533 2014-06-26 Tom Tromey <tromey@redhat.com>
5534
5535 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5536 (do_show_command): Make "arg" const.
5537 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5538
5539 2014-06-26 Tom Tromey <tromey@redhat.com>
5540
5541 * record-full.c (record_full_get_bookmark): Make "args" const.
5542 (record_full_goto_bookmark): Make "raw_bookmark" const.
5543 * record.c (record_goto): New function.
5544 (cmd_record_goto): Use it. Now static.
5545 * record.h (record_goto): Declare.
5546 (cmd_record_goto): Remove declaration.
5547 * target-delegates.c: Rebuild.
5548 * target.h (struct target_ops) <to_get_bookmark,
5549 to_goto_bookmark>: Make parameter const.
5550
5551 2014-06-26 Tom Tromey <tromey@redhat.com>
5552
5553 * defs.h (generic_load): Update.
5554 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5555 * monitor.c (monitor_load): Make "args" const.
5556 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5557 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5558 const.
5559 (mips_load): Make "file" const.
5560 * remote-sim.c (gdbsim_load): Make "args" const.
5561 * remote.c (remote_load): Make "name" const.
5562 * symfile.c (generic_load): Make "args" const.
5563 * target-delegates.c: Rebuild.
5564 * target.c (target_load): Make "arg" const.
5565 (debug_to_load): Make "args" const.
5566 * target.h (struct target_ops) <to_load>: Make parameter const.
5567 (target_load): Update.
5568
5569 2014-06-26 Tom Tromey <tromey@redhat.com>
5570
5571 PR symtab/16902:
5572 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5573 (dwarf2_physname, read_partial_die)
5574 (guess_partial_die_structure_name, fixup_partial_die)
5575 (guess_full_die_structure_name, anonymous_struct_prefix)
5576 (dwarf2_name): Use per-BFD obstack.
5577
5578 2014-06-26 Yao Qi <yao@codesourcery.com>
5579
5580 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5581 dummyframe and this_id into inner block below.
5582
5583 2014-06-26 Yao Qi <yao@codesourcery.com>
5584
5585 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5586 with "signal_pass[0]" in the initialization of signal_pass.
5587
5588 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5589
5590 * record-btrace.c (record_btrace_generating_corefile)
5591 (record_btrace_prepare_to_generate_core)
5592 (record_btrace_done_generating_core): New.
5593 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5594 (record_btrace_store_registers, record_btrace_prepare_to_store):
5595 Forward request when generating a core file.
5596 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5597 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5598 to_done_generating_core.
5599
5600 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5601
5602 * target.h (target_ops) <to_prepare_to_generate_core>
5603 <to_done_generating_core>: New.
5604 (target_prepare_to_generate_core, target_done_generating_core): New.
5605 * target.c (target_prepare_to_generate_core)
5606 (target_done_generating_core): New.
5607 * target-delegates.c: Regenerate.
5608 * gcore.c: (write_gcore_file): Rename to ...
5609 (write_gcore_file_1): ...this.
5610 (write_gcore_file): Call target_prepare_to_generate_core
5611 and target_done_generating_core.
5612
5613 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5614
5615 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5616 * gcore.c (write_gcore_file): Free memory returned from
5617 make_corefile_notes.
5618 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5619 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5620
5621 2014-06-24 Yao Qi <yao@codesourcery.com>
5622
5623 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5624 (arm_linux_init_abi): Set skip_trampoline_code with
5625 gdbarch_skip_trampoline_code instead of
5626 find_solib_trampoline_target.
5627
5628 2014-06-24 Yao Qi <yao@codesourcery.com>
5629
5630 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5631 arm_skip_bx_reg returns non-zero.
5632
5633 2014-06-24 Yao Qi <yao@codesourcery.com>
5634
5635 * arm-tdep.c (arm_skip_bx_reg): New function.
5636 (arm_skip_stub): Call arm_skip_bx_reg.
5637
5638 2014-06-23 Don Breazeal <donb@codesourcery.com>
5639
5640 * MAINTAINERS: Add myself as write-after-approval maintainer.
5641
5642 2014-06-23 Pedro Alves <palves@redhat.com>
5643
5644 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5645 DR_CONTROL before setting DR0..DR3.
5646 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5647 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5648 bits of DR_CONTROL related to the debug register slot being
5649 disabled. If all slots are vacant, clear local slowdown as well,
5650 and assert DR_CONTROL is 0.
5651
5652 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5653
5654 * python/lib/gdb/command/xmethods.py
5655 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5656 current progspace only if the string "progspace" matches LOCUS_RE.
5657
5658 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5659
5660 Fix --with-system-readline with readline-6.3 patch 5.
5661 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5662 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5663 types.
5664
5665 2014-06-20 Tom Tromey <tromey@redhat.com>
5666
5667 * dwarf2read.c (dw2_get_real_path): Use correct type in
5668 OBSTACK_CALLOC.
5669 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5670
5671 2014-06-20 Gary Benson <gbenson@redhat.com>
5672
5673 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5674 * common/glibc_thread_db.h: Likewise.
5675 * common/i386-cpuid.h: Likewise.
5676 * common/i386-gcc-cpuid.h: Likewise.
5677 * common/linux-btrace.h: Likewise.
5678 * common/linux-osdata.h: Likewise.
5679 * common/linux-procfs.h: Likewise.
5680 * common/linux-ptrace.h: Likewise.
5681 * common/mips-linux-watch.h: Likewise.
5682 * common/linux-btrace.c: Moved to nat.
5683 * common/linux-osdata.c: Likewise.
5684 * common/linux-procfs.c: Likewise.
5685 * common/linux-ptrace.c: Likewise.
5686 * common/mips-linux-watch.c: Likewise.
5687 * nat/gdb_thread_db.h: Moved from common.
5688 * nat/glibc_thread_db.h: Likewise.
5689 * nat/i386-cpuid.h: Likewise.
5690 * nat/i386-gcc-cpuid.h: Likewise.
5691 * nat/linux-btrace.c: Likewise.
5692 * nat/linux-btrace.h: Likewise.
5693 * nat/linux-osdata.c: Likewise.
5694 * nat/linux-osdata.h: Likewise.
5695 * nat/linux-procfs.c: Likewise.
5696 * nat/linux-procfs.h: Likewise.
5697 * nat/linux-ptrace.c: Likewise.
5698 * nat/linux-ptrace.h: Likewise.
5699 * nat/mips-linux-watch.c: Likewise.
5700 * nat/mips-linux-watch.h: Likewise.
5701 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5702 (object file files): Reordered.
5703 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5704 of glibc_thread_db.h.
5705
5706 2014-06-20 Gary Benson <gbenson@redhat.com>
5707
5708 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5709 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5710 (i386_dr_low): Likewise.
5711 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5712 (i386_dr_low_set_addr): Likewise.
5713 (i386_dr_low_get_addr): Likewise.
5714 (i386_dr_low_can_set_control): Likewise.
5715 (i386_dr_low_set_control): Likewise.
5716 (i386_dr_low_get_control): Likewise.
5717 (i386_dr_low_get_status): Likewise.
5718 (i386_get_debug_register_length): Likewise.
5719 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5720 (i386_dr_low): Likewise.
5721 * nat/i386-dregs.c (i386-low.h): Remove include.
5722 (i386-nat.h): Likewise.
5723 (nat/i386-dregs.h): New include.
5724 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5725 (i386_dr_low_set_addr): Likewise.
5726 (i386_dr_low_get_addr): Likewise.
5727 (i386_dr_low_can_set_control): Likewise.
5728 (i386_dr_low_set_control): Likewise.
5729 (i386_dr_low_get_control): Likewise.
5730 (i386_dr_low_get_status): Likewise.
5731 (i386_get_debug_register_length): Likewise.
5732 (debug_hw_points): Likewise.
5733
5734 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5735
5736 * Makefile.in (SFILES): Add d-exp.y.
5737 (YYFILES): Add d-exp.c.
5738 (YYOBJ): Add d-exp.o.
5739 (local-maintainer-clean): Delete d-exp.c.
5740 * d-exp.y: New file.
5741 * d-lang.h (d_parse): New declaration.
5742 (d_error): New declaration.
5743 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5744 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5745 PREC_ORDER operators.
5746 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5747
5748 2014-06-19 Yao Qi <yao@codesourcery.com>
5749
5750 * gdbthread.h (any_running): Remove the declaration.
5751 * thread.c (any_running): Remove.
5752
5753 2014-06-19 Yao Qi <yao@codesourcery.com>
5754
5755 * gdbthread.h (struct thread_info) <state>: Change its type to
5756 'enum thread_state'. Update comments.
5757
5758 2014-06-19 Pedro Alves <palves@redhat.com>
5759
5760 * gdbthread.h (ALL_THREADS): Delete.
5761 (ALL_NON_EXITED_THREADS): New macro.
5762 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5763 instead of ALL_THREADS.
5764 * infrun.c (find_thread_needs_step_over)
5765 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5766 instead of ALL_THREADS.
5767 * record-btrace.c (record_btrace_open)
5768 (record_btrace_stop_recording, record_btrace_close)
5769 (record_btrace_is_replaying, record_btrace_resume)
5770 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5771 * remote.c (append_pending_thread_resumptions): Likewise.
5772 * thread.c (thread_apply_all_command): Likewise.
5773
5774 2014-06-19 Gary Benson <gbenson@redhat.com>
5775
5776 * i386-nat.c (i386_stopped_by_watchpoint):
5777 Use i386_dr_stopped_by_watchpoint.
5778 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5779 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5780
5781 2014-06-19 Gary Benson <gbenson@redhat.com>
5782
5783 * nat/i386-dregs.c: New file.
5784 * Makefile.in (i386-dregs.o): New rule.
5785 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5786 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5787 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5788 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5789 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5790 * config/i386/go32.mh (NATDEPFILES): Likewise.
5791 * config/i386/linux.mh (NATDEPFILES): Likewise.
5792 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5793 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5794 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5795 * i386-nat.h (debug_hw_points): New declaration.
5796 * i386-nat.c (breakpoint.h): Remove include.
5797 (command.h): Likewise.
5798 (target.h): Likewise.
5799 (gdb_assert.h): Likewise.
5800 (debug_hw_points): Made nonstatic.
5801 (debug_printf): Now in i386-dregs.c.
5802 (TARGET_HAS_DR_LEN_8): Likewise.
5803 (DR_CONTROL_SHIFT): Likewise.
5804 (DR_CONTROL_SIZE): Likewise.
5805 (DR_RW_EXECUTE): Likewise.
5806 (DR_RW_WRITE): Likewise.
5807 (DR_RW_READ): Likewise.
5808 (DR_RW_IORW): Likewise.
5809 (DR_LEN_1): Likewise.
5810 (DR_LEN_2): Likewise.
5811 (DR_LEN_4): Likewise.
5812 (DR_LEN_8): Likewise.
5813 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5814 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5815 (DR_ENABLE_SIZE): Likewise.
5816 (DR_LOCAL_SLOWDOWN): Likewise.
5817 (DR_GLOBAL_SLOWDOWN): Likewise.
5818 (DR_CONTROL_RESERVED): Likewise.
5819 (I386_DR_CONTROL_MASK): Likewise.
5820 (I386_DR_VACANT): Likewise.
5821 (I386_DR_LOCAL_ENABLE): Likewise.
5822 (I386_DR_GLOBAL_ENABLE): Likewise.
5823 (I386_DR_DISABLE): Likewise.
5824 (I386_DR_SET_RW_LEN): Likewise.
5825 (I386_DR_GET_RW_LEN): Likewise.
5826 (I386_DR_WATCH_HIT): Likewise.
5827 (i386_wp_op_t): Likewise.
5828 (i386_show_dr): Likewise.
5829 (i386_length_and_rw_bits): Likewise.
5830 (i386_insert_aligned_watchpoint): Likewise.
5831 (i386_remove_aligned_watchpoint): Likewise.
5832 (i386_handle_nonaligned_watchpoint): Likewise.
5833 (i386_update_inferior_debug_regs): Likewise.
5834 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5835 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5836 (i386_region_ok_for_watchpoint):
5837 Use i386_dr_region_ok_for_watchpoint.
5838 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5839
5840 2014-06-19 Gary Benson <gbenson@redhat.com>
5841
5842 * i386-nat.c (i386_insert_hw_breakpoint): Use
5843 i386_insert_watchpoint.
5844 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5845
5846 2014-06-19 Gary Benson <gbenson@redhat.com>
5847
5848 * i386-nat.c (i386_dr_show): Renamed to
5849 i386_show_dr and made static. All uses updated.
5850 (i386_dr_length_and_rw_bits): Renamed to
5851 i386_length_and_rw_bits and made static.
5852 All uses updated.
5853 (i386_dr_insert_aligned_watchpoint): Renamed to
5854 i386_insert_aligned_watchpoint and made static.
5855 All uses updated.
5856 (i386_dr_remove_aligned_watchpoint): Renamed to
5857 i386_remove_aligned_watchpoint and made static.
5858 All uses updated.
5859 (i386_dr_update_inferior_debug_regs): Renamed to
5860 i386_update_inferior_debug_regs and made static.
5861 All uses updated.
5862 * nat/i386-dregs.h (i386_dr_show): Removed.
5863 (i386_dr_length_and_rw_bits): Likewise.
5864 (i386_dr_insert_aligned_watchpoint): Likewise.
5865 (i386_dr_remove_aligned_watchpoint): Likewise.
5866 (i386_dr_update_inferior_debug_regs): Likewise.
5867
5868 2014-06-19 Gary Benson <gbenson@redhat.com>
5869
5870 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5871 * configure: Regenerate.
5872 * config.in: Likewise.
5873 * main.c (signal.h): New include.
5874 (setup_alternate_signal_stack): New function.
5875 (captured_main): Call the above.
5876 * cp-support.c (signal.h): New include.
5877 (catch_demangler_crashes): New flag.
5878 (SIGJMP_BUF): New define.
5879 (SIGSETJMP): Likewise.
5880 (SIGLONGJMP): Likewise.
5881 (gdb_demangle_jmp_buf): New static global.
5882 (gdb_demangle_attempt_core_dump): Likewise.
5883 (gdb_demangle_signal_handler): New function.
5884 (gdb_demangle): If catch_demangler_crashes is set, install the
5885 above signal handler before calling bfd_demangle, and restore
5886 the original signal handler afterwards. Display the offending
5887 symbol and call demangler_warning the first time a segmentation
5888 fault is caught.
5889 (_initialize_cp_support): New maint set/show command.
5890
5891 2014-06-19 Gary Benson <gbenson@redhat.com>
5892
5893 * utils.h (resource_limit_kind): New enum.
5894 (can_dump_core): New declaration.
5895 (warn_cant_dump_core): Likewise.
5896 (dump_core): Likewise.
5897 * utils.c (dump_core): Made nonstatic. Added new
5898 parameter "limit_kind".
5899 (can_dump_core): Made nonstatic. Moved printing code to...
5900 (warn_cant_dump_core): New function.
5901 (can_dump_core_warn): Likewise.
5902 (internal_vproblem): Replace calls to can_dump_core with
5903 calls to can_dump_core_warn. Supply new argument to each.
5904
5905 2014-06-19 Gary Benson <gbenson@redhat.com>
5906
5907 * utils.h (demangler_vwarning): New declaration.
5908 (demangler_warning): Likewise.
5909 * utils.c (struct internal_problem)
5910 <user_settable_should_quit>: New field.
5911 <user_settable_should_dump_core>: Likewise
5912 (internal_error_problem): Add values for above new fields.
5913 (internal_warning_problem): Likewise.
5914 (demangler_warning_problem): New static global.
5915 (demangler_vwarning): New function.
5916 (demangler_warning): Likewise.
5917 (add_internal_problem_command): Selectively add commands.
5918 (_initialize_utils): New internal problem command.
5919 * maint.c (maintenance_demangler_warning): New function.
5920 (_initialize_maint_cmds): New command.
5921
5922 2014-06-18 Tom Tromey <tromey@redhat.com>
5923
5924 * f-valprint.c (info_common_command_for_block): Update.
5925 * symtab.h (struct general_symbol_info) <common_block>: Now
5926 const.
5927
5928 2014-06-18 Tom Tromey <tromey@redhat.com>
5929
5930 * symtab.h (struct symtab) <blockvector>: Now const.
5931 * ada-lang.c (ada_add_global_exceptions): Update.
5932 * buildsym.c (augment_type_symtab): Update.
5933 * dwarf2read.c (dw2_lookup_symbol): Update.
5934 * jit.c (finalize_symtab): Update.
5935 * jv-lang.c (add_class_symtab_symbol): Update.
5936 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5937 Update.
5938 * objfiles.c (objfile_relocate1): Update.
5939 * psymtab.c (lookup_symbol_aux_psymtabs)
5940 (maintenance_check_psymtabs): Update.
5941 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5942 Update.
5943 * spu-tdep.c (spu_catch_start): Update.
5944 * symmisc.c (dump_symtab_1): Update.
5945 * symtab.c (lookup_global_symbol_from_objfile)
5946 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5947 (basic_lookup_transparent_type_quick)
5948 (basic_lookup_transparent_type, find_pc_sect_symtab)
5949 (find_pc_sect_line, search_symbols): Update.
5950 * block.c (find_block_in_blockvector): Make "bl" const.
5951 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5952 const.
5953 (blockvector_contains_pc): Make "bv" const.
5954 (block_for_pc_sect): Update.
5955 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5956 (blockvector_contains_pc): Update.
5957 * breakpoint.c (resolve_sal_pc): Update.
5958 * inline-frame.c (block_starting_point_at): Update.
5959
5960 2014-06-18 Tom Tromey <tromey@redhat.com>
5961
5962 * completer.c (complete_line): Make "line_buffer" const.
5963 * completer.h (complete_line): Update.
5964
5965 2014-06-18 Tom Tromey <tromey@redhat.com>
5966
5967 * symtab.c (add_macro_name): Remove unneeded cast.
5968
5969 2014-06-18 Tom Tromey <tromey@redhat.com>
5970
5971 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5972 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5973
5974 2014-06-18 Tom Tromey <tromey@redhat.com>
5975
5976 * probe.c (info_probes_for_ops): Make "arg" const.
5977 * probe.h (info_probes_for_ops): Update.
5978
5979 2014-06-18 Tom Tromey <tromey@redhat.com>
5980
5981 * varobj.c (varobj_create): Update.
5982 * valops.c (value_of_this): Update.
5983 * tracepoint.c (add_local_symbols, scope_info): Update.
5984 * symtab.h (struct general_symbol_info) <block>: Now const.
5985 * symtab.c (skip_prologue_sal)
5986 (default_make_symbol_completion_list_break_on)
5987 (skip_prologue_using_sal): Update.
5988 * stack.h (iterate_over_block_locals)
5989 (iterate_over_block_local_vars): Update.
5990 * stack.c (print_frame_args): Update.
5991 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5992 parameter const.
5993 (get_selected_block): Make return type const.
5994 * python/py-frame.c (frapy_block): Update.
5995 * python/py-block.c (gdbpy_block_for_pc): Update.
5996 * p-exp.y (%union) <bval>: Now const.
5997 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5998 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5999 * m2-exp.y (%union) <bval>: Now const.
6000 * linespec.c (get_current_search_block): Make return type const.
6001 (create_sals_line_offset, find_label_symbols): Update.
6002 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6003 Update.
6004 (block_starting_point_at): Make "block" const.
6005 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6006 (check_exception_resume): Update.
6007 * guile/scm-frame.c (gdbscm_frame_block): Update.
6008 * guile/scm-block.c (gdbscm_lookup_block): Update.
6009 * frame.h (get_frame_block): Update.
6010 (get_selected_block): Make return type const.
6011 * frame.c (frame_id_inner): Update.
6012 * f-valprint.c (info_common_command_for_block)
6013 (info_common_command): Update.
6014 * dwarf2loc.c (dwarf2_find_location_expression)
6015 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6016 (locexpr_describe_location_piece): Update.
6017 * c-exp.y (%union) <bval>: Now const.
6018 * breakpoint.c (resolve_sal_pc): Update.
6019 * blockframe.c (get_frame_block):Make return type const.
6020 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6021 (block_innermost_frame): Update.
6022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6023 (block_for_pc, block_for_pc_sect): Update.
6024 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6025 'pblock' const.
6026 (block_for_pc_sect, block_for_pc): Make return type const.
6027 * ax-gdb.c (gen_expr): Update.
6028 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6029 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6030 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6031 (ada_read_var_value): Update.
6032 * ada-exp.y (struct name_info) <block>: Now const.
6033 (%union): Likewise.
6034 (block_lookup): Constify.
6035
6036 2014-06-18 Gary Benson <gbenson@redhat.com>
6037
6038 * nat/i386-dregs.h: New file.
6039 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6040 * i386-nat.h (i386-dregs.h): New include.
6041 (DR_FIRSTADDR): Now in i386-dregs.h.
6042 (DR_LASTADDR): Likewise.
6043 (DR_NADDR): Likewise.
6044 (DR_STATUS): Likewise.
6045 (DR_CONTROL): Likewise.
6046 (i386_debug_reg_state): Likewise.
6047 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6048
6049 2014-06-18 Don Breazeal <donb@codesourcery.com>
6050
6051 * breakpoint.c (set_longjmp_breakpoint): Call
6052 momentary_breakpoint_from_master with additional argument.
6053 (set_longjmp_breakpoint_for_call_dummy): Call
6054 momentary_breakpoint_from_master with additional argument.
6055 (set_std_terminate_breakpoint): Call
6056 momentary_breakpoint_from_master with additional argument.
6057 (momentary_breakpoint_from_master): Add argument to function
6058 definition and use it to initialize structure member flag.
6059 (clone_momentary_breakpoint): Call
6060 momentary_breakpoint_from_master with additional argument.
6061 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6062 member flags set in momentary_breakpoint_from_master.
6063
6064 2014-06-18 Gary Benson <gbenson@redhat.com>
6065
6066 * i386-nat.c (i386_show_dr): Renamed to
6067 i386_dr_show and made nonstatic. All uses updated.
6068 (i386_length_and_rw_bits): Renamed to
6069 i386_dr_length_and_rw_bits and made nonstatic.
6070 All uses updated.
6071 (i386_insert_aligned_watchpoint): Renamed to
6072 i386_dr_insert_aligned_watchpoint and made nonstatic.
6073 All uses updated.
6074 (i386_remove_aligned_watchpoint): Renamed to
6075 i386_dr_remove_aligned_watchpoint and made nonstatic.
6076 All uses updated.
6077 (i386_update_inferior_debug_regs): Renamed to
6078 i386_dr_update_inferior_debug_regs and made nonstatic.
6079 All uses updated.
6080
6081 2014-06-18 Gary Benson <gbenson@redhat.com>
6082
6083 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6084 (i386_dr_low_can_set_control): Likewise.
6085 (i386_dr_low_set_addr): Likewise.
6086 (i386_dr_low_set_control): Likewise.
6087 (i386_dr_low_get_addr): Likewise.
6088 (i386_dr_low_get_status): Likewise.
6089 (i386_dr_low_get_control): Likewise.
6090 (i386_insert_aligned_watchpoint): Use new macros.
6091 (i386_update_inferior_debug_regs): Likewise.
6092 (i386_stopped_data_address): Likewise.
6093
6094 2014-06-18 Gary Benson <gbenson@redhat.com>
6095
6096 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6097 New parameter. All uses updated.
6098
6099 2014-06-18 Gary Benson <gbenson@redhat.com>
6100
6101 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6102 All uses updated.
6103
6104 2014-06-18 Gary Benson <gbenson@redhat.com>
6105
6106 * i386-nat.c (debug_printf): New macro.
6107 (i386_get_debug_register_length): Likewise.
6108 (TARGET_HAS_DR_LEN_8): Use above macro.
6109 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6110 and printf_unfiltered. Use phex to format values.
6111
6112 2014-06-18 Gary Benson <gbenson@redhat.com>
6113
6114 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6115 Make const.
6116
6117 2014-06-18 Gary Benson <gbenson@redhat.com>
6118
6119 * i386-nat.c: Comment changes.
6120
6121 2014-06-18 Gary Benson <gbenson@redhat.com>
6122
6123 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6124
6125 2014-06-18 Gary Benson <gbenson@redhat.com>
6126
6127 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6128 (i386_insert_aligned_watchpoint): Likewise.
6129 (i386_remove_aligned_watchpoint): Likewise.
6130 (i386_handle_nonaligned_watchpoint): Likewise.
6131
6132 2014-06-18 Gary Benson <gbenson@redhat.com>
6133
6134 * i386-nat.c: Whitespace changes.
6135
6136 2014-06-17 Samuel Bronson <naesten@gmail.com>
6137
6138 * MAINTAINERS: Update Roland McGrath's email address.
6139 Thanks to Sergio Durigan Junior for pointing out that he left
6140 Red Hat a while ago, and giving me a current address.
6141
6142 2014-06-17 Tom Tromey <tromey@redhat.com>
6143
6144 * utils.h (savestring): Remove declaration.
6145
6146 2014-06-17 Tom Tromey <tromey@redhat.com>
6147
6148 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6149
6150 2014-06-16 Keith Seitz <keiths@redhat.com>
6151
6152 PR mi/15863
6153 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6154 to update the varobj if inferior_ptid is null_ptid.
6155
6156 2014-06-16 Tom Tromey <tromey@redhat.com>
6157
6158 * target.h (struct target_ops) <to_info_proc>: Make parameter
6159 const.
6160 (target_info_proc): Update.
6161 * target.c (target_info_proc): Make "args" const.
6162 * procfs.c (procfs_info_proc): Update.
6163 * linux-tdep.c (linux_info_proc): Update.
6164 (linux_core_info_proc_mappings): Make "args" const.
6165 (linux_core_info_proc): Update.
6166 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6167 * gdbarch.c: Rebuild.
6168 * gdbarch.h: Rebuild.
6169 * corelow.c (core_info_proc): Update.
6170
6171 2014-06-16 Tom Tromey <tromey@redhat.com>
6172
6173 * target.h (struct target_ops) <to_disconnect>: Make parameter
6174 const.
6175 (target_disconnect): Update.
6176 * target.c (target_disconnect): Make "args" const.
6177 * target-delegates.c: Rebuild.
6178 * remote.c (remote_disconnect): Update.
6179 * record.h (record_disconnect): Update.
6180 * record.c (record_disconnect): Update.
6181 * inf-child.c (inf_child_disconnect): Update.
6182
6183 2014-06-16 Tom Tromey <tromey@redhat.com>
6184
6185 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6186 * target.c (debug_to_rcmd, default_rcmd): Update.
6187 * target-delegates.c: Rebuild.
6188 * remote.c (remote_rcmd): Update.
6189 * monitor.c (monitor_rcmd): Update.
6190
6191 2014-06-16 Pedro Alves <palves@redhat.com>
6192
6193 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6194 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6195 have OBJF_SHARED set.
6196 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6197 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6198 instead of OBJF_USERLOADED.
6199 * objfiles.h (OBJF_SHARED): Update comment.
6200 (userloaded_objfile_contains_address_p): Rename to ...
6201 (shared_objfile_contains_address_p): ... this, and update
6202 comments.
6203 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6204 new objfile.
6205 (remove_symbol_file_command): Skip objfiles that don't have
6206 OBJF_SHARED set.
6207
6208 2014-06-16 Tom Tromey <tromey@redhat.com>
6209
6210 * minsyms.h (prim_record_minimal_symbol)
6211 (prim_record_minimal_symbol_and_info): Update comments.
6212
6213 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6214
6215 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6216 or --without-guile, according to how GDB was built.
6217
6218 2014-06-13 Tom Tromey <tromey@redhat.com>
6219
6220 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6221 to help_list.
6222 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6223 to help_list.
6224 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6225 help_list.
6226 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6227 help_list.Pass all_commands, not -1, to help_list.
6228 * cli/cli-dump.c (dump_command, append_command)
6229 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6230 (binary_dump_command, binary_append_command): Pass all_commands,
6231 not -1, to help_list.
6232 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6233 -1, to help_list.
6234 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6235 -1, to help_list.
6236 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6237 help_list.
6238 * top.c (set_history): Pass all_commands, not -1, to help_list.
6239 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6240 all_commands, not -1, to help_list.
6241 * symfile.c (overlay_command): Pass all_commands, not -1, to
6242 help_list.
6243 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6244 help_list.
6245 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6246 help_list.
6247 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6248 -1, to help_list.
6249 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6250 not -1, to help_list.
6251 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6252 not -1, to help_list.
6253 * maint.c (maintenance_command, maintenance_info_command)
6254 (maintenance_print_command, maintenance_set_cmd): Pass
6255 all_commands, not -1, to help_list.
6256 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6257 help_list.
6258 * language.c (set_check): Pass all_commands, not -1, to help_list.
6259 * infcmd.c (unset_command): Pass all_commands, not -1, to
6260 help_list.
6261 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6262 help_list.
6263 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6264 help_list.
6265 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6266 help_list.
6267 * breakpoint.c (save_command): Pass all_commands, not -1, to
6268 help_list.
6269 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6270 all_commands, not -1, to help_list.
6271
6272 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6273
6274 * regcache.c (struct register_to_invalidate): New structure.
6275 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6276 functions.
6277 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6278
6279 2014-06-12 Yao Qi <yao@codesourcery.com>
6280
6281 * varobj.c (varobj_get_num_children): Call
6282 varobj_is_dynamic_p.
6283 (varobj_list_children): Likewise.
6284 (varobj_update): Likewise. Update comments.
6285
6286 2014-06-12 Yao Qi <yao@codesourcery.com>
6287
6288 * varobj.c (varobj_pretty_printed_p): Rename to ...
6289 (varobj_is_dynamic_p): ... this. New function.
6290 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6291 (varobj_is_dynamic_p): Declare.
6292 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6293 (mi_print_value_p, varobj_update_one): Likewise.
6294
6295 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6296 Yao Qi <yao@codesourcery.com>
6297
6298 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6299 (varobj_get_iterator): Wrap up code for pretty-printer by
6300 "#if HAVE_PYTHON" and "#endif".
6301 (update_dynamic_varobj_children): Likewise.
6302
6303 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6304 Yao Qi <yao@codesourcery.com>
6305
6306 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6307 gdb_python_initialized is false. Move some code from varobj.c.
6308 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6309 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6310 (struct varobj_item): Moved to varobj-iter.h".
6311 (varobj_clear_saved_item): New function.
6312 (update_dynamic_varobj_children): Move python-related code to
6313 py-varobj.c.
6314 (free_variable): Call varobj_clear_saved_item and
6315 varobj_iter_delete.
6316
6317 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6318 Yao Qi <yao@codesourcery.com>
6319
6320 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6321 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6322 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6323 (py-varobj.o): New rule.
6324 * python/py-varobj.c: New file.
6325 * python/python-internal.h (py_varobj_get_iterator): Declare.
6326 * varobj-iter.h: New file.
6327 * varobj.c: Include "varobj-iter.h"
6328 (struct varobj) <child_iter>: Change its type from "PyObject *"
6329 to "struct varobj_iter *".
6330 <saved_item>: Likewise.
6331 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6332 [HAVE_PYTHON] (varobj_get_iterator): New function.
6333 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6334 python-specific code to python/py-varobj.c.
6335 (install_visualizer): Call varobj_iter_delete instead of
6336 Py_XDECREF.
6337 * varobj.h (varobj_ensure_python_env): Declare.
6338
6339 2014-06-12 Yao Qi <yao@codesourcery.com>
6340
6341 * varobj.c (struct varobj_item): New structure.
6342 (create_child_with_value): Update declaration.
6343 (varobj_add_child): Replace arguments 'name' and 'value' with
6344 'item'. All callers updated.
6345 (install_dynamic_child): Likewise.
6346 (update_dynamic_varobj_children): Likewise.
6347 (varobj_add_child): Likewise.
6348 (create_child_with_value): Likewise.
6349
6350 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6351
6352 * NEWS: Create a new section for the next release branch.
6353 Rename the section of the current branch, now that it has
6354 been cut.
6355
6356 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6357
6358 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6359 * version.in: Bump version to 7.8.50.DATE-cvs.
6360
6361 2014-06-11 Pedro Alves <palves@redhat.com>
6362
6363 PR remote/17028
6364 * ser-mingw.c (net_windows_socket_check_pending): New function.
6365 (net_windows_select_thread): Ignore spurious wakeups. Use
6366 net_windows_socket_check_pending.
6367 (net_windows_wait_handle): Check for pending events with
6368 ioctlsocket, through net_windows_socket_check_pending, instead of
6369 checking the socket's event.
6370
6371 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6372
6373 * python/python-internal.h (gdb_PyObject_GetAttrString)
6374 (gdb_PyObject_HasAttrString): New inline function definitions.
6375 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6376 char * of the second argument to PyObject_GetAttrString.
6377
6378 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6379
6380 * serial.c (serial_write): Fix index of character to be printed
6381 in call to serial_logchar when serial debug traces are enabled.
6382
6383 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6384
6385 * gdbtypes (resolve_dynamic_range): Add function description.
6386
6387 2014-06-09 Pedro Alves <palves@redhat.com>
6388
6389 * linux-nat.c (linux_child_follow_fork): Initialize status with
6390 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6391 inner block. Only pass the signal to PTRACE_DETACH if in pass
6392 state.
6393
6394 2014-06-09 Gary Benson <gbenson@redhat.com>
6395
6396 * common/signals.c (gdb_signal_from_host): Reorder to separate
6397 the always-available ANSI-standard signals from the signals that
6398 require checking.
6399 (do_gdb_signal_to_host): Likewise.
6400 * proc-events.c (signal_table): Likewise.
6401
6402 2014-06-08 Hui Zhu <hui@codesourcery.com>
6403
6404 * common/linux-ptrace.c (linux_disable_event_reporting): New
6405 function.
6406 * common/linux-ptrace.h (linux_disable_event_reporting): New
6407 declaration.
6408 * linux-nat.c (linux_child_follow_fork): Do a single step before
6409 detach.
6410
6411 2014-06-07 Keith Seitz <keiths@redhat.com>
6412
6413 Revert:
6414 PR c++/16253
6415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6416 from symbol_matches_domain in symtab.c. All local callers
6417 of symbol_matches_domain updated.
6418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6419 search STRUCT_DOMAIN.
6420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6421 independently. standard_lookup will do that automatically.
6422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6424 (cp_lookup_symbol_in_namespace): Likewise.
6425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6427 may return a STRUCT_DOMAIN match.
6428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6429 * cp-support.c: Include language.h.
6430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6431 VAR_DOMAIN.
6432 * psymtab.c (match_partial_symbol): Compare the requested
6433 domain with the symbol's domain directly.
6434 (lookup_partial_symbol): Likewise.
6435 * symtab.c (lookup_symbol_in_language): Explain when/why
6436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6438 appropriate languages.
6439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6440 and moved to ada-lang.c
6441 (lookup_block_symbol): Explain that this function only returns
6442 symbol matching the requested DOMAIN.
6443 Compare the requested domain with the symbol's domain directly.
6444 (iterate_over_symbols): Compare the requested domain with the
6445 symbol's domain directly.
6446 * symtab.h (symbol_matches_domain): Remove.
6447
6448 2014-06-06 Doug Evans <xdje42@gmail.com>
6449
6450 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6451 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6452 (gdbscm_guile_version_is_at_least): Declare.
6453 (gdbscm_scm_string_to_int): Declare.
6454 * guile/guile.c (gdbscm_guile_major_version): New global.
6455 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6456 (guile_datadir): New static global.
6457 (gdbscm_guile_data_directory): New function.
6458 (initialize_scheme_side): Update.
6459 (misc_guile_functions): Add guile-data-directory.
6460 (initialize_gdb_module): Fetch guile version number.
6461 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6462 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6463 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6464 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6465 comments.
6466 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6467 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6468 * guile/scm-value.c (gdbscm_value_to_string): Only call
6469 scm_port_conversion_strategy if Guile version >= 2.0.6.
6470
6471 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6472
6473 * main.c (print_gdb_help): Add -q and --silent.
6474
6475 2014-06-06 Gary Benson <gbenson@redhat.com>
6476
6477 * common/signals.c: Remove preprocessor conditionals for
6478 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6479 SIGSEGV and SIGTERM.
6480 * proc-events.c: Likewise.
6481
6482 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6483
6484 * symfile.c (symfile_free_objfile): Remove restriction to
6485 OBJF_USERLOADED.
6486 * symfile-mem.c (symbol_file_add_from_memory): Call
6487 add_target_sections_of_objfile.
6488
6489 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6490
6491 * guile/scm-value.c (gdbscm_history_append_x): Use
6492 'vlscm_get_value_smob_arg_unsafe' instead of
6493 'vlscm_scm_to_value'.
6494
6495 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6496
6497 PR mi/15806
6498 * utils.c (printchar): Don't escape at all if quoter is NUL.
6499 Update function documentation to clarify effect of parameter
6500 QUOTER.
6501 * remote.c (escape_buffer): Pass '\\' as the quoter to
6502 fputstrn_unfiltered.
6503 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6504 generate the output.
6505 (mi_solib_unloaded): Same.
6506
6507 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6508
6509 * development.sh: Delete.
6510 * Makefile.in (config.status): Adjust dependency on development.sh.
6511 * configure.ac: Adjust development.sh source call.
6512 * configure: Regenerate.
6513
6514 2014-06-04 Doug Evans <xdje42@gmail.com>
6515
6516 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6517 is_scheme_bkpt, spec.
6518 (bpscm_make_breakpoint_smob): Initialize new members.
6519 (gdbscm_create_breakpoint_x): Split into two ...
6520 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6521 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6522 (scheme_function breakpoint_functions): Update.
6523 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6524 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6525 register-breakpoint!.
6526
6527 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6528
6529 PR server/17023
6530 * mem-break.c (z_type_supported): Return zero if
6531 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6532
6533 2014-06-04 Tom Tromey <tromey@redhat.com>
6534
6535 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6536 value_from_contents_and_address_unresolved.
6537 (ada_template_to_fixed_record_type_1): Likewise.
6538 (ada_which_variant_applies): Likewise.
6539 * value.h (value_from_contents_and_address_unresolved): Declare.
6540 * value.c (value_from_contents_and_address_unresolved): New
6541 function.
6542 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6543 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6544 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6545
6546 2014-06-04 Tom Tromey <tromey@redhat.com>
6547
6548 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6549
6550 2014-06-04 Tom Tromey <tromey@redhat.com>
6551
6552 * procfs.c (procfs_attach): Make "args" const.
6553 * windows-nat.c (windows_attach): Make "args" const.
6554 * nto-procfs.c (procfs_attach): Make "args" const.
6555 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6556 * go32-nat.c (go32_attach): Make "args" const.
6557 * gnu-nat.c (gnu_attach): Make "args" const.
6558 * darwin-nat.c (darwin_attach): Make "args" const.
6559 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6560 * linux-nat.c (linux_nat_attach): Make "args" const.
6561 * remote.c (extended_remote_attach_1, extended_remote_attach):
6562 Make "args" const.
6563 * target.h (struct target_ops) <to_attach>: Make "args" const.
6564 (find_default_attach): Likewise.
6565 * utils.c (parse_pid_to_attach): Make "args" const.
6566 * utils.h (parse_pid_to_attach): Update.
6567
6568 2014-06-04 Tom Tromey <tromey@redhat.com>
6569
6570 * target-delegates.c: Rebuild.
6571 * target.c (default_thread_address_space): New function.
6572 (target_thread_address_space): Simplify.
6573 * target.h (struct target_ops) <to_thread_address_space>: Add
6574 TARGET_DEFAULT_FUNC.
6575
6576 2014-06-04 Doug Evans <xdje42@gmail.com>
6577
6578 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6579
6580 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6581
6582 * record-btrace.c: Include event-loop.h and inf-loop.h.
6583 (record_btrace_resume_exec_dir)
6584 (record_btrace_async_inferior_event_handler)
6585 (record_btrace_handle_async_inferior_event): New.
6586 (record_btrace_open): Create async event handler.
6587 (record_btrace_close): Delete async event handler.
6588 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6589 Mark async event handler.
6590 (record_btrace_execution_direction): New.
6591 (init_record_btrace_ops): Initialize to_execution_direction.
6592
6593 2014-06-03 Doug Evans <xdje42@gmail.com>
6594
6595 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6596 (gdbscm_make_parameter): Ditto.
6597
6598 2014-06-03 Doug Evans <dje@google.com>
6599
6600 * exec.c (exec_close_1): Call clear_section_table instead of
6601 resize_section_table.
6602 (clear_section_table): New function.
6603 (resize_section_table): Make static. Rename arg num_added to
6604 adjustment.
6605 * exec.h (clear_section_table): Declare.
6606 (resize_section_table): Delete.
6607 * progspace.c (release_program_space): Call clear_section_table
6608 instead of resize_section_table.
6609
6610 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6611
6612 * NEWS (Python Scripting): Add entry about the new xmethods
6613 feature.
6614
6615 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6616
6617 * python/py-xmethods.c: New file.
6618 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6619 (objfpy_dealloc): XDECREF on the new xmethods field.
6620 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6621 field.
6622 (objfpy_get_xmethods): New function.
6623 (objfile_getset): New entry 'xmethods'.
6624 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6625 (pspy_dealloc): XDECREF on the new xmethods field.
6626 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6627 field.
6628 (pspy_get_xmethods): New function.
6629 (pspace_getset): New entry 'xmethods'.
6630 * python/python-internal.h: Add declarations for new functions.
6631 * python/python.c (_initialize_python): Invoke
6632 gdbpy_initialize_xmethods.
6633 * python/lib/gdb/__init__.py (xmethods): New
6634 attribute.
6635 * python/lib/gdb/xmethod.py: New file.
6636 * python/lib/gdb/command/xmethods.py: New file.
6637
6638 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6639
6640 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6641 best match method returned by find_overload_match is an xmethod.
6642 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6643 the best matching operator returned by find_overload_match is an
6644 xmethod.
6645 * valops.c: #include "extension.h".
6646 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6647 Return void. The list of matching source methods is returned in
6648 "fn_list" and a vector of matching debug method workers is
6649 returned in "xm_worker_vec". Update all callers.
6650 (value_find_oload_method_list): Likewise.
6651 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6652 non-NULL, then the index of the best matching method in this
6653 vector is returned. Update all callers.
6654 (find_overload_match): Include xmethods while performing overload
6655 resolution.
6656
6657 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6658
6659 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6660 * extension-priv.h (struct extension_language_ops): Add the
6661 xmethod interface.
6662 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6663 get_matching_xmethod_workers, get_xmethod_argtypes,
6664 invoke_xmethod, free_xmethod_worker,
6665 free_xmethod_worker_vec): New functions.
6666 * extension.h: #include "common/vec.h".
6667 New function declarations.
6668 (struct xmethod_worker): New struct.
6669 (VEC (xmethod_worker_ptr)): New vector type.
6670 (xmethod_worker_ptr): New typedef.
6671 (xmethod_worker_vec): Likewise.
6672 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6673 builtin_type.
6674 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6675 (struct builtin_type): New field "xmethod".
6676 * valarith.c (value_ptradd): Assert that the value argument is not
6677 lval_xcallable.
6678 * valops.c (value_must_coerce_to_target): Return 0 for
6679 lval_xcallable values.
6680 * value.c (struct value): New field XM_WORKER in the field
6681 LOCATION.
6682 (value_address, value_raw_address): Return 0 for lval_xcallable
6683 values.
6684 (set_value_address): Assert that the value is not an
6685 lval_xcallable.
6686 (value_free): Free the associated xmethod worker when freeing
6687 lval_xcallable values.
6688 (set_value_component_location): Assert that the WHOLE value is not
6689 lval_xcallable.
6690 (value_of_xmethod, call_xmethod): New functions.
6691 * value.h: Declare "struct xmethod_worker".
6692 Declare new functions value_of_xmethod, call_xmethod.
6693
6694 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6695 Pedro Alves <palves@redhat.com>
6696
6697 PR breakpoints/17000
6698 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6699 New function, extracted from software_breakpoint_inserted_here_p.
6700 (software_breakpoint_inserted_here_p): Replace factored out code
6701 by call to find_non_raw_software_breakpoint_inserted_here.
6702 (bp_target_info_copy_insertion_state): New function.
6703 (bkpt_insert_location): Handle the case of a single-step
6704 breakpoint already inserted at the same address.
6705 (bkpt_remove_location): Handle the case of a single-step
6706 breakpoint still inserted at the same address.
6707 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6708 breakpoint already inserted at the same address.
6709 (deprecated_remove_raw_breakpoint): Handle the case of a
6710 non-raw breakpoint still inserted at the same address.
6711 (find_single_step_breakpoint): New function, extracted from
6712 single_step_breakpoint_inserted_here_p.
6713 (find_single_step_breakpoint): New function,
6714 factored out from single_step_breakpoint_inserted_here_p.
6715 (single_step_breakpoint_inserted_here_p): Reimplement.
6716
6717 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6718
6719 Pushed by Joel Brobecker <brobecker@adacore.com>
6720 * source.c (show_substitute_path_command): Fix display of matching
6721 substitution rules.
6722
6723 2014-06-03 Gary Benson <gbenson@redhat.com>
6724
6725 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6726
6727 2014-06-02 Doug Evans <xdje42@gmail.com>
6728
6729 Add parameter support for Guile.
6730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6731 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6732 (scm-param.o): New rule.
6733 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6734 (gdbscm_misc_error): Declare.
6735 (gdbscm_canonicalize_command_name): Declare.
6736 (gdbscm_scm_to_host_string): Declare.
6737 (gdbscm_scm_from_host_string): Declare.
6738 (gdbscm_initialize_parameters): Declare.
6739 * guile/guile.c (initialize_gdb_module): Call
6740 gdbscm_initialize_parameters.
6741 * guile/lib/gdb.scm: Export parameter symbols.
6742 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6743 cmdscm_canonicalize_name and made public. All callers updated.
6744 * guile/scm-exception.c (gdbscm_misc_error): New function.
6745 * guile/scm-param.c: New file.
6746 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6747 (gdbscm_scm_to_host_string): New function.
6748 (gdbscm_scm_from_host_string): New function.
6749 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6750
6751 2014-06-02 Doug Evans <xdje42@gmail.com>
6752
6753 Add command support for Guile.
6754 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6755 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6756 (scm-cmd.o): New rule.
6757 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6758 (gdbscm_user_error_p): Declare.
6759 (gdbscm_parse_command_name): Declare.
6760 (gdbscm_valid_command_class_p): Declare.
6761 (gdbscm_initialize_commands): Declare.
6762 * guile/guile.c (initialize_gdb_module): Call
6763 gdbscm_initialize_commands.
6764 * guile/lib/gdb.scm: Export command symbols.
6765 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6766 (throw-user-error): New function.
6767 * guile/scm-cmd.c: New file.
6768 * guile/scm-exception.c (user_error_symbol): New static global.
6769 (gdbscm_user_error_p): New function.
6770 (gdbscm_initialize_exceptions): Set user_error_symbol.
6771 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6772
6773 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6774
6775 * top.c (command_loop): Handle comments here...
6776 (command_line_input): ... not here.
6777
6778 2014-06-02 Doug Evans <xdje42@gmail.com>
6779
6780 Add progspace support for Guile.
6781 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6782 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6783 (scm-progspace.o): New rule.
6784 * guile/guile-internal.h (pspace_smob): New typedef.
6785 (psscm_pspace_smob_pretty_printers): Declare.
6786 (psscm_pspace_smob_from_pspace): Declare.
6787 (psscm_scm_from_pspace): Declare.
6788 * guile/guile.c (initialize_gdb_module): Call
6789 gdbscm_initialize_pspaces.
6790 * guile/lib/gdb.scm: Export progspace symbols.
6791 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6792 support.
6793 (append-pretty-printer!): Ditto.
6794 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6795 Implement.
6796 * guile/scm-progspace.c: New file.
6797
6798 2014-06-03 Alan Modra <amodra@gmail.com>
6799
6800 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6801 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6802
6803 2014-06-02 Doug Evans <dje@google.com>
6804
6805 Add support for skeletonless type units.
6806 * dwarf2read.c (struct dwarf2_per_objfile): New member
6807 n_allocated_type_units.
6808 (struct dwarf2_per_objfile) <tu_stats>: New member
6809 nr_all_type_units_reallocs.
6810 (create_signatured_type_table_from_index): Initialize
6811 n_allocated_type_units
6812 (create_all_type_units): Ditto.
6813 (add_type_unit): Move up in file. New arg slot.
6814 All callers updated. Increase space for all_type_units more
6815 efficiently.
6816 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6817 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6818 (lookup_dwp_signatured_type): Ditto.
6819 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6820 All callers updated.
6821 (build_type_psymtabs_1): Leave type_unit_groups as
6822 NULL if no TUs present.
6823 (print_tu_stats): New function.
6824 (process_skeletonless_type_unit): New function.
6825 (process_dwo_file_for_skeletonless_type_units): New
6826 function.
6827 (process_skeletonless_type_units): New function.
6828 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6829 Call print tu_stats if debugging enabled.
6830
6831 2014-06-02 Pedro Alves <palves@redhat.com>
6832
6833 * breakpoint.c (build_target_command_list): Don't build a command
6834 list if we have any duplicate location that isn't a dprintf.
6835
6836 2014-06-02 Pedro Alves <palves@redhat.com>
6837
6838 * breakpoint.c (dprintf_breakpoint_hit): New function.
6839 (initialize_breakpoint_ops): Install it as dprintf's
6840 breakpoint_hit method.
6841
6842 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6843
6844 * source.c (substitute_path_rule_matches): Simplify using
6845 filename_ncmp instead of FILENAME_CMP.
6846
6847 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6848
6849 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6850
6851 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6852
6853 * configure.ac: When Guile is available, check for the
6854 availability of 'scm_new_smob'.
6855 * configure, config.h.in: Regenerate.
6856 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6857 function.
6858
6859 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6860
6861 * frame.c (struct frame_info): Add stop_string field.
6862 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6863 (get_prev_frame_always): Old content moved into
6864 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6865 TRY_CATCH, handle MEMORY_ERROR exceptions.
6866 (frame_stop_reason_string): New function definition.
6867 * frame.h (unwind_stop_reason_to_string): Extend comment to
6868 mention frame_stop_reason_string.
6869 (frame_stop_reason_string): New function declaration.
6870 * stack.c (frame_info): Switch to frame_stop_reason_string.
6871 (backtrace_command_1): Switch to frame_stop_reason_string.
6872 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6873 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6874 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6875
6876 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6877
6878 * frame.c (frame_stop_reason_string): Rename to ...
6879 (unwind_stop_reason_to_string): this.
6880 * frame.h (frame_stop_reason_string): Rename to ...
6881 (unwind_stop_reason_to_string): this.
6882 * stack.c (frame_info): Update call to frame_stop_reason_string.
6883 (backtrace_command_1): Likewise.
6884 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6885 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6886
6887 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6888
6889 * frame.c (remove_prev_frame): New function.
6890 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6891 remove_prev_frame.
6892
6893 2014-05-29 Pedro Alves <palves@redhat.com>
6894
6895 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6896 and make it const. When a single-step decays to a continue,
6897 clear 'step', not 'hw_step'. Pass whether the caller wanted
6898 to step to user_visible_resume_ptid, not what we ask the
6899 target to do.
6900
6901 2014-05-29 Pedro Alves <palves@redhat.com>
6902
6903 * infrun.c (process_event_stop_test, handle_step_into_function)
6904 (handle_step_into_function_backward): Adjust.
6905 Don't set the even thread's stop_step and call stop_waiting before
6906 calling end_stepping_range. Instead do that ...
6907 (end_stepping_range): ... here. Take an ecs pointer parameter.
6908
6909 2014-05-29 Pedro Alves <palves@redhat.com>
6910
6911 * infrun.c (stop_stepping): Rename to ...
6912 (stop_waiting): ... this.
6913 (proceed): Update comment.
6914 (process_event_stop_test, handle_inferior_event)
6915 (handle_signal_stop, handle_step_into_function)
6916 (handle_step_into_function_backward): Update.
6917
6918 2014-05-29 Pedro Alves <palves@redhat.com>
6919
6920 * infcall.c (run_inferior_call): Don't check whether the current
6921 thread is running after the proceed call.
6922
6923 2014-05-29 Pedro Alves <palves@redhat.com>
6924 Tom Tromey <tromey@redhat.com>
6925
6926 * NEWS: Mention "maint set target-async", "set mi-async", and that
6927 background execution commands are now always available.
6928 * target.h (target_async_permitted): Update comment.
6929 * target.c (target_async_permitted, target_async_permitted_1):
6930 Default to 1.
6931 (set_target_async_command): Rename to ...
6932 (maint_set_target_async_command): ... this.
6933 (show_target_async_command): Rename to ...
6934 (maint_show_target_async_command): ... this.
6935 (_initialize_target): Adjust.
6936 * infcmd.c (prepare_execution_command): Make extern.
6937 * inferior.h (prepare_execution_command): Declare.
6938 * infrun.c (set_observer_mode): Leave target async alone.
6939 * mi/mi-interp.c (mi_interpreter_init): Install
6940 mi_on_sync_execution_done as sync_execution_done observer.
6941 (mi_on_sync_execution_done): New function.
6942 (mi_execute_command_input_handler): Don't print the prompt if we
6943 just started a synchronous command with an async target.
6944 (mi_on_resume): Check sync_execution before printing prompt.
6945 * mi/mi-main.h (mi_async_p): Declare.
6946 * mi/mi-main.c: Include gdbcmd.h.
6947 (mi_async_p): New function.
6948 (mi_async, mi_async_1): New globals.
6949 (set_mi_async_command, show_mi_async_command, mi_async): New
6950 functions.
6951 (exec_continue): Call prepare_execution_command.
6952 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6953 (mi_execute_async_cli_command): Use mi_async_p.
6954 (_initialize_mi_main): Install "set mi-async". Make
6955 "target-async" a deprecated alias.
6956
6957 2014-05-29 Pedro Alves <palves@redhat.com>
6958
6959 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6960 (_initialize_cli_interp): Adjust.
6961 * event-loop.c: Include "observer.h".
6962 (start_event_loop): Notify 'command_error' observers instead of
6963 calling display_gdb_prompt. Remove FIXME comment.
6964 * event-top.c (display_gdb_prompt): Remove call into the
6965 interpreters.
6966 * inf-loop.c: Include "observer.h".
6967 (inferior_event_handler): Notify 'command_error' observers instead
6968 of calling display_gdb_prompt.
6969 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6970 observers instead of calling display_gdb_prompt.
6971 * interps.c (interp_set): Don't call display_gdb_prompt.
6972 (current_interp_display_prompt_p): Delete.
6973 * interps.h (interp_prompt_p): Delete declaration.
6974 (interp_prompt_p_ftype): Delete.
6975 (struct interp_procs) <prompt_proc_p>: Delete field.
6976 (current_interp_display_prompt_p): Delete declaration.
6977 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6978 (_initialize_mi_interp): Adjust.
6979 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6980 'command_error' observers.
6981 (tui_on_sync_execution_done, tui_on_command_error): New
6982 functions.
6983 (tui_display_prompt_p): Delete.
6984 (_initialize_tui_interp): Adjust.
6985
6986 2014-05-29 Pedro Alves <palves@redhat.com>
6987
6988 PR gdb/13860
6989 * cli/cli-interp.c: Include infrun.h and observer.h.
6990 (cli_uiout, cli_interp): New globals.
6991 (cli_on_signal_received, cli_on_end_stepping_range)
6992 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6993 functions.
6994 (cli_interpreter_init): Install them as 'end_stepping_range',
6995 'signal_received' 'signal_exited', 'exited' and 'no_history'
6996 observers.
6997 (_initialize_cli_interp): Remove cli_interp local.
6998 * infrun.c (handle_inferior_event): Call the several stop reason
6999 observers instead of printing the stop reason directly.
7000 (end_stepping_range): New function.
7001 (print_end_stepping_range_reason, print_signal_exited_reason)
7002 (print_exited_reason, print_signal_received_reason)
7003 (print_no_history_reason): Make static, and add an uiout
7004 parameter. Print to that instead of to CURRENT_UIOUT.
7005 * infrun.h (print_end_stepping_range_reason)
7006 (print_signal_exited_reason, print_exited_reason)
7007 (print_signal_received_reason print_no_history_reason): New
7008 declarations.
7009 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7010 'mi_uiout'.
7011 <cli_uiout>: New field.
7012 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7013 uiout for CLI output. Install 'signal_received',
7014 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7015 observers.
7016 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7017 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7018 (mi_on_no_history): New functions.
7019 (ui_out_free_cleanup): Delete function.
7020 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7021 instead use the one already stored in the MI interpreter data.
7022 (mi_ui_out): Adjust.
7023 * tui/tui-interp.c: Include infrun.h and observer.h.
7024 (tui_interp): New global.
7025 (tui_on_signal_received, tui_on_end_stepping_range)
7026 (tui_on_signal_exited, tui_on_exited)
7027 (tui_on_no_history): New functions.
7028 (tui_init): Install them as 'end_stepping_range',
7029 'signal_received' 'signal_exited', 'exited' and 'no_history'
7030 observers.
7031 (_initialize_tui_interp): Delete tui_interp local.
7032
7033 2014-05-29 Pedro Alves <palves@redhat.com>
7034
7035 PR gdb/15713
7036 * linux-nat.c (linux_nat_resume_callback): Rename the second
7037 parameter to 'except'. Skip LP if it points to EXCEPT.
7038 (linux_nat_resume): Don't mark the event lwp as not stopped
7039 before resuming sibling lwps. Instead ask
7040 linux_nat_resume_callback to skip the event lwp. Mark it as not
7041 stopped after actually resuming it.
7042 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7043 resuming it.
7044 (wait_lwp): Mark the lwp as stopped here.
7045 (stop_wait_callback): Mark the lwp as not stopped right after
7046 resuming it. Don't mark lwps as stopped here.
7047 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7048 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7049
7050 2014-05-29 Pedro Alves <palves@redhat.com>
7051
7052 PR PR15693
7053 * infrun.c (resume): Determine how much to resume depending on
7054 whether the caller wanted a step, not whether we can hardware step
7055 the target. Mark all threads that we intend to run as running,
7056 unless we're calling an inferior function.
7057 (normal_stop): If the thread is running an infcall, don't finish
7058 thread state.
7059 * target.c (target_resume): Don't mark threads as running here.
7060
7061 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7062
7063 * serial.c (_initialize_serial): Remove support for
7064 the "set remotebaud" and "show remotebaud" commands.
7065 * NEWS: Add entry documenting the removal of that command.
7066
7067 2014-05-28 Yao Qi <yao@codesourcery.com>
7068
7069 * charset.c: Fix typo in comments.
7070
7071 2014-05-27 Gary Benson <gbenson@redhat.com>
7072
7073 * utils.c (internal_vproblem): Prompt for a bug report.
7074
7075 2014-05-26 Andy Wingo <wingo@igalia.com>
7076
7077 * guile/scm-arch.c (arscm_mark_arch_smob):
7078 * guile/scm-block.c (bkscm_mark_block_smob)
7079 (bkscm_mark_block_syms_progress_smob):
7080 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7081 * guile/scm-exception.c (exscm_mark_exception_smob):
7082 * guile/scm-frame.c (frscm_mark_frame_smob):
7083 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7084 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7085 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7086 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7087 (ppscm_mark_pretty_printer_worker_smob):
7088 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7089 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7090 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7091 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7092 mark functions.
7093 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7094 function.
7095
7096 2014-05-26 Andy Wingo <wingo@igalia.com>
7097 Doug Evans <xdje42@gmail.com>
7098
7099 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7100 empty_base_class. All uses updated.
7101 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7102 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7103 Adapt all callers.
7104 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7105 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7106 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7107 (gdbscm_gsmob_has_property_p, add_property_name)
7108 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7109 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7110 (gdb-object-has-property?, gdb-object-properties): Remove.
7111 (gdb-object-kind): Renamed from gsmob-kind.
7112
7113 2014-05-26 Andy Wingo <wingo@igalia.com>
7114
7115 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7116 * configure: Regenerate.
7117
7118 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7119
7120 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7121
7122 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7123
7124 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7125 (replay_memory_access_read_only, replay_memory_access_read_write)
7126 (replay_memory_access_types, replay_memory_access)
7127 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7128 (cmd_set_record_btrace, cmd_show_record_btrace)
7129 (cmd_show_replay_memory_access): New.
7130 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7131 (record_btrace_remove_breakpoint): Replace
7132 record_btrace_allow_memory_access with replay_memory_access.
7133 (_initialize_record_btrace): Add commands.
7134 * NEWS: Announce it.
7135
7136 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7137
7138 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7139
7140 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7141
7142 * MAINTAINERS (Write After Approval): Move self back from
7143 paper trail.
7144
7145 2014-05-22 Pedro Alves <palves@redhat.com>
7146
7147 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7148 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7149 (disable_randomization, enum exec_direction_kind)
7150 (execution_direction, stop_registers, start_remote)
7151 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7152 (wait_for_inferior, normal_stop, get_last_target_status)
7153 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7154 (insert_step_resume_breakpoint_at_sal)
7155 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7156 (set_step_info, print_stop_event, signal_stop_state)
7157 (signal_print_state, signal_pass_state, signal_stop_update)
7158 (signal_print_update, signal_pass_update)
7159 (update_signals_program_target, clear_exit_convenience_vars)
7160 (displaced_step_dump_bytes, update_observer_mode)
7161 (signal_catch_update, gdb_signal_from_command): Move
7162 declarations ...
7163 * infrun.h: ... to this new file.
7164 * amd64-tdep.c: Include infrun.h.
7165 * annotate.c: Include infrun.h.
7166 * arch-utils.c: Include infrun.h.
7167 * arm-linux-tdep.c: Include infrun.h.
7168 * arm-tdep.c: Include infrun.h.
7169 * break-catch-sig.c: Include infrun.h.
7170 * breakpoint.c: Include infrun.h.
7171 * common/agent.c: Include infrun.h instead of inferior.h.
7172 * corelow.c: Include infrun.h.
7173 * event-top.c: Include infrun.h.
7174 * go32-nat.c: Include infrun.h.
7175 * i386-tdep.c: Include infrun.h.
7176 * inf-loop.c: Include infrun.h.
7177 * infcall.c: Include infrun.h.
7178 * infcmd.c: Include infrun.h.
7179 * infrun.c: Include infrun.h.
7180 * linux-fork.c: Include infrun.h.
7181 * linux-nat.c: Include infrun.h.
7182 * linux-thread-db.c: Include infrun.h.
7183 * monitor.c: Include infrun.h.
7184 * nto-tdep.c: Include infrun.h.
7185 * procfs.c: Include infrun.h.
7186 * record-btrace.c: Include infrun.h.
7187 * record-full.c: Include infrun.h.
7188 * remote-m32r-sdi.c: Include infrun.h.
7189 * remote-mips.c: Include infrun.h.
7190 * remote-notif.c: Include infrun.h.
7191 * remote-sim.c: Include infrun.h.
7192 * remote.c: Include infrun.h.
7193 * reverse.c: Include infrun.h.
7194 * rs6000-tdep.c: Include infrun.h.
7195 * s390-linux-tdep.c: Include infrun.h.
7196 * solib-irix.c: Include infrun.h.
7197 * solib-osf.c: Include infrun.h.
7198 * solib-svr4.c: Include infrun.h.
7199 * target.c: Include infrun.h.
7200 * top.c: Include infrun.h.
7201 * windows-nat.c: Include infrun.h.
7202 * mi/mi-interp.c: Include infrun.h.
7203 * mi/mi-main.c: Include infrun.h.
7204 * python/py-threadevent.c: Include infrun.h.
7205
7206 2014-05-22 Pedro Alves <palves@redhat.com>
7207
7208 * infrun.c (handle_inferior_event): Store the exit code for
7209 --return-child-result here, instead of ...
7210 (print_exited_reason): ... here.
7211
7212 2014-05-21 Pedro Alves <palves@redhat.com>
7213
7214 PR gdb/13860
7215 * gdbthread.h (struct thread_control_state): New field
7216 `command_interp'.
7217 * infrun.c (follow_fork): Copy the new thread control field to the
7218 child fork thread.
7219 (clear_proceed_status_thread): Clear the new thread control field.
7220 (proceed): Set the new thread control field.
7221 * interps.h (command_interp): Declare.
7222 * interps.c (command_interpreter): New global.
7223 (command_interp): New function.
7224 (interp_exec): Set `command_interpreter' while here.
7225 * cli-out.c (cli_uiout_dtor): New function.
7226 (cli_ui_out_impl): Install it.
7227 * mi/mi-interp.c: Include cli-out.h.
7228 (mi_cmd_interpreter_exec): Add comment.
7229 (restore_current_uiout_cleanup): New function.
7230 (ui_out_free_cleanup): New function.
7231 (mi_on_normal_stop): If finishing an execution command started by
7232 a CLI command, or any kind of breakpoint-like event triggered,
7233 print the stop event to the output (CLI) stream.
7234 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7235
7236 2014-05-21 Pedro Alves <palves@redhat.com>
7237
7238 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7239 current source line having changed.
7240 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7241 * infrun.c (normal_stop): Adjust call to
7242 set_current_sal_from_frame.
7243 * source.c (clear_lines_listed_range): New function.
7244 (set_current_source_symtab_and_line, identify_source_line): Clear
7245 the lines listed range.
7246 (line_info): Handle the first "info line" after the current source
7247 line having changed.
7248 * stack.c (print_stack_frame): Remove center handling.
7249 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7250 center sal.line.
7251
7252 2014-05-21 Pedro Alves <palves@redhat.com>
7253
7254 * inf-child.c (inf_child_mourn_inferior): New function.
7255 * inf-child.h (inf_child_mourn_inferior): New declaration.
7256 * darwin-nat.c (darwin_mourn_inferior): Use
7257 inf_child_mourn_inferior.
7258 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7259 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7260 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7261 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7262 * windows-nat.c (windows_mourn_inferior): Likewise.
7263
7264 2014-05-21 Doug Evans <xdje42@gmail.com>
7265
7266 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7267
7268 2014-05-21 Doug Evans <xdje42@gmail.com>
7269
7270 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7271 (gdbscm_out_of_range_error): Ditto.
7272 (gdbscm_memory_error): Ditto.
7273 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7274 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7275 (gdbscm_out_of_range_error): Update.
7276 (gdbscm_memory_error): Update.
7277 (gdbscm_scm_to_target_string_unsafe): Delete.
7278
7279 2014-05-21 Pedro Alves <palves@redhat.com>
7280
7281 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7282 globals.
7283 (inf_child_open_target): New function.
7284 (inf_child_open): Use inf_child_open_target to push the target
7285 instead of erroring out.
7286 (inf_child_disconnect, inf_child_close)
7287 (inf_child_maybe_unpush_target): New functions.
7288 (inf_child_target): Install inf_child_disconnect and
7289 inf_child_close. Store a pointer to the returned object.
7290 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7291 declarations.
7292 * target.c (auto_connect_native_target): New global.
7293 (show_default_run_target): New function.
7294 (find_default_run_target): Return NULL if automatically connecting
7295 to the native target is disabled.
7296 (_initialize_target): Install set/show auto-connect-native-target.
7297 * NEWS: Mention "set auto-connect-native-target", and "target
7298 native".
7299 * linux-nat.c (super_close): New global.
7300 (linux_nat_close): Call super_close.
7301 (linux_nat_add_target): Store a pointer to the base class's
7302 to_close method.
7303 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7304 inf_child_maybe_unpush.
7305 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7306 already pushed.
7307 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7308 the inferior. Use inf_child_maybe_unpush_target.
7309 (inf_ttrace_attach): Don't push the target if it is already
7310 pushed.
7311 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7312 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7313 after mourning the inferior. Use inf_child_maybe_unpush_target.
7314 (darwin_attach_pid): Don't push the target if it is already
7315 pushed.
7316 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7317 mourning the inferior. Use inf_child_maybe_unpush_target.
7318 (gnu_detach): Use inf_child_maybe_unpush_target.
7319 * go32-nat.c (go32_create_inferior): Don't push the target if it
7320 is already pushed.
7321 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7322 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7323 (procfs_open): Rename to ...
7324 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7325 comments. Can target_preopen before changing node. Call
7326 inf_child_open_target to push the target explicitly.
7327 (procfs_attach): Don't push the target if it is already pushed.
7328 (procfs_detach): Use inf_child_maybe_unpush_target.
7329 (procfs_create_inferior): Don't push the target if it is already
7330 pushed.
7331 (nto_native_ops): New global.
7332 (procfs_open): Reimplement.
7333 (procfs_native_open): New function.
7334 (init_procfs_targets): Install procfs_native_open as to_open of
7335 "target native". Store a pointer to the "native" target in
7336 nto_native_ops.
7337 * procfs.c (procfs_attach): Don't push the target if it is already
7338 pushed.
7339 (procfs_detach): Use inf_child_maybe_unpush_target.
7340 (procfs_mourn_inferior): Only unpush the target after mourning the
7341 inferior. Use inf_child_maybe_unpush_target.
7342 (procfs_init_inferior): Don't push the target if it is already
7343 pushed.
7344 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7345 if it is already pushed.
7346
7347 2014-05-21 Pedro Alves <palves@redhat.com>
7348
7349 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7350 and "procfs" targets are now called "native" instead.
7351
7352 2014-05-21 Pedro Alves <palves@redhat.com>
7353
7354 * go32-nat.c (go32_open): Delete.
7355 (go32_target): Don't override the to_open method.
7356
7357 2014-05-21 Pedro Alves <palves@redhat.com>
7358
7359 * nto-procfs.c (procfs_can_run): New function.
7360 (nto_procfs_ops): New global.
7361 (init_procfs_targets): New, based on procfs_target. Install
7362 "target native" in addition to "target procfs".
7363 (_initialize_procfs): Call init_procfs_targets instead of adding
7364 the target here.
7365
7366 2014-05-21 Pedro Alves <palves@redhat.com>
7367
7368 * windows-nat.c (windows_target): Don't override to_shortname,
7369 to_longname or to_doc.
7370
7371 2014-05-21 Pedro Alves <palves@redhat.com>
7372
7373 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7374 to_doc.
7375
7376 2014-05-21 Pedro Alves <palves@redhat.com>
7377
7378 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7379 to_shortname, to_longname or to_doc.
7380
7381 2014-05-21 Pedro Alves <palves@redhat.com>
7382
7383 * go32-nat.c (go32_target): Don't override to_shortname,
7384 to_longname or to_doc.
7385
7386 2014-05-21 Pedro Alves <palves@redhat.com>
7387
7388 * inf-child.c (inf_child_open): Remove mention of "child".
7389 (inf_child_target): Rename target to "native" instead of "child".
7390
7391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7392
7393 * Makefile.in (SFILES): Delete "regset.c".
7394 (COMMON_OBS): Delete "regset.o".
7395 * regset.c: Remove.
7396 * regset.h (regset_alloc): Delete prototype.
7397
7398 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7399
7400 * sparc-linux-tdep.c (sparc32_linux_gregset)
7401 (sparc32_linux_fpregset): New static regset structures.
7402 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7403 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7404 'fpregset' fields.
7405 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7406 (sparc64_linux_fpregset): New static regset structures.
7407 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7408 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7409 New static regset structures.
7410 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7411 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7412 New static regset structures.
7413 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7414 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7415 New static regset structures.
7416 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7417 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7418 New static regset structures.
7419 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7420
7421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7422
7423 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7424 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7425 register maps ("regmaps") from "*regset" to "*regmap". Do this
7426 for all regmap types and variables.
7427 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7428 (sparc32_linux_supply_core_gregset)
7429 (sparc32_linux_collect_core_gregset)
7430 (sparc32_linux_supply_core_fpregset)
7431 (sparc32_linux_collect_core_fpregset): Likewise.
7432 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7433 (sparc_gregmap, sparc_fpregmap): ... these.
7434 (sparc_supply_gregset, sparc_collect_gregset)
7435 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7436 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7437 (_initialize_sparc_nat): Rename regmaps.
7438 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7439 (sparc_gregmap, sparc_fpregmap): ... these.
7440 (sparc_supply_gregset, sparc_collect_gregset)
7441 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7442 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7443 Rename macros to...
7444 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7445 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7446 Likewise.
7447 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7448 Rename to...
7449 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7450 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7451 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7452 regmaps.
7453 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7454 (sparc32_bsd_fpregset): Rename to...
7455 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7456 (sparc32_bsd_fpregmap): ... these.
7457 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7458 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7459 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7460 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7461 (struct sparc_gregmap, struct sparc_fpregmap)
7462 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7463 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7464 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7465 (sparc32_supply_regset, sparc32_collect_gregset)
7466 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7467 prototypes.
7468 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7469 (sparc64_linux_ptrace_gregmap): ... this.
7470 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7471 (_initialize_sparc64_linux_nat): Rename regmaps.
7472 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7473 (sparc64_linux_core_gregmap): ... this.
7474 (sparc64_linux_supply_core_gregset)
7475 (sparc64_linux_collect_core_gregset)
7476 (sparc64_linux_supply_core_fpregset)
7477 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7478 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7479 (sparc64_sol2_fpregset): Rename to...
7480 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7481 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7482 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7483 regmaps.
7484 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7485 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7486 (sparc64_bsd_fpregset): Rename to...
7487 (struct sparc_gregmap, sparc64_sol2_gregmap)
7488 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7489 (sparc64_bsd_fpregmap): ... these.
7490 (sparc64_supply_gregset, sparc64_collect_gregset)
7491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7492 prototypes.
7493 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7494 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7495 (sparc64fbsd_gregmap): ... this.
7496 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7497 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7498 Rename regmaps.
7499 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7500 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7501 (sparc64nbsd_collect_fpregset): Likewise.
7502 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7503 (sparc64nbsd_gregmap): ... this.
7504 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7505 regmaps.
7506 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7507 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7508 (sparc64obsd_gregmap): ... this.
7509 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7510 regmaps.
7511 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7512 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7513 (sparc32nbsd_gregmap): ... this.
7514 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7515 regmaps.
7516
7517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7518
7519 * score-tdep.c (score7_linux_gregset): New static regset
7520 structure.
7521 (score7_linux_regset_from_core_section): Remove dynamic regset
7522 allocation.
7523 (score_gdbarch_init): Drop allocation of tdep structure.
7524 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7525
7526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7527
7528 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7529 regset structures.
7530 (am33_regset_from_core_section): Remove dynamic regset
7531 allocations.
7532
7533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7534
7535 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7536 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7537 structures.
7538 (mips_linux_regset_from_core_section): Remove dynamic regset
7539 allocations.
7540 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7541 'gregset64', 'fpregset', and 'fpregset64'.
7542 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7543 deleted tdep fields.
7544
7545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7546
7547 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7548 regset structures.
7549 (amd64_regset_from_core_section): Remove dynamic regset
7550 allocations.
7551 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7552 structure.
7553 (amd64obsd_regset_from_core_section): Remove dynamic regset
7554 allocation.
7555 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7556 Likewise.
7557 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7558 x86-common regset supply function.
7559 * i386-tdep.c (i386_collect_gregset): Make static.
7560 (i386_gregset): New global regset structure.
7561 (i386_fpregset, i386_xstateregset): New static regset structures.
7562 (i386_regset_from_core_section): Remove dynamic regset
7563 allocations.
7564 (i386_gdbarch_init): Remove initialization of tdep fields
7565 'gregset', 'fpregset', and 'xstateregset'.
7566 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7567 'fpregset', and 'xstateregset'.
7568 (i386_collect_gregset): Remove prototype.
7569 (i386_gregset): New declaration.
7570 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7571 structure.
7572 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7573 allocation.
7574
7575 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7578 (arm_linux_vfpregset): New static regset structures.
7579 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7580 regset structures.
7581 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7582 and 'vfpregset' fields.
7583
7584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7585
7586 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7587 (aarch64_linux_fpregset): New static regset structures.
7588 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7589 of regset structures.
7590 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7591 'fpregset' fields.
7592
7593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7594
7595 * regset.h (struct regset): Remove gdbarch field.
7596 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7597 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7598 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7599 Likewise.
7600 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7601 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7602 (ppc32_linux_vsxregset): Likewise.
7603 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7604 via the regcache instead of the regset.
7605 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7606 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7607 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7608 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7609 Likewise.
7610
7611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7612
7613 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7614 Constify structures.
7615 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7616 (alphanbsd_aout_gregset): Likewise.
7617 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7618 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7619 Likewise.
7620 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7621 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7622 Likewise.
7623 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7624 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7625 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7626 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7627 * m88k-tdep.c (m88k_gregset): Likewise.
7628 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7629 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7630 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7631 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7632 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7633 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7634 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7635 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7636 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7637 Likewise.
7638 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7639 * sh-tdep.h (sh_corefile_gregset): Likewise.
7640 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7641 * vax-tdep.c (vax_gregset): Likewise.
7642
7643 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7644
7645 Fix TLS access for -static -pthread.
7646 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7647 (try_thread_db_load_1): Initialize it.
7648 (thread_db_get_thread_local_address): Call it if LM is zero.
7649 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7650 * target.h (struct target_ops) (to_get_thread_local_address): Add
7651 load_module_addr comment.
7652
7653 2014-05-21 Pedro Alves <palves@redhat.com>
7654
7655 * dcache.c (dcache_read_memory_partial): If reading the cache line
7656 fails, fallback to reading just the memory the caller wanted.
7657
7658 2014-05-20 Doug Evans <dje@google.com>
7659
7660 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7661 instead of get_current_arch.
7662
7663 2014-05-20 Pedro Alves <palves@redhat.com>
7664
7665 * NEWS: Mention that compare-sections now works with all targets.
7666
7667 * remote.c (PACKET_qCRC): New enum value.
7668 (remote_verify_memory): Don't send qCRC if the target has no
7669 execution. Use packet_support/packet_ok. If the target doesn't
7670 support the qCRC packet, fallback to a deep memory copy.
7671 (compare_sections_command): Say "target image" instead of "remote
7672 executable".
7673 (_initialize_remote): Add PACKET_qCRC to the list of config
7674 packets that have no associated command. Extend comment.
7675 * target.c (simple_verify_memory, default_verify_memory): New
7676 function.
7677 * target.h (struct target_ops) <to_verify_memory>: Default to
7678 default_verify_memory.
7679 (simple_verify_memory): New declaration.
7680 * target-delegates.c: Regenerate.
7681
7682 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7683
7684 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7685
7686 2014-05-20 Hui Zhu <hui@codesourcery.com>
7687 Yao Qi <yao@codesourcery.com>
7688
7689 PR backtrace/16558
7690 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7691 and change address of sp and pc.
7692
7693 2014-05-19 Tom Tromey <tromey@redhat.com>
7694
7695 * gdbtypes.c (rank_function): Use XNEWVEC.
7696 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7697
7698 2014-05-19 Doug Evans <dje@google.com>
7699
7700 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7701 build_type_unit_groups and moved closer to only caller. Remove
7702 arguments. All references updated. Remove outdated .gdb_index
7703 comment.
7704 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7705 build_type_psymtabs_1.
7706
7707 2014-05-19 Doug Evans <dje@google.com>
7708
7709 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7710 n_type_unit_groups, all_type_unit_groups. All uses removed.
7711 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7712 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7713 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7714 (add_type_unit_group_to_table): Delete.
7715
7716 2014-05-19 Doug Evans <dje@google.com>
7717
7718 * eval.c (evaluate_subexp_standard): Add some comments.
7719
7720 2014-05-17 Doug Evans <xdje42@gmail.com>
7721
7722 * progspace.c (remove_program_space): Delete, unused.
7723 * progspace.h (remove_program_space): Ditto.
7724
7725 2014-05-17 Doug Evans <xdje42@gmail.com>
7726
7727 * inferior.c (prune_inferiors): Fix comment.
7728 (remove_inferior_command): Call prune_program_spaces.
7729
7730 2014-05-16 Doug Evans <dje@google.com>
7731
7732 New command line option -D.
7733 * NEWS: Mention it.
7734 * main.c (set_gdb_data_directory): New function.
7735 (captured_main): Recognize -D. Flag error for --data-directory "".
7736 Call set_gdb_data_directory.
7737 (print_gdb_help): Print --data-directory, -D.
7738 * main.h (set_gdb_data_directory): Declare.
7739 * top.c (staged_gdb_datadir): New static global.
7740 (set_gdb_datadir): Call set_gdb_data_directory
7741 (show_gdb_datadir): New function.
7742 (init_main): Update init of data-directory parameter.
7743
7744 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7745
7746 Import the "dirfd" gnulib module.
7747 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7748 * gnulib/aclocal.m4: Update.
7749 * gnulib/config.in: Update.
7750 * gnulib/configure: Update.
7751 * gnulib/import/Makefile.am: Update.
7752 * gnulib/import/Makefile.in: Update.
7753 * gnulib/import/dirfd.c: New.
7754 * gnulib/import/m4/dirfd.m4: New.
7755 * gnulib/import/m4/gnulib-cache.m4: Update.
7756 * gnulib/import/m4/gnulib-comp.m4: Update.
7757
7758 2014-05-16 Pierre Muller <muller@sourceware.org>
7759 Yao Qi <yao@codesourcery.com>
7760
7761 * valprint.c (print_wchar): Move the code on checking whether
7762 W is a printable wide char to the default branch of switch
7763 statement below. Call wchar_printable instead of gdb_iswprint.
7764
7765 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7766
7767 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7768 ldr.w and ldrd instructions.
7769
7770 2014-05-15 Doug Evans <dje@google.com>
7771
7772 * dwarf2read.c (read_structure_type): Delete outdated comments.
7773
7774 2014-05-14 Tom Tromey <tromey@redhat.com>
7775
7776 * macrocmd.c (print_macro_definition): Reindent.
7777
7778 2014-05-13 Doug Evans <xdje42@gmail.com>
7779
7780 * python/py-cmd.c (cmdpy_completer): Add comment.
7781 (completers): Make const.
7782
7783 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7784
7785 * infrun.c (resume): Remove should_resume (unused). Move up
7786 declaration of resume_ptid.
7787
7788 2014-05-13 Tom Tromey <tromey@redhat.com>
7789
7790 * language.h (unop_type_check): Remove.
7791 (binop_type_check): Don't declare.
7792
7793 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7794
7795 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7796 call to regcache_raw_collect.
7797
7798 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7799
7800 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7801 mi_console->quote as the quoting character.
7802
7803 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7804
7805 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7806
7807 2014-04-29 Tom Tromey <tromey@redhat.com>
7808
7809 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7810 "show debug varobj".
7811
7812 2014-05-07 Kyle McMartin <kyle@redhat.com>
7813
7814 Pushed by Joel Brobecker <brobecker@adacore.com>.
7815 * aarch64-tdep.c (aarch64_software_single_step): New function.
7816 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7817 with aarch64_software_single_step.
7818
7819 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7820
7821 GDB 7.7.1 released.
7822
7823 2014-05-05 Keith Seitz <keiths@redhat.com>
7824
7825 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7826 variable or history value is successfully parsed.
7827
7828 2014-05-05 Yao Qi <yao@codesourcery.com>
7829 Pedro Alves <palves@redhat.com>
7830
7831 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7832 address of blocks that intersects the requested range. Trim
7833 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7834 sections.
7835 * ctf.c (ctf_xfer_partial): Likewise.
7836
7837 2014-05-05 Yao Qi <yao@codesourcery.com>
7838
7839 * printcmd.c (display_command): Remove the check to
7840 target_has_execution.
7841
7842 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7843
7844 * ppcobsd-nat.c: Include "obsd-nat.h".
7845 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7846 add_target.
7847 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7848
7849 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7850
7851 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7852 and 16-bit signed and unsigned arguments. Update comment.
7853 (stap_parse_probe_arguments): Extend code to handle such
7854 arguments. Use warning instead of complaint to notify about
7855 unrecognized bitness.
7856
7857 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 PR breakpoints/16889
7860 * stap-probe.c (stap_parse_probe_arguments): Simplify
7861 check for non-prefixed probes (i.e., probes whose
7862 arguments do not start with "N@"). Always set the
7863 argument type to a sane value.
7864
7865 2014-05-01 David Taylor <dtaylor@emc.com>
7866
7867 * remote.c (compare_sections_command): Add -r option to compare
7868 all loadable read-only sections.
7869
7870 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7871
7872 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7873 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7874 Update all callers.
7875 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7876 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7877 Remove unused CORE_ADDR argument. Update all callers.
7878
7879 2014-04-29 Pedro Alves <palves@redhat.com>
7880
7881 * remote.c (struct packet_config) <detect>: Extend comment.
7882 (add_packet_config_cmd): Don't set the config's detect or support
7883 fields here.
7884 (init_all_packet_configs): Also initialize the config's 'detect'
7885 field.
7886 (reset_all_packet_configs_support): New function.
7887 (remote_open_1): Call reset_all_packet_configs_support instead of
7888 init_all_packet_configs.
7889 (_initialize_remote): Initialize all packet configs. Assert that
7890 all packets have an associated command, except a few known
7891 outliers.
7892
7893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7894
7895 * dwarf2read.c (read_subrange_type): Handle dynamic
7896 DW_AT_lower_bound attributes.
7897
7898 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7899
7900 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7901 dynamic bounds before computing its upper bound.
7902 (ada_discrete_type_low_bound): Same as above with the lower bound.
7903
7904 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7905
7906 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7907 range types. Adjust the array handling implementation to
7908 take advantage of this change.
7909 (resolve_dynamic_range): New function, mostly extracted from
7910 resolve_dynamic_bounds.
7911 (resolve_dynamic_array): New function, mostly extracted from
7912 resolve_dynamic_bounds.
7913 (resolve_dynamic_bounds): Delete.
7914 (resolve_dynamic_type): Reimplement. Add handling of
7915 TYPE_CODE_RANGE types.
7916
7917 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7918
7919 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7920 handling of parallel ___XA types.
7921
7922 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7923
7924 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7925 unnecessary second call to static_unwrap_type.
7926
7927 2014-04-27 Hui Zhu <hui@codesourcery.com>
7928
7929 * stack.c (print_frame_info): Call do_gdb_disassembly with
7930 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7931
7932 2014-04-26 Doug Evans <xdje42@gmail.com>
7933
7934 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7935
7936 2014-04-25 Pedro Alves <palves@redhat.com>
7937
7938 PR server/16255
7939 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7940 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7941 and newline from built string.
7942 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7943 (linux_ptrace_attach_fail_reason): ... this.
7944 * linux-nat.c (linux_nat_attach): Adjust to use
7945 linux_ptrace_attach_fail_reason.
7946
7947 2014-04-25 Pedro Alves <palves@redhat.com>
7948
7949 * remote.c (struct remote_state): Remove multi_process_aware,
7950 non_stop_aware, cond_tracepoints, cond_breakpoints,
7951 breakpoint_commands, fast_tracepoints, static_tracepoints,
7952 install_in_trace, disconnected_tracing,
7953 enable_disable_tracepoints, string_tracing, and
7954 augmented_libraries_svr4_read fields.
7955 (remote_multi_process_p): Move further below in the file.
7956 (struct packet_config): Add comments.
7957 (update_packet_config): Delete function.
7958 (show_packet_config_cmd): Use packet_config_support.
7959 (add_packet_config_cmd): Use NULL as set callback.
7960 (packet_ok): "set remote foo-packet"-style commands no longer
7961 change config->supported -- adjust.
7962 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7963 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7964 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7965 (PACKET_QNonStop, PACKET_multiprocess_feature)
7966 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7967 (PACKET_DisconnectedTracing_feature)
7968 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7969 (set_remote_protocol_packet_cmd): Delete function.
7970 (packet_config_support, packet_support): New functions.
7971 (set_remote_protocol_Z_packet_cmd): Don't call
7972 update_packet_config.
7973 (remote_query_attached, remote_pass_signals)
7974 (remote_program_signals, remote_threads_info)
7975 (remote_threads_extra_info, remote_start_remote): Use
7976 packet_support.
7977 (remote_start_remote): Use packet_config_support and
7978 packet_support.
7979 (init_all_packet_configs): Set all packets to unknown support,
7980 instead of calling update_packet_config.
7981 (remote_check_symbols): Use packet_support.
7982 (remote_supported_packet): Unconditionally set the packet config's
7983 support status.
7984 (remote_multi_process_feature, remote_non_stop_feature)
7985 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7986 (remote_breakpoint_commands_feature)
7987 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7988 (remote_install_in_trace_feature)
7989 (remote_disconnected_tracing_feature)
7990 (remote_enable_disable_tracepoint_feature)
7991 (remote_string_tracing_feature)
7992 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7993 (remote_protocol_features): Adjust to use remote_supported_packet
7994 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7995 "ConditionalTracepoints", "ConditionalBreakpoints",
7996 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7997 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7998 "EnableDisableTracepoints", and "tracenz".
7999 (remote_query_supported): Use packet_support.
8000 (remote_open_1): Adjust.
8001 (extended_remote_attach_1): Use packet_support. Switch on the
8002 result of packet_ok instead of checking whether the packet ended
8003 up disabled.
8004 (remote_vcont_resume): Use packet_support.
8005 (remote_resume, remote_stop_ns, fetch_register_using_p)
8006 (remote_prepare_to_store, store_register_using_P)
8007 (check_binary_download, remote_write_bytes): Use packet_support.
8008 (remote_vkill): Use packet_support. Switch on the result of
8009 packet_ok instead of checking whether the packet ended up
8010 disabled.
8011 (extended_remote_supports_disable_randomization): Use
8012 packet_support.
8013 (extended_remote_run): Switch on the result of packet_ok instead
8014 of checking whether the packet ended up disabled.
8015 (remote_insert_breakpoint, remote_remove_breakpoint)
8016 (remote_insert_watchpoint, remote_remove_watchpoint)
8017 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8018 packet_support.
8019 (remote_search_memory): Use packet_config_support.
8020 (remote_get_thread_local_address, remote_get_tib_address)
8021 (remote_hostio_send_command, remote_can_execute_reverse): Use
8022 packet_support.
8023 (remote_supports_cond_tracepoints)
8024 (remote_supports_cond_breakpoints)
8025 (remote_supports_fast_tracepoints)
8026 (remote_supports_static_tracepoints)
8027 (remote_supports_install_in_trace)
8028 (remote_supports_enable_disable_tracepoint)
8029 (remote_supports_string_tracing)
8030 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8031 the packet config says the feature is enabled or disabled.
8032 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8033 (remote_get_trace_status): Use packet_support.
8034 (remote_set_disconnected_tracing): Adjust to check whether the
8035 feature is enabled with packet_support.
8036 (remote_set_trace_buffer_size, remote_use_agent)
8037 (remote_can_use_agent, remote_supports_btrace): Use
8038 packet_support.
8039 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8040 Use packet_config_support.
8041 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8042 the packet config says the feature is enabled or disabled.
8043 (set_range_stepping): Use packet_support.
8044
8045 2014-04-25 Tom Tromey <tromey@redhat.com>
8046
8047 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8048 argument.
8049
8050 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8051
8052 * NEWS: Mention support for C99 variable length arrays.
8053
8054 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8055
8056 * ada-lang.c (standard_exc): Expand introductory comment.
8057
8058 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8059 Walfred Tedeschi <walfred.tedeschi@intel.com>
8060
8061 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8062 AVX512 registers.
8063 (amd64_linux_read_description): Add code to handle AVX512 xstate
8064 mask and return respective tdesc.
8065 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8066 and features/i386/x32-avx512-linux.c.
8067 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8068 (amd64_linux_core_read_description): Add code to handle AVX512
8069 xstate mask and return respective tdesc.
8070 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8071 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8072 calculation.
8073 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8074 (tdesc_amd64_avx512_linux): New prototype.
8075 (tdesc_x32_avx512_linux): Likewise.
8076 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8077 features/i386/x32-avx512.c.
8078 (amd64_ymm_avx512_names): New register names for pseudo
8079 registers YMM16-31.
8080 (amd64_ymmh_avx512_names): New register names for raw registers
8081 YMMH16-31.
8082 (amd64_k_names): New register names for K registers.
8083 (amd64_zmmh_names): New register names for ZMM raw registers.
8084 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8085 (amd64_xmm_avx512_names): New register names for XMM16-31
8086 registers.
8087 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8088 registers.
8089 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8090 if feature is present.
8091 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8092 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8093 (AMD64_NUM_REGS): Adjust to new number of registers.
8094 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8095 registers supplied via XSTATE by AVX512 registers.
8096 (i386_linux_read_description): Add case for AVX512.
8097 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8098 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8099 (i386_linux_core_read_description): Add case for AVX512.
8100 (i386_linux_init_abi): Install supported register note section
8101 for AVX512.
8102 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8103 AVX512.
8104 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8105 registers to be number of zmm7h + 1.
8106 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8107 * i386-tdep.c: Include features/i386/i386-avx512.c.
8108 (i386_zmm_names): Add ZMM pseudo register names array.
8109 (i386_zmmh_names): Add ZMM raw register names array.
8110 (i386_k_names): Add K raw register names array.
8111 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8112 registers. AVX512 has 16 more ZMM registers than there are YMM
8113 registers.
8114 (i386_zmmh_regnum_p): Add function to look up register number of
8115 ZMM raw registers.
8116 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8117 (i386_k_regnum_p): Likewise for K raw registers.
8118 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8119 registers added by AVX512.
8120 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8121 registers added by AVX512.
8122 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8123 added by AVX512.
8124 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8125 (i386_pseudo_register_name): Add ZMM pseudo registers.
8126 (i386_zmm_type): Construct and return vector registers type for ZMM
8127 registers.
8128 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8129 ZMM0-31 pseudo registers and K registers.
8130 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8131 and YMM16-31 registers from register cache.
8132 (i386_pseudo_register_write): Add code to write K, ZMM and
8133 YMM16-31 registers.
8134 (i386_register_reggroup_p): Add code to include/exclude AVX512
8135 registers in/from respective register groups.
8136 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8137 registers if feature is present in xcr0.
8138 (i386_gdbarch_init): Add code to initialize AVX512 feature
8139 variables in tdep structure, wire in pseudo registers and call
8140 initialize_tdesc_i386_avx512.
8141 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8142 variables.
8143 (i386_regnum): Add AVX512 registers.
8144 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8145 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8146 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8147 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8148 512 bits wide.
8149 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8150 (i386_ymm_avx512_regnum_p): Likewise.
8151 (i386_k_regnum_p): Likewise.
8152 (i386_zmm_regnum_p): Likewise.
8153 (i386_zmmh_regnum_p): Likewise.
8154 * i387-tdep.c : Update year in copyright notice.
8155 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8156 XSAVE buffer.
8157 (XSAVE_YMM_AVX512_ADDR): New macro.
8158 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8159 XSAVE buffer.
8160 (XSAVE_XMM_AVX512_ADDR): New macro.
8161 (xsave_avx512_k_offset): New table for K register offsets in
8162 XSAVE buffer.
8163 (XSAVE_AVX512_K_ADDR): New macro.
8164 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8165 in XSAVE buffer.
8166 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8167 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8168 buffer.
8169 (i387_collect_xsave): Add code to collect AVX512 registers from
8170 XSAVE buffer.
8171 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8172 of XMM16-31 registers.
8173 (I387_NUM_K_REGS): New define for number of K registers.
8174 (I387_K0_REGNUM): New define for K0 register number.
8175 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8176 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8177 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8178 registers.
8179 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8180 (I387_XMM16_REGNUM): New define for XMM16 register number.
8181 (I387_YMM0_REGNUM): New define for YMM0 register number.
8182 (I387_KEND_REGNUM): New define for last K register number.
8183 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8184 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8185 number.
8186 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8187 number.
8188 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8189 size.
8190 * features/Makefile: Add AVX512 related files.
8191 * features/i386/32bit-avx512.xml: New file.
8192 * features/i386/64bit-avx512.xml: Likewise.
8193 * features/i386/amd64-avx512-linux.c: Likewise.
8194 * features/i386/amd64-avx512-linux.xml: Likewise.
8195 * features/i386/amd64-avx512.c: Likewise.
8196 * features/i386/amd64-avx512.xml: Likewise.
8197 * features/i386/i386-avx512-linux.c: Likewise.
8198 * features/i386/i386-avx512-linux.xml: Likewise.
8199 * features/i386/i386-avx512.c: Likewise.
8200 * features/i386/i386-avx512.xml: Likewise.
8201 * features/i386/x32-avx512-linux.c: Likewise.
8202 * features/i386/x32-avx512-linux.xml: Likewise.
8203 * features/i386/x32-avx512.c: Likewise.
8204 * features/i386/x32-avx512.xml: Likewise.
8205 * regformats/i386/amd64-avx512-linux.dat: New file.
8206 * regformats/i386/amd64-avx512.dat: Likewise.
8207 * regformats/i386/i386-avx512-linux.dat: Likewise.
8208 * regformats/i386/i386-avx512.dat: Likewise.
8209 * regformats/i386/x32-avx512-linux.dat: Likewise.
8210 * regformats/i386/x32-avx512.dat: Likewise.
8211 * NEWS: Add note about new support for AVX512.
8212
8213
8214 2014-04-23 Pedro Alves <palves@redhat.com>
8215
8216 * breakpoint.c (insert_bp_location): Tolerate errors if the
8217 breakpoint is set in a user-loaded objfile.
8218 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8219 location is marked shlib_disabled. If the breakpoint is set in a
8220 user-loaded objfile is a GDB-side memory breakpoint, validate it
8221 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8222 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8223 flag.
8224 * mem-break.c (memory_validate_breakpoint): New function.
8225 * objfiles.c (userloaded_objfile_contains_address_p): New
8226 function.
8227 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8228 * target.h (memory_validate_breakpoint): New declaration.
8229
8230 2014-04-23 Pedro Alves <palves@redhat.com>
8231
8232 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8233 the breakpoint is set in a shared library, only suppress
8234 errors for software breakpoints, not hardware breakpoints.
8235
8236 2014-04-22 Pedro Alves <palves@redhat.com>
8237
8238 * infrun.c (schedlock_applies): New function, factored out from
8239 find_thread_needs_step_over.
8240 (find_thread_needs_step_over): Use it.
8241 (switch_back_to_stepped_thread): Always clear trap_expected if the
8242 step over is finished. Return early if scheduler locking applies.
8243 Look for the stepping thread and a potential step-over thread with
8244 a single loop.
8245 (currently_stepping_or_nexting_callback): Delete.
8246
8247 2014-04-22 Nick Clifton <nickc@redhat.com>
8248
8249 * NEWS: Mention that ARM sim now supports tracing.
8250
8251 2014-04-22 Yao Qi <yao@codesourcery.com>
8252
8253 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8254 to ...
8255 * tracefile.c (tracefile_fetch_registers): ... it. New
8256 function.
8257 * tracefile.h (tracefile_fetch_registers): Declare.
8258 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8259 tracefile_fetch_registers.
8260
8261 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8262
8263 PR gdb/14018
8264 * windows-nat.c (thread_rec): Don't display a warning when
8265 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8266 fails for any reason, set th->suspended to -1, so that we don't
8267 try to resume such a thread. Also, don't return NULL in these
8268 cases, to avoid completely ruin the session due to "PC register is
8269 not available" error.
8270 (do_windows_fetch_inferior_registers): Check errors in
8271 GetThreadContext call.
8272 (windows_continue): Accept an additional argument KILLED; if not
8273 zero, ignore errors in the SetThreadContext call, since the
8274 inferior was killed and is shutting down.
8275 (windows_resume, get_windows_debug_event)
8276 (windows_create_inferior, windows_mourn_inferior)
8277 (windows_kill_inferior): All callers of windows_continue changed
8278 to adjust to its new calling sequence.
8279
8280 2014-04-19 Yao Qi <yao@codesourcery.com>
8281
8282 * ctf.c (ctf_open): Call post_create_inferior.
8283
8284 2014-04-19 Yao Qi <yao@codesourcery.com>
8285
8286 * ctf.c (handle_id): New static variable.
8287 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8288 value. Get the declaration of event "register" and get length
8289 of field "contents".
8290
8291 2014-04-19 Yao Qi <yao@codesourcery.com>
8292
8293 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8294
8295 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8296
8297 * valops.c (oload_method_static): Remove unnecessary argument
8298 METHOD. Update all callers.
8299
8300 2014-04-18 Pedro alves <palves@redhat.com>
8301 Tom Tromey <tromey@redhat.com>
8302
8303 PR backtrace/15558
8304 * frame.c (get_prev_frame_1): Rename to ...
8305 (get_prev_frame_always): ... this, and make extern. Adjust.
8306 (skip_artificial_frames): Use get_prev_frame_always.
8307 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8308 (get_frame_unwind_stop_reason): Adjust to rename.
8309 * frame.h (get_prev_frame_always): Declare.
8310 * inline-frame.c: Include frame.h.
8311 (inline_frame_this_id): Use get_prev_frame_always.
8312
8313 2014-04-18 Tristan Gingold <gingold@adacore.com>
8314
8315 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8316 code by using bfd_mach_o_get_base_address.
8317
8318 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8319
8320 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8321 (spu_ax_pseudo_register_collect): New function.
8322 (spu_ax_pseudo_register_push_stack): Likewise.
8323 (spu_dwarf_reg_to_regnum): Likewise.
8324 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8325
8326 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8327
8328 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8329 Replace FRAME argument with FRAME_ID.
8330 * gdbarch.c, gdbarch.h: Regenerate.
8331 * findvar.c (default_value_from_register): Add GDBARCH argument;
8332 replace FRAME by FRAME_ID. No longer call get_frame_id.
8333 (value_from_register): Update call to gdbarch_value_from_register.
8334 * value.h (default_value_from_register): Update prototype.
8335 * s390-linux-tdep.c (s390_value_from_register): Update interface
8336 and call to default_value_from_register.
8337 * spu-tdep.c (spu_value_from_register): Likewise.
8338
8339 * findvar.c (address_from_register): Remove TYPE argument.
8340 Do not call value_from_register; use gdbarch_value_from_register
8341 with null_frame_id instead.
8342 * value.h (address_from_register): Update prototype.
8343 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8344 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8345 address_from_register interface change.
8346
8347 2014-04-17 Yao Qi <yao@codesourcery.com>
8348
8349 * gdbtypes.h: Update comments to link to types and macros'
8350 definitions.
8351
8352 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8353
8354 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8355
8356 2014-04-16 Keith Seitz <keiths@redhat.com>
8357
8358 PR gdb/15827
8359 * dwarf2read.c (skip_one_die): Check that all relative-offset
8360 sibling DIEs fall within range of the current reader's buffer.
8361 (read_partial_die): Likewise.
8362
8363 2014-04-16 Keith Seitz <keiths@redhat.com>
8364
8365 PR c++/16597
8366 * cp-namespace.c (lookup_symbol_file): If the type name of
8367 `this' is NULL, return immediately.
8368
8369 2014-04-14 Keith Seitz <keiths@redhat.com>
8370
8371 PR c++/16253
8372 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8373 from symbol_matches_domain in symtab.c. All local callers
8374 of symbol_matches_domain updated.
8375 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8376 search STRUCT_DOMAIN.
8377 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8378 independently. standard_lookup will do that automatically.
8379 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8380 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8381 (cp_lookup_symbol_in_namespace): Likewise.
8382 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8383 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8384 may return a STRUCT_DOMAIN match.
8385 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8386 * cp-support.c: Include language.h.
8387 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8388 VAR_DOMAIN.
8389 * psymtab.c (match_partial_symbol): Compare the requested
8390 domain with the symbol's domain directly.
8391 (lookup_partial_symbol): Likewise.
8392 * symtab.c (lookup_symbol_in_language): Explain when/why
8393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8394 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8395 appropriate languages.
8396 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8397 and moved to ada-lang.c
8398 (lookup_block_symbol): Explain that this function only returns
8399 symbol matching the requested DOMAIN.
8400 Compare the requested domain with the symbol's domain directly.
8401 (iterate_over_symbols): Compare the requested domain with the
8402 symbol's domain directly.
8403 * symtab.h (symbol_matches_domain): Remove.
8404
8405 2014-04-14 Tom Tromey <tromey@redhat.com>
8406
8407 PR c++/15246:
8408 * c-exp.y (type_aggregate_p): New function.
8409 (qualified_name, classify_inner_name): Use it.
8410 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8411 and TYPE_TARGET_TYPE of an enum type.
8412 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8413 an enum type.
8414 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8415 handle TYPE_DECLARED_CLASS.
8416 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8417 types.
8418 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8419 * valops.c (enum_constant_from_type): New function.
8420 (value_aggregate_elt): Use it.
8421 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8422 TYPE_CODE_ENUM.
8423
8424 2014-04-14 Tom Tromey <tromey@redhat.com>
8425
8426 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8427 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8428 const.
8429 * value.h (value_aggregate_elt): Update.
8430
8431 2014-04-14 Tom Tromey <tromey@redhat.com>
8432
8433 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8434
8435 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8436
8437 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8438 (evaluate_subexp_standard): Pass noside argument.
8439 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8440 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8441 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8442 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8443 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8444
8445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8446
8447 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8448 points to a constant blob.
8449
8450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8451
8452 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8453 property and store it as the high bound and flag the range accordingly.
8454 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8455 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8456 * gdbtypes.h (enum range_flags): New enum.
8457 (struct range_bounds): Add flags member.
8458
8459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8460
8461 * c-typeprint.c (c_type_print_varspec_suffix): Added
8462 check for not yet resolved high bound. If unresolved, print
8463 "variable length" string to the console instead of random
8464 length.
8465
8466 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8467
8468 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8469 value.
8470 (ada_template_to_fixed_record_type_1): Likewise.
8471 (ada_to_fixed_type_1): Likewise.
8472 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8473 (cp_print_value): Likewise.
8474 * d-valprint.c (dynamic_array_type): Likewise.
8475 * findvar.c (address_of_variable): Likewise.
8476 * jv-valprint.c (java_value_print): Likewise.
8477 * valops.c (value_ind): Likewise.
8478 * value.c (coerce_ref): Likewise.
8479
8480 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8481
8482 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8483 value and retrieve the dynamic type size.
8484
8485 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8486
8487 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8488 passed to sizeof is dynamic evaluate the argument to compute the length.
8489
8490 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8491 Joel Brobecker <brobecker@adacore.com>
8492
8493 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8494 (dwarf2_evaluate_property): New function.
8495 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8496 * dwarf2read.c (attr_to_dynamic_prop): New function.
8497 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8498 attribute.
8499 * gdbtypes.c: Include dwarf2loc.h.
8500 (is_dynamic_type): New function.
8501 (resolve_dynamic_type): New function.
8502 (resolve_dynamic_bounds): New function.
8503 (get_type_length): New function.
8504 (check_typedef): Use get_type_length to compute type length.
8505 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8506 (TYPE_LOW_BOUND_KIND): New macro.
8507 (is_dynamic_type): New function prototype.
8508 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8509 to resolve dynamic properties of the type. Update comment.
8510 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8511
8512 2014-04-14 Richard Henderson <rth@redhat.com>
8513
8514 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8515
8516 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8517 Doug Evans <xdje42@gmail.com>
8518
8519 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8520 dereference TYPE_CODE_REF values.
8521
8522 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8523
8524 Revert the following changes due to regressions:
8525
8526 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8527 (dwarf2_evaluate_property): New function.
8528 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8529 * dwarf2read.c (attr_to_dynamic_prop): New function.
8530 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8531 attribute.
8532 * gdbtypes.c: Include dwarf2loc.h.
8533 (is_dynamic_type): New function.
8534 (resolve_dynamic_type): New function.
8535 (resolve_dynamic_bounds): New function.
8536 (get_type_length): New function.
8537 (check_typedef): Use get_type_length to compute type length.
8538 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8539 (TYPE_LOW_BOUND_KIND): New macro.
8540 (is_dynamic_type): New function prototype.
8541 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8542 to resolve dynamic properties of the type. Update comment.
8543 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8544
8545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8546 passed to sizeof is dynamic evaluate the argument to compute the length.
8547
8548 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8549 value and retrieve the dynamic type size.
8550
8551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8552 (ada_template_to_fixed_record_type_1): Likewise.
8553 (ada_to_fixed_type_1): Likewise.
8554 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8555 (cp_print_value): Likewise.
8556 * d-valprint.c (dynamic_array_type): Likewise.
8557 * eval.c (evaluate_subexp_with_coercion): Likewise.
8558 * findvar.c (address_of_variable): Likewise.
8559 * jv-valprint.c (java_value_print): Likewise.
8560 * valops.c (value_ind): Likewise.
8561 * value.c (coerce_ref): Likewise.
8562
8563 * c-typeprint.c (c_type_print_varspec_suffix): Added
8564 check for not yet resolved high bound. If unresolved, print
8565 "variable length" string to the console instead of random
8566 length.
8567
8568 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8569 property and store it as the high bound and flag the range accordingly.
8570 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8571 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8572 * gdbtypes.h (enum range_flags): New enum.
8573 (struct range_bounds): Add flags member.
8574
8575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8576 points to a constant blob.
8577
8578 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8579 (evaluate_subexp_standard): Pass noside argument.
8580 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8581 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8582 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8583 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8584 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8585
8586 2014-04-11 Keith Seitz <keiths@redhat.com>
8587
8588 PR c++/16675
8589 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8590 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8591 reference types.
8592
8593 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8594
8595 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8596 (evaluate_subexp_standard): Pass noside argument.
8597 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8598 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8599 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8600 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8601 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8602
8603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8604
8605 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8606 points to a constant blob.
8607
8608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8618
8619 * c-typeprint.c (c_type_print_varspec_suffix): Added
8620 check for not yet resolved high bound. If unresolved, print
8621 "variable length" string to the console instead of random
8622 length.
8623
8624 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8625
8626 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8627 (ada_template_to_fixed_record_type_1): Likewise.
8628 (ada_to_fixed_type_1): Likewise.
8629 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8630 (cp_print_value): Likewise.
8631 * d-valprint.c (dynamic_array_type): Likewise.
8632 * eval.c (evaluate_subexp_with_coercion): Likewise.
8633 * findvar.c (address_of_variable): Likewise.
8634 * jv-valprint.c (java_value_print): Likewise.
8635 * valops.c (value_ind): Likewise.
8636 * value.c (coerce_ref): Likewise.
8637
8638 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8639
8640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8641 value and retrieve the dynamic type size.
8642
8643 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8644
8645 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8646 passed to sizeof is dynamic evaluate the argument to compute the length.
8647
8648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8649
8650 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8651 (dwarf2_evaluate_property): New function.
8652 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8653 * dwarf2read.c (attr_to_dynamic_prop): New function.
8654 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8655 attribute.
8656 * gdbtypes.c: Include dwarf2loc.h.
8657 (is_dynamic_type): New function.
8658 (resolve_dynamic_type): New function.
8659 (resolve_dynamic_bounds): New function.
8660 (get_type_length): New function.
8661 (check_typedef): Use get_type_length to compute type length.
8662 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8663 (TYPE_LOW_BOUND_KIND): New macro.
8664 (is_dynamic_type): New function prototype.
8665 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8666 to resolve dynamic properties of the type. Update comment.
8667 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8668
8669 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8670
8671 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8672 declaring high/low bounds and change uses accordingly. Call
8673 create_range_type instead of create_static_range_type.
8674 * gdbtypes.c (create_range_type): New function.
8675 (create_range_type): Convert bounds into struct bound_prop and pass
8676 them to create_range_type.
8677 * gdbtypes.h (struct bound_prop): New struct.
8678 (create_range_type): New function prototype.
8679 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8680 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8681 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8682 part of the bound.
8683 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8684
8685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8686
8687 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8688 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8689 * ada-lang.c: All uses of create_range_type updated.
8690 * coffread.c: All uses of create_range_type updated.
8691 * dwarf2read.c: All uses of create_range_type updated.
8692 * f-exp.y: All uses of create_range_type updated.
8693 * m2-valprint.c: All uses of create_range_type updated.
8694 * mdebugread.c: All uses of create_range_type updated.
8695 * stabsread.c: All uses of create_range_type updated.
8696 * valops.c: All uses of create_range_type updated.
8697 * valprint.c: All uses of create_range_type updated.
8698
8699 2014-04-10 Pedro Alves <palves@redhat.com>
8700
8701 * breakpoint.c (single_step_breakpoints)
8702 (single_step_gdbarch): Move up in the file.
8703 (one_breakpoint_xfer_memory): New function, factored out from ...
8704 (breakpoint_xfer_memory): ... here. Also process single-step
8705 breakpoints.
8706
8707 2014-04-09 Tristan Gingold <gingold@adacore.com>
8708
8709 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8710 comments.
8711 (darwin_decode_exception_message): Free port only after use.
8712
8713 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8714
8715 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8716 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8717 when setting the size of call_length.
8718
8719 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8720
8721 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8722 dereference TYPE_CODE_REF values.
8723
8724 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8725
8726 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8727 end of warning message.
8728
8729 2014-04-03 Doug Evans <dje@google.com>
8730
8731 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8732 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8733
8734 2014-04-02 Alan Modra <amodra@gmail.com>
8735
8736 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8737 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8738 (struct symbol_file_add_from_memory_args): Add size field.
8739 (find_vdso_size): New function.
8740 (add_vsyscall_page): Attempt to find vdso size.
8741
8742 2014-04-01 Doug Evans <dje@google.com>
8743
8744 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8745
8746 2014-04-01 Tristan Gingold <gingold@adacore.com>
8747
8748 * darwin-nat.c (darwin_encode_reply): Add prototype.
8749 (darwin_decode_exception_message): Reply to unknown inferiors.
8750 (darwin_decode_message): Handle message by id. Ignore message
8751 to unknown inferior.
8752 (darwin_wait): Discard unknown messages, add debug trace.
8753
8754 2014-03-31 Doug Evans <dje@google.com>
8755
8756 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8757 comp_dir_string.
8758
8759 2014-03-31 Doug Evans <dje@google.com>
8760
8761 New option "set print symbol-loading".
8762 * NEWS: Mention it.
8763 * solib.c (solib_read_symbols): Only print symbol loading messages
8764 if requested.
8765 (solib_add): If symbol loading is in "brief" mode, notify user
8766 symbols are being loaded.
8767 (reload_shared_libraries_1): Ditto.
8768 * symfile.c (print_symbol_loading_off): New static global.
8769 (print_symbol_loading_brief): New static global.
8770 (print_symbol_loading_full): New static global.
8771 (print_symbol_loading_enums): New static global.
8772 (print_symbol_loading): New static global.
8773 (print_symbol_loading_p): New function.
8774 (symbol_file_add_with_addrs): Only print symbol loading messages
8775 if requested.
8776 (_initialize_symfile): Register "print symbol-loading" set/show
8777 command.
8778 * symfile.h (print_symbol_loading_p): Declare.
8779
8780 2014-03-30 Doug Evans <xdje42@gmail.com>
8781
8782 * infrun.c (set_last_target_status): New function.
8783 (handle_inferior_event): Call it.
8784
8785 2014-03-30 Doug Evans <xdje42@gmail.com>
8786
8787 * inferior.h (enum stop_kind): Improve comment.
8788
8789 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8790
8791 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8792 a reference, strip the reference layer before calling
8793 the lang_ops value_has_mutated callback.
8794
8795 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8796
8797 Remove some globals from our parser.
8798 * language.c (unk_lang_parser): Add "struct parser_state"
8799 argument.
8800 * language.h (struct language_defn) <la_parser>: Likewise.
8801 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8802 (initialize_expout): Add "struct parser_state" argument.
8803 Rewrite function to use the parser state.
8804 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8805 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8806 write_exp_elt_longcst, write_exp_elt_dblcst,
8807 write_exp_elt_decfloatcst, write_exp_elt_type,
8808 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8809 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8810 write_dollar_variable): Likewise.
8811 (parse_exp_in_context_1): Use parser state.
8812 (insert_type_address_space): Add "struct parser_state" argument.
8813 Use parser state.
8814 (increase_expout_size): New function.
8815 * parser-defs.h: Forward declare "struct language_defn" and
8816 "struct parser_state".
8817 (expout, expout_size, expout_ptr): Remove extern declarations.
8818 (parse_gdbarch, parse_language): Rewrite macro declarations to
8819 accept the parser state.
8820 (struct parser_state): New struct.
8821 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8822 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8823 write_exp_elt_decfloatcst, write_exp_elt_type,
8824 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8825 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8826 write_exp_msymbol, write_dollar_variable,
8827 mark_struct_expression, insert_type_address_space): Add "struct
8828 parser_state" argument.
8829 (increase_expout_size): New function.
8830 * utils.c (do_clear_parser_state): New function.
8831 (make_cleanup_clear_parser_state): Likewise.
8832 * utils.h (make_cleanup_clear_parser_state): New function
8833 prototype.
8834 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8835 Update calls to write_exp* in order to pass the parser state.
8836 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8837 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8838 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8839 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8840 * stap-probe.c (stap_parse_register_operand): Likewise.
8841 (stap_parse_single_operand): Likewise.
8842 (stap_parse_argument_1): Likewise.
8843 (stap_parse_argument): Use parser state.
8844 * stap-probe.h: Include "parser-defs.h".
8845 (struct stap_parse_info) <pstate>: New field.
8846 * c-exp.y (parse_type): Rewrite to use parser state.
8847 (yyparse): Redefine to c_parse_internal.
8848 (pstate): New global variable.
8849 (parse_number): Add "struct parser_state" argument.
8850 (write_destructor_name): Likewise.
8851 (type_exp): Update calls to write_exp* and similars in order to
8852 use parser state.
8853 (exp1, exp, variable, qualified_name, space_identifier,
8854 typename, typebase): Likewise.
8855 (write_destructor_name, parse_number, lex_one_token,
8856 classify_name, classify_inner_name, c_parse): Add "struct
8857 parser_state" argument. Update function to use parser state.
8858 * c-lang.h: Forward declare "struct parser_state".
8859 (c_parse): Add "struct parser_state" argument.
8860 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8861 (yyparse): Redefine macro to ada_parse_internal.
8862 (pstate): New variable.
8863 (write_int, write_object_renaming, write_var_or_type,
8864 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8865 type_int, type_long, type_long_long, type_float, type_double,
8866 type_long_double, type_char, type_boolean, type_system_address):
8867 Add "struct parser_state" argument.
8868 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8869 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8870 var_or_type, aggregate, aggregate_component_list,
8871 positional_list, others, component_group,
8872 component_associations): Update calls to write_exp* and similar
8873 functions in order to use parser state.
8874 (ada_parse, write_var_from_sym, write_int,
8875 write_exp_op_with_string, write_object_renaming,
8876 find_primitive_type, write_selectors, write_ambiguous_var,
8877 write_var_or_type, write_name_assoc, type_int, type_long,
8878 type_long_long, type_float, type_double, type_long_double,
8879 type_char, type_boolean, type_system_address): Add "struct
8880 parser_state" argument. Adjust function to use parser state.
8881 * ada-lang.c (parse): Likewise.
8882 * ada-lang.h: Forward declare "struct parser_state".
8883 (ada_parse): Add "struct parser_state" argument.
8884 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8885 calls to both functions.
8886 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8887 parser state.
8888 (yyparse): Redefine macro to f_parse_internal.
8889 (pstate): New variable.
8890 (parse_number): Add "struct parser_state" argument.
8891 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8892 and similars in order to use parser state.
8893 (parse_number): Adjust code to use parser state.
8894 (yylex): Likewise.
8895 (f_parse): New function.
8896 * f-lang.h: Forward declare "struct parser_state".
8897 (f_parse): Add "struct parser_state" argument.
8898 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8899 parser state.
8900 (yyparse): Redefine macro for java_parse_internal.
8901 (pstate): New variable.
8902 (push_expression_name, push_expression_name, insert_exp): Add
8903 "struct parser_state" argument.
8904 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8905 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8906 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8907 PostIncrementExpression, PostDecrementExpression,
8908 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8909 UnaryExpressionNotPlusMinus, CastExpression,
8910 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8911 RelationalExpression, EqualityExpression, AndExpression,
8912 ExclusiveOrExpression, InclusiveOrExpression,
8913 ConditionalAndExpression, ConditionalOrExpression,
8914 ConditionalExpression, Assignment, LeftHandSide): Update
8915 calls to write_exp* and similars in order to use parser state.
8916 (parse_number): Ajust code to use parser state.
8917 (yylex): Likewise.
8918 (java_parse): New function.
8919 (push_variable): Add "struct parser_state" argument. Adjust
8920 code to user parser state.
8921 (push_fieldnames, push_qualified_expression_name,
8922 push_expression_name, insert_exp): Likewise.
8923 * jv-lang.h: Forward declare "struct parser_state".
8924 (java_parse): Add "struct parser_state" argument.
8925 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8926 parser state.
8927 (yyparse): Redefine macro to m2_parse_internal.
8928 (pstate): New variable.
8929 (type_exp, exp, fblock, variable, type): Update calls to
8930 write_exp* and similars to use parser state.
8931 (yylex): Likewise.
8932 (m2_parse): New function.
8933 * m2-lang.h: Forward declare "struct parser_state".
8934 (m2_parse): Add "struct parser_state" argument.
8935 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8936 * objc-lang.h: Forward declare "struct parser_state".
8937 (end_msglist): Add "struct parser_state" argument.
8938 * p-exp.y (parse_type): Rewrite macro to use parser state.
8939 (yyparse): Redefine macro to pascal_parse_internal.
8940 (pstate): New variable.
8941 (parse_number): Add "struct parser_state" argument.
8942 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8943 write_exp* and similars in order to use parser state.
8944 (parse_number, yylex): Adjust code to use parser state.
8945 (pascal_parse): New function.
8946 * p-lang.h: Forward declare "struct parser_state".
8947 (pascal_parse): Add "struct parser_state" argument.
8948 * go-exp.y (parse_type): Rewrite macro to use parser state.
8949 (yyparse): Redefine macro to go_parse_internal.
8950 (pstate): New variable.
8951 (parse_number): Add "struct parser_state" argument.
8952 (type_exp, exp1, exp, variable, type): Update calls to
8953 write_exp* and similars in order to use parser state.
8954 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8955 to use parser state.
8956 (go_parse): Likewise.
8957 * go-lang.h: Forward declare "struct parser_state".
8958 (go_parse): Add "struct parser_state" argument.
8959
8960 2014-03-27 Doug Evans <dje@google.com>
8961
8962 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8963
8964 2014-03-27 Doug Evans <dje@google.com>
8965
8966 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8967 Remove argument abbrev_section. All callers updated.
8968
8969 2014-03-27 Doug Evans <dje@google.com>
8970
8971 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8972 addr_base, ranges_base.
8973
8974 2014-03-26 Keith Seitz <keiths@redhat.com>
8975
8976 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8977 types, not VAR_DOMAIN.
8978
8979 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8980
8981 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8982 "ra" registers.
8983 * features/nios2-linux.c: Regenerated.
8984 * features/nios2.c: Regenerated.
8985
8986 2014-03-25 Pedro Alves <palves@redhat.com>
8987
8988 * cli/cli-script.c (script_from_file): Force the interpreter to
8989 sync mode.
8990
8991 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8992
8993 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8994 small stack allocation.
8995
8996 2014-03-24 Tristan Gingold <gingold@adacore.com>
8997
8998 * darwin-nat.c (exc_server): Remove unused prototype.
8999 (darwin_dump_message): Correctly display data on x86_64.
9000 (darwin_encode_reply): Fix style.
9001 Add comments and fix indentation.
9002
9003 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9004
9005 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9006
9007 2014-03-22 Doug Evans <xdje42@gmail.com>
9008
9009 * infcmd.c: Whitespace fixes.
9010 (interrupt_command): Merge two function comments into one.
9011
9012 2014-03-22 Doug Evans <xdje42@gmail.com>
9013
9014 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9015 All uses updated.
9016
9017 2014-03-22 Yao Qi <yao@codesourcery.com>
9018
9019 * remote.c (target_read_live_memory): Remove.
9020 (memory_xfer_live_readonly_partial): Rename it to
9021 remote_xfer_live_readonly_partial. Remove argument 'object'.
9022 All callers updated. Call remote_read_bytes_1
9023 instead of target_read_live_memory.
9024 * tracepoint.c (set_traceframe_number): Remove.
9025 (make_cleanup_restore_traceframe_number): Likewise .
9026 * tracepoint.h (set_traceframe_number): Remove declaration.
9027 (make_cleanup_restore_traceframe_number): Likewise.
9028
9029 2014-03-22 Yao Qi <yao@codesourcery.com>
9030
9031 * remote.c (remote_read_bytes): Move code on reading from the
9032 remote stub to ...
9033 (remote_read_bytes_1): ... here. New function.
9034
9035 2014-03-22 Yao Qi <yao@codesourcery.com>
9036
9037 * ctf.c (ctf_xfer_partial): Check the return value of
9038 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9039 return TARGET_XFER_UNAVAILABLE.
9040 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9041 * target.c (target_read_live_memory): Move it to remote.c.
9042 (memory_xfer_live_readonly_partial): Likewise.
9043 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9044 * remote.c (target_read_live_memory): Moved from target.c.
9045 (memory_xfer_live_readonly_partial): Likewise.
9046 (remote_read_bytes): Factored out from
9047 memory_xfer_partial_1.
9048
9049 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9050
9051 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9052 NULL pointer.
9053
9054 2014-03-21 Pedro Alves <palves@redhat.com>
9055
9056 * infrun.c (normal_stop): Extend comment.
9057
9058 2014-03-21 Hui Zhu <hui@codesourcery.com>
9059 Pedro Alves <palves@redhat.com>
9060
9061 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9062 static buffer.
9063 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9064 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9065 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9066
9067 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9068
9069 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9070 `z' formatted output modifier.
9071
9072 2014-03-20 Tom Tromey <tromey@redhat.com>
9073 Sergio Durigan Junior <sergiodj@redhat.com>
9074
9075 * probe.c (parse_probes): Turn assert into an ordinary error.
9076 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9077 exceptions when parsing probes. Rearrange the code for clarity.
9078
9079 2014-03-20 Tom Tromey <tromey@redhat.com>
9080
9081 PR gdb/14135
9082 * top.c (execute_command): Only dispatch events if the command
9083 started the target.
9084
9085 2014-03-20 Tom Tromey <tromey@redhat.com>
9086
9087 PR cli/15718
9088 * infcall.c: Include event-top.h.
9089 (run_inferior_call): Call async_disable_stdin if needed.
9090
9091 2014-03-20 Pedro Alves <palves@redhat.com>
9092
9093 * infrun.c (prepare_to_proceed): Delete.
9094 (thread_still_needs_step_over): New function.
9095 (find_thread_needs_step_over): New function.
9096 (proceed): If the current thread needs a step-over, set its
9097 steping_over_breakpoint flag. Adjust to use
9098 find_thread_needs_step_over instead of prepare_to_proceed.
9099 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9100 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9101 breakpoint.
9102 (switch_back_to_stepped_thread): Step over breakpoints of all
9103 threads not the stepping thread, before switching back to the
9104 stepping thread.
9105
9106 2014-03-20 Pedro Alves <palves@redhat.com>
9107
9108 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9109 extern.
9110 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9111 * infrun.c (saved_singlestep_ptid)
9112 (stepping_past_singlestep_breakpoint): Delete.
9113 (resume): Remove stepping_past_singlestep_breakpoint handling.
9114 (proceed): Store the prev_pc of the stepping thread too.
9115 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9116 singlestep_pc.
9117 (enum infwait_states): Delete infwait_thread_hop_state.
9118 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9119 field.
9120 (handle_inferior_event): Adjust.
9121 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9122 handling and the thread-hop code. Before removing single-step
9123 breakpoints, check whether the thread hit a single-step breakpoint
9124 of another thread. If it did, the trap is not a random signal.
9125 (switch_back_to_stepped_thread): If the event thread hit a
9126 single-step breakpoint, unblock it before switching to the
9127 stepping thread. Handle the case of the stepped thread having
9128 advanced already.
9129 (keep_going): Handle the case of the current thread moving past a
9130 single-step breakpoint.
9131
9132 2014-03-20 Pedro Alves <palves@redhat.com>
9133
9134 PR breakpoints/7143
9135 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9136 are being stepped over.
9137 (breakpoint_address_match): Make extern.
9138 * breakpoint.h (breakpoint_address_match): New declaration.
9139 * inferior.h (stepping_past_instruction_at): New declaration.
9140 * infrun.c (struct step_over_info): New type.
9141 (step_over_info): New global.
9142 (set_step_over_info, clear_step_over_info)
9143 (stepping_past_instruction_at): New functions.
9144 (handle_inferior_event): Clear the step-over info when
9145 trap_expected is cleared.
9146 (resume): Remove now stale comment.
9147 (clear_proceed_status): Clear step-over info.
9148 (proceed): Adjust step-over handling to set or clear the step-over
9149 info instead of removing all breakpoints.
9150 (handle_signal_stop): When setting up a thread-hop, don't remove
9151 breakpoints here.
9152 (stop_stepping): Clear step-over info.
9153 (keep_going): Adjust step-over handling to set or clear step-over
9154 info and then always inserting breakpoints, instead of removing
9155 all breakpoints when stepping over one.
9156
9157 2014-03-20 Pedro Alves <palves@redhat.com>
9158
9159 * infrun.c (previous_inferior_ptid): Adjust comment.
9160 (deferred_step_ptid): Delete.
9161 (infrun_thread_ptid_changed, prepare_to_proceed)
9162 (init_wait_for_inferior): Adjust.
9163 (handle_signal_stop): Delete deferred_step_ptid handling.
9164
9165 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9166
9167 PR gdb/15358
9168 * defs.h (sync_quit_force_run): New declaration.
9169 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9170 * event-top.c (async_sigterm_handler): New declaration.
9171 (async_sigterm_token): New variable.
9172 (async_init_signals): Create also async_sigterm_token.
9173 (async_sigterm_handler): New function.
9174 (sync_quit_force_run): New variable.
9175 (handle_sigterm): Replace quit_force call by other calls.
9176 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9177
9178 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9179
9180 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9181 offset into SPE pseudo registers.
9182
9183 2014-03-18 Pedro Alves <palves@redhat.com>
9184
9185 PR gdb/13860
9186 * inferior.h (print_stop_event): Declare.
9187 * infrun.c (print_stop_event): New, factored out from ...
9188 (normal_stop): ... this.
9189 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9190 of bpstat_print/print_stack_frame.
9191
9192 2014-03-17 Tom Tromey <tromey@redhat.com>
9193
9194 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9195
9196 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9197
9198 * ada-lang.c (decode_constrained_packed_array): Perform a
9199 minimal coercion for reference with coerce_ref instead of
9200 ada_coerce_ref.
9201
9202 2014-03-17 Tristan Gingold <gingold@adacore.com>
9203
9204 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9205 (darwin_solib_create_inferior_hook): Emit a warning if version
9206 is unhandled.
9207
9208 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9209
9210 * python/py-value.c (get_field_flag): Cast flag_name argument to
9211 PyObject_GetAttrString to support Python 2.4.
9212
9213 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9214
9215 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9216 (Global Maintainers): Remove Jan Kratochvil.
9217
9218 2014-03-14 Pedro Alves <palves@redhat.com>
9219
9220 * inferior.h (terminal_ours_for_output): Rename to ...
9221 (child_terminal_ours_for_output): ... this.
9222 (terminal_save_ours): Rename to ...
9223 (child_terminal_save_ours): ... this.
9224 (terminal_ours): Rename to ...
9225 (child_terminal_ours): ... this.
9226 (terminal_inferior): Rename to ...
9227 (child_terminal_inferior): ... this.
9228 (terminal_init_inferior): Rename to ...
9229 (child_terminal_init_inferior): ... this.
9230 (terminal_init_inferior_with_pgrp): Rename to ...
9231 (child_terminal_init_inferior_with_pgrp): ... this.
9232 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9233 (child_terminal_init_with_pgrp): ... this.
9234 (terminal_save_ours): Rename to ...
9235 (child_terminal_save_ours): ... this.
9236 (terminal_init_inferior): Rename to ...
9237 (child_terminal_init): ... this. Adjust.
9238 (terminal_inferior): Rename to ...
9239 (child_terminal_inferior): ... this.
9240 (terminal_ours_for_output): Rename to ...
9241 (child_terminal_ours_for_output): ... this. Adjust.
9242 (terminal_ours): Rename to ...
9243 (child_terminal_ours): ... this.
9244 (terminal_ours_1): Rename to ...
9245 (child_terminal_ours_1): ... this. Adjust.
9246 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9247 * windows-nat.c (do_initial_windows_stuff): Adjust.
9248 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9249 (gnu_terminal_init): ... this. Adjust.
9250 (gnu_target): Adjust.
9251 * inf-child.c (inf_child_target): Adjust.
9252
9253 2014-03-13 Doug Evans <xdje42@gmail.com>
9254
9255 PR guile/16612
9256 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9257 new eq?-hashtab.
9258
9259 2014-03-13 Doug Evans <xdje42@gmail.com>
9260
9261 * value.c (record_latest_value): Call release_value_or_incref
9262 instead of release_value.
9263
9264 2014-03-13 Pedro Alves <palves@redhat.com>
9265
9266 * procfs.c (procfs_target): Don't override to_shortname,
9267 to_longname or to_doc.
9268
9269 2014-03-13 Pedro Alves <palves@redhat.com>
9270
9271 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9272 Unix in user visible strings.
9273
9274 2014-03-12 Stan Shebs <stan@codesourcery.com>
9275
9276 * gdbtypes.h: Annotate comments for Doxygen, add a page
9277 block comment with some general info.
9278
9279 2014-03-12 Pedro Alves <palves@redhat.com>
9280
9281 * infcmd.c (prepare_execution_command): New function, factored out
9282 from several execution commands.
9283 (run_command_1, continue_command, step_1, jump_command)
9284 (signal_command, until_command, advance_command, finish_command)
9285 (attach_command): Use prepare_execution_command.
9286
9287 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9288
9289 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9290 (MAX_BPTS): Define.
9291 (MAX_WPTS): Define.
9292 (struct arm_linux_thread_points): Removed.
9293 (struct arm_linux_process_info): New.
9294 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9295 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9296 (arm_linux_find_breakpoints_by_tid): Removed.
9297 (struct arch_lwp_info): New.
9298 (arm_linux_find_process_pid): New functions.
9299 (arm_linux_add_process): New functions.
9300 (arm_linux_process_info_get): New functions.
9301 (arm_linux_forget_process): New function.
9302 (arm_linux_get_debug_reg_state): New function.
9303 (struct update_registers_data): New.
9304 (update_registers_callback): New function.
9305 (arm_linux_insert_hw_breakpoint1): Updated.
9306 (arm_linux_remove_hw_breakpoint1): Updated.
9307 (arm_linux_insert_hw_breakpoint): Updated.
9308 (arm_linux_remove_hw_breakpoint): Updated.
9309 (arm_linux_insert_watchpoint): Updated.
9310 (arm_linux_remove_watchpoint): Updated.
9311 (arm_linux_new_thread): Updated.
9312 (arm_linux_prepare_to_resume): New function.
9313 (arm_linux_new_fork): New function.
9314 (_initialize_arm_linux_nat): Updated.
9315
9316 2014-03-12 Pedro Alves <palves@redhat.com>
9317
9318 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9319
9320 2014-03-12 Tom Tromey <tromey@redhat.com>
9321
9322 * inf-child.c (return_zero): New function.
9323 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9324 * aix-thread.c (aix_thread_inferior_created): New function.
9325 (aix_thread_attach): Remove.
9326 (init_aix_thread_ops): Don't set to_attach.
9327 (_initialize_aix_thread): Register inferior_created observer.
9328 * corelow.c (init_core_ops): Don't set to_attach or
9329 to_create_inferior.
9330 * exec.c (init_exec_ops): Don't set to_attach or
9331 to_create_inferior.
9332 * infcmd.c (run_command_1): Use find_run_target. Make direct
9333 target calls.
9334 (attach_command): Use find_attach_target. Make direct target
9335 calls.
9336 * record-btrace.c (init_record_btrace_ops): Don't set
9337 to_create_inferior.
9338 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9339 Remove.
9340 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9341 set to_create_inferior.
9342 * target.c (complete_target_initialization): Add assertion.
9343 (target_create_inferior): Remove.
9344 (find_default_attach, find_default_create_inferior): Remove.
9345 (find_attach_target, find_run_target): New functions.
9346 (find_default_is_async_p, find_default_can_async_p)
9347 (target_supports_non_stop, target_attach): Remove.
9348 (init_dummy_target): Don't set to_create_inferior or
9349 to_supports_non_stop.
9350 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9351 TARGET_DEFAULT_FUNC.
9352 <to_create_inferior>: Add comment.
9353 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9354 TARGET_DEFAULT_RETURN.
9355 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9356 (find_attach_target, find_run_target): Declare.
9357 (target_create_inferior): Remove.
9358 (target_has_execution_1): Update comment.
9359 (target_supports_non_stop): Remove.
9360 * target-delegates.c: Rebuild.
9361
9362 2014-03-12 Pedro Alves <palves@redhat.com>
9363
9364 * inf-child.h: Update comment to not mention Unix.
9365
9366 2014-03-12 Pedro Alves <palves@redhat.com>
9367
9368 * inf-child.c: Update top comment to not mention Unix. Add
9369 generic comment describing how this target is meant to be used.
9370 (inf_child_post_attach, inf_child_post_startup_inferior)
9371 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9372 Unix in comment.
9373
9374 2014-03-12 Pedro Alves <palves@redhat.com>
9375
9376 * nto-procfs.c: Include inf-child.h.
9377 (procfs_ops): Delete global.
9378 (procfs_can_run): Delete method.
9379 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9380 target pointer instead of referencing procfs_ops.
9381 (procfs_prepare_to_store): Delete.
9382 (init_procfs_ops): Delete function.
9383 (procfs_target): New function, based on init_procfs_ops, but
9384 inherit inf_child_target.
9385 (_initialize_procfs): Use procfs_target.
9386
9387 2014-03-12 Pedro Alves <palves@redhat.com>
9388
9389 * windows-nat.c: Include inf-child.h.
9390 (windows_ops): Delete global.
9391 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9392 methods.
9393 (init_windows_ops): Delete function.
9394 (windows_target): New function, based on init_windows_ops, but
9395 inherit inf_child_target.
9396 (_initialize_windows_nat): Use windows_target. Install x86
9397 specific target methods here.
9398
9399 2014-03-10 Doug Evans <xdje42@gmail.com>
9400
9401 * guile/guile.c (call_initialize_gdb_module): New function.
9402 (initialize_guile): Replace call to scm_init_guile with call to
9403 scm_with_guile.
9404
9405 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9406
9407 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9408 in call to TYPE_CODE macro.
9409
9410 2014-03-10 Jerome Guitton <guitton@adacore.com>
9411
9412 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9413 Resolve tagged types to full view.
9414
9415 2014-03-10 Hui Zhu <hui@codesourcery.com>
9416
9417 * target.h (target_insert_breakpoint): Remove "hardware" from its
9418 comments.
9419
9420 2014-03-07 Doug Evans <dje@google.com>
9421
9422 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9423
9424 2014-03-07 Doug Evans <dje@google.com>
9425
9426 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9427 Remove unused local comp_dir_attr. Assert exactly one of
9428 stub_comp_unit_die, stub_comp_dir is non-NULL.
9429
9430 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9431
9432 * target.h (complete_target_initialization, add_target):
9433 Add comment.
9434
9435 2014-03-07 Pedro Alves <palves@redhat.com>
9436
9437 * go32-nat.c: Include inf-child.h.
9438 (go32_ops): Delete global.
9439 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9440 Delete methods.
9441 (go32_create_inferior): Push the passed in target pointer instead
9442 of referencing go32_ops.
9443 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9444 (go32_target): New function, based on init_go32_ops, but inherit
9445 inf_child_target.
9446 (_initialize_go32_nat): Use go32_target. Move parts of
9447 init_go32_ops here.
9448
9449 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9450
9451 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9452 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9453 SYMBOL_VALUE_ADDRESS.
9454 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9455
9456 2014-03-06 Yao Qi <yao@codesourcery.com>
9457
9458 * breakpoint.c (get_tracepoint_by_number): Remove argument
9459 optional_p. All callers updated. Adjust comments. Update
9460 output message.
9461 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9462
9463 2014-03-06 Yao Qi <yao@codesourcery.com>
9464
9465 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9466 early if get_number returns zero. Use 'p' instead of 'args'.
9467
9468 2014-03-06 Yao Qi <yao@codesourcery.com>
9469
9470 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9471 message.
9472
9473 2014-03-06 Yao Qi <yao@codesourcery.com>
9474
9475 PR breakpoints/16508
9476 * tracepoint.c (check_trace_running): New function.
9477 (trace_find_command): Move code to check_trace_running and
9478 call check_trace_running.
9479 (trace_find_pc_command): Likewise.
9480 (trace_find_tracepoint_command): Likewise.
9481 (trace_find_line_command): Likewise.
9482 (trace_find_range_command): Likewise.
9483 * tracepoint.h (check_trace_running): Likewise.
9484 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9485
9486 2014-03-06 Yao Qi <yao@codesourcery.com>
9487
9488 * target.h (struct target_ops) <to_traceframe_info>: Use
9489 TARGET_DEFAULT_NORETURN (tcomplain ()).
9490 * target-delegates.c: Regenerated.
9491
9492 2014-03-05 Pedro Alves <palves@redhat.com>
9493
9494 PR gdb/16575
9495 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9496 void. Update comment.
9497 (dcache_xfer_memory): Delete.
9498 (dcache_read_memory_partial): New, based on the read bits of
9499 dcache_xfer_memory.
9500 (dcache_update): Add status parameter. Use ULONGEST for len, and
9501 adjust. Discard cache lines if the reason for the update was
9502 error.
9503 * dcache.h (dcache_xfer_memory): Delete declaration.
9504 (dcache_read_memory_partial): New declaration.
9505 (dcache_update): Update prototype.
9506 * target.c (raw_memory_xfer_partial): Update the dcache here.
9507 (memory_xfer_partial_1): Don't handle dcache writes here.
9508
9509 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9510
9511 * remote-sim.c (gdbsim_load): Add const to prog.
9512
9513 2014-03-03 Tom Tromey <tromey@redhat.com>
9514
9515 * elfread.c (probe_key): Change to bfd_data.
9516 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9517 now per-BFD, not per-objfile.
9518 * stap-probe.c (stap_probe_destroy): Update comment.
9519 (handle_stap_probe): Allocate on the per-BFD obstack.
9520
9521 2014-03-03 Tom Tromey <tromey@redhat.com>
9522
9523 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9524 * breakpoint.c (create_longjmp_master_breakpoint): Use
9525 get_probe_address.
9526 (add_location_to_breakpoint, bkpt_probe_insert_location)
9527 (bkpt_probe_remove_location): Update.
9528 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9529 * elfread.c (elf_symfile_relocate_probe): Remove.
9530 (elf_probe_fns): Update.
9531 (insert_exception_resume_breakpoint): Change type of "probe"
9532 parameter to bound_probe.
9533 (check_exception_resume): Update.
9534 * objfiles.c (objfile_relocate1): Don't relocate probes.
9535 * probe.c (bound_probe_s): New typedef.
9536 (parse_probes): Use get_probe_address. Set sal's objfile.
9537 (find_probe_by_pc): Return a bound_probe.
9538 (collect_probes): Return a VEC(bound_probe_s).
9539 (compare_probes): Update.
9540 (gen_ui_out_table_header_info): Change type of "probes"
9541 parameter. Update.
9542 (info_probes_for_ops): Update.
9543 (get_probe_address): New function.
9544 (probe_safe_evaluate_at_pc): Update.
9545 * probe.h (struct probe_ops) <get_probe_address>: New field.
9546 <set_semaphore, clear_semaphore>: Add objfile parameter.
9547 (struct probe) <objfile>: Remove field.
9548 <arch>: New field.
9549 <address>: Update comment.
9550 (struct bound_probe): New.
9551 (find_probe_by_pc): Return a bound_probe.
9552 (get_probe_address): Declare.
9553 * solib-svr4.c (struct probe_and_action) <address>: New field.
9554 (hash_probe_and_action, equal_probe_and_action): Update.
9555 (register_solib_event_probe): Add address parameter.
9556 (solib_event_probe_at): Update.
9557 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9558 get_probe_address.
9559 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9560 (stap_get_probe_address): New function.
9561 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9562 (compile_probe_arg): Update.
9563 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9564 address.
9565 (handle_stap_probe): Don't relocate the probe.
9566 (stap_relocate): Remove.
9567 (stap_gen_info_probes_table_values): Update.
9568 (stap_probe_ops): Remove stap_relocate.
9569 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9570 (debug_sym_probe_fns): Update.
9571 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9572 * symtab.c (init_sal): Use memset.
9573 * symtab.h (struct symtab_and_line) <objfile>: New field.
9574 * tracepoint.c (start_tracing, stop_tracing): Update.
9575
9576 2014-03-03 Tom Tromey <tromey@redhat.com>
9577
9578 * probe.h (parse_probes, find_probe_by_pc)
9579 (find_probes_in_objfile): Fix comments.
9580
9581 2014-03-02 Doug Evans <xdje42@gmail.com>
9582
9583 * infrun.c (handle_signal_stop): Replace test for
9584 TARGET_WAITKIND_STOPPED with an assert.
9585
9586 2014-03-02 Doug Evans <xdje42@gmail.com>
9587
9588 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9589
9590 2014-03-02 Doug Evans <xdje42@gmail.com>
9591
9592 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9593
9594 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9595
9596 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9597
9598 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9599
9600 * i386obsd-nat.c: Include "obsd-nat.h".
9601 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9602 add_target.
9603 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9604
9605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9606
9607 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9608
9609 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9610
9611 * mips64obsd-nat.c: Include "obsd-nath".
9612 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9613 add_target
9614 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9615
9616 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9617
9618 * amd64obsd-nat.c: Include "obsd-nat,h.
9619 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9620 add_target.
9621 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9622
9623 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9624
9625 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9626 (find_overload_match): Update call to find_oload_champ.
9627 (find_oload_champ_namespace_loop): Likewise
9628
9629 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9630
9631 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9632
9633 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9634 * config/sparc/obsd64.mh: New file.
9635 * sparc64obsd-nat.c: New file.
9636
9637 * obsd-nat.h: New file.
9638 * obsd-nat.c: New file.
9639 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9640 (ALLDEPFILES): Add obsd-nat.c.
9641
9642 2014-02-28 Tom Tromey <tromey@redhat.com>
9643
9644 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9645 * cli-out.h (cli_ui_out_impl): Now const.
9646 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9647 * ui-out.c (struct ui_out) <impl>: Now const.
9648 (default_ui_out_impl): Now const.
9649 (ui_out_new): Make 'impl' parameter const.
9650 * ui-out.h (ui_out_new): Update.
9651
9652 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9653
9654 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9655
9656 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9657
9658 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9659
9660 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 Additional PR 8882 fix.
9663 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9664
9665 2014-02-27 Pedro Alves <palves@redhat.com>
9666
9667 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9668 isn't set.
9669
9670 2014-02-27 Pedro Alves <palves@redhat.com>
9671
9672 PR 12702
9673 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9674 * nat/linux-waitpid.c: Include string.h.
9675 (status_to_str): Moved here and made extern.
9676 * nat/linux-waitpid.h (status_to_str): New declaration.
9677
9678 2014-02-27 Hui Zhu <hui@codesourcery.com>
9679
9680 PR 12702
9681 * infrun.c (ptid_match): Move ...
9682 * common/ptid.c (ptid_match): ... here.
9683 * inferior.h (ptid_match): Move ...
9684 * common/ptid.h (ptid_match): ... here.
9685
9686 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9687
9688 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9689 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9690 gdb_target_obs.
9691
9692 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9693
9694 * obsd-tdep.c (obsd_auxv_parse): New function.
9695 (obsd_init_abi): Set auxv_parse.
9696
9697 * gdbarch.sh (auxv_parse): New.
9698 * gdbarch.h: Regenerated.
9699 * gdbarch.c: Regenerated.
9700 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9701
9702 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9703
9704 * guile/scm-value.c (gdbscm_history_append_x): New function.
9705 (value_functions): Add it.
9706
9707 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9708
9709 * dwarf2read.c (attr_value_as_address): New function.
9710 (dwarf2_find_base_address, read_call_site_scope): Use
9711 attr_value_as_address in place of DW_ADDR.
9712 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9713 the low and high addresses. Slight rework of the handling
9714 of the high pc being a constant form, and limit it to
9715 DWARF verson 4 or higher.
9716 (dwarf2_record_block_ranges): Likewise.
9717 (read_partial_die): Likewise.
9718 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9719
9720 2014-02-26 Tom Tromey <tromey@redhat.com>
9721
9722 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9723
9724 2014-02-26 Tom Tromey <tromey@redhat.com>
9725
9726 * elfread.c (elf_read_minimal_symbols): Return early if
9727 minimal symbols have already been read. Add "ei" parameter.
9728 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9729 * minsyms.c (prim_record_minimal_symbol_full): Update.
9730 * objfiles.h (struct objstats) <n_minsyms>: Move...
9731 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9732 * symmisc.c (print_objfile_statistics): Update.
9733
9734 2014-02-26 Tom Tromey <tromey@redhat.com>
9735
9736 * elfread.c (elf_read_minimal_symbols): New function, from
9737 elf_symfile_read.
9738 (elf_symfile_read): Call it.
9739
9740 2014-02-26 Tom Tromey <tromey@redhat.com>
9741
9742 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9743 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9744 (lookup_minimal_symbol_solib_trampoline)
9745 (lookup_minimal_symbol_by_pc_section_1)
9746 (lookup_minimal_symbol_and_objfile): Update.
9747 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9748 Don't allocate a minimal symbol if minsyms have already been read.
9749 (build_minimal_symbol_hash_tables): Update.
9750 (install_minimal_symbols): Do nothing if minsyms already read.
9751 Use the per-BFD obstack.
9752 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9753 * objfiles.c (allocate_objfile): Call
9754 terminate_minimal_symbol_table later.
9755 (have_minimal_symbols): Update.
9756 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9757 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9758 Move from struct objfile.
9759 <minsyms_read>: New field.
9760 (struct objfile) <msymbols, minimal_symbol_count,
9761 msymbol_hash, msymbol_demangled_hash>: Move.
9762 (ALL_OBJFILE_MSYMBOLS): Update.
9763 * symfile.c (read_symbols): Set minsyms_read.
9764 (reread_symbols): Update.
9765 * symmisc.c (dump_objfile, dump_msymbols): Update.
9766
9767 2014-02-26 Tom Tromey <tromey@redhat.com>
9768
9769 * minsyms.c (msymbols_sort): Remove.
9770 * minsyms.h (msymbols_sort): Remove.
9771 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9772 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9773 * elfread.c (elf_symtab_read): Don't add section offsets.
9774 * xcoffread.c (record_minimal_symbol): Don't add section offset
9775 to minimal symbol address.
9776 * somread.c (text_offset, data_offset): Remove.
9777 (som_symtab_read): Don't add section offsets to minimal symbol
9778 addresses.
9779 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9780 Don't add section offsets to minimal symbols.
9781 * coffread.c (coff_symtab_read): Don't add section offsets
9782 to minimal symbol addresses.
9783 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9784 to minimal symbol addresses.
9785 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9786 section offset to minimal symbol addresses.
9787 * mdebugread.c (parse_partial_symbols): Don't add section
9788 offset to minimal symbol addresses.
9789 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9790 offset to minimal symbol addresses.
9791
9792 2014-02-26 Tom Tromey <tromey@redhat.com>
9793
9794 * ada-lang.c (ada_main_name): Update.
9795 (ada_add_standard_exceptions): Update.
9796 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9797 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9798 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9799 * auxv.c (ld_so_xfer_auxv): Update.
9800 * avr-tdep.c (avr_scan_prologue): Update.
9801 * ax-gdb.c (gen_var_ref): Update.
9802 * blockframe.c (get_pc_function_start)
9803 (find_pc_partial_function_gnu_ifunc): Update.
9804 * breakpoint.c (create_overlay_event_breakpoint)
9805 (create_longjmp_master_breakpoint)
9806 (create_std_terminate_master_breakpoint)
9807 (create_exception_master_breakpoint): Update.
9808 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9809 * c-valprint.c (c_val_print): Update.
9810 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9811 * common/agent.c (agent_look_up_symbols): Update.
9812 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9813 * dwarf2loc.c (call_site_to_target_addr): Update.
9814 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9815 * elfread.c (elf_gnu_ifunc_record_cache)
9816 (elf_gnu_ifunc_resolve_by_got): Update.
9817 * findvar.c (default_read_var_value): Update.
9818 * frame.c (inside_main_func): Update.
9819 * frv-tdep.c (frv_frame_this_id): Update.
9820 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9821 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9822 Update.
9823 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9824 (hppa_hpux_find_dummy_bpaddr): Update.
9825 * hppa-tdep.c (hppa_symbol_address): Update.
9826 * infcmd.c (until_next_command): Update.
9827 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9828 Update.
9829 * linespec.c (minsym_found, add_minsym): Update.
9830 * linux-nat.c (get_signo): Update.
9831 * linux-thread-db.c (inferior_has_bug): Update.
9832 * m32c-tdep.c (m32c_return_value)
9833 (m32c_m16c_address_to_pointer): Update.
9834 * m32r-tdep.c (m32r_frame_this_id): Update.
9835 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9836 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9837 * maint.c (maintenance_translate_address): Update.
9838 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9839 (frob_address): New function.
9840 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9841 frob_address. Rename parameter to "pc_in".
9842 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9843 addresses.
9844 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9845 Update.
9846 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9847 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9848 * objc-lang.c (find_objc_msgsend): Update.
9849 * objfiles.c (objfile_relocate1): Update.
9850 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9851 * p-valprint.c (pascal_val_print): Update.
9852 * parse.c (write_exp_msymbol): Update.
9853 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9854 (ppc_elfv2_skip_entrypoint): Update.
9855 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9856 * printcmd.c (build_address_symbolic, msym_info)
9857 (address_info): Update.
9858 * proc-service.c (ps_pglobal_lookup): Update.
9859 * psymtab.c (find_pc_sect_psymtab_closer)
9860 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9861 Change msymbol parameter to bound_minimal_symbol.
9862 * ravenscar-thread.c (get_running_thread_id): Update.
9863 * remote.c (remote_check_symbols): Update.
9864 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9865 address.
9866 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9867 * solib-dsbt.c (lm_base): Update.
9868 * solib-frv.c (lm_base, main_got): Update.
9869 * solib-irix.c (locate_base): Update.
9870 * solib-som.c (som_solib_create_inferior_hook)
9871 (link_map_start): Update.
9872 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9873 * solib-svr4.c (elf_locate_base, enable_break): Update.
9874 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9875 (flush_ea_cache): Update.
9876 * stabsread.c (define_symbol, scan_file_globals): Update.
9877 * stack.c (find_frame_funname): Update.
9878 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9879 (debug_qf_find_pc_sect_symtab): Update.
9880 * symfile.c (simple_read_overlay_table)
9881 (simple_overlay_update): Update.
9882 * symfile.h (struct quick_symbol_functions)
9883 <find_pc_sect_symtab>: Change type of msymbol to
9884 bound_minimal_symbol.
9885 * symmisc.c (dump_msymbols): Update.
9886 * symtab.c (find_pc_sect_symtab_via_partial)
9887 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9888 (search_symbols, print_msymbol_info): Update.
9889 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9890 (MSYMBOL_VALUE_ADDRESS): Redefine.
9891 (BMSYMBOL_VALUE_ADDRESS): New macro.
9892 * tracepoint.c (scope_info): Update.
9893 * tui/tui-disasm.c (tui_find_disassembly_address)
9894 (tui_get_begin_asm_address): Update.
9895 * valops.c (find_function_in_inferior): Update.
9896 * value.c (value_static_field, value_fn_field): Update.
9897
9898 2014-02-26 Tom Tromey <tromey@redhat.com>
9899
9900 * ada-lang.c (ada_update_initial_language): Update.
9901 (ada_main_name, ada_has_this_exception_support): Update.
9902 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9903 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9904 * arm-tdep.c (arm_skip_stub): Update.
9905 * auxv.c (ld_so_xfer_auxv): Update.
9906 * avr-tdep.c (avr_scan_prologue): Update.
9907 * ax-gdb.c (gen_var_ref): Update.
9908 * breakpoint.c (struct breakpoint_objfile_data)
9909 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9910 type to bound_minimal_symbol.
9911 (create_overlay_event_breakpoint)
9912 (create_longjmp_master_breakpoint)
9913 (create_std_terminate_master_breakpoint)
9914 (create_exception_master_breakpoint): Update.
9915 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9916 * c-exp.y (classify_name): Update.
9917 * coffread.c (coff_symfile_read): Update.
9918 * common/agent.c (agent_look_up_symbols): Update.
9919 * d-lang.c (d_main_name): Update.
9920 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9921 * dec-thread.c (enable_dec_thread): Update.
9922 * dwarf2loc.c (call_site_to_target_addr): Update.
9923 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9924 * eval.c (evaluate_subexp_standard): Update.
9925 * findvar.c (struct minsym_lookup_data) <result>: Change type
9926 to bound_minimal_symbol.
9927 <objfile>: Remove.
9928 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9929 * frame.c (inside_main_func): Update.
9930 * frv-tdep.c (frv_frame_this_id): Update.
9931 * gcore.c (call_target_sbrk): Update.
9932 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9933 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9934 Update.
9935 * go-lang.c (go_main_name): Update.
9936 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9937 (hppa_hpux_find_import_stub_for_addr): Update.
9938 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9939 Update. Change return type.
9940 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9941 type.
9942 * jit.c (jit_breakpoint_re_set_internal): Update.
9943 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9944 Update.
9945 * linux-nat.c (get_signo): Update.
9946 * linux-thread-db.c (inferior_has_bug): Update
9947 * m32c-tdep.c (m32c_return_value)
9948 (m32c_m16c_address_to_pointer): Update.
9949 * m32r-tdep.c (m32r_frame_this_id): Update.
9950 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9951 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9952 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9953 lookup_minimal_symbol. Change return type.
9954 (lookup_minimal_symbol): Remove.
9955 (lookup_bound_minimal_symbol): Update.
9956 (lookup_minimal_symbol_text): Change return type.
9957 (lookup_minimal_symbol_solib_trampoline): Change return type.
9958 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9959 (lookup_minimal_symbol_solib_trampoline): Change return type.
9960 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9961 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9962 (value_nsstring, find_imps): Update.
9963 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9964 * p-lang.c (pascal_main_name): Update.
9965 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9966 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9967 * proc-service.c (ps_pglobal_lookup): Update.
9968 * ravenscar-thread.c (get_running_thread_msymbol): Change
9969 return type.
9970 (has_ravenscar_runtime, get_running_thread_id): Update.
9971 * remote.c (remote_check_symbols): Update.
9972 * sol-thread.c (ps_pglobal_lookup): Update.
9973 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9974 * solib-dsbt.c (lm_base): Update.
9975 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9976 Update.
9977 * solib-irix.c (locate_base): Update.
9978 * solib-som.c (som_solib_create_inferior_hook)
9979 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9980 Update.
9981 * solib-spu.c (spu_enable_break): Update.
9982 * solib-svr4.c (elf_locate_base, enable_break): Update.
9983 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9984 (flush_ea_cache): Update.
9985 * stabsread.c (define_symbol): Update.
9986 * symfile.c (simple_read_overlay_table): Update.
9987 * symtab.c (find_pc_sect_line): Update.
9988 * tracepoint.c (scope_info): Update.
9989 * tui-disasm.c (tui_get_begin_asm_address): Update.
9990 * value.c (value_static_field): Update.
9991
9992 2014-02-26 Tom Tromey <tromey@redhat.com>
9993
9994 * minsyms.c (prim_record_minimal_symbol_full): Use
9995 SET_MSYMBOL_VALUE_ADDRESS.
9996 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9997 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9998 SET_MSYMBOL_VALUE_ADDRESS.
9999 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10000 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10001
10002 2014-02-26 Tom Tromey <tromey@redhat.com>
10003
10004 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10005 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10006 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10007 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10008 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10009 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10010 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10011 * ada-lang.c (ada_main_name): Update.
10012 (ada_lookup_simple_minsym): Update.
10013 (ada_make_symbol_completion_list): Update.
10014 (ada_add_standard_exceptions): Update.
10015 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10016 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10017 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10018 * arm-tdep.c (skip_prologue_function): Update.
10019 (arm_skip_stack_protector, arm_skip_stub): Update.
10020 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10021 (arm_wince_skip_main_prologue): Update.
10022 * auxv.c (ld_so_xfer_auxv): Update.
10023 * avr-tdep.c (avr_scan_prologue): Update.
10024 * ax-gdb.c (gen_var_ref): Update.
10025 * block.c (call_site_for_pc): Update.
10026 * blockframe.c (get_pc_function_start): Update.
10027 (find_pc_partial_function_gnu_ifunc): Update.
10028 * breakpoint.c (create_overlay_event_breakpoint): Update.
10029 (create_longjmp_master_breakpoint): Update.
10030 (create_std_terminate_master_breakpoint): Update.
10031 (create_exception_master_breakpoint): Update.
10032 (resolve_sal_pc): Update.
10033 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10034 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10035 Update.
10036 * c-valprint.c (c_val_print): Update.
10037 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10038 * coffread.c (coff_symfile_read): Update.
10039 * common/agent.c (agent_look_up_symbols): Update.
10040 * dbxread.c (find_stab_function_addr): Update.
10041 (end_psymtab): Update.
10042 * dwarf2loc.c (call_site_to_target_addr): Update.
10043 (func_verify_no_selftailcall): Update.
10044 (tailcall_dump): Update.
10045 (call_site_find_chain_1): Update.
10046 (dwarf_expr_reg_to_entry_parameter): Update.
10047 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10048 (elf_gnu_ifunc_resolve_by_got): Update.
10049 * f-valprint.c (info_common_command): Update.
10050 * findvar.c (read_var_value): Update.
10051 * frame.c (get_prev_frame_1): Update.
10052 (inside_main_func): Update.
10053 * frv-tdep.c (frv_skip_main_prologue): Update.
10054 (frv_frame_this_id): Update.
10055 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10056 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10057 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10058 (gnuv3_skip_trampoline): Update.
10059 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10060 (hppa64_hpux_in_solib_call_trampoline): Update.
10061 (hppa_hpux_skip_trampoline_code): Update.
10062 (hppa64_hpux_search_dummy_call_sequence): Update.
10063 (hppa_hpux_find_import_stub_for_addr): Update.
10064 (hppa_hpux_find_dummy_bpaddr): Update.
10065 * hppa-tdep.c (hppa_symbol_address)
10066 (hppa_lookup_stub_minimal_symbol): Update.
10067 * i386-tdep.c (i386_skip_main_prologue): Update.
10068 (i386_pe_skip_trampoline_code): Update.
10069 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10070 * infcall.c (get_function_name): Update.
10071 * infcmd.c (until_next_command): Update.
10072 * jit.c (jit_breakpoint_re_set_internal): Update.
10073 (jit_inferior_init): Update.
10074 * linespec.c (minsym_found): Update.
10075 (add_minsym): Update.
10076 * linux-fork.c (info_checkpoints_command): Update.
10077 * linux-nat.c (get_signo): Update.
10078 * linux-thread-db.c (inferior_has_bug): Update.
10079 * m32c-tdep.c (m32c_return_value): Update.
10080 (m32c_m16c_address_to_pointer): Update.
10081 (m32c_m16c_pointer_to_address): Update.
10082 * m32r-tdep.c (m32r_frame_this_id): Update.
10083 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10084 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10085 * maint.c (maintenance_translate_address): Update.
10086 * minsyms.c (add_minsym_to_hash_table): Update.
10087 (add_minsym_to_demangled_hash_table): Update.
10088 (msymbol_objfile): Update.
10089 (lookup_minimal_symbol): Update.
10090 (iterate_over_minimal_symbols): Update.
10091 (lookup_minimal_symbol_text): Update.
10092 (lookup_minimal_symbol_by_pc_name): Update.
10093 (lookup_minimal_symbol_solib_trampoline): Update.
10094 (lookup_minimal_symbol_by_pc_section_1): Update.
10095 (lookup_minimal_symbol_and_objfile): Update.
10096 (prim_record_minimal_symbol_full): Update.
10097 (compare_minimal_symbols): Update.
10098 (compact_minimal_symbols): Update.
10099 (build_minimal_symbol_hash_tables): Update.
10100 (install_minimal_symbols): Update.
10101 (terminate_minimal_symbol_table): Update.
10102 (find_solib_trampoline_target): Update.
10103 (minimal_symbol_upper_bound): Update.
10104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10105 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10106 (mips_skip_pic_trampoline_code): Update.
10107 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10108 * objc-lang.c (selectors_info): Update.
10109 (classes_info): Update.
10110 (find_methods): Update.
10111 (find_imps): Update.
10112 (find_objc_msgsend): Update.
10113 * objfiles.c (objfile_relocate1): Update.
10114 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10115 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10116 * p-valprint.c (pascal_val_print): Update.
10117 * parse.c (write_exp_msymbol): Update.
10118 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10119 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10120 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10121 * printcmd.c (build_address_symbolic): Update.
10122 (sym_info): Update.
10123 (address_info): Update.
10124 * proc-service.c (ps_pglobal_lookup): Update.
10125 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10126 (find_pc_sect_psymtab): Update.
10127 * python/py-framefilter.c (py_print_frame): Update.
10128 * ravenscar-thread.c (get_running_thread_id): Update.
10129 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10130 Update.
10131 * remote.c (remote_check_symbols): Update.
10132 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10133 (rs6000_skip_trampoline_code): Update.
10134 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10135 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10136 * solib-dsbt.c (lm_base): Update.
10137 * solib-frv.c (lm_base): Update.
10138 (main_got): Update.
10139 * solib-irix.c (locate_base): Update.
10140 * solib-som.c (som_solib_create_inferior_hook): Update.
10141 (som_solib_desire_dynamic_linker_symbols): Update.
10142 (link_map_start): Update.
10143 * solib-spu.c (spu_enable_break): Update.
10144 (ocl_enable_break): Update.
10145 * solib-svr4.c (elf_locate_base): Update.
10146 (enable_break): Update.
10147 * spu-tdep.c (spu_get_overlay_table): Update.
10148 (spu_catch_start): Update.
10149 (flush_ea_cache): Update.
10150 * stabsread.c (define_symbol): Update.
10151 (scan_file_globals): Update.
10152 * stack.c (find_frame_funname): Update.
10153 (frame_info): Update.
10154 * symfile.c (simple_read_overlay_table): Update.
10155 (simple_overlay_update): Update.
10156 * symmisc.c (dump_msymbols): Update.
10157 * symtab.c (fixup_section): Update.
10158 (find_pc_sect_line): Update.
10159 (skip_prologue_sal): Update.
10160 (search_symbols): Update.
10161 (print_msymbol_info): Update.
10162 (rbreak_command): Update.
10163 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10164 (completion_list_objc_symbol): Update.
10165 (default_make_symbol_completion_list_break_on): Update.
10166 * tracepoint.c (scope_info): Update.
10167 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10168 (tui_get_begin_asm_address): Update.
10169 * valops.c (find_function_in_inferior): Update.
10170 * value.c (value_static_field): Update.
10171 (value_fn_field): Update.
10172
10173 2014-02-26 Tom Tromey <tromey@redhat.com>
10174
10175 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10176 bound minimal symbols. Move code that knows about minsym
10177 table layout...
10178 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10179 function.
10180 * minsyms.h (minimal_symbol_upper_bound): Declare.
10181 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10182 minimal_symbol_upper_bound.
10183
10184 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10185
10186 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10187 Use the type's name if its basic type does not have a tag.
10188
10189 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10190
10191 * dwarf2read.c (read_subrange_type): Add comment.
10192
10193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10194
10195 * dwarf2read.c (update_enumeration_type_from_children): New
10196 function, mostly extracted from process_structure_scope.
10197 (read_enumeration_type): Call update_enumeration_type_from_children.
10198 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10199 and flag_flag_enum fields.
10200
10201 2014-02-26 Pedro Alves <palves@redhat.com>
10202
10203 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10204 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10205 to_xfer_partial method.
10206
10207 2014-02-26 Pedro Alves <palves@redhat.com>
10208
10209 * target.c (complete_target_initialization): Don't install
10210 default_xfer_partial as to_xfer_partial hook.
10211 (nomemory): Delete.
10212 (update_current_target): Don't INHERIT nor de_fault
10213 deprecated_xfer_memory. Delete de_fault macro.
10214 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10215 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10216 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10217 field.
10218
10219 2014-02-26 Pedro Alves <palves@redhat.com>
10220
10221 * go32-nat.c (my_write_child): New function.
10222 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10223 (go32_xfer_partial): New function.
10224 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10225 Instead install a to_xfer_partial hook.
10226
10227 2014-02-26 Pedro Alves <palves@redhat.com>
10228
10229 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10230 to_xfer_partial helper. Rewrite.
10231 (procfs_xfer_partial): New function.
10232 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10233 Install a to_xfer_partial hook.
10234
10235 2014-02-26 Pedro Alves <palves@redhat.com>
10236
10237 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10238 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10239 (m32r_xfer_partial): New function.
10240 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10241 Install a to_xfer_partial hook.
10242
10243 2014-02-26 Pedro Alves <palves@redhat.com>
10244
10245 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10246 helper.
10247 (mips_xfer_partial): New function.
10248 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10249 hook. Install a to_xfer_partial hook.
10250
10251 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10252
10253 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10254 * gdbtypes.c (create_array_type_with_stride): New function,
10255 renaming create_array_type, but with an added parameter
10256 called "bit_stride".
10257 (create_array_type): Re-implement using
10258 create_array_type_with_stride.
10259 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10260 and DW_AT_bit_stride attributes.
10261
10262 2014-02-26 Pedro Alves <palves@redhat.com>
10263
10264 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10265 task-specific breakpoints.
10266
10267 2014-02-25 Pedro Alves <palves@redhat.com>
10268
10269 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10270 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10271
10272 2014-02-25 Stan Shebs <stan@codesourcery.com>
10273
10274 * defs.h: Annotate comments for Doxygen.
10275
10276 2014-02-25 Tom Tromey <tromey@redhat.com>
10277
10278 * target.h (target_ignore): Don't declare.
10279 * target.c (target_ignore): Remove.
10280
10281 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10282
10283 PR gdb/16626
10284 * auto-load.c (auto_load_objfile_script_1): Change filename to
10285 debugfile.
10286
10287 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10288
10289 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10290 documentation. Adjust prototype to match the target_ops
10291 to_xfer_partial method. Adjust implementation accordingly.
10292
10293 2014-02-25 Hui Zhu <hui@codesourcery.com>
10294
10295 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10296 to_traceframe_info.
10297
10298 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10299
10300 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10301 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10302 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10303 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10304 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10305 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10306 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10307 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10308 New constants.
10309 (rl78_register_type): Use a data pointer type for SP and
10310 new pseudo registers mentioned above. Use a 16 bit integer
10311 type for all other register pairs.
10312 (rl78_register_name, rl78_g10_register_name): Update for
10313 new pseudo registers.
10314 (rl78_pseudo_register_read): Likewise.
10315 (rl78_pseudo_register_write): Likewise.
10316 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10317 to the newly added pseudo registers.
10318
10319 2014-02-24 Doug Evans <dje@google.com>
10320
10321 * value.c (record_latest_value): Fix comment.
10322 * printcmd.c (print_command_1): Remove code to handle -1 return from
10323 record_latest_value.
10324
10325 2014-02-24 Pedro Alves <palves@redhat.com>
10326
10327 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10328 deprecated_xfer_memory hook.
10329 (procfs_xfer_partial): Call procfs_xfer_memory instead
10330 of the deprecated_xfer_memory target hook.
10331 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10332 helper.
10333
10334 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10335
10336 * windows-nat.c (windows_xfer_shared_libraries): Return
10337 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10338 requested object is TARGET_OBJECT_LIBRARIES.
10339
10340 2014-02-24 Yao Qi <yao@codesourcery.com>
10341
10342 * target.h (enum target_xfer_status)
10343 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10344 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10345 explicitly. New.
10346 * corefile.c (memory_error_message): User updated.
10347 * exec.c (section_table_read_available_memory): Likewise.
10348 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10349 * target.c (target_xfer_status_to_string): Likewise.
10350 (raw_memory_xfer_partial): Likewise.
10351 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10352 * valops.c (read_value_memory): Likewise.
10353 * exec.h: Update comments.
10354
10355 2014-02-24 Yao Qi <yao@codesourcery.com>
10356
10357 * target.c (target_xfer_status_to_string): Rename argument err
10358 to status.
10359 * target.h (target_xfer_status_to_string): Update declaration.
10360 Replace target_xfer_error_to_string with
10361 target_xfer_status_to_string in comment.
10362
10363 2014-02-24 Yao Qi <yao@codesourcery.com>
10364
10365 * mips-linux-nat.c (super_close): Update its type.
10366 (mips_linux_close): Pass 'self' to super_close.
10367
10368 2014-02-24 Yao Qi <yao@codesourcery.com>
10369
10370 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10371 * corefile.c (read_memory): Adjusted.
10372 * target.c (target_write_with_progress): Adjusted.
10373
10374 2014-02-23 Yao Qi <yao@codesourcery.com>
10375
10376 Revert two patches:
10377
10378 2013-10-25 Yao Qi <yao@codesourcery.com>
10379
10380 * remote.c (remote_traceframe_info): Return early if
10381 traceframe is not selected.
10382
10383 2013-07-19 Yao Qi <yao@codesourcery.com>
10384
10385 * target.c (update_current_target): Change the default action
10386 of 'to_traceframe_info' from tcomplain to return_zero.
10387 * target.h (struct target_ops) <to_traceframe_info>: Add more
10388 comments.
10389
10390 2014-02-23 Yao Qi <yao@codesourcery.com>
10391
10392 * valops.c (read_value_memory): Rewrite it. Call
10393 target_xfer_partial in a loop.
10394 * exec.h (section_table_available_memory): Remove declaration.
10395 Move comments to ...
10396 * exec.c (section_table_available_memory): ... here. Make it
10397 static.
10398
10399 2014-02-23 Yao Qi <yao@codesourcery.com>
10400
10401 * exec.c (section_table_read_available_memory): New function.
10402 * exec.h (section_table_read_available_memory): Declare.
10403 * ctf.c (ctf_xfer_partial): Call
10404 section_table_read_available_memory.
10405 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10406
10407 2014-02-23 Yao Qi <yao@codesourcery.com>
10408
10409 * ctf.c (ctf_xfer_partial): Move code to ...
10410 * exec.c (exec_read_partial_read_only): ... it. New function.
10411 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10412 * tracefile.c: Include "exec.h".
10413 * exec.h (exec_read_partial_read_only): Declare.
10414
10415 2014-02-23 Yao Qi <yao@codesourcery.com>
10416
10417 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10418 (tfile_has_memory): Remove.
10419 (init_tfile_ops): Don't set fields to_has_all_memory and
10420 to_has_memory of tfile_ops.
10421 * tracefile.c (tracefile_has_all_memory): New function.
10422 (tracefile_has_memory): New function.
10423 (init_tracefile_ops): Initialize fields to_has_all_memory and
10424 to_has_memory of 'ops'.
10425
10426 2014-02-23 Yao Qi <yao@codesourcery.com>
10427
10428 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10429 (ctf_thread_alive, ctf_get_trace_status): Remove.
10430 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10431 init_tracefile_ops.
10432 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10433 (tfile_has_stack, tfile_has_registers): Remove.
10434 (tfile_thread_alive): Remove.
10435 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10436 init_tracefile_ops.
10437 * tracefile.c (tracefile_has_stack): New function.
10438 (tracefile_has_registers): New function.
10439 (tracefile_thread_alive): New function.
10440 (tracefile_get_trace_status): New function.
10441 (init_tracefile_ops): New function.
10442 * tracefile.h (init_tracefile_ops): Declare.
10443
10444 2014-02-23 Yao Qi <yao@codesourcery.com>
10445
10446 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10447 (O_LARGEFILE): Likewise.
10448 (tfile_ops): Likewise.
10449 (TRACE_HEADER_SIZE): Likewise.
10450 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10451 (cur_data_size): Likewise.
10452 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10453 (tfile_close, tfile_files_info): Likewise.
10454 (tfile_get_trace_status): Likewise.
10455 (tfile_get_tracepoint_status): Likewise.
10456 (tfile_get_traceframe_address): Likewise.
10457 (tfile_trace_find, match_blocktype): Likewise.
10458 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10459 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10460 (tfile_get_trace_state_variable_value): Likewise.
10461 (tfile_has_all_memory, tfile_has_memory): Likewise.
10462 (tfile_has_stack, tfile_has_registers): Likewise.
10463 (tfile_thread_alive, build_traceframe_info): Likewise.
10464 (tfile_traceframe_info, init_tfile_ops): Likewise.
10465 (_initialize_tracepoint): Don't call init_tfile_ops
10466 and add_target_with_completer.
10467 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10468 exec.h, completer.h and filenames.h.
10469 (_initialize_tracefile_tfile): New function.
10470
10471 2014-02-23 Yao Qi <yao@codesourcery.com>
10472
10473 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10474 tracefile-tfile.o.
10475 (HFILES_NO_SRCDIR): Add tracefile.h.
10476 * ctf.c: Include "tracefile.h".
10477 * tracefile.h: New file.
10478 * tracefile.c: New file
10479 * tracefile-tfile.c: New file.
10480 * tracepoint.c: Include "tracefile.h".
10481 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10482 (stop_reason_names): Add const.
10483 (trace_file_writer_xfree): Move it to tracefile.c.
10484 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10485 (trace_save_ctf): Likewise.
10486 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10487 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10488 (tfile_write_header, tfile_write_regblock_type): Likewise.
10489 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10490 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10491 (tfile_write_raw_data, tfile_end): Likewise.
10492 (tfile_trace_file_writer_new): Likewise.
10493 (free_uploaded_tp): Make it extern.
10494 (free_uploaded_tsv): Make it extern.
10495 (_initialize_tracepoint): Move code to register command 'tsave'
10496 to tracefile.c.
10497 * tracepoint.h (stop_reason_names): Declare.
10498 (struct trace_frame_write_ops): Move it to tracefile.h.
10499 (struct trace_file_write_ops): Likewise.
10500 (struct trace_file_writer): Likewise.
10501 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10502
10503 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10504
10505 PR gdb/16594
10506 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10507 process name.
10508 (get_cores_used_by_process): New parameter num_cores, use it.
10509 (linux_xfer_osdata_processes): Pass num_cores to it.
10510 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10511 process name.
10512
10513 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10514
10515 * target.c (memory_xfer_partial): Fix length arg in call to
10516 breakpoint_xfer_memory.
10517
10518 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10519
10520 PR tdep/16397
10521 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10522 number comes after the + or - signs. Adjust length of register
10523 name to be extracted.
10524
10525 2014-02-20 Tom Tromey <tromey@redhat.com>
10526
10527 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10528 (ada_varobj_ops): Mark "extern".
10529
10530 2014-02-20 Tom Tromey <tromey@redhat.com>
10531
10532 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10533
10534 2014-02-20 Doug Evans <xdje42@gmail.com>
10535
10536 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10537 All callers updated.
10538 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10539 All callers updated.
10540 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10541 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10542
10543 2014-02-20 lin zuojian <manjian2006@gmail.com>
10544 Joel Brobecker <brobecker@adacore.com>
10545 Doug Evans <xdje42@gmail.com>
10546
10547 PR symtab/16581
10548 * dwarf2read.c (struct die_info): New member in_process.
10549 (reset_die_in_process): New function.
10550 (process_die): Set it at the start, reset when returning.
10551 (inherit_abstract_dies): Only call process_die if origin_child_die
10552 not already being processed.
10553
10554 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10555
10556 * windows-nat.c (handle_unload_dll): Add function documentation.
10557 (do_initial_windows_stuff): Add comment explaining why we wait
10558 until after inferior initialization has finished before
10559 processing all DLLs.
10560
10561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10562
10563 * windows-nat.c (get_module_name): Delete.
10564 (windows_get_exec_module_filename): New function, mostly
10565 inspired from get_module_name.
10566 (windows_pid_to_exec_file): Replace call to get_module_name
10567 by call to windows_get_exec_module_filename.
10568
10569 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10570
10571 * windows-nat.c (handle_load_dll): Rewrite this function's
10572 introductory comment. Remove code using get_module_name
10573 to get the DLL's name.
10574
10575 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10576
10577 * windows-nat.c (get_windows_debug_event): Ignore
10578 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10579 if windows_initialization_done == 0.
10580 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10581 Adjust implementation to always load all DLLs.
10582 (do_initial_windows_stuff): Replace call to
10583 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10584
10585 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10586
10587 * windows-nat.c (_initialize_windows_nat): Deprecate the
10588 "dll-symbols" command. Turn the "add-shared-symbol-files"
10589 and "assf" aliases into commands, and deprecate them as well.
10590 * NEWS: Add entry explaining that "dll-symbols" and its two
10591 aliases are now deprecated.
10592
10593 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10594
10595 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10596 new-line in debug string. Remove trailing spaces.
10597
10598 2014-02-19 Stan Shebs <stan@codesourcery.com>
10599
10600 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10601
10602 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10603
10604 * NEWS: Add entry for the new feature
10605 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10606 and class values.
10607
10608 2014-02-19 Stan Shebs <stan@codesourcery.com>
10609
10610 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10611
10612 2014-02-19 Pedro Alves <palves@redhat.com>
10613
10614 * common/ptid.h (struct ptid): Mention that process_stratum
10615 targets should prefer ptid.lwp.
10616
10617 2014-02-19 Pedro Alves <palves@redhat.com>
10618
10619 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10620 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10621 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10622 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10623 store remote thread ids rather than ptid.tid.
10624 (_initialize_remote): Adjust.
10625
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target.c (target_get_unwinder): Rewrite.
10629 (target_get_tailcall_unwinder): Rewrite.
10630 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10631 (record_btrace_to_get_tailcall_unwinder): New function.
10632 (init_record_btrace_ops): Update.
10633 * target.h (struct target_ops) <to_get_unwinder,
10634 to_get_tailcall_unwinder>: Now function pointers. Use
10635 TARGET_DEFAULT_RETURN.
10636
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10640 argument.
10641 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10642
10643 2014-02-19 Tom Tromey <tromey@redhat.com>
10644
10645 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10646 directly.
10647 * target-delegates.c: Rebuild.
10648 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10649 TARGET_DEFAULT_FUNC.
10650 * target.c (default_target_decr_pc_after_break): Rename from
10651 forward_target_decr_pc_after_break. Simplify.
10652 (target_decr_pc_after_break): Rely on delegation.
10653
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10655
10656 * target.c (update_current_target): Do not INHERIT to_doc or
10657 to_magic. Do not de_fault to_open or to_close.
10658
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * gcore.h (objfile_find_memory_regions): Declare.
10662 * gcore.c (objfile_find_memory_regions): No longer static. Add
10663 "self" argument.
10664 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10665 * exec.c: Include gcore.h.
10666 (exec_set_find_memory_regions): Remove.
10667 (exec_find_memory_regions): Remove.
10668 (exec_do_find_memory_regions): Remove.
10669 (init_exec_ops): Update.
10670 * defs.h (exec_set_find_memory_regions): Remove.
10671
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.h (struct target_ops) <to_extra_thread_info,
10676 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10677 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10678 not 0, in TARGET_DEFAULT_RETURN.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * target.c (complete_target_initialization): Remove casts. Use
10683 return_zero_has_execution.
10684 (return_zero): Add "ignore" argument.
10685 (return_zero_has_execution): New function.
10686 (init_dummy_target): Remove casts. Use
10687 return_zero_has_execution.
10688
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target.c (update_current_target): Update comments. Do not
10692 INHERIT to_stratum.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10697 needed.
10698 * corelow.c (core_read_description): Delegate when needed.
10699 * remote.c (remote_read_description): Delegate when needed.
10700 * target-delegates.c: Rebuild.
10701 * target.c (target_read_description): Rewrite.
10702 * target.h (struct target_ops) <to_read_description>: Update
10703 comment. Use TARGET_DEFAULT_RETURN.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_can_run.
10710 (find_default_run_target): Check against delegate_can_run.
10711 * target.h (struct target_ops) <to_can_run>: Use
10712 TARGET_DEFAULT_RETURN.
10713
10714 2014-02-19 Tom Tromey <tromey@redhat.com>
10715
10716 * target-delegates.c: Rebuild.
10717 * target.c (target_disconnect): Unconditionally delegate.
10718 * target.h (struct target_ops) <to_disconnect>: Use
10719 TARGET_DEFAULT_NORETURN.
10720
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10722
10723 * record.c (record_stop): Unconditionally delegate.
10724 * target-delegates.c: Rebuild.
10725 * target.c (target_stop_recording): Unconditionally delegate.
10726 * target.h (struct target_ops) <to_stop_recording>: Use
10727 TARGET_DEFAULT_IGNORE.
10728
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10730
10731 * target-delegates.c: Rebuild.
10732 * target.c (target_enable_btrace): Unconditionally delegate.
10733 * target.h (struct target_ops) <to_enable_btrace>: Use
10734 TARGET_DEFAULT_NORETURN.
10735
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_read_btrace): Unconditionally delegate.
10740 * target.h (struct target_ops) <to_read_btrace>: Use
10741 TARGET_DEFAULT_NORETURN.
10742
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (target_teardown_btrace): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_teardown_btrace>: Use
10748 TARGET_DEFAULT_NORETURN.
10749
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10751
10752 * target-delegates.c: Rebuild.
10753 * target.c (target_disable_btrace): Unconditionally delegate.
10754 * target.h (struct target_ops) <to_disable_btrace>: Use
10755 TARGET_DEFAULT_NORETURN.
10756
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10758
10759 * target-delegates.c: Rebuild.
10760 * target.c (default_search_memory): New function.
10761 (simple_search_memory): Update comment.
10762 (target_search_memory): Unconditionally delegate.
10763 * target.h (struct target_ops) <to_search_memory>: Use
10764 TARGET_DEFAULT_FUNC.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * auxv.c (default_auxv_parse): No longer static.
10769 (target_auxv_parse): Unconditionally delegate.
10770 * auxv.h (default_auxv_parse): Declare.
10771 * target-delegates.c: Rebuild.
10772 * target.c: Include auxv.h.
10773 * target.h (struct target_ops) <to_auxv_parse>: Use
10774 TARGET_DEFAULT_FUNC.
10775
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_memory_map): Unconditionally delegate.
10780 * target.h (struct target_ops) <to_memory_map>: Use
10781 TARGET_DEFAULT_RETURN.
10782
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target-delegates.c: Rebuild.
10786 * target.c (target_thread_alive): Unconditionally delegate.
10787 * target.h (struct target_ops) <to_thread_alive>: Use
10788 TARGET_DEFAULT_RETURN.
10789
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (target_save_record): Unconditionally delegate.
10794 * target.h (struct target_ops) <to_save_record>: Use
10795 TARGET_DEFAULT_NORETURN.
10796
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_delete_record): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_delete_record>: Use
10802 TARGET_DEFAULT_NORETURN.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (target_record_is_replaying): Unconditionally
10808 delegate.
10809 * target.h (struct target_ops) <to_record_is_replaying>: Use
10810 TARGET_DEFAULT_RETURN.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_goto_record_begin): Unconditionally delegate.
10816 * target.h (struct target_ops) <to_goto_record_begin>: Use
10817 TARGET_DEFAULT_NORETURN.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target-delegates.c: Rebuild.
10822 * target.c (target_goto_record_end): Unconditionally delegate.
10823 * target.h (struct target_ops) <to_goto_record_end>: Use
10824 TARGET_DEFAULT_NORETURN.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_goto_record): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_goto_record>: Use
10831 TARGET_DEFAULT_NORETURN.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target-delegates.c: Rebuild.
10836 * target.c (target_insn_history): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_insn_history>: Use
10838 TARGET_DEFAULT_NORETURN.
10839
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (target_insn_history_from): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_insn_history_from>: Use
10845 TARGET_DEFAULT_NORETURN.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target-delegates.c: Rebuild.
10850 * target.c (target_insn_history_range): Unconditionally delegate.
10851 * target.h (struct target_ops) <to_insn_history_range>: Use
10852 TARGET_DEFAULT_NORETURN.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target-delegates.c: Rebuild.
10857 * target.c (target_call_history): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_call_history>: Use
10859 TARGET_DEFAULT_NORETURN.
10860
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * target-delegates.c: Rebuild.
10864 * target.c (target_call_history_from): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_call_history_from>: Use
10866 TARGET_DEFAULT_NORETURN.
10867
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10869
10870 * target-delegates.c: Rebuild.
10871 * target.c (target_call_history_range): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_call_history_range>: Use
10873 TARGET_DEFAULT_NORETURN.
10874
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (target_verify_memory): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_verify_memory>: Use
10880 TARGET_DEFAULT_NORETURN.
10881
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (target_core_of_thread): Unconditionally delegate.
10886 * target.h (struct target_ops) <to_core_of_thread>: Use
10887 TARGET_DEFAULT_RETURN.
10888
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target-delegates.c: Rebuild.
10892 * target.c (target_flash_done): Unconditionally delegate.
10893 * target.h (struct target_ops) <to_flash_done>: Use
10894 TARGET_DEFAULT_NORETURN.
10895
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * target-delegates.c: Rebuild.
10899 * target.c (target_flash_erase): Unconditionally delegate.
10900 * target.h (struct target_ops) <to_flash_erase>: Use
10901 TARGET_DEFAULT_NORETURN.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target-delegates.c: Rebuild.
10906 * target.c (target_get_section_table): Unconditionally delegate.
10907 * target.h (struct target_ops) <to_get_section_table>: Use
10908 TARGET_DEFAULT_RETURN.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target-delegates.c: Rebuild.
10913 * target.c (target_pid_to_str): Unconditionally delegate.
10914 (init_dummy_target): Don't initialize to_pid_to_str.
10915 (default_pid_to_str): Rename from dummy_pid_to_str.
10916 * target.h (struct target_ops) <to_pid_to_str>: Use
10917 TARGET_DEFAULT_FUNC.
10918
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10920
10921 * target-delegates.c: Rebuild.
10922 * target.c (target_find_new_threads): Unconditionally delegate.
10923 * target.h (struct target_ops) <to_find_new_threads>: Use
10924 TARGET_DEFAULT_RETURN.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (target_program_signals): Unconditionally delegate.
10930 * target.h (struct target_ops) <to_program_signals>: Use
10931 TARGET_DEFAULT_IGNORE.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_pass_signals): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_pass_signals>: Use
10938 TARGET_DEFAULT_IGNORE.
10939
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (default_mourn_inferior): New function.
10944 (target_mourn_inferior): Unconditionally delegate.
10945 * target.h (struct target_ops) <to_mourn_inferior>: Use
10946 TARGET_DEFAULT_FUNC.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target-delegates.c: Rebuild.
10951 * target.c (default_follow_fork): New function.
10952 (target_follow_fork): Unconditionally delegate.
10953 * target.h (struct target_ops) <to_follow_fork>: Use
10954 TARGET_DEFAULT_FUNC.
10955
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10957
10958 * target-delegates.c: Rebuild.
10959 * target.c (target_kill): Unconditionally delegate.
10960 * target.h (struct target_ops) <to_kill>: Use
10961 TARGET_DEFAULT_NORETURN.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target-delegates.c: Rebuild.
10966 * target.c (target_masked_watch_num_registers): Unconditionally
10967 delegate.
10968 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10969 Use TARGET_DEFAULT_RETURN.
10970
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10972
10973 * target-delegates.c: Rebuild.
10974 * target.c (target_remove_mask_watchpoint): Unconditionally
10975 delegate.
10976 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10977 TARGET_DEFAULT_RETURN.
10978
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10980
10981 * target-delegates.c: Rebuild.
10982 * target.c (target_insert_mask_watchpoint): Unconditionally
10983 delegate.
10984 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10985 TARGET_DEFAULT_RETURN.
10986
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10988
10989 * target-delegates.c: Rebuild.
10990 * target.c (target_ranged_break_num_registers): Unconditionally
10991 delegate.
10992 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10993 Use TARGET_DEFAULT_RETURN.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target-delegates.c: Rebuild.
10998 * target.c (target_fetch_registers): Unconditionally delegate.
10999 * target.h (struct target_ops) <to_fetch_registers>: Use
11000 TARGET_DEFAULT_NORETURN.
11001
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11003
11004 * target-delegates.c: Rebuild.
11005 * target.c (update_current_target): Don't inherit or default
11006 to_stop.
11007 * target.h (struct target_ops) <to_stop>: Use
11008 TARGET_DEFAULT_IGNORE.
11009
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11011
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_can_run_breakpoint_commands.
11015 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11016 Use TARGET_DEFAULT_RETURN.
11017
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11019
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't inherit or default
11022 to_supports_evaluation_of_breakpoint_conditions.
11023 * target.h (struct target_ops)
11024 <to_supports_evaluation_of_breakpoint_conditions>: Use
11025 TARGET_DEFAULT_RETURN.
11026
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11028
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_augmented_libraries_svr4_read.
11032 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11033 Use TARGET_DEFAULT_RETURN.
11034
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11036
11037 * target-delegates.c: Rebuild.
11038 * target.c (update_current_target): Don't inherit or default
11039 to_can_use_agent.
11040 * target.h (struct target_ops) <to_can_use_agent>: Use
11041 TARGET_DEFAULT_RETURN.
11042
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11044
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11047 to_use_agent.
11048 * target.h (struct target_ops) <to_use_agent>: Use
11049 TARGET_DEFAULT_NORETURN.
11050
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11052
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11055 to_traceframe_info.
11056 (return_null): Remove.
11057 * target.h (struct target_ops) <to_traceframe_info>: Use
11058 TARGET_DEFAULT_RETURN.
11059
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11061
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_static_tracepoint_markers_by_strid.
11065 * target.h (struct target_ops)
11066 <to_static_tracepoint_markers_by_strid>: Use
11067 TARGET_DEFAULT_NORETURN.
11068
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11070
11071 * target-delegates.c: Rebuild.
11072 * target.c (update_current_target): Don't inherit or default
11073 to_static_tracepoint_marker_at.
11074 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11075 Use TARGET_DEFAULT_RETURN.
11076
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11078
11079 * target-delegates.c: Rebuild.
11080 * target.c (update_current_target): Don't inherit or default
11081 to_set_permissions.
11082 * target.h (struct target_ops) <to_set_permissions>: Use
11083 TARGET_DEFAULT_IGNORE.
11084
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target-delegates.c: Rebuild.
11088 * target.c (update_current_target): Don't inherit or default
11089 to_get_tib_address.
11090 * target.h (struct target_ops) <to_get_tib_address>: Use
11091 TARGET_DEFAULT_NORETURN.
11092
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11094
11095 * target-delegates.c: Rebuild.
11096 * target.c (update_current_target): Don't inherit or default
11097 to_set_trace_notes.
11098 * target.h (struct target_ops) <to_set_trace_notes>: Use
11099 TARGET_DEFAULT_RETURN.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target-delegates.c: Rebuild.
11104 * target.c (update_current_target): Don't initialize
11105 to_set_trace_buffer_size.
11106 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11107 TARGET_DEFAULT_IGNORE.
11108
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11110
11111 * target-delegates.c: Rebuild.
11112 * target.c (update_current_target): Don't inherit or default
11113 to_set_circular_trace_buffer.
11114 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11115 TARGET_DEFAULT_IGNORE.
11116
11117 2014-02-19 Tom Tromey <tromey@redhat.com>
11118
11119 * target-delegates.c: Rebuild.
11120 * target.c (update_current_target): Don't inherit or default
11121 to_set_disconnected_tracing.
11122 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11123 TARGET_DEFAULT_IGNORE.
11124
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11126
11127 * target-delegates.c: Rebuild.
11128 * target.c (update_current_target): Don't inherit or default
11129 to_get_min_fast_tracepoint_insn_len.
11130 (return_minus_one): Remove.
11131 * target.h (struct target_ops)
11132 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11133
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11135
11136 * target-delegates.c: Rebuild.
11137 * target.c (update_current_target): Don't inherit or default
11138 to_get_raw_trace_data.
11139 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11140 TARGET_DEFAULT_NORETURN.
11141
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * target-delegates.c: Rebuild.
11145 * target.c (update_current_target): Don't inherit or default
11146 to_upload_trace_state_variables.
11147 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11148 Use TARGET_DEFAULT_RETURN.
11149
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target-delegates.c: Rebuild.
11153 * target.c (update_current_target): Don't inherit or default
11154 to_upload_tracepoints.
11155 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11156 TARGET_DEFAULT_RETURN.
11157
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11159
11160 * target-delegates.c: Rebuild.
11161 * target.c (update_current_target): Don't inherit or default
11162 to_save_trace_data.
11163 * target.h (struct target_ops) <to_save_trace_data>: Use
11164 TARGET_DEFAULT_NORETURN.
11165
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11167
11168 * target-delegates.c: Rebuild.
11169 * target.c (update_current_target): Don't inherit or default
11170 to_get_trace_state_variable_value.
11171 * target.h (struct target_ops)
11172 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11173
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11175
11176 * target-delegates.c: Rebuild.
11177 * target.c (update_current_target): Don't inherit or default
11178 to_trace_find.
11179 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11180
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11182
11183 * target-delegates.c: Rebuild.
11184 * target.c (update_current_target): Don't inherit or default
11185 to_trace_stop.
11186 * target.h (struct target_ops) <to_trace_stop>: Use
11187 TARGET_DEFAULT_NORETURN.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target-delegates.c: Rebuild.
11192 * target.c (update_current_target): Don't inherit or default
11193 to_get_tracepoint_status.
11194 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11195 TARGET_DEFAULT_NORETURN.
11196
11197 2014-02-19 Tom Tromey <tromey@redhat.com>
11198
11199 * target-delegates.c: Rebuild.
11200 * target.c (update_current_target): Don't inherit or default
11201 to_get_trace_status.
11202 * target.h (struct target_ops) <to_get_trace_status>: Use
11203 TARGET_DEFAULT_RETURN.
11204
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11206
11207 * target-delegates.c: Rebuild.
11208 * target.c (update_current_target): Don't inherit or default
11209 to_trace_start.
11210 * target.h (struct target_ops) <to_trace_start>: Use
11211 TARGET_DEFAULT_NORETURN.
11212
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11214
11215 * target-delegates.c: Rebuild.
11216 * target.c (update_current_target): Don't inherit or default
11217 to_trace_set_readonly_regions.
11218 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11219 Use TARGET_DEFAULT_NORETURN.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * target-delegates.c: Rebuild.
11224 * target.c (update_current_target): Don't inherit or default
11225 to_disable_tracepoint.
11226 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11227 TARGET_DEFAULT_NORETURN.
11228
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11230
11231 * target-delegates.c: Rebuild.
11232 * target.c (update_current_target): Don't inherit or default
11233 to_enable_tracepoint.
11234 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11235 TARGET_DEFAULT_NORETURN.
11236
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target-delegates.c: Rebuild.
11240 * target.c (update_current_target): Don't inherit or default
11241 to_download_trace_state_variable.
11242 * target.h (struct target_ops) <to_download_trace_state_variable>:
11243 Use TARGET_DEFAULT_NORETURN.
11244
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11246
11247 * target-delegates.c: Rebuild.
11248 * target.c (update_current_target): Don't inherit or default
11249 to_can_download_tracepoint.
11250 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11251 TARGET_DEFAULT_RETURN.
11252
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11254
11255 * target-delegates.c: Rebuild.
11256 * target.c (update_current_target): Don't inherit or default
11257 to_download_tracepoint.
11258 * target.h (struct target_ops) <to_download_tracepoint>: Use
11259 TARGET_DEFAULT_NORETURN.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * target-delegates.c: Rebuild.
11264 * target.c (update_current_target): Don't inherit or default
11265 to_trace_init.
11266 * target.h (struct target_ops) <to_trace_init>: Use
11267 TARGET_DEFAULT_RETURN.
11268
11269 2014-02-19 Tom Tromey <tromey@redhat.com>
11270
11271 * target-delegates.c: Rebuild.
11272 * target.c (update_current_target): Don't inherit or default
11273 to_supports_string_tracing.
11274 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11275 TARGET_DEFAULT_RETURN.
11276
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * target-delegates.c: Rebuild.
11280 * target.c (update_current_target): Don't inherit or default
11281 to_supports_enable_disable_tracepoint.
11282 * target.h (struct target_ops)
11283 <to_supports_enable_disable_tracepoint>: Use
11284 TARGET_DEFAULT_RETURN.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target-delegates.c: Rebuild.
11289 * target.c (update_current_target): Don't inherit or default
11290 to_supports_multi_process.
11291 * target.h (struct target_ops) <to_supports_multi_process>: Use
11292 TARGET_DEFAULT_RETURN.
11293
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11295
11296 * target-delegates.c: Rebuild.
11297 * target.c (update_current_target): Don't inherit or default
11298 to_get_ada_task_ptid.
11299 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11300 TARGET_DEFAULT_FUNC.
11301
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11303
11304 * target-delegates.c: Rebuild.
11305 * target.c (update_current_target): Don't inherit or default
11306 to_thread_architecture.
11307 * target.h (struct target_ops) <to_thread_architecture>: Use
11308 TARGET_DEFAULT_FUNC.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.c (update_current_target): Don't inherit or default
11314 to_execution_direction.
11315 * target.h (struct target_ops) <to_execution_direction>: Use
11316 TARGET_DEFAULT_FUNC.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target-delegates.c: Rebuild.
11321 * target.c (update_current_target): Don't inherit or default
11322 to_can_execute_reverse.
11323 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11324 TARGET_DEFAULT_RETURN.
11325 (target_can_execute_reverse): Unconditionally delegate.
11326
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (update_current_target): Don't inherit or default
11331 to_goto_bookmark.
11332 (dummy_goto_bookmark): Remove.
11333 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11334 * target.h (struct target_ops) <to_goto_bookmark>: Use
11335 TARGET_DEFAULT_NORETURN.
11336
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11338
11339 * target-delegates.c: Rebuild.
11340 * target.c (update_current_target): Don't inherit or default
11341 to_get_bookmark.
11342 (dummy_get_bookmark): Remove.
11343 (init_dummy_target): Don't inherit or default to_get_bookmark.
11344 * target.h (struct target_ops) <to_get_bookmark>: Use
11345 TARGET_DEFAULT_NORETURN
11346
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target-delegates.c: Rebuild.
11350 * target.c (update_current_target): Don't inherit or default
11351 to_make_corefile_notes.
11352 (init_dummy_target): Don't initialize to_make_corefile_notes.
11353 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11354 TARGET_DEFAULT_FUNC.
11355
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target-delegates.c: Rebuild.
11359 * target.c (update_current_target): Don't inherit or default
11360 to_find_memory_regions.
11361 (init_dummy_target): Don't initialize to_find_memory_regions.
11362 * target.h (struct target_ops) <to_find_memory_regions>: Use
11363 TARGET_DEFAULT_FUNC.
11364
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target-delegates.c: Rebuild.
11368 * target.c (update_current_target): Don't inherit or default
11369 to_log_command.
11370 * target.h (struct target_ops) <to_log_command>: Use
11371 TARGET_DEFAULT_IGNORE.
11372 (target_log_command): Unconditionally delegate.
11373
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target-delegates.c: Rebuild.
11377 * target.c (update_current_target): Don't inherit or default
11378 to_pid_to_exec_file.
11379 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11380 TARGET_DEFAULT_RETURN.
11381
11382 2014-02-19 Tom Tromey <tromey@redhat.com>
11383
11384 * target-delegates.c: Rebuild.
11385 * target.c (update_current_target): Don't inherit or default
11386 to_thread_name.
11387 (target_thread_name): Unconditionally delegate.
11388 * target.h (struct target_ops) <to_thread_name>: Use
11389 TARGET_DEFAULT_RETURN.
11390
11391 2014-02-19 Tom Tromey <tromey@redhat.com>
11392
11393 * target-delegates.c: Rebuild.
11394 * target.c (update_current_target): Don't inherit or default
11395 to_extra_thread_info.
11396 * target.h (struct target_ops) <to_extra_thread_info>: Use
11397 TARGET_DEFAULT_RETURN.
11398
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (update_current_target): Don't inherit or default
11403 to_has_exited.
11404 * target.h (struct target_ops) <to_has_exited>: Use
11405 TARGET_DEFAULT_RETURN..
11406
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * target-delegates.c: Rebuild.
11410 * target.c (update_current_target): Don't inherit or default
11411 to_set_syscall_catchpoint.
11412 (return_one): Remove.
11413 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11414 TARGET_DEFAULT_RETURN.
11415
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11417
11418 * target-delegates.c: Rebuild.
11419 * target.c (update_current_target): Don't inherit or default
11420 to_insert_exec_catchpoint.
11421 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11422 TARGET_DEFAULT_RETURN.
11423
11424 2014-01-08 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (update_current_target): Don't inherit or default
11428 to_insert_exec_catchpoint.
11429 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11430 TARGET_DEFAULT_RETURN.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (update_current_target): Don't inherit or default
11436 to_remove_vfork_catchpoint.
11437 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11438 TARGET_DEFAULT_RETURN.
11439
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11441
11442 * target-delegates.c: Rebuild.
11443 * target.c (update_current_target): Don't inherit or default
11444 to_insert_vfork_catchpoint.
11445 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11446 TARGET_DEFAULT_RETURN.
11447
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11449
11450 * target-delegates.c: Rebuild.
11451 * target.c (update_current_target): Don't inherit or default
11452 to_remove_fork_catchpoint.
11453 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11454 TARGET_DEFAULT_RETURN.
11455
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11457
11458 * target-delegates.c: Rebuild.
11459 * target.c (update_current_target): Don't inherit or default
11460 to_insert_fork_catchpoint.
11461 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11462 TARGET_DEFAULT_RETURN.
11463
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (update_current_target): Don't inherit or default
11468 to_post_startup_inferior.
11469 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11470 TARGET_DEFAULT_IGNORE.
11471
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_load.
11477 * target.h (struct target_ops) <to_load>: Use
11478 TARGET_DEFAULT_NORETURN.
11479
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11484 to_terminal_info.
11485 * target.h (struct target_ops) <to_terminal_info>: Use
11486 TARGET_DEFAULT_FUNC.
11487
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_terminal_save_ours.
11493 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11494 TARGET_DEFAULT_IGNORE.
11495
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_terminal_ours.
11501 * target.h (struct target_ops) <to_terminal_ours>: Use
11502 TARGET_DEFAULT_IGNORE.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't inherit or default
11508 to_terminal_ours_for_output.
11509 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11510 TARGET_DEFAULT_IGNORE.
11511
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11513
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_terminal_inferior.
11517 * target.h (struct target_ops) <to_terminal_inferior>: Use
11518 TARGET_DEFAULT_IGNORE.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_terminal_init.
11525 * target.h (struct target_ops) <to_terminal_init>: Use
11526 TARGET_DEFAULT_IGNORE.
11527
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11529
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_can_accel_watchpoint_condition.
11533 * target.h (struct target_ops)
11534 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11535
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_region_ok_for_hw_watchpoint.
11541 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11542 Use TARGET_DEFAULT_FUNC.
11543
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11545
11546 * target-delegates.c: Rebuild.
11547 * target.c (update_current_target): Don't inherit or default
11548 to_watchpoint_addr_within_range.
11549 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11550 Use TARGET_DEFAULT_FUNC.
11551
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * target-delegates.c: Rebuild.
11555 * target.c (update_current_target): Don't inherit or default
11556 to_remove_watchpoint.
11557 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11558 TARGET_DEFAULT_NORETURN.
11559
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (update_current_target): Don't inherit or default
11564 to_insert_watchpoint.
11565 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11566 TARGET_DEFAULT_RETURN.
11567
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11569
11570 * target-delegates.c: Rebuild.
11571 * target.c (update_current_target): Don't inherit or default
11572 to_remove_hw_breakpoint.
11573 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11574 TARGET_DEFAULT_RETURN.
11575
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11577
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_insert_hw_breakpoint.
11581 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11582 TARGET_DEFAULT_RETURN.
11583
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11585
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_can_use_hw_breakpoint.
11589 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11590 TARGET_DEFAULT_RETURN.
11591
11592 2014-02-19 Tom Tromey <tromey@redhat.com>
11593
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_files_info.
11597 * target.h (struct target_ops) <to_files_info>: Use
11598 TARGET_DEFAULT_IGNORE.
11599
11600 2014-02-19 Tom Tromey <tromey@redhat.com>
11601
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_store.
11605 * target.h (struct target_ops) <to_store>: Use
11606 TARGET_DEFAULT_NORETURN.
11607
11608 2014-02-19 Tom Tromey <tromey@redhat.com>
11609
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11612 to_post_attach.
11613 * target.h (struct target_ops) <to_post_attach>: Use
11614 TARGET_DEFAULT_IGNORE.
11615
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_rcmd.
11621 (default_rcmd): New function.
11622 (do_monitor_command): Unconditionally delegate.
11623 * target.h (struct target_ops) <to_rmcd>: Use
11624 TARGET_DEFAULT_FUNC.
11625
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target-delegates.c: Rebuild.
11629 * target.c (init_dummy_target): Don't initialize to_attach.
11630 (target_attach): Unconditionally delegate.
11631 * target.h (struct target_ops) <to_attach>: Use
11632 TARGET_DEFAULT_FUNC.
11633
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target-delegates.c: Rebuild.
11637 * target.c (target_detach): Unconditionally delegate.
11638 (init_dummy_target): Don't initialize to_detach.
11639 * target.h (struct target_ops) <to_detach>: Use
11640 TARGET_DEFAULT_IGNORE.
11641
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11643
11644 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11645 Add argument.
11646 (target_augmented_libraries_svr4_read): Add argument.
11647 * target.c (update_current_target): Update.
11648 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11649 argument.
11650
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target.h (struct target_ops) <to_call_history_range>: Add
11654 argument.
11655 * target.c (target_call_history_range): Add argument.
11656 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11657 argument.
11658 (record_btrace_call_history_from): Update.
11659
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11661
11662 * target.h (struct target_ops) <to_call_history_from>: Add
11663 argument.
11664 * target.c (target_call_history_from): Add argument.
11665 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11666 argument.
11667
11668 2014-02-19 Tom Tromey <tromey@redhat.com>
11669
11670 * target.h (struct target_ops) <to_call_history>: Add argument.
11671 * target.c (target_call_history): Add argument.
11672 * record-btrace.c (record_btrace_call_history): Add 'self'
11673 argument.
11674
11675 2014-02-19 Tom Tromey <tromey@redhat.com>
11676
11677 * target.h (struct target_ops) <to_insn_history_range>: Add
11678 argument.
11679 * target.c (target_insn_history_range): Add argument.
11680 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11681 argument.
11682 (record_btrace_insn_history_from): Update.
11683
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11685
11686 * target.h (struct target_ops) <to_insn_history_from>: Add
11687 argument.
11688 * target.c (target_insn_history_from): Add argument.
11689 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11690 argument.
11691
11692 2014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target.h (struct target_ops) <to_insn_history>: Add argument.
11695 * target.c (target_insn_history): Add argument.
11696 * record-btrace.c (record_btrace_insn_history): Add 'self'
11697 argument.
11698
11699 2014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target.h (struct target_ops) <to_goto_record>: Add argument.
11702 * target.c (target_goto_record): Add argument.
11703 * record-full.c (record_full_goto): Add 'self' argument.
11704 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11705
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11709 * target.c (target_goto_record_end): Add argument.
11710 * record-full.c (record_full_goto_end): Add 'self' argument.
11711 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_goto_record_begin>: Add
11716 argument.
11717 * target.c (target_goto_record_begin): Add argument.
11718 * record-full.c (record_full_goto_begin): Add 'self' argument.
11719 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11720 argument.
11721
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target.h (struct target_ops) <to_record_is_replaying>: Add
11725 argument.
11726 * target.c (target_record_is_replaying): Add argument.
11727 * record-full.c (record_full_is_replaying): Add 'self' argument.
11728 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11729 argument.
11730 (record_btrace_xfer_partial, record_btrace_store_registers)
11731 (record_btrace_prepare_to_store, record_btrace_resume)
11732 (record_btrace_wait, record_btrace_decr_pc_after_break)
11733 (record_btrace_find_new_threads, record_btrace_thread_alive):
11734 Update.
11735
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_delete_record>: Add argument.
11739 * target.c (target_delete_record): Add argument.
11740 * record-full.c (record_full_delete): Add 'self' argument.
11741
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target.h (struct target_ops) <to_save_record>: Add argument.
11745 * target.c (target_save_record): Add argument.
11746 * record-full.c (record_full_save): Add 'self' argument.
11747 (record_full_save): Add 'self' argument.
11748
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target.h (struct target_ops) <to_info_record>: Add argument.
11752 * target.c (target_info_record): Add argument.
11753 * record.c (info_record_command): Add argument.
11754 * record-full.c (record_full_info): Add 'self' argument.
11755 * record-btrace.c (record_btrace_info): Add 'self' argument.
11756
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11760 * target.c (target_stop_recording): Add argument.
11761 * record.c (record_stop): Add argument.
11762 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11763 argument.
11764
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11768 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11769 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11770 argument.
11771 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11772 (_initialize_amd64_linux_nat): Use it.
11773 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11774 (_initialize_i386_linux_nat): Use it.
11775
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11779 * target.c (target_teardown_btrace): Add argument.
11780 * remote.c (remote_teardown_btrace): Add 'self' argument.
11781 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11782 argument.
11783 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11784 argument.
11785
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11789 * target.c (target_disable_btrace): Add argument.
11790 * remote.c (remote_disable_btrace): Add 'self' argument.
11791 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11792 argument.
11793 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11794 argument.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11799 * target.c (target_enable_btrace): Add argument.
11800 * remote.c (remote_enable_btrace): Add 'self' argument.
11801 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11802 argument.
11803 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11804 argument.
11805
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11809 (target_can_use_agent): Add argument.
11810 * target.c (update_current_target): Update.
11811 * remote.c (remote_can_use_agent): Add 'self' argument.
11812 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11813
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target.h (struct target_ops) <to_use_agent>: Add argument.
11817 (target_use_agent): Add argument.
11818 * target.c (update_current_target): Update.
11819 * remote.c (remote_use_agent): Add 'self' argument.
11820 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11825 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11826 (target_traceframe_info): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_traceframe_info): Add 'self' argument.
11829 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11830
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (target_static_tracepoint_markers_by_strid): Add
11834 argument.
11835 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11836 'self' argument.
11837 * target.c (update_current_target): Update.
11838 * remote.c (struct target_ops)
11839 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11840 * linux-nat.c (struct target_ops)
11841 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11846 Add argument.
11847 (target_static_tracepoint_marker_at): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11850 argument.
11851
11852 2014-02-19 Tom Tromey <tromey@redhat.com>
11853
11854 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11855 (target_set_permissions): Add argument.
11856 * target.c (update_current_target): Update.
11857 * remote.c (remote_set_permissions): Add 'self' argument.
11858 (remote_start_remote): Update.
11859
11860 2014-02-19 Tom Tromey <tromey@redhat.com>
11861
11862 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11863 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11864 (target_get_tib_address): Add argument.
11865 * target.c (update_current_target): Update.
11866 * remote.c (remote_get_tib_address): Add 'self' argument.
11867
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11869
11870 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11871 (target_set_trace_notes): Add argument.
11872 * target.c (update_current_target): Update.
11873 * remote.c (remote_set_trace_notes): Add 'self' argument.
11874
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11878 argument.
11879 (target_set_trace_buffer_size): Add argument.
11880 * target.c (update_current_target): Update.
11881 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11886 argument.
11887 (target_set_circular_trace_buffer): Add argument.
11888 * target.c (update_current_target): Update.
11889 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11890 argument.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11895 argument.
11896 (target_set_disconnected_tracing): Add argument.
11897 * target.c (update_current_target): Update.
11898 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11899
11900 2014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target.h (struct target_ops)
11903 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11904 (target_get_min_fast_tracepoint_insn_len): Add argument.
11905 * target.c (update_current_target): Update.
11906 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11907 argument.
11908
11909 2014-02-19 Tom Tromey <tromey@redhat.com>
11910
11911 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11912 argument.
11913 (target_get_raw_trace_data): Add argument.
11914 * target.c (update_current_target): Update.
11915 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11916
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11920 Add argument.
11921 (target_upload_trace_state_variables): Add argument.
11922 * target.c (update_current_target): Update.
11923 * remote.c (remote_upload_trace_state_variables): Add 'self'
11924 argument.
11925 (remote_start_remote): Update.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11930 argument.
11931 (target_upload_tracepoints): Add argument.
11932 * target.c (update_current_target): Update.
11933 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11934 (remote_start_remote): Update.
11935
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11939 (target_save_trace_data): Add argument.
11940 * target.c (update_current_target): Update.
11941 * remote.c (remote_save_trace_data): Add 'self' argument.
11942
11943 2014-02-19 Tom Tromey <tromey@redhat.com>
11944
11945 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11946 argument.
11947 * target.h (struct target_ops)
11948 <to_get_trace_state_variable_value>: Add argument.
11949 (target_get_trace_state_variable_value): Add argument.
11950 * target.c (update_current_target): Update.
11951 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11952 argument.
11953 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11954
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11958 * target.h (struct target_ops) <to_trace_find>: Add argument.
11959 (target_trace_find): Add argument.
11960 * target.c (update_current_target): Update.
11961 * remote.c (remote_trace_find): Add 'self' argument.
11962 * ctf.c (ctf_trace_find): Add 'self' argument.
11963
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11965
11966 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11967 (target_trace_stop): Add argument.
11968 * target.c (update_current_target): Update.
11969 * remote.c (remote_trace_stop): Add 'self' argument.
11970
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11974 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11975 argument.
11976 (target_get_tracepoint_status): Add argument.
11977 * target.c (update_current_target): Update.
11978 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11979
11980 2014-02-19 Tom Tromey <tromey@redhat.com>
11981
11982 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11983 * target.h (struct target_ops) <to_get_trace_status>: Add
11984 argument.
11985 (target_get_trace_status): Add argument.
11986 * target.c (update_current_target): Update.
11987 * remote.c (remote_get_trace_status): Add 'self' argument.
11988 (remote_start_remote, remote_can_download_tracepoint): Update.
11989 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11990
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target.h (struct target_ops) <to_trace_start>: Add argument.
11994 (target_trace_start): Add argument.
11995 * target.c (update_current_target): Update.
11996 * remote.c (remote_trace_start): Add 'self' argument.
11997
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
11999
12000 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12001 Add argument.
12002 (target_trace_set_readonly_regions): Add argument.
12003 * target.c (update_current_target): Update.
12004 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12005 argument.
12006
12007 2014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12010 argument.
12011 (target_disable_tracepoint): Add argument.
12012 * target.c (update_current_target): Update.
12013 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12018 argument.
12019 (target_enable_tracepoint): Add argument.
12020 * target.c (update_current_target): Update.
12021 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12022
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target.h (struct target_ops) <to_download_trace_state_variable>:
12026 Add argument.
12027 (target_download_trace_state_variable): Add argument.
12028 * target.c (update_current_target): Update.
12029 * remote.c (remote_download_trace_state_variable): Add 'self'
12030 argument.
12031
12032 2014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12035 argument.
12036 (target_can_download_tracepoint): Add argument.
12037 * target.c (update_current_target): Update.
12038 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12039
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target.h (struct target_ops) <to_download_tracepoint>: Add
12043 argument.
12044 (target_download_tracepoint): Add argument.
12045 * target.c (update_current_target): Update.
12046 * remote.c (remote_download_tracepoint): Add 'self' argument.
12047
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target.h (struct target_ops) <to_trace_init>: Add argument.
12051 (target_trace_init): Add argument.
12052 * target.c (update_current_target): Update.
12053 * remote.c (remote_trace_init): Add 'self' argument.
12054
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12056
12057 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12058 * target.c (target_fileio_readlink): Add argument.
12059 * remote.c (remote_hostio_readlink): Add 'self' argument.
12060 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12061
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12065 * target.c (target_fileio_unlink): Add argument.
12066 * remote.c (remote_hostio_unlink): Add 'self' argument.
12067 (remote_file_delete): Update.
12068 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12069
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12073 * target.c (target_fileio_close): Add argument.
12074 * remote.c (remote_hostio_close): Add 'self' argument.
12075 (remote_hostio_close_cleanup): Update.
12076 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12077 Update.
12078 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12079
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12083 * target.c (target_fileio_pread): Add argument.
12084 * remote.c (remote_hostio_pread): Add 'self' argument.
12085 (remote_bfd_iovec_pread, remote_file_get): Update.
12086 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12087
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12091 * target.c (target_fileio_pwrite): Add argument.
12092 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12093 (remote_file_put): Update.
12094 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12095
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12099 * target.c (target_fileio_open): Add argument.
12100 * remote.c (remote_hostio_open): Add 'self' argument.
12101 (remote_bfd_iovec_open): Add 'self' argument.
12102 (remote_file_put): Add 'self' argument.
12103 (remote_file_get): Add 'self' argument.
12104 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12109 Add argument.
12110 (target_can_run_breakpoint_commands): Add argument.
12111 * target.c (update_current_target): Update.
12112 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12113 argument.
12114 (remote_insert_breakpoint): Add 'self' argument.
12115 (remote_insert_hw_breakpoint): Add 'self' argument.
12116 (remote_can_run_breakpoint_commands): Add 'self' argument.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target.h (struct target_ops)
12121 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12122 (target_supports_evaluation_of_breakpoint_conditions): Add
12123 argument.
12124 * target.c (update_current_target): Update.
12125 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12126 argument.
12127 (remote_insert_breakpoint): Add 'self' argument.
12128 (remote_insert_hw_breakpoint): Add 'self' argument.
12129 (remote_supports_cond_breakpoints): Add 'self' argument.
12130
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12134 argument.
12135 (target_supports_string_tracing): Add argument.
12136 * target.c (update_current_target): Update.
12137 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12138
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target.h (struct target_ops)
12142 <to_supports_disable_randomization>: Add argument.
12143 * target.c (find_default_supports_disable_randomization): Add
12144 argument.
12145 (target_supports_disable_randomization): Add argument.
12146 (find_default_supports_disable_randomization): Add 'self'
12147 argument.
12148 * remote.c (extended_remote_supports_disable_randomization): Add
12149 'self' argument.
12150 (remote_supports_disable_randomization): Add 'self' argument.
12151 (extended_remote_create_inferior): Update.
12152 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12153 'self' argument.
12154
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target.h (struct target_ops)
12158 <to_supports_enable_disable_tracepoint>: Add argument.
12159 (target_supports_enable_disable_tracepoint): Add argument.
12160 * target.c (update_current_target): Update.
12161 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12162 argument.
12163
12164 2014-02-19 Tom Tromey <tromey@redhat.com>
12165
12166 * target.h (struct target_ops) <to_supports_multi_process>: Add
12167 argument.
12168 (target_supports_multi_process): Add argument.
12169 * target.c (update_current_target): Update.
12170 * remote.c (remote_supports_multi_process): Add 'self' argument.
12171 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12172 argument.
12173 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12174 argument.
12175
12176 2014-02-19 Tom Tromey <tromey@redhat.com>
12177
12178 * target.h (struct target_ops) <to_execution_direction>: Add
12179 argument.
12180 (target_execution_direction): Add argument.
12181 * target.c (default_execution_direction): Add 'self' argument.
12182 * record-full.c (record_full_execution_direction): Add 'self'
12183 argument.
12184
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12188 argument.
12189 (target_can_execute_reverse): Add argument.
12190 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12191 * record-full.c (record_full_can_execute_reverse): Add 'self'
12192 argument.
12193 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12194 argument.
12195
12196 2014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12199 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12200 argument.
12201 (target_get_ada_task_ptid): Add argument.
12202 * target.c (update_current_target): Update.
12203 (default_get_ada_task_ptid): Add 'self' argument.
12204 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12205 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12206 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12207 argument.
12208 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12209 argument.
12210 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12211 argument.
12212 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12213 argument.
12214 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12215 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12216 argument.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12221 (target_goto_bookmark): Add argument.
12222 * target.c (dummy_goto_bookmark): Add 'self' argument.
12223 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12224
12225 2014-02-19 Tom Tromey <tromey@redhat.com>
12226
12227 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12228 (target_get_bookmark): Add argument.
12229 * target.c (dummy_get_bookmark): Add 'self' argument.
12230 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12231
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12235 argument.
12236 (target_make_corefile_notes): Add argument.
12237 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12238 * procfs.c (procfs_make_note_section): Add 'self' argument.
12239 (procfs_make_note_section): Add 'self' argument.
12240 (procfs_make_note_section): Add 'self' argument.
12241 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12242 argument.
12243 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12244 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12245 * exec.c (exec_make_note_section): Add 'self' argument.
12246 (exec_make_note_section): Add 'self' argument.
12247
12248 2014-02-19 Tom Tromey <tromey@redhat.com>
12249
12250 * target.h (struct target_ops) <to_find_memory_regions>: Add
12251 argument.
12252 (target_find_memory_regions): Add argument.
12253 * target.c (dummy_find_memory_regions): Add 'self' argument.
12254 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12255 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12256 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12257 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12258 * exec. (exec_do_find_memory_regions): New global.
12259 (exec_set_find_memory_regions): Rewrite.
12260 (exec_find_memory_regions): New function.
12261 (init_exec_ops): Use exec_find_memory_regions.
12262
12263 2014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * target.h (struct target_ops) <to_supports_non_stop>: Add
12266 argument.
12267 * target.c (find_default_supports_non_stop): Add argument.
12268 (target_supports_non_stop): Add argument.
12269 (find_default_supports_non_stop): Add 'self' argument.
12270 * remote.c (remote_supports_non_stop): Add 'self' argument.
12271 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12272
12273 2014-02-19 Tom Tromey <tromey@redhat.com>
12274
12275 * target.h (struct target_ops) <to_log_command>: Add argument.
12276 (target_log_command): Add argument.
12277 * serial.h (serial_log_command): Add 'self' argument.
12278 * serial.c (serial_log_command): Add 'self' argument.
12279
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12283 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12284 argument.
12285 (target_pid_to_exec_file): Add argument.
12286 * target.c (debug_to_pid_to_exec_file): Add argument.
12287 (update_current_target): Update.
12288 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12289 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12290 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12291 (linux_handle_extended_wait): Update.
12292 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12293 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12294 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12295 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12296
12297 2014-02-19 Tom Tromey <tromey@redhat.com>
12298
12299 * target.h (struct target_ops) <to_rcmd>: Add argument.
12300 (target_rcmd): Add argument.
12301 * target.c (debug_to_rcmd): Add argument.
12302 (update_current_target, do_monitor_command): Update.
12303 * remote.c (remote_rcmd): Add 'self' argument.
12304 * monitor.c (monitor_rcmd): Add 'self' argument.
12305
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * windows-nat.c (windows_stop): Add 'self' argument.
12309 * target.h (struct target_ops) <to_stop>: Add argument.
12310 * target.c (target_stop): Add argument.
12311 (debug_to_stop): Add argument.
12312 (update_current_target): Update.
12313 * remote.c (remote_stop): Add 'self' argument.
12314 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12315 (gdbsim_cntrl_c): Update.
12316 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12317 * procfs.c (procfs_stop): Add 'self' argument.
12318 * nto-procfs.c (procfs_stop): Add 'self' argument.
12319 * monitor.c (monitor_stop): Add 'self' argument.
12320 (monitor_open): Update.
12321 * linux-nat.c (linux_nat_stop): Add argument.
12322 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12323 * gnu-nat.c (gnu_stop): Add 'self' argument.
12324 * darwin-nat.c (darwin_stop): Add 'self' argument.
12325
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_thread_name>: Add argument.
12329 * target.c (target_thread_name): Add argument.
12330 (update_current_target): Update.
12331 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12332
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target.h (struct target_ops) <to_extra_thread_info>: Add
12336 argument.
12337 (target_extra_thread_info): Add argument.
12338 * target.c (update_current_target): Update.
12339 * remote.c (remote_threads_extra_info): Add 'self' argument.
12340 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12341 argument.
12342 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12343 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12344 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12345 argument.
12346 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12347 argument.
12348 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12349 argument.
12350 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12351 argument.
12352
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_program_signals>: Add argument.
12356 * target.c (target_program_signals): Add argument.
12357 * remote.c (remote_program_signals): Add 'self' argument.
12358
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12362 * target.c (target_pass_signals): Add argument.
12363 * remote.c (remote_pass_signals): Add 'self' argument.
12364 (remote_start_remote): Update.
12365 * procfs.c (procfs_pass_signals): Add 'self' argument.
12366 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12367 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12368 (linux_nat_create_inferior, linux_nat_attach): Update.
12369
12370 2014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * windows-nat.c (windows_can_run): Add 'self' argument.
12373 * target.h (struct target_ops) <to_can_run>: Add argument.
12374 (target_can_run): Add argument.
12375 * target.c (debug_to_can_run): Add argument.
12376 (update_current_target): Update.
12377 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12378 * inf-child.c (inf_child_can_run): Add 'self' argument.
12379 * go32-nat.c (go32_can_run): Add 'self' argument.
12380
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target.h (struct target_ops) <to_has_exited>: Add argument.
12384 (target_has_exited): Add argument.
12385 * target.c (debug_to_has_exited): Add argument.
12386 (update_current_target): Update.
12387
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12391 argument.
12392 (target_set_syscall_catchpoint): Add argument.
12393 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12394 argument.
12395 * target.c (update_current_target): Update.
12396
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12400 argument.
12401 (target_remove_exec_catchpoint): Add argument.
12402 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12403 (update_current_target): Update.
12404 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12405 argument.
12406
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12410 argument.
12411 (target_insert_exec_catchpoint): Add argument.
12412 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12413 (update_current_target): Update.
12414 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12415 argument.
12416
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12420 argument.
12421 (target_remove_vfork_catchpoint): Add argument.
12422 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12423 (update_current_target): Update.
12424 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12425 argument.
12426
12427 2014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12430 argument.
12431 (target_insert_vfork_catchpoint): Add argument.
12432 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12433 (update_current_target): Update.
12434 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12435 argument.
12436
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12440 argument.
12441 (target_remove_fork_catchpoint): Add argument.
12442 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12443 (update_current_target): Update.
12444 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12445 argument.
12446
12447 2014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12450 argument.
12451 (target_insert_fork_catchpoint): Add argument.
12452 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12453 (update_current_target): Update.
12454 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12455 argument.
12456
12457 2014-02-19 Tom Tromey <tromey@redhat.com>
12458
12459 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12460 argument.
12461 (target_post_startup_inferior): Add argument.
12462 * target.c (debug_to_post_startup_inferior): Add argument.
12463 (update_current_target): Update.
12464 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12465 argument.
12466 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12467 argument.
12468 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12469 argument.
12470 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12471 argument.
12472 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12473 'self' argument.
12474 (super_post_startup_inferior): Likewise.
12475 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12476 'self' argument.
12477 (super_post_startup_inferior): Likewise.
12478 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12479 Add 'self' argument.
12480 (super_post_startup_inferior): Likewise.
12481
12482 2014-02-19 Tom Tromey <tromey@redhat.com>
12483
12484 * target.h (struct target_ops) <to_load>: Add argument.
12485 * target.c (target_load): Add argument.
12486 (debug_to_load): Add argument.
12487 (update_current_target): Update.
12488 * remote.c (remote_load): Add 'self' argument.
12489 * remote-sim.c (gdbsim_load): Add 'self' argument.
12490 * remote-mips.c (mips_load): Add 'self' argument.
12491 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12492 * monitor.c (monitor_load): Add 'self' argument.
12493 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12494
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12498 (target_terminal_info): Add argument.
12499 * target.c (debug_to_terminal_info): Add argument.
12500 (default_terminal_info): Likewise.
12501 * inflow.c (child_terminal_info): Add 'self' argument.
12502 * inferior.h (child_terminal_info): Add 'self' argument.
12503 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12504
12505 2014-02-19 Tom Tromey <tromey@redhat.com>
12506
12507 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12508 argument.
12509 (target_terminal_save_ours): Add argument.
12510 * target.c (debug_to_terminal_save_ours): Add argument.
12511 (update_current_target): Update.
12512 * inflow.c (terminal_save_ours): Add 'self' argument.
12513 * inferior.h (terminal_save_ours): Add 'self' argument.
12514
12515 2014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12518 (target_terminal_ours): Add argument.
12519 * target.c (debug_to_terminal_ours): Add argument.
12520 (update_current_target): Update.
12521 * remote.c (remote_terminal_ours): Add 'self' argument.
12522 (remote_close): Update.
12523 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12524 * inflow.c (terminal_ours): Add 'self' argument.
12525 * inferior.h (terminal_ours): Add 'self' argument.
12526 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12527
12528 2014-02-19 Pedro Alves <palves@redhat.com>
12529 Tom Tromey <tromey@redhat.com>
12530
12531 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12532 argument.
12533 (target_terminal_ours_for_output): Add argument.
12534 * target.c (debug_to_terminal_ours_for_output): Add argument.
12535 (update_current_target): Update.
12536 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12537 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12538 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12539
12540 2014-02-19 Tom Tromey <tromey@redhat.com>
12541
12542 * target.h (struct target_ops) <to_terminal_inferior>: Add
12543 argument.
12544 * target.c (target_terminal_inferior): Add argument.
12545 (update_current_target): Update.
12546 * remote.c (remote_terminal_inferior): Add 'self' argument.
12547 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12548 * inflow.c (terminal_inferior): Add 'self' argument.
12549 * inferior.h (terminal_inferior): Add 'self' argument.
12550 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12551 (go32_terminal_inferior): Add 'self' argument.
12552
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12556 (target_terminal_init): Add argument.
12557 * target.c (debug_to_terminal_init): Add argument.
12558 (update_current_target): Update.
12559 * inflow.c (terminal_init_inferior): Add 'self' argument.
12560 * inferior.h (terminal_init_inferior): Add 'self' argument.
12561 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12562 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12563
12564 2014-02-19 Tom Tromey <tromey@redhat.com>
12565
12566 * target.h (struct target_ops)
12567 <to_can_accel_watchpoint_condition>: Add argument.
12568 (target_can_accel_watchpoint_condition): Add argument.
12569 * target.c (debug_to_can_accel_watchpoint_condition): Add
12570 argument.
12571 (update_current_target): Update.
12572 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12573 'self' argument.
12574
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12578 Add argument.
12579 (target_region_ok_for_hw_watchpoint): Add argument.
12580 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12581 (default_region_ok_for_hw_watchpoint): Add argument.
12582 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12583 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12584 argument.
12585 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12586 argument.
12587 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12588 argument.
12589 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12590 'self' argument.
12591 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12592 'self' argument.
12593 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12594 'self' argument.
12595 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12596 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12597 'self' argument.
12598 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12599 Add 'self' argument.
12600
12601 2014-02-19 Tom Tromey <tromey@redhat.com>
12602
12603 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12604 argument.
12605 (target_insert_watchpoint): Add argument.
12606 * target.c (debug_to_insert_watchpoint): Add argument.
12607 (update_current_target): Update.
12608 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12609 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12610 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12611 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12612 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12613 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12614 argument.
12615 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12616 (procfs_insert_hw_watchpoint): Add 'self' argument.
12617 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12618 argument.
12619 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12620 argument.
12621 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12622 argument.
12623 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12624 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12625 argument.
12626 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12627 'self' argument.
12628
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12632 argument.
12633 (target_remove_watchpoint): Add argument.
12634 * target.c (debug_to_remove_watchpoint): Add argument.
12635 (update_current_target): Update.
12636 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12637 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12638 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12639 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12640 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12641 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12642 argument.
12643 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12644 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12645 argument.
12646 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12647 argument.
12648 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12649 argument.
12650 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12651 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12652 argument.
12653 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12654 'self' argument.
12655
12656 2014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12659 argument.
12660 (target_remove_hw_breakpoint): Add argument.
12661 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12662 (update_current_target): Update.
12663 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12664 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12665 argument.
12666 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12667 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12668 argument.
12669 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12670 'self' argument.
12671
12672 2014-02-19 Tom Tromey <tromey@redhat.com>
12673
12674 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12675 argument.
12676 (target_insert_hw_breakpoint): Add argument.
12677 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12678 (update_current_target): Update.
12679 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12680 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12681 argument.
12682 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12683 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12684 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12685 argument.
12686 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12687 'self' argument.
12688
12689 2014-02-19 Tom Tromey <tromey@redhat.com>
12690
12691 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12692 argument.
12693 (target_can_use_hardware_watchpoint): Add argument.
12694 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12695 (update_current_target): Update.
12696 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12697 argument.
12698 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12699 argument.
12700 * remote.c (remote_check_watch_resources): Add 'self' argument.
12701 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12702 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12703 argument.
12704 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12705 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12706 argument.
12707 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12708 argument.
12709 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12710 argument.
12711 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12712 argument.
12713 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12714 argument.
12715 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12716 argument.
12717 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12718 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12719 argument.
12720 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12721 'self' argument.
12722
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_post_attach>: Add argument.
12726 (target_post_attach): Add argument.
12727 * target.c (debug_to_post_attach): Add argument.
12728 (update_current_target): Update.
12729 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12730 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12731 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12732 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12733 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12734
12735 2014-02-19 Tom Tromey <tromey@redhat.com>
12736
12737 * windows-nat.c (windows_close): Add 'self' argument.
12738 * tracepoint.c (tfile_close): Add 'self' argument.
12739 * target.h (struct target_ops) <to_close>: Add argument.
12740 * target.c (target_close): Add argument.
12741 (update_current_target): Update.
12742 * remote.c (remote_close): Add 'self' argument.
12743 * remote-sim.c (gdbsim_close): Add 'self' argument.
12744 * remote-mips.c (mips_close): Add 'self' argument.
12745 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12746 * record-full.c (record_full_close): Add 'self' argument.
12747 * record-btrace.c (record_btrace_close): Add 'self' argument.
12748 * monitor.h (monitor_close): Add 'self' argument.
12749 * monitor.c (monitor_close): Add 'self' argument.
12750 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12751 * linux-nat.c (linux_nat_close): Add argument.
12752 * go32-nat.c (go32_close): Add 'self' argument.
12753 * exec.c (exec_close_1): Add 'self' argument.
12754 * ctf.c (ctf_close): Add 'self' argument.
12755 * corelow.c (core_close): Add 'self' argument.
12756 (core_close_cleanup): Update.
12757 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12758 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12759
12760 2014-02-19 Tom Tromey <tromey@redhat.com>
12761
12762 * remote.c (remote_load): New function.
12763 (init_remote_ops): Use it.
12764
12765 2014-02-19 Tom Tromey <tromey@redhat.com>
12766
12767 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12768 argument.
12769 * common/linux-btrace.h (linux_supports_btrace): Update.
12770 * remote.c (remote_supports_btrace): Add "self" argument.
12771 * target-delegates.c: Rebuild.
12772 * target.c (target_supports_btrace): Remove.
12773 * target.h (struct target_ops) <to_supports_btrace>: Add
12774 target_ops argument.
12775 (target_supports_btrace): New define.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * record-full.c (record_full_beneath_to_resume_ops)
12780 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12781 (record_full_beneath_to_wait)
12782 (record_full_beneath_to_store_registers_ops)
12783 (record_full_beneath_to_store_registers)
12784 (record_full_beneath_to_xfer_partial_ops)
12785 (record_full_beneath_to_xfer_partial)
12786 (record_full_beneath_to_insert_breakpoint_ops)
12787 (record_full_beneath_to_insert_breakpoint)
12788 (record_full_beneath_to_remove_breakpoint_ops)
12789 (record_full_beneath_to_remove_breakpoint)
12790 (record_full_beneath_to_stopped_by_watchpoint)
12791 (record_full_beneath_to_stopped_data_address)
12792 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12793 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12794 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12795 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12796 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12797 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12798 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12799 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12800 (record_full_resume, record_full_wait_1)
12801 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12802 (record_full_store_registers, record_full_xfer_partial)
12803 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12804 (record_full_async, record_full_core_xfer_partial): Use target
12805 delegation.
12806 * target-delegates.c: Rebuild.
12807 * target.c (current_xfer_partial): Remove.
12808 (update_current_target): Do not INHERIT or de_fault
12809 to_insert_breakpoint, to_remove_breakpoint,
12810 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12811 to_is_async_p, to_async. Do not set to_xfer_partial field.
12812 (default_xfer_partial): Simplify.
12813 (current_xfer_partial): Remove.
12814 (target_wait, target_resume): Simplify.
12815 (find_default_can_async_p, find_default_is_async_p): Update.
12816 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12817 to_xfer_partial, to_stopped_by_watchpoint,
12818 to_stopped_data_address.
12819 (target_store_registers): Simplify.
12820 (forward_target_remove_breakpoint)
12821 (forward_target_insert_breakpoint): Remove.
12822 (target_remove_breakpoint, target_insert_breakpoint)
12823 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12824 * target.h (struct target_ops) <to_resume, to_wait,
12825 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12826 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12827 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12828 markup.
12829 (forward_target_remove_breakpoint)
12830 (forward_target_insert_breakpoint): Remove.
12831 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12832 directly.
12833 (record_btrace_insert_breakpoint): Delegate directly.
12834
12835 2014-02-19 Tom Tromey <tromey@redhat.com>
12836
12837 PR build/7701:
12838 * target-delegates.c: New file.
12839 * target.c: Include target-delegates.c.
12840 (init_dummy_target): Call install_dummy_methods.
12841 (complete_target_initialization): Call install_delegators.
12842 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12843 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12844 * make-target-delegates: New file.
12845
12846 2014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * record.c (find_record_target): Use find_target_at.
12849 * target.c (find_target_at): New function.
12850 * target.h (find_target_at): Declare.
12851
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12853
12854 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12855 Add 'ops' argument.
12856 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12857 'ops' argument.
12858 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12859 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12860 'ops' argument.
12861 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12862 argument.
12863 * linux-nat.c (save_sigtrap): Update.
12864 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12865 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12866 (linux_nat_close): Update.
12867 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12868 argument.
12869 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12870 argument.
12871 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12872 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12873 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12874 (tmp_to_async): Add 'ops' argument.
12875 (record_full_stopped_by_watchpoint, record_full_async)
12876 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12877 argument.
12878 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12879 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12880 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12881 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12882 (remote_is_async_p, remote_async): Add 'ops' argument.
12883 (remote_stopped_data_address): Update.
12884 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12885 * target.c (update_current_target)
12886 (find_default_can_async_p, find_default_is_async_p): Update.
12887 (init_dummy_target): Update.
12888 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12889 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12890 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12891 (target_can_async_p, target_is_async_p, target_async)
12892 (target_stopped_by_watchpoint): Update.
12893
12894 2014-02-19 Yao Qi <yao@codesourcery.com>
12895
12896 PR gdb/16220
12897 * gdbarch.sh: Remove startup_gdbarch.
12898 * gdbarch.c: Regenerated.
12899 * gdbarch.h: Likewise.
12900
12901 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12902
12903 * rl78-tdep.c (rl78_g10_register_name): New function.
12904 (rl78_return_value): Add g10 support.
12905 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12906 g10.
12907
12908 2014-02-17 Doug Evans <xdje42@gmail.com>
12909
12910 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12911 (SUBDIR_GUILE_SRCS): Ditto.
12912 (scm-gsmob.o): Ditto.
12913
12914 2014-02-17 Yao Qi <yao@codesourcery.com>
12915
12916 * gnu-nat.c (ILL_RPC): Declare defined function.
12917
12918 2014-02-17 Yao Qi <yao@codesourcery.com>
12919
12920 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12921 mach_msg_type_number_t.
12922 (gnu_write_inferior): Likewise.
12923
12924 2014-02-17 Yao Qi <yao@codesourcery.com>
12925
12926 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12927 in format string.
12928 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12929 (inf_validate_procs, inf_signal): Likewise.
12930 (S_exception_raise_request): Likewise.
12931 (do_mach_notify_dead_name): Likewise.
12932 (steal_exc_port): Likewise.
12933 (gnu_read_inferior): Change 'copy_count''s type to
12934 mach_msg_type_number_t.
12935 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12936 format string.
12937
12938 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12939
12940 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12941 flag. Adjust all users; in particular...
12942 (gnu_wait): ..., don't decrement its value in here...
12943 (gnu_create_inferior): ..., and instead set the flag in here,
12944 around the startup_inferior call, and call that one with
12945 START_INFERIOR_TRAPS_EXPECTED.
12946
12947 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12948 (ILL_RPC): ... new macro.
12949 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12950 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12951 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12952 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12953 functions with ILL_RPC macro.
12954 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12955 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12956 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12957 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12958 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12959 (S_proc_getlogin_reply, S_proc_getsid_reply)
12960 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12961 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12962 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12963 (S_proc_getnports_reply, S_proc_is_important_reply)
12964 (S_proc_get_code_reply): New stub functions, generated with
12965 ILL_RPC macro.
12966
12967 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12968 collected the type check structures.
12969
12970 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12971
12972 2014-02-14 Doug Evans <dje@google.com>
12973
12974 * target.c (target_write_partial): Fix result type.
12975
12976 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12977
12978 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12979 the proper offsets to access fpregset_t.
12980
12981 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12982
12983 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12984 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12985 * h8300-tdep.c (setmachinelist): Remove global.
12986 * hppa-tdep.c (hppa_sigtramp): Remove global.
12987 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12988 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12989 * ravenscar-thread.c (update_target_observer): Remove global.
12990 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12991
12992 2014-02-12 Tom Tromey <tromey@redhat.com>
12993
12994 * common/rsp-low.c: Update comments.
12995 * common/rsp-low.h: Update comments.
12996
12997 2014-02-12 Tom Tromey <tromey@redhat.com>
12998
12999 * common/rsp-low.c (convert_ascii_to_int): Remove.
13000 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13001
13002 2014-02-12 Tom Tromey <tromey@redhat.com>
13003
13004 * common/rsp-low.h (unhexify): Don't declare.
13005 * common/rsp-low.c (unhexify): Remove.
13006
13007 2014-02-12 Tom Tromey <tromey@redhat.com>
13008
13009 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13010 * common/rsp-low.c (convert_int_to_ascii): Remove.
13011
13012 2014-02-12 Tom Tromey <tromey@redhat.com>
13013
13014 * common/rsp-low.h (hexify): Don't declare.
13015 * common/rsp-low.c (hexify): Remove.
13016
13017 2014-02-12 Tom Tromey <tromey@redhat.com>
13018
13019 * common/rsp-low.c (hexify): Never take strlen of argument.
13020
13021 2014-02-12 Tom Tromey <tromey@redhat.com>
13022
13023 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13024 * remote.c (extended_remote_run, remote_rcmd)
13025 (remote_download_trace_state_variable, remote_save_trace_data)
13026 (remote_set_trace_notes): Update.
13027 * tracepoint.c (encode_source_string, tfile_write_status)
13028 (tfile_write_uploaded_tsv): Update.
13029
13030 2014-02-12 Tom Tromey <tromey@redhat.com>
13031
13032 * tracepoint.c: Include rsp-low.h.
13033 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13034 * remote.c: Include rsp-low.h.
13035 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13036 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13037 (remote_unescape_input): Move to common/rsp-low.c.
13038 * common/rsp-low.h: New file.
13039 * common/rsp-low.c: New file.
13040 * Makefile.in (SFILES): Add common/rsp-low.c.
13041 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13042 (COMMON_OBS): Add rsp-low.o.
13043 (rsp-low.o): New target.
13044
13045 2014-02-12 Tom Tromey <tromey@redhat.com>
13046
13047 * utils.h: Include print-utils.h.
13048 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13049 (int_string, core_addr_to_string, core_addr_to_string_nz)
13050 (hex_string, hex_string_custom): Don't declare.
13051 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13052 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13053 (hex_string_custom, int_string, core_addr_to_string)
13054 (core_addr_to_string_nz, host_address_to_string): Move to
13055 common/print-utils.c.
13056 * common/print-utils.h: New file.
13057 * common/print-utils.c: New file
13058 * Makefile.in (SFILES): Add common/print-utils.c.
13059 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13060 (COMMON_OBS): Add print-utils.o.
13061 (print-utils.o): New target.
13062
13063 2014-02-12 Tom Tromey <tromey@redhat.com>
13064
13065 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13066
13067 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13068
13069 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13070
13071 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13072
13073 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13074 if a PT_IO ptrace request returns sucessfully but indicates that 0
13075 bytes were transferred.
13076
13077 2014-02-12 Pedro Alves <palves@redhat.com>
13078 Kevin Buettner <kevinb@redhat.com>
13079
13080 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13081 TYPE_INSTANCE_FLAG_CODE_SPACE.
13082
13083 2014-02-12 Pedro Alves <palves@redhat.com>
13084
13085 * h8300-tdep.c (pseudo_from_raw_register)
13086 (raw_from_pseudo_register): New functions.
13087 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13088 them.
13089
13090 2014-02-12 Pedro Alves <palves@redhat.com>
13091
13092 * h8300-tdep.c (h8300_register_sim_regno): New function.
13093 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13094 gdbarch_register_sim_regno hook.
13095
13096 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13097
13098 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13099
13100 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13101
13102 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13103
13104 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13105
13106 * obsd-tdep.h (obsd_init_abi): New prototype.
13107 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13108 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13109 (obsd_init_abi): New functions.
13110 * i386obsd-tdep.c: Include "obsd-tdep.h".
13111 (i386obsd_init_abi): Call obsd_init_abi.
13112 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13113 (amd64obsd_init_abi): Call obsd_init_abi.
13114 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13115 obsd-tdep.c to gdb_target_obs.
13116
13117 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13118
13119 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13120 double float arguments to 16-byte in the argument slots.
13121
13122 2014-02-11 Doug Evans <xdje42@gmail.com>
13123
13124 * configure.ac: Don't crash if pkg-config is not found and guile
13125 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13126 in guile checks.
13127 * configure: Regenerate.
13128
13129 2014-02-11 Yao Qi <yao@codesourcery.com>
13130
13131 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13132 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13133 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13134 * gnu-nat.c (gnu_xfer_memory): Likewise.
13135 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13137 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13138 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13139
13140 2014-02-11 Yao Qi <yao@codesourcery.com>
13141
13142 * target.h (enum target_xfer_error): Rename to ...
13143 (enum target_xfer_status): ... it. New. All users updated.
13144 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13145 New.
13146 (TARGET_XFER_STATUS_ERROR_P): New macro.
13147 (target_xfer_error_to_string): Remove declaration.
13148 (target_xfer_status_to_string): Declare.
13149 (target_xfer_partial_ftype): Adjust it.
13150 (struct target_ops) <to_xfer_partial>: Return
13151 target_xfer_status. Add argument xfered_len. Update
13152 comments.
13153 * target.c (target_xfer_error_to_string): Rename to ...
13154 (target_xfer_status_to_string): ... it. New. All callers
13155 updated.
13156 (target_read_live_memory): Likewise. Call target_xfer_partial
13157 instead of target_read.
13158 (memory_xfer_live_readonly_partial): Return
13159 target_xfer_status. Add argument xfered_len.
13160 (raw_memory_xfer_partial): Likewise.
13161 (memory_xfer_partial_1): Likewise.
13162 (memory_xfer_partial): Likewise.
13163 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13164 properly. Update debug message.
13165 (default_xfer_partial, current_xfer_partial): Likewise.
13166 (target_write_partial): Likewise.
13167 (target_read_partial): Likewise. All callers updated.
13168 (read_whatever_is_readable): Likewise.
13169 (target_write_with_progress): Likewise.
13170 (target_read_alloc_1): Likewise.
13171
13172 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13173 * auxv.c (procfs_xfer_auxv): Likewise.
13174 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13175 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13176 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13177 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13178 * corefile.c (read_memory): Adjust.
13179 * corelow.c (core_xfer_partial): Likewise.
13180 * ctf.c (ctf_xfer_partial): Likewise.
13181 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13182 updated.
13183 (darwin_xfer_partial): Likewise.
13184 * exec.c (section_table_xfer_memory_partial): Likewise. All
13185 callers updated.
13186 (exec_xfer_partial): Likewise.
13187 * exec.h (section_table_xfer_memory_partial): Update
13188 declaration.
13189 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13190 negative.
13191 (gnu_xfer_partial): Likewise.
13192 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13193 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13194 (ia64_hpux_xfer_solib_got): Likewise.
13195 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13196 type of 'partial_len' to ULONGEST.
13197 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13198 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13199 (linux_nat_xfer_partial): Likewise.
13200 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13201 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13202 * monitor.c (monitor_xfer_memory): Likewise.
13203 (monitor_xfer_partial): Likewise.
13204 * procfs.c (procfs_xfer_partial): Likewise.
13205 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13206 * record-full.c (record_full_xfer_partial): Likewise.
13207 (record_full_core_xfer_partial): Likewise.
13208 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13209 (gdbsim_xfer_partial): Likewise.
13210 * remote.c (remote_write_bytes_aux): Likewise. All callers
13211 updated.
13212 (remote_write_bytes, remote_read_bytes): Likewise. All
13213 callers updated.
13214 (remote_flash_erase): Likewise. All callers updated.
13215 (remote_write_qxfer): Likewise. All callers updated.
13216 (remote_read_qxfer): Likewise. All callers updated.
13217 (remote_xfer_partial): Likewise.
13218 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13219 (rs6000_xfer_shared_libraries): Likewise.
13220 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13221 (sol_thread_xfer_partial): Likewise.
13222 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13223 (sparc_xfer_partial): Likewise.
13224 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13225 updated.
13226 (spu_xfer_partial): Likewise.
13227 * spu-multiarch.c (spu_xfer_partial): Likewise.
13228 * tracepoint.c (tfile_xfer_partial): Likewise.
13229 * windows-nat.c (windows_xfer_memory): Likewise.
13230 (windows_xfer_shared_libraries): Likewise.
13231 (windows_xfer_partial): Likewise.
13232 * valprint.c: Replace 'target_xfer_error' with
13233 'target_xfer_status' in comments.
13234
13235 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13236
13237 Checked in by Joel Brobecker <brobecker@adacore.com>.
13238 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13239
13240 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13241
13242 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13243 function parameters.
13244
13245 2014-02-10 Will Newton <will.newton@linaro.org>
13246
13247 * elfread.c (elf_rel_plt_read): Look for a .got section if
13248 looking up .got.plt fails.
13249 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13250 on address passed to elf_gnu_ifunc_record_cache.
13251 (elf_gnu_ifunc_resolve_addr): Likewise.
13252 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13253
13254 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13255
13256 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13257 (X_RETTURN): New macro.
13258 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13259
13260 * sparc64-tdep.c (sparc64_init_abi): Hook
13261 sparc_in_function_epilogue_p.
13262
13263 2014-02-10 Gary Benson <gbenson@redhat.com>
13264
13265 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13266 Rename name_matcher to symbol_matcher.
13267
13268 2014-02-10 Gary Benson <gbenson@redhat.com>
13269
13270 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13271 Use expand_symtabs_file_matcher_ftype and
13272 expand_symtabs_symbol_matcher_ftype.
13273
13274 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13275
13276 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13277 (struct ada_symbol_cache): New.
13278 (ada_free_symbol_cache): Forward declare.
13279 (struct ada_pspace_data): New.
13280 (ada_pspace_data_handle): New static global.
13281 (get_ada_pspace_data, ada_pspace_data_cleanup)
13282 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13283 (cache_space, cache): Delete, now folded inside struct
13284 ada_pspace_data.
13285 (ada_get_symbol_cache): New function.
13286 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13287 implementation.
13288 (_initialize_ada_language): Remove initialization of cache_space.
13289 Move call to observer_attach_inferior_exit up, grouping it
13290 with the other observer registrations inside this function.
13291 Rename command to be more general. Add call to
13292 register_program_space_data_with_cleanup.
13293
13294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13295
13296 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13297 ada_new_objfile_observer.
13298 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13299 (_initialize_tasks): Update uses of ada_new_objfile_observer
13300 and ada_tasks_normal_stop_observer.
13301
13302 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13303
13304 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13305 returned by the 'Length attribute to integer.
13306
13307 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13308
13309 * ada-lang.c (_initialize_ada_language): Initialize
13310 cache_space obstack.
13311
13312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13313
13314 * ada-lang.c (HASH_SIZE): New macro.
13315 (struct cache_entry): New type.
13316 (cache_space, cache): New static globals.
13317 (ada_clear_symbol_cache, find_entry): New functions.
13318 (lookup_cached_symbol, cache_symbol): Implement.
13319 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13320 (_initialize_ada_language): Attach ada_new_objfile_observer
13321 and ada_free_objfile_observer.
13322
13323 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13324
13325 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13326 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13327 struct block * parameter.
13328 (ada_lookup_symbol_list_worker): Constify local variable "block".
13329 Remove cast which is no longer necessary.
13330
13331 2014-02-10 Doug Evans <xdje42@gmail.com>
13332
13333 Add Guile as an extension language.
13334 * NEWS: Mention Guile scripting.
13335 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13336 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13337 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13338 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13339 (CLIBS): Add GUILE_LIBS.
13340 (install-guile): New rule.
13341 (guile.o): New rule.
13342 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13343 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13344 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13345 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13346 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13347 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13348 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13349 * configure.ac: New option --with-guile.
13350 * configure: Regenerate.
13351 * config.in: Regenerate.
13352 * auto-load.c: Remove #include "python/python.h". Add #include
13353 "gdb/section-scripts.h".
13354 (source_section_scripts): Handle Guile scripts.
13355 (_initialize_auto_load): Add name of Guile objfile script to
13356 scripts-directory help text.
13357 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13358 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13359 (struct breakpoint): New member scm_bp_object.
13360 * defs.h (enum command_control_type): New value guile_control.
13361 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13362 "extension.h".
13363 (show_user): Update comment.
13364 (_initialize_cli_cmds): Update help text for "show user". Update help
13365 text for max-user-call-depth.
13366 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13367 "extension.h".
13368 (multi_line_command_p): Add guile_control.
13369 (print_command_lines): Handle guile_control.
13370 (execute_control_command, recurse_read_control_structure): Ditto.
13371 (process_next_line): Recognize "guile" commands.
13372 * disasm.c (gdb_disassemble_info): Make non-static.
13373 * disasm.h: #include "dis-asm.h".
13374 (struct gdbarch): Add forward decl.
13375 (gdb_disassemble_info): Declare.
13376 * extension.c: #include "guile/guile.h".
13377 (extension_languages): Add guile.
13378 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13379 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13380 * gdbtypes.c (get_unsigned_type_max): New function.
13381 (get_signed_type_minmax): New function.
13382 * gdbtypes.h (get_unsigned_type_max): Declare.
13383 (get_signed_type_minmax): Declare.
13384 * guile/README: New file.
13385 * guile/guile-internal.h: New file.
13386 * guile/guile.c: New file.
13387 * guile/guile.h: New file.
13388 * guile/scm-arch.c: New file.
13389 * guile/scm-auto-load.c: New file.
13390 * guile/scm-block.c: New file.
13391 * guile/scm-breakpoint.c: New file.
13392 * guile/scm-disasm.c: New file.
13393 * guile/scm-exception.c: New file.
13394 * guile/scm-frame.c: New file.
13395 * guile/scm-gsmob.c: New file.
13396 * guile/scm-iterator.c: New file.
13397 * guile/scm-lazy-string.c: New file.
13398 * guile/scm-math.c: New file.
13399 * guile/scm-objfile.c: New file.
13400 * guile/scm-ports.c: New file.
13401 * guile/scm-pretty-print.c: New file.
13402 * guile/scm-safe-call.c: New file.
13403 * guile/scm-string.c: New file.
13404 * guile/scm-symbol.c: New file.
13405 * guile/scm-symtab.c: New file.
13406 * guile/scm-type.c: New file.
13407 * guile/scm-utils.c: New file.
13408 * guile/scm-value.c: New file.
13409 * guile/lib/gdb.scm: New file.
13410 * guile/lib/gdb/boot.scm: New file.
13411 * guile/lib/gdb/experimental.scm: New file.
13412 * guile/lib/gdb/init.scm: New file.
13413 * guile/lib/gdb/iterator.scm: New file.
13414 * guile/lib/gdb/printing.scm: New file.
13415 * guile/lib/gdb/types.scm: New file.
13416 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13417 (VPATH): Add $(GUILE_SRCDIR).
13418 (GUILE_DIR): New variable.
13419 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13420 (all): Add stamp-guile dependency.
13421 (stamp-guile): New rule.
13422 (clean-guile, install-guile, uninstall-guile): New rules.
13423 (install-only): Add install-guile dependency.
13424 (uninstall): Add uninstall-guile dependency.
13425 (clean): Add clean-guile dependency.
13426
13427 2014-02-09 Doug Evans <xdje42@gmail.com>
13428
13429 Revert this patch (which I approved, mea culpa).
13430
13431 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13432
13433 * Makefile.in (all-lib): Remove.
13434 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13435
13436 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13437
13438 Fix Python stack corruption.
13439 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13440 gdb_py_longest.
13441
13442 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13443
13444 * Makefile.in (all-lib): Remove.
13445 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13446
13447 2014-02-07 Doug Evans <dje@google.com>
13448
13449 * extension-priv.h (extension_language_script_ops): Add comment.
13450 (extension_language_ops): Add comment.
13451 (active_ext_lang_state): Fix typo in comment.
13452
13453 2014-02-07 Pedro Alves <palves@redhat.com>
13454
13455 PR breakpoints/16292
13456 * infrun.c (handle_signal_stop) <signal arrives while stepping
13457 over a breakpoint>: Switch back to the stepping thread.
13458
13459 2014-02-07 Yao Qi <yao@codesourcery.com>
13460
13461 * target.c (target_xfer_partial): Return zero if LEN is zero.
13462
13463 2014-02-07 Yao Qi <yao@codesourcery.com>
13464
13465 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13466 (ld_so_xfer_auxv): Likewise.
13467 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13468 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13469 * corelow.c (core_xfer_partial): Likewise.
13470 * ctf.c (ctf_xfer_partial): Likewise.
13471 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13472 (darwin_xfer_partial): Likewise.
13473 * exec.c (exec_xfer_partial): Likewise.
13474 * gnu-nat.c (gnu_xfer_partial): Likewise.
13475 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13476 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13477 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13478 * linux-nat.c (linux_xfer_siginfo): Likewise.
13479 (linux_proc_xfer_spu): Likewise.
13480 * procfs.c (procfs_xfer_partial): Likewise.
13481 * record-full.c (record_full_xfer_partial): Likewise.
13482 (record_full_core_xfer_partial): Likewise.
13483 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13484 * remote.c (remote_write_qxfer): Likewise.
13485 (remote_write_qxfer, remote_read_qxfer): Likewise.
13486 (remote_xfer_partial): Likewise.
13487 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13488 (rs6000_xfer_shared_libraries): Likewise.
13489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13490 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13491 (spu_xfer_partial): Likewise.
13492 * target.c (memory_xfer_partial_1): Likewise.
13493 * tracepoint.c (tfile_xfer_partial): Likewise.
13494 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13495 (windows_xfer_partial): Likewise.
13496
13497 2014-02-07 Yao Qi <yao@codesourcery.com>
13498
13499 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13500 comments.
13501 (core_xfer_shared_libraries_aix): Likewise.
13502 * gdbarch.c, gdbarch.h: Regenerated.
13503 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13504 ULONGEST. Change 'len_avail' type to ULONGEST.
13505 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13506 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13507 declaration.
13508 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13509
13510 2014-02-07 Yao Qi <yao@codesourcery.com>
13511
13512 * corefile.c (memory_error): Get 'exception' from ERR and pass
13513 'exception' to throw_error.
13514
13515 2014-02-06 Doug Evans <xdje42@gmail.com>
13516
13517 * configure.ac (libpython checking): Remove all but python.o from
13518 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13519 * configure: Regenerate.
13520
13521 * Makefile.in (SFILES): Add extension.c.
13522 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13523 (COMMON_OBS): Add extension.o.
13524 * extension.h: New file.
13525 * extension-priv.h: New file.
13526 * extension.c: New file.
13527
13528 * python/python-internal.h: #include "extension.h".
13529 (gdbpy_auto_load_enabled): Declare.
13530 (gdbpy_apply_val_pretty_printer): Declare.
13531 (gdbpy_apply_frame_filter): Declare.
13532 (gdbpy_preserve_values): Declare.
13533 (gdbpy_breakpoint_cond_says_stop): Declare.
13534 (gdbpy_breakpoint_has_cond): Declare.
13535 (void source_python_script_for_objfile): Delete.
13536 * python/python.c: #include "extension-priv.h".
13537 Delete inclusion of "observer.h".
13538 (extension_language_python): Moved here and renamed from
13539 script_language_python in py-auto-load.c.
13540 Redefined to be of type extension_language_defn.
13541 (python_extension_script_ops): New global.
13542 (python_extension_ops): New global.
13543 (struct python_env): New member previous_active.
13544 (restore_python_env): Call restore_active_ext_lang.
13545 (ensure_python_env): Call set_active_ext_lang.
13546 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13547 New arg extlang.
13548 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13549 New arg extlang.
13550 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13551 New arg extlang.
13552 (gdbpy_eval_from_control_command): Renamed from
13553 eval_python_from_control_command, made static. New arg extlang.
13554 (gdbpy_source_script) Renamed from source_python_script, made static.
13555 New arg extlang.
13556 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13557 result to int. New arg extlang.
13558 (gdbpy_source_objfile_script): Renamed from
13559 source_python_script_for_objfile, made static. New arg extlang.
13560 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13561 static. New args extlang, extlang_printers. Change result type to
13562 "void".
13563 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13564 static. New arg extlang. Rename arg printers to extlang_printers
13565 and change type to ext_lang_type_printers *.
13566 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13567 static. Replace argument arg with extlang, extlang_printers.
13568 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13569 (!HAVE_PYTHON, source_python_script): Delete.
13570 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13571 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13572 (!HAVE_PYTHON, start_type_printers): Delete.
13573 (!HAVE_PYTHON, apply_type_printers): Delete.
13574 (!HAVE_PYTHON, free_type_printers): Delete.
13575 (_initialize_python): Delete call to observer_attach_before_prompt.
13576 (finalize_python): Set/restore active extension language.
13577 (gdbpy_finish_initialization) Renamed from
13578 finish_python_initialization, made static. New arg extlang.
13579 (gdbpy_initialized): New function.
13580 * python/python.h: #include "extension.h". Delete #include
13581 "value.h", "mi/mi-cmds.h".
13582 (extension_language_python): Declare.
13583 (GDBPY_AUTO_FILE_NAME): Delete.
13584 (enum py_bt_status): Moved to extension.h and renamed to
13585 ext_lang_bt_status.
13586 (enum frame_filter_flags): Moved to extension.h.
13587 (enum py_frame_args): Moved to extension.h and renamed to
13588 ext_lang_frame_args.
13589 (finish_python_initialization): Delete.
13590 (eval_python_from_control_command): Delete.
13591 (source_python_script): Delete.
13592 (apply_val_pretty_printer): Delete.
13593 (apply_frame_filter): Delete.
13594 (preserve_python_values): Delete.
13595 (gdbpy_script_language_defn): Delete.
13596 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13597 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13598
13599 * auto-load.c: #include "extension.h".
13600 (GDB_AUTO_FILE_NAME): Delete.
13601 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13602 (script_language_gdb): Delete, moved to extension.c and renamed to
13603 extension_language_gdb.
13604 (source_gdb_script_for_objfile): Delete.
13605 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13606 (loaded_script): Change type of language member to
13607 struct extension_language_defn *.
13608 (init_loaded_scripts_info): Initialize
13609 unsupported_script_warning_printed.
13610 (maybe_add_script): Make static. Change type of language arg to
13611 struct extension_language_defn *.
13612 (clear_section_scripts): Reset unsupported_script_warning_printed.
13613 (auto_load_objfile_script_1): Rewrite to use extension language API.
13614 (auto_load_objfile_script): Make public. Remove support-compiled-in
13615 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13616 (source_section_scripts): Rewrite to use extension language API.
13617 (load_auto_scripts_for_objfile): Rewrite to use
13618 auto_load_scripts_for_objfile.
13619 (collect_matching_scripts_data): Change type of language member to
13620 struct extension_language_defn *.
13621 (auto_load_info_scripts): Change type of language arg to
13622 struct extension_language_defn *.
13623 (unsupported_script_warning_print): New function.
13624 (script_not_found_warning_print): Make static.
13625 (_initialize_auto_load): Rewrite construction of scripts-directory
13626 help.
13627 * auto-load.h (struct objfile): Add forward decl.
13628 (struct script_language): Delete.
13629 (struct auto_load_pspace_info): Add forward decl.
13630 (struct extension_language_defn): Add forward decl.
13631 (maybe_add_script): Delete.
13632 (auto_load_objfile_script): Declare.
13633 (script_not_found_warning_print): Delete.
13634 (auto_load_info_scripts): Update prototype.
13635 (auto_load_gdb_scripts_enabled): Declare.
13636 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13637 auto_load_python_scripts_enabled and made public.
13638 (script_language_python): Delete, moved to python.c.
13639 (gdbpy_script_language_defn): Delete.
13640 (info_auto_load_python_scripts): Update to use
13641 extension_language_python.
13642
13643 * breakpoint.c (condition_command): Replace call to
13644 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13645 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13646 with call to breakpoint_ext_lang_cond_says_stop.
13647 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13648 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13649 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13650 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13651 New arg slang.
13652 (local_setattro): Print name of extension language with existing
13653 stop condition.
13654
13655 * valprint.c (val_print, value_print): Update to call
13656 apply_ext_lang_val_pretty_printer.
13657 * cp-valprint.c (cp_print_value): Update call to
13658 apply_ext_lang_val_pretty_printer.
13659 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13660 (gdbpy_apply_val_pretty_printer): Renamed from
13661 apply_val_pretty_printer. New arg extlang.
13662 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13663
13664 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13665 extension language API.
13666 * cli/cli-script.c (execute_control_command): Update to call
13667 eval_ext_lang_from_control_command.
13668
13669 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13670 enum ext_lang_bt_status values. Update call to
13671 apply_ext_lang_frame_filter.
13672 (mi_cmd_stack_list_locals): Ditto.
13673 (mi_cmd_stack_list_args): Ditto.
13674 (mi_cmd_stack_list_variables): Ditto.
13675 * mi/mi-main.c: Delete #include "python/python-internal.h".
13676 Add #include "extension.h".
13677 (mi_cmd_list_features): Replace reference to python internal variable
13678 gdb_python_initialized with call to ext_lang_initialized_p.
13679
13680 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13681 Update to use enum ext_lang_frame_args. Update to call
13682 apply_ext_lang_frame_filter.
13683 * python/py-framefilter.c (extract_sym): Update to use enum
13684 ext_lang_bt_status.
13685 (extract_value, py_print_type, py_print_value): Ditto.
13686 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13687 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13688 (py_print_frame): Ditto.
13689 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13690 New arg extlang. Update to use enum ext_lang_bt_status.
13691
13692 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13693 finish_python_initialization. Replace with call to
13694 finish_ext_lang_initialization.
13695
13696 * typeprint.c (do_free_global_table): Update to call
13697 free_ext_lang_type_printers.
13698 (create_global_typedef_table): Update to call
13699 start_ext_lang_type_printers.
13700 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13701 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13702 (type_print_options): Change type of global_printers from "void *"
13703 to "struct ext_lang_type_printers *".
13704
13705 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13706 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13707 (gdbpy_preserve_values): Renamed from preserve_python_values.
13708 New arg extlang.
13709 (!HAVE_PYTHON, preserve_python_values): Delete.
13710
13711 * utils.c (quit_flag): Delete, moved to extension.c.
13712 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13713 extension.c.
13714
13715 * eval.c: Delete #include "python/python.h".
13716 * main.c: Delete #include "python/python.h".
13717
13718 * defs.h: Update comment.
13719
13720 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13721
13722 GDB 7.7 released.
13723
13724 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13725
13726 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13727 defined.
13728
13729 2014-02-05 Yao Qi <yao@codesourcery.com>
13730
13731 * remote.c (remote_pass_signals): Remove local 'buf' and use
13732 rs->buf.
13733 (remote_program_signals): Likewise.
13734
13735 2014-02-05 Yao Qi <yao@codesourcery.com>
13736
13737 * ctf.c: Include "inferior.h" and "gdbthread.h".
13738 (CTF_PID): A new macro.
13739 (ctf_open): Call inferior_appeared and add_thread_silent.
13740 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13741 (ctf_thread_alive): New function.
13742 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13743
13744 2014-02-05 Yao Qi <yao@codesourcery.com>
13745
13746 Revert this patch:
13747
13748 2013-05-24 Yao Qi <yao@codesourcery.com>
13749
13750 * tracepoint.c (TFILE_PID): Remove.
13751 (tfile_open): Don't add thread and inferior.
13752 (tfile_close): Don't set 'inferior_ptid'. Don't call
13753 exit_inferior_silent.
13754 (tfile_thread_alive): Remove.
13755 (init_tfile_ops): Don't set field 'to_thread_alive' of
13756 tfile_ops.
13757
13758 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13759
13760 * remote.c (remote_start_remote): Call remote_check_symbols even
13761 if only symbol-file (not file) has been given.
13762
13763 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13764
13765 * gdbarch.sh (skip_entrypoint): New callback.
13766 * gdbarch.c, gdbarch.h: Regenerate.
13767 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13768 * infrun.c (fill_in_stop_func): Likewise.
13769 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13770 (ppc_elfv2_elf_make_msymbol_special): New function.
13771 (ppc_elfv2_skip_entrypoint): Likewise.
13772 (ppc_linux_init_abi): Install them for ELFv2.
13773
13774 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13775
13776 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13777 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13778 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13779 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13780 structures returned in GPRs.
13781
13782 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13783
13784 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13785 offset to the stack parameter list for the ELFv2 ABI.
13786
13787 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13788
13789 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13790 set_gdbarch_convert_from_func_ptr_addr and
13791 set_gdbarch_elf_make_msymbol_special for ELFv1.
13792 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13793 function descriptors on ELFv1.
13794 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13795 set up r12 at function entry.
13796
13797 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13798
13799 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13800 (struct gdbarch_tdep): New member elf_abi.
13801
13802 * rs6000-tdep.c: Include "elf/ppc64.h".
13803 (rs6000_gdbarch_init): Detect ELF ABI version.
13804
13805 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13806
13807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13808 within a register pair holding a DFP 128-bit value on little-endian.
13809 (ppc64_sysv_abi_return_value_base): Likewise.
13810 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13811 (dfp_pseudo_register_write): Likewise.
13812
13813 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13814
13815 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13816 offset on little-endian when passing _Decimal32.
13817 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13818
13819 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13820
13821 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13822 of the overlapped FP register within the VSX register on little-
13823 endian platforms.
13824 (efpr_pseudo_register_write): Likewise.
13825
13826 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13827
13828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13829 offset on little-endian when passing small structures.
13830
13831 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13832
13833 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13834 (struct ppc64_sysv_argpos): New data structure.
13835 (ppc64_sysv_abi_push_float): Remove.
13836 (ppc64_sysv_abi_push_val): New function.
13837 (ppc64_sysv_abi_push_integer): Likewise.
13838 (ppc64_sysv_abi_push_freg): Likewise.
13839 (ppc64_sysv_abi_push_vreg): Likewise.
13840 (ppc64_sysv_abi_push_param): Likewise.
13841 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13842 (ppc64_sysv_abi_return_value_base): New function.
13843 (ppc64_sysv_abi_return_value): Refactor to use it.
13844
13845 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13846
13847 * NEWS: Document new target powerpc64le-*-linux*.
13848
13849 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13850
13851 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13852 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13853 core dumps.
13854 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13855 register set used in ELF core dumps. Add floating-point register set.
13856
13857 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13858
13859 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13860 dwarf2_to_gdb[] table using symbolic constants. Adjust
13861 penultimate entry from number representing the PC register
13862 to symbolic constant representing the MDR register. Add
13863 constant for the PC register to the end of the table.
13864
13865 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13866
13867 * bsd-kvm.c: Include <sys/param.h>
13868
13869 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13870
13871 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13872
13873 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13874
13875 * ada-lang.h (clear_ada_sym_cache): Delete.
13876
13877 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13878
13879 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13880
13881 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13882
13883 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13884 the sigreturn register save area only if the syscall is
13885 sigreturn.
13886
13887 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13888
13889 * valops.c (value_slice): Minor reformatting.
13890
13891 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13892
13893 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13894
13895 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13896
13897 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13898 New static globals.
13899 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13900 (ada_ignore_descriptive_types_p): New static global.
13901 (find_parallel_type_by_descriptive_type): Return immediately
13902 if ada_ignore_descriptive_types_p is set.
13903 (_initialize_ada_language): Register new commands "maintenance
13904 set ada", "maintenance show ada", "maintenance set ada
13905 ignore-descriptive-types" and "maintenance show ada
13906 ignore-descriptive-types".
13907 * NEWS: Add entry for new "maint ada set/show
13908 ignore-descriptive-types" commands.
13909
13910 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13911
13912 * record-btrace.c (record_btrace_close): Call btrace_teardown
13913 for all threads.
13914
13915 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13916
13917 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13918 "ui-out.h".
13919
13920 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13921
13922 * ada-typeprint (type_is_full_subrange_of_target_type):
13923 New function.
13924 (print_range): Add parameter bounds_prefered_p. If not set,
13925 try printing range types using the name of their base type.
13926 (print_range_type): Add parameter bounds_prefered_p.
13927 Use it in call to print_range.
13928 (print_array_type, ada_print_type): Update calls to print_range
13929 and print_range_type.
13930
13931 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13932
13933 * ada-typeprint.c (print_array_type, print_choices, print_range)
13934 (print_range_bound, print_dynamic_range_bound, print_range_type):
13935 Remove declaration.
13936
13937 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13938
13939 * ada-typeprint.c (print_range): Add missing empty line
13940 after local declaration.
13941
13942 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13943
13944 * ada-valprint.c (print_optional_low_bound): Get index_type's
13945 target type for as long as it is a TYPE_CODE_RANGE.
13946
13947 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13948
13949 * procfs.c (procfs_make_note_section): Remove assertion and
13950 associated comment.
13951
13952 2014-01-24 Yao Qi <yao@codesourcery.com>
13953
13954 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13955 * corelow.c (get_core_siginfo): Likewise.
13956
13957 2014-01-24 Yao Qi <yao@codesourcery.com>
13958
13959 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13960 ULONGEST. Don't check 'len' is negative.
13961 (remote_write_bytes): Change type of 'len' to ULONGEST.
13962
13963 2014-01-23 Tom Tromey <tromey@redhat.com>
13964
13965 PR python/16485:
13966 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13967 Handle exception from frame.block.
13968 (FrameVars.fetch_frame_locals): Likewise.
13969
13970 2014-01-23 Tom Tromey <tromey@redhat.com>
13971
13972 PR python/16487:
13973 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13974 on a NULL pointer. Move "goto error" to correct place.
13975
13976 2014-01-23 Tom Tromey <tromey@redhat.com>
13977
13978 PR python/16491:
13979 * python/py-framefilter.c (apply_frame_filter): Call
13980 ensure_python_env after computing gdbarch.
13981
13982 2014-01-23 Yao Qi <yao@codesourcery.com>
13983
13984 * target.c (raw_memory_xfer_partial): Change argument type
13985 from void * to gdb_byte *.
13986 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13987
13988 2014-01-22 Doug Evans <dje@google.com>
13989
13990 New gdbserver option --debug-format=timestamp.
13991 * NEWS: Mention it.
13992
13993 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13994
13995 * syscalls/s390x-linux.xml: New file.
13996 * syscalls/s390-linux.xml: New file.
13997 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13998 (XML_SYSCALL_FILENAME_S390X): Likewise.
13999 (op_svc): New enum value for SVC opcode.
14000 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14001 (s390_linux_get_syscall_number): New function.
14002 (s390_gdbarch_init): Register '*get_syscall_number' and the
14003 syscall xml file name.
14004 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14005 "s390-linux.xml" and "s390x-linux.xml".
14006 * NEWS: Announce new feature.
14007
14008 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14009
14010 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14011
14012 2014-01-22 Pedro Alves <palves@redhat.com>
14013
14014 * xtensa-config.c: Include defs.h.
14015
14016 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14017
14018 * common/common-utils.h: Add "ARI:" comment beside __func__
14019 reference.
14020
14021 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14022
14023 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14024 documentation a bit.
14025
14026 2014-01-21 Roland McGrath <mcgrathr@google.com>
14027
14028 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14029 * configure: Regenerate.
14030 * aclocal.m4: Regenerate.
14031 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14032 New substituted variables.
14033 (install-strip): New target.
14034 (INSTALL_SCRIPT): New substituted variable.
14035 (FLAGS_TO_PASS): Add it.
14036 (install-only): Use $(INSTALL_SCRIPT) rather than
14037 $(INSTALL_PROGRAM) for gcore.
14038
14039 2014-01-20 Tom Tromey <tromey@redhat.com>
14040
14041 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14042 together.
14043
14044 2014-01-20 Tom Tromey <tromey@redhat.com>
14045
14046 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14047 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14048 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14049 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14050 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14051 (struct cmd_list_element) <flags>: Remove.
14052 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14053 doc_allocated>: New fields.
14054 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14055 bitfields.
14056 * maint.c (maintenance_do_deprecate): Update.
14057 * top.c (execute_command): Update.
14058
14059 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14060
14061 * xtensa-linux-nat.c: Include asm/ptrace.h.
14062
14063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14064
14065 * Makefile.in (SFILES): Add d-support.c.
14066 (COMMON_OBS): Add d-support.o.
14067 * d-lang.h (d_parse_symbol): Add comment, now defined in
14068 d-support.c.
14069 * d-lang.c (parse_call_convention)
14070 (parse_attributes, parse_function_types)
14071 (parse_function_args, parse_type, parse_identifier)
14072 (call_convention_p, d_parse_symbol): Move functions to ...
14073 * d-support.c: ... New file.
14074
14075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14076
14077 * d-lang.h (d_parse_symbol): Add declaration.
14078 * d-lang.c (extract_identifiers)
14079 (extract_type_info): Remove functions.
14080 (parse_call_convention, parse_attributes)
14081 (parse_function_types, parse_function_args)
14082 (parse_type, parse_identifier, call_convention_p)
14083 (d_parse_symbol): New functions.
14084 (d_demangle): Use d_parse_symbol to demangle D symbols.
14085
14086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14087
14088 * d-lang.h (struct builtin_d_type): New data type.
14089 (builtin_d_type): Add declaration.
14090 * d-lang.c (d_language_arch_info, build_d_types)
14091 (builtin_d_type): New functions.
14092 (enum d_primitive_types): New data type.
14093 (d_language_defn): Change c_language_arch_info to
14094 d_language_arch_info.
14095 (d_type_data): New static variable.
14096 (_initialize_d_language): Initialize d_type_data.
14097
14098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14099
14100 * d-lang.h (d_main_name): Add declaration.
14101 * d-lang.c (d_main_name): New function.
14102 * symtab.c (find_main_name): Add call to d_main_name.
14103
14104 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14105
14106 * d-lang.c (d_language_defn): Change macro_expansion_c to
14107 macro_expansion_no.
14108
14109 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14110
14111 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14112
14113 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14114
14115 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14116 gdb_exception" declaration.
14117 * remote.c (getpkt_or_notif_sane): Likewise.
14118
14119 2014-01-17 Doug Evans <dje@google.com>
14120
14121 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14122 function, contents of dirnames_to_char_ptr_vec_append moved here.
14123 (delim_string_to_char_ptr_vec): New function.
14124 (dirnames_to_char_ptr_vec_append): Rewrite.
14125 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14126
14127 2014-01-17 Doug Evans <dje@google.com>
14128
14129 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14130 and moved here ...
14131 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14132 #include "common-utils.h".
14133 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14134 * common/vec.h (VEC_ASSERT_PASS): Update.
14135 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14136 (MACH_CHECK_ERROR): Update.
14137
14138 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14139
14140 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14141 comments.
14142 * gdbarch.h: Regenerate.
14143
14144 2014-01-16 Tom Tromey <tromey@redhat.com>
14145
14146 * value.c (struct value) <regnum>: Move earlier.
14147
14148 2014-01-16 Tom Tromey <tromey@redhat.com>
14149
14150 * remote.c (extended_remote_create_inferior): Rename from
14151 extended_remote_create_inferior_1. Add "ops" argument. Remove
14152 old implementation.
14153
14154 2014-01-16 Pedro Alves <palves@redhat.com>
14155
14156 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14157 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14158 the backchain.
14159
14160 2014-01-16 Doug Evans <dje@google.com>
14161
14162 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14163
14164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14165
14166 * btrace.h (btrace_thread_flag): New.
14167 (struct btrace_thread_info) <flags>: New.
14168 * record-btrace.c (record_btrace_resume_thread)
14169 (record_btrace_find_thread_to_move, btrace_step_no_history)
14170 (btrace_step_stopped, record_btrace_start_replaying)
14171 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14172 (record_btrace_find_resume_thread): New.
14173 (record_btrace_resume, record_btrace_wait): Extend.
14174 (record_btrace_can_execute_reverse): New.
14175 (record_btrace_open): Fail in non-stop mode.
14176 (record_btrace_set_replay): Split into this, ...
14177 (record_btrace_stop_replaying): ... this, ...
14178 (record_btrace_clear_histories): ... and this.
14179 (init_record_btrace_ops): Init to_can_execute_reverse.
14180 * NEWS: Announce it.
14181
14182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14183
14184 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14185 (forward_target_decr_pc_after_break)
14186 (target_decr_pc_after_break): New.
14187 * target.c (forward_target_decr_pc_after_break)
14188 (target_decr_pc_after_break): New.
14189 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14190 instead of gdbarch_decr_pc_after_break.
14191 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14192 instead of gdbarch_decr_pc_after_break.
14193 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14194 instead of gdbarch_decr_pc_after_break.
14195 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14196 instead of gdbarch_decr_pc_after_break.
14197 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14198 instead of gdbarch_decr_pc_after_break.
14199 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14200 instead of gdbarch_decr_pc_after_break.
14201
14202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14203
14204 * btrace.c: Include regcache.h.
14205 (btrace_add_pc): New.
14206 (btrace_enable): Call btrace_add_pc.
14207 (btrace_is_empty): New.
14208 * btrace.h (btrace_is_empty): New.
14209 * record-btrace.c (require_btrace, record_btrace_info): Call
14210 btrace_is_empty.
14211
14212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14213
14214 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14215 Support delta reads.
14216 (linux_disable_btrace): Change return type.
14217 * common/linux-btrace.h (linux_read_btrace): Change parameters
14218 and return type to allow error reporting. Update users.
14219 (linux_disable_btrace): Change return type. Update users.
14220 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14221 New.
14222 (btrace_error): New.
14223 (btrace_block) <begin>: Comment on BEGIN == 0.
14224 * btrace.c (btrace_compute_ftrace): Start from the end of
14225 the current trace.
14226 (btrace_stitch_trace, btrace_clear_history): New.
14227 (btrace_fetch): Read delta trace, return if replaying.
14228 (btrace_clear): Move clear history code to btrace_clear_history.
14229 (parse_xml_btrace): Throw an error if parsing failed.
14230 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14231 and return type to allow error reporting.
14232 (target_read_btrace): Change parameters and return type to allow
14233 error reporting.
14234 * target.c (target_read_btrace): Update.
14235 * remote.c (remote_read_btrace): Support delta reads. Pass
14236 errors on.
14237 * NEWS: Announce it.
14238
14239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14240
14241 * record.h (record_btrace_frame_unwind)
14242 (record_btrace_tailcall_frame_unwind): New declarations.
14243 * dwarf2-frame: Include record.h
14244 (dwarf2_frame_cfa): Throw an error for btrace frames.
14245 * record-btrace.c: Include hashtab.h.
14246 (btrace_get_bfun_name): New.
14247 (btrace_call_history): Call btrace_get_bfun_name.
14248 (struct btrace_frame_cache): New.
14249 (bfcache): New.
14250 (bfcache_hash, bfcache_eq, bfcache_new): New.
14251 (btrace_get_frame_function): New.
14252 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14253 (record_btrace_frame_this_id): Compute own id.
14254 (record_btrace_frame_prev_register): Provide PC, throw_error
14255 for all other registers.
14256 (record_btrace_frame_sniffer): Detect btrace frames.
14257 (record_btrace_tailcall_frame_sniffer): New.
14258 (record_btrace_frame_dealloc_cache): New.
14259 (record_btrace_frame_unwind): Add new functions.
14260 (record_btrace_tailcall_frame_unwind): New.
14261 (_initialize_record_btrace): Allocate cache.
14262 * btrace.c (btrace_clear): Call reinit_frame_cache.
14263 * NEWS: Announce it.
14264
14265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14266
14267 * record-btrace.c (record_btrace_set_replay)
14268 (record_btrace_goto_begin, record_btrace_goto_end)
14269 (record_btrace_goto): New.
14270 (init_record_btrace_ops): Initialize them.
14271 * NEWS: Announce it.
14272
14273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14274
14275 * record-btrace.c (record_btrace_find_new_threads)
14276 (record_btrace_thread_alive): New.
14277 (init_record_btrace_ops): Initialize to_find_new_threads and
14278 to_thread_alive.
14279
14280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14281
14282 * record-btrace.c (record_btrace_resume): New.
14283 (record_btrace_wait): New.
14284 (init_record_btrace_ops): Initialize to_wait and to_resume.
14285
14286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14287
14288 * record-btrace.c (record_btrace_xfer_partial)
14289 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14290 (record_btrace_allow_memory_access): New.
14291 (init_record_btrace_ops): Initialize new methods.
14292 * target.c (raw_memory_xfer_partial): Bail out if target reports
14293 that this memory is not available.
14294
14295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14296
14297 * target.h (target_ops) <to_insert_breakpoint>
14298 <to_remove_breakpoint>: Add target_ops parameter.
14299 (forward_target_insert_breakpoint): New.
14300 (forward_target_remove_breakpoint): New.
14301 (memory_remove_breakpoint, memory_insert_breakpoint):
14302 Add target_ops parameter.
14303 * target.c (target_insert_breakpoint): Split into this and ...
14304 (forward_target_insert_breakpoint): ... this.
14305 (target_remove_breakpoint): Split into this and ...
14306 (forward_target_remove_breakpoint): ... this.
14307 (debug_to_insert_breakpoint): Add target_ops parameter.
14308 Call forward_target_insert_breakpoint.
14309 (debug_to_remove_breakpoint): Add target_ops parameter.
14310 Call forward_target_remove_breakpoint.
14311 (update_current_target): Do not inherit or default to_insert_breakpoint
14312 and to_remove_breakpoint.
14313 * corelow.c (ignore): Add target_ops parameter.
14314 * exec.c (ignore): Add target_ops parameter.
14315 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14316 Add target_ops parameter.
14317 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14318 Add target_ops parameter.
14319 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14320 Add target_ops parameter.
14321 * record-full.c (record_full_beneath_to_insert_breakpoint)
14322 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14323 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14324 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14325 (record_full_core_remove_breakpoint): Add target_ops parameter.
14326 Update users.
14327 (record_full_beneath_to_insert_breakpoint_ops)
14328 (record_full_beneath_to_remove_breakpoint_ops)
14329 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14330 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14331 tmp_to_remove_breakpoint_ops,
14332 record_full_beneath_to_insert_breakpoint_ops, and
14333 record_full_beneath_to_remove_breakpoint_ops.
14334 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14335 (m32r_remove_breakpoint): Add target_ops parameter.
14336 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14337 Add target_ops parameter.
14338 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14339 Add target_ops parameter.
14340
14341 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 Markus Metzger <markus.t.metzger@intel.com>
14343
14344 * record-btrace.c: Include frame-unwind.h.
14345 (record_btrace_frame_unwind_stop_reason)
14346 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14347 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14348 New.
14349 (init_record_btrace_ops): Install it.
14350
14351 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14352
14353 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14354 get_prev_frame_1.
14355
14356 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14357
14358 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14359 earlier.
14360
14361 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14362
14363 * frame-unwind.c: Include target.h.
14364 (frame_unwind_try_unwinder): New function with code from ...
14365 (frame_unwind_find_by_frame): ... here. New variable
14366 unwinder_from_target, call also target_get_unwinder)
14367 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14368 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14369 * target.h (struct target_ops): New fields to_get_unwinder and
14370 to_get_tailcall_unwinder.
14371 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14372
14373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14374
14375 * record-btrace.c (record_btrace_fetch_registers)
14376 (record_btrace_store_registers)
14377 (record_btrace_to_prepare_to_store): New.
14378 (init_record_btrace_ops): Add the above.
14379
14380 2014-01-16 Tom Tromey <tromey@redhat.com>
14381
14382 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14383 * target.h (struct target_ops) <to_prepare_to_store>: Add
14384 argument.
14385 (target_prepare_to_store): Add argument.
14386 * target.c (debug_to_prepare_to_store): Add argument.
14387 (update_current_target): Update.
14388 * remote.c (remote_prepare_to_store): Add 'self' argument.
14389 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14390 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14391 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14392 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14393 argument.
14394 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14395 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14396 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14397 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14398 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14399
14400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14401
14402 * btrace.h (replay) <replay>: New.
14403 (btrace_is_replaying): New.
14404 * btrace.c (btrace_clear): Free replay iterator.
14405 (btrace_is_replaying): New.
14406 * record-btrace.c (record_btrace_is_replaying): New.
14407 (record_btrace_info): Print insn number if replaying.
14408 (record_btrace_insn_history): Start at replay position.
14409 (record_btrace_call_history): Start at replay position.
14410 (init_record_btrace_ops): Init to_record_is_replaying.
14411
14412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14413
14414 * record-btrace.c (record_btrace_insn_history_range): Include
14415 end.
14416 (record_btrace_insn_history_from): Adjust range.
14417 (record_btrace_call_history_range): Include
14418 end.
14419 (record_btrace_call_history_from): Adjust range.
14420 * NEWS: Announce changes.
14421
14422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14423
14424 * record.h (enum record_print_flag)
14425 <record_print_indent_calls>: New.
14426 * record.c (get_call_history_modifiers): Recognize /c modifier.
14427 (_initialize_record): Document /c modifier.
14428 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14429 Reorder fields. Optionally indent the function name. Update
14430 all users.
14431 * NEWS: Announce changes.
14432
14433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14434
14435 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14436
14437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14438
14439 * btrace.c (ftrace_new_function): Start counting at one.
14440 * record-btrace.c (record_btrace_info): Adjust number of calls
14441 and insns.
14442 * NEWS: Announce it.
14443
14444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14445
14446 * record-btrace.c (btrace_call_history_insn_range): Print
14447 insn range as [begin, end].
14448
14449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14450
14451 * btrace.h (struct btrace_func_link): New.
14452 (enum btrace_function_flag): New.
14453 (struct btrace_inst): Rename to ...
14454 (struct btrace_insn): ...this. Update all users.
14455 (struct btrace_func) <ibegin, iend>: Remove.
14456 (struct btrace_func_link): New.
14457 (struct btrace_func): Rename to ...
14458 (struct btrace_function): ...this. Update all users.
14459 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14460 (number, level, flags>: New.
14461 (struct btrace_insn_iterator): Rename to ...
14462 (struct btrace_insn_history): ...this.
14463 Update all users.
14464 (struct btrace_insn_iterator, btrace_call_iterator): New.
14465 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14466 (struct btrace_target_info) <begin, end, level>
14467 <insn_history, call_history>: New.
14468 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14469 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14470 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14471 (btrace_call_number, btrace_call_begin, btrace_call_end)
14472 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14473 (btrace_find_function_by_number, btrace_set_insn_history)
14474 (btrace_set_call_history): New.
14475 * btrace.c (btrace_init_insn_iterator)
14476 (btrace_init_func_iterator, compute_itrace): Remove.
14477 (ftrace_print_function_name, ftrace_print_filename)
14478 (ftrace_skip_file): Change
14479 parameter to const.
14480 (ftrace_init_func): Remove.
14481 (ftrace_debug): Use new btrace_function fields.
14482 (ftrace_function_switched): Also consider gaining and
14483 losing symbol information).
14484 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14485 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14486 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14487 New.
14488 (ftrace_new_function): Move. Remove debug print.
14489 (ftrace_update_lines, ftrace_update_insns): New.
14490 (ftrace_update_function): Check for call, ret, and jump.
14491 (compute_ftrace): Renamed to ...
14492 (btrace_compute_ftrace): ...this. Rewritten to compute call
14493 stack.
14494 (btrace_fetch, btrace_clear): Updated.
14495 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14496 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14497 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14498 (btrace_call_number, btrace_call_begin, btrace_call_end)
14499 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14500 (btrace_find_function_by_number, btrace_set_insn_history)
14501 (btrace_set_call_history): New.
14502 * record-btrace.c (require_btrace): Use new btrace thread
14503 info fields.
14504 (record_btrace_info, btrace_insn_history)
14505 (record_btrace_insn_history, record_btrace_insn_history_range):
14506 Use new btrace thread info fields and new iterator.
14507 (btrace_func_history_src_line): Rename to ...
14508 (btrace_call_history_src_line): ...this. Use new btrace
14509 thread info fields.
14510 (btrace_func_history): Rename to ...
14511 (btrace_call_history): ...this. Use new btrace thread info
14512 fields and new iterator.
14513 (record_btrace_call_history, record_btrace_call_history_range):
14514 Use new btrace thread info fields and new iterator.
14515
14516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14517
14518 * frame.h (frame_id_build_unavailable_stack_special): New.
14519 * frame.c (frame_id_build_unavailable_stack_special): New.
14520
14521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14522
14523 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14524 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14525 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14526 to gdbarch.
14527 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14528 (i386_insn_is_jump, i386_jmp_p): New.
14529 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14530 insn_is_jump to gdbarch.
14531 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14532 * gdbarch.h: Regenerated.
14533 * gdbarch.c: Regenerated.
14534 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14535 (default_insn_is_jump): New.
14536 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14537 (default_insn_is_jump): New.
14538
14539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14540
14541 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14542 Change to ...
14543 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14544 (btrace_read_type) <btrace_read_new>: Change to ...
14545 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14546
14547 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14548
14549 * common/linux-btrace.c (linux_read_btrace): Free trace from
14550 previous iteration.
14551
14552 2014-01-15 Doug Evans <dje@google.com>
14553
14554 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14555 uint32_t.
14556
14557 2014-01-15 Tom Tromey <tromey@redhat.com>
14558
14559 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14560 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14561 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14562 (set_objfile_main_name): New function.
14563 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14564 language_of_main>: New fields.
14565 (set_objfile_main_name): Declare.
14566 * symtab.c (find_main_name): Loop over objfiles to find the main
14567 name and language.
14568 (set_main_name): Now static.
14569 (get_main_info): Add comment.
14570 * symtab.h (set_main_name): Don't declare.
14571
14572 2014-01-15 Tom Tromey <tromey@redhat.com>
14573
14574 * symtab.c (main_progspace_key): New global.
14575 (struct main_info): New.
14576 (name_of_main, language_of_main): Remove.
14577 (get_main_info, main_info_cleanup): New function.
14578 (set_main_name, main_name, main_language): Use get_main_info.
14579 (_initialize_symtab): Initialize main_progspace_key.
14580
14581 2014-01-15 Tom Tromey <tromey@redhat.com>
14582
14583 * dbxread.c (process_one_symbol): Update.
14584 * dwarf2read.c (read_partial_die): Update.
14585 * symfile.c (set_initial_language): Call main_language.
14586 * symtab.c (language_of_main): Now static.
14587 (set_main_name): Add 'lang' parameter.
14588 (find_main_name): Update.
14589 (main_language): New function.
14590 (symtab_observer_executable_changed): Update.
14591 * symtab.h (set_main_name): Update.
14592 (language_of_main): Remove.
14593 (main_language): Declare.
14594
14595 2014-01-15 Tom Tromey <tromey@redhat.com>
14596
14597 * symfile.c (init_entry_point_info): Use new "initialized" field.
14598 Update.
14599 * objfiles.h (struct entry_point) <initialized>: New field.
14600 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14601 (struct objfile) <ei>: ...here. Remove.
14602 * objfiles.c (entry_point_address_query): Update.
14603
14604 2014-01-15 Tom Tromey <tromey@redhat.com>
14605
14606 * objfiles.c (entry_point_address_query): Relocate entry point
14607 address.
14608 (objfile_relocate1): Do not relocate entry point address.
14609 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14610 <the_bfd_section_index>: New field.
14611 * symfile.c (init_entry_point_info): Find the entry point's
14612 section.
14613
14614 2014-01-15 Tom Tromey <tromey@redhat.com>
14615
14616 * solib-frv.c (enable_break): Use entry_point_address_query.
14617
14618 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14619
14620 * NEWS: Add note on improved process record-replay on
14621 arm*-linux* targets.
14622
14623 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14624
14625 * arm-tdep.c (enum arm_record_result): New enum.
14626 (arm_record_unsupported_insn): New function.
14627 (arm_record_coproc_data_proc): Removed.
14628 (thumb2_record_ld_st_multiple): New function.
14629 (thumb2_record_ld_st_dual_ex_tbb): New function.
14630 (thumb2_record_data_proc_sreg_mimm): New function.
14631 (thumb2_record_ps_dest_generic): New function.
14632 (thumb2_record_branch_misc_cntrl): New function.
14633 (thumb2_record_str_single_data): New function.
14634 (thumb2_record_ld_mem_hints): New function.
14635 (thumb2_record_ld_word): New function.
14636 (thumb2_record_lmul_lmla_div): New function.
14637 (thumb2_record_decode_insn_handler): New function.
14638 (decode_insn): Add thumb32 instruction handlers.
14639
14640 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14641
14642 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14643 (struct arm_linux_record_tdep): Declare.
14644 (arm_canonicalize_syscall): New function.
14645 (arm_all_but_pc_registers_record): New function.
14646 (arm_linux_syscall_record): New function.
14647 (arm_linux_init_abi): Add syscall recording constructs.
14648 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14649 decoding. (arm_record_coproc_data_proc): Update arm syscall
14650 decoding.
14651 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14652 <arm_syscall_record>: New field.
14653 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14654 gdb_target_obs.
14655
14656 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14657
14658 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14659 register for push instruction recording.
14660
14661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14662
14663 * arm-tdep.c (thumb_record_misc): Update to correct logical
14664 error while recording ldm, ldmia and pop instructions.
14665
14666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14667
14668 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14669
14670 2014-01-15 Pedro Alves <palves@redhat.com>
14671
14672 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14673 (go32_resume, go32_fetch_registers, store_register)
14674 (go32_store_registers, go32_prepare_to_store)
14675 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14676 (go32_create_inferior, go32_can_run, go32_terminal_init)
14677 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14678 declarations.
14679
14680 2014-01-15 Tom Tromey <tromey@redhat.com>
14681
14682 * target.h (async_callback_ftype): New typedef.
14683 (struct target_ops) <to_async>: Use it.
14684
14685 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14686
14687 * python/py-value.c (get_field_type): Remove unnecessary curly
14688 braces for single-statement if block.
14689
14690 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14691
14692 * python/py-type.c (convert_field): Add missing empty line
14693 after declarations.
14694
14695 2014-01-14 Doug Evans <dje@google.com>
14696
14697 * symfile.h (expand_symtabs_matching): Renamed from
14698 expand_partial_symbol_names. Update prototype.
14699 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14700 * symfile.c (expand_symtabs_matching): Renamed from
14701 expand_partial_symbol_names. New args file_matcher, kind.
14702 Rename arg fun to symbol_matcher.
14703 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14704 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14705 ada_expand_partial_symbol_name.
14706 (ada_make_symbol_completion_list): Update to call
14707 expand_symtabs_matching.
14708 (ada_add_global_exceptions): Call expand_symtabs_matching.
14709 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14710 call map_symbol_filenames.
14711 * symtab.c (sources_info): Update to call map_symbol_filenames.
14712 (search_symbols): Call expand_symtabs_matching.
14713 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14714 (default_make_symbol_completion_list_break_on): Update to call
14715 expand_symtabs_matching.
14716 (make_source_files_completion_list): Update to call
14717 map_symbol_filenames.
14718
14719 2014-01-14 Doug Evans <dje@google.com>
14720
14721 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14722 (expand_symtabs_symbol_matcher_ftype): New typedef.
14723 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14724 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14725 * symfile.c (expand_partial_symbol_names): Update to use
14726 expand_symtabs_symbol_matcher_ftype.
14727 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14728 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14729 Arg name_matcher renamed to symbol_matcher.
14730 * psymtab.c (recursively_search_psymtabs): Update to use
14731 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14732 sym_matcher.
14733 (expand_symtabs_matching_via_partial): Update to use
14734 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14735 Arg name_matcher renamed to symbol_matcher.
14736
14737 2014-01-14 Doug Evans <dje@google.com>
14738
14739 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14740 (map_partial_symbol_filenames): Ditto.
14741 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14742 (map_partial_symbol_filenames): Ditto.
14743 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14744 (map_partial_symbol_filenames): Ditto.
14745 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14746 (map_partial_symbol_filenames): Ditto.
14747 * symtab.c: Delete #include "psymtab.h".
14748
14749 2014-01-14 Pedro Alves <palves@redhat.com>
14750 Tom Tromey <tromey@redhat.com>
14751
14752 * infrun.c (use_displaced_stepping): Use find_record_target
14753 instead of RECORD_IS_USED.
14754 (adjust_pc_after_break): Use record_full_is_used instead of
14755 RECORD_IS_USED.
14756 * record-btrace.c (record_btrace_open): Call record_preopen
14757 instead of checking RECORD_IS_USED.
14758 * record-full.c (record_full_shortname)
14759 (record_full_core_shortname): New globals.
14760 (record_full_is_used): New function.
14761 (find_full_open): Call record_preopen instead of checking
14762 RECORD_IS_USED.
14763 (init_record_full_ops): Set the target's shortname to
14764 record_full_shortname.
14765 (init_record_full_core_ops): Set the target's shortname to
14766 record_full_core_shortname.
14767 * record-full.h (record_full_is_used): Declare.
14768 * record.c (find_record_target): Make extern.
14769 (record_preopen): New function.
14770 * record.h (RECORD_IS_USED): Delete macro.
14771 (find_record_target, record_preopen): Declare functions.
14772
14773 2014-01-14 Yao Qi <yao@codesourcery.com>
14774
14775 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14776 'len''s type to ULONGEST.
14777 (core_xfer_shared_libraries_aix): Likewise.
14778 * gdbarch.c, gdbarch.h: Regenerated.
14779 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14780 Change type of 'len' to ULONGEST.
14781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14782 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14783
14784 2014-01-14 Yao Qi <yao@codesourcery.com>
14785
14786 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14787 type of 'len' to ULONGEST.
14788 (linux_xfer_osdata_processgroups): Likewise.
14789 (linux_xfer_osdata_threads): Likewise.
14790 (linux_xfer_osdata_fds): Likewise.
14791 (linux_xfer_osdata_isockets): Likewise.
14792 (linux_xfer_osdata_shm): Likewise.
14793 (linux_xfer_osdata_sem): Likewise.
14794 (linux_xfer_osdata_msg): Likewise.
14795 (linux_common_xfer_osdata): Likewise.
14796 (struct osdata_type) <getter>: Likewise.
14797 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14798 the declaration.
14799
14800 2014-01-14 Yao Qi <yao@codesourcery.com>
14801
14802 * target.h (target_xfer_partial_ftype): Update.
14803 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14804 ULONGEST.
14805 * aix-thread.c (aix_thread_xfer_partial): Change type of
14806 argument 'len' to ULONGEST.
14807 * auxv.c (procfs_xfer_auxv): Likewise.
14808 (ld_so_xfer_auxv): Likewise.
14809 (memory_xfer_auxv): Likewise.
14810 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14811 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14812 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14813 * corelow.c (core_xfer_partial): Likewise.
14814 * ctf.c (ctf_xfer_partial): Likewise.
14815 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14816 '%u'.
14817 (darwin_read_dyld_info): Likewise.
14818 (darwin_xfer_partial): Likewise.
14819 * exec.c (section_table_xfer_memory_partial): Likewise.
14820 (exec_xfer_partial): Likewise.
14821 * exec.h (section_table_xfer_memory_partial): Update
14822 declaration.
14823 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14824 instead of plongest.
14825 (gnu_xfer_partial): Likewise.
14826 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14827 (ia64_hpux_xfer_solib_got): Likewise.
14828 (ia64_hpux_xfer_partial): Likewise.
14829 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14830 * inf-ptrace.c (inf_ptrace_xfer_partial):
14831 * inf-ttrace.c (inf_ttrace_xfer_partial):
14832 * linux-nat.c (linux_xfer_siginfo): Likewise.
14833 (linux_nat_xfer_partial): Likewise.
14834 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14835 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14836 * monitor.c (monitor_xfer_memory): Likewise.
14837 (monitor_xfer_partial): Likewise.
14838 * procfs.c (procfs_xfer_partial): Likewise.
14839 * record-full.c (record_full_xfer_partial): Likewise.
14840 (record_full_core_xfer_partial): Likewise.
14841 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14842 instead of plongest.
14843 (gdbsim_xfer_partial): Likewise.
14844 * remote.c (remote_xfer_partial): Likewise.
14845 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14846 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14847 declaration.
14848 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14849 (rs6000_xfer_shared_libraries): Likewise.
14850 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14851 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14852 (sparc_xfer_partial): Likewise.
14853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14854 (spu_xfer_partial): Likewise.
14855 * spu-multiarch.c (spu_xfer_partial): Likewise.
14856 * target.c (target_read_live_memory): Likewise.
14857 (memory_xfer_live_readonly_partial): Likewise.
14858 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14859 (target_xfer_partial, default_xfer_partial): Likewise.
14860 (current_xfer_partial): Likewise.
14861 * tracepoint.c (tfile_xfer_partial): Likewise.
14862 * windows-nat.c (windows_xfer_memory): Likewise. Call
14863 pulongest instead of plongest.
14864 (windows_xfer_partial): Likewise.
14865 (windows_xfer_shared_libraries): Likewise.
14866
14867 2014-01-14 Yao Qi <yao@codesourcery.com>
14868
14869 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14870 target_xfer_partial_ftype.
14871
14872 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14873
14874 PR python/15464
14875 PR python/16113
14876 * valops.c (value_struct_elt_bitpos): New function
14877 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14878 object to 'None' if the field name is an empty string ("").
14879 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14880 attribute to look for a field when 'name' is 'None'.
14881 (get_field_type): New function
14882
14883 2014-01-13 Doug Evans <dje@google.com>
14884
14885 PR symtab/16426
14886 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14887 (try_open_dwop_file): Ditto.
14888 * gdb_bfd.c: #include "vec.h".
14889 (bfdp): New typedef.
14890 (struct gdb_bfd_data): New member included_bfds.
14891 (gdb_bfd_unref): Unref all included bfds.
14892 (gdb_bfd_record_inclusion): New function.
14893 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14894
14895 2014-01-13 Tom Tromey <tromey@redhat.com>
14896
14897 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14898
14899 2014-01-13 Tom Tromey <tromey@redhat.com>
14900
14901 * defs.h (use_windows): Remove.
14902 * gdb.c (main): Update.
14903 * main.c (captured_main, gdb_main): Update.
14904 * main.h (struct captured_main_args) <use_windows>: Remove.
14905 * top.c (use_windows): Remove.
14906
14907 2014-01-13 Tom Tromey <tromey@redhat.com>
14908
14909 * defs.h (deprecated_flush_hook): Remove.
14910
14911 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14912
14913 PR threads/16216
14914 * linux-thread-db.c (try_thread_db_load): Add parameter
14915 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14916 (try_thread_db_load_from_pdir_1): Move it there from here.
14917 (try_thread_db_load_from_sdir): Update caller.
14918 (try_thread_db_load_from_dir): Move it there from here.
14919
14920 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14921
14922 * regformats/regdat.sh: Always rewrite the register file.
14923
14924 2014-01-13 Pedro Alves <palves@redhat.com>
14925
14926 * Makefile.in (CHECK_HEADERS): New variable.
14927 (check-headers:): New rule.
14928
14929 2014-01-13 Tom Tromey <tromey@redhat.com>
14930
14931 * cli/cli-setshow.c (do_set_command): Update.
14932 * defs.h (deprecated_set_hook): Remove.
14933 * top.c (deprecated_set_hook): Remove.
14934
14935 2014-01-13 Pedro Alves <palves@redhat.com>
14936
14937 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14938 the tracepoint if the PC is a pseudo-register.
14939
14940 2014-01-13 Tom Tromey <tromey@redhat.com>
14941
14942 * defs.h (XCALLOC): Remove.
14943 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14944 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14945 * dwarf2loc.c (allocate_piece_closure): Likewise.
14946 * elfread.c (elf_symfile_segments): Likewise.
14947 (elf_symfile_segments): Likewise.
14948 * gdbtypes.c (copy_type_recursive): Likewise.
14949 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14950 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14951 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14952 XCALLOC.
14953 * mt-tdep.c (mt_gdbarch_init): Likewise.
14954 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14955 XCALLOC.
14956 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14957 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14958 * registry.c (registry_alloc_data): Likewise.
14959 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14960 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14961 * serial.c (serial_fdopen_ops): Likewise.
14962 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14963 XCALLOC.
14964 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14965 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14966 not XCALLOC.
14967
14968 2014-01-13 Tom Tromey <tromey@redhat.com>
14969
14970 * defs.h (XMALLOC): Remove.
14971 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14972 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14973 * cli-out.c (struct ui_out *): Likewise.
14974 * cli/cli-dump.c (add_dump_command): Likewise.
14975 (add_dump_command): Likewise.
14976 * complaints.c (get_complaints): Likewise.
14977 (find_complaint): Likewise.
14978 * dwarf2-frame.c (execute_cfa_program): Likewise.
14979 * dwarf2read.c (abbrev_table_read_table): Likewise.
14980 * gdbarch.sh: Likewise.
14981 * gdbarch.c: Rebuild.
14982 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14983 * interps.c (interp_new): Likewise.
14984 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14985 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14986 * mi/mi-console.c (mi_console_file_new): Likewise.
14987 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14988 * mi/mi-out.c (mi_out_new): Likewise.
14989 * mi/mi-parse.c (mi_parse): Likewise.
14990 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14991 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14992 * observer.c (xalloc_observer_list_node): Likewise.
14993 * regcache.c (regcache_xmalloc_1): Likewise.
14994 * reggroups.c (reggroup_new): Likewise.
14995 (_initialize_reggroup): Likewise.
14996 * registry.c (register_data_with_cleanup): Likewise.
14997 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14998 * ser-base.c (serial_ttystate): Likewise.
14999 * ser-mingw.c (make_pipe_state): Likewise.
15000 * ser-pipe.c (pipe_open): Likewise.
15001 * serial.c (serial_open): Likewise.
15002 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15003 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15004 (tui_alloc_win_info): Likewise.
15005 (tui_add_content_elements): Likewise.
15006 * tui/tui-file.c (tui_file_new): Likewise.
15007 * tui/tui-out.c (tui_out_new): Likewise.
15008 * ui-file.c (mem_file_new): Likewise.
15009 * ui-out.c (push_level): Likewise.
15010 (make_cleanup_ui_out_end): Likewise.
15011 (append_header_to_list): Likewise.
15012 (ui_out_new): Likewise.
15013 * user-regs.c (user_reg_add_builtin): Likewise.
15014
15015 2014-01-13 Tom Tromey <tromey@redhat.com>
15016
15017 * defs.h (XZALLOC): Remove.
15018 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15019 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15020 (get_ada_tasks_inferior_data): Likewise.
15021 * auto-load.c (get_auto_load_pspace_data): Likewise.
15022 * auxv.c (get_auxv_inferior_data): Likewise.
15023 * bfd-target.c (target_bfd_reopen): Likewise.
15024 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15025 (deprecated_insert_raw_breakpoint): Likewise.
15026 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15027 * corelow.c (core_open): Likewise.
15028 * darwin-nat.c (darwin_check_new_threads): Likewise.
15029 (darwin_attach_pid): Likewise.
15030 * dummy-frame.c (dummy_frame_push): Likewise.
15031 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15032 * dwarf2loc.c (allocate_piece_closure): Likewise.
15033 * elfread.c (elf_symfile_segments): Likewise.
15034 * eval.c (ptrmath_type_p): Likewise.
15035 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15036 * gdbtypes.c (alloc_type_arch): Likewise.
15037 (alloc_type_instance): Likewise.
15038 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15039 * inf-child.c (inf_child_can_use_agent): Likewise.
15040 * inflow.c (get_inflow_inferior_data): Likewise.
15041 * infrun.c (save_infcall_suspend_state): Likewise.
15042 * jit.c (jit_reader_load): Likewise.
15043 (get_jit_objfile_data): Likewise.
15044 (get_jit_program_space_data): Likewise.
15045 (jit_object_open_impl): Likewise.
15046 (jit_symtab_open_impl): Likewise.
15047 (jit_block_open_impl): Likewise.
15048 (jit_frame_sniffer): Likewise.
15049 * linux-fork.c (add_fork): Likewise.
15050 * maint.c (make_command_stats_cleanup): Likewise.
15051 * objfiles.c (get_objfile_pspace_data): Likewise.
15052 * opencl-lang.c (struct lval_closure): Likewise.
15053 * osdata.c (osdata_start_osdata): Likewise.
15054 * progspace.c (new_address_space): Likewise.
15055 (add_program_space): Likewise.
15056 * remote-sim.c (get_sim_inferior_data): Likewise.
15057 * sh-tdep.c (sh_gdbarch_init): Likewise.
15058 * skip.c (Ignore): Likewise.
15059 (skip_delete_command): Likewise.
15060 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15061 (library_list_start_library): Likewise.
15062 (solib_aix_current_sos): Likewise.
15063 * solib-darwin.c (get_darwin_info): Likewise.
15064 (darwin_current_sos): Likewise.
15065 * solib-dsbt.c (get_dsbt_info): Likewise.
15066 * solib-ia64-hpux.c (new_so_list): Likewise.
15067 (ia64_hpux_get_solib_linkage_addr): Likewise.
15068 * solib-spu.c (append_ocl_sos): Likewise.
15069 (spu_current_sos): Likewise.
15070 * solib-svr4.c (get_svr4_info): Likewise.
15071 (svr4_keep_data_in_core): Likewise.
15072 (library_list_start_library): Likewise.
15073 (svr4_default_sos): Likewise.
15074 (svr4_read_so_list): Likewise.
15075 * solib-target.c (library_list_start_library): Likewise.
15076 (solib_target_current_sos): Likewise.
15077 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15078 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15079 * symfile.c (default_symfile_segments): Likewise.
15080 * target-descriptions.c (tdesc_data_init): Likewise.
15081 (tdesc_create_reg): Likewise.
15082 (struct tdesc_type *): Likewise.
15083 (tdesc_create_vector): Likewise.
15084 (tdesc_set_struct_size): Likewise.
15085 (struct tdesc_type *): Likewise.
15086 (tdesc_free_feature): Likewise.
15087 (tdesc_create_feature): Likewise.
15088 * windows-nat.c (windows_add_thread): Likewise.
15089 (windows_make_so): Likewise.
15090 * xml-support.c (gdb_xml_body_text): Likewise.
15091 (gdb_xml_create_parser_and_cleanup): Likewise.
15092 (xml_process_xincludes): Likewise.
15093 * xml-syscall.c (allocate_syscalls_info): Likewise.
15094 (syscall_create_syscall_desc): Likewise.
15095
15096 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15097
15098 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15099 function, with code from i386_stap_parse_special_token.
15100 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15101 (i386_stap_parse_special_token): Move code to the two functions
15102 above; simplify it.
15103
15104 2014-01-09 Pedro Alves <palves@redhat.com>
15105 Hui Zhu <hui@codesourcery.com>
15106
15107 PR gdb/16101
15108 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15109 bp_err_string. Don't mark the location shlib_disabled if the
15110 error thrown wasn't a generic or memory error. Catch errors
15111 thrown while inserting breakpoints in overlayed code. Output
15112 error message of software breakpoints.
15113 * remote.c (remote_insert_breakpoint): If this breakpoint has
15114 target-side commands but this stub doesn't support Z0 packets,
15115 throw NOT_SUPPORTED_ERROR error.
15116 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15117 * target.h (target_insert_breakpoint): Extend comment.
15118 (target_insert_hw_breakpoint): Add comment.
15119
15120 2014-01-08 Pedro Alves <palves@redhat.com>
15121
15122 * remote.c (remote_add_thread): Add threads silently if starting
15123 up.
15124 (remote_notice_new_inferior): If in all-stop, and starting up,
15125 don't call notice_new_inferior.
15126 (get_current_thread): New function, factored out from ...
15127 (add_current_inferior_and_thread): ... this. Adjust.
15128 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15129 found any thread, then select the remote's current thread as GDB's
15130 current thread too.
15131
15132 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15133
15134 * NEWS: Create a new section for the next release branch.
15135 Rename the section of the current branch, now that it has
15136 been cut.
15137
15138 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15139
15140 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15141 * version.in: Bump version to 7.7.50.DATE-cvs.
15142
15143 2014-01-08 Yao Qi <yao@codesourcery.com>
15144
15145 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15146 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15147 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15148
15149 2014-01-08 Yao Qi <yao@codesourcery.com>
15150
15151 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15152 return value of bfd_get_filename to symbol_file_add_from_bfd.
15153
15154 2014-01-08 Pierre Muller <muller@sourceware.org>
15155
15156 Fix PR16201.
15157 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15158 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15159 to prim_record_mininal_symbol_and_info.
15160 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15161 in call to prim_record_minimal_symbol_and_info.
15162 (read_pe_exported_syms): Set index field of section_data.
15163
15164 2014-01-07 Andrew Pinski <apinski@cavium.com>
15165
15166 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15167 * features/aarch64.c: Regenerate.
15168
15169 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15170
15171 * target.c (return_null): Define.
15172 (update_current_target): Use it instead of return_zero for
15173 functions that return a pointer.
15174
15175 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15176
15177 * source.c (add_path): Fix check for duplicated paths in the previously
15178 included paths.
15179
15180 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15181
15182 * ada-lang.c: Remove duplicated include statements.
15183 * alphabsd-nat.c: Ditto.
15184 * amd64-darwin-tdep.c: Ditto.
15185 * amd64fbsd-nat.c: Ditto.
15186 * auto-load.c: Ditto.
15187 * ax-gdb.c: Ditto.
15188 * breakpoint.c: Ditto.
15189 * dbxread.c: Ditto.
15190 * fork-child.c: Ditto.
15191 * gdb_usleep.c: Ditto.
15192 * i386-darwin-tdep.c: Ditto.
15193 * i386fbsd-nat.c: Ditto.
15194 * infcmd.c: Ditto.
15195 * inferior.c: Ditto.
15196 * jv-lang.c: Ditto.
15197 * linux-nat.c: Ditto.
15198 * linux-tdep.c: Ditto.
15199 * m68kbsd-nat.c: Ditto.
15200 * m68klinux-nat.c: Ditto.
15201 * microblaze-tdep.c: Ditto.
15202 * mips-linux-tdep.c: Ditto.
15203 * mn10300-tdep.c: Ditto.
15204 * nto-tdep.c: Ditto.
15205 * opencl-lang.c: Ditto.
15206 * osdata.c: Ditto.
15207 * printcmd.c: Ditto.
15208 * regcache.c: Ditto.
15209 * remote-m32r-sdi.c: Ditto.
15210 * remote.c: Ditto.
15211 * symfile.c: Ditto.
15212 * symtab.c: Ditto.
15213 * tilegx-linux-nat.c: Ditto.
15214 * tilegx-tdep.c: Ditto.
15215 * tracepoint.c: Ditto.
15216 * valops.c: Ditto.
15217 * vaxbsd-nat.c: Ditto.
15218 * windows-nat.c: Ditto.
15219 * xtensa-tdep.c: Ditto.
15220
15221 2014-01-07 Yao Qi <yao@codesourcery.com>
15222
15223 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15224
15225 2014-01-07 Yao Qi <yao@codesourcery.com>
15226 Joel Brobecker <brobecker@adacore.com>
15227
15228 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15229 (pdc_write_regs): Likewise.
15230 (fetch_regs_kernel_thread): Likewise.
15231 (store_regs_kernel_thread): Likewise.
15232
15233 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15234
15235 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15236 tagged type objects to their actual type.
15237
15238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15239
15240 * ada-valprint.c (print_field_values): Add "language" parameter.
15241 Update calls to print_field_values and print_variant_part.
15242 Pass new parameter "language" in call to val_print instead
15243 of "current_language". Replace call to ada_val_print by call
15244 to val_print.
15245 (print_variant_part): Add "language" parameter.
15246 (ada_val_print_struct_union): Update call to print_field_values.
15247
15248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15249
15250 * ada-valprint.c (ui_memcpy): Delete.
15251 (ada_print_floating): Update documentation. Add empty line
15252 between between function documentation and implementation.
15253 Delete variable "buffer". Use ui_file_xstrdup in place of
15254 ui_file_put. Minor adjustments following this change.
15255
15256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15257
15258 * ada-valprint.c (ada_val_print_string): New function,
15259 extracted from ada_val_print_array.
15260 (ada_val_print_array): Replace extracted code by call
15261 to ada_val_print_string followed by a return. Move
15262 "else" branch to the function's top block.
15263
15264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15265
15266 * ada-valprint.c (ada_val_print_array): Move implementation
15267 down. Rename parameter "offset" and "val" into "offset_aligned"
15268 and "original_value" respectively. Add parameter "offset".
15269
15270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15271
15272 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15273 re-organizing the code. Change the "???" message printed
15274 when target type is a TYPE_CODE_UNDEF into
15275 "<ref to undefined type>".
15276
15277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15278
15279 * ada-valprint.c (print_record): Delete, implementation inlined...
15280 (ada_val_print_struct_union): ... here. Remove call to
15281 ada_check_typedef in inlined implementation.
15282
15283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15284
15285 * ada-valprint.c (ada_val_print_gnat_array): New function,
15286 extracted from ada_val_print_1;
15287 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15288 (ada_val_print_flt, ada_val_print_struct_union)
15289 (ada_val_print_ref): Likewise.
15290 (ada_val_print_1): Delete variables i and elttype.
15291 Replace extracted-out code by call to corresponding
15292 new functions.
15293
15294 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15295
15296 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15297
15298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15299
15300 * ada-valprint.c (ada_val_print_1): Replace calls to
15301 ada_val_print_1 by calls to val_print.
15302
15303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15304
15305 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15306 Update calls to self accordingly. Replace calls to c_val_print
15307 by calls to val_print.
15308
15309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15310
15311 * ada-valprint.c (print_record): Delete declaration.
15312 (adjust_type_signedness, ada_val_print_1): Likewise.
15313 (ada_val_print): Move function implementation down.
15314 (print_variant_part, print_field_values, print_record):
15315 Move function implementation up.
15316
15317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15318
15319 * python/py-type.c (typy_get_name): New function.
15320 (type_object_getset): Add entry for attribute "name".
15321 * NEWS: Add entry mentioning this new attribute.
15322
15323 2014-01-07 Yao Qi <yao@codesourcery.com>
15324
15325 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15326 statement.
15327
15328 2014-01-07 Yao Qi <yao@codesourcery.com>
15329
15330 * gnu-nat.c (info_port_rights): Add qualifier const to
15331 argument args.
15332
15333 2014-01-07 Yao Qi <yao@codesourcery.com>
15334
15335 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15336
15337 2014-01-07 Yao Qi <yao@codesourcery.com>
15338
15339 * gnu-nat.c (make_inf) Update declaration.
15340 (make_inf): Make it static.
15341 (inf_set_traced): Likewise.
15342 (inf_port_to_thread, inf_task_died_status): Likewise.
15343
15344 2014-01-07 Yao Qi <yao@codesourcery.com>
15345
15346 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15347
15348 2014-01-07 Yao Qi <yao@codesourcery.com>
15349
15350 * gnu-nat.c (_initialize_gnu_nat): Declare.
15351
15352 2014-01-07 Yao Qi <yao@codesourcery.com>
15353
15354 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15355 'enum bfd_endian'.
15356 (struct gdbarch_info) <byte_order>: Change type to
15357 'enum bfd_endian'.
15358 <byte_order_for_code>: Likewise.
15359 * gdbarch.c, gdbarch.h: Regenerated.
15360
15361 2014-01-06 Sasha Smundak <asmundak@google.com>
15362
15363 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15364
15365 2014-01-06 Tom Tromey <tromey@redhat.com>
15366
15367 * doublest.c (convert_doublest_to_floatformat): Use const, not
15368 CONST.
15369 * somread.c (som_symtab_read): Likewise.
15370
15371 2014-01-07 Hui Zhu <hui@codesourcery.com>
15372
15373 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15374 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15375 (gdb_bfd_fopen): Ditto.
15376 (gdb_bfd_openr): Ditto.
15377 (gdb_bfd_openw): Ditto.
15378 (gdb_bfd_openr_iovec): Ditto.
15379 (gdb_bfd_fdopenr): Ditto.
15380 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15381 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15382 with xstrdup.
15383 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15384 with xstrdup.
15385 * symfile-mem.c (symbol_file_add_from_memory): Removed
15386 gdb_bfd_stash_filename.
15387
15388 2014-01-03 Doug Evans <dje@google.com>
15389
15390 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15391 output.
15392
15393 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15394
15395 Update year range in copyright notice of all files.
15396
15397 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15398
15399 * top.c (print_gdb_version): Set copyright year to 2014.
15400
15401 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15402
15403 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15404
15405 For older changes see ChangeLog-2013.
15406 \f
15407 Local Variables:
15408 mode: change-log
15409 left-margin: 8
15410 fill-column: 74
15411 version-control: never
15412 coding: utf-8
15413 End:
This page took 0.366637 seconds and 4 git commands to generate.