Specify SA_RESTART when registering the SIGWINCH signal handler
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
2
3 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
4 registering the signal handler.
5
6 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
7
8 * event-top.h (call_stdin_event_handler_again_p): Declare.
9 * event-top.c (call_stdin_event_handler_again_p): Define.
10 (stdin_event_handler): Use it.
11 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
12 handler again if there is pending input following a
13 start sequence.
14
15 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
16
17 Pushed by Joel Brobecker <brobecker@adacore.com>
18 * linux-fork.c (checkpoint_command): Print index of new
19 checkpoint in response message.
20
21 2014-11-23 Yao Qi <yao@codesourcery.com>
22
23 * valprint.c (read_string): Move local variables 'found_nul',
24 'chunksize' and 'limit' to inner scope. Update comments.
25
26 2014-11-22 Doug Evans <xdje42@gmail.com>
27
28 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
29 function comment.
30 (search_symbols): Fix comments and whitespace.
31
32 2014-11-22 Doug Evans <xdje42@gmail.com>
33
34 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
35
36 2014-11-21 Doug Evans <dje@google.com>
37
38 * psymtab.c (psymtab_search_name): Fix whitespace.
39
40 2014-11-21 Yao Qi <yao@codesourcery.com>
41
42 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
43 errno.
44 * gnulib/import/Makefile.am: Re-generated.
45 * gnulib/import/Makefile.in: Likewise.
46 * gnulib/import/m4/gnulib-cache.m4: Likewise.
47
48 2014-11-21 Yao Qi <yao@codesourcery.com>
49
50 * gdb_wchar.h: Include wchar.h and wctype.h.
51 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
52 include wchar.h and wctype.h.
53 Don't check HAVE_WCHAR_H.
54
55 2014-11-21 Yao Qi <yao@codesourcery.com>
56
57 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
58 and wctype-h.
59 * gnulib/import/Makefile.am: Re-generated.
60 * gnulib/import/Makefile.in: Likewise.
61 * gnulib/import/m4/gnulib-cache.m4: Likewise.
62
63 2014-11-21 Yao Qi <yao@codesourcery.com>
64
65 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
66 memchr.
67 * gnulib/import/Makefile.am: Re-generated.
68 * gnulib/import/Makefile.in: Likewise.
69 * gnulib/import/m4/gnulib-cache.m4: Likewise.
70
71 2014-11-21 Yao Qi <yao@codesourcery.com>
72
73 * common/common-defs.h: Include alloca.h
74 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
75 * configure: Re-generated.
76 * defs.h: Remove code handling alloca.
77 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
78 or not.
79
80 2014-11-21 Yao Qi <yao@codesourcery.com>
81
82 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
83 alloca.
84 * gnulib/import/Makefile.am: Re-generated.
85 * gnulib/import/Makefile.in: Likewise..
86 * gnulib/import/m4/gnulib-cache.m4: Likewise.
87
88 2014-11-21 Yao Qi <yao@codesourcery.com>
89
90 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
91 alphabetical order.
92
93 2014-11-21 Joel Brobecker <brobecker@adacore.com>
94
95 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
96 flag_unsigned if HIGH_BOUND is constant and negative.
97
98 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
99
100 PR breakpoints/10737
101 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
102 modifier from "struct gdbarch" when compiling without Expat (XML)
103 support.
104 (get_syscall_by_number): Likewise.
105 (get_syscall_by_name): Likewise.
106 (get_syscall_names): Likewise.
107
108 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
109
110 PR breakpoints/10737
111 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
112 set_xml_syscall_file_name to provide gdbarch.
113 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
114 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
115 * breakpoint.c (print_it_catch_syscall): Adjust call to
116 get_syscall_by_number to provide gdbarch.
117 (print_one_catch_syscall): Likewise.
118 (print_mention_catch_syscall): Likewise.
119 (print_recreate_catch_syscall): Likewise.
120 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
121 and get_syscall_by_name to provide gdbarch.
122 (catch_syscall_completer): Adjust call to get_syscall_names to
123 provide gdbarch.
124 * gdbarch.c: Regenerate.
125 * gdbarch.h: Likewise.
126 * gdbarch.sh: Forward declare "struct syscalls_info".
127 (xml_syscall_file): New variable.
128 (syscalls_info): Likewise.
129 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
130 set_xml_syscall_file_name to provide gdbarch.
131 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
132 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
133 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
134 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
135 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
136 * xml-syscall.c: Include gdbarch.h.
137 (set_xml_syscall_file_name): Accept gdbarch parameter.
138 (get_syscall_by_number): Likewise.
139 (get_syscall_by_name): Likewise.
140 (get_syscall_names): Likewise.
141 (my_gdb_datadir): Delete global variable.
142 (struct syscalls_info) <my_gdb_datadir>: New variable.
143 (struct syscalls_info) <sysinfo>: Rename variable to
144 "syscalls_info".
145 (sysinfo): Delete global variable.
146 (have_initialized_sysinfo): Likewise.
147 (xml_syscall_file): Likewise.
148 (sysinfo_free_syscalls_desc): Rename to...
149 (syscalls_info_free_syscalls_desc): ... this.
150 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
151 code to the new layout of "struct syscalls_info".
152 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
153 "syscalls_info".
154 (syscall_create_syscall_desc): Likewise.
155 (syscall_start_syscall): Likewise.
156 (syscall_parse_xml): Likewise.
157 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
158 (init_sysinfo): Rename to...
159 (init_syscalls_info): ...this. Add gdbarch as a parameter.
160 Adjust function to deal with gdbarch.
161 (xml_get_syscall_number): Delete parameter sysinfo. Accept
162 gdbarch as a parameter. Adjust code.
163 (xml_get_syscall_name): Likewise.
164 (xml_list_of_syscalls): Likewise.
165 (set_xml_syscall_file_name): Accept gdbarch as parameter.
166 (get_syscall_by_number): Likewise.
167 (get_syscall_by_name): Likewise.
168 (get_syscall_names): Likewise.
169 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
170 (get_syscall_by_number): Likewise.
171 (get_syscall_by_name): Likewise.
172 (get_syscall_names): Likewise.
173
174 2014-11-20 Doug Evans <xdje42@gmail.com>
175
176 Split struct symtab into two: struct symtab and compunit_symtab.
177 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
178 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
179 to "struct compunit_symtab *". All callers updated.
180 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
181 "struct symtab *" argument to "struct compunit_symtab *".
182 All callers updated.
183 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
184 result to "struct compunit_symtab *". All callers updated.
185 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
186 Change result to "struct compunit_symtab *". All callers updated.
187 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
188 hange type to "struct compunit_symtab *". All uses updated.
189 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
190 Change type to "struct compunit_symtab *". All uses updated.
191 * buildsym.c (struct buildsym_compunit): New struct.
192 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
193 (buildsym_compunit): New static global.
194 (finish_block_internal): Update to fetch objfile from
195 buildsym_compunit.
196 (make_blockvector): Delete objfile argument.
197 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
198 debugformat, producer.
199 (start_buildsym_compunit): New function.
200 (free_buildsym_compunit): Renamed from free_subfiles_list.
201 All callers updated.
202 (patch_subfile_names): Rewrite to use buildsym_compunit.
203 (get_compunit_symtab): New function.
204 (get_macro_table): Delete argument comp_dir. All callers updated.
205 (start_symtab): Change result to "struct compunit_symtab *".
206 All callers updated. Create the subfile of the main source file.
207 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
208 (reset_symtab_globals): Update.
209 (end_symtab_get_static_block): Update to use buildsym_compunit.
210 (end_symtab_without_blockvector): Rewrite.
211 (end_symtab_with_blockvector): Change result to
212 "struct compunit_symtab *". All callers updated.
213 Update to use buildsym_compunit. Don't set symtab->dirname,
214 instead set it in the compunit.
215 Explicitly make sure main symtab is first in its list.
216 Set debugformat, producer, blockvector, block_line_section, and
217 macrotable in the compunit.
218 (end_symtab_from_static_block): Change result to
219 "struct compunit_symtab *". All callers updated.
220 (end_symtab, end_expandable_symtab): Ditto.
221 (set_missing_symtab): Change symtab argument to
222 "struct compunit_symtab *". All callers updated.
223 (augment_type_symtab): Ditto.
224 (record_debugformat): Update to use buildsym_compunit.
225 (record_producer): Update to use buildsym_compunit.
226 * buildsym.h (struct subfile) <dirname>: Delete.
227 <producer, debugformat>: Delete.
228 <buildsym_compunit>: New member.
229 (get_compunit_symtab): Declare.
230 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
231 from primary_symtab. Change type to "struct compunit_symtab *".
232 All uses updated.
233 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
234 All callers updated.
235 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
236 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
237 symtab. Change type to "struct compunit_symtab *". All uses updated.
238 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
239 All callers updated.
240 (dw2_find_last_source_symtab): Ditto.
241 (dw2_lookup_symbol): Ditto.
242 (recursively_find_pc_sect_compunit_symtab): Renamed from
243 recursively_find_pc_sect_symtab. Change result to
244 "struct compunit_symtab *". All callers updated.
245 (dw2_find_pc_sect_compunit_symtab): Renamed from
246 dw2_find_pc_sect_symtab. Change result to
247 "struct compunit_symtab *". All callers updated.
248 (get_compunit_symtab): Renamed from get_symtab. Change result to
249 "struct compunit_symtab *". All callers updated.
250 (recursively_compute_inclusions): Change type of immediate_parent
251 argument to "struct compunit_symtab *". All callers updated.
252 (compute_compunit_symtab_includes): Renamed from
253 compute_symtab_includes. All callers updated. Rewrite to compute
254 includes of compunit_symtabs and not symtabs.
255 (process_full_comp_unit): Update to work with struct compunit_symtab.
256 (process_full_type_unit): Ditto.
257 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
258 (dwarf_decode_lines): Remove special case handling of main subfile.
259 (macro_start_file): Delete argument comp_dir. All callers updated.
260 (dwarf_decode_macro_bytes): Ditto.
261 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
262 use struct compunit_symtab.
263 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
264 * jit.c (finalize_symtab): Build compunit_symtab.
265 * jv-lang.c (get_java_class_symtab): Change result to
266 "struct compunit_symtab *". All callers updated.
267 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
268 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
269 comp_dir. Change type to "struct compunit_symtab *".
270 All uses updated.
271 (new_macro_table): Change comp_dir argument to cust,
272 "struct compunit_symtab *". All callers updated.
273 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
274 nr_primary_symtabs. All uses updated.
275 (count_symtabs_and_blocks): Update to handle compunits.
276 (report_command_stats): Update output, "primary symtabs" renamed to
277 "compunits".
278 * mdebugread.c (new_symtab): Change result to
279 "struct compunit_symtab *". All callers updated.
280 (parse_procedure): Change type of search_symtab argument to
281 "struct compunit_symtab *". All callers updated.
282 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
283 separate loop.
284 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
285 symtabs. Change type to "struct compunit_symtab *". All uses updated.
286 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
287 All uses updated.
288 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
289 All uses updated.
290 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
291 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
292 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
293 symtab. Change type to "struct compunit_symtab *". All uses updated.
294 * psymtab.c (psymtab_to_symtab): Change result type to
295 "struct compunit_symtab *". All callers updated.
296 (find_pc_sect_compunit_symtab_from_partial): Renamed from
297 find_pc_sect_symtab_from_partial. Change result type to
298 "struct compunit_symtab *". All callers updated.
299 (lookup_symbol_aux_psymtabs): Change result type to
300 "struct compunit_symtab *". All callers updated.
301 (find_last_source_symtab_from_partial): Ditto.
302 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
303 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
304 and macro_table from compunit.
305 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
306 type to "struct compunit_symtab *". All callers updated.
307 (debug_qf_lookup_symbol): Ditto.
308 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
309 debug_qf_find_pc_sect_symtab, change result type to
310 "struct compunit_symtab *". All callers updated.
311 * symfile.c (allocate_symtab): Delete objfile argument.
312 New argument cust.
313 (allocate_compunit_symtab): New function.
314 (add_compunit_symtab_to_objfile): New function.
315 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
316 Change result type to "struct compunit_symtab *". All uses updated.
317 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
318 Change result type to "struct compunit_symtab *". All uses updated.
319 * symmisc.c (print_objfile_statistics): Compute blockvector count in
320 separate loop.
321 (dump_symtab_1): Update test for primary source symtab.
322 (maintenance_info_symtabs): Update to handle compunit symtabs.
323 (maintenance_check_symtabs): Ditto.
324 * symtab.c (set_primary_symtab): Delete.
325 (compunit_primary_filetab): New function.
326 (compunit_language): New function.
327 (iterate_over_some_symtabs): Change type of arguments "first",
328 "after_last" to "struct compunit_symtab *". All callers updated.
329 Update to loop over symtabs in each compunit.
330 (error_in_psymtab_expansion): Rename symtab argument to cust,
331 and change type to "struct compunit_symtab *". All callers updated.
332 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
333 Change result type to "struct compunit_symtab *". All callers updated.
334 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
335 Change result type to "struct compunit_symtab *". All callers updated.
336 (find_pc_sect_line): Only loop over symtabs within selected compunit
337 instead of all symtabs in the objfile.
338 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
339 <compunit_symtab> New member.
340 <block_line_section>: Moved to compunit_symtab.
341 <locations_valid>: Ditto.
342 <epilogue_unwind_valid>: Ditto.
343 <macro_table>: Ditto.
344 <dirname>: Ditto.
345 <debugformat>: Ditto.
346 <producer>: Ditto.
347 <objfile>: Ditto.
348 <call_site_htab>: Ditto.
349 <includes>: Ditto.
350 <user>: Ditto.
351 <primary>: Delete
352 (SYMTAB_COMPUNIT): New macro.
353 (SYMTAB_BLOCKVECTOR): Update definition.
354 (SYMTAB_OBJFILE): Update definition.
355 (SYMTAB_DIRNAME): Update definition.
356 (struct compunit_symtab): New type. Common members among all source
357 symtabs within a compilation unit moved here. All uses updated.
358 (COMPUNIT_OBJFILE): New macro.
359 (COMPUNIT_FILETABS): New macro.
360 (COMPUNIT_DEBUGFORMAT): New macro.
361 (COMPUNIT_PRODUCER): New macro.
362 (COMPUNIT_DIRNAME): New macro.
363 (COMPUNIT_BLOCKVECTOR): New macro.
364 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
365 (COMPUNIT_LOCATIONS_VALID): New macro.
366 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
367 (COMPUNIT_CALL_SITE_HTAB): New macro.
368 (COMPUNIT_MACRO_TABLE): New macro.
369 (ALL_COMPUNIT_FILETABS): New macro.
370 (compunit_symtab_ptr): New typedef.
371 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
372
373 2014-11-20 Joel Brobecker <brobecker@adacore.com>
374
375 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
376 if the TYPE_CODE of range_type's base type does not match
377 the TYPE_CODE of encoding_type's base type.
378
379 2014-11-19 Joel Brobecker <brobecker@adacore.com>
380
381 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
382 it starts with '<'.
383
384 2014-11-19 Joel Brobecker <brobecker@adacore.com>
385
386 * ada-lang.c (ada_is_redundant_range_encoding): New function.
387 (ada_is_redundant_index_type_desc): New function.
388 (to_fixed_array_type): Ignore parallel XA type if redundant.
389
390 2014-11-19 Joel Brobecker <brobecker@adacore.com>
391
392 * ada-lang.c (constrained_packed_array_type): Set the length
393 of the return array as if both bounds where zero if that
394 returned array's index type is dynamic.
395
396 2014-11-19 Yao Qi <yao@codesourcery.com>
397
398 * config/i386/go32.mh (CC): Remove.
399
400 2014-11-18 Doug Evans <xdje42@gmail.com>
401
402 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
403 updated.
404
405 2014-11-18 Doug Evans <xdje42@gmail.com>
406
407 * buildsym.c (buildsym_objfile): New static global.
408 (buildsym_comp_dir): New static global.
409 (finish_block_internal): Delete arg objfile. All callers updated.
410 (finish_block): Delete arg objfile. All callers updated.
411 (start_subfile): Delete arg dirname. All callers updated.
412 (patch_subfile_names): Update buildsym_comp_dir.
413 (get_macro_table): Delete arg objfile. All callers updated.
414 (start_symtab): New arg objfile. All callers updated.
415 Rename arg dirname to comp_dir.
416 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
417 (end_symtab_get_static_block): Delete arg objfile. All callers
418 updated.
419 (end_symtab_without_blockvector): Ditto.
420 (end_symtab_with_blockvector): Ditto.
421 (end_symtab_from_static_block): Ditto.
422 (end_symtab): Ditto.
423 (end_expandable_symtab): Ditto.
424 (augment_type_symtab): Ditto.
425 * coffread.c (coff_start_symtab): New arg objfile. All callers
426 updated.
427
428 2014-11-18 Doug Evans <xdje42@gmail.com>
429
430 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
431 updated.
432
433 2014-11-18 Doug Evans <xdje42@gmail.com>
434
435 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
436 symtab.dirname updated to use it.
437
438 2014-11-18 Doug Evans <xdje42@gmail.com>
439
440 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
441 symtab.objfile updated to use it.
442
443 2014-11-18 Doug Evans <xdje42@gmail.com>
444
445 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
446
447 2014-11-18 Doug Evans <xdje42@gmail.com>
448
449 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
450 SYMBOL_OBJFILE.
451 * findvar.c (default_read_var_value): Ditto.
452 * jv-lang.c (add_class_symtab_symbol): Ditto.
453 * parse.c (operator_check_standard): Ditto.
454 * printcmd.c (address_info): Ditto.
455 * symtab.c (fixup_symbol_section): Ditto.
456 (skip_prologue_sal): Ditto.
457 * tracepoint.c (scope_info): Ditto.
458 * valops.c (find_function_in_inferior): Ditto.
459 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
460 * python/py-symbol.c (set_symbol): Ditto.
461
462 2014-11-18 Doug Evans <xdje42@gmail.com>
463
464 * buildsym.c (main_subfile): New static global.
465 (free_subfiles_list): New function.
466 (start_symtab): Set main_subfile.
467 (restart_symtab): Replace init of subfiles, current_subfile with
468 call to free_subfiles_list.
469 (watch_main_source_file_lossage): Use main_subfile.
470 (reset_symtab_globals): Replace init of current_subfile with call
471 to free_subfiles_list.
472 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
473 functions, split out from ...
474 (end_symtab_from_static_block): ... here. Rewrite to call them.
475
476 2014-11-18 Doug Evans <xdje42@gmail.com>
477
478 The result of symtab expansion is always a primary symtab.
479 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
480 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
481 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
482 (psymtab_to_symtab): Add comment and assert.
483 (map_matching_symbols_psymtab): Remove unnecessary test for
484 non-primary symtab.
485
486 2014-11-15 Doug Evans <xdje42@gmail.com>
487
488 PR symtab/17559
489 * symtab.c (find_pc_line_symtab): New function.
490 * symtab.h (find_pc_line_symtab): Declare.
491 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
492 find_pc_symtab.
493 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
494 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
495 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
496 * tui/tui-win.c (make_visible_with_new_height): Ditto.
497 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
498 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
499
500 2014-11-15 Doug Evans <xdje42@gmail.com>
501
502 * symtab.c (expand_symtab_containing_pc): Renamed from
503 find_pc_sect_symtab_via_partial. All callers updated.
504
505 2014-11-15 Yao Qi <yao@codesourcery.com>
506
507 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
508
509 2014-11-14 Joel Brobecker <brobecker@adacore.com>
510
511 * common/common-defs.h: Move <stdarg.h> #include ahead of
512 <stdio.h> #include.
513
514 2014-11-14 Pedro Alves <palves@redhat.com>
515
516 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
517 [!PHONY_ICONV] (gdb_iconv): New function.
518 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
519
520 2014-11-13 Doug Evans <dje@google.com>
521
522 PR symtab/17591
523 * dwarf2read.c (find_slot_in_mapped_hash): Handle
524 "(anonymous namespace)".
525
526 2014-11-13 Doug Evans <dje@google.com>
527
528 * dwarf2read.c (update_enumeration_type_from_children): Avoid
529 infinite loop.
530
531 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 * NEWS (maint set target-async): Fix typo.
534
535 2014-11-12 Pedro Alves <palves@redhat.com>
536
537 * infrun.c (enum infwait_states, infwait_state): Delete.
538
539 2014-11-12 Pedro Alves <palves@redhat.com>
540
541 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
542 Rewrite stepping over a permanent breakpoint.
543 (thread_still_needs_step_over, proceed): Don't set
544 stepping_over_breakpoint for permanent breakpoints.
545 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
546 single-step breakpoints out of the target on hardware step
547 targets.
548 (process_event_stop_test): If stepping a permanent breakpoint
549 doesn't hit the step-resume breakpoint, delete the step-resume
550 breakpoint.
551 (switch_back_to_stepped_thread): Also check if the stepped thread
552 has advanced already on hardware step targets.
553 (currently_stepping): Return true if the thread stepped a
554 breakpoint.
555
556 2014-11-12 Pedro Alves <palves@redhat.com>
557
558 Mark locations as permanent, not the whole breakpoint.
559 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
560 (mark_breakpoints_out): Don't mark permanent breakpoints as
561 uninserted.
562 (breakpoint_init_inferior): Use mark_breakpoints_out.
563 (breakpoint_here_p): Adjust.
564 (bpstat_stop_status, describe_other_breakpoints): Remove handling
565 of permanent breakpoints.
566 (make_breakpoint_permanent): Mark each location as permanent,
567 instead of marking the breakpoint.
568 (add_location_to_breakpoint): If the location is permanent, mark
569 it as such, and as inserted.
570 (init_breakpoint_sal): Don't make the breakpoint permanent here.
571 (bp_location_compare, update_global_location_list): Adjust.
572 (update_breakpoint_locations): Don't make the breakpoint permanent
573 here.
574 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
575 breakpoints.
576 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
577 (struct bp_location) <permanent>: New field.
578 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
579 reference to bp_permanent.
580
581 2014-11-12 Pedro Alves <palves@redhat.com>
582
583 * arch-utils.c (default_skip_permanent_breakpoint): New function.
584 * arch-utils.h (default_skip_permanent_breakpoint): New
585 declaration.
586 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
587 Install default_skip_permanent_breakpoint as default method.
588 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
589 (i386_gdbarch_init): Don't install it.
590 * infrun.c (resume): Assume there's always a
591 gdbarch_skip_permanent_breakpoint implementation.
592 * gdbarch.h, gdbarch.c: Regenerate.
593
594 2014-11-11 Daniel Colascione <dancol@dancol.org>
595
596 Warn about cross-PID-namespace debugging.
597 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
598 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
599 * linux-thread-db.c (check_pid_namespace_match): New function.
600 (thread_db_inferior_created): Call it.
601
602 2014-11-10 Doug Evans <xdje42@gmail.com>
603
604 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
605 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
606
607 2014-11-10 Doug Evans <xdje42@gmail.com>
608
609 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
610
611 2014-11-10 Doug Evans <xdje42@gmail.com>
612
613 PR symtab/17564
614 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
615 (lookup_static_symbol): Move definition to new location and rewrite.
616 (lookup_symbol_in_objfile): New function.
617 (lookup_symbol_global_iterator_cb): Call it.
618
619 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
620
621 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
622
623 2014-11-07 Pedro Alves <palves@redhat.com>
624
625 * infrun.c (process_event_stop_test) <subroutine check>: Don't
626 check if we did a "nexti" inside a prologue.
627 * symtab.c (in_prologue): Delete function.
628 * symtab.h (in_prologue): Delete declaration.
629
630 2014-11-06 Doug Evans <xdje42@gmail.com>
631
632 * symtab.h (lookup_global_symbol): Improve function comment.
633
634 2014-11-06 Doug Evans <xdje42@gmail.com>
635
636 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
637 All callers updated.
638 * symtab.h (lookup_global_symbol): Update decl.
639 (lookup_static_symbol): Move decl to better location.
640
641 2014-11-06 Doug Evans <xdje42@gmail.com>
642
643 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
644
645 2014-11-06 Doug Evans <xdje42@gmail.com>
646
647 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
648 All callers updated.
649 (lookup_symbol_in_all_objfiles): Renamed from
650 lookup_symbol_aux_symtabs. All callers updated.
651 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
652 All callers updated.
653 (lookup_symbol_in_objfile_symtabs): Renamed from
654 lookup_symbol_aux_objfile. All callers updated.
655
656 2014-11-06 Doug Evans <xdje42@gmail.com>
657
658 * symtab.c (lookup_symbol_in_block): Renamed from
659 lookup_symbol_aux_block. All callers updated.
660
661 2014-11-06 Doug Evans <xdje42@gmail.com>
662
663 * symtab.c (lookup_static_symbol): Renamed from
664 lookup_static_symbol_aux. All callers updated.
665 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
666 All callers updated.
667
668 2014-11-06 Doug Evans <xdje42@gmail.com>
669
670 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
671 * block.c (block_lookup_symbol): Use it.
672 * cp-support.c (make_symbol_overload_list_block): Use it.
673 * symtab.c (iterate_over_symbols): Use it.
674
675 2014-11-06 Doug Evans <xdje42@gmail.com>
676
677 * symtab.c (lookup_block_symbol): Moved to ...
678 * block.c (block_lookup_symbol): ... here and renamed.
679 All callers updated.
680 * block.h (block_lookup_symbol): Declare.
681 * symtab.h (lookup_block_symbol): Delete.
682
683 2014-11-06 Doug Evans <xdje42@gmail.com>
684
685 * ada-lang.c (ada_make_symbol_completion_list): Use
686 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
687 * symtab.c (lookup_objfile_from_block): Ditto.
688
689 2014-11-06 Doug Evans <xdje42@gmail.com>
690
691 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
692 TYPE_CODE_STRUCT.
693
694 2014-11-06 Doug Evans <xdje42@gmail.com>
695
696 * objfiles.c (get_objfile_arch): Constify.
697 * objfiles.h (get_objfile_arch): Update prototype.
698 * solib.c (solib_global_lookup): Fetch arch from objfile,
699 not target_gdbarch.
700
701 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
702
703 * nios2-tdep.c (wild_insn): Delete.
704 (profiler_insn, irqentry_insn): Delete.
705 (nios2_match_sequence): Delete.
706 (nios2_analyze_prologue): Update comments. Remove matching
707 of obsolete profiler_insn and irqentry_insn sequences.
708
709 2014-11-05 Alan Modra <amodra@gmail.com>
710
711 * charset.c (convert_between_encodings): Shrink obstack using
712 obstack_blank_fast.
713 * minsyms.c (install_minimal_symbols): Likewise.
714 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
715 to char* before doing pointer arithmetic.
716
717 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
718
719 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
720
721 2014-11-04 Pedro Alves <palves@redhat.com>
722
723 * breakpoint.c (breakpoint_thread_match): Delete function.
724 * breakpoint.h (breakpoint_thread_match): Delete declaration.
725
726 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
727
728 PR c++/17494
729 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
730 the method args also under EVAL_SKIP when evaluating method
731 calls under EVAL_SKIP.
732
733 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
734
735 * dwarf2loc.c (read_pieced_value): Do big endian
736 processing only if gdb_regnum is not -1.
737 (write_pieced_value): Ditto.
738
739 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
740
741 * arm-linux-tdep.c (arm_linux_init_abi): Use
742 info.byte_order_for_code to choose endianity of breakpoint
743 instructions snippets.
744
745 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
746
747 * arm-tdep.c (extract_arm_insn): Use
748 gdbarch_byte_order_for_code to read arm instruction.
749
750 2014-11-02 Doug Evans <xdje42@gmail.com>
751
752 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
753
754 2014-11-02 Doug Evans <xdje42@gmail.com>
755
756 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
757 main_subfile before returning.
758
759 2014-10-31 Doug Evans <xdje42@gmail.com>
760
761 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
762 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
763
764 2014-10-31 Doug Evans <xdje42@gmail.com>
765
766 * valops.c (value_cast_pointers): Fix whitespace.
767 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
768 Ditto.
769
770 2014-10-30 Doug Evans <dje@google.com>
771
772 * NEWS: Mention ability add attributes to gdb.Objfile and
773 gdb.Progspace objects.
774 * python/py-objfile.c (objfile_object): New member dict.
775 (objfpy_dealloc): Py_XDECREF dict.
776 (objfpy_initialize): Initialize dict.
777 (objfile_getset): Add __dict__.
778 (objfile_object_type): Set tp_dictoffset member.
779 * python/py-progspace.c (progspace_object): New member dict.
780 (pspy_dealloc): Py_XDECREF dict.
781 (pspy_initialize): Initialize dict.
782 (pspace_getset): Add __dict__.
783 (pspace_object_type): Set tp_dictoffset member.
784
785 2014-10-30 Yao Qi <yao@codesourcery.com>
786
787 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
788 replace '\\' with '\\\\'.
789
790 2014-10-29 Joel Brobecker <brobecker@adacore.com>
791
792 GDB 7.8.1 released.
793
794 2014-10-29 Pedro Alves <palves@redhat.com>
795
796 PR gdb/17408
797 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
798 instead of assuming a thread with a stepping range is always
799 stepping.
800
801 2014-10-29 Pedro Alves <palves@redhat.com>
802
803 PR python/17372
804 * event-top.c (change_line_handler): Call
805 gdb_rl_callback_handler_remove instead of
806 rl_callback_handler_remove.
807 (callback_handler_installed): New global.
808 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
809 (gdb_rl_callback_handler_reinstall): New functions.
810 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
811 gdb_rl_callback_handler_install instead of
812 rl_callback_handler_remove and rl_callback_handler_install.
813 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
814 instead of rl_callback_handler_remove.
815 * event-top.h (gdb_rl_callback_handler_remove)
816 (gdb_rl_callback_handler_install)
817 (gdb_rl_callback_handler_reinstall): New declarations.
818 * infrun.c (reinstall_readline_callback_handler_cleanup): New
819 cleanup function.
820 (fetch_inferior_event): Install it.
821 * top.c (gdb_readline_wrapper_line) Call
822 gdb_rl_callback_handler_remove instead of
823 rl_callback_handler_remove.
824 (gdb_readline_wrapper_cleanup): Don't call
825 rl_callback_handler_install.
826
827 2014-10-29 Pedro Alves <palves@redhat.com>
828
829 * event-top.c (command_line_handler): Clear the first byte of
830 linebuffer, when it is first allocated.
831
832 2014-10-29 Pedro Alves <palves@redhat.com>
833
834 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
835 TRY_CATCH.
836
837 2014-10-29 Pedro Alves <palves@redhat.com>
838
839 PR tui/16138
840 PR tui/17519
841 * tui/tui-interp.c (tui_is_toplevel): Delete global.
842 (tui_allowed_p): Delete function.
843 * tui/tui.c: Include "interps.h".
844 (tui_enable): Don't use tui_allowed_p. Error out here with
845 detailed error messages if the TUI is the top level interpreter,
846 or if output is not a terminal. Use newterm instead of initscr,
847 and error out if initializing the terminal fails. Also error out if
848 the terminal doesn't support cursor addressing.
849 * tui/tui.h (tui_allowed_p): Delete declaration.
850
851 2014-10-29 Joel Brobecker <brobecker@adacore.com>
852
853 * arm-tdep.c (arm_skip_stack_protector): Return early if
854 address loaded by first "ldr" instruction does not have
855 a corresponding minimal symbol. Update comment.
856
857 2014-10-29 Yao Qi <yao@codesourcery.com>
858
859 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
860 loaded address correctly of ldr instruction.
861
862 2014-10-28 Pedro Alves <palves@redhat.com>
863
864 PR gdb/12623
865 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
866 field.
867 * infrun.c (resume) <stepping breakpoint instruction>: Set the
868 thread's stepped_breakpoint field. Skip if reverse debugging.
869 Add comment.
870 (init_thread_stepping_state, handle_signal_stop): Clear the
871 thread's stepped_breakpoint field.
872
873 2014-10-27 Pedro Alves <palves@redhat.com>
874
875 * remote.c (remote_thread_alive): New, factored out from ...
876 (remote_thread_alive): ... this.
877 (remote_update_thread_list): Bail out before deleting threads if
878 the target returned an empty list, and, the current thread has a
879 magic/fake ptid.
880
881 2014-10-27 Pedro Alves <palves@redhat.com>
882
883 * infrun.c (handle_signal_stop): Also skip handlers when a random
884 signal arrives while handling a "stepi" or a "nexti". Set the
885 thread's 'step_after_step_resume_breakpoint' flag.
886
887 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
888
889 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
890 (arm_record_ld_st_imm_offset): Reimplement to cover all
891 load/store cases for ARM opcode 010.
892 (arm_record_ld_st_multiple): Reimplement to cover all
893 load/store cases for ARM opcode 100.
894
895 2014-10-26 Doug Evans <xdje42@gmail.com>
896
897 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
898
899 2014-10-26 Doug Evans <xdje42@gmail.com>
900
901 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
902 parameter "kind" to "block_index".
903 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
904 "block_index".
905 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
906
907 2014-10-26 Doug Evans <xdje42@gmail.com>
908
909 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
910
911 2014-10-26 Doug Evans <xdje42@gmail.com>
912
913 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
914 obstack_alloc.
915
916 2014-10-26 Doug Evans <xdje42@gmail.com>
917
918 * parser-defs.h (block_found): Move decl from here ...
919 * symtab.h (block_found): ... to here.
920
921 2014-10-26 Doug Evans <xdje42@gmail.com>
922
923 * symtab.h (struct field_of_this_result): Fix typo in comment.
924 (lookup_symbol_in_language): Move function comment here.
925 (lookup_symbol): Improve function comment.
926 (basic_lookup_symbol_nonlocal): Ditto.
927 (lookup_symbol_static, lookup_symbol_global): Ditto.
928 (lookup_symbol_aux_block): Ditto.
929 (lookup_language_this): Add function comment.
930 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
931 function comment.
932 (lookup_block_symbol): Improve function comment.
933 (lookup_struct): Fix capitalization in function comment.
934 (lookup_transparent_type): Add function comment.
935 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
936 Improve function comment.
937 (lookup_objfile_from_block): Add function comment.
938 * symtab.c (lookup_symbol_in_language): Update function comment.
939 (lookup_symbol, lookup_language_this): Ditto.
940 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
941 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
942 (basic_lookup_symbol_nonlocal): Ditto.
943 (lookup_symbol_static, lookup_symbol_global): Ditto.
944 (lookup_transparent_type, lookup_block_symbol): Ditto.
945
946 2014-10-25 Doug Evans <xdje42@gmail.com>
947
948 * symtab.c (types_info): Delete forward decl.
949 (functions_info, variables_info, sources_info): Ditto.
950 (_initialize_symtab): Rewrite forward decl to use
951 initialize_file_ftype.
952
953 2014-10-25 Doug Evans <xdje42@gmail.com>
954
955 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
956
957 2014-10-25 Doug Evans <xdje42@gmail.com>
958
959 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
960 of local var child_die.
961
962 2014-10-24 Don Breazeal <donb@codesourcery.com>
963
964 * infrun.c (follow_fork_inferior): Update fork message printing
965 to use target_terminal_ours_for_output instead of
966 target_terminal_ours, to use _() for all format strings, to print
967 "vfork" instead of "fork" for vforks, and to add a detach message.
968 (handle_vfork_child_exec_or_exit): Update message printing to use
969 target_terminal_ours_for_output instead of target_terminal_ours, to
970 use _() for all format strings, and to fix some formatting.
971
972 2014-10-24 Pedro Alves <palves@redhat.com>
973
974 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
975 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
976 * config/vax/vax.mh: Delete.
977 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
978 obsolete configurations section.
979 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
980 * vax-nat.c: Delete file.
981
982 2014-10-24 Pedro Alves <palves@redhat.com>
983
984 * NEWS (Removed targets): Add OS/arch column.
985
986 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
987
988 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
989 on the arg type of a constructor only if it is of reference type.
990
991 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
992
993 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
994 accessors and constants from nios2 opcodes update.
995 (nios2_get_next_pc): Likewise.
996
997 2014-10-19 Doug Evans <xdje42@gmail.com>
998
999 * gdbthread.h (set_running): Fix comment.
1000 (set_executing, finish_thread_state): Fix comment.
1001
1002 2014-10-18 Doug Evans <xdje42@gmail.com>
1003
1004 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1005
1006 2014-10-17 Doug Evans <dje@google.com>
1007
1008 * NEWS: Mention new event gdb.clear_objfiles.
1009 * python/py-event.h (emit_clear_objfiles_event): Clear
1010 * python/py-events.h (events_object): New member clear_objfiles.
1011 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1012 event.
1013 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1014 emit clear_objfiles event.
1015 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1016 function.
1017 (emit_clear_objfiles_event): New function.
1018 (clear_objfiles): New event.
1019 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1020 Declare.
1021 * python/python.c (_initialize_python): Call
1022 gdbpy_initialize_clear_objfiles_event.
1023
1024 2014-10-17 Doug Evans <dje@google.com>
1025
1026 * NEWS: Mention new gdb.Objfile.progspace attribute.
1027 * python/py-objfile.c (objfpy_get_progspace): New function.
1028 (objfile_getset): New entry for "progspace".
1029
1030 2014-10-17 Pedro Alves <palves@redhat.com>
1031
1032 PR gdb/17471
1033 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1034 returns a copy of the input.
1035 (run_command_1, continue_command, step_1, jump_command)
1036 (signal_command, until_command, advance_command, finish_command)
1037 (attach_command): Adjust and install a cleanup to free the
1038 stripped args.
1039
1040 2014-10-17 Pedro Alves <palves@redhat.com>
1041
1042 PR gdb/17300
1043 * infcmd.c (continue_1): If continuing all threads in the
1044 foreground, make sure the inferior's terminal settings are put in
1045 effect.
1046
1047 2014-10-17 Pedro Alves <palves@redhat.com>
1048
1049 PR gdb/17472
1050 * annotate.c (annotate_breakpoints_invalid): Use
1051 target_terminal_our_for_output instead of target_terminal_ours.
1052 Give back the terminal to the target.
1053 (annotate_frames_invalid): Likewise.
1054
1055 2014-10-17 Pedro Alves <palves@redhat.com>
1056
1057 * target.c (enum terminal_state): New enum.
1058 (terminal_state): New global.
1059 (target_terminal_init): New function.
1060 (target_terminal_inferior): Skip if inferior already owns the
1061 terminal.
1062 (target_terminal_ours, target_terminal_ours_for_output): New
1063 functions.
1064 * target.h (target_terminal_init): Convert to function prototype.
1065 (target_terminal_ours_for_output): Convert to function prototype
1066 and tweak comment.
1067 (target_terminal_ours): Convert to function prototype and tweak
1068 comment.
1069 * windows-nat.c (do_initial_windows_stuff): Call
1070 target_terminal_init instead of child_terminal_init_with_pgrp.
1071
1072 2014-10-17 Pedro Alves <palves@redhat.com>
1073
1074 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1075 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1076 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1077 solib-osf.c.
1078 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1079 * ada-lang.h [__alpha__ && __osf__]
1080 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1081 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1082 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1083 GDB_OSABI_OSF1.
1084 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1085 files.
1086 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1087 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1088 * configure: Regenerate.
1089 * configure.ac: Remove references to osf.
1090 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1091 section. Remove all other references to osf.
1092 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1093 Remove all other references to osf.
1094 * dec-thread.c: Delete file.
1095 * defs.h (GDB_OSABI_OSF1): Delete.
1096 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1097 defined.
1098 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1099 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1100 Delete code.
1101 (unconditionally_kill_inferior)
1102 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1103 * solib-osf.c: Delete file.
1104
1105 2014-10-17 Pedro Alves <palves@redhat.com>
1106
1107 * remote.c (clear_threads_listing_context): Move higher up, out of
1108 the HAVE_LIBEXPAT guard.
1109
1110 2014-10-16 Tristan Gingold <gingold@adacore.com>
1111
1112 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1113 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1114 on amd64.
1115
1116 2014-10-15 Pedro Alves <palves@redhat.com>
1117
1118 * dec-thread.c (dec_thread_count_gdb_threads)
1119 (dec_thread_add_gdb_thread): Delete.
1120 (dec_thread_update_thread_list): Delete.
1121 (dec_thread_find_new_threads): Rename to ...
1122 (dec_thread_update_thread_list): ... this. Delete GDB-size
1123 threads that are no longer found in dec_thread_list.
1124 (resync_thread_list): Delete.
1125 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1126 resync_thread_list.
1127
1128 2014-10-15 Pedro Alves <palves@redhat.com>
1129
1130 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1131 * remote.c (remote_update_thread_list): Skip calling prune_threads
1132 if any thread listing method is supported, and instead walk over
1133 the set of remote threads listed, deleting those that are not
1134 found in GDB's thread list.
1135
1136 2014-10-15 Pedro Alves <palves@redhat.com>
1137
1138 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1139 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1140 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1141 (bsd_uthread_target): Adjust.
1142 * corelow.c (core_open): Adjust.
1143 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1144 (dec_thread_update_thread_list): New function.
1145 (init_dec_thread_ops): Adjust.
1146 * gdbthread.h (prune_threads): New declaration.
1147 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1148 (thread_db_update_thread_list): ... this. Call prune_threads.
1149 (init_thread_db_ops): Adjust.
1150 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1151 (procfs_update_thread_list): ... this. Call prune_threads.
1152 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1153 Adjust.
1154 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1155 (obsd_update_thread_list): ... this. Call prune_threads.
1156 (obsd_add_target): Adjust.
1157 * procfs.c (procfs_target): Adjust.
1158 (procfs_notice_thread): Update comment.
1159 (procfs_find_new_threads): Rename to ...
1160 (procfs_update_thread_list): ... this. Call prune_threads.
1161 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1162 comment.
1163 (ravenscar_wait): Adjust.
1164 (ravenscar_find_new_threads): Rename to ...
1165 (ravenscar_update_thread_list): ... this. Call prune_threads.
1166 (init_ravenscar_thread_ops): Adjust.
1167 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1168 (record_btrace_update_thread_list): ... this. Adjust comment.
1169 (init_record_btrace_ops): Adjust.
1170 * remote.c (remote_threads_info): Rename to ...
1171 (remote_update_thread_list): ... this. Call prune_threads.
1172 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1173 Adjust.
1174 * sol-thread.c (check_for_thread_db): Adjust.
1175 (sol_find_new_threads_callback): Rename to ...
1176 (sol_update_thread_list_callback): ... this.
1177 (sol_find_new_threads): Rename to ...
1178 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1179 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1180 * target-delegates.c: Regenerate.
1181 * target.c (target_find_new_threads): Rename to ...
1182 (target_update_thread_list): ... this.
1183 * target.h (struct target_ops): Rename to_find_new_threads field
1184 to to_update_thread_list.
1185 (target_find_new_threads): Rename to ...
1186 (target_update_thread_list): ... this.
1187 * thread.c (prune_threads): Make extern.
1188 (update_thread_list): Adjust.
1189
1190 2014-10-15 Pedro Alves <palves@redhat.com>
1191
1192 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1193 Add describing comment. Return -1 if the qL packet is not
1194 supported.
1195 (struct thread_item, thread_item_t): Move higher up in
1196 the file. Add comments.
1197 (struct threads_parsing_context): Move higher up in
1198 the file, add comments, and remote to ...
1199 (struct threads_listing_context): ... this.
1200 (remote_newthread_step): Don't add the thread to GDB's thread
1201 database here. Instead push it to the thread_listing_context
1202 list.
1203 (remote_find_new_threads): Rename to ...
1204 (remote_get_threads_with_ql): ... this. Add target_ops and
1205 targets_listing_context parameters. Pass down context.
1206 (start_thread): Adjust.
1207 (clear_threads_parsing_context): Rename to ...
1208 (clear_threads_listing_context): ... this.
1209 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1210 remote_threads_info.
1211 (remote_get_threads_with_qthreadinfo): Ditto.
1212 (remote_threads_info): Reimplement.
1213
1214 2014-10-15 Pedro Alves <palves@redhat.com>
1215
1216 * infrun.c (resume): Don't force displaced-stepping for all
1217 single-steps on software single-stepping archs.
1218
1219 2014-10-15 Pedro Alves <palves@redhat.com>
1220
1221 * breakpoint.c (single_step_breakpoints): Delete global.
1222 (insert_single_step_breakpoint): Adjust to store the breakpoint
1223 pointer in the current thread.
1224 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1225 (cancel_single_step_breakpoints): Delete functions.
1226 (breakpoint_has_location_inserted_here): Make extern.
1227 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1228 breakpoint list.
1229 * breakpoint.h (breakpoint_has_location_inserted_here): New
1230 declaration.
1231 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1232 (cancel_single_step_breakpoints): Remove declarations.
1233 * gdbthread.h (struct thread_control_state)
1234 <single_step_breakpoints>: New field.
1235 (delete_single_step_breakpoints)
1236 (thread_has_single_step_breakpoints_set)
1237 (thread_has_single_step_breakpoint_here): New declarations.
1238 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1239 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1240 (singlestep_pc): Delete globals.
1241 (infrun_thread_ptid_changed): Remove references to removed
1242 globals.
1243 (resume_cleanups): Delete the current thread's single-step
1244 breakpoints.
1245 (maybe_software_singlestep): Remove references to removed globals.
1246 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1247 delete_single_step_breakpoints.
1248 (init_wait_for_inferior): Remove references to removed globals.
1249 (delete_thread_infrun_breakpoints): Delete the thread's
1250 single-step breakpoints too.
1251 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1252 single-step breakpoints here.
1253 (delete_stopped_threads_single_step_breakpoints): New function.
1254 (adjust_pc_after_break): Adjust to use
1255 thread_has_single_step_breakpoints_set.
1256 (handle_inferior_event): Remove references to removed globals.
1257 Use delete_stopped_threads_single_step_breakpoints.
1258 (handle_signal_stop): Adjust to per-thread single-step
1259 breakpoints. Swap test order to do cheaper tests first.
1260 (switch_back_to_stepped_thread): Extend debug output. Remove
1261 references to removed globals.
1262 * record-full.c (record_full_wait_1): Adjust to per-thread
1263 single-step breakpoints.
1264 * thread.c (delete_single_step_breakpoints)
1265 (thread_has_single_step_breakpoints_set)
1266 (thread_has_single_step_breakpoint_here): New functions.
1267 (clear_thread_inferior_resources): Also delete the thread's
1268 single-step breakpoints.
1269
1270 2014-10-15 Pedro Alves <palves@redhat.com>
1271
1272 * thread.c (delete_thread_breakpoint): New function.
1273 (delete_step_resume_breakpoint)
1274 (delete_exception_resume_breakpoint): Use it.
1275 (delete_at_next_stop): New function.
1276 (clear_thread_inferior_resources): Use delete_at_next_stop.
1277
1278 2014-10-15 Pedro Alves <palves@redhat.com>
1279
1280 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1281 (breakpoint_inserted_here_p): ... here. Remove special case for
1282 software single-step breakpoints.
1283 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1284 (software_breakpoint_inserted_here_p): ... here. Remove special
1285 case for software single-step breakpoints.
1286 (bp_target_info_copy_insertion_state)
1287 (deprecated_insert_raw_breakpoint)
1288 (deprecated_remove_raw_breakpoint): Delete functions.
1289 * breakpoint.h (deprecated_insert_raw_breakpoint)
1290 (deprecated_remove_raw_breakpoint): Remove declarations.
1291
1292 2014-10-15 Pedro Alves <palves@redhat.com>
1293
1294 PR breakpoints/9649
1295 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1296 Delete array globals.
1297 (single_step_breakpoints): New global.
1298 (breakpoint_xfer_memory): Remove special handling for single-step
1299 breakpoints.
1300 (update_breakpoints_after_exec): Delete bp_single_step
1301 breakpoints.
1302 (detach_breakpoints): Remove special handling for single-step
1303 breakpoints.
1304 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1305 (bpstat_stop_status): Add comment.
1306 (bpstat_what, bptype_string, print_one_breakpoint_location)
1307 (adjust_breakpoint_address, init_bp_location): Handle
1308 bp_single_step.
1309 (new_single_step_breakpoint): New function.
1310 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1311 handling for single-step breakpoints.
1312 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1313 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1314 Rewrite.
1315 (detach_single_step_breakpoints, find_single_step_breakpoint):
1316 Delete functions.
1317 (breakpoint_has_location_inserted_here): New function.
1318 (single_step_breakpoint_inserted_here_p): Rewrite.
1319 * breakpoint.h: Remove FIXME.
1320 (enum bptype) <bp_single_step>: New enum value.
1321 (insert_single_step_breakpoint): Update comment.
1322 * infrun.c (resume_cleanups)
1323 (delete_step_thread_step_resume_breakpoint): Remove single-step
1324 breakpoints.
1325 (fetch_inferior_event): Install a cleanup that removes infrun
1326 breakpoints.
1327 (switch_back_to_stepped_thread) <expect thread advanced also>:
1328 Clear step-over info.
1329
1330 2014-10-15 Pedro Alves <palves@redhat.com>
1331
1332 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1333 (delete_thread_infrun_breakpoints): New function, with parts
1334 salvaged from delete_step_resume_breakpoint_callback.
1335 (delete_step_thread_step_resume_breakpoint): Delete.
1336 (for_each_just_stopped_thread_callback_func): New typedef.
1337 (for_each_just_stopped_thread): New function.
1338 (delete_just_stopped_threads_infrun_breakpoints): New function.
1339 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1340 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1341 ... this. Adjust.
1342 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1343
1344 2014-10-15 Pedro Alves <palves@redhat.com>
1345
1346 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1347 trying to step past a non-steppable watchpoint.
1348 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1349 field.
1350 * infrun.c (struct step_over_info): Add new field
1351 'nonsteppable_watchpoint_p' and adjust comments.
1352 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1353 Adjust.
1354 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1355 (stepping_past_nonsteppable_watchpoint): New function.
1356 (step_over_info_valid_p): Also return true if stepping past a
1357 nonsteppable watchpoint.
1358 (proceed): Adjust call to set_step_over_info. Remove reference to
1359 init_infwait_state.
1360 (init_wait_for_inferior): Remove reference to init_infwait_state.
1361 (waiton_ptid): Delete global.
1362 (struct execution_control_state)
1363 <stepped_after_stopped_by_watchpoint>: Delete field.
1364 (wait_for_inferior, fetch_inferior_event): Always pass
1365 minus_one_ptid to target_wait.
1366 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1367 field.
1368 (init_infwait_state): Delete function.
1369 (handle_inferior_event): Remove infwait_state handling.
1370 (handle_signal_stop) <watchpoints handling>: Adjust after
1371 stepped_after_stopped_by_watchpoint removal. Don't remove
1372 breakpoints here nor set infwait_state. Set the thread's
1373 stepping_over_watchpoint flag, and call keep_going instead.
1374 (keep_going): Handle stepping_over_watchpoint. Adjust
1375 set_step_over_info calls.
1376 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1377 function.
1378
1379 2014-10-15 Pedro Alves <palves@redhat.com>
1380
1381 * infrun.c (step_over_info_valid_p): New function.
1382 (resume): Use step_over_info_valid_p instead of checking the
1383 threads's trap_expected flag.
1384
1385 2014-10-15 Doug Evans <dje@google.com>
1386 Walfred Tedeschi <walfred.tedeschi@intel.com>
1387
1388 PR python/17364
1389 * python/lib/gdb/__init__.py (packages): Add "printer".
1390 * python/lib/gdb/command/bound_registers.py: Moved to ...
1391 * python/lib/gdb/printer/bound_registers.py: ... here.
1392 Add printer to global set of builtin printers. Rename printer from
1393 "bound" to "mpx_bound128".
1394 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1395 registered as global "builtin" printer.
1396 (add_builtin_pretty_printer): New function.
1397 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1398 gdb/printer/__init__.py.
1399
1400 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1401
1402 * Makefile.in (SFILES): Remove d-support.c.
1403 (COMMON_OBS): Remove d-support.o.
1404 * d-lang.h (d_parse_symbol): Remove declaration.
1405 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1406 * d-support.c: Remove file.
1407
1408 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * gdb/infrun.c (process_event_stop_test): Apply
1411 gdbarch_addr_bits_remove to longjmp resume address.
1412
1413 2014-10-15 Pedro Alves <palves@redhat.com>
1414
1415 * regformats/microblaze.dat: Delete file.
1416
1417 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1418
1419 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1420 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1421
1422 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1423
1424 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1425 as non-trivial.
1426
1427 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1428
1429 PR c++/13403
1430 PR c++/15154
1431 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1432 with qualified args.
1433
1434 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1435
1436 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1437 of the case where the second operand is a pointer.
1438 <BINOP_SUB>: Likewise.
1439
1440 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1441
1442 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1443 only if it is not NULL.
1444 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1445 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1446 (struct probe_ops) <clear_semaphore>: Likewise.
1447 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1448 not NULL.
1449 (stop_tracing): Likewise, for clear_semaphore.
1450
1451 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1452
1453 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1454 using language_c, instead of current_language.
1455
1456 2014-10-13 Doug Evans <dje@google.com>
1457
1458 * python/py-objfile.c (objfpy_initialize): New function.
1459 (objfpy_new, objfile_to_objfile_object): Call it.
1460 * python/py-progspace.c (pspy_initialize): New function.
1461 (pspy_new, pspace_to_pspace_object): Call it.
1462
1463 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1464 Jan Kratochvil <jan.kratochvil@redhat.com>
1465
1466 Fix "save breakpoints" for "catch" command.
1467 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1468 newline.
1469
1470 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1471
1472 Fix "save breakpoints" for "disable $bpnum" command.
1473 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1474
1475 2014-10-10 Pedro Alves <palves@redhat.com>
1476
1477 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1478 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1479 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1480 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1481 and been removed.
1482 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1483 * configure.ac: Remove references to IRIX.
1484 * configure.host: Add *-*-irix* to the obsolete hosts section.
1485 Remove all other references to irix.
1486 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1487 Delete files.
1488
1489 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1490
1491 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1492 isn't valid, release the tdesc arch data and return NULL.
1493
1494 2014-10-10 Pedro Alves <palves@redhat.com>
1495
1496 * linux-tdep.c: Include observer.h.
1497 (linux_inferior_data): New global.
1498 (struct linux_info): New structure.
1499 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1500 (get_linux_inferior_data): New functions.
1501 (linux_vsyscall_range): Rename to ...
1502 (linux_vsyscall_range_raw): ... this.
1503 (linux_vsyscall_range): New function; handles caching.
1504 (_initialize_linux_tdep): Register linux_inferior_data. Install
1505 inferior_exit and inferior_appeared observers.
1506
1507 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1508 Pedro Alves <palves@redhat.com>
1509
1510 PR symtab/14466
1511 * solib-svr4.c (svr4_read_so_list): Rename to ...
1512 (svr4_current_sos_1): ... this and change the function comment.
1513 (svr4_current_sos): New function.
1514
1515 2014-10-10 Pedro Alves <palves@redhat.com>
1516
1517 * arch-utils.c (default_vsyscall_range): New function.
1518 * arch-utils.h (default_vsyscall_range): New declaration.
1519 * gdbarch.sh (vsyscall_range): New hook.
1520 * gdbarch.h, gdbarch.c: Regenerate.
1521 * linux-tdep.c (linux_vsyscall_range): New function.
1522 (linux_init_abi): Install linux_vsyscall_range as
1523 vsyscall_range gdbarch hook.
1524 * memrange.c (address_in_mem_range): New function.
1525 * memrange.h (address_in_mem_range): New declaration.
1526 * symfile-mem.c (find_vdso_size): Delete function.
1527 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1528
1529 2014-10-10 Pedro Alves <palves@redhat.com>
1530
1531 * infrun.c (normal_stop): Fix typo in comment.
1532
1533 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1534
1535 PR tdep/9390
1536 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1537 typo when using logical AND to determine instruction type.
1538
1539 2014-10-09 Yao Qi <yao@codesourcery.com>
1540
1541 * infrun.c (handle_signal_stop): Remove local variable
1542 'printed'.
1543
1544 2014-10-08 Stan Shebs <stan@codesourcery.com>
1545
1546 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1547
1548 2014-10-08 Gary Benson <gbenson@redhat.com>
1549
1550 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1551
1552 2014-10-08 Gary Benson <gbenson@redhat.com>
1553
1554 * common/common-defs.h: Include common-exceptions.h.
1555 * exceptions.h: Do not include common-exceptions.h.
1556
1557 2014-10-08 Gary Benson <gbenson@redhat.com>
1558
1559 * common/common-defs.h: Include cleanups.h.
1560 * common/common-exceptions.c: Do not include cleanups.h.
1561 * utils.h: Likewise.
1562
1563 2014-10-08 Gary Benson <gbenson@redhat.com>
1564
1565 * ada-lang.c: Do not include exceptions.h.
1566 * ada-valprint.c: Likewise.
1567 * amd64-tdep.c: Likewise.
1568 * auto-load.c: Likewise.
1569 * block.c: Likewise.
1570 * break-catch-throw.c: Likewise.
1571 * breakpoint.c: Likewise.
1572 * btrace.c: Likewise.
1573 * c-lang.c: Likewise.
1574 * cli/cli-cmds.c: Likewise.
1575 * cli/cli-interp.c: Likewise.
1576 * cli/cli-script.c: Likewise.
1577 * completer.c: Likewise.
1578 * corefile.c: Likewise.
1579 * corelow.c: Likewise.
1580 * cp-abi.c: Likewise.
1581 * cp-support.c: Likewise.
1582 * cp-valprint.c: Likewise.
1583 * darwin-nat.c: Likewise.
1584 * dwarf2-frame-tailcall.c: Likewise.
1585 * dwarf2-frame.c: Likewise.
1586 * dwarf2loc.c: Likewise.
1587 * dwarf2read.c: Likewise.
1588 * eval.c: Likewise.
1589 * event-loop.c: Likewise.
1590 * event-top.c: Likewise.
1591 * f-valprint.c: Likewise.
1592 * frame-unwind.c: Likewise.
1593 * frame.c: Likewise.
1594 * gdbtypes.c: Likewise.
1595 * gnu-v2-abi.c: Likewise.
1596 * gnu-v3-abi.c: Likewise.
1597 * guile/scm-auto-load.c: Likewise.
1598 * guile/scm-breakpoint.c: Likewise.
1599 * guile/scm-cmd.c: Likewise.
1600 * guile/scm-frame.c: Likewise.
1601 * guile/scm-lazy-string.c: Likewise.
1602 * guile/scm-param.c: Likewise.
1603 * guile/scm-symbol.c: Likewise.
1604 * guile/scm-type.c: Likewise.
1605 * hppa-hpux-tdep.c: Likewise.
1606 * i386-tdep.c: Likewise.
1607 * inf-loop.c: Likewise.
1608 * infcall.c: Likewise.
1609 * infcmd.c: Likewise.
1610 * infrun.c: Likewise.
1611 * interps.c: Likewise.
1612 * interps.h: Likewise.
1613 * jit.c: Likewise.
1614 * linespec.c: Likewise.
1615 * linux-nat.c: Likewise.
1616 * linux-thread-db.c: Likewise.
1617 * m32r-rom.c: Likewise.
1618 * main.c: Likewise.
1619 * memory-map.c: Likewise.
1620 * mi/mi-cmd-break.c: Likewise.
1621 * mi/mi-cmd-stack.c: Likewise.
1622 * mi/mi-interp.c: Likewise.
1623 * mi/mi-main.c: Likewise.
1624 * monitor.c: Likewise.
1625 * nto-procfs.c: Likewise.
1626 * objc-lang.c: Likewise.
1627 * p-valprint.c: Likewise.
1628 * parse.c: Likewise.
1629 * ppc-linux-tdep.c: Likewise.
1630 * printcmd.c: Likewise.
1631 * probe.c: Likewise.
1632 * python/py-auto-load.c: Likewise.
1633 * python/py-breakpoint.c: Likewise.
1634 * python/py-cmd.c: Likewise.
1635 * python/py-finishbreakpoint.c: Likewise.
1636 * python/py-frame.c: Likewise.
1637 * python/py-framefilter.c: Likewise.
1638 * python/py-function.c: Likewise.
1639 * python/py-gdb-readline.c: Likewise.
1640 * python/py-inferior.c: Likewise.
1641 * python/py-infthread.c: Likewise.
1642 * python/py-lazy-string.c: Likewise.
1643 * python/py-linetable.c: Likewise.
1644 * python/py-param.c: Likewise.
1645 * python/py-prettyprint.c: Likewise.
1646 * python/py-symbol.c: Likewise.
1647 * python/py-type.c: Likewise.
1648 * python/py-value.c: Likewise.
1649 * python/python-internal.h: Likewise.
1650 * python/python.c: Likewise.
1651 * record-btrace.c: Likewise.
1652 * record-full.c: Likewise.
1653 * regcache.c: Likewise.
1654 * remote-fileio.c: Likewise.
1655 * remote-mips.c: Likewise.
1656 * remote.c: Likewise.
1657 * rs6000-aix-tdep.c: Likewise.
1658 * rs6000-nat.c: Likewise.
1659 * skip.c: Likewise.
1660 * solib-darwin.c: Likewise.
1661 * solib-dsbt.c: Likewise.
1662 * solib-frv.c: Likewise.
1663 * solib-ia64-hpux.c: Likewise.
1664 * solib-spu.c: Likewise.
1665 * solib-svr4.c: Likewise.
1666 * solib.c: Likewise.
1667 * spu-tdep.c: Likewise.
1668 * stack.c: Likewise.
1669 * stap-probe.c: Likewise.
1670 * symfile-mem.c: Likewise.
1671 * symmisc.c: Likewise.
1672 * target.c: Likewise.
1673 * thread.c: Likewise.
1674 * top.c: Likewise.
1675 * tracepoint.c: Likewise.
1676 * tui/tui-interp.c: Likewise.
1677 * typeprint.c: Likewise.
1678 * utils.c: Likewise.
1679 * valarith.c: Likewise.
1680 * valops.c: Likewise.
1681 * valprint.c: Likewise.
1682 * value.c: Likewise.
1683 * varobj.c: Likewise.
1684 * windows-nat.c: Likewise.
1685 * xml-support.c: Likewise.
1686
1687 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1688
1689 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1690 name implies.
1691 (extended_mips16_next_pc): Update accordingly.
1692
1693 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1694
1695 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1696 function.
1697 (micromips_instruction_is_compact_branch): Likewise.
1698 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1699 or a compact jump, reaching a jump delay slot, or seeing a
1700 second non-prologue instruction.
1701 (micromips_scan_prologue): Also terminate scanning upon seeing a
1702 compact branch or jump, or reaching a branch or jump delay slot.
1703 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1704 or jump delay slot, or seeing a second non-prologue instruction.
1705 (mips32_instruction_has_delay_slot): Retain instruction
1706 examination code only, update arguments accordingly and move
1707 instruction fetch pieces to...
1708 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1709 (micromips_instruction_has_delay_slot): Likewise and to...
1710 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1711 (mips16_instruction_has_delay_slot): Likewise and to...
1712 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1713 (mips_single_step_through_delay): Update accordingly.
1714 (mips_adjust_breakpoint_address): Likewise.
1715
1716 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1717
1718 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1719 !mustbe32 also return 1 for 32-bit instructions.
1720 (mips16_instruction_has_delay_slot): Likewise. Add an
1721 explanatory comment.
1722
1723 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1724
1725 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1726 symbols special.
1727
1728 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1729
1730 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1731 update comments.
1732 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1733 for the breakpoint's address. Don't preinitialize `placed_size'.
1734 (insert_bp_location): Set `reqstd_address' rather than
1735 `placed_address'.
1736 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1737 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1738 address.
1739 (bkpt_remove_location): Likewise.
1740 (deprecated_insert_raw_breakpoint): Likewise.
1741 (deprecated_remove_raw_breakpoint): Likewise.
1742 (find_single_step_breakpoint): Likewise.
1743 * mem-break.c (default_memory_insert_breakpoint): Use
1744 `reqstd_address' for the breakpoint's address. Don't set
1745 `placed_address' or `placed_size' if breakpoint contents couldn't
1746 have been determined.
1747 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1748 the breakpoint's address.
1749 (remote_insert_hw_breakpoint): Likewise. Don't set
1750 `placed_address' or `placed_size' if breakpoint couldn't have been
1751 set.
1752 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1753 `reqstd_address' for the breakpoint's address.
1754 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1755 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1756 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1757 * microblaze-linux-tdep.c
1758 (microblaze_linux_memory_remove_breakpoint): Likewise.
1759 * monitor.c (monitor_insert_breakpoint): Likewise.
1760 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1761 (procfs_insert_hw_breakpoint): Likewise.
1762 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1763 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1764 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1765 * remote-mips.c (mips_insert_breakpoint): Likewise.
1766 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1767
1768 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1769
1770 * valops.c (value_assign): Check for bit field assignments
1771 before calling architecture-specific register value
1772 conversion functions.
1773
1774 2014-10-03 Pierre Muller <muller@sourceware.org>
1775
1776 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1777
1778 2014-10-02 Pedro Alves <palves@redhat.com>
1779
1780 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1781 threads_are_executing.
1782 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1783 describing comment.
1784 * gdbthread.h (threads_are_executing): Declare.
1785 (handle_signal_stop) <random signals>: Don't print about the
1786 signal here if stopping.
1787 (end_stepping_range): Don't notify observers here.
1788 (normal_stop): Update the thread list. If stopped by a random
1789 signal or a stepping range ended, notify observers.
1790 * thread.c (threads_executing): New global.
1791 (init_thread_list): Clear 'threads_executing'.
1792 (set_executing): Set or clear 'threads_executing'.
1793 (threads_are_executing): New function.
1794 (update_threads_executing): New function.
1795 (update_thread_list): Use it.
1796
1797 2014-10-02 Pedro Alves <palves@redhat.com>
1798
1799 PR breakpoints/17431
1800 * breakpoint.c (update_breakpoints_after_exec): Don't create
1801 overlay, longjmp, std terminate nor exception breakpoints here.
1802
1803 2014-10-02 Pedro Alves <palves@redhat.com>
1804
1805 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1806 Adjust comments.
1807 * inferior.c (find_inferior_for_program_space): Give preference to
1808 the current inferior.
1809 * inferior.h (find_inferior_for_program_space): Update comment.
1810 * progspace.c (switch_to_program_space_and_thread): Prefer the
1811 current inferior if it's bound to the program space requested. If
1812 the inferior found doesn't have a PID yet, don't bother looking up
1813 a thread.
1814 * progspace.h (switch_to_program_space_and_thread): Adjust
1815 comment.
1816 * thread.c (any_thread_of_process, any_live_thread_of_process):
1817 Give preference to the current thread.
1818
1819 2014-10-01 Pedro Alves <palves@redhat.com>
1820
1821 * breakpoint.c (insert_bp_location): Error out if inserting a
1822 software breakpoint at a read-only address.
1823 * target.c (memory_xfer_check_region): New function, factored out
1824 from ...
1825 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1826 ULONGEST.
1827 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1828 against the memory region attributes.
1829
1830 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1831
1832 * NEWS: Announce new exit-code field in -list-thread-groups
1833 output.
1834 * inferior.c (exit_inferior_1): Don't clear exit code.
1835 (inferior_appeared): Clear exit code.
1836 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1837 code.
1838
1839 2014-10-01 Pedro Alves <palves@redhat.com>
1840
1841 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1842 GENERATED" along with emacs/vi read-only markers.
1843 * regformats/aarch64.dat: Regenerate.
1844 * regformats/arm-with-iwmmxt.dat: Regenerate.
1845 * regformats/arm-with-neon.dat: Regenerate.
1846 * regformats/arm-with-vfpv2.dat: Regenerate.
1847 * regformats/arm-with-vfpv3.dat: Regenerate.
1848 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1849 * regformats/i386/amd64-avx.dat: Regenerate.
1850 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1851 * regformats/i386/amd64-avx512.dat: Regenerate.
1852 * regformats/i386/amd64-linux.dat: Regenerate.
1853 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1854 * regformats/i386/amd64-mpx.dat: Regenerate.
1855 * regformats/i386/amd64.dat: Regenerate.
1856 * regformats/i386/i386-avx-linux.dat: Regenerate.
1857 * regformats/i386/i386-avx.dat: Regenerate.
1858 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1859 * regformats/i386/i386-avx512.dat: Regenerate.
1860 * regformats/i386/i386-linux.dat: Regenerate.
1861 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1862 * regformats/i386/i386-mmx.dat: Regenerate.
1863 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1864 * regformats/i386/i386-mpx.dat: Regenerate.
1865 * regformats/i386/i386.dat: Regenerate.
1866 * regformats/i386/x32-avx-linux.dat: Regenerate.
1867 * regformats/i386/x32-avx.dat: Regenerate.
1868 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1869 * regformats/i386/x32-avx512.dat: Regenerate.
1870 * regformats/i386/x32-linux.dat: Regenerate.
1871 * regformats/i386/x32.dat: Regenerate.
1872 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1873 * regformats/mips-dsp-linux.dat: Regenerate.
1874 * regformats/mips-linux.dat: Regenerate.
1875 * regformats/mips64-dsp-linux.dat: Regenerate.
1876 * regformats/mips64-linux.dat: Regenerate.
1877 * regformats/nios2-linux.dat: Regenerate.
1878 * regformats/rs6000/powerpc-32.dat: Regenerate.
1879 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1880 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1881 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1882 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1883 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1884 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1885 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1886 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1887 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1888 * regformats/s390-linux32.dat: Regenerate.
1889 * regformats/s390-linux32v1.dat: Regenerate.
1890 * regformats/s390-linux32v2.dat: Regenerate.
1891 * regformats/s390-linux64.dat: Regenerate.
1892 * regformats/s390-linux64v1.dat: Regenerate.
1893 * regformats/s390-linux64v2.dat: Regenerate.
1894 * regformats/s390-te-linux64.dat: Regenerate.
1895 * regformats/s390x-linux64.dat: Regenerate.
1896 * regformats/s390x-linux64v1.dat: Regenerate.
1897 * regformats/s390x-linux64v2.dat: Regenerate.
1898 * regformats/s390x-te-linux64.dat: Regenerate.
1899 * regformats/tic6x-c62x-linux.dat: Regenerate.
1900 * regformats/tic6x-c62x.dat: Regenerate.
1901 * regformats/tic6x-c64x-linux.dat: Regenerate.
1902 * regformats/tic6x-c64x.dat: Regenerate.
1903 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1904 * regformats/tic6x-c64xp.dat: Regenerate.
1905
1906 2014-10-01 Pedro Alves <palves@redhat.com>
1907
1908 * features/Makefile: Update comments.
1909 (XMLTOC): List all xml files we build C files from.
1910 (clean-cfiles): New rule.
1911
1912 2014-10-01 Pedro Alves <palves@redhat.com>
1913
1914 * features/i386/amd64-avx512-linux.c: Regenerate.
1915 * features/i386/amd64-avx512.c: Regenerate.
1916 * features/i386/x32-avx512-linux.c: Regenerate.
1917 * features/i386/x32-avx512.c: Regenerate.
1918
1919 2014-10-01 Pedro Alves <palves@redhat.com>
1920
1921 * features/Makefile (WHICH): Remove arm-with-m,
1922 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1923
1924 2014-10-01 Pedro Alves <palves@redhat.com>
1925
1926 * features/Makefile (clean): New rule.
1927
1928 2014-10-01 Pedro Alves <palves@redhat.com>
1929
1930 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1931 (zmm14h): Add missing end quotes.
1932
1933 2014-10-01 Pedro Alves <palves@redhat.com>
1934
1935 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1936 * features/aarch64.c: Regenerate.
1937
1938 2014-09-30 Don Breazeal <donb@codesourcery.com>
1939
1940 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1941 code so as to work with follow_fork_inferior.
1942 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1943 (inf_ttrace_create_inferior): Remove reference to
1944 inf_ttrace_vfork_ppid.
1945 (inf_ttrace_attach): Ditto.
1946 (inf_ttrace_detach): Ditto.
1947 (inf_ttrace_kill): Use current_inferior instead of
1948 inf_ttrace_vfork_ppid.
1949 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1950 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1951 inferior away from the parent.
1952 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1953 target_follow_fork.
1954 (follow_fork_inferior): New function.
1955 (follow_inferior_reset_breakpoints): Make function static.
1956 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1957 * linux-nat.c (linux_child_follow_fork): Move target-independent
1958 code to infrun.c:follow_fork_inferior.
1959
1960 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1961
1962 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1963 * gdbarch.c: Regenerate.
1964 * gdbarch.h: Likewise.
1965 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1966 gdbarch method 'regset_from_core_section'.
1967 (get_core_register_section): Remove handling for the case that
1968 regset == NULL and regset_from_core_section is defined.
1969 (get_core_registers): Drop check for deleted method.
1970 * procfs.c (procfs_do_thread_registers): Adjust comment.
1971
1972 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1973
1974 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1975 (linux_nat_make_corefile_notes): Remove.
1976 (linux_target_install_ops): Do not set target method
1977 'make_corefile_notes'.
1978 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1979 Remove field.
1980 (linux_corefile_thread_callback): Instead of args->collect, call
1981 linux_collect_thread_registers.
1982 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1983 NULL unless there is a regset iterator.
1984 (linux_make_corefile_notes_1): Remove.
1985 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1986 by linux_make_corefile_notes.
1987 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1988
1989 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1990
1991 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1992 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1993 Remove.
1994 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1995
1996 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997
1998 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1999 (xtensa_iterate_over_regset_sections): New.
2000 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2001
2002 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2003
2004 * vax-tdep.c (vax_regset_from_core_section): Remove.
2005 (vax_iterate_over_regset_sections): New.
2006 (vax_gdbarch_init): Adjust gdbarch initialization.
2007
2008 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2009
2010 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2011 (tilegx_regset_from_core_section): Remove.
2012 (tilegx_iterate_over_regset_sections): New.
2013 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2014
2015 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2016
2017 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2018 (sparc_iterate_over_regset_sections): New.
2019 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2020 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2021 targets.
2022 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2023 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2024 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2025 target method 'make_corefile_notes'.
2026
2027 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2028
2029 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2030 'sizeof_gregset' and 'sizeof_fpregset'.
2031 * sh-tdep.c (sh_regset_from_core_section): Remove.
2032 (sh_iterate_over_regset_sections): New.
2033 (sh_gdbarch_init): Adjust gdbarch initialization.
2034 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2035 sizeof_fpregset.
2036 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2037 'sizeof_gregset'.
2038
2039 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2040
2041 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2042 (score7_linux_iterate_over_regset_sections): New.
2043 (score_gdbarch_init): Adjust gdbarch initialization.
2044
2045 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2046
2047 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2048 FreeBSD targets.
2049 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2050 method 'make_corefile_notes'.
2051 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2052 (ppcfbsd_regset_from_core_section): Remove.
2053 (ppcfbsd_iterate_over_regset_sections): New.
2054 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2055 initialization.
2056 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2057 (ppcnbsd_iterate_over_regset_sections): New.
2058 (ppcnbsd_init_abi): Adjust.
2059 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2060 (ppcobsd_iterate_over_regset_sections): New.
2061 (ppcobsd_init_abi): Adjust.
2062 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2063 (rs6000_aix_iterate_over_regset_sections): New.
2064 (rs6000_aix_init_osabi): Adjust.
2065
2066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2067
2068 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2069 (nios2_regset_from_core_section): Remove.
2070 (nios2_iterate_over_regset_sections): New.
2071 (nios2_linux_init_abi): Adjust gdbarch initialization.
2072
2073 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2074
2075 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2076 (am33_iterate_over_regset_sections): New.
2077 (am33_linux_init_osabi): Adjust gdbarch initialization.
2078
2079 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2080
2081 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2082 (mips_linux_iterate_over_regset_sections): New.
2083 (mips_linux_init_abi): Adjust gdbarch initialization.
2084 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2085 (mips64obsd_iterate_over_regset_sections): New.
2086 (mips64obsd_init_abi): Adjust.
2087 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2088 (mipsnbsd_iterate_over_regset_sections): New.
2089 (mipsnbsd_init_abi): Adjust.
2090
2091 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2092
2093 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2094 (m88k_iterate_over_regset_sections): New.
2095 (m88k_gdbarch_init): Adjust gdbarch initialization.
2096
2097 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098
2099 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2100 (ia64_linux_iterate_over_regset_sections): New.
2101 (ia64_linux_init_abi): Adjust gdbarch initialization.
2102
2103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2104
2105 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2106 (m68kbsd_iterate_over_regset_sections): New.
2107 (m68kbsd_init_abi): Adjust gdbarch initialization.
2108 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2109 (m68k_linux_iterate_over_regset_sections): New.
2110 (m68k_linux_init_abi): Adjust gdbarch initialization.
2111
2112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2113
2114 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2115 (m32r_linux_regset_from_core_section): Remove.
2116 (m32r_linux_iterate_over_regset_sections): New.
2117 (m32r_linux_init_abi): Adjust gdbarch initialization.
2118
2119 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2120
2121 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2122 (amd64obsd_iterate_over_regset_sections): New.
2123 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2124 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2125 Remove.
2126 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2127 regset_from_core_section initialization.
2128 * i386-tdep.c (i386_regset_from_core_section): Remove.
2129 (i386_iterate_over_regset_sections): New.
2130 (i386_gdbarch_init): Adjust gdbarch initialization.
2131 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2132 (i386_iterate_over_regset_sections): New prototype.
2133 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2134 Remove.
2135 (i386obsd_aout_iterate_over_regset_sections): New.
2136 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2137 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2138 targets.
2139 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2140 (amd64fbsd_init_abi): Call fbsd_init_abi.
2141 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2142 (i386fbsd4_init_abi): Call fbsd_init_abi.
2143 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2144 target method 'make_corefile_notes'.
2145 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2146
2147 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148
2149 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2150 (hppa_hpux_iterate_over_regset_sections): New.
2151 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2152 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2153 (hppa_linux_iterate_over_regset_sections): New.
2154 (hppa_linux_init_abi): Adjust.
2155 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2156 (hppanbsd_iterate_over_regset_sections): New.
2157 (hppanbsd_init_abi): Adjust.
2158 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2159 (hppaobsd_iterate_over_regset_sections): New.
2160 (hppaobsd_init_abi): Adjust.
2161
2162 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2165 (frv_linux_iterate_over_regset_sections): New.
2166 (frv_linux_init_abi): Adjust gdbarch initialization.
2167
2168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2169
2170 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2171 (armbsd_iterate_over_regset_sections): New prototype.
2172 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2173 (armbsd_iterate_over_regset_sections): New.
2174 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2175 initialization.
2176
2177 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2178
2179 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2180 (alpha_linux_iterate_over_regset_sections): New.
2181 (alpha_linux_init_abi): Adjust gdbarch initialization.
2182 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2183 prototype.
2184 (alphanbsd_iterate_over_regset_sections): New prototype.
2185
2186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187
2188 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2189 Remove.
2190 (aarch64_linux_iterate_over_regset_sections): New.
2191 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2192
2193 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2194
2195 * fbsd-tdep.c: New file.
2196 * fbsd-tdep.h: New file.
2197 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2198 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2199 (ALLDEPFILES): Add fbsd-tdep.c.
2200
2201 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2202
2203 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2204 parameter.
2205 * gdbarch.h: Regenerate.
2206 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2207 iterator.
2208 (get_core_register_section): Add parameter 'regset' and use it, if
2209 set. Add parameter 'min_size' and verify the bfd section size
2210 against it.
2211 (get_core_registers_cb): Add parameter 'regset' and pass it to
2212 get_core_register section. For the "standard" register sections
2213 ".reg" and ".reg2", set an appropriate default for human_name.
2214 (get_core_registers): Don't abort when the gdbarch has an iterator
2215 but no regset_from_core_section. Add NULL/0 for parameters
2216 'regset'/'min_size' in calls to get_core_register_section.
2217 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2218 'regset' and use it instead of calling the
2219 regset_from_core_section gdbarch method.
2220 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2221 * i386-tdep.c (i386_supply_xstateregset)
2222 (i386_collect_xstateregset, i386_xstateregset): Moved to
2223 i386-linux-tdep.c.
2224 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2225 .reg-xstate.
2226 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2227 core file support only if the regset iterator hasn't been set.
2228 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2229 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2230 Moved from i386-tdep.c and renamed to *_linux*.
2231 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2232 each callback invocation. Allow any .reg-xstate size when reading
2233 from a core file.
2234 * amd64-tdep.c (amd64_supply_xstateregset)
2235 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2236 amd64-linux-tdep.c.
2237 (amd64_regset_from_core_section): Remove.
2238 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2239 install an amd64-specific regset_from_core_section gdbarch method.
2240 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2241 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2242 Moved from amd64-tdep.c and renamed to *_linux*.
2243 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2244 to each callback invocation. Allow any .reg-xstate size when
2245 reading from a core file.
2246 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2247 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2248 each callback invocation.
2249 (arm_linux_init_abi): No longer set the regset_from_core_section
2250 gdbarch method.
2251 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2252 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2253 each callback invocation.
2254 (ppc_linux_init_abi): No longer set the regset_from_core_section
2255 gdbarch method.
2256 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2257 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2258 (s390_regset_from_core_section): Remove.
2259 (s390_iterate_over_regset_sections): Add regset parameter to each
2260 callback invocation.
2261 (s390_gdbarch_init): No longer set the regset_from_core_section
2262 gdbarch method. Drop initialization of deleted tdep fields.
2263
2264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2265
2266 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2267 (amd64_linux_iterate_over_regset_sections): New.
2268 (amd64_linux_init_abi_common): Don't install the regset section
2269 list, but the new iterator in gdbarch.
2270 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2271 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2272 (arm_linux_iterate_over_regset_sections): ...here. New function.
2273 (arm_linux_init_abi): Set iterator instead of section list.
2274 * corelow.c (get_core_registers_cb): New function, logic moved
2275 from...
2276 (get_core_registers): ...loop body here. Use new iterator method
2277 instead of walking through the regset section list.
2278 * gdbarch.sh: Remove 'core_regset_sections'. New method
2279 'iterate_over_regset_sections'. New typedef
2280 'iterate_over_regset_sections_cb'.
2281 * gdbarch.c: Regenerate.
2282 * gdbarch.h: Likewise.
2283 * i386-linux-tdep.c (i386_linux_regset_sections)
2284 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2285 Remove.
2286 (i386_linux_iterate_over_regset_sections): New.
2287 (i386_linux_init_abi): Don't choose a regset section list, but
2288 install new iterator in gdbarch.
2289 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2290 (linux_collect_regset_section_cb): New function, logic moved
2291 from...
2292 (linux_collect_thread_registers): ...loop body here. Use iterator
2293 method instead of walking through list.
2294 (linux_make_corefile_notes_1): Check for presence of iterator
2295 method instead of regset section list.
2296 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2297 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2298 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2299 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2300 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2301 (ppc_linux_init_abi): Don't choose from above regset section
2302 lists, but install new iterator in gdbarch.
2303 * regset.h (struct core_regset_section): Remove.
2304 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2305 have_linux_v1, have_linux_v2, and have_tdb.
2306 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2307 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2308 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2309 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2310 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2311 (s390_iterate_over_regset_sections): ...here. New function. Use
2312 new tdep fields.
2313 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2314 regset section lists, but install new iterator.
2315
2316 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2317
2318 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2319
2320 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2321
2322 * progspace.c (print_program_space): Don't prune program spaces
2323 before printing them.
2324
2325 2014-09-25 Pedro Alves <palves@redhat.com>
2326
2327 * infrun.c (user_visible_resume_ptid): Don't check
2328 singlestep_breakpoints_inserted_p.
2329
2330 2014-09-25 Pedro Alves <palves@redhat.com>
2331
2332 * breakpoint.c (should_be_inserted): Add debug output.
2333
2334 2014-09-25 Pedro Alves <palves@redhat.com>
2335
2336 * infrun.c (stepping_past_instruction_at)
2337 (clear_exit_convenience_vars): Point at infrun.h instead of
2338 inferior.h.
2339 (handle_signal_stop): Fix typo.
2340
2341 2014-09-24 Yao Qi <yao@codesourcery.com>
2342
2343 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2344 bitmask.
2345
2346 2014-09-22 Gary Benson <gbenson@redhat.com>
2347
2348 * target.c (target_stop): Updated comment.
2349
2350 2014-09-22 Gary Benson <gbenson@redhat.com>
2351
2352 * target/target.h (target_stop_ptid): Renamed as...
2353 (target_stop_and_wait): New function. Updated comment.
2354 All uses updated.
2355 (target_continue_ptid): Renamed as...
2356 (target_continue_no_signal): New function. Updated comment.
2357 All uses updated.
2358
2359 2014-09-22 Pedro Alves <palves@redhat.com>
2360
2361 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2362 and "auto" merged.
2363 * breakpoint.c (enum ugll_insert_mode): New enum.
2364 (always_inserted_mode): Now a plain boolean.
2365 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2366 (breakpoints_always_inserted_mode): Delete.
2367 (breakpoints_should_be_inserted_now): New function.
2368 (insert_breakpoints): Pass UGLL_INSERT to
2369 update_global_location_list instead of calling
2370 insert_breakpoint_locations manually.
2371 (create_solib_event_breakpoint_1): New, factored out from ...
2372 (create_solib_event_breakpoint): ... this.
2373 (create_and_insert_solib_event_breakpoint): Use
2374 create_solib_event_breakpoint_1 instead of calling
2375 insert_breakpoint_locations manually.
2376 (update_global_location_list): Change parameter type from boolean
2377 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2378 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2379 (update_global_location_list_nothrow): Change parameter type from
2380 boolean to enum ugll_insert_mode.
2381 (_initialize_breakpoint): "breakpoint always-inserted" option is
2382 now a boolean command. Update help text.
2383 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2384 (breakpoints_should_be_inserted_now): New declaration.
2385 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2386 Remove breakpoints_always_inserted_mode check.
2387 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2388 * remote.c (remote_start_remote): Likewise.
2389
2390 2014-09-22 Pedro Alves <palves@redhat.com>
2391
2392 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2393 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2394 Instead, pass UGLL_INSERT to update_global_location_list.
2395 (update_global_location_list): Change parameter type from boolean
2396 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2397 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2398 (create_solib_event_breakpoint_1): New, factored out from ...
2399 (create_solib_event_breakpoint): ... this.
2400 (create_and_insert_solib_event_breakpoint): Use
2401 create_solib_event_breakpoint_1 instead of calling
2402 insert_breakpoint_locations manually.
2403 (update_global_location_list): Handle UGLL_INSERT.
2404
2405 2014-09-22 Pedro Alves <palves@redhat.com>
2406
2407 * breakpoint.c (enum ugll_insert_mode): New enum.
2408 (update_global_location_list)
2409 (update_global_location_list_nothrow): Change parameter type from
2410 boolean to enum ugll_insert_mode. All callers adjusted.
2411
2412 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2413
2414 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2415 SystemTap support in GDB.
2416
2417 2014-09-19 Don Breazeal <donb@codesourcery.com>
2418
2419 * linux-nat.c (linux_handle_extended_wait): Call
2420 linux_ptrace_get_extended_event.
2421 (wait_lwp): Call linux_is_extended_waitstatus.
2422 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2423 and linux_is_extended_waitstatus.
2424 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2425 linux_ptrace_get_extended_event.
2426 (linux_ptrace_get_extended_event): New function.
2427 (linux_is_extended_waitstatus): New function.
2428 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2429 (linux_is_extended_waitstatus): New declarations.
2430
2431 2014-09-19 Yao Qi <yao@codesourcery.com>
2432
2433 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2434 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2435 comments. Callers update.
2436 (dwarf_decode_lines): Likewise.
2437 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2438 comments. Skip the line table if 'lowpc' is greater than
2439 'address'. Don't check
2440 dwarf2_per_objfile->has_section_at_zero.
2441
2442 2014-09-18 Doug Evans <dje@google.com>
2443
2444 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2445 * python/py-symtab.c (stpy_get_producer): New function.
2446 (symtab_object_getset): Add "producer" attribute.
2447
2448 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2449
2450 PR gdb/17384
2451 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2452 (do_captured_read_memory_integer): Remove.
2453 (safe_read_memory_integer): Use target_read_memory directly instead
2454 of catching errors in do_captured_read_memory_integer.
2455
2456 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2457
2458 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2459 not gdb/doc.
2460
2461 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2462
2463 * objc-lang.c (find_implementation_from_class): Remove dead code.
2464
2465 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2466
2467 PR cli/7233
2468 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2469 "fprintf_unfiltered (gdb_stdlog...)".
2470
2471 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2472
2473 PR breakpoints/12526
2474 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2475 val_bitsize.
2476 * breakpoint.c (watch_command_1): Use these fields to retain
2477 bitfield information.
2478 (extract_bitfield_from_watchpoint_value): New function.
2479 (watchpoint_check): Use it.
2480 (update_watchpoint): Use it. Optimize the address and length of a
2481 HW watchpoint pointing to a bitfield.
2482 * value.h (unpack_value_bitfield): New prototype.
2483 * value.c (unpack_value_bitfield): Make extern.
2484
2485 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2486
2487 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2488 x86-dregs.o.
2489 * gnu-nat.c (inf_threads): New function.
2490 * gnu-nat.h (inf_threads_ftype): New typedef.
2491 (inf_threads): New declaration.
2492 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2493 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2494 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2495 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2496 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2497 (i386_gnu_dr_get_control): New functions.
2498 (reg_addr): New structure.
2499 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2500 i386 debugging register hooks.
2501 * NEWS: Mention this.
2502
2503 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2504
2505 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2506 vector data transfer instructions.
2507 (arm_record_coproc_data_proc): Updated.
2508
2509 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2510
2511 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2512 arm_record_exreg_ld_st_insn.
2513 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2514 load/store insns.
2515
2516 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2517
2518 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2519 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2520 processing instructions.
2521
2522 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2523
2524 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2525 for advance SIMD struct ld/st insn.
2526 (thumb2_record_decode_insn_handler): Replace stub handler with
2527 thumb2_record_asimd_struct_ld_st.
2528
2529 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2530
2531 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2532 for asimd, vfp and coprocessor insns.
2533 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2534 and coprocessor insns.
2535 (thumb2_record_coproc_insn): New function.
2536 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2537 handlers.
2538 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2539 opcode 110 insns.
2540
2541 2014-09-13 Doug Evans <xdje42@gmail.com>
2542
2543 * NEWS: Mention new "queue-signal" command.
2544 * infcmd.c (queue_signal_command): New function.
2545 (_initialize_infcmd): Add new queue-signal command.
2546
2547 2014-09-13 Doug Evans <xdje42@gmail.com>
2548
2549 * linux-nat.c (wait_lwp): Add debugging printf.
2550 (linux_nat_wait_1): Ditto.
2551
2552 2014-09-12 Pedro Alves <palves@redhat.com>
2553
2554 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2555 (create_and_insert_solib_event_breakpoint): New functions.
2556 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2557 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2558 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2559 (remove_dbx_link_breakpoint): Delete function.
2560 (insert_dbx_link_bpt_in_file): Use
2561 create_and_insert_solib_event_breakpoint instead of
2562 deprecated_insert_raw_breakpoint.
2563 (procfs_wait): Don't check whether we hit __dbx_link here.
2564 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2565 here.
2566 * solib-irix.c (base_breakpoint): Delete global.
2567 (disable_break): Delete function.
2568 (enable_break): Use create_solib_event_breakpoint
2569 instead of deprecated_insert_raw_breakpoint.
2570 (irix_solib_handle_event): New function.
2571 (irix_solib_create_inferior_hook): Don't run the target or disable
2572 the mapping-complete breakpoint here.
2573 (_initialize_irix_solib): Install irix_solib_handle_event as
2574 so_ops->handle_event hook.
2575
2576 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2577 Ulrich Weigand  <uweigand@de.ibm.com>
2578
2579 PR tdep/17379
2580 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2581 instead of read_memory_unsigned_integer.
2582
2583 2014-09-12 Gary Benson <gbenson@redhat.com>
2584
2585 * nat/linux-waitpid.c: Include common-defs.h.
2586 [GDBSERVER]: Add FIXME comment.
2587 [!GDBSERVER]: Don't include defs.h or signal.h.
2588 (linux_debug) [!GDBSERVER]: Remove empty block.
2589
2590 2014-09-12 Gary Benson <gbenson@redhat.com>
2591
2592 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2593 Don't include defs.h or server.h.
2594
2595 2014-09-12 Gary Benson <gbenson@redhat.com>
2596
2597 * nat/linux-btrace.c: Include common-defs.h.
2598 Don't include defs.h, server.h or gdbthread.h.
2599 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2600
2601 2014-09-12 Gary Benson <gbenson@redhat.com>
2602
2603 * common/agent.c: Include common-defs.h.
2604 Don't include defs.h or server.h.
2605 * common/buffer.c: Likewise.
2606 * common/common-debug.c: Likewise.
2607 * common/common-utils.c: Likewise.
2608 * common/errors.c: Likewise.
2609 * common/filestuff.c: Likewise.
2610 * common/format.c: Likewise.
2611 * common/gdb_vecs.c: Likewise.
2612 * common/print-utils.c: Likewise.
2613 * common/ptid.c: Likewise.
2614 * common/rsp-low.c: Likewise.
2615 * common/signals.c: Likewise.
2616 * common/vec.c: Likewise.
2617 * common/xml-utils.c: Likewise.
2618 * nat/linux-osdata.c: Likewise.
2619 * nat/linux-procfs.c: Likewise.
2620 * nat/linux-ptrace.c: Likewise.
2621 * nat/mips-linux-watch.c: Likewise.
2622 * target/waitstatus.c: Likewise.
2623
2624 2014-09-12 Tom Tromey <tromey@redhat.com>
2625 Gary Benson <gbenson@redhat.com>
2626
2627 * common/common-regcache.h: New file.
2628 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2629 * regcache.h: Include common-regcache.h.
2630 (regcache_read_pc): Don't declare.
2631 * regcache.c (get_thread_regcache_for_ptid): New function.
2632 * nat/linux-btrace.c: Don't include regcache.h.
2633 Include common-regcache.h.
2634 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2635
2636 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2637
2638 * regcache.h (struct regset): Declare.
2639
2640 2014-09-11 Pedro Alves <palves@redhat.com>
2641
2642 PR gdb/17347
2643 * main.c: Include "infrun.h".
2644 (catch_command_errors, catch_command_errors_const): Wait for the
2645 foreground command to complete.
2646 * top.c (maybe_wait_sync_command_done): New function, factored out
2647 from ...
2648 (maybe_wait_sync_command_done): ... here.
2649 * top.h (maybe_wait_sync_command_done): New declaration.
2650
2651 2014-09-11 Tom Tromey <tromey@redhat.com>
2652 Gary Benson <gbenson@redhat.com>
2653
2654 * common/symbol.h: New file.
2655 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2656 * minsyms.c (find_minimal_symbol_address): New function.
2657 * common/agent.c: Include common/symbol.h.
2658 [!GDBSERVER]: Don't include objfiles.h.
2659 (agent_look_up_symbols): Use find_minimal_symbol_address.
2660
2661 2014-09-11 Gary Benson <gbenson@redhat.com>
2662
2663 * target/target.h (target_stop_ptid, target_continue_ptid):
2664 Declare.
2665 * target.c (target_stop_ptid, target_continue_ptid): New
2666 functions.
2667 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2668 (agent_run_command): Always use target_stop_ptid and
2669 target_continue_ptid.
2670
2671 2014-09-11 Tom Tromey <tromey@redhat.com>
2672 Gary Benson <gbenson@redhat.com>
2673
2674 * target/target.h: New file.
2675 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2676 * target.h: Include target/target.h.
2677 (target_read_memory, target_write_memory): Don't declare.
2678 * target.c (target_read_uint32): New function.
2679 * common/agent.c: Include target/target.h.
2680 [!GDBSERVER]: Don't include target.h.
2681 (helper_thread_id): Type changed to uint32_t.
2682 (agent_get_helper_thread_id): Use target_read_uint32.
2683 (agent_run_command): Always use target_read_memory and
2684 target_write_memory.
2685 (agent_capability): Type changed to uint32_t.
2686 (agent_capability_check): Use target_read_uint32.
2687
2688 2014-09-11 Gary Benson <gbenson@redhat.com>
2689
2690 * common/common-debug.h (show_debug_regs): Declare.
2691 * common/common-debug.c (show_debug_regs): Define.
2692 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2693 all uses with show_debug_regs. Replace all uses that considered
2694 debug_hw_points as a multi-value integer with straight boolean
2695 uses.
2696 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2697 with show_debug_regs.
2698 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2699 all uses with show_debug_regs.
2700 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2701 uses with show_debug_regs.
2702
2703 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2704
2705 * findvar.c (address_from_register): Handle targets requiring
2706 a special conversion routine even for plain pointer types.
2707
2708 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2709
2710 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2711 (store_register): Do not call exec_one_dummy_insn.
2712
2713 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2714
2715 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2716 dereference it first. Use value_enclosing_type instead of
2717 value_type.
2718 (ada_array_length): Likewise.
2719
2720 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2721
2722 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2723 Adjust function implementation and documentation accordingly.
2724 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2725 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2726 Update call to ada_value_ptr_subscript.
2727
2728 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2729
2730 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2731 instead of VAL's type.
2732
2733 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2734
2735 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2736
2737 2014-09-09 Doug Evans <xdje42@gmail.com>
2738
2739 PR guile/17367
2740 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2741 last parameter to pkg-config, not first.
2742 * configure.ac: Pass --with-guile provided pkg-config path to
2743 GDB_GUILE_PROGRAM_NAMES.
2744 * configure: Regenerate.
2745
2746 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2747
2748 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2749 Bertazi".
2750
2751 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2752
2753 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2754 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2755 the list of sections determining GDB_OSABI_IRIX.
2756
2757 2014-09-09 James Hogan <james.hogan@imgtec.com>
2758
2759 * MAINTAINERS (Write After Approval): Add "James Hogan".
2760
2761 2014-09-09 James Hogan <james.hogan@imgtec.com>
2762
2763 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2764
2765 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2766
2767 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2768
2769 2014-09-08 Doug Evans <xdje42@gmail.com>
2770
2771 PR 17247
2772 * guile.c: #include <signal.h>.
2773 (_initialize_guile): Block SIGCHLD while initializing Guile.
2774
2775 Replaces the following, which is reverted.
2776
2777 2014-07-26 Doug Evans <xdje42@gmail.com>
2778
2779 PR 17185
2780 * configure.ac: Add check for header gc/gc.h.
2781 Add check for function setenv.
2782 * configure: Regenerate.
2783 * config.in: Regenerate.
2784 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2785
2786 2014-09-08 Doug Evans <xdje42@gmail.com>
2787
2788 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2789 with named constant. Fix style of pointer comparison.
2790 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2791
2792 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2793
2794 PR gdb/17035
2795 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2796 decide whether we display the command on "show user".
2797 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2798 printing command name.
2799 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2800 * cli/cli-decode.c (cli_user_command_p): Create helper function
2801 to verify whether cmd_list_element is a user-defined command.
2802
2803 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2804
2805 PR python/17355
2806 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2807 Fix goto out of TRY_CATCH.
2808
2809 2014-09-06 Doug Evans <xdje42@gmail.com>
2810 Tom Tromey <tromey@redhat.com>
2811
2812 PR 15276
2813 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2814 $_any_caller_matches.
2815 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2816 * python/lib/gdb/function/caller_is.py: New file.
2817
2818 2014-09-06 Doug Evans <xdje42@gmail.com>
2819
2820 * infcmd.c (program_info): Fix typo.
2821
2822 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2823
2824 PR gdb/17235
2825 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2826 'number'. New variable 'has_digit'. Rewrite code to deal with
2827 subexpressions on SDT probes.
2828
2829 2014-09-04 Pedro Alves <palves@redhat.com>
2830
2831 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2832 the input is only one character long.
2833
2834 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2835
2836 PR fortran/17237
2837 * f-valprint.c (f_val_print): Specify the correct print option to
2838 use when printing integer values.
2839
2840 2014-09-04 Gary Benson <gbenson@redhat.com>
2841
2842 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2843 Remove code to cope with LWPs wrapped as PIDs.
2844 Add assertions to ensure no wrapped LWPs are passed.
2845
2846 2014-09-04 Pedro Alves <palves@redhat.com>
2847
2848 * value.c (value_ranges_copy_adjusted): New function, factored out
2849 from ...
2850 (value_contents_copy_raw): ... here.
2851 (unpack_value_bits_as_long_1): Rename back to ...
2852 (unpack_bits_as_long): ... this. Remove 'original_value' and
2853 'result' parameters. Change return type to LONGEST.
2854 (unpack_value_bits_as_long): Delete.
2855 (unpack_value_field_as_long_1): Delete.
2856 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2857 (unpack_value_bitfield): New function.
2858 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2859 (value_fetch_lazy): Use unpack_value_bitfield.
2860 * value.h (unpack_value_bits_as_long): Delete declaration.
2861
2862 2014-09-03 Sasha Smundak <asmundak@google.com>
2863
2864 * python/py-frame.c (frapy_read_register): New function.
2865
2866 2014-09-03 James Hogan <james.hogan@imgtec.com>
2867
2868 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2869 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2870
2871 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2872
2873 PR python/16699
2874 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2875 function.
2876 (add_cmd): Set "completer_handle_brkchars" to NULL.
2877 * cli/cli-decode.h (struct cmd_list_element)
2878 <completer_handle_brkchars>: New field.
2879 * command.h (completer_ftype_void): New typedef.
2880 (set_cmd_completer_handle_brkchars): New prototype.
2881 * completer.c (set_gdb_completion_word_break_characters): New
2882 function.
2883 (complete_line_internal): Call "completer_handle_brkchars"
2884 callback from command.
2885 * completer.h: Include "command.h".
2886 (set_gdb_completion_word_break_characters): New prototype.
2887 * python/py-cmd.c (cmdpy_completer_helper): New function.
2888 (cmdpy_completer_handle_brkchars): New function.
2889 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2890 (cmdpy_init): Set completer_handle_brkchars to
2891 cmdpy_completer_handle_brkchars.
2892
2893 2014-09-03 Gary Benson <gbenson@redhat.com>
2894
2895 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2896 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2897 Loop conditions changed to equivalent form.
2898 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2899 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2900 ALL_DEBUG_ADDRESS_REGISTERS.
2901
2902 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2903
2904 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2905 description fix.
2906
2907 2014-09-02 Doug Evans <dje@google.com>
2908
2909 * typeprint.c (find_global_typedef): Fix comment.
2910
2911 2014-09-02 Gary Benson <gbenson@redhat.com>
2912
2913 * i386-nat.h: Renamed as...
2914 * x86-nat.h: New file. All type, function and variable name
2915 prefixes changed from "i386_" to "x86_". All references updated.
2916 * i386-nat.c: Renamed as...
2917 * x86-nat.c: New file. All type, function and variable name
2918 prefixes changed from "i386_" to "x86_". All references updated.
2919 * common/i386-xstate.h: Renamed as...
2920 * common/x86-xstate.h: New file. All type, function and variable
2921 name prefixes changed from "i386_" to "x86_". All references
2922 updated.
2923 * nat/i386-cpuid.h: Renamed as...
2924 * nat/x86-cpuid.h: New file. All type, function and variable name
2925 prefixes changed from "i386_" to "x86_". All references updated.
2926 * nat/i386-gcc-cpuid.h: Renamed as...
2927 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2928 name prefixes changed from "i386_" to "x86_". All references
2929 updated.
2930 * nat/i386-dregs.h: Renamed as...
2931 * nat/x86-dregs.h: New file. All type, function and variable name
2932 prefixes changed from "i386_" to "x86_". All references updated.
2933 * nat/i386-dregs.c: Renamed as...
2934 * nat/x86-dregs.c: New file. All type, function and variable name
2935 prefixes changed from "i386_" to "x86_". All references updated.
2936
2937 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2938
2939 * varobj.c (_initialize_varobj): Move to the end of file.
2940
2941 2014-08-29 Gary Benson <gbenson@redhat.com>
2942
2943 * common/common-exceptions.h: New file.
2944 * common/common-exceptions.c: Likewise.
2945 * Makefile.in (SFILES): Add common/common-exceptions.c.
2946 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2947 (COMMON_OBS): Add common-exceptions.o.
2948 (common-exceptions.o): New rule.
2949 * exceptions.h (common-exceptions.h): Include.
2950 (gdb_setjmp.h): Do not include.
2951 (return_reason): Moved to common-exceptions.h.
2952 (enum return_reason): Likewise.
2953 (RETURN_MASK): Likewise.
2954 (typedef return_mask): Likewise.
2955 (enum errors): Likewise.
2956 (struct gdb_exception): Likewise.
2957 (exceptions_state_mc_init): Likewise.
2958 (exceptions_state_mc_action_iter): Likewise.
2959 (exceptions_state_mc_action_iter_1): Likewise.
2960 (TRY_CATCH): Likewise.
2961 (throw_exception): Likewise.
2962 (throw_verror): Likewise.
2963 (throw_vquit): Likewise.
2964 (throw_error): Likewise.
2965 (throw_quit): Likewise.
2966 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2967 (enum catcher_action): Likewise.
2968 (struct catcher): Likewise.
2969 (current_catcher): Likewise.
2970 (catcher_list_size): Likewise.
2971 (exceptions_state_mc_init): Likewise.
2972 (catcher_pop): Likewise.
2973 (exceptions_state_mc): Likewise.
2974 (exceptions_state_mc_action_iter): Likewise.
2975 (exceptions_state_mc_action_iter_1): Likewise.
2976 (throw_exception): Likewise.
2977 (exception_messages): Likewise.
2978 (exception_messages_size): Likewise.
2979 (throw_it): Likewise.
2980 (throw_verror): Likewise.
2981 (throw_vquit): Likewise.
2982 (throw_error): Likewise.
2983 (throw_quit): Likewise.
2984 (prepare_to_throw_exception): New function.
2985
2986 2014-08-29 Gary Benson <gbenson@redhat.com>
2987
2988 * common/gdb_setjmp.h: New file.
2989 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2990 * configure.ac: Move sigsetjmp check...
2991 * common/common.m4: ...here.
2992 * configure: Regenerate.
2993 * cp-support.c (SIGJMP_BUF): Delete.
2994 (SIGSETJMP): Likewise.
2995 (SIGLONGJMP): Likewise.
2996 * exceptions.h (gdb_setjmp.h): Include.
2997 (setjmp.h): Do not include.
2998 (EXCEPTIONS_SIGJMP_BUF): Delete.
2999 (EXCEPTIONS_SIGSETJMP): Likewise.
3000 (EXCEPTIONS_SIGLONGJMP): Likewise.
3001 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3002 from gdb_setjmp.h.
3003 * exceptions.c: Likewise.
3004
3005 2014-08-29 Gary Benson <gbenson@redhat.com>
3006
3007 * cleanups.h: Moved to...
3008 * common/cleanups.h: New file.
3009 * cleanups.c: Moved to...
3010 * common/cleanups.c: New file. Include common-defs.h and
3011 cleanups.h. Do not include defs.h.
3012 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3013 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3014 (cleanups.o): New rule.
3015
3016 2014-08-29 Gary Benson <gbenson@redhat.com>
3017
3018 * common/errors.h (internal_warning): New declaration.
3019 (internal_vwarning): Likewise.
3020 * common/errors.c (internal_warning): New function.
3021 * utils.h (internal_warning): Don't declare.
3022 (internal_vwarning): Likewise.
3023 * utils.c (internal_warning): Removed.
3024
3025 2014-08-29 Gary Benson <gbenson@redhat.com>
3026
3027 * main.c (captured_main): Use warning during startup.
3028 Prefix startup warning messages with command name.
3029
3030 2014-08-29 Gary Benson <gbenson@redhat.com>
3031
3032 * main.c (captured_main): Handle usage errors with error.
3033
3034 2014-08-29 Gary Benson <gbenson@redhat.com>
3035
3036 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3037 exit pair with a call to error. Wrap the message with _().
3038
3039 2014-08-29 Gary Benson <gbenson@redhat.com>
3040
3041 * main.c (captured_main): Replace a fprintf/exit
3042 pair with a call to error. Wrap the message with _().
3043
3044 2014-08-29 Gary Benson <gbenson@redhat.com>
3045
3046 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3047 pairs with calls to error. Wrap the message with _().
3048
3049 2014-08-29 Gary Benson <gbenson@redhat.com>
3050
3051 * utils.c (vwarning): Protect calls to target_terminal_ours
3052 and wrap_here.
3053
3054 2014-08-29 Gary Benson <gbenson@redhat.com>
3055
3056 * exceptions.c (print_flush): Protect calls to
3057 target_terminal_ours and wrap_here.
3058
3059 2014-08-29 Gary Benson <gbenson@redhat.com>
3060
3061 * utils.h (filtered_printing_initialized): New declaration.
3062 * utils.c (abort_with_message): New function.
3063 (internal_vproblem): Use abort_with_message for first level
3064 recursive internal problems, and if gdb_stderr is not set up.
3065 Protect calls to target_terminal_ours, begin_line and query.
3066
3067 2014-08-28 Doug Evans <dje@google.com>
3068
3069 * symtab.c (in_prologue): Move definition to better spot.
3070 (skip_prologue_using_sal): Ditto.
3071
3072 2014-08-28 Doug Evans <dje@google.com>
3073
3074 * symtab.c (find_function_start_sal): Move definition to better spot.
3075
3076 2014-08-28 Yao Qi <yao@codesourcery.com>
3077
3078 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3079 found_stack_adjust in forward scan. Remove condition check
3080 on found_stack_adjust which is always true. Indent the code.
3081
3082 2014-08-28 Yao Qi <yao@codesourcery.com>
3083
3084 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3085 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3086 (dwarf_decode_lines): Remove argument
3087 want_line_info. Remove condition check on want_line_info.
3088 Callers update.
3089
3090 2014-08-27 Doug Evans <dje@google.com>
3091
3092 * dwarf2read.c (dwarf_record_line): Fix typo.
3093
3094 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3095
3096 * target.h (struct target_ops::to_terminal_save_ours): Remove
3097 declaration.
3098 (target_terminal_save_ours): Remove macro.
3099 * target-delegates.c: Regenerate.
3100 * inf-child.c (inf_child_target): Don't set the nonexistent
3101 field to_terminal_save_ours.
3102 * inferior.h (child_terminal_save_ours): Remove declaration.
3103 * terminal.h (gdb_save_tty_state): New declaration.
3104 * inflow.c (child_terminal_save_ours): Rename to ...
3105 (gdb_save_tty_state): ... this.
3106 * tui/tui.c: Include terminal.h.
3107 (tui_enable): Use gdb_save_tty_state instead of
3108 target_terminal_save_ours.
3109 (tui_disable): Likewise.
3110
3111 2014-08-25 Doug Evans <dje@google.com>
3112
3113 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3114 Pass NULL instead of 0 for context pointer.
3115
3116 2014-08-25 Yao Qi <yao@codesourcery.com>
3117
3118 * dwarf2read.c: Fix grammatical error.
3119
3120 2014-08-24 Yao Qi <yao@codesourcery.com>
3121
3122 * dwarf2read.c (scan_partial_symbols): Update comments.
3123 Rename argument 'need_pc' with 'set_addrmap'.
3124 (add_partial_namespace): Rename argument 'need_pc' with
3125 'set_addrmap'.
3126 (add_partial_module): Likewise.
3127 (add_partial_subprogram): Likewise. Update comments.
3128 (dwarf2_name): Fix typo.
3129
3130 2014-08-22 Doug Evans <dje@google.com>
3131
3132 PR 17276
3133 * dwarf2read.c (dwarf_record_line_p): New function.
3134 (dwarf_decode_lines_1): Ignore subsequent line number entries
3135 for the same line if any entry had a non-zero discriminator.
3136
3137 2014-08-22 Doug Evans <dje@google.com>
3138
3139 * buildsym.h (record_line_ftype): New typedef.
3140 (record_line): Use it.
3141 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3142 (dwarf_decode_lines_1): Call them.
3143
3144 2014-08-22 Yao Qi <yao@codesourcery.com>
3145
3146 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3147 (ctf_end): Remove code.
3148
3149 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3152 (linux_make_corefile_notes): call update_thread_list, protected against
3153 exceptions.
3154
3155 2014-08-21 Pedro Alves <palves@redhat.com>
3156
3157 * infcmd.c (attach_command): Remove comment.
3158
3159 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3160
3161 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3162 unsigned LONGEST to ULONGEST.
3163
3164 2014-08-20 Pedro Alves <palves@redhat.com>
3165
3166 * Makefile.in (check-read1): New rule.
3167
3168 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3169
3170 * value.c (value_from_contents_and_address): Strip resolved_type's
3171 typedef layers before checking its TYPE_DATA_LOCATION.
3172
3173 2014-08-20 Pedro Alves <palves@redhat.com>
3174
3175 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3176
3177 2014-08-20 Yao Qi <yao@codesourcery.com>
3178
3179 * amd64-tdep.c (amd64_classify): Add a blank line after the
3180 example. Move "*/" to a new line.
3181 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3182 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3183 * dwarf2read.c (psymtab_include_file_name): Likewise.
3184
3185 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3186 Pedro Alves <palves@redhat.com>
3187
3188 PR symtab/14604
3189 PR symtab/14605
3190 * ada-lang.c (coerce_unspec_val_to_type): Use
3191 value_contents_copy_raw.
3192 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3193 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3194 * cp-valprint.c (cp_print_value_fields): Let the common printing
3195 code handle optimized out values.
3196 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3197 * d-valprint.c (dynamic_array_type): Use
3198 value_bits_any_optimized_out.
3199 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3200 check_any_valid fields.
3201 (check_pieced_value_bits): Delete and inline ...
3202 (check_pieced_synthetic_pointer): ... here.
3203 (check_pieced_value_validity): Delete.
3204 (check_pieced_value_invalid): Delete.
3205 (pieced_value_funcs): Remove check_validity and check_any_valid
3206 fields.
3207 (read_pieced_value): Use mark_value_bits_optimized_out.
3208 (write_pieced_value): Switch to use
3209 mark_value_bytes_optimized_out.
3210 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3211 of assuming the whole value is optimized out.
3212 * findvar.c (read_frame_register_value): Remove special handling
3213 of optimized out registers.
3214 (value_from_register): Use mark_value_bytes_optimized_out.
3215 * frame-unwind.c (frame_unwind_got_optimized): Use
3216 mark_value_bytes_optimized_out.
3217 * jv-valprint.c (java_value_print): Adjust.
3218 (java_print_value_fields): Let the common printing code handle
3219 optimized out values.
3220 * mips-tdep.c (mips_print_register): Remove special handling of
3221 optimized out registers.
3222 * opencl-lang.c (lval_func_check_validity): Delete.
3223 (lval_func_check_any_valid): Delete.
3224 (opencl_value_funcs): Remove check_validity and check_any_valid
3225 fields.
3226 * p-valprint.c (pascal_object_print_value_fields): Let the common
3227 printing code handle optimized out values.
3228 * stack.c (read_frame_arg): Remove special handling of optimized
3229 out values. Fetch both VAL and ENTRYVAL before comparing
3230 contents. Adjust to value_available_contents_eq rename.
3231 * valprint.c (valprint_check_validity)
3232 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3233 (val_print_array_elements): Adjust.
3234 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3235 (value_bits_any_optimized_out): New function.
3236 (value_entirely_covered_by_range_vector): New function, factored
3237 out from value_entirely_unavailable.
3238 (value_entirely_unavailable): Reimplement.
3239 (value_entirely_optimized_out): New function.
3240 (insert_into_bit_range_vector): New function, factored out from
3241 mark_value_bits_unavailable.
3242 (mark_value_bits_unavailable): Reimplement.
3243 (struct ranges_and_idx): New struct.
3244 (find_first_range_overlap_and_match): New function, factored out
3245 from value_available_contents_bits_eq.
3246 (value_available_contents_bits_eq): Rename to ...
3247 (value_contents_bits_eq): ... this. Check both unavailable
3248 contents and optimized out contents.
3249 (value_available_contents_eq): Rename to ...
3250 (value_contents_eq): ... this.
3251 (allocate_value_lazy): Remove reference to the old optimized_out
3252 boolean.
3253 (allocate_optimized_out_value): Use
3254 mark_value_bytes_optimized_out.
3255 (require_not_optimized_out): Adjust to check whether the
3256 optimized_out vec is empty.
3257 (ranges_copy_adjusted): New function, factored out from
3258 value_contents_copy_raw.
3259 (value_contents_copy_raw): Also copy the optimized out ranges.
3260 Assert the destination ranges aren't optimized out.
3261 (value_contents_copy): Update comment, remove call to
3262 require_not_optimized_out.
3263 (value_contents_equal): Adjust to check whether the optimized_out
3264 vec is empty.
3265 (set_value_optimized_out, value_optimized_out_const): Delete.
3266 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3267 New functions.
3268 (value_entirely_optimized_out, value_bits_valid): Delete.
3269 (value_copy): Take a VEC copy of the 'optimized_out' field.
3270 (value_primitive_field): Remove special handling of optimized out.
3271 (value_fetch_lazy): Assert that lazy values have no unavailable
3272 regions. Use value_bits_any_optimized_out. Remove some special
3273 handling for optimized out values.
3274 * value.h: Add intro comment about <optimized out> and
3275 <unavailable>.
3276 (struct lval_funcs): Remove check_validity and check_any_valid
3277 fields.
3278 (set_value_optimized_out, value_optimized_out_const): Remove.
3279 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3280 New declarations.
3281 (value_bits_any_optimized_out): New declaration.
3282 (value_bits_valid): Delete declaration.
3283 (value_available_contents_eq): Rename to ...
3284 (value_contents_eq): ... this, and extend comments.
3285
3286 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3287
3288 Fix -fsanitize=address on unreadable inferior strings.
3289 * valprint.c (val_print_string): Fix access before BUFFER.
3290
3291 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3292
3293 * target.c (target_struct_size): Remove.
3294 (target_struct_allocsize): Remove.
3295 (DEFAULT_ALLOCSIZE): Remove.
3296 (target_ops_p): New typedef.
3297 (DEF_VEC_P (target_ops_p)): New vector type.
3298 (target_structs): Change type to VEC (target_ops_p).
3299 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3300 (find_default_run_target): Rewrite for loop following changes to
3301 target_structs.
3302
3303 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3304
3305 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3306 Adjust code accordingly. Adjust function description comment.
3307
3308 2014-08-19 Yao Qi <yao@codesourcery.com>
3309
3310 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3311 types.
3312
3313 2014-08-19 Alan Modra <amodra@gmail.com>
3314
3315 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3316 * config.in: Regenerate.
3317 * configure: Regenerate.
3318
3319 2014-08-19 Tom Tromey <tromey@redhat.com>
3320 Gary Benson <gbenson@redhat.com>
3321
3322 * common/common-debug.h: New file.
3323 * common/common-debug.c: Likewise.
3324 * debug.c: Likewise.
3325 * Makefile.in (SFILES): Add common/common-debug.c.
3326 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3327 (COMMON_OBS): Add common-debug.o and debug.o.
3328 (common-debug.o): New rule.
3329 * common/common-defs.h: Include common-debug.h.
3330 * common/agent.c (debug_agent_printf): New function.
3331 (DEBUG_AGENT): Redefine.
3332 * nat/i386-dregs.c (debug_printf): Undefine.
3333
3334 2014-08-19 Gary Benson <gbenson@redhat.com>
3335
3336 * common/common-defs.h: Include print-utils.h.
3337 * utils.h: Do not include print-utils.h.
3338
3339 2014-08-19 Tom Tromey <tromey@redhat.com>
3340 Gary Benson <gbenson@redhat.com>
3341
3342 * common/common-types.h: New file.
3343 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3344 * common/common-defs.h: Include common-types.h.
3345 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3346 (ULONGEST): Remove.
3347
3348 2014-08-19 Tom Tromey <tromey@redhat.com>
3349 Gary Benson <gbenson@redhat.com>
3350
3351 * common/errors.h: New file.
3352 * common/errors.c: Likewise.
3353 * Makefile.in (SFILES): Add common/errors.c.
3354 (HFILES_NO_SRCDIR): Add common/errors.h.
3355 (COMMON_OBS): Add errors.o.
3356 (errors.o): New rule.
3357 * common/common-defs.h: Include errors.h.
3358 * utils.h (perror_with_name, error, verror, warning, vwarning):
3359 Don't declare.
3360 * common/common-utils.h: (malloc_failure, internal_error):
3361 Likewise.
3362
3363 2014-08-19 Gary Benson <gbenson@redhat.com>
3364
3365 * utils.c (internal_vproblem): Always print the message.
3366
3367 2014-08-18 Doug Evans <dje@google.com>
3368
3369 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3370
3371 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3372
3373 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3374 Return 0 if TYPE is dynamic.
3375 (print_range): Add handling of dynamic ranges.
3376
3377 2014-08-18 Keven Boell <keven.boell@intel.com>
3378 Joel Brobecker <brobecker@adacore.com>
3379
3380 * gdbtypes.h (struct main_type): Add field "data_location".
3381 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3382 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3383 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3384 a dynamic data location.
3385 (resolve_dynamic_type): Add DW_AT_data_location handling.
3386 (copy_recursive, copy_type): Copy the data_location information
3387 when present.
3388 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3389 * value.c (value_from_contents_and_address): Add
3390 DW_AT_data_location handling.
3391
3392 2014-08-18 Keven Boell <keven.boell@intel.com>
3393 Joel Brobecker <brobecker@adacore.com>
3394
3395 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3396 field "get_object_address".
3397 * dwarf2expr.c (execute_stack_op): Add handling for
3398 DW_OP_push_object_address.
3399 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3400 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3401 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3402 (dwarf_expr_get_obj_addr): New function.
3403 (dwarf_expr_ctx_funcs): Add get_object_address field.
3404 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3405 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3406 (dwarf2_evaluate_property): Add parameter "address". Use it.
3407 (needs_get_obj_addr): New function.
3408 (needs_frame_ctx_funcs): Add get_object_address field.
3409 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3410 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3411 (resolve_dynamic_array): Likewise.
3412
3413 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3414
3415 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3416 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3417 fixed value for records and unions for which some GNAT encodings
3418 are present.
3419
3420 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3421
3422 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3423 rewrite to avoid "else if" and "else" constructs. Should be
3424 a no-op in practice.
3425
3426 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3427
3428 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3429 of lexical block.
3430
3431 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3432
3433 PR c++/17132
3434 * eval.c: Update all calls to find_overload_match.
3435 * valarith.c: Likewise.
3436 (value_user_defined_cpp_op, value_user_defined_op): New
3437 argument NOSIDE. Update all callers.
3438 * valops.c (find_overload_match): New argument NOSIDE.
3439 * value.h (find_overload_match): Update signature.
3440
3441 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3442
3443 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3444 'items' methods instead of 'iteritems' method on dictionaries.
3445
3446 2014-08-15 Doug Evans <dje@google.com>
3447
3448 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3449 closer to use.
3450
3451 2014-08-15 Doug Evans <dje@google.com>
3452
3453 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3454
3455 2014-08-15 Doug Evans <dje@google.com>
3456
3457 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3458
3459 2014-08-15 Doug Evans <dje@google.com>
3460
3461 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3462 unused.
3463
3464 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3465
3466 * dcache.h: Include target.h, to avoid compile time warnings.
3467
3468 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3469
3470 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3471 frame_info" partial declaration.
3472 * gdbarch.h: Regenerate.
3473
3474 2014-08-15 Yao Qi <yao@codesourcery.com>
3475
3476 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3477 Add parameter 'decode_for_pst_p'. Callers update.
3478
3479 2014-08-13 Yao Qi <yao@codesourcery.com>
3480
3481 PR build/17104
3482 * configure.ac: Use local variable 'pos'.
3483 * configure: Regenerated.
3484
3485 2014-08-11 Doug Evans <dje@google.com>
3486
3487 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3488 message, it is redundant with "Reading symbols from ..." message.
3489
3490 2014-08-10 Doug Evans <xdje42@gmail.com>
3491
3492 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3493
3494 2014-08-09 Yao Qi <yao@codesourcery.com>
3495
3496 PR remote/9053
3497 * remote.c (remote_xfer_partial): Remove dead code.
3498
3499 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3500
3501 * ia64-linux-tdep.c: Include "regset.h".
3502 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3503 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3504 (ia64_linux_supply_fpregset): New function.
3505 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3506 (ia64_linux_regset_from_core_section): New function.
3507 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3508 method.
3509
3510 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3511
3512 * m68klinux-tdep.c: Include "regset.h".
3513 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3514 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3515 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3516 (m68k_linux_regset_from_core_section): New function.
3517 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3518 method.
3519
3520 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3521
3522 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3523 function. Move logic to...
3524 (tilegx_linux_regmap): ... this new register map.
3525 (tilegx_linux_regset): Refer to register map, replace supply
3526 method by regcache_supply_regset, and add collect method.
3527 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3528 TILEGX_FIRST_EASY_REGNUM.
3529
3530 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3531
3532 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3533 that calls regcache_supply_regset and handles the EPC register
3534 separately. Move main logic to...
3535 (score7_linux_gregmap): ... this new register map.
3536 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3537 (score7_linux_gregset): Refer to register map. Add collect method.
3538 (score7_linux_regset_from_core_section): Replace
3539 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3540 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3541 (struct regset): Delete unused forward declaraction.
3542 (struct pt_regs): Delete structure definition.
3543 (elf_gregset_t): Delete typedef.
3544
3545 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3546
3547 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3548 (nios2_core_regset): Add collect method.
3549
3550 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3551
3552 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3553 platform-independent and don't write to read-only input buffer.
3554 (m32r_linux_collect_gregset): New function.
3555 (m32r_linux_gregset): Add collect method.
3556
3557 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3558
3559 * hppa-linux-tdep.c (greg_map): Rename to...
3560 (hppa_linux_gregmap): ... this. Also convert to
3561 regcache_map_entry format.
3562 (hppa_linux_supply_regset): Delete function.
3563 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3564 (hppa_linux_fpregmap): ... this new register map.
3565 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3566 register map, replace supply method by regcache_supply_regset, and
3567 add collect method regcache_collect_regset.
3568
3569 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3570
3571 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3572 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3573 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3574 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3575 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3576 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3577 (frv_linux_supply_gregset): Replace main logic by call to
3578 regcache_supply_regset, but keep clearing gr32-gr63.
3579 (frv_linux_supply_fpregset): Delete function.
3580 (frv_linux_gregset): Refer to appropriate register map and add
3581 regcache_collect_regset as the collect method.
3582 (frv_linux_fpregset): Likewise. Also exchange the supply method
3583 by regcache_supply_regset.
3584
3585 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3586
3587 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3588 by call to alpha_supply_int_regs.
3589 (alpha_linux_collect_gregset): New function.
3590 (alpha_linux_supply_fpregset): Replace logic by call to
3591 alpha_supply_fp_regs.
3592 (alpha_linux_collect_fpregset): New function.
3593 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3594
3595 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3596
3597 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3598 by call to regcache_collect_regset.
3599 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3600 instead of aarch64_linux_supply_gregset/_fpregset.
3601 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3602 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3603 header file instead.
3604 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3605 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3606 functions. Move logic to ...
3607 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3608 register maps.
3609 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3610 refer to new register maps, replace *_regset_from_core by
3611 regcache_supply_regset, and also use regcache_collect_regset.
3612 * aarch64-linux-tdep.h: Include "regset.h".
3613 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3614 Delete prototypes.
3615 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3616 macros, moved from C source file.
3617 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3618 variable declarations.
3619
3620 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3621
3622 * s390-linux-nat.c: Include "regset.h".
3623 (regmap_gregset): Delete macro.
3624 (s390_64_regmap_gregset): New register map for
3625 regcache_supply/_collect_regset.
3626 (s390_64_gregset): New regset.
3627 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3628 (regmap_fpregset): Delete macro.
3629 (s390_native_supply, s390_native_collect): Delete functions.
3630 (supply_gregset, fill_gregset): Replace s390-specific regmap
3631 handling by a call to regcache_supply/_collect_regset.
3632 (supply_fpregset, fill_fpregset): Call regcache_supply/
3633 _collect_regset instead of s390_native_supply/_collect.
3634 (fetch_regset, store_regset): Likewise. Also change the last
3635 parameter to a regset instead of a regmap.
3636 (s390_linux_fetch_inferior_registers)
3637 (390_linux_store_inferior_registers): Adjust last parameter in
3638 calls to fetch_regset and store_regset.
3639 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3640 (s390_gregmap): ... this. Also make static const and convert to
3641 regcache_map_entry format.
3642 (s390x_regmap_gregset): Delete.
3643 (s390_regmap_fpregset): Rename to...
3644 (s390_fpregmap): ... this. Make static const and convert to
3645 regcache_map_entry format.
3646 (s390_regmap_upper, s390_regmap_last_break)
3647 (s390x_regmap_last_break, s390_regmap_system_call)
3648 (s390_regmap_tdb): Likewise.
3649 (s390_supply_regset, s390_collect_regset): Remove functions.
3650 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3651 s390_supply_regset.
3652 (s390_gregset, s390_fpregset, s390_upper_regset)
3653 (s390_last_break_regset, s390x_last_break_regset)
3654 (s390_system_call_regset, s390_tdb_regset): Make global and
3655 replace s390_supply/_collect_regset by regcache_supply/
3656 _collect_regset.
3657 (s390x_gregset): Delete.
3658 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3659 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3660 (s390_regmap_fpregset, s390_regmap_last_break)
3661 (s390x_regmap_last_break, s390_regmap_system_call)
3662 (s390_regmap_tdb): Delete global variable declarations.
3663 (s390_gregset, s390_fpregset, s390_last_break_regset)
3664 (s390x_last_break_regset, s390_system_call_regset)
3665 (s390_tdb_regset): New global variable declarations.
3666
3667 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3668
3669 * regcache.c: Include "regset.h".
3670 (regcache_transfer_regset): New local function.
3671 (regcache_supply_regset, regcache_collect_regset): New functions.
3672 * regcache.h (struct regcache_map_entry): New structure.
3673 (REGCACHE_MAP_SKIP): New enum value.
3674 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3675
3676 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3677
3678 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3679 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3680 (ppc_linux_collect_gregset ): Likewise.
3681 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3682 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3683 (ppc_collect_vrregset): Likewise.
3684 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3685 Likewise.
3686
3687 2014-08-07 Yao Qi <yao@codesourcery.com>
3688
3689 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3690 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3691 * remote.c (remote_read_bytes): Likewise.
3692
3693 2014-08-07 Yao Qi <yao@codesourcery.com>
3694
3695 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3696
3697 2014-08-07 Yao Qi <yao@codesourcery.com>
3698
3699 PR remote/17230
3700 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3701 TARGET_XFER_OK instead of 0.
3702
3703 2014-08-07 Gary Benson <gbenson@redhat.com>
3704
3705 * common/common-defs.h: Include errno.h.
3706 * defs.h: Do not include errno.h.
3707 * ada-typeprint.c: Likewise.
3708 * c-typeprint.c: Likewise.
3709 * core-regset.c: Likewise.
3710 * corefile.c: Likewise.
3711 * corelow.c: Likewise.
3712 * event-loop.c: Likewise.
3713 * f-typeprint.c: Likewise.
3714 * gnu-nat.c: Likewise.
3715 * go32-nat.c: Likewise.
3716 * i386gnu-nat.c: Likewise.
3717 * m2-typeprint.c: Likewise.
3718 * nat/linux-btrace.c: Likewise.
3719 * p-typeprint.c: Likewise.
3720 * procfs.c: Likewise.
3721 * remote-sim.c: Likewise.
3722 * rs6000-nat.c: Likewise.
3723 * target.c: Likewise.
3724 * typeprint.c: Likewise.
3725 * ui-file.c: Likewise.
3726 * valops.c: Likewise.
3727 * valprint.c: Likewise.
3728
3729 2014-08-07 Gary Benson <gbenson@redhat.com>
3730
3731 * common/common-defs.h: Include string.h.
3732 * aarch64-tdep.c: Do not include string.h.
3733 * ada-exp.y: Likewise.
3734 * ada-lang.c: Likewise.
3735 * ada-lex.l: Likewise.
3736 * ada-typeprint.c: Likewise.
3737 * ada-valprint.c: Likewise.
3738 * aix-thread.c: Likewise.
3739 * alpha-linux-tdep.c: Likewise.
3740 * alpha-mdebug-tdep.c: Likewise.
3741 * alpha-nat.c: Likewise.
3742 * alpha-osf1-tdep.c: Likewise.
3743 * alpha-tdep.c: Likewise.
3744 * alphanbsd-tdep.c: Likewise.
3745 * amd64-dicos-tdep.c: Likewise.
3746 * amd64-linux-tdep.c: Likewise.
3747 * amd64-nat.c: Likewise.
3748 * amd64-sol2-tdep.c: Likewise.
3749 * amd64fbsd-tdep.c: Likewise.
3750 * amd64obsd-tdep.c: Likewise.
3751 * arch-utils.c: Likewise.
3752 * arm-linux-nat.c: Likewise.
3753 * arm-linux-tdep.c: Likewise.
3754 * arm-tdep.c: Likewise.
3755 * arm-wince-tdep.c: Likewise.
3756 * armbsd-tdep.c: Likewise.
3757 * armnbsd-nat.c: Likewise.
3758 * armnbsd-tdep.c: Likewise.
3759 * armobsd-tdep.c: Likewise.
3760 * avr-tdep.c: Likewise.
3761 * ax-gdb.c: Likewise.
3762 * ax-general.c: Likewise.
3763 * bcache.c: Likewise.
3764 * bfin-tdep.c: Likewise.
3765 * breakpoint.c: Likewise.
3766 * build-id.c: Likewise.
3767 * buildsym.c: Likewise.
3768 * c-exp.y: Likewise.
3769 * c-lang.c: Likewise.
3770 * c-typeprint.c: Likewise.
3771 * c-valprint.c: Likewise.
3772 * charset.c: Likewise.
3773 * cli-out.c: Likewise.
3774 * cli/cli-cmds.c: Likewise.
3775 * cli/cli-decode.c: Likewise.
3776 * cli/cli-dump.c: Likewise.
3777 * cli/cli-interp.c: Likewise.
3778 * cli/cli-logging.c: Likewise.
3779 * cli/cli-script.c: Likewise.
3780 * cli/cli-setshow.c: Likewise.
3781 * cli/cli-utils.c: Likewise.
3782 * coffread.c: Likewise.
3783 * common/agent.c: Likewise.
3784 * common/buffer.c: Likewise.
3785 * common/buffer.h: Likewise.
3786 * common/common-utils.c: Likewise.
3787 * common/filestuff.c: Likewise.
3788 * common/filestuff.c: Likewise.
3789 * common/format.c: Likewise.
3790 * common/print-utils.c: Likewise.
3791 * common/rsp-low.c: Likewise.
3792 * common/signals.c: Likewise.
3793 * common/vec.h: Likewise.
3794 * common/xml-utils.c: Likewise.
3795 * core-regset.c: Likewise.
3796 * corefile.c: Likewise.
3797 * corelow.c: Likewise.
3798 * cp-abi.c: Likewise.
3799 * cp-name-parser.y: Likewise.
3800 * cp-support.c: Likewise.
3801 * cp-valprint.c: Likewise.
3802 * cris-tdep.c: Likewise.
3803 * d-exp.y: Likewise.
3804 * darwin-nat.c: Likewise.
3805 * dbxread.c: Likewise.
3806 * dcache.c: Likewise.
3807 * demangle.c: Likewise.
3808 * dicos-tdep.c: Likewise.
3809 * disasm.c: Likewise.
3810 * doublest.c: Likewise.
3811 * dsrec.c: Likewise.
3812 * dummy-frame.c: Likewise.
3813 * dwarf2-frame.c: Likewise.
3814 * dwarf2loc.c: Likewise.
3815 * dwarf2read.c: Likewise.
3816 * elfread.c: Likewise.
3817 * environ.c: Likewise.
3818 * eval.c: Likewise.
3819 * event-loop.c: Likewise.
3820 * exceptions.c: Likewise.
3821 * exec.c: Likewise.
3822 * expprint.c: Likewise.
3823 * f-exp.y: Likewise.
3824 * f-lang.c: Likewise.
3825 * f-typeprint.c: Likewise.
3826 * f-valprint.c: Likewise.
3827 * fbsd-nat.c: Likewise.
3828 * findcmd.c: Likewise.
3829 * findvar.c: Likewise.
3830 * fork-child.c: Likewise.
3831 * frame.c: Likewise.
3832 * frv-linux-tdep.c: Likewise.
3833 * frv-tdep.c: Likewise.
3834 * gdb.c: Likewise.
3835 * gdb_bfd.c: Likewise.
3836 * gdbarch.c: Likewise.
3837 * gdbarch.sh: Likewise.
3838 * gdbtypes.c: Likewise.
3839 * gnu-nat.c: Likewise.
3840 * gnu-v2-abi.c: Likewise.
3841 * gnu-v3-abi.c: Likewise.
3842 * go-exp.y: Likewise.
3843 * go-lang.c: Likewise.
3844 * go32-nat.c: Likewise.
3845 * guile/guile.c: Likewise.
3846 * guile/scm-auto-load.c: Likewise.
3847 * hppa-hpux-tdep.c: Likewise.
3848 * hppa-linux-nat.c: Likewise.
3849 * hppanbsd-tdep.c: Likewise.
3850 * hppaobsd-tdep.c: Likewise.
3851 * i386-cygwin-tdep.c: Likewise.
3852 * i386-dicos-tdep.c: Likewise.
3853 * i386-linux-tdep.c: Likewise.
3854 * i386-nto-tdep.c: Likewise.
3855 * i386-sol2-tdep.c: Likewise.
3856 * i386-tdep.c: Likewise.
3857 * i386bsd-tdep.c: Likewise.
3858 * i386gnu-nat.c: Likewise.
3859 * i386nbsd-tdep.c: Likewise.
3860 * i386obsd-tdep.c: Likewise.
3861 * i387-tdep.c: Likewise.
3862 * ia64-libunwind-tdep.c: Likewise.
3863 * ia64-linux-nat.c: Likewise.
3864 * inf-child.c: Likewise.
3865 * inf-ptrace.c: Likewise.
3866 * inf-ttrace.c: Likewise.
3867 * infcall.c: Likewise.
3868 * infcmd.c: Likewise.
3869 * inflow.c: Likewise.
3870 * infrun.c: Likewise.
3871 * interps.c: Likewise.
3872 * iq2000-tdep.c: Likewise.
3873 * irix5-nat.c: Likewise.
3874 * jv-exp.y: Likewise.
3875 * jv-lang.c: Likewise.
3876 * jv-typeprint.c: Likewise.
3877 * jv-valprint.c: Likewise.
3878 * language.c: Likewise.
3879 * linux-fork.c: Likewise.
3880 * linux-nat.c: Likewise.
3881 * lm32-tdep.c: Likewise.
3882 * m2-exp.y: Likewise.
3883 * m2-typeprint.c: Likewise.
3884 * m32c-tdep.c: Likewise.
3885 * m32r-linux-nat.c: Likewise.
3886 * m32r-linux-tdep.c: Likewise.
3887 * m32r-rom.c: Likewise.
3888 * m32r-tdep.c: Likewise.
3889 * m68hc11-tdep.c: Likewise.
3890 * m68k-tdep.c: Likewise.
3891 * m68kbsd-tdep.c: Likewise.
3892 * m68klinux-nat.c: Likewise.
3893 * m68klinux-tdep.c: Likewise.
3894 * m88k-tdep.c: Likewise.
3895 * machoread.c: Likewise.
3896 * macrocmd.c: Likewise.
3897 * main.c: Likewise.
3898 * mdebugread.c: Likewise.
3899 * mem-break.c: Likewise.
3900 * memattr.c: Likewise.
3901 * memory-map.c: Likewise.
3902 * mep-tdep.c: Likewise.
3903 * mi/mi-cmd-break.c: Likewise.
3904 * mi/mi-cmd-disas.c: Likewise.
3905 * mi/mi-cmd-env.c: Likewise.
3906 * mi/mi-cmd-stack.c: Likewise.
3907 * mi/mi-cmd-var.c: Likewise.
3908 * mi/mi-cmds.c: Likewise.
3909 * mi/mi-console.c: Likewise.
3910 * mi/mi-getopt.c: Likewise.
3911 * mi/mi-interp.c: Likewise.
3912 * mi/mi-main.c: Likewise.
3913 * mi/mi-parse.c: Likewise.
3914 * microblaze-rom.c: Likewise.
3915 * microblaze-tdep.c: Likewise.
3916 * mingw-hdep.c: Likewise.
3917 * minidebug.c: Likewise.
3918 * minsyms.c: Likewise.
3919 * mips-irix-tdep.c: Likewise.
3920 * mips-linux-tdep.c: Likewise.
3921 * mips-tdep.c: Likewise.
3922 * mips64obsd-tdep.c: Likewise.
3923 * mipsnbsd-tdep.c: Likewise.
3924 * mipsread.c: Likewise.
3925 * mn10300-linux-tdep.c: Likewise.
3926 * mn10300-tdep.c: Likewise.
3927 * monitor.c: Likewise.
3928 * moxie-tdep.c: Likewise.
3929 * mt-tdep.c: Likewise.
3930 * nat/linux-btrace.c: Likewise.
3931 * nat/linux-osdata.c: Likewise.
3932 * nat/linux-procfs.c: Likewise.
3933 * nat/linux-ptrace.c: Likewise.
3934 * nat/linux-waitpid.c: Likewise.
3935 * nbsd-tdep.c: Likewise.
3936 * nios2-linux-tdep.c: Likewise.
3937 * nto-procfs.c: Likewise.
3938 * nto-tdep.c: Likewise.
3939 * objc-lang.c: Likewise.
3940 * objfiles.c: Likewise.
3941 * opencl-lang.c: Likewise.
3942 * osabi.c: Likewise.
3943 * osdata.c: Likewise.
3944 * p-exp.y: Likewise.
3945 * p-lang.c: Likewise.
3946 * p-typeprint.c: Likewise.
3947 * parse.c: Likewise.
3948 * posix-hdep.c: Likewise.
3949 * ppc-linux-nat.c: Likewise.
3950 * ppc-sysv-tdep.c: Likewise.
3951 * ppcfbsd-tdep.c: Likewise.
3952 * ppcnbsd-tdep.c: Likewise.
3953 * ppcobsd-tdep.c: Likewise.
3954 * printcmd.c: Likewise.
3955 * procfs.c: Likewise.
3956 * prologue-value.c: Likewise.
3957 * python/py-auto-load.c: Likewise.
3958 * python/py-gdb-readline.c: Likewise.
3959 * ravenscar-thread.c: Likewise.
3960 * regcache.c: Likewise.
3961 * registry.c: Likewise.
3962 * remote-fileio.c: Likewise.
3963 * remote-m32r-sdi.c: Likewise.
3964 * remote-mips.c: Likewise.
3965 * remote-notif.c: Likewise.
3966 * remote-sim.c: Likewise.
3967 * remote.c: Likewise.
3968 * reverse.c: Likewise.
3969 * rs6000-aix-tdep.c: Likewise.
3970 * ser-base.c: Likewise.
3971 * ser-go32.c: Likewise.
3972 * ser-mingw.c: Likewise.
3973 * ser-pipe.c: Likewise.
3974 * ser-tcp.c: Likewise.
3975 * ser-unix.c: Likewise.
3976 * serial.c: Likewise.
3977 * sh-tdep.c: Likewise.
3978 * sh64-tdep.c: Likewise.
3979 * shnbsd-tdep.c: Likewise.
3980 * skip.c: Likewise.
3981 * sol-thread.c: Likewise.
3982 * solib-dsbt.c: Likewise.
3983 * solib-frv.c: Likewise.
3984 * solib-osf.c: Likewise.
3985 * solib-som.c: Likewise.
3986 * solib-spu.c: Likewise.
3987 * solib-target.c: Likewise.
3988 * solib.c: Likewise.
3989 * somread.c: Likewise.
3990 * source.c: Likewise.
3991 * sparc-nat.c: Likewise.
3992 * sparc-sol2-tdep.c: Likewise.
3993 * sparc-tdep.c: Likewise.
3994 * sparc64-tdep.c: Likewise.
3995 * sparc64fbsd-tdep.c: Likewise.
3996 * sparc64nbsd-tdep.c: Likewise.
3997 * sparcnbsd-tdep.c: Likewise.
3998 * spu-linux-nat.c: Likewise.
3999 * spu-multiarch.c: Likewise.
4000 * spu-tdep.c: Likewise.
4001 * stabsread.c: Likewise.
4002 * stack.c: Likewise.
4003 * std-regs.c: Likewise.
4004 * symfile.c: Likewise.
4005 * symmisc.c: Likewise.
4006 * symtab.c: Likewise.
4007 * target.c: Likewise.
4008 * thread.c: Likewise.
4009 * tilegx-linux-nat.c: Likewise.
4010 * tilegx-tdep.c: Likewise.
4011 * top.c: Likewise.
4012 * tracepoint.c: Likewise.
4013 * tui/tui-command.c: Likewise.
4014 * tui/tui-data.c: Likewise.
4015 * tui/tui-disasm.c: Likewise.
4016 * tui/tui-file.c: Likewise.
4017 * tui/tui-layout.c: Likewise.
4018 * tui/tui-out.c: Likewise.
4019 * tui/tui-regs.c: Likewise.
4020 * tui/tui-source.c: Likewise.
4021 * tui/tui-stack.c: Likewise.
4022 * tui/tui-win.c: Likewise.
4023 * tui/tui-windata.c: Likewise.
4024 * tui/tui-winsource.c: Likewise.
4025 * typeprint.c: Likewise.
4026 * ui-file.c: Likewise.
4027 * ui-out.c: Likewise.
4028 * user-regs.c: Likewise.
4029 * utils.c: Likewise.
4030 * v850-tdep.c: Likewise.
4031 * valarith.c: Likewise.
4032 * valops.c: Likewise.
4033 * valprint.c: Likewise.
4034 * value.c: Likewise.
4035 * varobj.c: Likewise.
4036 * vax-tdep.c: Likewise.
4037 * vaxnbsd-tdep.c: Likewise.
4038 * vaxobsd-tdep.c: Likewise.
4039 * windows-nat.c: Likewise.
4040 * xcoffread.c: Likewise.
4041 * xml-support.c: Likewise.
4042 * xstormy16-tdep.c: Likewise.
4043 * xtensa-linux-nat.c: Likewise.
4044
4045 2014-08-07 Gary Benson <gbenson@redhat.com>
4046
4047 * common/common-defs.h: Include gdb_assert.h.
4048 * aarch64-tdep.c: Do not include gdb_assert.h.
4049 * addrmap.c: Likewise.
4050 * aix-thread.c: Likewise.
4051 * alpha-linux-tdep.c: Likewise.
4052 * alpha-mdebug-tdep.c: Likewise.
4053 * alphanbsd-tdep.c: Likewise.
4054 * amd64-nat.c: Likewise.
4055 * amd64-tdep.c: Likewise.
4056 * amd64bsd-nat.c: Likewise.
4057 * amd64fbsd-nat.c: Likewise.
4058 * amd64fbsd-tdep.c: Likewise.
4059 * amd64nbsd-nat.c: Likewise.
4060 * amd64nbsd-tdep.c: Likewise.
4061 * amd64obsd-nat.c: Likewise.
4062 * amd64obsd-tdep.c: Likewise.
4063 * arch-utils.c: Likewise.
4064 * arm-tdep.c: Likewise.
4065 * armbsd-tdep.c: Likewise.
4066 * auxv.c: Likewise.
4067 * bcache.c: Likewise.
4068 * bfin-tdep.c: Likewise.
4069 * blockframe.c: Likewise.
4070 * breakpoint.c: Likewise.
4071 * bsd-kvm.c: Likewise.
4072 * bsd-uthread.c: Likewise.
4073 * buildsym.c: Likewise.
4074 * c-exp.y: Likewise.
4075 * c-lang.c: Likewise.
4076 * charset.c: Likewise.
4077 * cleanups.c: Likewise.
4078 * cli-out.c: Likewise.
4079 * cli/cli-decode.c: Likewise.
4080 * cli/cli-dump.c: Likewise.
4081 * cli/cli-logging.c: Likewise.
4082 * cli/cli-script.c: Likewise.
4083 * cli/cli-utils.c: Likewise.
4084 * coffread.c: Likewise.
4085 * common/common-utils.c: Likewise.
4086 * common/queue.h: Likewise.
4087 * common/signals.c: Likewise.
4088 * common/vec.h: Likewise.
4089 * complaints.c: Likewise.
4090 * completer.c: Likewise.
4091 * corelow.c: Likewise.
4092 * cp-abi.c: Likewise.
4093 * cp-name-parser.y: Likewise.
4094 * cp-namespace.c: Likewise.
4095 * cp-support.c: Likewise.
4096 * cris-tdep.c: Likewise.
4097 * dbxread.c: Likewise.
4098 * dictionary.c: Likewise.
4099 * doublest.c: Likewise.
4100 * dsrec.c: Likewise.
4101 * dummy-frame.c: Likewise.
4102 * dwarf2-frame-tailcall.c: Likewise.
4103 * dwarf2-frame.c: Likewise.
4104 * dwarf2expr.c: Likewise.
4105 * dwarf2loc.c: Likewise.
4106 * dwarf2read.c: Likewise.
4107 * eval.c: Likewise.
4108 * event-loop.c: Likewise.
4109 * exceptions.c: Likewise.
4110 * expprint.c: Likewise.
4111 * f-valprint.c: Likewise.
4112 * fbsd-nat.c: Likewise.
4113 * findvar.c: Likewise.
4114 * frame-unwind.c: Likewise.
4115 * frame.c: Likewise.
4116 * frv-tdep.c: Likewise.
4117 * gcore.c: Likewise.
4118 * gdb-dlfcn.c: Likewise.
4119 * gdb_bfd.c: Likewise.
4120 * gdbarch.c: Likewise.
4121 * gdbarch.sh: Likewise.
4122 * gdbtypes.c: Likewise.
4123 * gnu-nat.c: Likewise.
4124 * gnu-v3-abi.c: Likewise.
4125 * go-lang.c: Likewise.
4126 * guile/scm-exception.c: Likewise.
4127 * guile/scm-gsmob.c: Likewise.
4128 * guile/scm-lazy-string.c: Likewise.
4129 * guile/scm-math.c: Likewise.
4130 * guile/scm-pretty-print.c: Likewise.
4131 * guile/scm-safe-call.c: Likewise.
4132 * guile/scm-utils.c: Likewise.
4133 * guile/scm-value.c: Likewise.
4134 * h8300-tdep.c: Likewise.
4135 * hppa-hpux-nat.c: Likewise.
4136 * hppa-tdep.c: Likewise.
4137 * hppanbsd-tdep.c: Likewise.
4138 * hppaobsd-tdep.c: Likewise.
4139 * i386-darwin-nat.c: Likewise.
4140 * i386-darwin-tdep.c: Likewise.
4141 * i386-nto-tdep.c: Likewise.
4142 * i386-tdep.c: Likewise.
4143 * i386bsd-nat.c: Likewise.
4144 * i386fbsd-tdep.c: Likewise.
4145 * i386gnu-nat.c: Likewise.
4146 * i386nbsd-tdep.c: Likewise.
4147 * i386obsd-tdep.c: Likewise.
4148 * i387-tdep.c: Likewise.
4149 * ia64-libunwind-tdep.c: Likewise.
4150 * ia64-tdep.c: Likewise.
4151 * inf-ptrace.c: Likewise.
4152 * inf-ttrace.c: Likewise.
4153 * infcall.c: Likewise.
4154 * infcmd.c: Likewise.
4155 * infrun.c: Likewise.
4156 * inline-frame.c: Likewise.
4157 * interps.c: Likewise.
4158 * jv-lang.c: Likewise.
4159 * jv-typeprint.c: Likewise.
4160 * linux-fork.c: Likewise.
4161 * linux-nat.c: Likewise.
4162 * linux-thread-db.c: Likewise.
4163 * m32c-tdep.c: Likewise.
4164 * m32r-linux-nat.c: Likewise.
4165 * m32r-tdep.c: Likewise.
4166 * m68k-tdep.c: Likewise.
4167 * m68kbsd-nat.c: Likewise.
4168 * m68kbsd-tdep.c: Likewise.
4169 * m88k-tdep.c: Likewise.
4170 * machoread.c: Likewise.
4171 * macroexp.c: Likewise.
4172 * macrotab.c: Likewise.
4173 * maint.c: Likewise.
4174 * mdebugread.c: Likewise.
4175 * memory-map.c: Likewise.
4176 * mep-tdep.c: Likewise.
4177 * mi/mi-common.c: Likewise.
4178 * microblaze-tdep.c: Likewise.
4179 * mingw-hdep.c: Likewise.
4180 * mips-linux-nat.c: Likewise.
4181 * mips-linux-tdep.c: Likewise.
4182 * mips-tdep.c: Likewise.
4183 * mips64obsd-tdep.c: Likewise.
4184 * mipsnbsd-tdep.c: Likewise.
4185 * mn10300-linux-tdep.c: Likewise.
4186 * mn10300-tdep.c: Likewise.
4187 * moxie-tdep.c: Likewise.
4188 * mt-tdep.c: Likewise.
4189 * nat/linux-btrace.c: Likewise.
4190 * nat/linux-osdata.c: Likewise.
4191 * nat/linux-ptrace.c: Likewise.
4192 * nat/mips-linux-watch.c: Likewise.
4193 * nios2-linux-tdep.c: Likewise.
4194 * nios2-tdep.c: Likewise.
4195 * objc-lang.c: Likewise.
4196 * objfiles.c: Likewise.
4197 * obsd-nat.c: Likewise.
4198 * opencl-lang.c: Likewise.
4199 * osabi.c: Likewise.
4200 * parse.c: Likewise.
4201 * ppc-linux-nat.c: Likewise.
4202 * ppc-sysv-tdep.c: Likewise.
4203 * ppcfbsd-nat.c: Likewise.
4204 * ppcfbsd-tdep.c: Likewise.
4205 * ppcnbsd-nat.c: Likewise.
4206 * ppcnbsd-tdep.c: Likewise.
4207 * ppcobsd-nat.c: Likewise.
4208 * ppcobsd-tdep.c: Likewise.
4209 * printcmd.c: Likewise.
4210 * procfs.c: Likewise.
4211 * prologue-value.c: Likewise.
4212 * psymtab.c: Likewise.
4213 * python/py-lazy-string.c: Likewise.
4214 * python/py-value.c: Likewise.
4215 * regcache.c: Likewise.
4216 * reggroups.c: Likewise.
4217 * registry.c: Likewise.
4218 * remote-sim.c: Likewise.
4219 * remote.c: Likewise.
4220 * rs6000-aix-tdep.c: Likewise.
4221 * rs6000-tdep.c: Likewise.
4222 * s390-linux-tdep.c: Likewise.
4223 * score-tdep.c: Likewise.
4224 * ser-base.c: Likewise.
4225 * ser-mingw.c: Likewise.
4226 * sh-tdep.c: Likewise.
4227 * sh64-tdep.c: Likewise.
4228 * solib-darwin.c: Likewise.
4229 * solib-spu.c: Likewise.
4230 * solib-svr4.c: Likewise.
4231 * source.c: Likewise.
4232 * sparc-nat.c: Likewise.
4233 * sparc-sol2-tdep.c: Likewise.
4234 * sparc-tdep.c: Likewise.
4235 * sparc64-sol2-tdep.c: Likewise.
4236 * sparc64-tdep.c: Likewise.
4237 * sparc64fbsd-tdep.c: Likewise.
4238 * sparc64nbsd-tdep.c: Likewise.
4239 * sparc64obsd-tdep.c: Likewise.
4240 * sparcnbsd-tdep.c: Likewise.
4241 * sparcobsd-tdep.c: Likewise.
4242 * spu-multiarch.c: Likewise.
4243 * spu-tdep.c: Likewise.
4244 * stabsread.c: Likewise.
4245 * stack.c: Likewise.
4246 * symfile.c: Likewise.
4247 * symtab.c: Likewise.
4248 * target-descriptions.c: Likewise.
4249 * target-memory.c: Likewise.
4250 * target.c: Likewise.
4251 * tic6x-linux-tdep.c: Likewise.
4252 * tic6x-tdep.c: Likewise.
4253 * tilegx-linux-nat.c: Likewise.
4254 * tilegx-tdep.c: Likewise.
4255 * top.c: Likewise.
4256 * tramp-frame.c: Likewise.
4257 * tui/tui-out.c: Likewise.
4258 * tui/tui-winsource.c: Likewise.
4259 * ui-out.c: Likewise.
4260 * user-regs.c: Likewise.
4261 * utils.c: Likewise.
4262 * v850-tdep.c: Likewise.
4263 * valops.c: Likewise.
4264 * value.c: Likewise.
4265 * varobj.c: Likewise.
4266 * vax-nat.c: Likewise.
4267 * xml-syscall.c: Likewise.
4268 * xml-tdesc.c: Likewise.
4269 * xstormy16-tdep.c: Likewise.
4270 * xtensa-linux-nat.c: Likewise.
4271 * xtensa-tdep.c: Likewise.
4272
4273 2014-08-07 Gary Benson <gbenson@redhat.com>
4274
4275 * common/common-defs.h: Include common-utils.h.
4276 * defs.h: Do not include common-utils.h.
4277 * common/gdb_assert.h: Likewise.
4278 * darwin-nat.h: Likewise.
4279 * nat/linux-btrace.c: Likewise.
4280 * target/waitstatus.h: Likewise.
4281
4282 2014-08-07 Gary Benson <gbenson@redhat.com>
4283
4284 * common/common-defs.h: Include ptid.h.
4285 * defs.h: Do not include ptid.h.
4286 * inferior.h: Likewise.
4287 * infrun.h: Likewise.
4288 * nat/linux-btrace.h: Likewise.
4289 * nat/linux-osdata.h: Likewise.
4290 * target/waitstatus.h: Likewise.
4291
4292 2014-08-07 Gary Benson <gbenson@redhat.com>
4293
4294 * common/common-defs.h: Include gdb_locale.h.
4295 * defs.h: Do not include gdb_locale.h.
4296
4297 2014-08-07 Gary Benson <gbenson@redhat.com>
4298
4299 * common/common-defs.h: Include gdb/signals.h.
4300 * defs.h: Do not include gdb/signals.h.
4301
4302 2014-08-07 Gary Benson <gbenson@redhat.com>
4303
4304 * common/common-defs.h: Include pathmax.h.
4305 * defs.h: Do not include pathmax.h.
4306
4307 2014-08-07 Gary Benson <gbenson@redhat.com>
4308
4309 * common/common-defs.h: Include libiberty.h.
4310 * defs.h: Do not include libiberty.h.
4311 * common/queue.h: Likewise.
4312 * cp-name-parser.y: Likewise.
4313 * mi/mi-cmd-catch.c: Likewise.
4314 * python/python.c: Likewise.
4315
4316 2014-08-07 Gary Benson <gbenson@redhat.com>
4317
4318 * common/common-defs.h: Include ansidecl.h.
4319 * defs.h: Do not include ansidecl.h.
4320 * common/buffer.h: Likewise.
4321 * common/common-utils.h: Likewise.
4322
4323 2014-08-07 Gary Benson <gbenson@redhat.com>
4324
4325 * common/common-defs.h: Include stddef.h.
4326 * defs.h: Do not include stddef.h.
4327 * common/common-utils.h: Likewise.
4328 * amd64fbsd-nat.c: Likewise.
4329 * bcache.c: Likewise.
4330 * charset.c: Likewise.
4331 * common/buffer.h: Likewise.
4332 * common/vec.h: Likewise.
4333 * i386bsd-nat.c: Likewise.
4334 * nat/linux-btrace.h: Likewise.
4335 * ppcfbsd-nat.c: Likewise.
4336 * ppcnbsd-tdep.h: Likewise.
4337 * ppcobsd-nat.c: Likewise.
4338 * ppcobsd-tdep.h: Likewise.
4339 * python/py-gdb-readline.c: Likewise.
4340
4341 2014-08-07 Gary Benson <gbenson@redhat.com>
4342
4343 * common/common-defs.h: Include stdarg.h.
4344 * defs.h: Do not include stdarg.h.
4345 * ada-lang.c: Likewise.
4346 * common/common-utils.h: Likewise.
4347 * guile/scm-string.c: Likewise.
4348 * guile/scm-utils.c: Likewise.
4349 * m32c-tdep.c: Likewise.
4350
4351 2014-08-07 Gary Benson <gbenson@redhat.com>
4352
4353 * common/common-defs.h: Include stdlib.h.
4354 * defs.h: Do not include stdlib.h.
4355 * addrmap.c: Likewise.
4356 * bcache.c: Likewise.
4357 * common/buffer.c: Likewise.
4358 * common/common-utils.c: Likewise.
4359 * cp-name-parser.y: Likewise.
4360 * go32-nat.c: Likewise.
4361 * mn10300-linux-tdep.c: Likewise.
4362 * nat/linux-osdata.c: Likewise.
4363 * tui/tui.c: Likewise.
4364 * windows-nat.c: Likewise.
4365
4366 2014-08-07 Gary Benson <gbenson@redhat.com>
4367
4368 * common/common-defs.h: Include stdio.h.
4369 * defs.h: Do not include stdio.h.
4370 * ada-lang.c: Likewise.
4371 * common/buffer.c: Likewise.
4372 * common/common-utils.c: Likewise.
4373 * cp-name-parser.y: Likewise.
4374 * gnu-nat.c: Likewise.
4375 * go32-nat.c: Likewise.
4376 * i386gnu-nat.c: Likewise.
4377 * proc-api.c: Likewise.
4378 * proc-events.c: Likewise.
4379 * proc-flags.c: Likewise.
4380 * proc-why.c: Likewise.
4381 * python/python-internal.h: Likewise.
4382 * target-memory.c: Likewise.
4383 * tui/tui-io.c: Likewise.
4384 * tui/tui.c: Likewise.
4385
4386 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4387
4388 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4389 (scan_dyntag_auxv): Same.
4390
4391 2014-08-06 Yao Qi <yao@codesourcery.com>
4392
4393 * amd64-linux-nat.c: Remove duplicated include
4394 "x86-linux-nat.h".
4395 * i386-linux-nat.c: Likewise.
4396
4397 2014-08-06 Yao Qi <yao@codesourcery.com>
4398
4399 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4400 operand" with "Special opcode" in comments.
4401
4402 2014-08-05 Gary Benson <gbenson@redhat.com>
4403
4404 * interps.c (initialize_interps): Remove prototype.
4405 (interpreter_initialized): Remove static global.
4406 (interp_add): Do not call initialize_interps.
4407 (initialize_interps): Remove function.
4408
4409 2014-08-05 Gary Benson <gbenson@redhat.com>
4410
4411 * utils.c (vwarning): Remove spurious va_end.
4412
4413 2014-08-05 Alan Modra <amodra@gmail.com>
4414
4415 * charset.c (convert_between_encodings): Cast result of obstack_base.
4416 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4417 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4418 (read_unwind_info): Use size_t for some locals.
4419 * jit.c (finalize_symtab): Likewise.
4420 * utils.c (hashtab_obstack_allocate): Likewise.
4421 * symmisc.c (print_objfile_statistics): Update format strings.
4422
4423 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4424
4425 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4426 (Changes in GDB 7.8): ... here.
4427
4428 2014-08-04 Tom Tromey <tromey@redhat.com>
4429
4430 * target.c (set_targetdebug): New function.
4431 (initialize_targets): Pass set_targetdebug when creating "set
4432 debug target".
4433
4434 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4435
4436 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4437 if detecting a variable-sized field that is not the last field.
4438 Fix struct type length computation.
4439
4440 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4441
4442 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4443 Add debug trace.
4444
4445 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4446
4447 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4448 Remove "+ 8" offset in computation of CHAIN_VMA.
4449
4450 2014-07-31 Doug Evans <dje@google.com>
4451
4452 * inflow.c (child_terminal_inferior): Add comment.
4453 (child_terminal_ours_for_output): Add comment.
4454 (child_terminal_ours): Add comment.
4455 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4456 (linux_nat_terminal_ours): Add comment.
4457
4458 2014-07-31 Gary Benson <gbenson@redhat.com>
4459
4460 * common/btrace-common.h: Do not include defs.h or server.h.
4461 * nat/mips-linux-watch.h: Likewise.
4462 * gdb-dlfcn.h: Do not include defs.h.
4463 * tracefile.h: Likewise.
4464
4465 2014-07-30 Roland McGrath <mcgrathr@google.com>
4466
4467 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4468
4469 2014-07-30 Tom Tromey <tromey@redhat.com>
4470
4471 * bsd-kvm.c (bsd_kvm_open): Constify.
4472 * corelow.c (core_open): Constify.
4473 * ctf.c (ctf_open): Constify.
4474 * dbug-rom.c (dbug_open): Constify.
4475 * exec.c (exec_open): Constify.
4476 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4477 * microblaze-rom.c (picobug_open): Constify.
4478 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4479 Constify.
4480 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4481 * record-btrace.c (record_btrace_open): Constify.
4482 * record-full.c (record_full_core_open_1, record_full_open_1)
4483 (record_full_open): Constify.
4484 * remote-m32r-sdi.c (m32r_open): Constify.
4485 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4486 (rockhopper_open, lsi_open): Constify.
4487 * remote-sim.c (gdbsim_open): Constify.
4488 * remote.c (remote_open, extended_remote_open, remote_open_1):
4489 Constify.
4490 * target.h (struct target_ops) <to_open>: Make "arg" const.
4491 * tracefile-tfile.c (tfile_open): Constify.
4492
4493 2014-07-30 Tom Tromey <tromey@redhat.com>
4494
4495 * breakpoint.c (map_breakpoint_numbers): Update.
4496 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4497 (get_number_const): New function.
4498 (get_number): Rewrite using get_number_const.
4499 (init_number_or_range): Make "string" const.
4500 (number_is_in_list): Make "list" const.
4501 * cli/cli-utils.h (get_number_const): Declare.
4502 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4503 (init_number_or_range, number_is_in_list): Update.
4504 * printcmd.c (map_display_numbers): Update.
4505 * value.c (value_from_history_ref): Constify.
4506 * value.h (value_from_history_ref): Update.
4507
4508 2014-07-30 Tom Tromey <tromey@redhat.com>
4509
4510 * corefile.c (hook_type, call_extra_exec_file_hooks)
4511 (specify_exec_file_hook): Constify.
4512 * exec.c (exec_file_attach): Make "filename" const.
4513 * gdbcore.h (deprecated_exec_file_display_hook)
4514 (specify_exec_file_hook, exec_file_attach): Constify.
4515 * main.c (captured_main): Use catch_command_errors_const.
4516
4517 2014-07-30 Tom Tromey <tromey@redhat.com>
4518
4519 * target.c (open_target): New function.
4520 (add_target_with_completer, add_deprecated_target_alias): Use
4521 set_cmd_sfunc, set_cmd_context.
4522 (debug_to_open): Remove.
4523 (setup_target_debug): Update.
4524
4525 2014-07-30 Yao Qi <yao@codesourcery.com>
4526
4527 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4528 comments.
4529 * parse.c (exp_iterate): Update comments.
4530
4531 2014-07-30 Gary Benson <gbenson@redhat.com>
4532
4533 * common/common-defs.h: New file.
4534 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4535 * defs.h: Include common-defs.h.
4536 Do not include config.h or build-gnulib/config.h.
4537
4538 2014-07-30 Gary Benson <gbenson@redhat.com>
4539
4540 * common/common-utils.h: Do not include config.h.
4541 * nat/linux-btrace.h: Likewise.
4542
4543 2014-07-30 Gary Benson <gbenson@redhat.com>
4544
4545 * btrace.c: Include defs.h.
4546 * common/ptid.c: Include defs.h or server.h as appropriate.
4547 * nat/mips-linux-watch.c: Likewise.
4548
4549 2014-07-29 Tom Tromey <tromey@redhat.com>
4550
4551 * target.c (target_is_pushed): Simplify.
4552
4553 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4554
4555 GDB 7.8 released.
4556
4557 2014-07-29 Yao Qi <yao@codesourcery.com>
4558
4559 PR gdb/17206
4560 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4561
4562 2014-07-28 Doug Evans <xdje42@gmail.com>
4563
4564 PR guile/17203
4565 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4566 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4567 parameters.
4568
4569 2014-07-28 Will Newton <will.newton@linaro.org>
4570
4571 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4572 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4573 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4574 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4575 (THUMB2_EABI_SYSCALL): Likewise.
4576 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4577 struct tramp_frame.
4578 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4579 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4580
4581 2014-07-27 Doug Evans <xdje42@gmail.com>
4582
4583 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4584
4585 2014-07-27 Doug Evans <xdje42@gmail.com>
4586
4587 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4588
4589 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4590 Doug Evans <xdje42@gmail.com>
4591
4592 PR guile/17146
4593 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4594 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4595 * configure.ac: Try to use guild to compile an scm file, if it fails
4596 then disable guile support.
4597 * configure: Regenerate.
4598 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4599 GUILE_FILE_LIST.
4600 (GUILE_COMPILED_FILES): New variable.
4601 (GUILE_FILES) Update.
4602 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4603 (stamp-guile): Compile scm files.
4604 * guile/guile.c (boot_guile_support): New function.
4605 (standard_throw_args_p): New function.
4606 (print_standard_throw_error, print_throw_error): New functions.
4607 (handle_boot_error): New function.
4608 (initialize_scheme_side): Rewrite to call boot_guile_support.
4609 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4610 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4611
4612 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4613 Doug Evans <xdje42@gmail.com>
4614
4615 PR guile/17146
4616 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4617 * guile/lib/gdb/support.scm: New file.
4618 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4619 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4620 All uses updated.
4621 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4622 All uses updated.
4623 (%assert-type): Ditto, and renamed to assert-type.
4624 (%exception-print-style): Delete.
4625
4626 2014-07-26 Doug Evans <xdje42@gmail.com>
4627
4628 PR build/17105
4629 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4630 * configure: Regenerate.
4631 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4632 PYTHON_FILES.
4633 (PYTHON_FILES): New variable.
4634 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4635 (GUILE_FILES): New variable.
4636 (stamp-python, install-python, uninstall-python): Handle empty
4637 file list.
4638 (stamp-guile, install-guile, uninstall-guile): Ditto.
4639
4640 2014-07-26 Doug Evans <xdje42@gmail.com>
4641
4642 PR guile/17177
4643 * guile/lib/gdb.scm (pretty-printers): Export.
4644 (set-pretty-printers!): Export.
4645 * guile/lib/gdb/printing.scm (gdb module): Update.
4646 (prepend-pretty-printer!, append-pretty-printer!): Update.
4647 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4648 (pretty_printer_list_var): Delete.
4649 (pretty_printer_list): New static global.
4650 (gdbscm_pretty_printers): New function.
4651 (gdbscm_set_pretty_printers_x): New function.
4652 (ppscm_find_pretty_printer_from_gdb): Update.
4653 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4654 (gdbscm_initialize_pretty_printers): Update.
4655
4656 2014-07-26 Doug Evans <xdje42@gmail.com>
4657
4658 PR 17185
4659 * configure.ac: Add check for header gc/gc.h.
4660 Add check for function setenv.
4661 * configure: Regenerate.
4662 * config.in: Regenerate.
4663 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4664
4665 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4666
4667 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4668 variation in gdbarch matching.
4669
4670 2014-07-25 Tom Tromey <tromey@redhat.com>
4671
4672 * exec.c (using_exec_ops): Remove.
4673 (exec_close_1): Update. Remove extraneous block, reindent.
4674 (add_target_sections): Use target_is_pushed.
4675
4676 2014-07-25 Pedro Alves <palves@redhat.com>
4677
4678 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4679 * monitor.c (monitor_create_inferior): Likewise.
4680 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4681 * remote-sim.c (gdbsim_create_inferior): Likewise.
4682 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4683 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4684 * windows-nat.c (do_initial_windows_stuff): Likewise.
4685
4686 2014-07-25 Pedro Alves <palves@redhat.com>
4687
4688 * NEWS: Mention signal passing and "signal" command changes.
4689 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4690 comment.
4691 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4692 call.
4693 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4694 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4695 (jump_command): Adjust clear_proceed_status call.
4696 (signal_command): Warn if other thread that are resumed have
4697 signals that will be delivered. Adjust clear_proceed_status call.
4698 (until_next_command, finish_command)
4699 (proceed_after_attach_callback, attach_command_post_wait)
4700 (attach_command): Adjust clear_proceed_status call.
4701 * infrun.c (proceed_after_vfork_done): Likewise.
4702 (proceed_after_attach_callback): Adjust comment.
4703 (clear_proceed_status_thread): Clear stop_signal if not in pass
4704 state.
4705 (clear_proceed_status_callback): Delete.
4706 (clear_proceed_status): New 'step' parameter. Only clear the
4707 proceed status of threads the command being prepared is about to
4708 resume.
4709 (proceed): If passed in an explicit signal, override stop_signal
4710 with it. Don't pass the last stop signal to the thread we're
4711 resuming.
4712 (init_wait_for_inferior): Adjust clear_proceed_status call.
4713 (switch_back_to_stepped_thread): Clear the signal if it should not
4714 be passed.
4715 * infrun.h (clear_proceed_status): New 'step' parameter.
4716 (user_visible_resume_ptid): Add comment.
4717 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4718 signal is in pass state.
4719 * remote.c (append_pending_thread_resumptions): Likewise.
4720 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4721
4722 2014-07-25 Tom Tromey <tromey@redhat.com>
4723
4724 * target.h (target_stopped_data_address)
4725 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4726 parentheses.
4727
4728 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4729
4730 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4731 comments.
4732 (avr_pointer_to_address): Likewise.
4733
4734 2014-07-24 Tom Tromey <tromey@redhat.com>
4735
4736 * monitor.c (compile_pattern): Update.
4737 * target.h (struct target_ops) <to_shortname, to_longname,
4738 to_doc>: Now const.
4739
4740 2014-07-24 Tom Tromey <tromey@redhat.com>
4741
4742 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4743 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4744 (add_info_alias, add_com): Make "doc" const.
4745 (print_doc_line): Make "str" const.
4746 (delete_cmd): Update.
4747 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4748 (print_doc_line): Update.
4749 * cli/cli-script.c (document_command): Update.
4750 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4751 (add_com, add_info, add_info_alias): Update.
4752 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4753 * python/py-cmd.c (cmdpy_destroyer): Update.
4754
4755 2014-07-24 Tom Tromey <tromey@redhat.com>
4756
4757 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4758 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4759 (help_cmd_list): Constify.
4760 (lookup_cmd): Update.
4761 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4762 const.
4763 (help_cmd_list, apropos_cmd): Update.
4764 * cli/cli-script.c (show_user): Update.
4765 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4766 * cli/cli-setshow.h (cmd_show_list): Update.
4767 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4768 (cmd_show_list): Update.
4769 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4770 * python/py-cmd.c (cmdpy_destroyer): Update.
4771
4772 2014-07-24 Tom Tromey <tromey@redhat.com>
4773
4774 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4775 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4776 const.
4777 * command.h (deprecate_cmd): Update.
4778 * maint.c (maintenance_do_deprecate): Add casts.
4779
4780 2014-07-24 Tom Tromey <tromey@redhat.com>
4781
4782 * cli/cli-decode.c (help_cmd): Make parameter "const".
4783 * cli/cli-decode.h (help_cmd): Update.
4784
4785 2014-07-24 Tom Tromey <tromey@redhat.com>
4786
4787 * stack.c (up_silently_base, down_silently_base): Make argument
4788 const.
4789
4790 2014-07-24 Tom Tromey <tromey@redhat.com>
4791
4792 * solib.c (solib_add): Make "pattern" const.
4793 * solib.h (solib_add): Update.
4794
4795 2014-07-24 Tom Tromey <tromey@redhat.com>
4796
4797 * remote.c (remote_serial_open, print_packet, putpkt)
4798 (putpkt_binary): Constify.
4799 * remote.h (putpkt): Update.
4800
4801 2014-07-24 Tom Tromey <tromey@redhat.com>
4802
4803 * monitor.c (monitor_open): Make "args" const.
4804 * monitor.h (monitor_open): Update.
4805
4806 2014-07-24 Tom Tromey <tromey@redhat.com>
4807
4808 * maint.c (match_bfd_flags): Make "string" const.
4809 (print_bfd_section_info): Remove casts.
4810 (print_objfile_section_info): Make "string" const.
4811
4812 2014-07-24 Tom Tromey <tromey@redhat.com>
4813
4814 * inf-child.c (inf_child_open_target): Make "arg" const.
4815 * inf-child.h (inf_child_open_target): Update.
4816
4817 2014-07-24 Tom Tromey <tromey@redhat.com>
4818
4819 * environ.c (unset_in_environ): Make "var" const.
4820 * environ.h (unset_in_environ): Update.
4821
4822 2014-07-24 Tom Tromey <tromey@redhat.com>
4823
4824 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4825 Make "cmd" const.
4826 (scan_filename_with_cleanup): Likewise.
4827 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4828 Make arguments const.
4829 (restore_command): Update.
4830
4831 2014-07-24 Pedro Alves <palves@redhat.com>
4832
4833 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4834
4835 2014-07-24 Tom Tromey <tromey@redhat.com>
4836 Gary Benson <gbenson@redhat.com>
4837
4838 * nat/linux-ptrace.c (additional_flags): New global.
4839 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4840 additional_flags; don't check GDBSERVER.
4841 (linux_ptrace_set_additional_flags): New function.
4842 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4843 Declare.
4844 * linux-nat.c (_initialize_linux_nat): Call
4845 linux_ptrace_set_additional_flags.
4846
4847 2014-07-24 Tom Tromey <tromey@redhat.com>
4848
4849 * make-target-delegates (munge_type, write_debugmethod): New
4850 functions.
4851 (debug_names): New global.
4852 ($TARGET_DEBUG_PRINTER): New global.
4853 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4854 name.
4855 Write debug methods. Generate init_debug_target.
4856 * target-debug.h: New file.
4857 * target-delegates.c: Rebuild.
4858 * target.c: Include target-debug.h.
4859 (debug_target): Hoist definition.
4860 (target_kill, target_get_section_table, target_memory_map)
4861 (target_flash_erase, target_flash_done, target_detach)
4862 (target_disconnect, target_wait, target_resume)
4863 (target_pass_signals, target_program_signals, target_follow_fork)
4864 (target_mourn_inferior, target_search_memory)
4865 (target_thread_address_space, target_close)
4866 (target_find_new_threads, target_core_of_thread)
4867 (target_verify_memory, target_insert_mask_watchpoint)
4868 (target_remove_mask_watchpoint): Remove targetdebug code.
4869 (debug_to_post_attach, debug_to_prepare_to_store)
4870 (debug_to_files_info, debug_to_insert_breakpoint)
4871 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4872 (debug_to_region_ok_for_hw_watchpoint)
4873 (debug_to_can_accel_watchpoint_condition)
4874 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4875 (debug_to_watchpoint_addr_within_range)
4876 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4877 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4878 (debug_to_terminal_init, debug_to_terminal_inferior)
4879 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4880 (debug_to_terminal_save_ours, debug_to_terminal_info)
4881 (debug_to_load, debug_to_post_startup_inferior)
4882 (debug_to_insert_fork_catchpoint)
4883 (debug_to_remove_fork_catchpoint)
4884 (debug_to_insert_vfork_catchpoint)
4885 (debug_to_remove_vfork_catchpoint)
4886 (debug_to_insert_exec_catchpoint)
4887 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4888 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4889 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4890 (setup_target_debug): Call init_debug_target.
4891 * target.h (TARGET_DEBUG_PRINTER): New macro.
4892 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4893 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4894
4895 2014-07-24 Gary Benson <gbenson@redhat.com>
4896
4897 * exceptions.h (throw_vfatal): Renamed to...
4898 (throw_vquit): New declaration.
4899 (throw_quit): Likewise.
4900 * exceptions.c (throw_vfatal): Renamed to...
4901 (throw_vquit): New function.
4902 (throw_quit): Likewise.
4903 (throw_error): Call throw_verror rather than throw_it.
4904 * utils.h (vfatal): Removed.
4905 (fatal): Likewise.
4906 * utils.c (vfatal): Removed.
4907 (fatal): Likewise.
4908 (internal_verror): Replaced call to fatal with call to throw_quit.
4909 (quit): Replaced calls to fatal with calls to throw_quit.
4910
4911 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4912
4913 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4914 target_read_code.
4915
4916 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4917
4918 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4919 less than zero in conditional expression.
4920
4921 2014-07-23 Tom Tromey <tromey@redhat.com>
4922
4923 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4924 ($INTRO_PART): Don't match whitespace.
4925 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4926 argument matching.
4927 ($METHOD): Add $METHOD_TRAILER.
4928 (trim): Rewrite.
4929 (scan_target_h): New sub.
4930 Change main loop not to collect state.
4931 * target-delegates.c: Rebuild.
4932
4933 2014-07-23 Gary Benson <gbenson@redhat.com>
4934
4935 * cp-support.c (gdb_demangle): Fix build on systems without
4936 sigaltstack.
4937
4938 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4939
4940 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4941 for reference entry value target data value.
4942
4943 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4946 value_available_contents_eq.
4947
4948 2014-07-22 Pedro Alves <palves@redhat.com>
4949
4950 * value.c (allocate_optimized_out_value): Don't mark value as
4951 non-lazy.
4952
4953 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4954
4955 * MAINTAINERS (Write After Approval): Update my email address.
4956
4957 2014-07-20 Doug Evans <dje@google.com>
4958
4959 PR server/17147
4960 * remote.c (putpkt_binary): Add text to error message.
4961
4962 2014-07-20 Yao Qi <yao@codesourcery.com>
4963
4964 * eval.c: Remove "Chill" from comments.
4965 * gdbtypes.h: Likewise.
4966 * symtab.h: Likewise.
4967
4968 2014-07-20 Yao Qi <yao@codesourcery.com>
4969
4970 * std-operator.def: Update comments to TERNOP_SLICE.
4971
4972 2014-07-20 Yao Qi <yao@codesourcery.com>
4973
4974 * std-operator.def: Remove BINOP_RANGE.
4975 * breakpoint.c (watchpoint_exp_is_const): Update.
4976 * expprint.c (dump_subexp_body_standard): Likewise.
4977 * eval.c (init_array_element): Remove dead code.
4978 (evaluate_subexp_standard): Likewise.
4979
4980 2014-07-20 Yao Qi <yao@codesourcery.com>
4981
4982 * std-operator.def: Remove BINOP_IN.
4983 * breakpoint.c (watchpoint_exp_is_const): Update.
4984 * eval.c (evaluate_subexp_standard): Likewise.
4985 * expprint.c (dump_subexp_body_standard): Likewise.
4986
4987 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4988
4989 * microblaze-tdep.c (microblaze_register_names): Add
4990 the rshr and rslr register names.
4991 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4992 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4993 Use of tdesc_numbered_register. Use of
4994 microblaze_register_g_packet_guesses. Use of
4995 tdesc_use_registers. Use of set_gdbarch_register_type.
4996 (microblaze_register_g_packet_guesses): New.
4997 * microblaze-tdep.h (microblaze_reg_num): Add
4998 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4999 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5000 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5001 * features/microblaze-core.xml: New file.
5002 * features/microblaze-stack-protect.xml: New file.
5003 * features/microblaze-with-stack-protect.c: New file.
5004 * features/microblaze-with-stack-protect.xml: New file.
5005 * features/microblaze.xml: New file.
5006 * features/microblaze.c: New file.
5007 * features/Makefile (microblaze-with-stack-protect): Add
5008 microblaze-with-stack-protect microblaze and microblaze-expedite.
5009 * regformats/microblaze-with-stack-protect.dat: New file.
5010 * regformats/microblaze.dat: New file.
5011 * doc/gdb.texinfo (MicroBlaze Features): Added.
5012
5013 2014-07-18 Tom Tromey <tromey@redhat.com>
5014
5015 * exec.c (exec_ops): Now static.
5016 * exec.h (exec_ops): Don't declare.
5017
5018 2014-07-18 Tom Tromey <tromey@redhat.com>
5019
5020 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5021 to find_target_beneath.
5022 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5023 find_target_beneath.
5024 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5025
5026 2014-07-18 Tom Tromey <tromey@redhat.com>
5027
5028 PR gdb/17130:
5029 * utils.c (quit): Use target_supports_terminal_ours.
5030 * target.h (target_supports_terminal_ours): Declare.
5031 * target.c (target_supports_delete_record): Don't check
5032 to_delete_record against NULL.
5033 (target_supports_terminal_ours): New function.
5034
5035 2014-07-18 Tom Tromey <tromey@redhat.com>
5036
5037 PR gdb/17130:
5038 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5039 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5040 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5041 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5042 * windows-nat.c (windows_xfer_partial): Always delegate.
5043 * record-btrace.c (record_btrace_xfer_partial): Simplify
5044 delegation.
5045 (record_btrace_fetch_registers, record_btrace_store_registers)
5046 (record_btrace_prepare_to_store, record_btrace_resume)
5047 (record_btrace_wait, record_btrace_find_new_threads)
5048 (record_btrace_thread_alive): Likewise.
5049 * procfs.c (procfs_xfer_partial): Always delegate.
5050 * corelow.c (core_xfer_partial): Always delegate.
5051 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5052
5053 2014-07-18 Tom Tromey <tromey@redhat.com>
5054
5055 * exec.c (exec_make_note_section): Move earlier.
5056
5057 2014-07-17 Doug Evans <dje@google.com>
5058
5059 PR gdb/17170
5060 * maint.c (count_symtabs_and_blocks): Handle NULL
5061 current_program_space.
5062 (report_command_stats): Check global enabled flag in addition to
5063 recorded enabled flag.
5064 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5065
5066 2014-07-16 Pedro Alves <palves@redhat.com>
5067
5068 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5069
5070 2014-07-16 Tom Tromey <tromey@redhat.com>
5071
5072 * target.h (struct target_ops) <to_delete_record>: Reformat
5073 comment.
5074
5075 2014-07-16 Tom Tromey <tromey@redhat.com>
5076
5077 * target-delegates.c: Rebuild.
5078
5079 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5080
5081 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5082 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5083 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5084 (avr_pointer_to_address): Likewise.
5085 (avr_address_class_type_flags): New function.
5086 (avr_address_class_type_flags_to_name): Likewise.
5087 (avr_address_class_name_to_type_flags): Likewise.
5088 (avr_gdbarch_init): Set address_class_type_flags,
5089 address_class_type_flags_to_name and
5090 address_class_name_to_type_flags.
5091
5092 2014-07-15 Pedro Alves <palves@redhat.com>
5093
5094 * linux-nat.c (kill_callback): Save errno and work with saved
5095 copy.
5096
5097 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5098
5099 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5100
5101 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5102
5103 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5104 breakpoint support correctly.
5105
5106 2014-07-14 Pedro Alves <palves@redhat.com>
5107
5108 * utils.c (prompt_for_continue): Call target_terminal_ours.
5109
5110 2014-07-14 Pedro Alves <palves@redhat.com>
5111
5112 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5113 catch_errors. Don't re-enable stdin or notify observers where,
5114 and rethrow error.
5115 (fetch_inferior_event_wrapper): Delete.
5116
5117 2014-07-14 Pedro Alves <palves@redhat.com>
5118
5119 PR gdb/17072
5120 * top.c: Include "inf-loop.h".
5121 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5122 field.
5123 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5124 was async before.
5125 (gdb_readline_wrapper): Store whether the target is async, and
5126 make it sync.
5127
5128 2014-07-14 Pedro Alves <palves@redhat.com>
5129
5130 PR gdb/17072
5131 * top.c (gdb_readline_wrapper_line): Tweak comment.
5132 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5133 the input handler callback.
5134
5135 2014-07-14 Pedro Alves <palves@redhat.com>
5136
5137 PR gdb/17072
5138 * main.c: Include event-top.h.
5139 (handle_command_errors): New function.
5140 (catch_command_errors, catch_command_errors_const): Use it.
5141
5142 2014-07-14 Pedro Alves <palves@redhat.com>
5143
5144 * exceptions.c (catch_command_errors, catch_command_errors_const):
5145 Moved to main.c.
5146 * exceptions.h (catch_command_errors_ftype)
5147 (catch_command_errors_const_ftype): Moved to main.c.
5148 (catch_command_errors, catch_command_errors_const): Delete
5149 declarations.
5150 * main.c (catch_command_errors_ftype)
5151 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5152 (catch_command_errors, catch_command_errors_const)): Moved here
5153 from exceptions.c and make static.
5154
5155 2014-07-14 Pedro Alves <palves@redhat.com>
5156
5157 * exceptions.c (print_any_exception): Delete.
5158 (catch_exceptions_with_msg): Use exception_print instead of
5159 print_any_exception.
5160 (catch_errors): Use exception_fprintf instead of
5161 print_any_exception.
5162 (catch_command_errors, catch_command_errors_const): Use
5163 exception_print instead of print_any_exception.
5164
5165 2014-07-14 Pedro Alves <palves@redhat.com>
5166
5167 * infcall.c (run_inferior_call): Set 'sync_execution' while
5168 running the inferior call.
5169
5170 2014-07-14 Pedro Alves <palves@redhat.com>
5171
5172 * value.c (value_contents_equal): Delete function.
5173 * value.h (value_contents_equal): Delete declaration.
5174
5175 2014-07-14 Tom Tromey <tromey@redhat.com>
5176
5177 PR exp/17106:
5178 * gdbtypes.c (is_dynamic_type_internal): New function, from
5179 is_dynamic_type.
5180 (is_dynamic_type): Rewrite.
5181 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5182 (resolve_dynamic_struct): Likewise.
5183 (resolve_dynamic_type_internal): New function, from
5184 resolve_dynamic_type.
5185 (resolve_dynamic_type): Rewrite.
5186
5187 2014-07-14 Tom Tromey <tromey@redhat.com>
5188
5189 * target.c (target_require_runnable): Also check record_stratum.
5190 Update comment.
5191
5192 2014-07-11 Yao Qi <yao@codesourcery.com>
5193
5194 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5195 thumb_instruction_restores_sp return true.
5196
5197 2014-07-11 Yao Qi <yao@codesourcery.com>
5198
5199 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5200 (thumb_in_function_epilogue_p): Call
5201 thumb_instruction_restores_sp.
5202
5203 2014-07-11 Yao Qi <yao@codesourcery.com>
5204
5205 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5206 'add sp, #imm'.
5207 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5208
5209 2014-07-11 Gary Benson <gbenson@redhat.com>
5210
5211 * amd64-linux-nat.c (gdbcore.h): Remove include.
5212 (regset.h): Likewise.
5213 (nat/linux-btrace.h): Likewise.
5214 (btrace.h): Likewise.
5215 (gdb_assert.h): Likewise.
5216 (string.h): Likewise.
5217 (sys/uio.h): Likewise.
5218 (sys/debugreg.h): Likewise.
5219 (sys/syscall.h): Likewise.
5220 (sys/procfs.h): Likewise.
5221 (sys/user.h): Likewise.
5222 (asm/ptrace.h): Likewise.
5223 (i386-nat.h): Likewise.
5224 * i386-linux-nat.c (i386-nat.h): Likewise.
5225 (regset.h): Likewise.
5226 (target.h): Likewise.
5227 (linux-nat.h): Likewise.
5228 (nat/linux-btrace.h): Likewise.
5229 (btrace.h): Likewise.
5230 (gdb_assert.h): Likewise.
5231 (string.h): Likewise.
5232 (sys/uio.h): Likewise.
5233 (sys/user.h): Likewise.
5234 (sys/procfs.h): Likewise.
5235 (sys/reg.h): Likewise.
5236 (sys/debugreg.h): Likewise.
5237 (ORIG_EAX): Remove definition.
5238
5239 2014-07-11 Gary Benson <gbenson@redhat.com>
5240
5241 * i386-linux-nat.h: New file.
5242 * x86-linux-nat.h: Likewise.
5243 * x86-linux-nat.c: Likewise.
5244 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5245 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5246 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5247 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5248 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5249 (PTRACE_SETREGSET): Likewise.
5250 (arch_lwp_info): Now in x86-linux-nat.c.
5251 (have_ptrace_getregset): Now in x86-linux-nat.h.
5252 (x86_linux_dr_get): Now in x86-linux-nat.c.
5253 (x86_linux_dr_set): Likewise.
5254 (x86_linux_dr_get_addr): Likewise.
5255 (x86_linux_dr_get_control): Likewise.
5256 (x86_linux_dr_get_status): Likewise.
5257 (update_debug_registers_callback): Likewise.
5258 (x86_linux_dr_set_control): Likewise.
5259 (x86_linux_dr_set_addr): Likewise.
5260 (x86_linux_prepare_to_resume): Likewise.
5261 (x86_linux_new_thread): Likewise.
5262 (x86_linux_new_fork): Likewise.
5263 (x86_linux_get_thread_area): Likewise.
5264 (super_post_startup_inferior): Likewise.
5265 (x86_linux_child_post_startup_inferior): Likewise.
5266 (AMD64_LINUX_USER64_CS): Likewise.
5267 (AMD64_LINUX_X32_DS): Likewise.
5268 (x86_linux_read_description): Likewise.
5269 (x86_linux_enable_btrace): Likewise.
5270 (x86_linux_disable_btrace): Likewise.
5271 (x86_linux_teardown_btrace): Likewise.
5272 (x86_linux_read_btrace): Likewise.
5273 (x86_linux_create_target): Likewise.
5274 (x86_linux_add_target): Likewise.
5275 * i386-linux-nat.c (x86-linux-nat.h): New include.
5276 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5277 (PTRACE_SETREGSET): Likewise.
5278 (arch_lwp_info): Now in x86-linux-nat.c.
5279 (have_ptrace_getregset): Now in x86-linux-nat.h.
5280 (x86_linux_dr_get): Now in x86-linux-nat.c.
5281 (x86_linux_dr_set): Likewise.
5282 (x86_linux_dr_get_addr): Likewise.
5283 (x86_linux_dr_get_control): Likewise.
5284 (x86_linux_dr_get_status): Likewise.
5285 (update_debug_registers_callback): Likewise.
5286 (x86_linux_dr_set_control): Likewise.
5287 (x86_linux_dr_set_addr): Likewise.
5288 (x86_linux_prepare_to_resume): Likewise.
5289 (x86_linux_new_thread): Likewise.
5290 (x86_linux_new_fork): Likewise.
5291 (x86_linux_get_thread_area): Likewise.
5292 (super_post_startup_inferior): Likewise.
5293 (x86_linux_child_post_startup_inferior): Likewise.
5294 (AMD64_LINUX_USER64_CS): Likewise.
5295 (AMD64_LINUX_X32_DS): Likewise.
5296 (x86_linux_read_description): Likewise.
5297 (x86_linux_enable_btrace): Likewise.
5298 (x86_linux_disable_btrace): Likewise.
5299 (x86_linux_teardown_btrace): Likewise.
5300 (x86_linux_read_btrace): Likewise.
5301 (x86_linux_create_target): Likewise.
5302 (x86_linux_add_target): Likewise.
5303
5304 2014-07-11 Gary Benson <gbenson@redhat.com>
5305
5306 * amd64-linux-nat.c: Comment and whitespace changes.
5307 * i386-linux-nat.c: Comment and whitespace changes.
5308
5309 2014-07-11 Gary Benson <gbenson@redhat.com>
5310
5311 * amd64-linux-nat.c (x86_linux_create_target): New function.
5312 (x86_linux_add_target): Likewise.
5313 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5314 * i386-linux-nat.c (x86_linux_create_target): New function.
5315 (x86_linux_add_target): Likewise.
5316 (_initialize_i386_linux_nat): Delegate to the above new functions.
5317
5318 2014-07-11 Gary Benson <gbenson@redhat.com>
5319
5320 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5321 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5322 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5323 (ps_get_thread_area): Delegate to the above.
5324
5325 2014-07-11 Gary Benson <gbenson@redhat.com>
5326
5327 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5328 x86_linux_read_description. All uses updated. amd64-specific
5329 code conditionalized. Conditionalized i386-specific code added.
5330 Redundant cast removed.
5331 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5332 x86_linux_read_description. All uses updated. i386-specific
5333 code conditionalized. Conditionalized amd64-specific code added.
5334 One sizeof replaced with the actual type it is describing.
5335
5336 2014-07-11 Gary Benson <gbenson@redhat.com>
5337
5338 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5339 x86_linux_dr_get. All uses updated.
5340 (amd64_linux_dr_set): Renamed to
5341 x86_linux_dr_set. All uses updated.
5342 (amd64_linux_dr_get_addr): Renamed to
5343 x86_linux_dr_get_addr. All uses updated.
5344 (amd64_linux_dr_get_control): Renamed to
5345 x86_linux_dr_get_control. All uses updated.
5346 (amd64_linux_dr_get_status): Renamed to
5347 x86_linux_dr_get_status. All uses updated.
5348 (amd64_linux_dr_set_control): Renamed to
5349 x86_linux_dr_set_control. All uses updated.
5350 (amd64_linux_dr_set_addr): Renamed to
5351 x86_linux_dr_set_addr. All uses updated.
5352 (amd64_linux_prepare_to_resume): Renamed to
5353 x86_linux_prepare_to_resume. All uses updated.
5354 (amd64_linux_new_thread): Renamed to
5355 x86_linux_new_thread. All uses updated.
5356 (amd64_linux_new_fork): Renamed to
5357 x86_linux_new_fork. All uses updated.
5358 (amd64_linux_child_post_startup_inferior): Renamed to
5359 x86_linux_child_post_startup_inferior. All uses updated.
5360 (amd64_linux_enable_btrace): Renamed to
5361 x86_linux_enable_btrace. All uses updated.
5362 (amd64_linux_disable_btrace): Renamed to
5363 x86_linux_disable_btrace. All uses updated.
5364 (amd64_linux_teardown_btrace): Renamed to
5365 x86_linux_teardown_btrace. All uses updated.
5366 (amd64_linux_read_btrace): Renamed to
5367 x86_linux_read_btrace. All uses updated.
5368 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5369 x86_linux_dr_get. All uses updated.
5370 (i386_linux_dr_set): Renamed to
5371 x86_linux_dr_set. All uses updated.
5372 (i386_linux_dr_get_addr): Renamed to
5373 x86_linux_dr_get_addr. All uses updated.
5374 (i386_linux_dr_get_control): Renamed to
5375 x86_linux_dr_get_control. All uses updated.
5376 (i386_linux_dr_get_status): Renamed to
5377 x86_linux_dr_get_status. All uses updated.
5378 (i386_linux_dr_set_control): Renamed to
5379 x86_linux_dr_set_control. All uses updated.
5380 (i386_linux_dr_set_addr): Renamed to
5381 x86_linux_dr_set_addr. All uses updated.
5382 (i386_linux_prepare_to_resume): Renamed to
5383 x86_linux_prepare_to_resume. All uses updated.
5384 (i386_linux_new_thread): Renamed to
5385 x86_linux_new_thread. All uses updated.
5386 (i386_linux_new_fork): Renamed to
5387 x86_linux_new_fork. All uses updated.
5388 (i386_linux_child_post_startup_inferior): Renamed to
5389 x86_linux_child_post_startup_inferior. All uses updated.
5390 (i386_linux_enable_btrace): Renamed to
5391 x86_linux_enable_btrace. All uses updated.
5392 (i386_linux_disable_btrace): Renamed to
5393 x86_linux_disable_btrace. All uses updated.
5394 (i386_linux_teardown_btrace): Renamed to
5395 x86_linux_teardown_btrace. All uses updated.
5396 (i386_linux_read_btrace): Renamed to
5397 x86_linux_read_btrace. All uses updated.
5398
5399 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5400
5401 * remote.c (extended_remote_post_attach): New function.
5402 (init_extended_remote_ops): Install it as to_post_attach method.
5403
5404 2014-07-09 Pedro Alves <palves@redhat.com>
5405
5406 * infcmd.c (attach_command_post_wait): Don't call
5407 target_terminal_inferior here.
5408 (attach_command): Call it here instead.
5409
5410 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5411
5412 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5413 field.
5414 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5415 from varobj.c, with additional checks.
5416 (c_varobj_ops): Fill in is_path_expr_parent field.
5417 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5418 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5419 field.
5420 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5421 ops method.
5422 (varobj_default_is_path_expr_parent): New function.
5423 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5424 (varobj_default_is_path_expr_parent): Declare new function.
5425
5426 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5427
5428 * infcmd.c (finish_backward): Turn internal error into normal error.
5429
5430 2014-07-07 Pedro Alves <palves@redhat.com>
5431
5432 PR gdb/17096
5433 * remote.c (async_handle_remote_sigint)
5434 (async_handle_remote_sigint_twice): Call
5435 gdb_call_async_signal_handler instead of
5436 mark_async_signal_handler.
5437
5438 2014-07-07 Tom Tromey <tromey@redhat.com>
5439
5440 * target-delegates.c: Rebuild.
5441 * target.c (target_info_record): Remove.
5442 * record.c (info_record_command): Unconditionally call
5443 to_info_record.
5444 * target.h (struct target_ops) <to_info_record>: Use
5445 TARGET_DEFAULT_IGNORE.
5446 (target_info_record): Remove.
5447
5448 2014-07-07 Tom Tromey <tromey@redhat.com>
5449
5450 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5451 TARGET_DEFAULT_NORETURN.
5452 * target.c (generic_tls_error): New function.
5453 (target_translate_tls_address): Don't search target stack.
5454 * target-delegates.c: Rebuild.
5455 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5456 stack.
5457 * linux-thread-db.c (thread_db_get_thread_local_address):
5458 Unconditionally call beneath target.
5459
5460 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5461
5462 * cli/cli-logging.c (pop_output_files): Assign targerr to
5463 gdb_stdtargerr.
5464
5465 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * MAINTAINERS (Write After Approval): Update my email address.
5468
5469 2014-07-02 Gary Benson <gbenson@redhat.com>
5470
5471 * proc-service.c (ps_xfer_memory): Update comment.
5472 (ps_pstop): Remove unused function.
5473 (ps_pcontinue): Likewise.
5474 (ps_lstop): Likewise.
5475 (ps_lcontinue): Likewise.
5476 (ps_lgetxregsize): Likewise.
5477 (ps_lgetxregs): Likewise.
5478 (ps_lsetxregs): Likewise.
5479 (ps_plog): Likewise.
5480 (ps_ptread): Likewise.
5481 (ps_ptwrite): Likewise.
5482
5483 2014-07-01 Mark Wielaard <mjw@redhat.com>
5484
5485 * dwarf2read.c (add_array_cv_type): New function.
5486 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5487 (read_tag_volatile_type): Likewise.
5488
5489 2014-07-01 Tom Tromey <tromey@redhat.com>
5490
5491 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5492 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5493 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5494 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5495 * command.h (cmd_cfunc_ftype): Move earlier.
5496 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5497 (add_com, add_info): Use cmd_cfunc_ftype.
5498
5499 2014-06-30 Tom Tromey <tromey@redhat.com>
5500
5501 * symtab.c (operator_chars): Make parameters and return type
5502 const.
5503 (file_matches): Make "files" const.
5504 (struct search_symbols_data) <files>: Now const.
5505 (search_symbols): Make "regexp" and "files" parameters const.
5506 Update.
5507 (symtab_symbol_info): Remove cast.
5508 (rbreak_command): Update.
5509 * symtab.h (search_symbols): Update.
5510
5511 2014-06-27 Yao Qi <yao@codesourcery.com>
5512
5513 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5514 Change parameter type to 'struct thread_info *'. Caller
5515 updated.
5516 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5517 Update declaration.
5518 * dummy-frame.c (struct dummy_frame_id): New.
5519 (dummy_frame_id_eq): New function.
5520 (struct dummy_frame) <id>: Change its type to 'struct
5521 dummy_frame_id'.
5522 (dummy_frame_push): Add parameter ptid and save it in
5523 dummy_frame_id.
5524 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5525 inferior_ptid.
5526 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5527 to inferior_ptid.
5528 (lookup_dummy_frame): Change parameter type to 'struct
5529 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5530 instead of frame_id_eq.
5531 (dummy_frame_pop): Add parameter ptid. Callers updated.
5532 Update comments. Compose dummy_frame_id and pass it to
5533 lookup_dummy_frame.
5534 (dummy_frame_discard): Add parameter ptid.
5535 (dummy_frame_sniffer): Compose dummy_frame_id and call
5536 dummy_frame_id_eq instead of frame_id_eq.
5537 (fprint_dummy_frames): Print ptid.
5538 * dummy-frame.h: Remove comments.
5539 (dummy_frame_push): Add ptid in declaration.
5540 (dummy_frame_pop, dummy_frame_discard): Likewise.
5541
5542 2014-06-26 Tom Tromey <tromey@redhat.com>
5543
5544 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5545 * command.h (error_no_arg): Update.
5546
5547 2014-06-26 Tom Tromey <tromey@redhat.com>
5548
5549 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5550 (do_show_command): Make "arg" const.
5551 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5552
5553 2014-06-26 Tom Tromey <tromey@redhat.com>
5554
5555 * record-full.c (record_full_get_bookmark): Make "args" const.
5556 (record_full_goto_bookmark): Make "raw_bookmark" const.
5557 * record.c (record_goto): New function.
5558 (cmd_record_goto): Use it. Now static.
5559 * record.h (record_goto): Declare.
5560 (cmd_record_goto): Remove declaration.
5561 * target-delegates.c: Rebuild.
5562 * target.h (struct target_ops) <to_get_bookmark,
5563 to_goto_bookmark>: Make parameter const.
5564
5565 2014-06-26 Tom Tromey <tromey@redhat.com>
5566
5567 * defs.h (generic_load): Update.
5568 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5569 * monitor.c (monitor_load): Make "args" const.
5570 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5571 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5572 const.
5573 (mips_load): Make "file" const.
5574 * remote-sim.c (gdbsim_load): Make "args" const.
5575 * remote.c (remote_load): Make "name" const.
5576 * symfile.c (generic_load): Make "args" const.
5577 * target-delegates.c: Rebuild.
5578 * target.c (target_load): Make "arg" const.
5579 (debug_to_load): Make "args" const.
5580 * target.h (struct target_ops) <to_load>: Make parameter const.
5581 (target_load): Update.
5582
5583 2014-06-26 Tom Tromey <tromey@redhat.com>
5584
5585 PR symtab/16902:
5586 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5587 (dwarf2_physname, read_partial_die)
5588 (guess_partial_die_structure_name, fixup_partial_die)
5589 (guess_full_die_structure_name, anonymous_struct_prefix)
5590 (dwarf2_name): Use per-BFD obstack.
5591
5592 2014-06-26 Yao Qi <yao@codesourcery.com>
5593
5594 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5595 dummyframe and this_id into inner block below.
5596
5597 2014-06-26 Yao Qi <yao@codesourcery.com>
5598
5599 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5600 with "signal_pass[0]" in the initialization of signal_pass.
5601
5602 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5603
5604 * record-btrace.c (record_btrace_generating_corefile)
5605 (record_btrace_prepare_to_generate_core)
5606 (record_btrace_done_generating_core): New.
5607 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5608 (record_btrace_store_registers, record_btrace_prepare_to_store):
5609 Forward request when generating a core file.
5610 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5611 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5612 to_done_generating_core.
5613
5614 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5615
5616 * target.h (target_ops) <to_prepare_to_generate_core>
5617 <to_done_generating_core>: New.
5618 (target_prepare_to_generate_core, target_done_generating_core): New.
5619 * target.c (target_prepare_to_generate_core)
5620 (target_done_generating_core): New.
5621 * target-delegates.c: Regenerate.
5622 * gcore.c: (write_gcore_file): Rename to ...
5623 (write_gcore_file_1): ...this.
5624 (write_gcore_file): Call target_prepare_to_generate_core
5625 and target_done_generating_core.
5626
5627 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5628
5629 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5630 * gcore.c (write_gcore_file): Free memory returned from
5631 make_corefile_notes.
5632 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5633 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5634
5635 2014-06-24 Yao Qi <yao@codesourcery.com>
5636
5637 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5638 (arm_linux_init_abi): Set skip_trampoline_code with
5639 gdbarch_skip_trampoline_code instead of
5640 find_solib_trampoline_target.
5641
5642 2014-06-24 Yao Qi <yao@codesourcery.com>
5643
5644 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5645 arm_skip_bx_reg returns non-zero.
5646
5647 2014-06-24 Yao Qi <yao@codesourcery.com>
5648
5649 * arm-tdep.c (arm_skip_bx_reg): New function.
5650 (arm_skip_stub): Call arm_skip_bx_reg.
5651
5652 2014-06-23 Don Breazeal <donb@codesourcery.com>
5653
5654 * MAINTAINERS: Add myself as write-after-approval maintainer.
5655
5656 2014-06-23 Pedro Alves <palves@redhat.com>
5657
5658 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5659 DR_CONTROL before setting DR0..DR3.
5660 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5661 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5662 bits of DR_CONTROL related to the debug register slot being
5663 disabled. If all slots are vacant, clear local slowdown as well,
5664 and assert DR_CONTROL is 0.
5665
5666 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5667
5668 * python/lib/gdb/command/xmethods.py
5669 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5670 current progspace only if the string "progspace" matches LOCUS_RE.
5671
5672 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5673
5674 Fix --with-system-readline with readline-6.3 patch 5.
5675 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5676 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5677 types.
5678
5679 2014-06-20 Tom Tromey <tromey@redhat.com>
5680
5681 * dwarf2read.c (dw2_get_real_path): Use correct type in
5682 OBSTACK_CALLOC.
5683 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5684
5685 2014-06-20 Gary Benson <gbenson@redhat.com>
5686
5687 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5688 * common/glibc_thread_db.h: Likewise.
5689 * common/i386-cpuid.h: Likewise.
5690 * common/i386-gcc-cpuid.h: Likewise.
5691 * common/linux-btrace.h: Likewise.
5692 * common/linux-osdata.h: Likewise.
5693 * common/linux-procfs.h: Likewise.
5694 * common/linux-ptrace.h: Likewise.
5695 * common/mips-linux-watch.h: Likewise.
5696 * common/linux-btrace.c: Moved to nat.
5697 * common/linux-osdata.c: Likewise.
5698 * common/linux-procfs.c: Likewise.
5699 * common/linux-ptrace.c: Likewise.
5700 * common/mips-linux-watch.c: Likewise.
5701 * nat/gdb_thread_db.h: Moved from common.
5702 * nat/glibc_thread_db.h: Likewise.
5703 * nat/i386-cpuid.h: Likewise.
5704 * nat/i386-gcc-cpuid.h: Likewise.
5705 * nat/linux-btrace.c: Likewise.
5706 * nat/linux-btrace.h: Likewise.
5707 * nat/linux-osdata.c: Likewise.
5708 * nat/linux-osdata.h: Likewise.
5709 * nat/linux-procfs.c: Likewise.
5710 * nat/linux-procfs.h: Likewise.
5711 * nat/linux-ptrace.c: Likewise.
5712 * nat/linux-ptrace.h: Likewise.
5713 * nat/mips-linux-watch.c: Likewise.
5714 * nat/mips-linux-watch.h: Likewise.
5715 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5716 (object file files): Reordered.
5717 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5718 of glibc_thread_db.h.
5719
5720 2014-06-20 Gary Benson <gbenson@redhat.com>
5721
5722 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5723 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5724 (i386_dr_low): Likewise.
5725 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5726 (i386_dr_low_set_addr): Likewise.
5727 (i386_dr_low_get_addr): Likewise.
5728 (i386_dr_low_can_set_control): Likewise.
5729 (i386_dr_low_set_control): Likewise.
5730 (i386_dr_low_get_control): Likewise.
5731 (i386_dr_low_get_status): Likewise.
5732 (i386_get_debug_register_length): Likewise.
5733 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5734 (i386_dr_low): Likewise.
5735 * nat/i386-dregs.c (i386-low.h): Remove include.
5736 (i386-nat.h): Likewise.
5737 (nat/i386-dregs.h): New include.
5738 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5739 (i386_dr_low_set_addr): Likewise.
5740 (i386_dr_low_get_addr): Likewise.
5741 (i386_dr_low_can_set_control): Likewise.
5742 (i386_dr_low_set_control): Likewise.
5743 (i386_dr_low_get_control): Likewise.
5744 (i386_dr_low_get_status): Likewise.
5745 (i386_get_debug_register_length): Likewise.
5746 (debug_hw_points): Likewise.
5747
5748 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5749
5750 * Makefile.in (SFILES): Add d-exp.y.
5751 (YYFILES): Add d-exp.c.
5752 (YYOBJ): Add d-exp.o.
5753 (local-maintainer-clean): Delete d-exp.c.
5754 * d-exp.y: New file.
5755 * d-lang.h (d_parse): New declaration.
5756 (d_error): New declaration.
5757 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5758 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5759 PREC_ORDER operators.
5760 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5761
5762 2014-06-19 Yao Qi <yao@codesourcery.com>
5763
5764 * gdbthread.h (any_running): Remove the declaration.
5765 * thread.c (any_running): Remove.
5766
5767 2014-06-19 Yao Qi <yao@codesourcery.com>
5768
5769 * gdbthread.h (struct thread_info) <state>: Change its type to
5770 'enum thread_state'. Update comments.
5771
5772 2014-06-19 Pedro Alves <palves@redhat.com>
5773
5774 * gdbthread.h (ALL_THREADS): Delete.
5775 (ALL_NON_EXITED_THREADS): New macro.
5776 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5777 instead of ALL_THREADS.
5778 * infrun.c (find_thread_needs_step_over)
5779 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5780 instead of ALL_THREADS.
5781 * record-btrace.c (record_btrace_open)
5782 (record_btrace_stop_recording, record_btrace_close)
5783 (record_btrace_is_replaying, record_btrace_resume)
5784 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5785 * remote.c (append_pending_thread_resumptions): Likewise.
5786 * thread.c (thread_apply_all_command): Likewise.
5787
5788 2014-06-19 Gary Benson <gbenson@redhat.com>
5789
5790 * i386-nat.c (i386_stopped_by_watchpoint):
5791 Use i386_dr_stopped_by_watchpoint.
5792 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5793 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5794
5795 2014-06-19 Gary Benson <gbenson@redhat.com>
5796
5797 * nat/i386-dregs.c: New file.
5798 * Makefile.in (i386-dregs.o): New rule.
5799 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5800 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5801 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5802 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5803 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5804 * config/i386/go32.mh (NATDEPFILES): Likewise.
5805 * config/i386/linux.mh (NATDEPFILES): Likewise.
5806 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5807 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5808 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5809 * i386-nat.h (debug_hw_points): New declaration.
5810 * i386-nat.c (breakpoint.h): Remove include.
5811 (command.h): Likewise.
5812 (target.h): Likewise.
5813 (gdb_assert.h): Likewise.
5814 (debug_hw_points): Made nonstatic.
5815 (debug_printf): Now in i386-dregs.c.
5816 (TARGET_HAS_DR_LEN_8): Likewise.
5817 (DR_CONTROL_SHIFT): Likewise.
5818 (DR_CONTROL_SIZE): Likewise.
5819 (DR_RW_EXECUTE): Likewise.
5820 (DR_RW_WRITE): Likewise.
5821 (DR_RW_READ): Likewise.
5822 (DR_RW_IORW): Likewise.
5823 (DR_LEN_1): Likewise.
5824 (DR_LEN_2): Likewise.
5825 (DR_LEN_4): Likewise.
5826 (DR_LEN_8): Likewise.
5827 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5828 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5829 (DR_ENABLE_SIZE): Likewise.
5830 (DR_LOCAL_SLOWDOWN): Likewise.
5831 (DR_GLOBAL_SLOWDOWN): Likewise.
5832 (DR_CONTROL_RESERVED): Likewise.
5833 (I386_DR_CONTROL_MASK): Likewise.
5834 (I386_DR_VACANT): Likewise.
5835 (I386_DR_LOCAL_ENABLE): Likewise.
5836 (I386_DR_GLOBAL_ENABLE): Likewise.
5837 (I386_DR_DISABLE): Likewise.
5838 (I386_DR_SET_RW_LEN): Likewise.
5839 (I386_DR_GET_RW_LEN): Likewise.
5840 (I386_DR_WATCH_HIT): Likewise.
5841 (i386_wp_op_t): Likewise.
5842 (i386_show_dr): Likewise.
5843 (i386_length_and_rw_bits): Likewise.
5844 (i386_insert_aligned_watchpoint): Likewise.
5845 (i386_remove_aligned_watchpoint): Likewise.
5846 (i386_handle_nonaligned_watchpoint): Likewise.
5847 (i386_update_inferior_debug_regs): Likewise.
5848 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5849 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5850 (i386_region_ok_for_watchpoint):
5851 Use i386_dr_region_ok_for_watchpoint.
5852 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5853
5854 2014-06-19 Gary Benson <gbenson@redhat.com>
5855
5856 * i386-nat.c (i386_insert_hw_breakpoint): Use
5857 i386_insert_watchpoint.
5858 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5859
5860 2014-06-19 Gary Benson <gbenson@redhat.com>
5861
5862 * i386-nat.c (i386_dr_show): Renamed to
5863 i386_show_dr and made static. All uses updated.
5864 (i386_dr_length_and_rw_bits): Renamed to
5865 i386_length_and_rw_bits and made static.
5866 All uses updated.
5867 (i386_dr_insert_aligned_watchpoint): Renamed to
5868 i386_insert_aligned_watchpoint and made static.
5869 All uses updated.
5870 (i386_dr_remove_aligned_watchpoint): Renamed to
5871 i386_remove_aligned_watchpoint and made static.
5872 All uses updated.
5873 (i386_dr_update_inferior_debug_regs): Renamed to
5874 i386_update_inferior_debug_regs and made static.
5875 All uses updated.
5876 * nat/i386-dregs.h (i386_dr_show): Removed.
5877 (i386_dr_length_and_rw_bits): Likewise.
5878 (i386_dr_insert_aligned_watchpoint): Likewise.
5879 (i386_dr_remove_aligned_watchpoint): Likewise.
5880 (i386_dr_update_inferior_debug_regs): Likewise.
5881
5882 2014-06-19 Gary Benson <gbenson@redhat.com>
5883
5884 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5885 * configure: Regenerate.
5886 * config.in: Likewise.
5887 * main.c (signal.h): New include.
5888 (setup_alternate_signal_stack): New function.
5889 (captured_main): Call the above.
5890 * cp-support.c (signal.h): New include.
5891 (catch_demangler_crashes): New flag.
5892 (SIGJMP_BUF): New define.
5893 (SIGSETJMP): Likewise.
5894 (SIGLONGJMP): Likewise.
5895 (gdb_demangle_jmp_buf): New static global.
5896 (gdb_demangle_attempt_core_dump): Likewise.
5897 (gdb_demangle_signal_handler): New function.
5898 (gdb_demangle): If catch_demangler_crashes is set, install the
5899 above signal handler before calling bfd_demangle, and restore
5900 the original signal handler afterwards. Display the offending
5901 symbol and call demangler_warning the first time a segmentation
5902 fault is caught.
5903 (_initialize_cp_support): New maint set/show command.
5904
5905 2014-06-19 Gary Benson <gbenson@redhat.com>
5906
5907 * utils.h (resource_limit_kind): New enum.
5908 (can_dump_core): New declaration.
5909 (warn_cant_dump_core): Likewise.
5910 (dump_core): Likewise.
5911 * utils.c (dump_core): Made nonstatic. Added new
5912 parameter "limit_kind".
5913 (can_dump_core): Made nonstatic. Moved printing code to...
5914 (warn_cant_dump_core): New function.
5915 (can_dump_core_warn): Likewise.
5916 (internal_vproblem): Replace calls to can_dump_core with
5917 calls to can_dump_core_warn. Supply new argument to each.
5918
5919 2014-06-19 Gary Benson <gbenson@redhat.com>
5920
5921 * utils.h (demangler_vwarning): New declaration.
5922 (demangler_warning): Likewise.
5923 * utils.c (struct internal_problem)
5924 <user_settable_should_quit>: New field.
5925 <user_settable_should_dump_core>: Likewise
5926 (internal_error_problem): Add values for above new fields.
5927 (internal_warning_problem): Likewise.
5928 (demangler_warning_problem): New static global.
5929 (demangler_vwarning): New function.
5930 (demangler_warning): Likewise.
5931 (add_internal_problem_command): Selectively add commands.
5932 (_initialize_utils): New internal problem command.
5933 * maint.c (maintenance_demangler_warning): New function.
5934 (_initialize_maint_cmds): New command.
5935
5936 2014-06-18 Tom Tromey <tromey@redhat.com>
5937
5938 * f-valprint.c (info_common_command_for_block): Update.
5939 * symtab.h (struct general_symbol_info) <common_block>: Now
5940 const.
5941
5942 2014-06-18 Tom Tromey <tromey@redhat.com>
5943
5944 * symtab.h (struct symtab) <blockvector>: Now const.
5945 * ada-lang.c (ada_add_global_exceptions): Update.
5946 * buildsym.c (augment_type_symtab): Update.
5947 * dwarf2read.c (dw2_lookup_symbol): Update.
5948 * jit.c (finalize_symtab): Update.
5949 * jv-lang.c (add_class_symtab_symbol): Update.
5950 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5951 Update.
5952 * objfiles.c (objfile_relocate1): Update.
5953 * psymtab.c (lookup_symbol_aux_psymtabs)
5954 (maintenance_check_psymtabs): Update.
5955 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5956 Update.
5957 * spu-tdep.c (spu_catch_start): Update.
5958 * symmisc.c (dump_symtab_1): Update.
5959 * symtab.c (lookup_global_symbol_from_objfile)
5960 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5961 (basic_lookup_transparent_type_quick)
5962 (basic_lookup_transparent_type, find_pc_sect_symtab)
5963 (find_pc_sect_line, search_symbols): Update.
5964 * block.c (find_block_in_blockvector): Make "bl" const.
5965 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5966 const.
5967 (blockvector_contains_pc): Make "bv" const.
5968 (block_for_pc_sect): Update.
5969 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5970 (blockvector_contains_pc): Update.
5971 * breakpoint.c (resolve_sal_pc): Update.
5972 * inline-frame.c (block_starting_point_at): Update.
5973
5974 2014-06-18 Tom Tromey <tromey@redhat.com>
5975
5976 * completer.c (complete_line): Make "line_buffer" const.
5977 * completer.h (complete_line): Update.
5978
5979 2014-06-18 Tom Tromey <tromey@redhat.com>
5980
5981 * symtab.c (add_macro_name): Remove unneeded cast.
5982
5983 2014-06-18 Tom Tromey <tromey@redhat.com>
5984
5985 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5986 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5987
5988 2014-06-18 Tom Tromey <tromey@redhat.com>
5989
5990 * probe.c (info_probes_for_ops): Make "arg" const.
5991 * probe.h (info_probes_for_ops): Update.
5992
5993 2014-06-18 Tom Tromey <tromey@redhat.com>
5994
5995 * varobj.c (varobj_create): Update.
5996 * valops.c (value_of_this): Update.
5997 * tracepoint.c (add_local_symbols, scope_info): Update.
5998 * symtab.h (struct general_symbol_info) <block>: Now const.
5999 * symtab.c (skip_prologue_sal)
6000 (default_make_symbol_completion_list_break_on)
6001 (skip_prologue_using_sal): Update.
6002 * stack.h (iterate_over_block_locals)
6003 (iterate_over_block_local_vars): Update.
6004 * stack.c (print_frame_args): Update.
6005 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6006 parameter const.
6007 (get_selected_block): Make return type const.
6008 * python/py-frame.c (frapy_block): Update.
6009 * python/py-block.c (gdbpy_block_for_pc): Update.
6010 * p-exp.y (%union) <bval>: Now const.
6011 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6012 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6013 * m2-exp.y (%union) <bval>: Now const.
6014 * linespec.c (get_current_search_block): Make return type const.
6015 (create_sals_line_offset, find_label_symbols): Update.
6016 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6017 Update.
6018 (block_starting_point_at): Make "block" const.
6019 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6020 (check_exception_resume): Update.
6021 * guile/scm-frame.c (gdbscm_frame_block): Update.
6022 * guile/scm-block.c (gdbscm_lookup_block): Update.
6023 * frame.h (get_frame_block): Update.
6024 (get_selected_block): Make return type const.
6025 * frame.c (frame_id_inner): Update.
6026 * f-valprint.c (info_common_command_for_block)
6027 (info_common_command): Update.
6028 * dwarf2loc.c (dwarf2_find_location_expression)
6029 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6030 (locexpr_describe_location_piece): Update.
6031 * c-exp.y (%union) <bval>: Now const.
6032 * breakpoint.c (resolve_sal_pc): Update.
6033 * blockframe.c (get_frame_block):Make return type const.
6034 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6035 (block_innermost_frame): Update.
6036 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6037 (block_for_pc, block_for_pc_sect): Update.
6038 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6039 'pblock' const.
6040 (block_for_pc_sect, block_for_pc): Make return type const.
6041 * ax-gdb.c (gen_expr): Update.
6042 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6043 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6044 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6045 (ada_read_var_value): Update.
6046 * ada-exp.y (struct name_info) <block>: Now const.
6047 (%union): Likewise.
6048 (block_lookup): Constify.
6049
6050 2014-06-18 Gary Benson <gbenson@redhat.com>
6051
6052 * nat/i386-dregs.h: New file.
6053 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6054 * i386-nat.h (i386-dregs.h): New include.
6055 (DR_FIRSTADDR): Now in i386-dregs.h.
6056 (DR_LASTADDR): Likewise.
6057 (DR_NADDR): Likewise.
6058 (DR_STATUS): Likewise.
6059 (DR_CONTROL): Likewise.
6060 (i386_debug_reg_state): Likewise.
6061 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6062
6063 2014-06-18 Don Breazeal <donb@codesourcery.com>
6064
6065 * breakpoint.c (set_longjmp_breakpoint): Call
6066 momentary_breakpoint_from_master with additional argument.
6067 (set_longjmp_breakpoint_for_call_dummy): Call
6068 momentary_breakpoint_from_master with additional argument.
6069 (set_std_terminate_breakpoint): Call
6070 momentary_breakpoint_from_master with additional argument.
6071 (momentary_breakpoint_from_master): Add argument to function
6072 definition and use it to initialize structure member flag.
6073 (clone_momentary_breakpoint): Call
6074 momentary_breakpoint_from_master with additional argument.
6075 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6076 member flags set in momentary_breakpoint_from_master.
6077
6078 2014-06-18 Gary Benson <gbenson@redhat.com>
6079
6080 * i386-nat.c (i386_show_dr): Renamed to
6081 i386_dr_show and made nonstatic. All uses updated.
6082 (i386_length_and_rw_bits): Renamed to
6083 i386_dr_length_and_rw_bits and made nonstatic.
6084 All uses updated.
6085 (i386_insert_aligned_watchpoint): Renamed to
6086 i386_dr_insert_aligned_watchpoint and made nonstatic.
6087 All uses updated.
6088 (i386_remove_aligned_watchpoint): Renamed to
6089 i386_dr_remove_aligned_watchpoint and made nonstatic.
6090 All uses updated.
6091 (i386_update_inferior_debug_regs): Renamed to
6092 i386_dr_update_inferior_debug_regs and made nonstatic.
6093 All uses updated.
6094
6095 2014-06-18 Gary Benson <gbenson@redhat.com>
6096
6097 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6098 (i386_dr_low_can_set_control): Likewise.
6099 (i386_dr_low_set_addr): Likewise.
6100 (i386_dr_low_set_control): Likewise.
6101 (i386_dr_low_get_addr): Likewise.
6102 (i386_dr_low_get_status): Likewise.
6103 (i386_dr_low_get_control): Likewise.
6104 (i386_insert_aligned_watchpoint): Use new macros.
6105 (i386_update_inferior_debug_regs): Likewise.
6106 (i386_stopped_data_address): Likewise.
6107
6108 2014-06-18 Gary Benson <gbenson@redhat.com>
6109
6110 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6111 New parameter. All uses updated.
6112
6113 2014-06-18 Gary Benson <gbenson@redhat.com>
6114
6115 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6116 All uses updated.
6117
6118 2014-06-18 Gary Benson <gbenson@redhat.com>
6119
6120 * i386-nat.c (debug_printf): New macro.
6121 (i386_get_debug_register_length): Likewise.
6122 (TARGET_HAS_DR_LEN_8): Use above macro.
6123 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6124 and printf_unfiltered. Use phex to format values.
6125
6126 2014-06-18 Gary Benson <gbenson@redhat.com>
6127
6128 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6129 Make const.
6130
6131 2014-06-18 Gary Benson <gbenson@redhat.com>
6132
6133 * i386-nat.c: Comment changes.
6134
6135 2014-06-18 Gary Benson <gbenson@redhat.com>
6136
6137 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6138
6139 2014-06-18 Gary Benson <gbenson@redhat.com>
6140
6141 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6142 (i386_insert_aligned_watchpoint): Likewise.
6143 (i386_remove_aligned_watchpoint): Likewise.
6144 (i386_handle_nonaligned_watchpoint): Likewise.
6145
6146 2014-06-18 Gary Benson <gbenson@redhat.com>
6147
6148 * i386-nat.c: Whitespace changes.
6149
6150 2014-06-17 Samuel Bronson <naesten@gmail.com>
6151
6152 * MAINTAINERS: Update Roland McGrath's email address.
6153 Thanks to Sergio Durigan Junior for pointing out that he left
6154 Red Hat a while ago, and giving me a current address.
6155
6156 2014-06-17 Tom Tromey <tromey@redhat.com>
6157
6158 * utils.h (savestring): Remove declaration.
6159
6160 2014-06-17 Tom Tromey <tromey@redhat.com>
6161
6162 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6163
6164 2014-06-16 Keith Seitz <keiths@redhat.com>
6165
6166 PR mi/15863
6167 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6168 to update the varobj if inferior_ptid is null_ptid.
6169
6170 2014-06-16 Tom Tromey <tromey@redhat.com>
6171
6172 * target.h (struct target_ops) <to_info_proc>: Make parameter
6173 const.
6174 (target_info_proc): Update.
6175 * target.c (target_info_proc): Make "args" const.
6176 * procfs.c (procfs_info_proc): Update.
6177 * linux-tdep.c (linux_info_proc): Update.
6178 (linux_core_info_proc_mappings): Make "args" const.
6179 (linux_core_info_proc): Update.
6180 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6181 * gdbarch.c: Rebuild.
6182 * gdbarch.h: Rebuild.
6183 * corelow.c (core_info_proc): Update.
6184
6185 2014-06-16 Tom Tromey <tromey@redhat.com>
6186
6187 * target.h (struct target_ops) <to_disconnect>: Make parameter
6188 const.
6189 (target_disconnect): Update.
6190 * target.c (target_disconnect): Make "args" const.
6191 * target-delegates.c: Rebuild.
6192 * remote.c (remote_disconnect): Update.
6193 * record.h (record_disconnect): Update.
6194 * record.c (record_disconnect): Update.
6195 * inf-child.c (inf_child_disconnect): Update.
6196
6197 2014-06-16 Tom Tromey <tromey@redhat.com>
6198
6199 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6200 * target.c (debug_to_rcmd, default_rcmd): Update.
6201 * target-delegates.c: Rebuild.
6202 * remote.c (remote_rcmd): Update.
6203 * monitor.c (monitor_rcmd): Update.
6204
6205 2014-06-16 Pedro Alves <palves@redhat.com>
6206
6207 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6208 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6209 have OBJF_SHARED set.
6210 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6211 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6212 instead of OBJF_USERLOADED.
6213 * objfiles.h (OBJF_SHARED): Update comment.
6214 (userloaded_objfile_contains_address_p): Rename to ...
6215 (shared_objfile_contains_address_p): ... this, and update
6216 comments.
6217 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6218 new objfile.
6219 (remove_symbol_file_command): Skip objfiles that don't have
6220 OBJF_SHARED set.
6221
6222 2014-06-16 Tom Tromey <tromey@redhat.com>
6223
6224 * minsyms.h (prim_record_minimal_symbol)
6225 (prim_record_minimal_symbol_and_info): Update comments.
6226
6227 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6228
6229 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6230 or --without-guile, according to how GDB was built.
6231
6232 2014-06-13 Tom Tromey <tromey@redhat.com>
6233
6234 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6235 to help_list.
6236 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6237 to help_list.
6238 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6239 help_list.
6240 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6241 help_list.Pass all_commands, not -1, to help_list.
6242 * cli/cli-dump.c (dump_command, append_command)
6243 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6244 (binary_dump_command, binary_append_command): Pass all_commands,
6245 not -1, to help_list.
6246 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6247 -1, to help_list.
6248 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6249 -1, to help_list.
6250 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6251 help_list.
6252 * top.c (set_history): Pass all_commands, not -1, to help_list.
6253 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6254 all_commands, not -1, to help_list.
6255 * symfile.c (overlay_command): Pass all_commands, not -1, to
6256 help_list.
6257 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6258 help_list.
6259 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6260 help_list.
6261 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6262 -1, to help_list.
6263 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6264 not -1, to help_list.
6265 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6266 not -1, to help_list.
6267 * maint.c (maintenance_command, maintenance_info_command)
6268 (maintenance_print_command, maintenance_set_cmd): Pass
6269 all_commands, not -1, to help_list.
6270 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6271 help_list.
6272 * language.c (set_check): Pass all_commands, not -1, to help_list.
6273 * infcmd.c (unset_command): Pass all_commands, not -1, to
6274 help_list.
6275 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6276 help_list.
6277 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6278 help_list.
6279 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6280 help_list.
6281 * breakpoint.c (save_command): Pass all_commands, not -1, to
6282 help_list.
6283 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6284 all_commands, not -1, to help_list.
6285
6286 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6287
6288 * regcache.c (struct register_to_invalidate): New structure.
6289 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6290 functions.
6291 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6292
6293 2014-06-12 Yao Qi <yao@codesourcery.com>
6294
6295 * varobj.c (varobj_get_num_children): Call
6296 varobj_is_dynamic_p.
6297 (varobj_list_children): Likewise.
6298 (varobj_update): Likewise. Update comments.
6299
6300 2014-06-12 Yao Qi <yao@codesourcery.com>
6301
6302 * varobj.c (varobj_pretty_printed_p): Rename to ...
6303 (varobj_is_dynamic_p): ... this. New function.
6304 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6305 (varobj_is_dynamic_p): Declare.
6306 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6307 (mi_print_value_p, varobj_update_one): Likewise.
6308
6309 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6310 Yao Qi <yao@codesourcery.com>
6311
6312 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6313 (varobj_get_iterator): Wrap up code for pretty-printer by
6314 "#if HAVE_PYTHON" and "#endif".
6315 (update_dynamic_varobj_children): Likewise.
6316
6317 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6318 Yao Qi <yao@codesourcery.com>
6319
6320 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6321 gdb_python_initialized is false. Move some code from varobj.c.
6322 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6323 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6324 (struct varobj_item): Moved to varobj-iter.h".
6325 (varobj_clear_saved_item): New function.
6326 (update_dynamic_varobj_children): Move python-related code to
6327 py-varobj.c.
6328 (free_variable): Call varobj_clear_saved_item and
6329 varobj_iter_delete.
6330
6331 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6332 Yao Qi <yao@codesourcery.com>
6333
6334 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6335 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6336 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6337 (py-varobj.o): New rule.
6338 * python/py-varobj.c: New file.
6339 * python/python-internal.h (py_varobj_get_iterator): Declare.
6340 * varobj-iter.h: New file.
6341 * varobj.c: Include "varobj-iter.h"
6342 (struct varobj) <child_iter>: Change its type from "PyObject *"
6343 to "struct varobj_iter *".
6344 <saved_item>: Likewise.
6345 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6346 [HAVE_PYTHON] (varobj_get_iterator): New function.
6347 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6348 python-specific code to python/py-varobj.c.
6349 (install_visualizer): Call varobj_iter_delete instead of
6350 Py_XDECREF.
6351 * varobj.h (varobj_ensure_python_env): Declare.
6352
6353 2014-06-12 Yao Qi <yao@codesourcery.com>
6354
6355 * varobj.c (struct varobj_item): New structure.
6356 (create_child_with_value): Update declaration.
6357 (varobj_add_child): Replace arguments 'name' and 'value' with
6358 'item'. All callers updated.
6359 (install_dynamic_child): Likewise.
6360 (update_dynamic_varobj_children): Likewise.
6361 (varobj_add_child): Likewise.
6362 (create_child_with_value): Likewise.
6363
6364 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6365
6366 * NEWS: Create a new section for the next release branch.
6367 Rename the section of the current branch, now that it has
6368 been cut.
6369
6370 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6371
6372 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6373 * version.in: Bump version to 7.8.50.DATE-cvs.
6374
6375 2014-06-11 Pedro Alves <palves@redhat.com>
6376
6377 PR remote/17028
6378 * ser-mingw.c (net_windows_socket_check_pending): New function.
6379 (net_windows_select_thread): Ignore spurious wakeups. Use
6380 net_windows_socket_check_pending.
6381 (net_windows_wait_handle): Check for pending events with
6382 ioctlsocket, through net_windows_socket_check_pending, instead of
6383 checking the socket's event.
6384
6385 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6386
6387 * python/python-internal.h (gdb_PyObject_GetAttrString)
6388 (gdb_PyObject_HasAttrString): New inline function definitions.
6389 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6390 char * of the second argument to PyObject_GetAttrString.
6391
6392 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6393
6394 * serial.c (serial_write): Fix index of character to be printed
6395 in call to serial_logchar when serial debug traces are enabled.
6396
6397 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6398
6399 * gdbtypes (resolve_dynamic_range): Add function description.
6400
6401 2014-06-09 Pedro Alves <palves@redhat.com>
6402
6403 * linux-nat.c (linux_child_follow_fork): Initialize status with
6404 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6405 inner block. Only pass the signal to PTRACE_DETACH if in pass
6406 state.
6407
6408 2014-06-09 Gary Benson <gbenson@redhat.com>
6409
6410 * common/signals.c (gdb_signal_from_host): Reorder to separate
6411 the always-available ANSI-standard signals from the signals that
6412 require checking.
6413 (do_gdb_signal_to_host): Likewise.
6414 * proc-events.c (signal_table): Likewise.
6415
6416 2014-06-08 Hui Zhu <hui@codesourcery.com>
6417
6418 * common/linux-ptrace.c (linux_disable_event_reporting): New
6419 function.
6420 * common/linux-ptrace.h (linux_disable_event_reporting): New
6421 declaration.
6422 * linux-nat.c (linux_child_follow_fork): Do a single step before
6423 detach.
6424
6425 2014-06-07 Keith Seitz <keiths@redhat.com>
6426
6427 Revert:
6428 PR c++/16253
6429 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6430 from symbol_matches_domain in symtab.c. All local callers
6431 of symbol_matches_domain updated.
6432 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6433 search STRUCT_DOMAIN.
6434 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6435 independently. standard_lookup will do that automatically.
6436 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6437 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6438 (cp_lookup_symbol_in_namespace): Likewise.
6439 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6440 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6441 may return a STRUCT_DOMAIN match.
6442 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6443 * cp-support.c: Include language.h.
6444 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6445 VAR_DOMAIN.
6446 * psymtab.c (match_partial_symbol): Compare the requested
6447 domain with the symbol's domain directly.
6448 (lookup_partial_symbol): Likewise.
6449 * symtab.c (lookup_symbol_in_language): Explain when/why
6450 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6451 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6452 appropriate languages.
6453 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6454 and moved to ada-lang.c
6455 (lookup_block_symbol): Explain that this function only returns
6456 symbol matching the requested DOMAIN.
6457 Compare the requested domain with the symbol's domain directly.
6458 (iterate_over_symbols): Compare the requested domain with the
6459 symbol's domain directly.
6460 * symtab.h (symbol_matches_domain): Remove.
6461
6462 2014-06-06 Doug Evans <xdje42@gmail.com>
6463
6464 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6465 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6466 (gdbscm_guile_version_is_at_least): Declare.
6467 (gdbscm_scm_string_to_int): Declare.
6468 * guile/guile.c (gdbscm_guile_major_version): New global.
6469 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6470 (guile_datadir): New static global.
6471 (gdbscm_guile_data_directory): New function.
6472 (initialize_scheme_side): Update.
6473 (misc_guile_functions): Add guile-data-directory.
6474 (initialize_gdb_module): Fetch guile version number.
6475 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6476 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6477 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6478 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6479 comments.
6480 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6481 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6482 * guile/scm-value.c (gdbscm_value_to_string): Only call
6483 scm_port_conversion_strategy if Guile version >= 2.0.6.
6484
6485 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6486
6487 * main.c (print_gdb_help): Add -q and --silent.
6488
6489 2014-06-06 Gary Benson <gbenson@redhat.com>
6490
6491 * common/signals.c: Remove preprocessor conditionals for
6492 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6493 SIGSEGV and SIGTERM.
6494 * proc-events.c: Likewise.
6495
6496 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6497
6498 * symfile.c (symfile_free_objfile): Remove restriction to
6499 OBJF_USERLOADED.
6500 * symfile-mem.c (symbol_file_add_from_memory): Call
6501 add_target_sections_of_objfile.
6502
6503 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6504
6505 * guile/scm-value.c (gdbscm_history_append_x): Use
6506 'vlscm_get_value_smob_arg_unsafe' instead of
6507 'vlscm_scm_to_value'.
6508
6509 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 PR mi/15806
6512 * utils.c (printchar): Don't escape at all if quoter is NUL.
6513 Update function documentation to clarify effect of parameter
6514 QUOTER.
6515 * remote.c (escape_buffer): Pass '\\' as the quoter to
6516 fputstrn_unfiltered.
6517 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6518 generate the output.
6519 (mi_solib_unloaded): Same.
6520
6521 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6522
6523 * development.sh: Delete.
6524 * Makefile.in (config.status): Adjust dependency on development.sh.
6525 * configure.ac: Adjust development.sh source call.
6526 * configure: Regenerate.
6527
6528 2014-06-04 Doug Evans <xdje42@gmail.com>
6529
6530 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6531 is_scheme_bkpt, spec.
6532 (bpscm_make_breakpoint_smob): Initialize new members.
6533 (gdbscm_create_breakpoint_x): Split into two ...
6534 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6535 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6536 (scheme_function breakpoint_functions): Update.
6537 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6538 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6539 register-breakpoint!.
6540
6541 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6542
6543 PR server/17023
6544 * mem-break.c (z_type_supported): Return zero if
6545 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6546
6547 2014-06-04 Tom Tromey <tromey@redhat.com>
6548
6549 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6550 value_from_contents_and_address_unresolved.
6551 (ada_template_to_fixed_record_type_1): Likewise.
6552 (ada_which_variant_applies): Likewise.
6553 * value.h (value_from_contents_and_address_unresolved): Declare.
6554 * value.c (value_from_contents_and_address_unresolved): New
6555 function.
6556 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6557 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6558 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6559
6560 2014-06-04 Tom Tromey <tromey@redhat.com>
6561
6562 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6563
6564 2014-06-04 Tom Tromey <tromey@redhat.com>
6565
6566 * procfs.c (procfs_attach): Make "args" const.
6567 * windows-nat.c (windows_attach): Make "args" const.
6568 * nto-procfs.c (procfs_attach): Make "args" const.
6569 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6570 * go32-nat.c (go32_attach): Make "args" const.
6571 * gnu-nat.c (gnu_attach): Make "args" const.
6572 * darwin-nat.c (darwin_attach): Make "args" const.
6573 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6574 * linux-nat.c (linux_nat_attach): Make "args" const.
6575 * remote.c (extended_remote_attach_1, extended_remote_attach):
6576 Make "args" const.
6577 * target.h (struct target_ops) <to_attach>: Make "args" const.
6578 (find_default_attach): Likewise.
6579 * utils.c (parse_pid_to_attach): Make "args" const.
6580 * utils.h (parse_pid_to_attach): Update.
6581
6582 2014-06-04 Tom Tromey <tromey@redhat.com>
6583
6584 * target-delegates.c: Rebuild.
6585 * target.c (default_thread_address_space): New function.
6586 (target_thread_address_space): Simplify.
6587 * target.h (struct target_ops) <to_thread_address_space>: Add
6588 TARGET_DEFAULT_FUNC.
6589
6590 2014-06-04 Doug Evans <xdje42@gmail.com>
6591
6592 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6593
6594 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6595
6596 * record-btrace.c: Include event-loop.h and inf-loop.h.
6597 (record_btrace_resume_exec_dir)
6598 (record_btrace_async_inferior_event_handler)
6599 (record_btrace_handle_async_inferior_event): New.
6600 (record_btrace_open): Create async event handler.
6601 (record_btrace_close): Delete async event handler.
6602 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6603 Mark async event handler.
6604 (record_btrace_execution_direction): New.
6605 (init_record_btrace_ops): Initialize to_execution_direction.
6606
6607 2014-06-03 Doug Evans <xdje42@gmail.com>
6608
6609 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6610 (gdbscm_make_parameter): Ditto.
6611
6612 2014-06-03 Doug Evans <dje@google.com>
6613
6614 * exec.c (exec_close_1): Call clear_section_table instead of
6615 resize_section_table.
6616 (clear_section_table): New function.
6617 (resize_section_table): Make static. Rename arg num_added to
6618 adjustment.
6619 * exec.h (clear_section_table): Declare.
6620 (resize_section_table): Delete.
6621 * progspace.c (release_program_space): Call clear_section_table
6622 instead of resize_section_table.
6623
6624 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6625
6626 * NEWS (Python Scripting): Add entry about the new xmethods
6627 feature.
6628
6629 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6630
6631 * python/py-xmethods.c: New file.
6632 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6633 (objfpy_dealloc): XDECREF on the new xmethods field.
6634 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6635 field.
6636 (objfpy_get_xmethods): New function.
6637 (objfile_getset): New entry 'xmethods'.
6638 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6639 (pspy_dealloc): XDECREF on the new xmethods field.
6640 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6641 field.
6642 (pspy_get_xmethods): New function.
6643 (pspace_getset): New entry 'xmethods'.
6644 * python/python-internal.h: Add declarations for new functions.
6645 * python/python.c (_initialize_python): Invoke
6646 gdbpy_initialize_xmethods.
6647 * python/lib/gdb/__init__.py (xmethods): New
6648 attribute.
6649 * python/lib/gdb/xmethod.py: New file.
6650 * python/lib/gdb/command/xmethods.py: New file.
6651
6652 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6653
6654 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6655 best match method returned by find_overload_match is an xmethod.
6656 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6657 the best matching operator returned by find_overload_match is an
6658 xmethod.
6659 * valops.c: #include "extension.h".
6660 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6661 Return void. The list of matching source methods is returned in
6662 "fn_list" and a vector of matching debug method workers is
6663 returned in "xm_worker_vec". Update all callers.
6664 (value_find_oload_method_list): Likewise.
6665 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6666 non-NULL, then the index of the best matching method in this
6667 vector is returned. Update all callers.
6668 (find_overload_match): Include xmethods while performing overload
6669 resolution.
6670
6671 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6672
6673 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6674 * extension-priv.h (struct extension_language_ops): Add the
6675 xmethod interface.
6676 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6677 get_matching_xmethod_workers, get_xmethod_argtypes,
6678 invoke_xmethod, free_xmethod_worker,
6679 free_xmethod_worker_vec): New functions.
6680 * extension.h: #include "common/vec.h".
6681 New function declarations.
6682 (struct xmethod_worker): New struct.
6683 (VEC (xmethod_worker_ptr)): New vector type.
6684 (xmethod_worker_ptr): New typedef.
6685 (xmethod_worker_vec): Likewise.
6686 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6687 builtin_type.
6688 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6689 (struct builtin_type): New field "xmethod".
6690 * valarith.c (value_ptradd): Assert that the value argument is not
6691 lval_xcallable.
6692 * valops.c (value_must_coerce_to_target): Return 0 for
6693 lval_xcallable values.
6694 * value.c (struct value): New field XM_WORKER in the field
6695 LOCATION.
6696 (value_address, value_raw_address): Return 0 for lval_xcallable
6697 values.
6698 (set_value_address): Assert that the value is not an
6699 lval_xcallable.
6700 (value_free): Free the associated xmethod worker when freeing
6701 lval_xcallable values.
6702 (set_value_component_location): Assert that the WHOLE value is not
6703 lval_xcallable.
6704 (value_of_xmethod, call_xmethod): New functions.
6705 * value.h: Declare "struct xmethod_worker".
6706 Declare new functions value_of_xmethod, call_xmethod.
6707
6708 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6709 Pedro Alves <palves@redhat.com>
6710
6711 PR breakpoints/17000
6712 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6713 New function, extracted from software_breakpoint_inserted_here_p.
6714 (software_breakpoint_inserted_here_p): Replace factored out code
6715 by call to find_non_raw_software_breakpoint_inserted_here.
6716 (bp_target_info_copy_insertion_state): New function.
6717 (bkpt_insert_location): Handle the case of a single-step
6718 breakpoint already inserted at the same address.
6719 (bkpt_remove_location): Handle the case of a single-step
6720 breakpoint still inserted at the same address.
6721 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6722 breakpoint already inserted at the same address.
6723 (deprecated_remove_raw_breakpoint): Handle the case of a
6724 non-raw breakpoint still inserted at the same address.
6725 (find_single_step_breakpoint): New function, extracted from
6726 single_step_breakpoint_inserted_here_p.
6727 (find_single_step_breakpoint): New function,
6728 factored out from single_step_breakpoint_inserted_here_p.
6729 (single_step_breakpoint_inserted_here_p): Reimplement.
6730
6731 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6732
6733 Pushed by Joel Brobecker <brobecker@adacore.com>
6734 * source.c (show_substitute_path_command): Fix display of matching
6735 substitution rules.
6736
6737 2014-06-03 Gary Benson <gbenson@redhat.com>
6738
6739 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6740
6741 2014-06-02 Doug Evans <xdje42@gmail.com>
6742
6743 Add parameter support for Guile.
6744 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6745 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6746 (scm-param.o): New rule.
6747 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6748 (gdbscm_misc_error): Declare.
6749 (gdbscm_canonicalize_command_name): Declare.
6750 (gdbscm_scm_to_host_string): Declare.
6751 (gdbscm_scm_from_host_string): Declare.
6752 (gdbscm_initialize_parameters): Declare.
6753 * guile/guile.c (initialize_gdb_module): Call
6754 gdbscm_initialize_parameters.
6755 * guile/lib/gdb.scm: Export parameter symbols.
6756 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6757 cmdscm_canonicalize_name and made public. All callers updated.
6758 * guile/scm-exception.c (gdbscm_misc_error): New function.
6759 * guile/scm-param.c: New file.
6760 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6761 (gdbscm_scm_to_host_string): New function.
6762 (gdbscm_scm_from_host_string): New function.
6763 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6764
6765 2014-06-02 Doug Evans <xdje42@gmail.com>
6766
6767 Add command support for Guile.
6768 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6769 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6770 (scm-cmd.o): New rule.
6771 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6772 (gdbscm_user_error_p): Declare.
6773 (gdbscm_parse_command_name): Declare.
6774 (gdbscm_valid_command_class_p): Declare.
6775 (gdbscm_initialize_commands): Declare.
6776 * guile/guile.c (initialize_gdb_module): Call
6777 gdbscm_initialize_commands.
6778 * guile/lib/gdb.scm: Export command symbols.
6779 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6780 (throw-user-error): New function.
6781 * guile/scm-cmd.c: New file.
6782 * guile/scm-exception.c (user_error_symbol): New static global.
6783 (gdbscm_user_error_p): New function.
6784 (gdbscm_initialize_exceptions): Set user_error_symbol.
6785 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6786
6787 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6788
6789 * top.c (command_loop): Handle comments here...
6790 (command_line_input): ... not here.
6791
6792 2014-06-02 Doug Evans <xdje42@gmail.com>
6793
6794 Add progspace support for Guile.
6795 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6796 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6797 (scm-progspace.o): New rule.
6798 * guile/guile-internal.h (pspace_smob): New typedef.
6799 (psscm_pspace_smob_pretty_printers): Declare.
6800 (psscm_pspace_smob_from_pspace): Declare.
6801 (psscm_scm_from_pspace): Declare.
6802 * guile/guile.c (initialize_gdb_module): Call
6803 gdbscm_initialize_pspaces.
6804 * guile/lib/gdb.scm: Export progspace symbols.
6805 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6806 support.
6807 (append-pretty-printer!): Ditto.
6808 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6809 Implement.
6810 * guile/scm-progspace.c: New file.
6811
6812 2014-06-03 Alan Modra <amodra@gmail.com>
6813
6814 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6815 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6816
6817 2014-06-02 Doug Evans <dje@google.com>
6818
6819 Add support for skeletonless type units.
6820 * dwarf2read.c (struct dwarf2_per_objfile): New member
6821 n_allocated_type_units.
6822 (struct dwarf2_per_objfile) <tu_stats>: New member
6823 nr_all_type_units_reallocs.
6824 (create_signatured_type_table_from_index): Initialize
6825 n_allocated_type_units
6826 (create_all_type_units): Ditto.
6827 (add_type_unit): Move up in file. New arg slot.
6828 All callers updated. Increase space for all_type_units more
6829 efficiently.
6830 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6831 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6832 (lookup_dwp_signatured_type): Ditto.
6833 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6834 All callers updated.
6835 (build_type_psymtabs_1): Leave type_unit_groups as
6836 NULL if no TUs present.
6837 (print_tu_stats): New function.
6838 (process_skeletonless_type_unit): New function.
6839 (process_dwo_file_for_skeletonless_type_units): New
6840 function.
6841 (process_skeletonless_type_units): New function.
6842 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6843 Call print tu_stats if debugging enabled.
6844
6845 2014-06-02 Pedro Alves <palves@redhat.com>
6846
6847 * breakpoint.c (build_target_command_list): Don't build a command
6848 list if we have any duplicate location that isn't a dprintf.
6849
6850 2014-06-02 Pedro Alves <palves@redhat.com>
6851
6852 * breakpoint.c (dprintf_breakpoint_hit): New function.
6853 (initialize_breakpoint_ops): Install it as dprintf's
6854 breakpoint_hit method.
6855
6856 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6857
6858 * source.c (substitute_path_rule_matches): Simplify using
6859 filename_ncmp instead of FILENAME_CMP.
6860
6861 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6862
6863 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6864
6865 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6866
6867 * configure.ac: When Guile is available, check for the
6868 availability of 'scm_new_smob'.
6869 * configure, config.h.in: Regenerate.
6870 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6871 function.
6872
6873 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6874
6875 * frame.c (struct frame_info): Add stop_string field.
6876 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6877 (get_prev_frame_always): Old content moved into
6878 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6879 TRY_CATCH, handle MEMORY_ERROR exceptions.
6880 (frame_stop_reason_string): New function definition.
6881 * frame.h (unwind_stop_reason_to_string): Extend comment to
6882 mention frame_stop_reason_string.
6883 (frame_stop_reason_string): New function declaration.
6884 * stack.c (frame_info): Switch to frame_stop_reason_string.
6885 (backtrace_command_1): Switch to frame_stop_reason_string.
6886 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6887 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6888 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6889
6890 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6891
6892 * frame.c (frame_stop_reason_string): Rename to ...
6893 (unwind_stop_reason_to_string): this.
6894 * frame.h (frame_stop_reason_string): Rename to ...
6895 (unwind_stop_reason_to_string): this.
6896 * stack.c (frame_info): Update call to frame_stop_reason_string.
6897 (backtrace_command_1): Likewise.
6898 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6899 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6900
6901 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6902
6903 * frame.c (remove_prev_frame): New function.
6904 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6905 remove_prev_frame.
6906
6907 2014-05-29 Pedro Alves <palves@redhat.com>
6908
6909 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6910 and make it const. When a single-step decays to a continue,
6911 clear 'step', not 'hw_step'. Pass whether the caller wanted
6912 to step to user_visible_resume_ptid, not what we ask the
6913 target to do.
6914
6915 2014-05-29 Pedro Alves <palves@redhat.com>
6916
6917 * infrun.c (process_event_stop_test, handle_step_into_function)
6918 (handle_step_into_function_backward): Adjust.
6919 Don't set the even thread's stop_step and call stop_waiting before
6920 calling end_stepping_range. Instead do that ...
6921 (end_stepping_range): ... here. Take an ecs pointer parameter.
6922
6923 2014-05-29 Pedro Alves <palves@redhat.com>
6924
6925 * infrun.c (stop_stepping): Rename to ...
6926 (stop_waiting): ... this.
6927 (proceed): Update comment.
6928 (process_event_stop_test, handle_inferior_event)
6929 (handle_signal_stop, handle_step_into_function)
6930 (handle_step_into_function_backward): Update.
6931
6932 2014-05-29 Pedro Alves <palves@redhat.com>
6933
6934 * infcall.c (run_inferior_call): Don't check whether the current
6935 thread is running after the proceed call.
6936
6937 2014-05-29 Pedro Alves <palves@redhat.com>
6938 Tom Tromey <tromey@redhat.com>
6939
6940 * NEWS: Mention "maint set target-async", "set mi-async", and that
6941 background execution commands are now always available.
6942 * target.h (target_async_permitted): Update comment.
6943 * target.c (target_async_permitted, target_async_permitted_1):
6944 Default to 1.
6945 (set_target_async_command): Rename to ...
6946 (maint_set_target_async_command): ... this.
6947 (show_target_async_command): Rename to ...
6948 (maint_show_target_async_command): ... this.
6949 (_initialize_target): Adjust.
6950 * infcmd.c (prepare_execution_command): Make extern.
6951 * inferior.h (prepare_execution_command): Declare.
6952 * infrun.c (set_observer_mode): Leave target async alone.
6953 * mi/mi-interp.c (mi_interpreter_init): Install
6954 mi_on_sync_execution_done as sync_execution_done observer.
6955 (mi_on_sync_execution_done): New function.
6956 (mi_execute_command_input_handler): Don't print the prompt if we
6957 just started a synchronous command with an async target.
6958 (mi_on_resume): Check sync_execution before printing prompt.
6959 * mi/mi-main.h (mi_async_p): Declare.
6960 * mi/mi-main.c: Include gdbcmd.h.
6961 (mi_async_p): New function.
6962 (mi_async, mi_async_1): New globals.
6963 (set_mi_async_command, show_mi_async_command, mi_async): New
6964 functions.
6965 (exec_continue): Call prepare_execution_command.
6966 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6967 (mi_execute_async_cli_command): Use mi_async_p.
6968 (_initialize_mi_main): Install "set mi-async". Make
6969 "target-async" a deprecated alias.
6970
6971 2014-05-29 Pedro Alves <palves@redhat.com>
6972
6973 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6974 (_initialize_cli_interp): Adjust.
6975 * event-loop.c: Include "observer.h".
6976 (start_event_loop): Notify 'command_error' observers instead of
6977 calling display_gdb_prompt. Remove FIXME comment.
6978 * event-top.c (display_gdb_prompt): Remove call into the
6979 interpreters.
6980 * inf-loop.c: Include "observer.h".
6981 (inferior_event_handler): Notify 'command_error' observers instead
6982 of calling display_gdb_prompt.
6983 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6984 observers instead of calling display_gdb_prompt.
6985 * interps.c (interp_set): Don't call display_gdb_prompt.
6986 (current_interp_display_prompt_p): Delete.
6987 * interps.h (interp_prompt_p): Delete declaration.
6988 (interp_prompt_p_ftype): Delete.
6989 (struct interp_procs) <prompt_proc_p>: Delete field.
6990 (current_interp_display_prompt_p): Delete declaration.
6991 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6992 (_initialize_mi_interp): Adjust.
6993 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6994 'command_error' observers.
6995 (tui_on_sync_execution_done, tui_on_command_error): New
6996 functions.
6997 (tui_display_prompt_p): Delete.
6998 (_initialize_tui_interp): Adjust.
6999
7000 2014-05-29 Pedro Alves <palves@redhat.com>
7001
7002 PR gdb/13860
7003 * cli/cli-interp.c: Include infrun.h and observer.h.
7004 (cli_uiout, cli_interp): New globals.
7005 (cli_on_signal_received, cli_on_end_stepping_range)
7006 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7007 functions.
7008 (cli_interpreter_init): Install them as 'end_stepping_range',
7009 'signal_received' 'signal_exited', 'exited' and 'no_history'
7010 observers.
7011 (_initialize_cli_interp): Remove cli_interp local.
7012 * infrun.c (handle_inferior_event): Call the several stop reason
7013 observers instead of printing the stop reason directly.
7014 (end_stepping_range): New function.
7015 (print_end_stepping_range_reason, print_signal_exited_reason)
7016 (print_exited_reason, print_signal_received_reason)
7017 (print_no_history_reason): Make static, and add an uiout
7018 parameter. Print to that instead of to CURRENT_UIOUT.
7019 * infrun.h (print_end_stepping_range_reason)
7020 (print_signal_exited_reason, print_exited_reason)
7021 (print_signal_received_reason print_no_history_reason): New
7022 declarations.
7023 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7024 'mi_uiout'.
7025 <cli_uiout>: New field.
7026 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7027 uiout for CLI output. Install 'signal_received',
7028 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7029 observers.
7030 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7031 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7032 (mi_on_no_history): New functions.
7033 (ui_out_free_cleanup): Delete function.
7034 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7035 instead use the one already stored in the MI interpreter data.
7036 (mi_ui_out): Adjust.
7037 * tui/tui-interp.c: Include infrun.h and observer.h.
7038 (tui_interp): New global.
7039 (tui_on_signal_received, tui_on_end_stepping_range)
7040 (tui_on_signal_exited, tui_on_exited)
7041 (tui_on_no_history): New functions.
7042 (tui_init): Install them as 'end_stepping_range',
7043 'signal_received' 'signal_exited', 'exited' and 'no_history'
7044 observers.
7045 (_initialize_tui_interp): Delete tui_interp local.
7046
7047 2014-05-29 Pedro Alves <palves@redhat.com>
7048
7049 PR gdb/15713
7050 * linux-nat.c (linux_nat_resume_callback): Rename the second
7051 parameter to 'except'. Skip LP if it points to EXCEPT.
7052 (linux_nat_resume): Don't mark the event lwp as not stopped
7053 before resuming sibling lwps. Instead ask
7054 linux_nat_resume_callback to skip the event lwp. Mark it as not
7055 stopped after actually resuming it.
7056 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7057 resuming it.
7058 (wait_lwp): Mark the lwp as stopped here.
7059 (stop_wait_callback): Mark the lwp as not stopped right after
7060 resuming it. Don't mark lwps as stopped here.
7061 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7062 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7063
7064 2014-05-29 Pedro Alves <palves@redhat.com>
7065
7066 PR PR15693
7067 * infrun.c (resume): Determine how much to resume depending on
7068 whether the caller wanted a step, not whether we can hardware step
7069 the target. Mark all threads that we intend to run as running,
7070 unless we're calling an inferior function.
7071 (normal_stop): If the thread is running an infcall, don't finish
7072 thread state.
7073 * target.c (target_resume): Don't mark threads as running here.
7074
7075 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7076
7077 * serial.c (_initialize_serial): Remove support for
7078 the "set remotebaud" and "show remotebaud" commands.
7079 * NEWS: Add entry documenting the removal of that command.
7080
7081 2014-05-28 Yao Qi <yao@codesourcery.com>
7082
7083 * charset.c: Fix typo in comments.
7084
7085 2014-05-27 Gary Benson <gbenson@redhat.com>
7086
7087 * utils.c (internal_vproblem): Prompt for a bug report.
7088
7089 2014-05-26 Andy Wingo <wingo@igalia.com>
7090
7091 * guile/scm-arch.c (arscm_mark_arch_smob):
7092 * guile/scm-block.c (bkscm_mark_block_smob)
7093 (bkscm_mark_block_syms_progress_smob):
7094 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7095 * guile/scm-exception.c (exscm_mark_exception_smob):
7096 * guile/scm-frame.c (frscm_mark_frame_smob):
7097 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7098 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7099 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7100 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7101 (ppscm_mark_pretty_printer_worker_smob):
7102 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7103 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7104 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7105 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7106 mark functions.
7107 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7108 function.
7109
7110 2014-05-26 Andy Wingo <wingo@igalia.com>
7111 Doug Evans <xdje42@gmail.com>
7112
7113 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7114 empty_base_class. All uses updated.
7115 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7116 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7117 Adapt all callers.
7118 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7119 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7120 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7121 (gdbscm_gsmob_has_property_p, add_property_name)
7122 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7123 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7124 (gdb-object-has-property?, gdb-object-properties): Remove.
7125 (gdb-object-kind): Renamed from gsmob-kind.
7126
7127 2014-05-26 Andy Wingo <wingo@igalia.com>
7128
7129 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7130 * configure: Regenerate.
7131
7132 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7133
7134 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7135
7136 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7137
7138 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7139 (replay_memory_access_read_only, replay_memory_access_read_write)
7140 (replay_memory_access_types, replay_memory_access)
7141 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7142 (cmd_set_record_btrace, cmd_show_record_btrace)
7143 (cmd_show_replay_memory_access): New.
7144 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7145 (record_btrace_remove_breakpoint): Replace
7146 record_btrace_allow_memory_access with replay_memory_access.
7147 (_initialize_record_btrace): Add commands.
7148 * NEWS: Announce it.
7149
7150 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7151
7152 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7153
7154 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7155
7156 * MAINTAINERS (Write After Approval): Move self back from
7157 paper trail.
7158
7159 2014-05-22 Pedro Alves <palves@redhat.com>
7160
7161 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7162 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7163 (disable_randomization, enum exec_direction_kind)
7164 (execution_direction, stop_registers, start_remote)
7165 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7166 (wait_for_inferior, normal_stop, get_last_target_status)
7167 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7168 (insert_step_resume_breakpoint_at_sal)
7169 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7170 (set_step_info, print_stop_event, signal_stop_state)
7171 (signal_print_state, signal_pass_state, signal_stop_update)
7172 (signal_print_update, signal_pass_update)
7173 (update_signals_program_target, clear_exit_convenience_vars)
7174 (displaced_step_dump_bytes, update_observer_mode)
7175 (signal_catch_update, gdb_signal_from_command): Move
7176 declarations ...
7177 * infrun.h: ... to this new file.
7178 * amd64-tdep.c: Include infrun.h.
7179 * annotate.c: Include infrun.h.
7180 * arch-utils.c: Include infrun.h.
7181 * arm-linux-tdep.c: Include infrun.h.
7182 * arm-tdep.c: Include infrun.h.
7183 * break-catch-sig.c: Include infrun.h.
7184 * breakpoint.c: Include infrun.h.
7185 * common/agent.c: Include infrun.h instead of inferior.h.
7186 * corelow.c: Include infrun.h.
7187 * event-top.c: Include infrun.h.
7188 * go32-nat.c: Include infrun.h.
7189 * i386-tdep.c: Include infrun.h.
7190 * inf-loop.c: Include infrun.h.
7191 * infcall.c: Include infrun.h.
7192 * infcmd.c: Include infrun.h.
7193 * infrun.c: Include infrun.h.
7194 * linux-fork.c: Include infrun.h.
7195 * linux-nat.c: Include infrun.h.
7196 * linux-thread-db.c: Include infrun.h.
7197 * monitor.c: Include infrun.h.
7198 * nto-tdep.c: Include infrun.h.
7199 * procfs.c: Include infrun.h.
7200 * record-btrace.c: Include infrun.h.
7201 * record-full.c: Include infrun.h.
7202 * remote-m32r-sdi.c: Include infrun.h.
7203 * remote-mips.c: Include infrun.h.
7204 * remote-notif.c: Include infrun.h.
7205 * remote-sim.c: Include infrun.h.
7206 * remote.c: Include infrun.h.
7207 * reverse.c: Include infrun.h.
7208 * rs6000-tdep.c: Include infrun.h.
7209 * s390-linux-tdep.c: Include infrun.h.
7210 * solib-irix.c: Include infrun.h.
7211 * solib-osf.c: Include infrun.h.
7212 * solib-svr4.c: Include infrun.h.
7213 * target.c: Include infrun.h.
7214 * top.c: Include infrun.h.
7215 * windows-nat.c: Include infrun.h.
7216 * mi/mi-interp.c: Include infrun.h.
7217 * mi/mi-main.c: Include infrun.h.
7218 * python/py-threadevent.c: Include infrun.h.
7219
7220 2014-05-22 Pedro Alves <palves@redhat.com>
7221
7222 * infrun.c (handle_inferior_event): Store the exit code for
7223 --return-child-result here, instead of ...
7224 (print_exited_reason): ... here.
7225
7226 2014-05-21 Pedro Alves <palves@redhat.com>
7227
7228 PR gdb/13860
7229 * gdbthread.h (struct thread_control_state): New field
7230 `command_interp'.
7231 * infrun.c (follow_fork): Copy the new thread control field to the
7232 child fork thread.
7233 (clear_proceed_status_thread): Clear the new thread control field.
7234 (proceed): Set the new thread control field.
7235 * interps.h (command_interp): Declare.
7236 * interps.c (command_interpreter): New global.
7237 (command_interp): New function.
7238 (interp_exec): Set `command_interpreter' while here.
7239 * cli-out.c (cli_uiout_dtor): New function.
7240 (cli_ui_out_impl): Install it.
7241 * mi/mi-interp.c: Include cli-out.h.
7242 (mi_cmd_interpreter_exec): Add comment.
7243 (restore_current_uiout_cleanup): New function.
7244 (ui_out_free_cleanup): New function.
7245 (mi_on_normal_stop): If finishing an execution command started by
7246 a CLI command, or any kind of breakpoint-like event triggered,
7247 print the stop event to the output (CLI) stream.
7248 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7249
7250 2014-05-21 Pedro Alves <palves@redhat.com>
7251
7252 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7253 current source line having changed.
7254 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7255 * infrun.c (normal_stop): Adjust call to
7256 set_current_sal_from_frame.
7257 * source.c (clear_lines_listed_range): New function.
7258 (set_current_source_symtab_and_line, identify_source_line): Clear
7259 the lines listed range.
7260 (line_info): Handle the first "info line" after the current source
7261 line having changed.
7262 * stack.c (print_stack_frame): Remove center handling.
7263 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7264 center sal.line.
7265
7266 2014-05-21 Pedro Alves <palves@redhat.com>
7267
7268 * inf-child.c (inf_child_mourn_inferior): New function.
7269 * inf-child.h (inf_child_mourn_inferior): New declaration.
7270 * darwin-nat.c (darwin_mourn_inferior): Use
7271 inf_child_mourn_inferior.
7272 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7273 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7274 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7275 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7276 * windows-nat.c (windows_mourn_inferior): Likewise.
7277
7278 2014-05-21 Doug Evans <xdje42@gmail.com>
7279
7280 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7281
7282 2014-05-21 Doug Evans <xdje42@gmail.com>
7283
7284 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7285 (gdbscm_out_of_range_error): Ditto.
7286 (gdbscm_memory_error): Ditto.
7287 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7288 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7289 (gdbscm_out_of_range_error): Update.
7290 (gdbscm_memory_error): Update.
7291 (gdbscm_scm_to_target_string_unsafe): Delete.
7292
7293 2014-05-21 Pedro Alves <palves@redhat.com>
7294
7295 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7296 globals.
7297 (inf_child_open_target): New function.
7298 (inf_child_open): Use inf_child_open_target to push the target
7299 instead of erroring out.
7300 (inf_child_disconnect, inf_child_close)
7301 (inf_child_maybe_unpush_target): New functions.
7302 (inf_child_target): Install inf_child_disconnect and
7303 inf_child_close. Store a pointer to the returned object.
7304 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7305 declarations.
7306 * target.c (auto_connect_native_target): New global.
7307 (show_default_run_target): New function.
7308 (find_default_run_target): Return NULL if automatically connecting
7309 to the native target is disabled.
7310 (_initialize_target): Install set/show auto-connect-native-target.
7311 * NEWS: Mention "set auto-connect-native-target", and "target
7312 native".
7313 * linux-nat.c (super_close): New global.
7314 (linux_nat_close): Call super_close.
7315 (linux_nat_add_target): Store a pointer to the base class's
7316 to_close method.
7317 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7318 inf_child_maybe_unpush.
7319 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7320 already pushed.
7321 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7322 the inferior. Use inf_child_maybe_unpush_target.
7323 (inf_ttrace_attach): Don't push the target if it is already
7324 pushed.
7325 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7326 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7327 after mourning the inferior. Use inf_child_maybe_unpush_target.
7328 (darwin_attach_pid): Don't push the target if it is already
7329 pushed.
7330 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7331 mourning the inferior. Use inf_child_maybe_unpush_target.
7332 (gnu_detach): Use inf_child_maybe_unpush_target.
7333 * go32-nat.c (go32_create_inferior): Don't push the target if it
7334 is already pushed.
7335 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7336 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7337 (procfs_open): Rename to ...
7338 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7339 comments. Can target_preopen before changing node. Call
7340 inf_child_open_target to push the target explicitly.
7341 (procfs_attach): Don't push the target if it is already pushed.
7342 (procfs_detach): Use inf_child_maybe_unpush_target.
7343 (procfs_create_inferior): Don't push the target if it is already
7344 pushed.
7345 (nto_native_ops): New global.
7346 (procfs_open): Reimplement.
7347 (procfs_native_open): New function.
7348 (init_procfs_targets): Install procfs_native_open as to_open of
7349 "target native". Store a pointer to the "native" target in
7350 nto_native_ops.
7351 * procfs.c (procfs_attach): Don't push the target if it is already
7352 pushed.
7353 (procfs_detach): Use inf_child_maybe_unpush_target.
7354 (procfs_mourn_inferior): Only unpush the target after mourning the
7355 inferior. Use inf_child_maybe_unpush_target.
7356 (procfs_init_inferior): Don't push the target if it is already
7357 pushed.
7358 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7359 if it is already pushed.
7360
7361 2014-05-21 Pedro Alves <palves@redhat.com>
7362
7363 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7364 and "procfs" targets are now called "native" instead.
7365
7366 2014-05-21 Pedro Alves <palves@redhat.com>
7367
7368 * go32-nat.c (go32_open): Delete.
7369 (go32_target): Don't override the to_open method.
7370
7371 2014-05-21 Pedro Alves <palves@redhat.com>
7372
7373 * nto-procfs.c (procfs_can_run): New function.
7374 (nto_procfs_ops): New global.
7375 (init_procfs_targets): New, based on procfs_target. Install
7376 "target native" in addition to "target procfs".
7377 (_initialize_procfs): Call init_procfs_targets instead of adding
7378 the target here.
7379
7380 2014-05-21 Pedro Alves <palves@redhat.com>
7381
7382 * windows-nat.c (windows_target): Don't override to_shortname,
7383 to_longname or to_doc.
7384
7385 2014-05-21 Pedro Alves <palves@redhat.com>
7386
7387 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7388 to_doc.
7389
7390 2014-05-21 Pedro Alves <palves@redhat.com>
7391
7392 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7393 to_shortname, to_longname or to_doc.
7394
7395 2014-05-21 Pedro Alves <palves@redhat.com>
7396
7397 * go32-nat.c (go32_target): Don't override to_shortname,
7398 to_longname or to_doc.
7399
7400 2014-05-21 Pedro Alves <palves@redhat.com>
7401
7402 * inf-child.c (inf_child_open): Remove mention of "child".
7403 (inf_child_target): Rename target to "native" instead of "child".
7404
7405 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7406
7407 * Makefile.in (SFILES): Delete "regset.c".
7408 (COMMON_OBS): Delete "regset.o".
7409 * regset.c: Remove.
7410 * regset.h (regset_alloc): Delete prototype.
7411
7412 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7413
7414 * sparc-linux-tdep.c (sparc32_linux_gregset)
7415 (sparc32_linux_fpregset): New static regset structures.
7416 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7417 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7418 'fpregset' fields.
7419 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7420 (sparc64_linux_fpregset): New static regset structures.
7421 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7422 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7423 New static regset structures.
7424 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7425 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7426 New static regset structures.
7427 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7428 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7429 New static regset structures.
7430 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7431 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7432 New static regset structures.
7433 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7434
7435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7436
7437 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7438 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7439 register maps ("regmaps") from "*regset" to "*regmap". Do this
7440 for all regmap types and variables.
7441 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7442 (sparc32_linux_supply_core_gregset)
7443 (sparc32_linux_collect_core_gregset)
7444 (sparc32_linux_supply_core_fpregset)
7445 (sparc32_linux_collect_core_fpregset): Likewise.
7446 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7447 (sparc_gregmap, sparc_fpregmap): ... these.
7448 (sparc_supply_gregset, sparc_collect_gregset)
7449 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7450 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7451 (_initialize_sparc_nat): Rename regmaps.
7452 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7453 (sparc_gregmap, sparc_fpregmap): ... these.
7454 (sparc_supply_gregset, sparc_collect_gregset)
7455 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7456 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7457 Rename macros to...
7458 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7459 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7460 Likewise.
7461 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7462 Rename to...
7463 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7464 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7465 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7466 regmaps.
7467 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7468 (sparc32_bsd_fpregset): Rename to...
7469 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7470 (sparc32_bsd_fpregmap): ... these.
7471 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7472 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7473 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7474 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7475 (struct sparc_gregmap, struct sparc_fpregmap)
7476 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7477 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7478 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7479 (sparc32_supply_regset, sparc32_collect_gregset)
7480 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7481 prototypes.
7482 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7483 (sparc64_linux_ptrace_gregmap): ... this.
7484 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7485 (_initialize_sparc64_linux_nat): Rename regmaps.
7486 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7487 (sparc64_linux_core_gregmap): ... this.
7488 (sparc64_linux_supply_core_gregset)
7489 (sparc64_linux_collect_core_gregset)
7490 (sparc64_linux_supply_core_fpregset)
7491 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7492 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7493 (sparc64_sol2_fpregset): Rename to...
7494 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7495 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7496 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7497 regmaps.
7498 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7499 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7500 (sparc64_bsd_fpregset): Rename to...
7501 (struct sparc_gregmap, sparc64_sol2_gregmap)
7502 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7503 (sparc64_bsd_fpregmap): ... these.
7504 (sparc64_supply_gregset, sparc64_collect_gregset)
7505 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7506 prototypes.
7507 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7508 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7509 (sparc64fbsd_gregmap): ... this.
7510 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7511 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7512 Rename regmaps.
7513 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7514 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7515 (sparc64nbsd_collect_fpregset): Likewise.
7516 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7517 (sparc64nbsd_gregmap): ... this.
7518 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7519 regmaps.
7520 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7521 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7522 (sparc64obsd_gregmap): ... this.
7523 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7524 regmaps.
7525 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7526 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7527 (sparc32nbsd_gregmap): ... this.
7528 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7529 regmaps.
7530
7531 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7532
7533 * score-tdep.c (score7_linux_gregset): New static regset
7534 structure.
7535 (score7_linux_regset_from_core_section): Remove dynamic regset
7536 allocation.
7537 (score_gdbarch_init): Drop allocation of tdep structure.
7538 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7539
7540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7541
7542 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7543 regset structures.
7544 (am33_regset_from_core_section): Remove dynamic regset
7545 allocations.
7546
7547 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7548
7549 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7550 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7551 structures.
7552 (mips_linux_regset_from_core_section): Remove dynamic regset
7553 allocations.
7554 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7555 'gregset64', 'fpregset', and 'fpregset64'.
7556 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7557 deleted tdep fields.
7558
7559 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7560
7561 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7562 regset structures.
7563 (amd64_regset_from_core_section): Remove dynamic regset
7564 allocations.
7565 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7566 structure.
7567 (amd64obsd_regset_from_core_section): Remove dynamic regset
7568 allocation.
7569 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7570 Likewise.
7571 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7572 x86-common regset supply function.
7573 * i386-tdep.c (i386_collect_gregset): Make static.
7574 (i386_gregset): New global regset structure.
7575 (i386_fpregset, i386_xstateregset): New static regset structures.
7576 (i386_regset_from_core_section): Remove dynamic regset
7577 allocations.
7578 (i386_gdbarch_init): Remove initialization of tdep fields
7579 'gregset', 'fpregset', and 'xstateregset'.
7580 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7581 'fpregset', and 'xstateregset'.
7582 (i386_collect_gregset): Remove prototype.
7583 (i386_gregset): New declaration.
7584 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7585 structure.
7586 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7587 allocation.
7588
7589 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7590
7591 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7592 (arm_linux_vfpregset): New static regset structures.
7593 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7594 regset structures.
7595 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7596 and 'vfpregset' fields.
7597
7598 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7599
7600 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7601 (aarch64_linux_fpregset): New static regset structures.
7602 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7603 of regset structures.
7604 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7605 'fpregset' fields.
7606
7607 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7608
7609 * regset.h (struct regset): Remove gdbarch field.
7610 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7611 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7612 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7613 Likewise.
7614 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7615 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7616 (ppc32_linux_vsxregset): Likewise.
7617 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7618 via the regcache instead of the regset.
7619 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7620 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7621 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7622 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7623 Likewise.
7624
7625 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7626
7627 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7628 Constify structures.
7629 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7630 (alphanbsd_aout_gregset): Likewise.
7631 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7632 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7633 Likewise.
7634 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7635 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7636 Likewise.
7637 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7638 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7639 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7640 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7641 * m88k-tdep.c (m88k_gregset): Likewise.
7642 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7643 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7644 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7645 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7646 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7647 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7648 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7649 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7650 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7651 Likewise.
7652 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7653 * sh-tdep.h (sh_corefile_gregset): Likewise.
7654 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7655 * vax-tdep.c (vax_gregset): Likewise.
7656
7657 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7658
7659 Fix TLS access for -static -pthread.
7660 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7661 (try_thread_db_load_1): Initialize it.
7662 (thread_db_get_thread_local_address): Call it if LM is zero.
7663 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7664 * target.h (struct target_ops) (to_get_thread_local_address): Add
7665 load_module_addr comment.
7666
7667 2014-05-21 Pedro Alves <palves@redhat.com>
7668
7669 * dcache.c (dcache_read_memory_partial): If reading the cache line
7670 fails, fallback to reading just the memory the caller wanted.
7671
7672 2014-05-20 Doug Evans <dje@google.com>
7673
7674 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7675 instead of get_current_arch.
7676
7677 2014-05-20 Pedro Alves <palves@redhat.com>
7678
7679 * NEWS: Mention that compare-sections now works with all targets.
7680
7681 * remote.c (PACKET_qCRC): New enum value.
7682 (remote_verify_memory): Don't send qCRC if the target has no
7683 execution. Use packet_support/packet_ok. If the target doesn't
7684 support the qCRC packet, fallback to a deep memory copy.
7685 (compare_sections_command): Say "target image" instead of "remote
7686 executable".
7687 (_initialize_remote): Add PACKET_qCRC to the list of config
7688 packets that have no associated command. Extend comment.
7689 * target.c (simple_verify_memory, default_verify_memory): New
7690 function.
7691 * target.h (struct target_ops) <to_verify_memory>: Default to
7692 default_verify_memory.
7693 (simple_verify_memory): New declaration.
7694 * target-delegates.c: Regenerate.
7695
7696 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7697
7698 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7699
7700 2014-05-20 Hui Zhu <hui@codesourcery.com>
7701 Yao Qi <yao@codesourcery.com>
7702
7703 PR backtrace/16558
7704 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7705 and change address of sp and pc.
7706
7707 2014-05-19 Tom Tromey <tromey@redhat.com>
7708
7709 * gdbtypes.c (rank_function): Use XNEWVEC.
7710 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7711
7712 2014-05-19 Doug Evans <dje@google.com>
7713
7714 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7715 build_type_unit_groups and moved closer to only caller. Remove
7716 arguments. All references updated. Remove outdated .gdb_index
7717 comment.
7718 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7719 build_type_psymtabs_1.
7720
7721 2014-05-19 Doug Evans <dje@google.com>
7722
7723 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7724 n_type_unit_groups, all_type_unit_groups. All uses removed.
7725 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7726 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7727 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7728 (add_type_unit_group_to_table): Delete.
7729
7730 2014-05-19 Doug Evans <dje@google.com>
7731
7732 * eval.c (evaluate_subexp_standard): Add some comments.
7733
7734 2014-05-17 Doug Evans <xdje42@gmail.com>
7735
7736 * progspace.c (remove_program_space): Delete, unused.
7737 * progspace.h (remove_program_space): Ditto.
7738
7739 2014-05-17 Doug Evans <xdje42@gmail.com>
7740
7741 * inferior.c (prune_inferiors): Fix comment.
7742 (remove_inferior_command): Call prune_program_spaces.
7743
7744 2014-05-16 Doug Evans <dje@google.com>
7745
7746 New command line option -D.
7747 * NEWS: Mention it.
7748 * main.c (set_gdb_data_directory): New function.
7749 (captured_main): Recognize -D. Flag error for --data-directory "".
7750 Call set_gdb_data_directory.
7751 (print_gdb_help): Print --data-directory, -D.
7752 * main.h (set_gdb_data_directory): Declare.
7753 * top.c (staged_gdb_datadir): New static global.
7754 (set_gdb_datadir): Call set_gdb_data_directory
7755 (show_gdb_datadir): New function.
7756 (init_main): Update init of data-directory parameter.
7757
7758 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7759
7760 Import the "dirfd" gnulib module.
7761 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7762 * gnulib/aclocal.m4: Update.
7763 * gnulib/config.in: Update.
7764 * gnulib/configure: Update.
7765 * gnulib/import/Makefile.am: Update.
7766 * gnulib/import/Makefile.in: Update.
7767 * gnulib/import/dirfd.c: New.
7768 * gnulib/import/m4/dirfd.m4: New.
7769 * gnulib/import/m4/gnulib-cache.m4: Update.
7770 * gnulib/import/m4/gnulib-comp.m4: Update.
7771
7772 2014-05-16 Pierre Muller <muller@sourceware.org>
7773 Yao Qi <yao@codesourcery.com>
7774
7775 * valprint.c (print_wchar): Move the code on checking whether
7776 W is a printable wide char to the default branch of switch
7777 statement below. Call wchar_printable instead of gdb_iswprint.
7778
7779 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7780
7781 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7782 ldr.w and ldrd instructions.
7783
7784 2014-05-15 Doug Evans <dje@google.com>
7785
7786 * dwarf2read.c (read_structure_type): Delete outdated comments.
7787
7788 2014-05-14 Tom Tromey <tromey@redhat.com>
7789
7790 * macrocmd.c (print_macro_definition): Reindent.
7791
7792 2014-05-13 Doug Evans <xdje42@gmail.com>
7793
7794 * python/py-cmd.c (cmdpy_completer): Add comment.
7795 (completers): Make const.
7796
7797 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7798
7799 * infrun.c (resume): Remove should_resume (unused). Move up
7800 declaration of resume_ptid.
7801
7802 2014-05-13 Tom Tromey <tromey@redhat.com>
7803
7804 * language.h (unop_type_check): Remove.
7805 (binop_type_check): Don't declare.
7806
7807 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7808
7809 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7810 call to regcache_raw_collect.
7811
7812 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7813
7814 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7815 mi_console->quote as the quoting character.
7816
7817 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7818
7819 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7820
7821 2014-04-29 Tom Tromey <tromey@redhat.com>
7822
7823 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7824 "show debug varobj".
7825
7826 2014-05-07 Kyle McMartin <kyle@redhat.com>
7827
7828 Pushed by Joel Brobecker <brobecker@adacore.com>.
7829 * aarch64-tdep.c (aarch64_software_single_step): New function.
7830 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7831 with aarch64_software_single_step.
7832
7833 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7834
7835 GDB 7.7.1 released.
7836
7837 2014-05-05 Keith Seitz <keiths@redhat.com>
7838
7839 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7840 variable or history value is successfully parsed.
7841
7842 2014-05-05 Yao Qi <yao@codesourcery.com>
7843 Pedro Alves <palves@redhat.com>
7844
7845 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7846 address of blocks that intersects the requested range. Trim
7847 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7848 sections.
7849 * ctf.c (ctf_xfer_partial): Likewise.
7850
7851 2014-05-05 Yao Qi <yao@codesourcery.com>
7852
7853 * printcmd.c (display_command): Remove the check to
7854 target_has_execution.
7855
7856 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7857
7858 * ppcobsd-nat.c: Include "obsd-nat.h".
7859 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7860 add_target.
7861 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7862
7863 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7864
7865 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7866 and 16-bit signed and unsigned arguments. Update comment.
7867 (stap_parse_probe_arguments): Extend code to handle such
7868 arguments. Use warning instead of complaint to notify about
7869 unrecognized bitness.
7870
7871 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7872
7873 PR breakpoints/16889
7874 * stap-probe.c (stap_parse_probe_arguments): Simplify
7875 check for non-prefixed probes (i.e., probes whose
7876 arguments do not start with "N@"). Always set the
7877 argument type to a sane value.
7878
7879 2014-05-01 David Taylor <dtaylor@emc.com>
7880
7881 * remote.c (compare_sections_command): Add -r option to compare
7882 all loadable read-only sections.
7883
7884 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7885
7886 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7887 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7888 Update all callers.
7889 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7890 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7891 Remove unused CORE_ADDR argument. Update all callers.
7892
7893 2014-04-29 Pedro Alves <palves@redhat.com>
7894
7895 * remote.c (struct packet_config) <detect>: Extend comment.
7896 (add_packet_config_cmd): Don't set the config's detect or support
7897 fields here.
7898 (init_all_packet_configs): Also initialize the config's 'detect'
7899 field.
7900 (reset_all_packet_configs_support): New function.
7901 (remote_open_1): Call reset_all_packet_configs_support instead of
7902 init_all_packet_configs.
7903 (_initialize_remote): Initialize all packet configs. Assert that
7904 all packets have an associated command, except a few known
7905 outliers.
7906
7907 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7908
7909 * dwarf2read.c (read_subrange_type): Handle dynamic
7910 DW_AT_lower_bound attributes.
7911
7912 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7913
7914 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7915 dynamic bounds before computing its upper bound.
7916 (ada_discrete_type_low_bound): Same as above with the lower bound.
7917
7918 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7919
7920 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7921 range types. Adjust the array handling implementation to
7922 take advantage of this change.
7923 (resolve_dynamic_range): New function, mostly extracted from
7924 resolve_dynamic_bounds.
7925 (resolve_dynamic_array): New function, mostly extracted from
7926 resolve_dynamic_bounds.
7927 (resolve_dynamic_bounds): Delete.
7928 (resolve_dynamic_type): Reimplement. Add handling of
7929 TYPE_CODE_RANGE types.
7930
7931 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7932
7933 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7934 handling of parallel ___XA types.
7935
7936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7937
7938 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7939 unnecessary second call to static_unwrap_type.
7940
7941 2014-04-27 Hui Zhu <hui@codesourcery.com>
7942
7943 * stack.c (print_frame_info): Call do_gdb_disassembly with
7944 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7945
7946 2014-04-26 Doug Evans <xdje42@gmail.com>
7947
7948 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7949
7950 2014-04-25 Pedro Alves <palves@redhat.com>
7951
7952 PR server/16255
7953 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7954 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7955 and newline from built string.
7956 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7957 (linux_ptrace_attach_fail_reason): ... this.
7958 * linux-nat.c (linux_nat_attach): Adjust to use
7959 linux_ptrace_attach_fail_reason.
7960
7961 2014-04-25 Pedro Alves <palves@redhat.com>
7962
7963 * remote.c (struct remote_state): Remove multi_process_aware,
7964 non_stop_aware, cond_tracepoints, cond_breakpoints,
7965 breakpoint_commands, fast_tracepoints, static_tracepoints,
7966 install_in_trace, disconnected_tracing,
7967 enable_disable_tracepoints, string_tracing, and
7968 augmented_libraries_svr4_read fields.
7969 (remote_multi_process_p): Move further below in the file.
7970 (struct packet_config): Add comments.
7971 (update_packet_config): Delete function.
7972 (show_packet_config_cmd): Use packet_config_support.
7973 (add_packet_config_cmd): Use NULL as set callback.
7974 (packet_ok): "set remote foo-packet"-style commands no longer
7975 change config->supported -- adjust.
7976 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7977 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7978 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7979 (PACKET_QNonStop, PACKET_multiprocess_feature)
7980 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7981 (PACKET_DisconnectedTracing_feature)
7982 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7983 (set_remote_protocol_packet_cmd): Delete function.
7984 (packet_config_support, packet_support): New functions.
7985 (set_remote_protocol_Z_packet_cmd): Don't call
7986 update_packet_config.
7987 (remote_query_attached, remote_pass_signals)
7988 (remote_program_signals, remote_threads_info)
7989 (remote_threads_extra_info, remote_start_remote): Use
7990 packet_support.
7991 (remote_start_remote): Use packet_config_support and
7992 packet_support.
7993 (init_all_packet_configs): Set all packets to unknown support,
7994 instead of calling update_packet_config.
7995 (remote_check_symbols): Use packet_support.
7996 (remote_supported_packet): Unconditionally set the packet config's
7997 support status.
7998 (remote_multi_process_feature, remote_non_stop_feature)
7999 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8000 (remote_breakpoint_commands_feature)
8001 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8002 (remote_install_in_trace_feature)
8003 (remote_disconnected_tracing_feature)
8004 (remote_enable_disable_tracepoint_feature)
8005 (remote_string_tracing_feature)
8006 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8007 (remote_protocol_features): Adjust to use remote_supported_packet
8008 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8009 "ConditionalTracepoints", "ConditionalBreakpoints",
8010 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8011 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8012 "EnableDisableTracepoints", and "tracenz".
8013 (remote_query_supported): Use packet_support.
8014 (remote_open_1): Adjust.
8015 (extended_remote_attach_1): Use packet_support. Switch on the
8016 result of packet_ok instead of checking whether the packet ended
8017 up disabled.
8018 (remote_vcont_resume): Use packet_support.
8019 (remote_resume, remote_stop_ns, fetch_register_using_p)
8020 (remote_prepare_to_store, store_register_using_P)
8021 (check_binary_download, remote_write_bytes): Use packet_support.
8022 (remote_vkill): Use packet_support. Switch on the result of
8023 packet_ok instead of checking whether the packet ended up
8024 disabled.
8025 (extended_remote_supports_disable_randomization): Use
8026 packet_support.
8027 (extended_remote_run): Switch on the result of packet_ok instead
8028 of checking whether the packet ended up disabled.
8029 (remote_insert_breakpoint, remote_remove_breakpoint)
8030 (remote_insert_watchpoint, remote_remove_watchpoint)
8031 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8032 packet_support.
8033 (remote_search_memory): Use packet_config_support.
8034 (remote_get_thread_local_address, remote_get_tib_address)
8035 (remote_hostio_send_command, remote_can_execute_reverse): Use
8036 packet_support.
8037 (remote_supports_cond_tracepoints)
8038 (remote_supports_cond_breakpoints)
8039 (remote_supports_fast_tracepoints)
8040 (remote_supports_static_tracepoints)
8041 (remote_supports_install_in_trace)
8042 (remote_supports_enable_disable_tracepoint)
8043 (remote_supports_string_tracing)
8044 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8045 the packet config says the feature is enabled or disabled.
8046 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8047 (remote_get_trace_status): Use packet_support.
8048 (remote_set_disconnected_tracing): Adjust to check whether the
8049 feature is enabled with packet_support.
8050 (remote_set_trace_buffer_size, remote_use_agent)
8051 (remote_can_use_agent, remote_supports_btrace): Use
8052 packet_support.
8053 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8054 Use packet_config_support.
8055 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8056 the packet config says the feature is enabled or disabled.
8057 (set_range_stepping): Use packet_support.
8058
8059 2014-04-25 Tom Tromey <tromey@redhat.com>
8060
8061 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8062 argument.
8063
8064 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8065
8066 * NEWS: Mention support for C99 variable length arrays.
8067
8068 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8069
8070 * ada-lang.c (standard_exc): Expand introductory comment.
8071
8072 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8073 Walfred Tedeschi <walfred.tedeschi@intel.com>
8074
8075 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8076 AVX512 registers.
8077 (amd64_linux_read_description): Add code to handle AVX512 xstate
8078 mask and return respective tdesc.
8079 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8080 and features/i386/x32-avx512-linux.c.
8081 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8082 (amd64_linux_core_read_description): Add code to handle AVX512
8083 xstate mask and return respective tdesc.
8084 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8085 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8086 calculation.
8087 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8088 (tdesc_amd64_avx512_linux): New prototype.
8089 (tdesc_x32_avx512_linux): Likewise.
8090 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8091 features/i386/x32-avx512.c.
8092 (amd64_ymm_avx512_names): New register names for pseudo
8093 registers YMM16-31.
8094 (amd64_ymmh_avx512_names): New register names for raw registers
8095 YMMH16-31.
8096 (amd64_k_names): New register names for K registers.
8097 (amd64_zmmh_names): New register names for ZMM raw registers.
8098 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8099 (amd64_xmm_avx512_names): New register names for XMM16-31
8100 registers.
8101 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8102 registers.
8103 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8104 if feature is present.
8105 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8106 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8107 (AMD64_NUM_REGS): Adjust to new number of registers.
8108 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8109 registers supplied via XSTATE by AVX512 registers.
8110 (i386_linux_read_description): Add case for AVX512.
8111 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8112 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8113 (i386_linux_core_read_description): Add case for AVX512.
8114 (i386_linux_init_abi): Install supported register note section
8115 for AVX512.
8116 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8117 AVX512.
8118 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8119 registers to be number of zmm7h + 1.
8120 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8121 * i386-tdep.c: Include features/i386/i386-avx512.c.
8122 (i386_zmm_names): Add ZMM pseudo register names array.
8123 (i386_zmmh_names): Add ZMM raw register names array.
8124 (i386_k_names): Add K raw register names array.
8125 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8126 registers. AVX512 has 16 more ZMM registers than there are YMM
8127 registers.
8128 (i386_zmmh_regnum_p): Add function to look up register number of
8129 ZMM raw registers.
8130 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8131 (i386_k_regnum_p): Likewise for K raw registers.
8132 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8133 registers added by AVX512.
8134 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8135 registers added by AVX512.
8136 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8137 added by AVX512.
8138 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8139 (i386_pseudo_register_name): Add ZMM pseudo registers.
8140 (i386_zmm_type): Construct and return vector registers type for ZMM
8141 registers.
8142 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8143 ZMM0-31 pseudo registers and K registers.
8144 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8145 and YMM16-31 registers from register cache.
8146 (i386_pseudo_register_write): Add code to write K, ZMM and
8147 YMM16-31 registers.
8148 (i386_register_reggroup_p): Add code to include/exclude AVX512
8149 registers in/from respective register groups.
8150 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8151 registers if feature is present in xcr0.
8152 (i386_gdbarch_init): Add code to initialize AVX512 feature
8153 variables in tdep structure, wire in pseudo registers and call
8154 initialize_tdesc_i386_avx512.
8155 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8156 variables.
8157 (i386_regnum): Add AVX512 registers.
8158 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8159 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8160 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8161 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8162 512 bits wide.
8163 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8164 (i386_ymm_avx512_regnum_p): Likewise.
8165 (i386_k_regnum_p): Likewise.
8166 (i386_zmm_regnum_p): Likewise.
8167 (i386_zmmh_regnum_p): Likewise.
8168 * i387-tdep.c : Update year in copyright notice.
8169 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8170 XSAVE buffer.
8171 (XSAVE_YMM_AVX512_ADDR): New macro.
8172 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8173 XSAVE buffer.
8174 (XSAVE_XMM_AVX512_ADDR): New macro.
8175 (xsave_avx512_k_offset): New table for K register offsets in
8176 XSAVE buffer.
8177 (XSAVE_AVX512_K_ADDR): New macro.
8178 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8179 in XSAVE buffer.
8180 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8181 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8182 buffer.
8183 (i387_collect_xsave): Add code to collect AVX512 registers from
8184 XSAVE buffer.
8185 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8186 of XMM16-31 registers.
8187 (I387_NUM_K_REGS): New define for number of K registers.
8188 (I387_K0_REGNUM): New define for K0 register number.
8189 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8190 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8191 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8192 registers.
8193 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8194 (I387_XMM16_REGNUM): New define for XMM16 register number.
8195 (I387_YMM0_REGNUM): New define for YMM0 register number.
8196 (I387_KEND_REGNUM): New define for last K register number.
8197 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8198 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8199 number.
8200 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8201 number.
8202 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8203 size.
8204 * features/Makefile: Add AVX512 related files.
8205 * features/i386/32bit-avx512.xml: New file.
8206 * features/i386/64bit-avx512.xml: Likewise.
8207 * features/i386/amd64-avx512-linux.c: Likewise.
8208 * features/i386/amd64-avx512-linux.xml: Likewise.
8209 * features/i386/amd64-avx512.c: Likewise.
8210 * features/i386/amd64-avx512.xml: Likewise.
8211 * features/i386/i386-avx512-linux.c: Likewise.
8212 * features/i386/i386-avx512-linux.xml: Likewise.
8213 * features/i386/i386-avx512.c: Likewise.
8214 * features/i386/i386-avx512.xml: Likewise.
8215 * features/i386/x32-avx512-linux.c: Likewise.
8216 * features/i386/x32-avx512-linux.xml: Likewise.
8217 * features/i386/x32-avx512.c: Likewise.
8218 * features/i386/x32-avx512.xml: Likewise.
8219 * regformats/i386/amd64-avx512-linux.dat: New file.
8220 * regformats/i386/amd64-avx512.dat: Likewise.
8221 * regformats/i386/i386-avx512-linux.dat: Likewise.
8222 * regformats/i386/i386-avx512.dat: Likewise.
8223 * regformats/i386/x32-avx512-linux.dat: Likewise.
8224 * regformats/i386/x32-avx512.dat: Likewise.
8225 * NEWS: Add note about new support for AVX512.
8226
8227
8228 2014-04-23 Pedro Alves <palves@redhat.com>
8229
8230 * breakpoint.c (insert_bp_location): Tolerate errors if the
8231 breakpoint is set in a user-loaded objfile.
8232 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8233 location is marked shlib_disabled. If the breakpoint is set in a
8234 user-loaded objfile is a GDB-side memory breakpoint, validate it
8235 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8236 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8237 flag.
8238 * mem-break.c (memory_validate_breakpoint): New function.
8239 * objfiles.c (userloaded_objfile_contains_address_p): New
8240 function.
8241 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8242 * target.h (memory_validate_breakpoint): New declaration.
8243
8244 2014-04-23 Pedro Alves <palves@redhat.com>
8245
8246 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8247 the breakpoint is set in a shared library, only suppress
8248 errors for software breakpoints, not hardware breakpoints.
8249
8250 2014-04-22 Pedro Alves <palves@redhat.com>
8251
8252 * infrun.c (schedlock_applies): New function, factored out from
8253 find_thread_needs_step_over.
8254 (find_thread_needs_step_over): Use it.
8255 (switch_back_to_stepped_thread): Always clear trap_expected if the
8256 step over is finished. Return early if scheduler locking applies.
8257 Look for the stepping thread and a potential step-over thread with
8258 a single loop.
8259 (currently_stepping_or_nexting_callback): Delete.
8260
8261 2014-04-22 Nick Clifton <nickc@redhat.com>
8262
8263 * NEWS: Mention that ARM sim now supports tracing.
8264
8265 2014-04-22 Yao Qi <yao@codesourcery.com>
8266
8267 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8268 to ...
8269 * tracefile.c (tracefile_fetch_registers): ... it. New
8270 function.
8271 * tracefile.h (tracefile_fetch_registers): Declare.
8272 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8273 tracefile_fetch_registers.
8274
8275 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8276
8277 PR gdb/14018
8278 * windows-nat.c (thread_rec): Don't display a warning when
8279 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8280 fails for any reason, set th->suspended to -1, so that we don't
8281 try to resume such a thread. Also, don't return NULL in these
8282 cases, to avoid completely ruin the session due to "PC register is
8283 not available" error.
8284 (do_windows_fetch_inferior_registers): Check errors in
8285 GetThreadContext call.
8286 (windows_continue): Accept an additional argument KILLED; if not
8287 zero, ignore errors in the SetThreadContext call, since the
8288 inferior was killed and is shutting down.
8289 (windows_resume, get_windows_debug_event)
8290 (windows_create_inferior, windows_mourn_inferior)
8291 (windows_kill_inferior): All callers of windows_continue changed
8292 to adjust to its new calling sequence.
8293
8294 2014-04-19 Yao Qi <yao@codesourcery.com>
8295
8296 * ctf.c (ctf_open): Call post_create_inferior.
8297
8298 2014-04-19 Yao Qi <yao@codesourcery.com>
8299
8300 * ctf.c (handle_id): New static variable.
8301 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8302 value. Get the declaration of event "register" and get length
8303 of field "contents".
8304
8305 2014-04-19 Yao Qi <yao@codesourcery.com>
8306
8307 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8308
8309 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8310
8311 * valops.c (oload_method_static): Remove unnecessary argument
8312 METHOD. Update all callers.
8313
8314 2014-04-18 Pedro alves <palves@redhat.com>
8315 Tom Tromey <tromey@redhat.com>
8316
8317 PR backtrace/15558
8318 * frame.c (get_prev_frame_1): Rename to ...
8319 (get_prev_frame_always): ... this, and make extern. Adjust.
8320 (skip_artificial_frames): Use get_prev_frame_always.
8321 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8322 (get_frame_unwind_stop_reason): Adjust to rename.
8323 * frame.h (get_prev_frame_always): Declare.
8324 * inline-frame.c: Include frame.h.
8325 (inline_frame_this_id): Use get_prev_frame_always.
8326
8327 2014-04-18 Tristan Gingold <gingold@adacore.com>
8328
8329 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8330 code by using bfd_mach_o_get_base_address.
8331
8332 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8333
8334 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8335 (spu_ax_pseudo_register_collect): New function.
8336 (spu_ax_pseudo_register_push_stack): Likewise.
8337 (spu_dwarf_reg_to_regnum): Likewise.
8338 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8339
8340 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8341
8342 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8343 Replace FRAME argument with FRAME_ID.
8344 * gdbarch.c, gdbarch.h: Regenerate.
8345 * findvar.c (default_value_from_register): Add GDBARCH argument;
8346 replace FRAME by FRAME_ID. No longer call get_frame_id.
8347 (value_from_register): Update call to gdbarch_value_from_register.
8348 * value.h (default_value_from_register): Update prototype.
8349 * s390-linux-tdep.c (s390_value_from_register): Update interface
8350 and call to default_value_from_register.
8351 * spu-tdep.c (spu_value_from_register): Likewise.
8352
8353 * findvar.c (address_from_register): Remove TYPE argument.
8354 Do not call value_from_register; use gdbarch_value_from_register
8355 with null_frame_id instead.
8356 * value.h (address_from_register): Update prototype.
8357 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8358 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8359 address_from_register interface change.
8360
8361 2014-04-17 Yao Qi <yao@codesourcery.com>
8362
8363 * gdbtypes.h: Update comments to link to types and macros'
8364 definitions.
8365
8366 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8367
8368 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8369
8370 2014-04-16 Keith Seitz <keiths@redhat.com>
8371
8372 PR gdb/15827
8373 * dwarf2read.c (skip_one_die): Check that all relative-offset
8374 sibling DIEs fall within range of the current reader's buffer.
8375 (read_partial_die): Likewise.
8376
8377 2014-04-16 Keith Seitz <keiths@redhat.com>
8378
8379 PR c++/16597
8380 * cp-namespace.c (lookup_symbol_file): If the type name of
8381 `this' is NULL, return immediately.
8382
8383 2014-04-14 Keith Seitz <keiths@redhat.com>
8384
8385 PR c++/16253
8386 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8387 from symbol_matches_domain in symtab.c. All local callers
8388 of symbol_matches_domain updated.
8389 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8390 search STRUCT_DOMAIN.
8391 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8392 independently. standard_lookup will do that automatically.
8393 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8394 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8395 (cp_lookup_symbol_in_namespace): Likewise.
8396 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8397 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8398 may return a STRUCT_DOMAIN match.
8399 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8400 * cp-support.c: Include language.h.
8401 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8402 VAR_DOMAIN.
8403 * psymtab.c (match_partial_symbol): Compare the requested
8404 domain with the symbol's domain directly.
8405 (lookup_partial_symbol): Likewise.
8406 * symtab.c (lookup_symbol_in_language): Explain when/why
8407 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8408 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8409 appropriate languages.
8410 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8411 and moved to ada-lang.c
8412 (lookup_block_symbol): Explain that this function only returns
8413 symbol matching the requested DOMAIN.
8414 Compare the requested domain with the symbol's domain directly.
8415 (iterate_over_symbols): Compare the requested domain with the
8416 symbol's domain directly.
8417 * symtab.h (symbol_matches_domain): Remove.
8418
8419 2014-04-14 Tom Tromey <tromey@redhat.com>
8420
8421 PR c++/15246:
8422 * c-exp.y (type_aggregate_p): New function.
8423 (qualified_name, classify_inner_name): Use it.
8424 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8425 and TYPE_TARGET_TYPE of an enum type.
8426 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8427 an enum type.
8428 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8429 handle TYPE_DECLARED_CLASS.
8430 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8431 types.
8432 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8433 * valops.c (enum_constant_from_type): New function.
8434 (value_aggregate_elt): Use it.
8435 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8436 TYPE_CODE_ENUM.
8437
8438 2014-04-14 Tom Tromey <tromey@redhat.com>
8439
8440 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8441 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8442 const.
8443 * value.h (value_aggregate_elt): Update.
8444
8445 2014-04-14 Tom Tromey <tromey@redhat.com>
8446
8447 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8448
8449 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8450
8451 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8452 (evaluate_subexp_standard): Pass noside argument.
8453 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8454 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8455 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8456 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8457 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8458
8459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8460
8461 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8462 points to a constant blob.
8463
8464 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8465
8466 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8467 property and store it as the high bound and flag the range accordingly.
8468 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8469 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8470 * gdbtypes.h (enum range_flags): New enum.
8471 (struct range_bounds): Add flags member.
8472
8473 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8474
8475 * c-typeprint.c (c_type_print_varspec_suffix): Added
8476 check for not yet resolved high bound. If unresolved, print
8477 "variable length" string to the console instead of random
8478 length.
8479
8480 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8481
8482 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8483 value.
8484 (ada_template_to_fixed_record_type_1): Likewise.
8485 (ada_to_fixed_type_1): Likewise.
8486 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8487 (cp_print_value): Likewise.
8488 * d-valprint.c (dynamic_array_type): Likewise.
8489 * findvar.c (address_of_variable): Likewise.
8490 * jv-valprint.c (java_value_print): Likewise.
8491 * valops.c (value_ind): Likewise.
8492 * value.c (coerce_ref): Likewise.
8493
8494 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8495
8496 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8497 value and retrieve the dynamic type size.
8498
8499 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8500
8501 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8502 passed to sizeof is dynamic evaluate the argument to compute the length.
8503
8504 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8505 Joel Brobecker <brobecker@adacore.com>
8506
8507 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8508 (dwarf2_evaluate_property): New function.
8509 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8510 * dwarf2read.c (attr_to_dynamic_prop): New function.
8511 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8512 attribute.
8513 * gdbtypes.c: Include dwarf2loc.h.
8514 (is_dynamic_type): New function.
8515 (resolve_dynamic_type): New function.
8516 (resolve_dynamic_bounds): New function.
8517 (get_type_length): New function.
8518 (check_typedef): Use get_type_length to compute type length.
8519 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8520 (TYPE_LOW_BOUND_KIND): New macro.
8521 (is_dynamic_type): New function prototype.
8522 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8523 to resolve dynamic properties of the type. Update comment.
8524 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8525
8526 2014-04-14 Richard Henderson <rth@redhat.com>
8527
8528 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8529
8530 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8531 Doug Evans <xdje42@gmail.com>
8532
8533 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8534 dereference TYPE_CODE_REF values.
8535
8536 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8537
8538 Revert the following changes due to regressions:
8539
8540 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8541 (dwarf2_evaluate_property): New function.
8542 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8543 * dwarf2read.c (attr_to_dynamic_prop): New function.
8544 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8545 attribute.
8546 * gdbtypes.c: Include dwarf2loc.h.
8547 (is_dynamic_type): New function.
8548 (resolve_dynamic_type): New function.
8549 (resolve_dynamic_bounds): New function.
8550 (get_type_length): New function.
8551 (check_typedef): Use get_type_length to compute type length.
8552 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8553 (TYPE_LOW_BOUND_KIND): New macro.
8554 (is_dynamic_type): New function prototype.
8555 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8556 to resolve dynamic properties of the type. Update comment.
8557 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8558
8559 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8560 passed to sizeof is dynamic evaluate the argument to compute the length.
8561
8562 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8563 value and retrieve the dynamic type size.
8564
8565 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8566 (ada_template_to_fixed_record_type_1): Likewise.
8567 (ada_to_fixed_type_1): Likewise.
8568 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8569 (cp_print_value): Likewise.
8570 * d-valprint.c (dynamic_array_type): Likewise.
8571 * eval.c (evaluate_subexp_with_coercion): Likewise.
8572 * findvar.c (address_of_variable): Likewise.
8573 * jv-valprint.c (java_value_print): Likewise.
8574 * valops.c (value_ind): Likewise.
8575 * value.c (coerce_ref): Likewise.
8576
8577 * c-typeprint.c (c_type_print_varspec_suffix): Added
8578 check for not yet resolved high bound. If unresolved, print
8579 "variable length" string to the console instead of random
8580 length.
8581
8582 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8583 property and store it as the high bound and flag the range accordingly.
8584 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8585 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8586 * gdbtypes.h (enum range_flags): New enum.
8587 (struct range_bounds): Add flags member.
8588
8589 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8590 points to a constant blob.
8591
8592 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8593 (evaluate_subexp_standard): Pass noside argument.
8594 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8595 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8596 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8597 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8598 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8599
8600 2014-04-11 Keith Seitz <keiths@redhat.com>
8601
8602 PR c++/16675
8603 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8604 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8605 reference types.
8606
8607 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8608
8609 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8610 (evaluate_subexp_standard): Pass noside argument.
8611 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8612 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8613 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8614 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8615 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8616
8617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8618
8619 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8620 points to a constant blob.
8621
8622 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8623
8624 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8625 property and store it as the high bound and flag the range accordingly.
8626 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8627 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8628 * gdbtypes.h (enum range_flags): New enum.
8629 (struct range_bounds): Add flags member.
8630
8631 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8632
8633 * c-typeprint.c (c_type_print_varspec_suffix): Added
8634 check for not yet resolved high bound. If unresolved, print
8635 "variable length" string to the console instead of random
8636 length.
8637
8638 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8639
8640 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8641 (ada_template_to_fixed_record_type_1): Likewise.
8642 (ada_to_fixed_type_1): Likewise.
8643 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8644 (cp_print_value): Likewise.
8645 * d-valprint.c (dynamic_array_type): Likewise.
8646 * eval.c (evaluate_subexp_with_coercion): Likewise.
8647 * findvar.c (address_of_variable): Likewise.
8648 * jv-valprint.c (java_value_print): Likewise.
8649 * valops.c (value_ind): Likewise.
8650 * value.c (coerce_ref): Likewise.
8651
8652 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8653
8654 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8655 value and retrieve the dynamic type size.
8656
8657 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8658
8659 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8660 passed to sizeof is dynamic evaluate the argument to compute the length.
8661
8662 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8663
8664 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8665 (dwarf2_evaluate_property): New function.
8666 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8667 * dwarf2read.c (attr_to_dynamic_prop): New function.
8668 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8669 attribute.
8670 * gdbtypes.c: Include dwarf2loc.h.
8671 (is_dynamic_type): New function.
8672 (resolve_dynamic_type): New function.
8673 (resolve_dynamic_bounds): New function.
8674 (get_type_length): New function.
8675 (check_typedef): Use get_type_length to compute type length.
8676 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8677 (TYPE_LOW_BOUND_KIND): New macro.
8678 (is_dynamic_type): New function prototype.
8679 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8680 to resolve dynamic properties of the type. Update comment.
8681 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8682
8683 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8684
8685 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8686 declaring high/low bounds and change uses accordingly. Call
8687 create_range_type instead of create_static_range_type.
8688 * gdbtypes.c (create_range_type): New function.
8689 (create_range_type): Convert bounds into struct bound_prop and pass
8690 them to create_range_type.
8691 * gdbtypes.h (struct bound_prop): New struct.
8692 (create_range_type): New function prototype.
8693 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8694 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8695 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8696 part of the bound.
8697 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8698
8699 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8700
8701 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8702 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8703 * ada-lang.c: All uses of create_range_type updated.
8704 * coffread.c: All uses of create_range_type updated.
8705 * dwarf2read.c: All uses of create_range_type updated.
8706 * f-exp.y: All uses of create_range_type updated.
8707 * m2-valprint.c: All uses of create_range_type updated.
8708 * mdebugread.c: All uses of create_range_type updated.
8709 * stabsread.c: All uses of create_range_type updated.
8710 * valops.c: All uses of create_range_type updated.
8711 * valprint.c: All uses of create_range_type updated.
8712
8713 2014-04-10 Pedro Alves <palves@redhat.com>
8714
8715 * breakpoint.c (single_step_breakpoints)
8716 (single_step_gdbarch): Move up in the file.
8717 (one_breakpoint_xfer_memory): New function, factored out from ...
8718 (breakpoint_xfer_memory): ... here. Also process single-step
8719 breakpoints.
8720
8721 2014-04-09 Tristan Gingold <gingold@adacore.com>
8722
8723 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8724 comments.
8725 (darwin_decode_exception_message): Free port only after use.
8726
8727 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8728
8729 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8730 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8731 when setting the size of call_length.
8732
8733 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8734
8735 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8736 dereference TYPE_CODE_REF values.
8737
8738 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8739
8740 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8741 end of warning message.
8742
8743 2014-04-03 Doug Evans <dje@google.com>
8744
8745 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8746 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8747
8748 2014-04-02 Alan Modra <amodra@gmail.com>
8749
8750 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8751 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8752 (struct symbol_file_add_from_memory_args): Add size field.
8753 (find_vdso_size): New function.
8754 (add_vsyscall_page): Attempt to find vdso size.
8755
8756 2014-04-01 Doug Evans <dje@google.com>
8757
8758 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8759
8760 2014-04-01 Tristan Gingold <gingold@adacore.com>
8761
8762 * darwin-nat.c (darwin_encode_reply): Add prototype.
8763 (darwin_decode_exception_message): Reply to unknown inferiors.
8764 (darwin_decode_message): Handle message by id. Ignore message
8765 to unknown inferior.
8766 (darwin_wait): Discard unknown messages, add debug trace.
8767
8768 2014-03-31 Doug Evans <dje@google.com>
8769
8770 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8771 comp_dir_string.
8772
8773 2014-03-31 Doug Evans <dje@google.com>
8774
8775 New option "set print symbol-loading".
8776 * NEWS: Mention it.
8777 * solib.c (solib_read_symbols): Only print symbol loading messages
8778 if requested.
8779 (solib_add): If symbol loading is in "brief" mode, notify user
8780 symbols are being loaded.
8781 (reload_shared_libraries_1): Ditto.
8782 * symfile.c (print_symbol_loading_off): New static global.
8783 (print_symbol_loading_brief): New static global.
8784 (print_symbol_loading_full): New static global.
8785 (print_symbol_loading_enums): New static global.
8786 (print_symbol_loading): New static global.
8787 (print_symbol_loading_p): New function.
8788 (symbol_file_add_with_addrs): Only print symbol loading messages
8789 if requested.
8790 (_initialize_symfile): Register "print symbol-loading" set/show
8791 command.
8792 * symfile.h (print_symbol_loading_p): Declare.
8793
8794 2014-03-30 Doug Evans <xdje42@gmail.com>
8795
8796 * infrun.c (set_last_target_status): New function.
8797 (handle_inferior_event): Call it.
8798
8799 2014-03-30 Doug Evans <xdje42@gmail.com>
8800
8801 * inferior.h (enum stop_kind): Improve comment.
8802
8803 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8804
8805 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8806 a reference, strip the reference layer before calling
8807 the lang_ops value_has_mutated callback.
8808
8809 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8810
8811 Remove some globals from our parser.
8812 * language.c (unk_lang_parser): Add "struct parser_state"
8813 argument.
8814 * language.h (struct language_defn) <la_parser>: Likewise.
8815 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8816 (initialize_expout): Add "struct parser_state" argument.
8817 Rewrite function to use the parser state.
8818 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8819 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8820 write_exp_elt_longcst, write_exp_elt_dblcst,
8821 write_exp_elt_decfloatcst, write_exp_elt_type,
8822 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8823 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8824 write_dollar_variable): Likewise.
8825 (parse_exp_in_context_1): Use parser state.
8826 (insert_type_address_space): Add "struct parser_state" argument.
8827 Use parser state.
8828 (increase_expout_size): New function.
8829 * parser-defs.h: Forward declare "struct language_defn" and
8830 "struct parser_state".
8831 (expout, expout_size, expout_ptr): Remove extern declarations.
8832 (parse_gdbarch, parse_language): Rewrite macro declarations to
8833 accept the parser state.
8834 (struct parser_state): New struct.
8835 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8836 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8837 write_exp_elt_decfloatcst, write_exp_elt_type,
8838 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8839 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8840 write_exp_msymbol, write_dollar_variable,
8841 mark_struct_expression, insert_type_address_space): Add "struct
8842 parser_state" argument.
8843 (increase_expout_size): New function.
8844 * utils.c (do_clear_parser_state): New function.
8845 (make_cleanup_clear_parser_state): Likewise.
8846 * utils.h (make_cleanup_clear_parser_state): New function
8847 prototype.
8848 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8849 Update calls to write_exp* in order to pass the parser state.
8850 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8851 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8852 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8853 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8854 * stap-probe.c (stap_parse_register_operand): Likewise.
8855 (stap_parse_single_operand): Likewise.
8856 (stap_parse_argument_1): Likewise.
8857 (stap_parse_argument): Use parser state.
8858 * stap-probe.h: Include "parser-defs.h".
8859 (struct stap_parse_info) <pstate>: New field.
8860 * c-exp.y (parse_type): Rewrite to use parser state.
8861 (yyparse): Redefine to c_parse_internal.
8862 (pstate): New global variable.
8863 (parse_number): Add "struct parser_state" argument.
8864 (write_destructor_name): Likewise.
8865 (type_exp): Update calls to write_exp* and similars in order to
8866 use parser state.
8867 (exp1, exp, variable, qualified_name, space_identifier,
8868 typename, typebase): Likewise.
8869 (write_destructor_name, parse_number, lex_one_token,
8870 classify_name, classify_inner_name, c_parse): Add "struct
8871 parser_state" argument. Update function to use parser state.
8872 * c-lang.h: Forward declare "struct parser_state".
8873 (c_parse): Add "struct parser_state" argument.
8874 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8875 (yyparse): Redefine macro to ada_parse_internal.
8876 (pstate): New variable.
8877 (write_int, write_object_renaming, write_var_or_type,
8878 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8879 type_int, type_long, type_long_long, type_float, type_double,
8880 type_long_double, type_char, type_boolean, type_system_address):
8881 Add "struct parser_state" argument.
8882 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8883 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8884 var_or_type, aggregate, aggregate_component_list,
8885 positional_list, others, component_group,
8886 component_associations): Update calls to write_exp* and similar
8887 functions in order to use parser state.
8888 (ada_parse, write_var_from_sym, write_int,
8889 write_exp_op_with_string, write_object_renaming,
8890 find_primitive_type, write_selectors, write_ambiguous_var,
8891 write_var_or_type, write_name_assoc, type_int, type_long,
8892 type_long_long, type_float, type_double, type_long_double,
8893 type_char, type_boolean, type_system_address): Add "struct
8894 parser_state" argument. Adjust function to use parser state.
8895 * ada-lang.c (parse): Likewise.
8896 * ada-lang.h: Forward declare "struct parser_state".
8897 (ada_parse): Add "struct parser_state" argument.
8898 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8899 calls to both functions.
8900 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8901 parser state.
8902 (yyparse): Redefine macro to f_parse_internal.
8903 (pstate): New variable.
8904 (parse_number): Add "struct parser_state" argument.
8905 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8906 and similars in order to use parser state.
8907 (parse_number): Adjust code to use parser state.
8908 (yylex): Likewise.
8909 (f_parse): New function.
8910 * f-lang.h: Forward declare "struct parser_state".
8911 (f_parse): Add "struct parser_state" argument.
8912 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8913 parser state.
8914 (yyparse): Redefine macro for java_parse_internal.
8915 (pstate): New variable.
8916 (push_expression_name, push_expression_name, insert_exp): Add
8917 "struct parser_state" argument.
8918 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8919 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8920 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8921 PostIncrementExpression, PostDecrementExpression,
8922 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8923 UnaryExpressionNotPlusMinus, CastExpression,
8924 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8925 RelationalExpression, EqualityExpression, AndExpression,
8926 ExclusiveOrExpression, InclusiveOrExpression,
8927 ConditionalAndExpression, ConditionalOrExpression,
8928 ConditionalExpression, Assignment, LeftHandSide): Update
8929 calls to write_exp* and similars in order to use parser state.
8930 (parse_number): Ajust code to use parser state.
8931 (yylex): Likewise.
8932 (java_parse): New function.
8933 (push_variable): Add "struct parser_state" argument. Adjust
8934 code to user parser state.
8935 (push_fieldnames, push_qualified_expression_name,
8936 push_expression_name, insert_exp): Likewise.
8937 * jv-lang.h: Forward declare "struct parser_state".
8938 (java_parse): Add "struct parser_state" argument.
8939 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8940 parser state.
8941 (yyparse): Redefine macro to m2_parse_internal.
8942 (pstate): New variable.
8943 (type_exp, exp, fblock, variable, type): Update calls to
8944 write_exp* and similars to use parser state.
8945 (yylex): Likewise.
8946 (m2_parse): New function.
8947 * m2-lang.h: Forward declare "struct parser_state".
8948 (m2_parse): Add "struct parser_state" argument.
8949 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8950 * objc-lang.h: Forward declare "struct parser_state".
8951 (end_msglist): Add "struct parser_state" argument.
8952 * p-exp.y (parse_type): Rewrite macro to use parser state.
8953 (yyparse): Redefine macro to pascal_parse_internal.
8954 (pstate): New variable.
8955 (parse_number): Add "struct parser_state" argument.
8956 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8957 write_exp* and similars in order to use parser state.
8958 (parse_number, yylex): Adjust code to use parser state.
8959 (pascal_parse): New function.
8960 * p-lang.h: Forward declare "struct parser_state".
8961 (pascal_parse): Add "struct parser_state" argument.
8962 * go-exp.y (parse_type): Rewrite macro to use parser state.
8963 (yyparse): Redefine macro to go_parse_internal.
8964 (pstate): New variable.
8965 (parse_number): Add "struct parser_state" argument.
8966 (type_exp, exp1, exp, variable, type): Update calls to
8967 write_exp* and similars in order to use parser state.
8968 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8969 to use parser state.
8970 (go_parse): Likewise.
8971 * go-lang.h: Forward declare "struct parser_state".
8972 (go_parse): Add "struct parser_state" argument.
8973
8974 2014-03-27 Doug Evans <dje@google.com>
8975
8976 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8977
8978 2014-03-27 Doug Evans <dje@google.com>
8979
8980 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8981 Remove argument abbrev_section. All callers updated.
8982
8983 2014-03-27 Doug Evans <dje@google.com>
8984
8985 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8986 addr_base, ranges_base.
8987
8988 2014-03-26 Keith Seitz <keiths@redhat.com>
8989
8990 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8991 types, not VAR_DOMAIN.
8992
8993 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8994
8995 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8996 "ra" registers.
8997 * features/nios2-linux.c: Regenerated.
8998 * features/nios2.c: Regenerated.
8999
9000 2014-03-25 Pedro Alves <palves@redhat.com>
9001
9002 * cli/cli-script.c (script_from_file): Force the interpreter to
9003 sync mode.
9004
9005 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9006
9007 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9008 small stack allocation.
9009
9010 2014-03-24 Tristan Gingold <gingold@adacore.com>
9011
9012 * darwin-nat.c (exc_server): Remove unused prototype.
9013 (darwin_dump_message): Correctly display data on x86_64.
9014 (darwin_encode_reply): Fix style.
9015 Add comments and fix indentation.
9016
9017 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9018
9019 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9020
9021 2014-03-22 Doug Evans <xdje42@gmail.com>
9022
9023 * infcmd.c: Whitespace fixes.
9024 (interrupt_command): Merge two function comments into one.
9025
9026 2014-03-22 Doug Evans <xdje42@gmail.com>
9027
9028 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9029 All uses updated.
9030
9031 2014-03-22 Yao Qi <yao@codesourcery.com>
9032
9033 * remote.c (target_read_live_memory): Remove.
9034 (memory_xfer_live_readonly_partial): Rename it to
9035 remote_xfer_live_readonly_partial. Remove argument 'object'.
9036 All callers updated. Call remote_read_bytes_1
9037 instead of target_read_live_memory.
9038 * tracepoint.c (set_traceframe_number): Remove.
9039 (make_cleanup_restore_traceframe_number): Likewise .
9040 * tracepoint.h (set_traceframe_number): Remove declaration.
9041 (make_cleanup_restore_traceframe_number): Likewise.
9042
9043 2014-03-22 Yao Qi <yao@codesourcery.com>
9044
9045 * remote.c (remote_read_bytes): Move code on reading from the
9046 remote stub to ...
9047 (remote_read_bytes_1): ... here. New function.
9048
9049 2014-03-22 Yao Qi <yao@codesourcery.com>
9050
9051 * ctf.c (ctf_xfer_partial): Check the return value of
9052 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9053 return TARGET_XFER_UNAVAILABLE.
9054 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9055 * target.c (target_read_live_memory): Move it to remote.c.
9056 (memory_xfer_live_readonly_partial): Likewise.
9057 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9058 * remote.c (target_read_live_memory): Moved from target.c.
9059 (memory_xfer_live_readonly_partial): Likewise.
9060 (remote_read_bytes): Factored out from
9061 memory_xfer_partial_1.
9062
9063 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9064
9065 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9066 NULL pointer.
9067
9068 2014-03-21 Pedro Alves <palves@redhat.com>
9069
9070 * infrun.c (normal_stop): Extend comment.
9071
9072 2014-03-21 Hui Zhu <hui@codesourcery.com>
9073 Pedro Alves <palves@redhat.com>
9074
9075 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9076 static buffer.
9077 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9078 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9079 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9080
9081 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9082
9083 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9084 `z' formatted output modifier.
9085
9086 2014-03-20 Tom Tromey <tromey@redhat.com>
9087 Sergio Durigan Junior <sergiodj@redhat.com>
9088
9089 * probe.c (parse_probes): Turn assert into an ordinary error.
9090 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9091 exceptions when parsing probes. Rearrange the code for clarity.
9092
9093 2014-03-20 Tom Tromey <tromey@redhat.com>
9094
9095 PR gdb/14135
9096 * top.c (execute_command): Only dispatch events if the command
9097 started the target.
9098
9099 2014-03-20 Tom Tromey <tromey@redhat.com>
9100
9101 PR cli/15718
9102 * infcall.c: Include event-top.h.
9103 (run_inferior_call): Call async_disable_stdin if needed.
9104
9105 2014-03-20 Pedro Alves <palves@redhat.com>
9106
9107 * infrun.c (prepare_to_proceed): Delete.
9108 (thread_still_needs_step_over): New function.
9109 (find_thread_needs_step_over): New function.
9110 (proceed): If the current thread needs a step-over, set its
9111 steping_over_breakpoint flag. Adjust to use
9112 find_thread_needs_step_over instead of prepare_to_proceed.
9113 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9114 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9115 breakpoint.
9116 (switch_back_to_stepped_thread): Step over breakpoints of all
9117 threads not the stepping thread, before switching back to the
9118 stepping thread.
9119
9120 2014-03-20 Pedro Alves <palves@redhat.com>
9121
9122 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9123 extern.
9124 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9125 * infrun.c (saved_singlestep_ptid)
9126 (stepping_past_singlestep_breakpoint): Delete.
9127 (resume): Remove stepping_past_singlestep_breakpoint handling.
9128 (proceed): Store the prev_pc of the stepping thread too.
9129 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9130 singlestep_pc.
9131 (enum infwait_states): Delete infwait_thread_hop_state.
9132 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9133 field.
9134 (handle_inferior_event): Adjust.
9135 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9136 handling and the thread-hop code. Before removing single-step
9137 breakpoints, check whether the thread hit a single-step breakpoint
9138 of another thread. If it did, the trap is not a random signal.
9139 (switch_back_to_stepped_thread): If the event thread hit a
9140 single-step breakpoint, unblock it before switching to the
9141 stepping thread. Handle the case of the stepped thread having
9142 advanced already.
9143 (keep_going): Handle the case of the current thread moving past a
9144 single-step breakpoint.
9145
9146 2014-03-20 Pedro Alves <palves@redhat.com>
9147
9148 PR breakpoints/7143
9149 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9150 are being stepped over.
9151 (breakpoint_address_match): Make extern.
9152 * breakpoint.h (breakpoint_address_match): New declaration.
9153 * inferior.h (stepping_past_instruction_at): New declaration.
9154 * infrun.c (struct step_over_info): New type.
9155 (step_over_info): New global.
9156 (set_step_over_info, clear_step_over_info)
9157 (stepping_past_instruction_at): New functions.
9158 (handle_inferior_event): Clear the step-over info when
9159 trap_expected is cleared.
9160 (resume): Remove now stale comment.
9161 (clear_proceed_status): Clear step-over info.
9162 (proceed): Adjust step-over handling to set or clear the step-over
9163 info instead of removing all breakpoints.
9164 (handle_signal_stop): When setting up a thread-hop, don't remove
9165 breakpoints here.
9166 (stop_stepping): Clear step-over info.
9167 (keep_going): Adjust step-over handling to set or clear step-over
9168 info and then always inserting breakpoints, instead of removing
9169 all breakpoints when stepping over one.
9170
9171 2014-03-20 Pedro Alves <palves@redhat.com>
9172
9173 * infrun.c (previous_inferior_ptid): Adjust comment.
9174 (deferred_step_ptid): Delete.
9175 (infrun_thread_ptid_changed, prepare_to_proceed)
9176 (init_wait_for_inferior): Adjust.
9177 (handle_signal_stop): Delete deferred_step_ptid handling.
9178
9179 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9180
9181 PR gdb/15358
9182 * defs.h (sync_quit_force_run): New declaration.
9183 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9184 * event-top.c (async_sigterm_handler): New declaration.
9185 (async_sigterm_token): New variable.
9186 (async_init_signals): Create also async_sigterm_token.
9187 (async_sigterm_handler): New function.
9188 (sync_quit_force_run): New variable.
9189 (handle_sigterm): Replace quit_force call by other calls.
9190 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9191
9192 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9193
9194 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9195 offset into SPE pseudo registers.
9196
9197 2014-03-18 Pedro Alves <palves@redhat.com>
9198
9199 PR gdb/13860
9200 * inferior.h (print_stop_event): Declare.
9201 * infrun.c (print_stop_event): New, factored out from ...
9202 (normal_stop): ... this.
9203 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9204 of bpstat_print/print_stack_frame.
9205
9206 2014-03-17 Tom Tromey <tromey@redhat.com>
9207
9208 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9209
9210 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9211
9212 * ada-lang.c (decode_constrained_packed_array): Perform a
9213 minimal coercion for reference with coerce_ref instead of
9214 ada_coerce_ref.
9215
9216 2014-03-17 Tristan Gingold <gingold@adacore.com>
9217
9218 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9219 (darwin_solib_create_inferior_hook): Emit a warning if version
9220 is unhandled.
9221
9222 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9223
9224 * python/py-value.c (get_field_flag): Cast flag_name argument to
9225 PyObject_GetAttrString to support Python 2.4.
9226
9227 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9228
9229 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9230 (Global Maintainers): Remove Jan Kratochvil.
9231
9232 2014-03-14 Pedro Alves <palves@redhat.com>
9233
9234 * inferior.h (terminal_ours_for_output): Rename to ...
9235 (child_terminal_ours_for_output): ... this.
9236 (terminal_save_ours): Rename to ...
9237 (child_terminal_save_ours): ... this.
9238 (terminal_ours): Rename to ...
9239 (child_terminal_ours): ... this.
9240 (terminal_inferior): Rename to ...
9241 (child_terminal_inferior): ... this.
9242 (terminal_init_inferior): Rename to ...
9243 (child_terminal_init_inferior): ... this.
9244 (terminal_init_inferior_with_pgrp): Rename to ...
9245 (child_terminal_init_inferior_with_pgrp): ... this.
9246 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9247 (child_terminal_init_with_pgrp): ... this.
9248 (terminal_save_ours): Rename to ...
9249 (child_terminal_save_ours): ... this.
9250 (terminal_init_inferior): Rename to ...
9251 (child_terminal_init): ... this. Adjust.
9252 (terminal_inferior): Rename to ...
9253 (child_terminal_inferior): ... this.
9254 (terminal_ours_for_output): Rename to ...
9255 (child_terminal_ours_for_output): ... this. Adjust.
9256 (terminal_ours): Rename to ...
9257 (child_terminal_ours): ... this.
9258 (terminal_ours_1): Rename to ...
9259 (child_terminal_ours_1): ... this. Adjust.
9260 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9261 * windows-nat.c (do_initial_windows_stuff): Adjust.
9262 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9263 (gnu_terminal_init): ... this. Adjust.
9264 (gnu_target): Adjust.
9265 * inf-child.c (inf_child_target): Adjust.
9266
9267 2014-03-13 Doug Evans <xdje42@gmail.com>
9268
9269 PR guile/16612
9270 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9271 new eq?-hashtab.
9272
9273 2014-03-13 Doug Evans <xdje42@gmail.com>
9274
9275 * value.c (record_latest_value): Call release_value_or_incref
9276 instead of release_value.
9277
9278 2014-03-13 Pedro Alves <palves@redhat.com>
9279
9280 * procfs.c (procfs_target): Don't override to_shortname,
9281 to_longname or to_doc.
9282
9283 2014-03-13 Pedro Alves <palves@redhat.com>
9284
9285 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9286 Unix in user visible strings.
9287
9288 2014-03-12 Stan Shebs <stan@codesourcery.com>
9289
9290 * gdbtypes.h: Annotate comments for Doxygen, add a page
9291 block comment with some general info.
9292
9293 2014-03-12 Pedro Alves <palves@redhat.com>
9294
9295 * infcmd.c (prepare_execution_command): New function, factored out
9296 from several execution commands.
9297 (run_command_1, continue_command, step_1, jump_command)
9298 (signal_command, until_command, advance_command, finish_command)
9299 (attach_command): Use prepare_execution_command.
9300
9301 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9302
9303 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9304 (MAX_BPTS): Define.
9305 (MAX_WPTS): Define.
9306 (struct arm_linux_thread_points): Removed.
9307 (struct arm_linux_process_info): New.
9308 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9309 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9310 (arm_linux_find_breakpoints_by_tid): Removed.
9311 (struct arch_lwp_info): New.
9312 (arm_linux_find_process_pid): New functions.
9313 (arm_linux_add_process): New functions.
9314 (arm_linux_process_info_get): New functions.
9315 (arm_linux_forget_process): New function.
9316 (arm_linux_get_debug_reg_state): New function.
9317 (struct update_registers_data): New.
9318 (update_registers_callback): New function.
9319 (arm_linux_insert_hw_breakpoint1): Updated.
9320 (arm_linux_remove_hw_breakpoint1): Updated.
9321 (arm_linux_insert_hw_breakpoint): Updated.
9322 (arm_linux_remove_hw_breakpoint): Updated.
9323 (arm_linux_insert_watchpoint): Updated.
9324 (arm_linux_remove_watchpoint): Updated.
9325 (arm_linux_new_thread): Updated.
9326 (arm_linux_prepare_to_resume): New function.
9327 (arm_linux_new_fork): New function.
9328 (_initialize_arm_linux_nat): Updated.
9329
9330 2014-03-12 Pedro Alves <palves@redhat.com>
9331
9332 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9333
9334 2014-03-12 Tom Tromey <tromey@redhat.com>
9335
9336 * inf-child.c (return_zero): New function.
9337 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9338 * aix-thread.c (aix_thread_inferior_created): New function.
9339 (aix_thread_attach): Remove.
9340 (init_aix_thread_ops): Don't set to_attach.
9341 (_initialize_aix_thread): Register inferior_created observer.
9342 * corelow.c (init_core_ops): Don't set to_attach or
9343 to_create_inferior.
9344 * exec.c (init_exec_ops): Don't set to_attach or
9345 to_create_inferior.
9346 * infcmd.c (run_command_1): Use find_run_target. Make direct
9347 target calls.
9348 (attach_command): Use find_attach_target. Make direct target
9349 calls.
9350 * record-btrace.c (init_record_btrace_ops): Don't set
9351 to_create_inferior.
9352 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9353 Remove.
9354 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9355 set to_create_inferior.
9356 * target.c (complete_target_initialization): Add assertion.
9357 (target_create_inferior): Remove.
9358 (find_default_attach, find_default_create_inferior): Remove.
9359 (find_attach_target, find_run_target): New functions.
9360 (find_default_is_async_p, find_default_can_async_p)
9361 (target_supports_non_stop, target_attach): Remove.
9362 (init_dummy_target): Don't set to_create_inferior or
9363 to_supports_non_stop.
9364 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9365 TARGET_DEFAULT_FUNC.
9366 <to_create_inferior>: Add comment.
9367 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9368 TARGET_DEFAULT_RETURN.
9369 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9370 (find_attach_target, find_run_target): Declare.
9371 (target_create_inferior): Remove.
9372 (target_has_execution_1): Update comment.
9373 (target_supports_non_stop): Remove.
9374 * target-delegates.c: Rebuild.
9375
9376 2014-03-12 Pedro Alves <palves@redhat.com>
9377
9378 * inf-child.h: Update comment to not mention Unix.
9379
9380 2014-03-12 Pedro Alves <palves@redhat.com>
9381
9382 * inf-child.c: Update top comment to not mention Unix. Add
9383 generic comment describing how this target is meant to be used.
9384 (inf_child_post_attach, inf_child_post_startup_inferior)
9385 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9386 Unix in comment.
9387
9388 2014-03-12 Pedro Alves <palves@redhat.com>
9389
9390 * nto-procfs.c: Include inf-child.h.
9391 (procfs_ops): Delete global.
9392 (procfs_can_run): Delete method.
9393 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9394 target pointer instead of referencing procfs_ops.
9395 (procfs_prepare_to_store): Delete.
9396 (init_procfs_ops): Delete function.
9397 (procfs_target): New function, based on init_procfs_ops, but
9398 inherit inf_child_target.
9399 (_initialize_procfs): Use procfs_target.
9400
9401 2014-03-12 Pedro Alves <palves@redhat.com>
9402
9403 * windows-nat.c: Include inf-child.h.
9404 (windows_ops): Delete global.
9405 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9406 methods.
9407 (init_windows_ops): Delete function.
9408 (windows_target): New function, based on init_windows_ops, but
9409 inherit inf_child_target.
9410 (_initialize_windows_nat): Use windows_target. Install x86
9411 specific target methods here.
9412
9413 2014-03-10 Doug Evans <xdje42@gmail.com>
9414
9415 * guile/guile.c (call_initialize_gdb_module): New function.
9416 (initialize_guile): Replace call to scm_init_guile with call to
9417 scm_with_guile.
9418
9419 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9420
9421 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9422 in call to TYPE_CODE macro.
9423
9424 2014-03-10 Jerome Guitton <guitton@adacore.com>
9425
9426 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9427 Resolve tagged types to full view.
9428
9429 2014-03-10 Hui Zhu <hui@codesourcery.com>
9430
9431 * target.h (target_insert_breakpoint): Remove "hardware" from its
9432 comments.
9433
9434 2014-03-07 Doug Evans <dje@google.com>
9435
9436 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9437
9438 2014-03-07 Doug Evans <dje@google.com>
9439
9440 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9441 Remove unused local comp_dir_attr. Assert exactly one of
9442 stub_comp_unit_die, stub_comp_dir is non-NULL.
9443
9444 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9445
9446 * target.h (complete_target_initialization, add_target):
9447 Add comment.
9448
9449 2014-03-07 Pedro Alves <palves@redhat.com>
9450
9451 * go32-nat.c: Include inf-child.h.
9452 (go32_ops): Delete global.
9453 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9454 Delete methods.
9455 (go32_create_inferior): Push the passed in target pointer instead
9456 of referencing go32_ops.
9457 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9458 (go32_target): New function, based on init_go32_ops, but inherit
9459 inf_child_target.
9460 (_initialize_go32_nat): Use go32_target. Move parts of
9461 init_go32_ops here.
9462
9463 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9464
9465 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9466 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9467 SYMBOL_VALUE_ADDRESS.
9468 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9469
9470 2014-03-06 Yao Qi <yao@codesourcery.com>
9471
9472 * breakpoint.c (get_tracepoint_by_number): Remove argument
9473 optional_p. All callers updated. Adjust comments. Update
9474 output message.
9475 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9476
9477 2014-03-06 Yao Qi <yao@codesourcery.com>
9478
9479 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9480 early if get_number returns zero. Use 'p' instead of 'args'.
9481
9482 2014-03-06 Yao Qi <yao@codesourcery.com>
9483
9484 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9485 message.
9486
9487 2014-03-06 Yao Qi <yao@codesourcery.com>
9488
9489 PR breakpoints/16508
9490 * tracepoint.c (check_trace_running): New function.
9491 (trace_find_command): Move code to check_trace_running and
9492 call check_trace_running.
9493 (trace_find_pc_command): Likewise.
9494 (trace_find_tracepoint_command): Likewise.
9495 (trace_find_line_command): Likewise.
9496 (trace_find_range_command): Likewise.
9497 * tracepoint.h (check_trace_running): Likewise.
9498 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9499
9500 2014-03-06 Yao Qi <yao@codesourcery.com>
9501
9502 * target.h (struct target_ops) <to_traceframe_info>: Use
9503 TARGET_DEFAULT_NORETURN (tcomplain ()).
9504 * target-delegates.c: Regenerated.
9505
9506 2014-03-05 Pedro Alves <palves@redhat.com>
9507
9508 PR gdb/16575
9509 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9510 void. Update comment.
9511 (dcache_xfer_memory): Delete.
9512 (dcache_read_memory_partial): New, based on the read bits of
9513 dcache_xfer_memory.
9514 (dcache_update): Add status parameter. Use ULONGEST for len, and
9515 adjust. Discard cache lines if the reason for the update was
9516 error.
9517 * dcache.h (dcache_xfer_memory): Delete declaration.
9518 (dcache_read_memory_partial): New declaration.
9519 (dcache_update): Update prototype.
9520 * target.c (raw_memory_xfer_partial): Update the dcache here.
9521 (memory_xfer_partial_1): Don't handle dcache writes here.
9522
9523 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9524
9525 * remote-sim.c (gdbsim_load): Add const to prog.
9526
9527 2014-03-03 Tom Tromey <tromey@redhat.com>
9528
9529 * elfread.c (probe_key): Change to bfd_data.
9530 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9531 now per-BFD, not per-objfile.
9532 * stap-probe.c (stap_probe_destroy): Update comment.
9533 (handle_stap_probe): Allocate on the per-BFD obstack.
9534
9535 2014-03-03 Tom Tromey <tromey@redhat.com>
9536
9537 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9538 * breakpoint.c (create_longjmp_master_breakpoint): Use
9539 get_probe_address.
9540 (add_location_to_breakpoint, bkpt_probe_insert_location)
9541 (bkpt_probe_remove_location): Update.
9542 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9543 * elfread.c (elf_symfile_relocate_probe): Remove.
9544 (elf_probe_fns): Update.
9545 (insert_exception_resume_breakpoint): Change type of "probe"
9546 parameter to bound_probe.
9547 (check_exception_resume): Update.
9548 * objfiles.c (objfile_relocate1): Don't relocate probes.
9549 * probe.c (bound_probe_s): New typedef.
9550 (parse_probes): Use get_probe_address. Set sal's objfile.
9551 (find_probe_by_pc): Return a bound_probe.
9552 (collect_probes): Return a VEC(bound_probe_s).
9553 (compare_probes): Update.
9554 (gen_ui_out_table_header_info): Change type of "probes"
9555 parameter. Update.
9556 (info_probes_for_ops): Update.
9557 (get_probe_address): New function.
9558 (probe_safe_evaluate_at_pc): Update.
9559 * probe.h (struct probe_ops) <get_probe_address>: New field.
9560 <set_semaphore, clear_semaphore>: Add objfile parameter.
9561 (struct probe) <objfile>: Remove field.
9562 <arch>: New field.
9563 <address>: Update comment.
9564 (struct bound_probe): New.
9565 (find_probe_by_pc): Return a bound_probe.
9566 (get_probe_address): Declare.
9567 * solib-svr4.c (struct probe_and_action) <address>: New field.
9568 (hash_probe_and_action, equal_probe_and_action): Update.
9569 (register_solib_event_probe): Add address parameter.
9570 (solib_event_probe_at): Update.
9571 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9572 get_probe_address.
9573 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9574 (stap_get_probe_address): New function.
9575 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9576 (compile_probe_arg): Update.
9577 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9578 address.
9579 (handle_stap_probe): Don't relocate the probe.
9580 (stap_relocate): Remove.
9581 (stap_gen_info_probes_table_values): Update.
9582 (stap_probe_ops): Remove stap_relocate.
9583 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9584 (debug_sym_probe_fns): Update.
9585 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9586 * symtab.c (init_sal): Use memset.
9587 * symtab.h (struct symtab_and_line) <objfile>: New field.
9588 * tracepoint.c (start_tracing, stop_tracing): Update.
9589
9590 2014-03-03 Tom Tromey <tromey@redhat.com>
9591
9592 * probe.h (parse_probes, find_probe_by_pc)
9593 (find_probes_in_objfile): Fix comments.
9594
9595 2014-03-02 Doug Evans <xdje42@gmail.com>
9596
9597 * infrun.c (handle_signal_stop): Replace test for
9598 TARGET_WAITKIND_STOPPED with an assert.
9599
9600 2014-03-02 Doug Evans <xdje42@gmail.com>
9601
9602 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9603
9604 2014-03-02 Doug Evans <xdje42@gmail.com>
9605
9606 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9607
9608 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9609
9610 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9611
9612 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9613
9614 * i386obsd-nat.c: Include "obsd-nat.h".
9615 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9616 add_target.
9617 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9618
9619 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9620
9621 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9622
9623 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9624
9625 * mips64obsd-nat.c: Include "obsd-nath".
9626 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9627 add_target
9628 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9629
9630 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9631
9632 * amd64obsd-nat.c: Include "obsd-nat,h.
9633 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9634 add_target.
9635 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9636
9637 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9638
9639 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9640 (find_overload_match): Update call to find_oload_champ.
9641 (find_oload_champ_namespace_loop): Likewise
9642
9643 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9644
9645 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9646
9647 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9648 * config/sparc/obsd64.mh: New file.
9649 * sparc64obsd-nat.c: New file.
9650
9651 * obsd-nat.h: New file.
9652 * obsd-nat.c: New file.
9653 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9654 (ALLDEPFILES): Add obsd-nat.c.
9655
9656 2014-02-28 Tom Tromey <tromey@redhat.com>
9657
9658 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9659 * cli-out.h (cli_ui_out_impl): Now const.
9660 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9661 * ui-out.c (struct ui_out) <impl>: Now const.
9662 (default_ui_out_impl): Now const.
9663 (ui_out_new): Make 'impl' parameter const.
9664 * ui-out.h (ui_out_new): Update.
9665
9666 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9667
9668 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9669
9670 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9671
9672 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9673
9674 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9675
9676 Additional PR 8882 fix.
9677 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9678
9679 2014-02-27 Pedro Alves <palves@redhat.com>
9680
9681 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9682 isn't set.
9683
9684 2014-02-27 Pedro Alves <palves@redhat.com>
9685
9686 PR 12702
9687 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9688 * nat/linux-waitpid.c: Include string.h.
9689 (status_to_str): Moved here and made extern.
9690 * nat/linux-waitpid.h (status_to_str): New declaration.
9691
9692 2014-02-27 Hui Zhu <hui@codesourcery.com>
9693
9694 PR 12702
9695 * infrun.c (ptid_match): Move ...
9696 * common/ptid.c (ptid_match): ... here.
9697 * inferior.h (ptid_match): Move ...
9698 * common/ptid.h (ptid_match): ... here.
9699
9700 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9701
9702 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9703 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9704 gdb_target_obs.
9705
9706 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9707
9708 * obsd-tdep.c (obsd_auxv_parse): New function.
9709 (obsd_init_abi): Set auxv_parse.
9710
9711 * gdbarch.sh (auxv_parse): New.
9712 * gdbarch.h: Regenerated.
9713 * gdbarch.c: Regenerated.
9714 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9715
9716 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9717
9718 * guile/scm-value.c (gdbscm_history_append_x): New function.
9719 (value_functions): Add it.
9720
9721 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9722
9723 * dwarf2read.c (attr_value_as_address): New function.
9724 (dwarf2_find_base_address, read_call_site_scope): Use
9725 attr_value_as_address in place of DW_ADDR.
9726 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9727 the low and high addresses. Slight rework of the handling
9728 of the high pc being a constant form, and limit it to
9729 DWARF verson 4 or higher.
9730 (dwarf2_record_block_ranges): Likewise.
9731 (read_partial_die): Likewise.
9732 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9733
9734 2014-02-26 Tom Tromey <tromey@redhat.com>
9735
9736 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9737
9738 2014-02-26 Tom Tromey <tromey@redhat.com>
9739
9740 * elfread.c (elf_read_minimal_symbols): Return early if
9741 minimal symbols have already been read. Add "ei" parameter.
9742 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9743 * minsyms.c (prim_record_minimal_symbol_full): Update.
9744 * objfiles.h (struct objstats) <n_minsyms>: Move...
9745 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9746 * symmisc.c (print_objfile_statistics): Update.
9747
9748 2014-02-26 Tom Tromey <tromey@redhat.com>
9749
9750 * elfread.c (elf_read_minimal_symbols): New function, from
9751 elf_symfile_read.
9752 (elf_symfile_read): Call it.
9753
9754 2014-02-26 Tom Tromey <tromey@redhat.com>
9755
9756 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9757 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9758 (lookup_minimal_symbol_solib_trampoline)
9759 (lookup_minimal_symbol_by_pc_section_1)
9760 (lookup_minimal_symbol_and_objfile): Update.
9761 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9762 Don't allocate a minimal symbol if minsyms have already been read.
9763 (build_minimal_symbol_hash_tables): Update.
9764 (install_minimal_symbols): Do nothing if minsyms already read.
9765 Use the per-BFD obstack.
9766 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9767 * objfiles.c (allocate_objfile): Call
9768 terminate_minimal_symbol_table later.
9769 (have_minimal_symbols): Update.
9770 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9771 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9772 Move from struct objfile.
9773 <minsyms_read>: New field.
9774 (struct objfile) <msymbols, minimal_symbol_count,
9775 msymbol_hash, msymbol_demangled_hash>: Move.
9776 (ALL_OBJFILE_MSYMBOLS): Update.
9777 * symfile.c (read_symbols): Set minsyms_read.
9778 (reread_symbols): Update.
9779 * symmisc.c (dump_objfile, dump_msymbols): Update.
9780
9781 2014-02-26 Tom Tromey <tromey@redhat.com>
9782
9783 * minsyms.c (msymbols_sort): Remove.
9784 * minsyms.h (msymbols_sort): Remove.
9785 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9786 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9787 * elfread.c (elf_symtab_read): Don't add section offsets.
9788 * xcoffread.c (record_minimal_symbol): Don't add section offset
9789 to minimal symbol address.
9790 * somread.c (text_offset, data_offset): Remove.
9791 (som_symtab_read): Don't add section offsets to minimal symbol
9792 addresses.
9793 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9794 Don't add section offsets to minimal symbols.
9795 * coffread.c (coff_symtab_read): Don't add section offsets
9796 to minimal symbol addresses.
9797 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9798 to minimal symbol addresses.
9799 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9800 section offset to minimal symbol addresses.
9801 * mdebugread.c (parse_partial_symbols): Don't add section
9802 offset to minimal symbol addresses.
9803 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9804 offset to minimal symbol addresses.
9805
9806 2014-02-26 Tom Tromey <tromey@redhat.com>
9807
9808 * ada-lang.c (ada_main_name): Update.
9809 (ada_add_standard_exceptions): Update.
9810 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9811 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9812 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9813 * auxv.c (ld_so_xfer_auxv): Update.
9814 * avr-tdep.c (avr_scan_prologue): Update.
9815 * ax-gdb.c (gen_var_ref): Update.
9816 * blockframe.c (get_pc_function_start)
9817 (find_pc_partial_function_gnu_ifunc): Update.
9818 * breakpoint.c (create_overlay_event_breakpoint)
9819 (create_longjmp_master_breakpoint)
9820 (create_std_terminate_master_breakpoint)
9821 (create_exception_master_breakpoint): Update.
9822 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9823 * c-valprint.c (c_val_print): Update.
9824 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9825 * common/agent.c (agent_look_up_symbols): Update.
9826 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9827 * dwarf2loc.c (call_site_to_target_addr): Update.
9828 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9829 * elfread.c (elf_gnu_ifunc_record_cache)
9830 (elf_gnu_ifunc_resolve_by_got): Update.
9831 * findvar.c (default_read_var_value): Update.
9832 * frame.c (inside_main_func): Update.
9833 * frv-tdep.c (frv_frame_this_id): Update.
9834 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9835 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9836 Update.
9837 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9838 (hppa_hpux_find_dummy_bpaddr): Update.
9839 * hppa-tdep.c (hppa_symbol_address): Update.
9840 * infcmd.c (until_next_command): Update.
9841 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9842 Update.
9843 * linespec.c (minsym_found, add_minsym): Update.
9844 * linux-nat.c (get_signo): Update.
9845 * linux-thread-db.c (inferior_has_bug): Update.
9846 * m32c-tdep.c (m32c_return_value)
9847 (m32c_m16c_address_to_pointer): Update.
9848 * m32r-tdep.c (m32r_frame_this_id): Update.
9849 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9850 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9851 * maint.c (maintenance_translate_address): Update.
9852 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9853 (frob_address): New function.
9854 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9855 frob_address. Rename parameter to "pc_in".
9856 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9857 addresses.
9858 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9859 Update.
9860 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9861 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9862 * objc-lang.c (find_objc_msgsend): Update.
9863 * objfiles.c (objfile_relocate1): Update.
9864 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9865 * p-valprint.c (pascal_val_print): Update.
9866 * parse.c (write_exp_msymbol): Update.
9867 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9868 (ppc_elfv2_skip_entrypoint): Update.
9869 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9870 * printcmd.c (build_address_symbolic, msym_info)
9871 (address_info): Update.
9872 * proc-service.c (ps_pglobal_lookup): Update.
9873 * psymtab.c (find_pc_sect_psymtab_closer)
9874 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9875 Change msymbol parameter to bound_minimal_symbol.
9876 * ravenscar-thread.c (get_running_thread_id): Update.
9877 * remote.c (remote_check_symbols): Update.
9878 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9879 address.
9880 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9881 * solib-dsbt.c (lm_base): Update.
9882 * solib-frv.c (lm_base, main_got): Update.
9883 * solib-irix.c (locate_base): Update.
9884 * solib-som.c (som_solib_create_inferior_hook)
9885 (link_map_start): Update.
9886 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9887 * solib-svr4.c (elf_locate_base, enable_break): Update.
9888 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9889 (flush_ea_cache): Update.
9890 * stabsread.c (define_symbol, scan_file_globals): Update.
9891 * stack.c (find_frame_funname): Update.
9892 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9893 (debug_qf_find_pc_sect_symtab): Update.
9894 * symfile.c (simple_read_overlay_table)
9895 (simple_overlay_update): Update.
9896 * symfile.h (struct quick_symbol_functions)
9897 <find_pc_sect_symtab>: Change type of msymbol to
9898 bound_minimal_symbol.
9899 * symmisc.c (dump_msymbols): Update.
9900 * symtab.c (find_pc_sect_symtab_via_partial)
9901 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9902 (search_symbols, print_msymbol_info): Update.
9903 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9904 (MSYMBOL_VALUE_ADDRESS): Redefine.
9905 (BMSYMBOL_VALUE_ADDRESS): New macro.
9906 * tracepoint.c (scope_info): Update.
9907 * tui/tui-disasm.c (tui_find_disassembly_address)
9908 (tui_get_begin_asm_address): Update.
9909 * valops.c (find_function_in_inferior): Update.
9910 * value.c (value_static_field, value_fn_field): Update.
9911
9912 2014-02-26 Tom Tromey <tromey@redhat.com>
9913
9914 * ada-lang.c (ada_update_initial_language): Update.
9915 (ada_main_name, ada_has_this_exception_support): Update.
9916 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9917 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9918 * arm-tdep.c (arm_skip_stub): Update.
9919 * auxv.c (ld_so_xfer_auxv): Update.
9920 * avr-tdep.c (avr_scan_prologue): Update.
9921 * ax-gdb.c (gen_var_ref): Update.
9922 * breakpoint.c (struct breakpoint_objfile_data)
9923 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9924 type to bound_minimal_symbol.
9925 (create_overlay_event_breakpoint)
9926 (create_longjmp_master_breakpoint)
9927 (create_std_terminate_master_breakpoint)
9928 (create_exception_master_breakpoint): Update.
9929 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9930 * c-exp.y (classify_name): Update.
9931 * coffread.c (coff_symfile_read): Update.
9932 * common/agent.c (agent_look_up_symbols): Update.
9933 * d-lang.c (d_main_name): Update.
9934 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9935 * dec-thread.c (enable_dec_thread): Update.
9936 * dwarf2loc.c (call_site_to_target_addr): Update.
9937 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9938 * eval.c (evaluate_subexp_standard): Update.
9939 * findvar.c (struct minsym_lookup_data) <result>: Change type
9940 to bound_minimal_symbol.
9941 <objfile>: Remove.
9942 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9943 * frame.c (inside_main_func): Update.
9944 * frv-tdep.c (frv_frame_this_id): Update.
9945 * gcore.c (call_target_sbrk): Update.
9946 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9947 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9948 Update.
9949 * go-lang.c (go_main_name): Update.
9950 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9951 (hppa_hpux_find_import_stub_for_addr): Update.
9952 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9953 Update. Change return type.
9954 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9955 type.
9956 * jit.c (jit_breakpoint_re_set_internal): Update.
9957 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9958 Update.
9959 * linux-nat.c (get_signo): Update.
9960 * linux-thread-db.c (inferior_has_bug): Update
9961 * m32c-tdep.c (m32c_return_value)
9962 (m32c_m16c_address_to_pointer): Update.
9963 * m32r-tdep.c (m32r_frame_this_id): Update.
9964 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9965 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9966 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9967 lookup_minimal_symbol. Change return type.
9968 (lookup_minimal_symbol): Remove.
9969 (lookup_bound_minimal_symbol): Update.
9970 (lookup_minimal_symbol_text): Change return type.
9971 (lookup_minimal_symbol_solib_trampoline): Change return type.
9972 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9973 (lookup_minimal_symbol_solib_trampoline): Change return type.
9974 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9975 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9976 (value_nsstring, find_imps): Update.
9977 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9978 * p-lang.c (pascal_main_name): Update.
9979 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9980 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9981 * proc-service.c (ps_pglobal_lookup): Update.
9982 * ravenscar-thread.c (get_running_thread_msymbol): Change
9983 return type.
9984 (has_ravenscar_runtime, get_running_thread_id): Update.
9985 * remote.c (remote_check_symbols): Update.
9986 * sol-thread.c (ps_pglobal_lookup): Update.
9987 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9988 * solib-dsbt.c (lm_base): Update.
9989 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9990 Update.
9991 * solib-irix.c (locate_base): Update.
9992 * solib-som.c (som_solib_create_inferior_hook)
9993 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9994 Update.
9995 * solib-spu.c (spu_enable_break): Update.
9996 * solib-svr4.c (elf_locate_base, enable_break): Update.
9997 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9998 (flush_ea_cache): Update.
9999 * stabsread.c (define_symbol): Update.
10000 * symfile.c (simple_read_overlay_table): Update.
10001 * symtab.c (find_pc_sect_line): Update.
10002 * tracepoint.c (scope_info): Update.
10003 * tui-disasm.c (tui_get_begin_asm_address): Update.
10004 * value.c (value_static_field): Update.
10005
10006 2014-02-26 Tom Tromey <tromey@redhat.com>
10007
10008 * minsyms.c (prim_record_minimal_symbol_full): Use
10009 SET_MSYMBOL_VALUE_ADDRESS.
10010 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10011 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10012 SET_MSYMBOL_VALUE_ADDRESS.
10013 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10014 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10015
10016 2014-02-26 Tom Tromey <tromey@redhat.com>
10017
10018 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10019 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10020 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10021 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10022 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10023 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10024 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10025 * ada-lang.c (ada_main_name): Update.
10026 (ada_lookup_simple_minsym): Update.
10027 (ada_make_symbol_completion_list): Update.
10028 (ada_add_standard_exceptions): Update.
10029 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10030 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10031 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10032 * arm-tdep.c (skip_prologue_function): Update.
10033 (arm_skip_stack_protector, arm_skip_stub): Update.
10034 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10035 (arm_wince_skip_main_prologue): Update.
10036 * auxv.c (ld_so_xfer_auxv): Update.
10037 * avr-tdep.c (avr_scan_prologue): Update.
10038 * ax-gdb.c (gen_var_ref): Update.
10039 * block.c (call_site_for_pc): Update.
10040 * blockframe.c (get_pc_function_start): Update.
10041 (find_pc_partial_function_gnu_ifunc): Update.
10042 * breakpoint.c (create_overlay_event_breakpoint): Update.
10043 (create_longjmp_master_breakpoint): Update.
10044 (create_std_terminate_master_breakpoint): Update.
10045 (create_exception_master_breakpoint): Update.
10046 (resolve_sal_pc): Update.
10047 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10048 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10049 Update.
10050 * c-valprint.c (c_val_print): Update.
10051 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10052 * coffread.c (coff_symfile_read): Update.
10053 * common/agent.c (agent_look_up_symbols): Update.
10054 * dbxread.c (find_stab_function_addr): Update.
10055 (end_psymtab): Update.
10056 * dwarf2loc.c (call_site_to_target_addr): Update.
10057 (func_verify_no_selftailcall): Update.
10058 (tailcall_dump): Update.
10059 (call_site_find_chain_1): Update.
10060 (dwarf_expr_reg_to_entry_parameter): Update.
10061 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10062 (elf_gnu_ifunc_resolve_by_got): Update.
10063 * f-valprint.c (info_common_command): Update.
10064 * findvar.c (read_var_value): Update.
10065 * frame.c (get_prev_frame_1): Update.
10066 (inside_main_func): Update.
10067 * frv-tdep.c (frv_skip_main_prologue): Update.
10068 (frv_frame_this_id): Update.
10069 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10070 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10071 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10072 (gnuv3_skip_trampoline): Update.
10073 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10074 (hppa64_hpux_in_solib_call_trampoline): Update.
10075 (hppa_hpux_skip_trampoline_code): Update.
10076 (hppa64_hpux_search_dummy_call_sequence): Update.
10077 (hppa_hpux_find_import_stub_for_addr): Update.
10078 (hppa_hpux_find_dummy_bpaddr): Update.
10079 * hppa-tdep.c (hppa_symbol_address)
10080 (hppa_lookup_stub_minimal_symbol): Update.
10081 * i386-tdep.c (i386_skip_main_prologue): Update.
10082 (i386_pe_skip_trampoline_code): Update.
10083 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10084 * infcall.c (get_function_name): Update.
10085 * infcmd.c (until_next_command): Update.
10086 * jit.c (jit_breakpoint_re_set_internal): Update.
10087 (jit_inferior_init): Update.
10088 * linespec.c (minsym_found): Update.
10089 (add_minsym): Update.
10090 * linux-fork.c (info_checkpoints_command): Update.
10091 * linux-nat.c (get_signo): Update.
10092 * linux-thread-db.c (inferior_has_bug): Update.
10093 * m32c-tdep.c (m32c_return_value): Update.
10094 (m32c_m16c_address_to_pointer): Update.
10095 (m32c_m16c_pointer_to_address): Update.
10096 * m32r-tdep.c (m32r_frame_this_id): Update.
10097 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10098 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10099 * maint.c (maintenance_translate_address): Update.
10100 * minsyms.c (add_minsym_to_hash_table): Update.
10101 (add_minsym_to_demangled_hash_table): Update.
10102 (msymbol_objfile): Update.
10103 (lookup_minimal_symbol): Update.
10104 (iterate_over_minimal_symbols): Update.
10105 (lookup_minimal_symbol_text): Update.
10106 (lookup_minimal_symbol_by_pc_name): Update.
10107 (lookup_minimal_symbol_solib_trampoline): Update.
10108 (lookup_minimal_symbol_by_pc_section_1): Update.
10109 (lookup_minimal_symbol_and_objfile): Update.
10110 (prim_record_minimal_symbol_full): Update.
10111 (compare_minimal_symbols): Update.
10112 (compact_minimal_symbols): Update.
10113 (build_minimal_symbol_hash_tables): Update.
10114 (install_minimal_symbols): Update.
10115 (terminate_minimal_symbol_table): Update.
10116 (find_solib_trampoline_target): Update.
10117 (minimal_symbol_upper_bound): Update.
10118 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10119 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10120 (mips_skip_pic_trampoline_code): Update.
10121 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10122 * objc-lang.c (selectors_info): Update.
10123 (classes_info): Update.
10124 (find_methods): Update.
10125 (find_imps): Update.
10126 (find_objc_msgsend): Update.
10127 * objfiles.c (objfile_relocate1): Update.
10128 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10129 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10130 * p-valprint.c (pascal_val_print): Update.
10131 * parse.c (write_exp_msymbol): Update.
10132 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10133 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10134 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10135 * printcmd.c (build_address_symbolic): Update.
10136 (sym_info): Update.
10137 (address_info): Update.
10138 * proc-service.c (ps_pglobal_lookup): Update.
10139 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10140 (find_pc_sect_psymtab): Update.
10141 * python/py-framefilter.c (py_print_frame): Update.
10142 * ravenscar-thread.c (get_running_thread_id): Update.
10143 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10144 Update.
10145 * remote.c (remote_check_symbols): Update.
10146 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10147 (rs6000_skip_trampoline_code): Update.
10148 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10149 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10150 * solib-dsbt.c (lm_base): Update.
10151 * solib-frv.c (lm_base): Update.
10152 (main_got): Update.
10153 * solib-irix.c (locate_base): Update.
10154 * solib-som.c (som_solib_create_inferior_hook): Update.
10155 (som_solib_desire_dynamic_linker_symbols): Update.
10156 (link_map_start): Update.
10157 * solib-spu.c (spu_enable_break): Update.
10158 (ocl_enable_break): Update.
10159 * solib-svr4.c (elf_locate_base): Update.
10160 (enable_break): Update.
10161 * spu-tdep.c (spu_get_overlay_table): Update.
10162 (spu_catch_start): Update.
10163 (flush_ea_cache): Update.
10164 * stabsread.c (define_symbol): Update.
10165 (scan_file_globals): Update.
10166 * stack.c (find_frame_funname): Update.
10167 (frame_info): Update.
10168 * symfile.c (simple_read_overlay_table): Update.
10169 (simple_overlay_update): Update.
10170 * symmisc.c (dump_msymbols): Update.
10171 * symtab.c (fixup_section): Update.
10172 (find_pc_sect_line): Update.
10173 (skip_prologue_sal): Update.
10174 (search_symbols): Update.
10175 (print_msymbol_info): Update.
10176 (rbreak_command): Update.
10177 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10178 (completion_list_objc_symbol): Update.
10179 (default_make_symbol_completion_list_break_on): Update.
10180 * tracepoint.c (scope_info): Update.
10181 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10182 (tui_get_begin_asm_address): Update.
10183 * valops.c (find_function_in_inferior): Update.
10184 * value.c (value_static_field): Update.
10185 (value_fn_field): Update.
10186
10187 2014-02-26 Tom Tromey <tromey@redhat.com>
10188
10189 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10190 bound minimal symbols. Move code that knows about minsym
10191 table layout...
10192 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10193 function.
10194 * minsyms.h (minimal_symbol_upper_bound): Declare.
10195 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10196 minimal_symbol_upper_bound.
10197
10198 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10199
10200 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10201 Use the type's name if its basic type does not have a tag.
10202
10203 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10204
10205 * dwarf2read.c (read_subrange_type): Add comment.
10206
10207 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10208
10209 * dwarf2read.c (update_enumeration_type_from_children): New
10210 function, mostly extracted from process_structure_scope.
10211 (read_enumeration_type): Call update_enumeration_type_from_children.
10212 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10213 and flag_flag_enum fields.
10214
10215 2014-02-26 Pedro Alves <palves@redhat.com>
10216
10217 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10218 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10219 to_xfer_partial method.
10220
10221 2014-02-26 Pedro Alves <palves@redhat.com>
10222
10223 * target.c (complete_target_initialization): Don't install
10224 default_xfer_partial as to_xfer_partial hook.
10225 (nomemory): Delete.
10226 (update_current_target): Don't INHERIT nor de_fault
10227 deprecated_xfer_memory. Delete de_fault macro.
10228 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10229 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10230 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10231 field.
10232
10233 2014-02-26 Pedro Alves <palves@redhat.com>
10234
10235 * go32-nat.c (my_write_child): New function.
10236 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10237 (go32_xfer_partial): New function.
10238 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10239 Instead install a to_xfer_partial hook.
10240
10241 2014-02-26 Pedro Alves <palves@redhat.com>
10242
10243 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10244 to_xfer_partial helper. Rewrite.
10245 (procfs_xfer_partial): New function.
10246 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10247 Install a to_xfer_partial hook.
10248
10249 2014-02-26 Pedro Alves <palves@redhat.com>
10250
10251 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10252 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10253 (m32r_xfer_partial): New function.
10254 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10255 Install a to_xfer_partial hook.
10256
10257 2014-02-26 Pedro Alves <palves@redhat.com>
10258
10259 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10260 helper.
10261 (mips_xfer_partial): New function.
10262 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10263 hook. Install a to_xfer_partial hook.
10264
10265 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10266
10267 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10268 * gdbtypes.c (create_array_type_with_stride): New function,
10269 renaming create_array_type, but with an added parameter
10270 called "bit_stride".
10271 (create_array_type): Re-implement using
10272 create_array_type_with_stride.
10273 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10274 and DW_AT_bit_stride attributes.
10275
10276 2014-02-26 Pedro Alves <palves@redhat.com>
10277
10278 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10279 task-specific breakpoints.
10280
10281 2014-02-25 Pedro Alves <palves@redhat.com>
10282
10283 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10284 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10285
10286 2014-02-25 Stan Shebs <stan@codesourcery.com>
10287
10288 * defs.h: Annotate comments for Doxygen.
10289
10290 2014-02-25 Tom Tromey <tromey@redhat.com>
10291
10292 * target.h (target_ignore): Don't declare.
10293 * target.c (target_ignore): Remove.
10294
10295 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10296
10297 PR gdb/16626
10298 * auto-load.c (auto_load_objfile_script_1): Change filename to
10299 debugfile.
10300
10301 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10302
10303 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10304 documentation. Adjust prototype to match the target_ops
10305 to_xfer_partial method. Adjust implementation accordingly.
10306
10307 2014-02-25 Hui Zhu <hui@codesourcery.com>
10308
10309 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10310 to_traceframe_info.
10311
10312 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10313
10314 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10315 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10316 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10317 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10318 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10319 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10320 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10321 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10322 New constants.
10323 (rl78_register_type): Use a data pointer type for SP and
10324 new pseudo registers mentioned above. Use a 16 bit integer
10325 type for all other register pairs.
10326 (rl78_register_name, rl78_g10_register_name): Update for
10327 new pseudo registers.
10328 (rl78_pseudo_register_read): Likewise.
10329 (rl78_pseudo_register_write): Likewise.
10330 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10331 to the newly added pseudo registers.
10332
10333 2014-02-24 Doug Evans <dje@google.com>
10334
10335 * value.c (record_latest_value): Fix comment.
10336 * printcmd.c (print_command_1): Remove code to handle -1 return from
10337 record_latest_value.
10338
10339 2014-02-24 Pedro Alves <palves@redhat.com>
10340
10341 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10342 deprecated_xfer_memory hook.
10343 (procfs_xfer_partial): Call procfs_xfer_memory instead
10344 of the deprecated_xfer_memory target hook.
10345 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10346 helper.
10347
10348 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10349
10350 * windows-nat.c (windows_xfer_shared_libraries): Return
10351 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10352 requested object is TARGET_OBJECT_LIBRARIES.
10353
10354 2014-02-24 Yao Qi <yao@codesourcery.com>
10355
10356 * target.h (enum target_xfer_status)
10357 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10358 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10359 explicitly. New.
10360 * corefile.c (memory_error_message): User updated.
10361 * exec.c (section_table_read_available_memory): Likewise.
10362 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10363 * target.c (target_xfer_status_to_string): Likewise.
10364 (raw_memory_xfer_partial): Likewise.
10365 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10366 * valops.c (read_value_memory): Likewise.
10367 * exec.h: Update comments.
10368
10369 2014-02-24 Yao Qi <yao@codesourcery.com>
10370
10371 * target.c (target_xfer_status_to_string): Rename argument err
10372 to status.
10373 * target.h (target_xfer_status_to_string): Update declaration.
10374 Replace target_xfer_error_to_string with
10375 target_xfer_status_to_string in comment.
10376
10377 2014-02-24 Yao Qi <yao@codesourcery.com>
10378
10379 * mips-linux-nat.c (super_close): Update its type.
10380 (mips_linux_close): Pass 'self' to super_close.
10381
10382 2014-02-24 Yao Qi <yao@codesourcery.com>
10383
10384 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10385 * corefile.c (read_memory): Adjusted.
10386 * target.c (target_write_with_progress): Adjusted.
10387
10388 2014-02-23 Yao Qi <yao@codesourcery.com>
10389
10390 Revert two patches:
10391
10392 2013-10-25 Yao Qi <yao@codesourcery.com>
10393
10394 * remote.c (remote_traceframe_info): Return early if
10395 traceframe is not selected.
10396
10397 2013-07-19 Yao Qi <yao@codesourcery.com>
10398
10399 * target.c (update_current_target): Change the default action
10400 of 'to_traceframe_info' from tcomplain to return_zero.
10401 * target.h (struct target_ops) <to_traceframe_info>: Add more
10402 comments.
10403
10404 2014-02-23 Yao Qi <yao@codesourcery.com>
10405
10406 * valops.c (read_value_memory): Rewrite it. Call
10407 target_xfer_partial in a loop.
10408 * exec.h (section_table_available_memory): Remove declaration.
10409 Move comments to ...
10410 * exec.c (section_table_available_memory): ... here. Make it
10411 static.
10412
10413 2014-02-23 Yao Qi <yao@codesourcery.com>
10414
10415 * exec.c (section_table_read_available_memory): New function.
10416 * exec.h (section_table_read_available_memory): Declare.
10417 * ctf.c (ctf_xfer_partial): Call
10418 section_table_read_available_memory.
10419 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10420
10421 2014-02-23 Yao Qi <yao@codesourcery.com>
10422
10423 * ctf.c (ctf_xfer_partial): Move code to ...
10424 * exec.c (exec_read_partial_read_only): ... it. New function.
10425 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10426 * tracefile.c: Include "exec.h".
10427 * exec.h (exec_read_partial_read_only): Declare.
10428
10429 2014-02-23 Yao Qi <yao@codesourcery.com>
10430
10431 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10432 (tfile_has_memory): Remove.
10433 (init_tfile_ops): Don't set fields to_has_all_memory and
10434 to_has_memory of tfile_ops.
10435 * tracefile.c (tracefile_has_all_memory): New function.
10436 (tracefile_has_memory): New function.
10437 (init_tracefile_ops): Initialize fields to_has_all_memory and
10438 to_has_memory of 'ops'.
10439
10440 2014-02-23 Yao Qi <yao@codesourcery.com>
10441
10442 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10443 (ctf_thread_alive, ctf_get_trace_status): Remove.
10444 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10445 init_tracefile_ops.
10446 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10447 (tfile_has_stack, tfile_has_registers): Remove.
10448 (tfile_thread_alive): Remove.
10449 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10450 init_tracefile_ops.
10451 * tracefile.c (tracefile_has_stack): New function.
10452 (tracefile_has_registers): New function.
10453 (tracefile_thread_alive): New function.
10454 (tracefile_get_trace_status): New function.
10455 (init_tracefile_ops): New function.
10456 * tracefile.h (init_tracefile_ops): Declare.
10457
10458 2014-02-23 Yao Qi <yao@codesourcery.com>
10459
10460 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10461 (O_LARGEFILE): Likewise.
10462 (tfile_ops): Likewise.
10463 (TRACE_HEADER_SIZE): Likewise.
10464 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10465 (cur_data_size): Likewise.
10466 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10467 (tfile_close, tfile_files_info): Likewise.
10468 (tfile_get_trace_status): Likewise.
10469 (tfile_get_tracepoint_status): Likewise.
10470 (tfile_get_traceframe_address): Likewise.
10471 (tfile_trace_find, match_blocktype): Likewise.
10472 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10473 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10474 (tfile_get_trace_state_variable_value): Likewise.
10475 (tfile_has_all_memory, tfile_has_memory): Likewise.
10476 (tfile_has_stack, tfile_has_registers): Likewise.
10477 (tfile_thread_alive, build_traceframe_info): Likewise.
10478 (tfile_traceframe_info, init_tfile_ops): Likewise.
10479 (_initialize_tracepoint): Don't call init_tfile_ops
10480 and add_target_with_completer.
10481 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10482 exec.h, completer.h and filenames.h.
10483 (_initialize_tracefile_tfile): New function.
10484
10485 2014-02-23 Yao Qi <yao@codesourcery.com>
10486
10487 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10488 tracefile-tfile.o.
10489 (HFILES_NO_SRCDIR): Add tracefile.h.
10490 * ctf.c: Include "tracefile.h".
10491 * tracefile.h: New file.
10492 * tracefile.c: New file
10493 * tracefile-tfile.c: New file.
10494 * tracepoint.c: Include "tracefile.h".
10495 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10496 (stop_reason_names): Add const.
10497 (trace_file_writer_xfree): Move it to tracefile.c.
10498 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10499 (trace_save_ctf): Likewise.
10500 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10501 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10502 (tfile_write_header, tfile_write_regblock_type): Likewise.
10503 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10504 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10505 (tfile_write_raw_data, tfile_end): Likewise.
10506 (tfile_trace_file_writer_new): Likewise.
10507 (free_uploaded_tp): Make it extern.
10508 (free_uploaded_tsv): Make it extern.
10509 (_initialize_tracepoint): Move code to register command 'tsave'
10510 to tracefile.c.
10511 * tracepoint.h (stop_reason_names): Declare.
10512 (struct trace_frame_write_ops): Move it to tracefile.h.
10513 (struct trace_file_write_ops): Likewise.
10514 (struct trace_file_writer): Likewise.
10515 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10516
10517 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10518
10519 PR gdb/16594
10520 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10521 process name.
10522 (get_cores_used_by_process): New parameter num_cores, use it.
10523 (linux_xfer_osdata_processes): Pass num_cores to it.
10524 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10525 process name.
10526
10527 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10528
10529 * target.c (memory_xfer_partial): Fix length arg in call to
10530 breakpoint_xfer_memory.
10531
10532 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10533
10534 PR tdep/16397
10535 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10536 number comes after the + or - signs. Adjust length of register
10537 name to be extracted.
10538
10539 2014-02-20 Tom Tromey <tromey@redhat.com>
10540
10541 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10542 (ada_varobj_ops): Mark "extern".
10543
10544 2014-02-20 Tom Tromey <tromey@redhat.com>
10545
10546 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10547
10548 2014-02-20 Doug Evans <xdje42@gmail.com>
10549
10550 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10551 All callers updated.
10552 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10553 All callers updated.
10554 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10555 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10556
10557 2014-02-20 lin zuojian <manjian2006@gmail.com>
10558 Joel Brobecker <brobecker@adacore.com>
10559 Doug Evans <xdje42@gmail.com>
10560
10561 PR symtab/16581
10562 * dwarf2read.c (struct die_info): New member in_process.
10563 (reset_die_in_process): New function.
10564 (process_die): Set it at the start, reset when returning.
10565 (inherit_abstract_dies): Only call process_die if origin_child_die
10566 not already being processed.
10567
10568 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10569
10570 * windows-nat.c (handle_unload_dll): Add function documentation.
10571 (do_initial_windows_stuff): Add comment explaining why we wait
10572 until after inferior initialization has finished before
10573 processing all DLLs.
10574
10575 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10576
10577 * windows-nat.c (get_module_name): Delete.
10578 (windows_get_exec_module_filename): New function, mostly
10579 inspired from get_module_name.
10580 (windows_pid_to_exec_file): Replace call to get_module_name
10581 by call to windows_get_exec_module_filename.
10582
10583 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10584
10585 * windows-nat.c (handle_load_dll): Rewrite this function's
10586 introductory comment. Remove code using get_module_name
10587 to get the DLL's name.
10588
10589 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10590
10591 * windows-nat.c (get_windows_debug_event): Ignore
10592 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10593 if windows_initialization_done == 0.
10594 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10595 Adjust implementation to always load all DLLs.
10596 (do_initial_windows_stuff): Replace call to
10597 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10598
10599 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10600
10601 * windows-nat.c (_initialize_windows_nat): Deprecate the
10602 "dll-symbols" command. Turn the "add-shared-symbol-files"
10603 and "assf" aliases into commands, and deprecate them as well.
10604 * NEWS: Add entry explaining that "dll-symbols" and its two
10605 aliases are now deprecated.
10606
10607 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10608
10609 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10610 new-line in debug string. Remove trailing spaces.
10611
10612 2014-02-19 Stan Shebs <stan@codesourcery.com>
10613
10614 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10615
10616 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10617
10618 * NEWS: Add entry for the new feature
10619 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10620 and class values.
10621
10622 2014-02-19 Stan Shebs <stan@codesourcery.com>
10623
10624 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10625
10626 2014-02-19 Pedro Alves <palves@redhat.com>
10627
10628 * common/ptid.h (struct ptid): Mention that process_stratum
10629 targets should prefer ptid.lwp.
10630
10631 2014-02-19 Pedro Alves <palves@redhat.com>
10632
10633 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10634 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10635 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10636 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10637 store remote thread ids rather than ptid.tid.
10638 (_initialize_remote): Adjust.
10639
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10641
10642 * target.c (target_get_unwinder): Rewrite.
10643 (target_get_tailcall_unwinder): Rewrite.
10644 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10645 (record_btrace_to_get_tailcall_unwinder): New function.
10646 (init_record_btrace_ops): Update.
10647 * target.h (struct target_ops) <to_get_unwinder,
10648 to_get_tailcall_unwinder>: Now function pointers. Use
10649 TARGET_DEFAULT_RETURN.
10650
10651 2014-02-19 Tom Tromey <tromey@redhat.com>
10652
10653 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10654 argument.
10655 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10656
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10658
10659 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10660 directly.
10661 * target-delegates.c: Rebuild.
10662 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10663 TARGET_DEFAULT_FUNC.
10664 * target.c (default_target_decr_pc_after_break): Rename from
10665 forward_target_decr_pc_after_break. Simplify.
10666 (target_decr_pc_after_break): Rely on delegation.
10667
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target.c (update_current_target): Do not INHERIT to_doc or
10671 to_magic. Do not de_fault to_open or to_close.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * gcore.h (objfile_find_memory_regions): Declare.
10676 * gcore.c (objfile_find_memory_regions): No longer static. Add
10677 "self" argument.
10678 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10679 * exec.c: Include gcore.h.
10680 (exec_set_find_memory_regions): Remove.
10681 (exec_find_memory_regions): Remove.
10682 (exec_do_find_memory_regions): Remove.
10683 (init_exec_ops): Update.
10684 * defs.h (exec_set_find_memory_regions): Remove.
10685
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10687
10688 * target-delegates.c: Rebuild.
10689 * target.h (struct target_ops) <to_extra_thread_info,
10690 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10691 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10692 not 0, in TARGET_DEFAULT_RETURN.
10693
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10695
10696 * target.c (complete_target_initialization): Remove casts. Use
10697 return_zero_has_execution.
10698 (return_zero): Add "ignore" argument.
10699 (return_zero_has_execution): New function.
10700 (init_dummy_target): Remove casts. Use
10701 return_zero_has_execution.
10702
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10704
10705 * target.c (update_current_target): Update comments. Do not
10706 INHERIT to_stratum.
10707
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10711 needed.
10712 * corelow.c (core_read_description): Delegate when needed.
10713 * remote.c (remote_read_description): Delegate when needed.
10714 * target-delegates.c: Rebuild.
10715 * target.c (target_read_description): Rewrite.
10716 * target.h (struct target_ops) <to_read_description>: Update
10717 comment. Use TARGET_DEFAULT_RETURN.
10718
10719 2014-02-19 Tom Tromey <tromey@redhat.com>
10720
10721 * target-delegates.c: Rebuild.
10722 * target.c (update_current_target): Don't inherit or default
10723 to_can_run.
10724 (find_default_run_target): Check against delegate_can_run.
10725 * target.h (struct target_ops) <to_can_run>: Use
10726 TARGET_DEFAULT_RETURN.
10727
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (target_disconnect): Unconditionally delegate.
10732 * target.h (struct target_ops) <to_disconnect>: Use
10733 TARGET_DEFAULT_NORETURN.
10734
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * record.c (record_stop): Unconditionally delegate.
10738 * target-delegates.c: Rebuild.
10739 * target.c (target_stop_recording): Unconditionally delegate.
10740 * target.h (struct target_ops) <to_stop_recording>: Use
10741 TARGET_DEFAULT_IGNORE.
10742
10743 2014-02-19 Tom Tromey <tromey@redhat.com>
10744
10745 * target-delegates.c: Rebuild.
10746 * target.c (target_enable_btrace): Unconditionally delegate.
10747 * target.h (struct target_ops) <to_enable_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_read_btrace): Unconditionally delegate.
10754 * target.h (struct target_ops) <to_read_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 (target_teardown_btrace): Unconditionally delegate.
10761 * target.h (struct target_ops) <to_teardown_btrace>: Use
10762 TARGET_DEFAULT_NORETURN.
10763
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target-delegates.c: Rebuild.
10767 * target.c (target_disable_btrace): Unconditionally delegate.
10768 * target.h (struct target_ops) <to_disable_btrace>: Use
10769 TARGET_DEFAULT_NORETURN.
10770
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target-delegates.c: Rebuild.
10774 * target.c (default_search_memory): New function.
10775 (simple_search_memory): Update comment.
10776 (target_search_memory): Unconditionally delegate.
10777 * target.h (struct target_ops) <to_search_memory>: Use
10778 TARGET_DEFAULT_FUNC.
10779
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * auxv.c (default_auxv_parse): No longer static.
10783 (target_auxv_parse): Unconditionally delegate.
10784 * auxv.h (default_auxv_parse): Declare.
10785 * target-delegates.c: Rebuild.
10786 * target.c: Include auxv.h.
10787 * target.h (struct target_ops) <to_auxv_parse>: Use
10788 TARGET_DEFAULT_FUNC.
10789
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10791
10792 * target-delegates.c: Rebuild.
10793 * target.c (target_memory_map): Unconditionally delegate.
10794 * target.h (struct target_ops) <to_memory_map>: Use
10795 TARGET_DEFAULT_RETURN.
10796
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (target_thread_alive): Unconditionally delegate.
10801 * target.h (struct target_ops) <to_thread_alive>: Use
10802 TARGET_DEFAULT_RETURN.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (target_save_record): Unconditionally delegate.
10808 * target.h (struct target_ops) <to_save_record>: Use
10809 TARGET_DEFAULT_NORETURN.
10810
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 * target-delegates.c: Rebuild.
10814 * target.c (target_delete_record): Unconditionally delegate.
10815 * target.h (struct target_ops) <to_delete_record>: Use
10816 TARGET_DEFAULT_NORETURN.
10817
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target-delegates.c: Rebuild.
10821 * target.c (target_record_is_replaying): Unconditionally
10822 delegate.
10823 * target.h (struct target_ops) <to_record_is_replaying>: Use
10824 TARGET_DEFAULT_RETURN.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target-delegates.c: Rebuild.
10829 * target.c (target_goto_record_begin): Unconditionally delegate.
10830 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
10837 * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
10844 * target.h (struct target_ops) <to_goto_record>: 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): Unconditionally delegate.
10851 * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
10858 * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
10865 * target.h (struct target_ops) <to_insn_history_range>: 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): Unconditionally delegate.
10872 * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_call_history_from>: 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_call_history_range): Unconditionally delegate.
10886 * target.h (struct target_ops) <to_call_history_range>: Use
10887 TARGET_DEFAULT_NORETURN.
10888
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10890
10891 * target-delegates.c: Rebuild.
10892 * target.c (target_verify_memory): Unconditionally delegate.
10893 * target.h (struct target_ops) <to_verify_memory>: 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_core_of_thread): Unconditionally delegate.
10900 * target.h (struct target_ops) <to_core_of_thread>: Use
10901 TARGET_DEFAULT_RETURN.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target-delegates.c: Rebuild.
10906 * target.c (target_flash_done): Unconditionally delegate.
10907 * target.h (struct target_ops) <to_flash_done>: Use
10908 TARGET_DEFAULT_NORETURN.
10909
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10911
10912 * target-delegates.c: Rebuild.
10913 * target.c (target_flash_erase): Unconditionally delegate.
10914 * target.h (struct target_ops) <to_flash_erase>: Use
10915 TARGET_DEFAULT_NORETURN.
10916
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (target_get_section_table): Unconditionally delegate.
10921 * target.h (struct target_ops) <to_get_section_table>: Use
10922 TARGET_DEFAULT_RETURN.
10923
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target-delegates.c: Rebuild.
10927 * target.c (target_pid_to_str): Unconditionally delegate.
10928 (init_dummy_target): Don't initialize to_pid_to_str.
10929 (default_pid_to_str): Rename from dummy_pid_to_str.
10930 * target.h (struct target_ops) <to_pid_to_str>: Use
10931 TARGET_DEFAULT_FUNC.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target-delegates.c: Rebuild.
10936 * target.c (target_find_new_threads): Unconditionally delegate.
10937 * target.h (struct target_ops) <to_find_new_threads>: Use
10938 TARGET_DEFAULT_RETURN.
10939
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target-delegates.c: Rebuild.
10943 * target.c (target_program_signals): Unconditionally delegate.
10944 * target.h (struct target_ops) <to_program_signals>: Use
10945 TARGET_DEFAULT_IGNORE.
10946
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target-delegates.c: Rebuild.
10950 * target.c (target_pass_signals): Unconditionally delegate.
10951 * target.h (struct target_ops) <to_pass_signals>: Use
10952 TARGET_DEFAULT_IGNORE.
10953
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10955
10956 * target-delegates.c: Rebuild.
10957 * target.c (default_mourn_inferior): New function.
10958 (target_mourn_inferior): Unconditionally delegate.
10959 * target.h (struct target_ops) <to_mourn_inferior>: Use
10960 TARGET_DEFAULT_FUNC.
10961
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target-delegates.c: Rebuild.
10965 * target.c (default_follow_fork): New function.
10966 (target_follow_fork): Unconditionally delegate.
10967 * target.h (struct target_ops) <to_follow_fork>: Use
10968 TARGET_DEFAULT_FUNC.
10969
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10971
10972 * target-delegates.c: Rebuild.
10973 * target.c (target_kill): Unconditionally delegate.
10974 * target.h (struct target_ops) <to_kill>: Use
10975 TARGET_DEFAULT_NORETURN.
10976
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10978
10979 * target-delegates.c: Rebuild.
10980 * target.c (target_masked_watch_num_registers): Unconditionally
10981 delegate.
10982 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10983 Use TARGET_DEFAULT_RETURN.
10984
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10986
10987 * target-delegates.c: Rebuild.
10988 * target.c (target_remove_mask_watchpoint): Unconditionally
10989 delegate.
10990 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10991 TARGET_DEFAULT_RETURN.
10992
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10994
10995 * target-delegates.c: Rebuild.
10996 * target.c (target_insert_mask_watchpoint): Unconditionally
10997 delegate.
10998 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10999 TARGET_DEFAULT_RETURN.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target-delegates.c: Rebuild.
11004 * target.c (target_ranged_break_num_registers): Unconditionally
11005 delegate.
11006 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11007 Use TARGET_DEFAULT_RETURN.
11008
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11010
11011 * target-delegates.c: Rebuild.
11012 * target.c (target_fetch_registers): Unconditionally delegate.
11013 * target.h (struct target_ops) <to_fetch_registers>: Use
11014 TARGET_DEFAULT_NORETURN.
11015
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11020 to_stop.
11021 * target.h (struct target_ops) <to_stop>: Use
11022 TARGET_DEFAULT_IGNORE.
11023
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11025
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11028 to_can_run_breakpoint_commands.
11029 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11030 Use TARGET_DEFAULT_RETURN.
11031
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target-delegates.c: Rebuild.
11035 * target.c (update_current_target): Don't inherit or default
11036 to_supports_evaluation_of_breakpoint_conditions.
11037 * target.h (struct target_ops)
11038 <to_supports_evaluation_of_breakpoint_conditions>: Use
11039 TARGET_DEFAULT_RETURN.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target-delegates.c: Rebuild.
11044 * target.c (update_current_target): Don't inherit or default
11045 to_augmented_libraries_svr4_read.
11046 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11047 Use TARGET_DEFAULT_RETURN.
11048
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11050
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_can_use_agent.
11054 * target.h (struct target_ops) <to_can_use_agent>: Use
11055 TARGET_DEFAULT_RETURN.
11056
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11058
11059 * target-delegates.c: Rebuild.
11060 * target.c (update_current_target): Don't inherit or default
11061 to_use_agent.
11062 * target.h (struct target_ops) <to_use_agent>: Use
11063 TARGET_DEFAULT_NORETURN.
11064
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11066
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_traceframe_info.
11070 (return_null): Remove.
11071 * target.h (struct target_ops) <to_traceframe_info>: Use
11072 TARGET_DEFAULT_RETURN.
11073
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target-delegates.c: Rebuild.
11077 * target.c (update_current_target): Don't inherit or default
11078 to_static_tracepoint_markers_by_strid.
11079 * target.h (struct target_ops)
11080 <to_static_tracepoint_markers_by_strid>: Use
11081 TARGET_DEFAULT_NORETURN.
11082
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11084
11085 * target-delegates.c: Rebuild.
11086 * target.c (update_current_target): Don't inherit or default
11087 to_static_tracepoint_marker_at.
11088 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11089 Use TARGET_DEFAULT_RETURN.
11090
11091 2014-02-19 Tom Tromey <tromey@redhat.com>
11092
11093 * target-delegates.c: Rebuild.
11094 * target.c (update_current_target): Don't inherit or default
11095 to_set_permissions.
11096 * target.h (struct target_ops) <to_set_permissions>: Use
11097 TARGET_DEFAULT_IGNORE.
11098
11099 2014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target-delegates.c: Rebuild.
11102 * target.c (update_current_target): Don't inherit or default
11103 to_get_tib_address.
11104 * target.h (struct target_ops) <to_get_tib_address>: Use
11105 TARGET_DEFAULT_NORETURN.
11106
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11108
11109 * target-delegates.c: Rebuild.
11110 * target.c (update_current_target): Don't inherit or default
11111 to_set_trace_notes.
11112 * target.h (struct target_ops) <to_set_trace_notes>: Use
11113 TARGET_DEFAULT_RETURN.
11114
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target-delegates.c: Rebuild.
11118 * target.c (update_current_target): Don't initialize
11119 to_set_trace_buffer_size.
11120 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11121 TARGET_DEFAULT_IGNORE.
11122
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11124
11125 * target-delegates.c: Rebuild.
11126 * target.c (update_current_target): Don't inherit or default
11127 to_set_circular_trace_buffer.
11128 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11129 TARGET_DEFAULT_IGNORE.
11130
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target-delegates.c: Rebuild.
11134 * target.c (update_current_target): Don't inherit or default
11135 to_set_disconnected_tracing.
11136 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11137 TARGET_DEFAULT_IGNORE.
11138
11139 2014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target-delegates.c: Rebuild.
11142 * target.c (update_current_target): Don't inherit or default
11143 to_get_min_fast_tracepoint_insn_len.
11144 (return_minus_one): Remove.
11145 * target.h (struct target_ops)
11146 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11147
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target-delegates.c: Rebuild.
11151 * target.c (update_current_target): Don't inherit or default
11152 to_get_raw_trace_data.
11153 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11154 TARGET_DEFAULT_NORETURN.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target-delegates.c: Rebuild.
11159 * target.c (update_current_target): Don't inherit or default
11160 to_upload_trace_state_variables.
11161 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11162 Use TARGET_DEFAULT_RETURN.
11163
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11165
11166 * target-delegates.c: Rebuild.
11167 * target.c (update_current_target): Don't inherit or default
11168 to_upload_tracepoints.
11169 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11170 TARGET_DEFAULT_RETURN.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target-delegates.c: Rebuild.
11175 * target.c (update_current_target): Don't inherit or default
11176 to_save_trace_data.
11177 * target.h (struct target_ops) <to_save_trace_data>: Use
11178 TARGET_DEFAULT_NORETURN.
11179
11180 2014-02-19 Tom Tromey <tromey@redhat.com>
11181
11182 * target-delegates.c: Rebuild.
11183 * target.c (update_current_target): Don't inherit or default
11184 to_get_trace_state_variable_value.
11185 * target.h (struct target_ops)
11186 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11187
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11189
11190 * target-delegates.c: Rebuild.
11191 * target.c (update_current_target): Don't inherit or default
11192 to_trace_find.
11193 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11194
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11196
11197 * target-delegates.c: Rebuild.
11198 * target.c (update_current_target): Don't inherit or default
11199 to_trace_stop.
11200 * target.h (struct target_ops) <to_trace_stop>: Use
11201 TARGET_DEFAULT_NORETURN.
11202
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target-delegates.c: Rebuild.
11206 * target.c (update_current_target): Don't inherit or default
11207 to_get_tracepoint_status.
11208 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11209 TARGET_DEFAULT_NORETURN.
11210
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * target-delegates.c: Rebuild.
11214 * target.c (update_current_target): Don't inherit or default
11215 to_get_trace_status.
11216 * target.h (struct target_ops) <to_get_trace_status>: Use
11217 TARGET_DEFAULT_RETURN.
11218
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11220
11221 * target-delegates.c: Rebuild.
11222 * target.c (update_current_target): Don't inherit or default
11223 to_trace_start.
11224 * target.h (struct target_ops) <to_trace_start>: Use
11225 TARGET_DEFAULT_NORETURN.
11226
11227 2014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * target-delegates.c: Rebuild.
11230 * target.c (update_current_target): Don't inherit or default
11231 to_trace_set_readonly_regions.
11232 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11233 Use TARGET_DEFAULT_NORETURN.
11234
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * target-delegates.c: Rebuild.
11238 * target.c (update_current_target): Don't inherit or default
11239 to_disable_tracepoint.
11240 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11241 TARGET_DEFAULT_NORETURN.
11242
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11244
11245 * target-delegates.c: Rebuild.
11246 * target.c (update_current_target): Don't inherit or default
11247 to_enable_tracepoint.
11248 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11249 TARGET_DEFAULT_NORETURN.
11250
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * target-delegates.c: Rebuild.
11254 * target.c (update_current_target): Don't inherit or default
11255 to_download_trace_state_variable.
11256 * target.h (struct target_ops) <to_download_trace_state_variable>:
11257 Use TARGET_DEFAULT_NORETURN.
11258
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target-delegates.c: Rebuild.
11262 * target.c (update_current_target): Don't inherit or default
11263 to_can_download_tracepoint.
11264 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11265 TARGET_DEFAULT_RETURN.
11266
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target-delegates.c: Rebuild.
11270 * target.c (update_current_target): Don't inherit or default
11271 to_download_tracepoint.
11272 * target.h (struct target_ops) <to_download_tracepoint>: Use
11273 TARGET_DEFAULT_NORETURN.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target-delegates.c: Rebuild.
11278 * target.c (update_current_target): Don't inherit or default
11279 to_trace_init.
11280 * target.h (struct target_ops) <to_trace_init>: Use
11281 TARGET_DEFAULT_RETURN.
11282
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11284
11285 * target-delegates.c: Rebuild.
11286 * target.c (update_current_target): Don't inherit or default
11287 to_supports_string_tracing.
11288 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11289 TARGET_DEFAULT_RETURN.
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (update_current_target): Don't inherit or default
11295 to_supports_enable_disable_tracepoint.
11296 * target.h (struct target_ops)
11297 <to_supports_enable_disable_tracepoint>: Use
11298 TARGET_DEFAULT_RETURN.
11299
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11301
11302 * target-delegates.c: Rebuild.
11303 * target.c (update_current_target): Don't inherit or default
11304 to_supports_multi_process.
11305 * target.h (struct target_ops) <to_supports_multi_process>: Use
11306 TARGET_DEFAULT_RETURN.
11307
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11309
11310 * target-delegates.c: Rebuild.
11311 * target.c (update_current_target): Don't inherit or default
11312 to_get_ada_task_ptid.
11313 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11314 TARGET_DEFAULT_FUNC.
11315
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target-delegates.c: Rebuild.
11319 * target.c (update_current_target): Don't inherit or default
11320 to_thread_architecture.
11321 * target.h (struct target_ops) <to_thread_architecture>: Use
11322 TARGET_DEFAULT_FUNC.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target-delegates.c: Rebuild.
11327 * target.c (update_current_target): Don't inherit or default
11328 to_execution_direction.
11329 * target.h (struct target_ops) <to_execution_direction>: Use
11330 TARGET_DEFAULT_FUNC.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * target-delegates.c: Rebuild.
11335 * target.c (update_current_target): Don't inherit or default
11336 to_can_execute_reverse.
11337 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11338 TARGET_DEFAULT_RETURN.
11339 (target_can_execute_reverse): Unconditionally delegate.
11340
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target-delegates.c: Rebuild.
11344 * target.c (update_current_target): Don't inherit or default
11345 to_goto_bookmark.
11346 (dummy_goto_bookmark): Remove.
11347 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11348 * target.h (struct target_ops) <to_goto_bookmark>: Use
11349 TARGET_DEFAULT_NORETURN.
11350
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11352
11353 * target-delegates.c: Rebuild.
11354 * target.c (update_current_target): Don't inherit or default
11355 to_get_bookmark.
11356 (dummy_get_bookmark): Remove.
11357 (init_dummy_target): Don't inherit or default to_get_bookmark.
11358 * target.h (struct target_ops) <to_get_bookmark>: Use
11359 TARGET_DEFAULT_NORETURN
11360
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 * target-delegates.c: Rebuild.
11364 * target.c (update_current_target): Don't inherit or default
11365 to_make_corefile_notes.
11366 (init_dummy_target): Don't initialize to_make_corefile_notes.
11367 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11368 TARGET_DEFAULT_FUNC.
11369
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target-delegates.c: Rebuild.
11373 * target.c (update_current_target): Don't inherit or default
11374 to_find_memory_regions.
11375 (init_dummy_target): Don't initialize to_find_memory_regions.
11376 * target.h (struct target_ops) <to_find_memory_regions>: Use
11377 TARGET_DEFAULT_FUNC.
11378
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * target-delegates.c: Rebuild.
11382 * target.c (update_current_target): Don't inherit or default
11383 to_log_command.
11384 * target.h (struct target_ops) <to_log_command>: Use
11385 TARGET_DEFAULT_IGNORE.
11386 (target_log_command): Unconditionally delegate.
11387
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target-delegates.c: Rebuild.
11391 * target.c (update_current_target): Don't inherit or default
11392 to_pid_to_exec_file.
11393 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11394 TARGET_DEFAULT_RETURN.
11395
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target-delegates.c: Rebuild.
11399 * target.c (update_current_target): Don't inherit or default
11400 to_thread_name.
11401 (target_thread_name): Unconditionally delegate.
11402 * target.h (struct target_ops) <to_thread_name>: Use
11403 TARGET_DEFAULT_RETURN.
11404
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11406
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11409 to_extra_thread_info.
11410 * target.h (struct target_ops) <to_extra_thread_info>: Use
11411 TARGET_DEFAULT_RETURN.
11412
11413 2014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * target-delegates.c: Rebuild.
11416 * target.c (update_current_target): Don't inherit or default
11417 to_has_exited.
11418 * target.h (struct target_ops) <to_has_exited>: Use
11419 TARGET_DEFAULT_RETURN..
11420
11421 2014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target-delegates.c: Rebuild.
11424 * target.c (update_current_target): Don't inherit or default
11425 to_set_syscall_catchpoint.
11426 (return_one): Remove.
11427 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11428 TARGET_DEFAULT_RETURN.
11429
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11431
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_insert_exec_catchpoint.
11435 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11436 TARGET_DEFAULT_RETURN.
11437
11438 2014-01-08 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (update_current_target): Don't inherit or default
11442 to_insert_exec_catchpoint.
11443 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11444 TARGET_DEFAULT_RETURN.
11445
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target-delegates.c: Rebuild.
11449 * target.c (update_current_target): Don't inherit or default
11450 to_remove_vfork_catchpoint.
11451 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11452 TARGET_DEFAULT_RETURN.
11453
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11455
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_insert_vfork_catchpoint.
11459 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11460 TARGET_DEFAULT_RETURN.
11461
11462 2014-02-19 Tom Tromey <tromey@redhat.com>
11463
11464 * target-delegates.c: Rebuild.
11465 * target.c (update_current_target): Don't inherit or default
11466 to_remove_fork_catchpoint.
11467 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11468 TARGET_DEFAULT_RETURN.
11469
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11471
11472 * target-delegates.c: Rebuild.
11473 * target.c (update_current_target): Don't inherit or default
11474 to_insert_fork_catchpoint.
11475 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11476 TARGET_DEFAULT_RETURN.
11477
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (update_current_target): Don't inherit or default
11482 to_post_startup_inferior.
11483 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11484 TARGET_DEFAULT_IGNORE.
11485
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target-delegates.c: Rebuild.
11489 * target.c (update_current_target): Don't inherit or default
11490 to_load.
11491 * target.h (struct target_ops) <to_load>: Use
11492 TARGET_DEFAULT_NORETURN.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (update_current_target): Don't inherit or default
11498 to_terminal_info.
11499 * target.h (struct target_ops) <to_terminal_info>: Use
11500 TARGET_DEFAULT_FUNC.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_terminal_save_ours.
11507 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11508 TARGET_DEFAULT_IGNORE.
11509
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (update_current_target): Don't inherit or default
11514 to_terminal_ours.
11515 * target.h (struct target_ops) <to_terminal_ours>: Use
11516 TARGET_DEFAULT_IGNORE.
11517
11518 2014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target-delegates.c: Rebuild.
11521 * target.c (update_current_target): Don't inherit or default
11522 to_terminal_ours_for_output.
11523 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11524 TARGET_DEFAULT_IGNORE.
11525
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11527
11528 * target-delegates.c: Rebuild.
11529 * target.c (update_current_target): Don't inherit or default
11530 to_terminal_inferior.
11531 * target.h (struct target_ops) <to_terminal_inferior>: Use
11532 TARGET_DEFAULT_IGNORE.
11533
11534 2014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (update_current_target): Don't inherit or default
11538 to_terminal_init.
11539 * target.h (struct target_ops) <to_terminal_init>: Use
11540 TARGET_DEFAULT_IGNORE.
11541
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target-delegates.c: Rebuild.
11545 * target.c (update_current_target): Don't inherit or default
11546 to_can_accel_watchpoint_condition.
11547 * target.h (struct target_ops)
11548 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target-delegates.c: Rebuild.
11553 * target.c (update_current_target): Don't inherit or default
11554 to_region_ok_for_hw_watchpoint.
11555 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11556 Use TARGET_DEFAULT_FUNC.
11557
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target-delegates.c: Rebuild.
11561 * target.c (update_current_target): Don't inherit or default
11562 to_watchpoint_addr_within_range.
11563 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11564 Use TARGET_DEFAULT_FUNC.
11565
11566 2014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * target-delegates.c: Rebuild.
11569 * target.c (update_current_target): Don't inherit or default
11570 to_remove_watchpoint.
11571 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11572 TARGET_DEFAULT_NORETURN.
11573
11574 2014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target-delegates.c: Rebuild.
11577 * target.c (update_current_target): Don't inherit or default
11578 to_insert_watchpoint.
11579 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11580 TARGET_DEFAULT_RETURN.
11581
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target-delegates.c: Rebuild.
11585 * target.c (update_current_target): Don't inherit or default
11586 to_remove_hw_breakpoint.
11587 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11588 TARGET_DEFAULT_RETURN.
11589
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target-delegates.c: Rebuild.
11593 * target.c (update_current_target): Don't inherit or default
11594 to_insert_hw_breakpoint.
11595 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11596 TARGET_DEFAULT_RETURN.
11597
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target-delegates.c: Rebuild.
11601 * target.c (update_current_target): Don't inherit or default
11602 to_can_use_hw_breakpoint.
11603 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11604 TARGET_DEFAULT_RETURN.
11605
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target-delegates.c: Rebuild.
11609 * target.c (update_current_target): Don't inherit or default
11610 to_files_info.
11611 * target.h (struct target_ops) <to_files_info>: Use
11612 TARGET_DEFAULT_IGNORE.
11613
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (update_current_target): Don't inherit or default
11618 to_store.
11619 * target.h (struct target_ops) <to_store>: Use
11620 TARGET_DEFAULT_NORETURN.
11621
11622 2014-02-19 Tom Tromey <tromey@redhat.com>
11623
11624 * target-delegates.c: Rebuild.
11625 * target.c (update_current_target): Don't inherit or default
11626 to_post_attach.
11627 * target.h (struct target_ops) <to_post_attach>: Use
11628 TARGET_DEFAULT_IGNORE.
11629
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11631
11632 * target-delegates.c: Rebuild.
11633 * target.c (update_current_target): Don't inherit or default
11634 to_rcmd.
11635 (default_rcmd): New function.
11636 (do_monitor_command): Unconditionally delegate.
11637 * target.h (struct target_ops) <to_rmcd>: Use
11638 TARGET_DEFAULT_FUNC.
11639
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (init_dummy_target): Don't initialize to_attach.
11644 (target_attach): Unconditionally delegate.
11645 * target.h (struct target_ops) <to_attach>: Use
11646 TARGET_DEFAULT_FUNC.
11647
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (target_detach): Unconditionally delegate.
11652 (init_dummy_target): Don't initialize to_detach.
11653 * target.h (struct target_ops) <to_detach>: Use
11654 TARGET_DEFAULT_IGNORE.
11655
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11659 Add argument.
11660 (target_augmented_libraries_svr4_read): Add argument.
11661 * target.c (update_current_target): Update.
11662 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11663 argument.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops) <to_call_history_range>: Add
11668 argument.
11669 * target.c (target_call_history_range): Add argument.
11670 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11671 argument.
11672 (record_btrace_call_history_from): Update.
11673
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_call_history_from>: Add
11677 argument.
11678 * target.c (target_call_history_from): Add argument.
11679 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11680 argument.
11681
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11683
11684 * target.h (struct target_ops) <to_call_history>: Add argument.
11685 * target.c (target_call_history): Add argument.
11686 * record-btrace.c (record_btrace_call_history): Add 'self'
11687 argument.
11688
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target.h (struct target_ops) <to_insn_history_range>: Add
11692 argument.
11693 * target.c (target_insn_history_range): Add argument.
11694 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11695 argument.
11696 (record_btrace_insn_history_from): Update.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target.h (struct target_ops) <to_insn_history_from>: Add
11701 argument.
11702 * target.c (target_insn_history_from): Add argument.
11703 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11704 argument.
11705
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target.h (struct target_ops) <to_insn_history>: Add argument.
11709 * target.c (target_insn_history): Add argument.
11710 * record-btrace.c (record_btrace_insn_history): Add 'self'
11711 argument.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_goto_record>: Add argument.
11716 * target.c (target_goto_record): Add argument.
11717 * record-full.c (record_full_goto): Add 'self' argument.
11718 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11719
11720 2014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11723 * target.c (target_goto_record_end): Add argument.
11724 * record-full.c (record_full_goto_end): Add 'self' argument.
11725 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11726
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target.h (struct target_ops) <to_goto_record_begin>: Add
11730 argument.
11731 * target.c (target_goto_record_begin): Add argument.
11732 * record-full.c (record_full_goto_begin): Add 'self' argument.
11733 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11734 argument.
11735
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target.h (struct target_ops) <to_record_is_replaying>: Add
11739 argument.
11740 * target.c (target_record_is_replaying): Add argument.
11741 * record-full.c (record_full_is_replaying): Add 'self' argument.
11742 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11743 argument.
11744 (record_btrace_xfer_partial, record_btrace_store_registers)
11745 (record_btrace_prepare_to_store, record_btrace_resume)
11746 (record_btrace_wait, record_btrace_decr_pc_after_break)
11747 (record_btrace_find_new_threads, record_btrace_thread_alive):
11748 Update.
11749
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target.h (struct target_ops) <to_delete_record>: Add argument.
11753 * target.c (target_delete_record): Add argument.
11754 * record-full.c (record_full_delete): Add 'self' argument.
11755
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11757
11758 * target.h (struct target_ops) <to_save_record>: Add argument.
11759 * target.c (target_save_record): Add argument.
11760 * record-full.c (record_full_save): Add 'self' argument.
11761 (record_full_save): Add 'self' argument.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target.h (struct target_ops) <to_info_record>: Add argument.
11766 * target.c (target_info_record): Add argument.
11767 * record.c (info_record_command): Add argument.
11768 * record-full.c (record_full_info): Add 'self' argument.
11769 * record-btrace.c (record_btrace_info): Add 'self' argument.
11770
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11774 * target.c (target_stop_recording): Add argument.
11775 * record.c (record_stop): Add argument.
11776 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11777 argument.
11778
11779 2014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11782 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11783 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11784 argument.
11785 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11786 (_initialize_amd64_linux_nat): Use it.
11787 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11788 (_initialize_i386_linux_nat): Use it.
11789
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11793 * target.c (target_teardown_btrace): Add argument.
11794 * remote.c (remote_teardown_btrace): Add 'self' argument.
11795 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11796 argument.
11797 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11798 argument.
11799
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11803 * target.c (target_disable_btrace): Add argument.
11804 * remote.c (remote_disable_btrace): Add 'self' argument.
11805 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11806 argument.
11807 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11808 argument.
11809
11810 2014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11813 * target.c (target_enable_btrace): Add argument.
11814 * remote.c (remote_enable_btrace): Add 'self' argument.
11815 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11816 argument.
11817 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11818 argument.
11819
11820 2014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11823 (target_can_use_agent): Add argument.
11824 * target.c (update_current_target): Update.
11825 * remote.c (remote_can_use_agent): Add 'self' argument.
11826 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11827
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target.h (struct target_ops) <to_use_agent>: Add argument.
11831 (target_use_agent): Add argument.
11832 * target.c (update_current_target): Update.
11833 * remote.c (remote_use_agent): Add 'self' argument.
11834 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11839 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11840 (target_traceframe_info): Add argument.
11841 * target.c (update_current_target): Update.
11842 * remote.c (remote_traceframe_info): Add 'self' argument.
11843 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11844
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11846
11847 * target.h (target_static_tracepoint_markers_by_strid): Add
11848 argument.
11849 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11850 'self' argument.
11851 * target.c (update_current_target): Update.
11852 * remote.c (struct target_ops)
11853 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11854 * linux-nat.c (struct target_ops)
11855 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11856
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11860 Add argument.
11861 (target_static_tracepoint_marker_at): Add argument.
11862 * target.c (update_current_target): Update.
11863 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11864 argument.
11865
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11869 (target_set_permissions): Add argument.
11870 * target.c (update_current_target): Update.
11871 * remote.c (remote_set_permissions): Add 'self' argument.
11872 (remote_start_remote): Update.
11873
11874 2014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11877 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11878 (target_get_tib_address): Add argument.
11879 * target.c (update_current_target): Update.
11880 * remote.c (remote_get_tib_address): Add 'self' argument.
11881
11882 2014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11885 (target_set_trace_notes): Add argument.
11886 * target.c (update_current_target): Update.
11887 * remote.c (remote_set_trace_notes): Add 'self' argument.
11888
11889 2014-02-19 Tom Tromey <tromey@redhat.com>
11890
11891 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11892 argument.
11893 (target_set_trace_buffer_size): Add argument.
11894 * target.c (update_current_target): Update.
11895 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11896
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11898
11899 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11900 argument.
11901 (target_set_circular_trace_buffer): Add argument.
11902 * target.c (update_current_target): Update.
11903 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11904 argument.
11905
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11909 argument.
11910 (target_set_disconnected_tracing): Add argument.
11911 * target.c (update_current_target): Update.
11912 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11913
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target.h (struct target_ops)
11917 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11918 (target_get_min_fast_tracepoint_insn_len): Add argument.
11919 * target.c (update_current_target): Update.
11920 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11921 argument.
11922
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11924
11925 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11926 argument.
11927 (target_get_raw_trace_data): Add argument.
11928 * target.c (update_current_target): Update.
11929 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11930
11931 2014-02-19 Tom Tromey <tromey@redhat.com>
11932
11933 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11934 Add argument.
11935 (target_upload_trace_state_variables): Add argument.
11936 * target.c (update_current_target): Update.
11937 * remote.c (remote_upload_trace_state_variables): Add 'self'
11938 argument.
11939 (remote_start_remote): Update.
11940
11941 2014-02-19 Tom Tromey <tromey@redhat.com>
11942
11943 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11944 argument.
11945 (target_upload_tracepoints): Add argument.
11946 * target.c (update_current_target): Update.
11947 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11948 (remote_start_remote): Update.
11949
11950 2014-02-19 Tom Tromey <tromey@redhat.com>
11951
11952 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11953 (target_save_trace_data): Add argument.
11954 * target.c (update_current_target): Update.
11955 * remote.c (remote_save_trace_data): Add 'self' argument.
11956
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11960 argument.
11961 * target.h (struct target_ops)
11962 <to_get_trace_state_variable_value>: Add argument.
11963 (target_get_trace_state_variable_value): Add argument.
11964 * target.c (update_current_target): Update.
11965 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11966 argument.
11967 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11972 * target.h (struct target_ops) <to_trace_find>: Add argument.
11973 (target_trace_find): Add argument.
11974 * target.c (update_current_target): Update.
11975 * remote.c (remote_trace_find): Add 'self' argument.
11976 * ctf.c (ctf_trace_find): Add 'self' argument.
11977
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11981 (target_trace_stop): Add argument.
11982 * target.c (update_current_target): Update.
11983 * remote.c (remote_trace_stop): Add 'self' argument.
11984
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11988 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11989 argument.
11990 (target_get_tracepoint_status): Add argument.
11991 * target.c (update_current_target): Update.
11992 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11993
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11995
11996 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11997 * target.h (struct target_ops) <to_get_trace_status>: Add
11998 argument.
11999 (target_get_trace_status): Add argument.
12000 * target.c (update_current_target): Update.
12001 * remote.c (remote_get_trace_status): Add 'self' argument.
12002 (remote_start_remote, remote_can_download_tracepoint): Update.
12003 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12004
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target.h (struct target_ops) <to_trace_start>: Add argument.
12008 (target_trace_start): Add argument.
12009 * target.c (update_current_target): Update.
12010 * remote.c (remote_trace_start): Add 'self' argument.
12011
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12015 Add argument.
12016 (target_trace_set_readonly_regions): Add argument.
12017 * target.c (update_current_target): Update.
12018 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12019 argument.
12020
12021 2014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12024 argument.
12025 (target_disable_tracepoint): Add argument.
12026 * target.c (update_current_target): Update.
12027 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12028
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12032 argument.
12033 (target_enable_tracepoint): Add argument.
12034 * target.c (update_current_target): Update.
12035 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12036
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target.h (struct target_ops) <to_download_trace_state_variable>:
12040 Add argument.
12041 (target_download_trace_state_variable): Add argument.
12042 * target.c (update_current_target): Update.
12043 * remote.c (remote_download_trace_state_variable): Add 'self'
12044 argument.
12045
12046 2014-02-19 Tom Tromey <tromey@redhat.com>
12047
12048 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12049 argument.
12050 (target_can_download_tracepoint): Add argument.
12051 * target.c (update_current_target): Update.
12052 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12053
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target.h (struct target_ops) <to_download_tracepoint>: Add
12057 argument.
12058 (target_download_tracepoint): Add argument.
12059 * target.c (update_current_target): Update.
12060 * remote.c (remote_download_tracepoint): Add 'self' argument.
12061
12062 2014-02-19 Tom Tromey <tromey@redhat.com>
12063
12064 * target.h (struct target_ops) <to_trace_init>: Add argument.
12065 (target_trace_init): Add argument.
12066 * target.c (update_current_target): Update.
12067 * remote.c (remote_trace_init): Add 'self' argument.
12068
12069 2014-02-19 Tom Tromey <tromey@redhat.com>
12070
12071 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12072 * target.c (target_fileio_readlink): Add argument.
12073 * remote.c (remote_hostio_readlink): Add 'self' argument.
12074 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12075
12076 2014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12079 * target.c (target_fileio_unlink): Add argument.
12080 * remote.c (remote_hostio_unlink): Add 'self' argument.
12081 (remote_file_delete): Update.
12082 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12083
12084 2014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12087 * target.c (target_fileio_close): Add argument.
12088 * remote.c (remote_hostio_close): Add 'self' argument.
12089 (remote_hostio_close_cleanup): Update.
12090 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12091 Update.
12092 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12093
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12097 * target.c (target_fileio_pread): Add argument.
12098 * remote.c (remote_hostio_pread): Add 'self' argument.
12099 (remote_bfd_iovec_pread, remote_file_get): Update.
12100 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12101
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12105 * target.c (target_fileio_pwrite): Add argument.
12106 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12107 (remote_file_put): Update.
12108 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12109
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12113 * target.c (target_fileio_open): Add argument.
12114 * remote.c (remote_hostio_open): Add 'self' argument.
12115 (remote_bfd_iovec_open): Add 'self' argument.
12116 (remote_file_put): Add 'self' argument.
12117 (remote_file_get): Add 'self' argument.
12118 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12119
12120 2014-02-19 Tom Tromey <tromey@redhat.com>
12121
12122 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12123 Add argument.
12124 (target_can_run_breakpoint_commands): Add argument.
12125 * target.c (update_current_target): Update.
12126 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12127 argument.
12128 (remote_insert_breakpoint): Add 'self' argument.
12129 (remote_insert_hw_breakpoint): Add 'self' argument.
12130 (remote_can_run_breakpoint_commands): Add 'self' argument.
12131
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12133
12134 * target.h (struct target_ops)
12135 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12136 (target_supports_evaluation_of_breakpoint_conditions): Add
12137 argument.
12138 * target.c (update_current_target): Update.
12139 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12140 argument.
12141 (remote_insert_breakpoint): Add 'self' argument.
12142 (remote_insert_hw_breakpoint): Add 'self' argument.
12143 (remote_supports_cond_breakpoints): Add 'self' argument.
12144
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12148 argument.
12149 (target_supports_string_tracing): Add argument.
12150 * target.c (update_current_target): Update.
12151 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12152
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target.h (struct target_ops)
12156 <to_supports_disable_randomization>: Add argument.
12157 * target.c (find_default_supports_disable_randomization): Add
12158 argument.
12159 (target_supports_disable_randomization): Add argument.
12160 (find_default_supports_disable_randomization): Add 'self'
12161 argument.
12162 * remote.c (extended_remote_supports_disable_randomization): Add
12163 'self' argument.
12164 (remote_supports_disable_randomization): Add 'self' argument.
12165 (extended_remote_create_inferior): Update.
12166 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12167 'self' argument.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target.h (struct target_ops)
12172 <to_supports_enable_disable_tracepoint>: Add argument.
12173 (target_supports_enable_disable_tracepoint): Add argument.
12174 * target.c (update_current_target): Update.
12175 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12176 argument.
12177
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target.h (struct target_ops) <to_supports_multi_process>: Add
12181 argument.
12182 (target_supports_multi_process): Add argument.
12183 * target.c (update_current_target): Update.
12184 * remote.c (remote_supports_multi_process): Add 'self' argument.
12185 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12186 argument.
12187 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12188 argument.
12189
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12191
12192 * target.h (struct target_ops) <to_execution_direction>: Add
12193 argument.
12194 (target_execution_direction): Add argument.
12195 * target.c (default_execution_direction): Add 'self' argument.
12196 * record-full.c (record_full_execution_direction): Add 'self'
12197 argument.
12198
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12202 argument.
12203 (target_can_execute_reverse): Add argument.
12204 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12205 * record-full.c (record_full_can_execute_reverse): Add 'self'
12206 argument.
12207 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12208 argument.
12209
12210 2014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12213 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12214 argument.
12215 (target_get_ada_task_ptid): Add argument.
12216 * target.c (update_current_target): Update.
12217 (default_get_ada_task_ptid): Add 'self' argument.
12218 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12219 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12220 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12221 argument.
12222 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12223 argument.
12224 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12225 argument.
12226 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12227 argument.
12228 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12229 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12230 argument.
12231
12232 2014-02-19 Tom Tromey <tromey@redhat.com>
12233
12234 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12235 (target_goto_bookmark): Add argument.
12236 * target.c (dummy_goto_bookmark): Add 'self' argument.
12237 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12238
12239 2014-02-19 Tom Tromey <tromey@redhat.com>
12240
12241 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12242 (target_get_bookmark): Add argument.
12243 * target.c (dummy_get_bookmark): Add 'self' argument.
12244 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12245
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12249 argument.
12250 (target_make_corefile_notes): Add argument.
12251 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12252 * procfs.c (procfs_make_note_section): Add 'self' argument.
12253 (procfs_make_note_section): Add 'self' argument.
12254 (procfs_make_note_section): Add 'self' argument.
12255 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12256 argument.
12257 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12258 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12259 * exec.c (exec_make_note_section): Add 'self' argument.
12260 (exec_make_note_section): Add 'self' argument.
12261
12262 2014-02-19 Tom Tromey <tromey@redhat.com>
12263
12264 * target.h (struct target_ops) <to_find_memory_regions>: Add
12265 argument.
12266 (target_find_memory_regions): Add argument.
12267 * target.c (dummy_find_memory_regions): Add 'self' argument.
12268 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12269 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12270 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12271 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12272 * exec. (exec_do_find_memory_regions): New global.
12273 (exec_set_find_memory_regions): Rewrite.
12274 (exec_find_memory_regions): New function.
12275 (init_exec_ops): Use exec_find_memory_regions.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target.h (struct target_ops) <to_supports_non_stop>: Add
12280 argument.
12281 * target.c (find_default_supports_non_stop): Add argument.
12282 (target_supports_non_stop): Add argument.
12283 (find_default_supports_non_stop): Add 'self' argument.
12284 * remote.c (remote_supports_non_stop): Add 'self' argument.
12285 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12286
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * target.h (struct target_ops) <to_log_command>: Add argument.
12290 (target_log_command): Add argument.
12291 * serial.h (serial_log_command): Add 'self' argument.
12292 * serial.c (serial_log_command): Add 'self' argument.
12293
12294 2014-02-19 Tom Tromey <tromey@redhat.com>
12295
12296 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12297 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12298 argument.
12299 (target_pid_to_exec_file): Add argument.
12300 * target.c (debug_to_pid_to_exec_file): Add argument.
12301 (update_current_target): Update.
12302 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12303 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12304 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12305 (linux_handle_extended_wait): Update.
12306 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12307 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12308 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12309 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12310
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target.h (struct target_ops) <to_rcmd>: Add argument.
12314 (target_rcmd): Add argument.
12315 * target.c (debug_to_rcmd): Add argument.
12316 (update_current_target, do_monitor_command): Update.
12317 * remote.c (remote_rcmd): Add 'self' argument.
12318 * monitor.c (monitor_rcmd): Add 'self' argument.
12319
12320 2014-02-19 Tom Tromey <tromey@redhat.com>
12321
12322 * windows-nat.c (windows_stop): Add 'self' argument.
12323 * target.h (struct target_ops) <to_stop>: Add argument.
12324 * target.c (target_stop): Add argument.
12325 (debug_to_stop): Add argument.
12326 (update_current_target): Update.
12327 * remote.c (remote_stop): Add 'self' argument.
12328 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12329 (gdbsim_cntrl_c): Update.
12330 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12331 * procfs.c (procfs_stop): Add 'self' argument.
12332 * nto-procfs.c (procfs_stop): Add 'self' argument.
12333 * monitor.c (monitor_stop): Add 'self' argument.
12334 (monitor_open): Update.
12335 * linux-nat.c (linux_nat_stop): Add argument.
12336 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12337 * gnu-nat.c (gnu_stop): Add 'self' argument.
12338 * darwin-nat.c (darwin_stop): Add 'self' argument.
12339
12340 2014-02-19 Tom Tromey <tromey@redhat.com>
12341
12342 * target.h (struct target_ops) <to_thread_name>: Add argument.
12343 * target.c (target_thread_name): Add argument.
12344 (update_current_target): Update.
12345 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12346
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * target.h (struct target_ops) <to_extra_thread_info>: Add
12350 argument.
12351 (target_extra_thread_info): Add argument.
12352 * target.c (update_current_target): Update.
12353 * remote.c (remote_threads_extra_info): Add 'self' argument.
12354 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12355 argument.
12356 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12357 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12358 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12359 argument.
12360 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12361 argument.
12362 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12363 argument.
12364 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12365 argument.
12366
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target.h (struct target_ops) <to_program_signals>: Add argument.
12370 * target.c (target_program_signals): Add argument.
12371 * remote.c (remote_program_signals): Add 'self' argument.
12372
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12376 * target.c (target_pass_signals): Add argument.
12377 * remote.c (remote_pass_signals): Add 'self' argument.
12378 (remote_start_remote): Update.
12379 * procfs.c (procfs_pass_signals): Add 'self' argument.
12380 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12381 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12382 (linux_nat_create_inferior, linux_nat_attach): Update.
12383
12384 2014-02-19 Tom Tromey <tromey@redhat.com>
12385
12386 * windows-nat.c (windows_can_run): Add 'self' argument.
12387 * target.h (struct target_ops) <to_can_run>: Add argument.
12388 (target_can_run): Add argument.
12389 * target.c (debug_to_can_run): Add argument.
12390 (update_current_target): Update.
12391 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12392 * inf-child.c (inf_child_can_run): Add 'self' argument.
12393 * go32-nat.c (go32_can_run): Add 'self' argument.
12394
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * target.h (struct target_ops) <to_has_exited>: Add argument.
12398 (target_has_exited): Add argument.
12399 * target.c (debug_to_has_exited): Add argument.
12400 (update_current_target): Update.
12401
12402 2014-02-19 Tom Tromey <tromey@redhat.com>
12403
12404 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12405 argument.
12406 (target_set_syscall_catchpoint): Add argument.
12407 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12408 argument.
12409 * target.c (update_current_target): Update.
12410
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12414 argument.
12415 (target_remove_exec_catchpoint): Add argument.
12416 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12417 (update_current_target): Update.
12418 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12419 argument.
12420
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12424 argument.
12425 (target_insert_exec_catchpoint): Add argument.
12426 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12427 (update_current_target): Update.
12428 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12429 argument.
12430
12431 2014-02-19 Tom Tromey <tromey@redhat.com>
12432
12433 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12434 argument.
12435 (target_remove_vfork_catchpoint): Add argument.
12436 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12437 (update_current_target): Update.
12438 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12439 argument.
12440
12441 2014-02-19 Tom Tromey <tromey@redhat.com>
12442
12443 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12444 argument.
12445 (target_insert_vfork_catchpoint): Add argument.
12446 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12447 (update_current_target): Update.
12448 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12449 argument.
12450
12451 2014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12454 argument.
12455 (target_remove_fork_catchpoint): Add argument.
12456 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12457 (update_current_target): Update.
12458 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12459 argument.
12460
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12464 argument.
12465 (target_insert_fork_catchpoint): Add argument.
12466 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12467 (update_current_target): Update.
12468 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12469 argument.
12470
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12474 argument.
12475 (target_post_startup_inferior): Add argument.
12476 * target.c (debug_to_post_startup_inferior): Add argument.
12477 (update_current_target): Update.
12478 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12479 argument.
12480 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12481 argument.
12482 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12483 argument.
12484 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12485 argument.
12486 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12487 'self' argument.
12488 (super_post_startup_inferior): Likewise.
12489 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12490 'self' argument.
12491 (super_post_startup_inferior): Likewise.
12492 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12493 Add 'self' argument.
12494 (super_post_startup_inferior): Likewise.
12495
12496 2014-02-19 Tom Tromey <tromey@redhat.com>
12497
12498 * target.h (struct target_ops) <to_load>: Add argument.
12499 * target.c (target_load): Add argument.
12500 (debug_to_load): Add argument.
12501 (update_current_target): Update.
12502 * remote.c (remote_load): Add 'self' argument.
12503 * remote-sim.c (gdbsim_load): Add 'self' argument.
12504 * remote-mips.c (mips_load): Add 'self' argument.
12505 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12506 * monitor.c (monitor_load): Add 'self' argument.
12507 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12508
12509 2014-02-19 Tom Tromey <tromey@redhat.com>
12510
12511 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12512 (target_terminal_info): Add argument.
12513 * target.c (debug_to_terminal_info): Add argument.
12514 (default_terminal_info): Likewise.
12515 * inflow.c (child_terminal_info): Add 'self' argument.
12516 * inferior.h (child_terminal_info): Add 'self' argument.
12517 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12518
12519 2014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12522 argument.
12523 (target_terminal_save_ours): Add argument.
12524 * target.c (debug_to_terminal_save_ours): Add argument.
12525 (update_current_target): Update.
12526 * inflow.c (terminal_save_ours): Add 'self' argument.
12527 * inferior.h (terminal_save_ours): Add 'self' argument.
12528
12529 2014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12532 (target_terminal_ours): Add argument.
12533 * target.c (debug_to_terminal_ours): Add argument.
12534 (update_current_target): Update.
12535 * remote.c (remote_terminal_ours): Add 'self' argument.
12536 (remote_close): Update.
12537 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12538 * inflow.c (terminal_ours): Add 'self' argument.
12539 * inferior.h (terminal_ours): Add 'self' argument.
12540 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12541
12542 2014-02-19 Pedro Alves <palves@redhat.com>
12543 Tom Tromey <tromey@redhat.com>
12544
12545 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12546 argument.
12547 (target_terminal_ours_for_output): Add argument.
12548 * target.c (debug_to_terminal_ours_for_output): Add argument.
12549 (update_current_target): Update.
12550 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12551 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12552 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12553
12554 2014-02-19 Tom Tromey <tromey@redhat.com>
12555
12556 * target.h (struct target_ops) <to_terminal_inferior>: Add
12557 argument.
12558 * target.c (target_terminal_inferior): Add argument.
12559 (update_current_target): Update.
12560 * remote.c (remote_terminal_inferior): Add 'self' argument.
12561 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12562 * inflow.c (terminal_inferior): Add 'self' argument.
12563 * inferior.h (terminal_inferior): Add 'self' argument.
12564 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12565 (go32_terminal_inferior): Add 'self' argument.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12570 (target_terminal_init): Add argument.
12571 * target.c (debug_to_terminal_init): Add argument.
12572 (update_current_target): Update.
12573 * inflow.c (terminal_init_inferior): Add 'self' argument.
12574 * inferior.h (terminal_init_inferior): Add 'self' argument.
12575 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12576 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12577
12578 2014-02-19 Tom Tromey <tromey@redhat.com>
12579
12580 * target.h (struct target_ops)
12581 <to_can_accel_watchpoint_condition>: Add argument.
12582 (target_can_accel_watchpoint_condition): Add argument.
12583 * target.c (debug_to_can_accel_watchpoint_condition): Add
12584 argument.
12585 (update_current_target): Update.
12586 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12587 'self' argument.
12588
12589 2014-02-19 Tom Tromey <tromey@redhat.com>
12590
12591 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12592 Add argument.
12593 (target_region_ok_for_hw_watchpoint): Add argument.
12594 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12595 (default_region_ok_for_hw_watchpoint): Add argument.
12596 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12597 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12598 argument.
12599 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12600 argument.
12601 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12602 argument.
12603 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12604 'self' argument.
12605 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12606 'self' argument.
12607 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12608 'self' argument.
12609 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12610 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12611 'self' argument.
12612 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12613 Add 'self' argument.
12614
12615 2014-02-19 Tom Tromey <tromey@redhat.com>
12616
12617 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12618 argument.
12619 (target_insert_watchpoint): Add argument.
12620 * target.c (debug_to_insert_watchpoint): Add argument.
12621 (update_current_target): Update.
12622 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12623 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12624 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12625 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12626 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12627 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12628 argument.
12629 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12630 (procfs_insert_hw_watchpoint): Add 'self' argument.
12631 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12632 argument.
12633 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12634 argument.
12635 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12636 argument.
12637 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12638 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12639 argument.
12640 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12641 'self' argument.
12642
12643 2014-02-19 Tom Tromey <tromey@redhat.com>
12644
12645 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12646 argument.
12647 (target_remove_watchpoint): Add argument.
12648 * target.c (debug_to_remove_watchpoint): Add argument.
12649 (update_current_target): Update.
12650 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12651 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12652 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12653 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12654 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12655 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12656 argument.
12657 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12658 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12659 argument.
12660 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12661 argument.
12662 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12663 argument.
12664 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12665 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12666 argument.
12667 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12668 'self' argument.
12669
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12673 argument.
12674 (target_remove_hw_breakpoint): Add argument.
12675 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12676 (update_current_target): Update.
12677 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12678 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12679 argument.
12680 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12681 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12682 argument.
12683 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12684 'self' argument.
12685
12686 2014-02-19 Tom Tromey <tromey@redhat.com>
12687
12688 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12689 argument.
12690 (target_insert_hw_breakpoint): Add argument.
12691 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12692 (update_current_target): Update.
12693 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12694 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12695 argument.
12696 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12697 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12698 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12699 argument.
12700 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12701 'self' argument.
12702
12703 2014-02-19 Tom Tromey <tromey@redhat.com>
12704
12705 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12706 argument.
12707 (target_can_use_hardware_watchpoint): Add argument.
12708 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12709 (update_current_target): Update.
12710 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12711 argument.
12712 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12713 argument.
12714 * remote.c (remote_check_watch_resources): Add 'self' argument.
12715 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12716 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12717 argument.
12718 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12719 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12720 argument.
12721 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12722 argument.
12723 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12724 argument.
12725 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12726 argument.
12727 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12728 argument.
12729 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12730 argument.
12731 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12732 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12733 argument.
12734 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12735 'self' argument.
12736
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target.h (struct target_ops) <to_post_attach>: Add argument.
12740 (target_post_attach): Add argument.
12741 * target.c (debug_to_post_attach): Add argument.
12742 (update_current_target): Update.
12743 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12744 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12745 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12746 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12747 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12748
12749 2014-02-19 Tom Tromey <tromey@redhat.com>
12750
12751 * windows-nat.c (windows_close): Add 'self' argument.
12752 * tracepoint.c (tfile_close): Add 'self' argument.
12753 * target.h (struct target_ops) <to_close>: Add argument.
12754 * target.c (target_close): Add argument.
12755 (update_current_target): Update.
12756 * remote.c (remote_close): Add 'self' argument.
12757 * remote-sim.c (gdbsim_close): Add 'self' argument.
12758 * remote-mips.c (mips_close): Add 'self' argument.
12759 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12760 * record-full.c (record_full_close): Add 'self' argument.
12761 * record-btrace.c (record_btrace_close): Add 'self' argument.
12762 * monitor.h (monitor_close): Add 'self' argument.
12763 * monitor.c (monitor_close): Add 'self' argument.
12764 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12765 * linux-nat.c (linux_nat_close): Add argument.
12766 * go32-nat.c (go32_close): Add 'self' argument.
12767 * exec.c (exec_close_1): Add 'self' argument.
12768 * ctf.c (ctf_close): Add 'self' argument.
12769 * corelow.c (core_close): Add 'self' argument.
12770 (core_close_cleanup): Update.
12771 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12772 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12773
12774 2014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * remote.c (remote_load): New function.
12777 (init_remote_ops): Use it.
12778
12779 2014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12782 argument.
12783 * common/linux-btrace.h (linux_supports_btrace): Update.
12784 * remote.c (remote_supports_btrace): Add "self" argument.
12785 * target-delegates.c: Rebuild.
12786 * target.c (target_supports_btrace): Remove.
12787 * target.h (struct target_ops) <to_supports_btrace>: Add
12788 target_ops argument.
12789 (target_supports_btrace): New define.
12790
12791 2014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * record-full.c (record_full_beneath_to_resume_ops)
12794 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12795 (record_full_beneath_to_wait)
12796 (record_full_beneath_to_store_registers_ops)
12797 (record_full_beneath_to_store_registers)
12798 (record_full_beneath_to_xfer_partial_ops)
12799 (record_full_beneath_to_xfer_partial)
12800 (record_full_beneath_to_insert_breakpoint_ops)
12801 (record_full_beneath_to_insert_breakpoint)
12802 (record_full_beneath_to_remove_breakpoint_ops)
12803 (record_full_beneath_to_remove_breakpoint)
12804 (record_full_beneath_to_stopped_by_watchpoint)
12805 (record_full_beneath_to_stopped_data_address)
12806 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12807 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12808 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12809 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12810 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12811 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12812 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12813 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12814 (record_full_resume, record_full_wait_1)
12815 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12816 (record_full_store_registers, record_full_xfer_partial)
12817 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12818 (record_full_async, record_full_core_xfer_partial): Use target
12819 delegation.
12820 * target-delegates.c: Rebuild.
12821 * target.c (current_xfer_partial): Remove.
12822 (update_current_target): Do not INHERIT or de_fault
12823 to_insert_breakpoint, to_remove_breakpoint,
12824 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12825 to_is_async_p, to_async. Do not set to_xfer_partial field.
12826 (default_xfer_partial): Simplify.
12827 (current_xfer_partial): Remove.
12828 (target_wait, target_resume): Simplify.
12829 (find_default_can_async_p, find_default_is_async_p): Update.
12830 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12831 to_xfer_partial, to_stopped_by_watchpoint,
12832 to_stopped_data_address.
12833 (target_store_registers): Simplify.
12834 (forward_target_remove_breakpoint)
12835 (forward_target_insert_breakpoint): Remove.
12836 (target_remove_breakpoint, target_insert_breakpoint)
12837 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12838 * target.h (struct target_ops) <to_resume, to_wait,
12839 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12840 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12841 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12842 markup.
12843 (forward_target_remove_breakpoint)
12844 (forward_target_insert_breakpoint): Remove.
12845 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12846 directly.
12847 (record_btrace_insert_breakpoint): Delegate directly.
12848
12849 2014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 PR build/7701:
12852 * target-delegates.c: New file.
12853 * target.c: Include target-delegates.c.
12854 (init_dummy_target): Call install_dummy_methods.
12855 (complete_target_initialization): Call install_delegators.
12856 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12857 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12858 * make-target-delegates: New file.
12859
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12861
12862 * record.c (find_record_target): Use find_target_at.
12863 * target.c (find_target_at): New function.
12864 * target.h (find_target_at): Declare.
12865
12866 2014-02-19 Tom Tromey <tromey@redhat.com>
12867
12868 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12869 Add 'ops' argument.
12870 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12871 'ops' argument.
12872 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12873 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12874 'ops' argument.
12875 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12876 argument.
12877 * linux-nat.c (save_sigtrap): Update.
12878 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12879 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12880 (linux_nat_close): Update.
12881 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12882 argument.
12883 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12884 argument.
12885 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12886 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12887 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12888 (tmp_to_async): Add 'ops' argument.
12889 (record_full_stopped_by_watchpoint, record_full_async)
12890 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12891 argument.
12892 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12893 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12894 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12895 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12896 (remote_is_async_p, remote_async): Add 'ops' argument.
12897 (remote_stopped_data_address): Update.
12898 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12899 * target.c (update_current_target)
12900 (find_default_can_async_p, find_default_is_async_p): Update.
12901 (init_dummy_target): Update.
12902 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12903 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12904 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12905 (target_can_async_p, target_is_async_p, target_async)
12906 (target_stopped_by_watchpoint): Update.
12907
12908 2014-02-19 Yao Qi <yao@codesourcery.com>
12909
12910 PR gdb/16220
12911 * gdbarch.sh: Remove startup_gdbarch.
12912 * gdbarch.c: Regenerated.
12913 * gdbarch.h: Likewise.
12914
12915 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12916
12917 * rl78-tdep.c (rl78_g10_register_name): New function.
12918 (rl78_return_value): Add g10 support.
12919 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12920 g10.
12921
12922 2014-02-17 Doug Evans <xdje42@gmail.com>
12923
12924 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12925 (SUBDIR_GUILE_SRCS): Ditto.
12926 (scm-gsmob.o): Ditto.
12927
12928 2014-02-17 Yao Qi <yao@codesourcery.com>
12929
12930 * gnu-nat.c (ILL_RPC): Declare defined function.
12931
12932 2014-02-17 Yao Qi <yao@codesourcery.com>
12933
12934 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12935 mach_msg_type_number_t.
12936 (gnu_write_inferior): Likewise.
12937
12938 2014-02-17 Yao Qi <yao@codesourcery.com>
12939
12940 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12941 in format string.
12942 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12943 (inf_validate_procs, inf_signal): Likewise.
12944 (S_exception_raise_request): Likewise.
12945 (do_mach_notify_dead_name): Likewise.
12946 (steal_exc_port): Likewise.
12947 (gnu_read_inferior): Change 'copy_count''s type to
12948 mach_msg_type_number_t.
12949 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12950 format string.
12951
12952 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12953
12954 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12955 flag. Adjust all users; in particular...
12956 (gnu_wait): ..., don't decrement its value in here...
12957 (gnu_create_inferior): ..., and instead set the flag in here,
12958 around the startup_inferior call, and call that one with
12959 START_INFERIOR_TRAPS_EXPECTED.
12960
12961 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12962 (ILL_RPC): ... new macro.
12963 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12964 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12965 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12966 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12967 functions with ILL_RPC macro.
12968 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12969 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12970 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12971 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12972 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12973 (S_proc_getlogin_reply, S_proc_getsid_reply)
12974 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12975 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12976 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12977 (S_proc_getnports_reply, S_proc_is_important_reply)
12978 (S_proc_get_code_reply): New stub functions, generated with
12979 ILL_RPC macro.
12980
12981 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12982 collected the type check structures.
12983
12984 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12985
12986 2014-02-14 Doug Evans <dje@google.com>
12987
12988 * target.c (target_write_partial): Fix result type.
12989
12990 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12991
12992 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12993 the proper offsets to access fpregset_t.
12994
12995 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12996
12997 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12998 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12999 * h8300-tdep.c (setmachinelist): Remove global.
13000 * hppa-tdep.c (hppa_sigtramp): Remove global.
13001 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13002 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13003 * ravenscar-thread.c (update_target_observer): Remove global.
13004 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13005
13006 2014-02-12 Tom Tromey <tromey@redhat.com>
13007
13008 * common/rsp-low.c: Update comments.
13009 * common/rsp-low.h: Update comments.
13010
13011 2014-02-12 Tom Tromey <tromey@redhat.com>
13012
13013 * common/rsp-low.c (convert_ascii_to_int): Remove.
13014 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13015
13016 2014-02-12 Tom Tromey <tromey@redhat.com>
13017
13018 * common/rsp-low.h (unhexify): Don't declare.
13019 * common/rsp-low.c (unhexify): Remove.
13020
13021 2014-02-12 Tom Tromey <tromey@redhat.com>
13022
13023 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13024 * common/rsp-low.c (convert_int_to_ascii): Remove.
13025
13026 2014-02-12 Tom Tromey <tromey@redhat.com>
13027
13028 * common/rsp-low.h (hexify): Don't declare.
13029 * common/rsp-low.c (hexify): Remove.
13030
13031 2014-02-12 Tom Tromey <tromey@redhat.com>
13032
13033 * common/rsp-low.c (hexify): Never take strlen of argument.
13034
13035 2014-02-12 Tom Tromey <tromey@redhat.com>
13036
13037 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13038 * remote.c (extended_remote_run, remote_rcmd)
13039 (remote_download_trace_state_variable, remote_save_trace_data)
13040 (remote_set_trace_notes): Update.
13041 * tracepoint.c (encode_source_string, tfile_write_status)
13042 (tfile_write_uploaded_tsv): Update.
13043
13044 2014-02-12 Tom Tromey <tromey@redhat.com>
13045
13046 * tracepoint.c: Include rsp-low.h.
13047 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13048 * remote.c: Include rsp-low.h.
13049 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13050 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13051 (remote_unescape_input): Move to common/rsp-low.c.
13052 * common/rsp-low.h: New file.
13053 * common/rsp-low.c: New file.
13054 * Makefile.in (SFILES): Add common/rsp-low.c.
13055 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13056 (COMMON_OBS): Add rsp-low.o.
13057 (rsp-low.o): New target.
13058
13059 2014-02-12 Tom Tromey <tromey@redhat.com>
13060
13061 * utils.h: Include print-utils.h.
13062 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13063 (int_string, core_addr_to_string, core_addr_to_string_nz)
13064 (hex_string, hex_string_custom): Don't declare.
13065 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13066 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13067 (hex_string_custom, int_string, core_addr_to_string)
13068 (core_addr_to_string_nz, host_address_to_string): Move to
13069 common/print-utils.c.
13070 * common/print-utils.h: New file.
13071 * common/print-utils.c: New file
13072 * Makefile.in (SFILES): Add common/print-utils.c.
13073 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13074 (COMMON_OBS): Add print-utils.o.
13075 (print-utils.o): New target.
13076
13077 2014-02-12 Tom Tromey <tromey@redhat.com>
13078
13079 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13080
13081 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13082
13083 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13084
13085 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13086
13087 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13088 if a PT_IO ptrace request returns sucessfully but indicates that 0
13089 bytes were transferred.
13090
13091 2014-02-12 Pedro Alves <palves@redhat.com>
13092 Kevin Buettner <kevinb@redhat.com>
13093
13094 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13095 TYPE_INSTANCE_FLAG_CODE_SPACE.
13096
13097 2014-02-12 Pedro Alves <palves@redhat.com>
13098
13099 * h8300-tdep.c (pseudo_from_raw_register)
13100 (raw_from_pseudo_register): New functions.
13101 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13102 them.
13103
13104 2014-02-12 Pedro Alves <palves@redhat.com>
13105
13106 * h8300-tdep.c (h8300_register_sim_regno): New function.
13107 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13108 gdbarch_register_sim_regno hook.
13109
13110 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13111
13112 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13113
13114 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13115
13116 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13117
13118 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13119
13120 * obsd-tdep.h (obsd_init_abi): New prototype.
13121 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13122 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13123 (obsd_init_abi): New functions.
13124 * i386obsd-tdep.c: Include "obsd-tdep.h".
13125 (i386obsd_init_abi): Call obsd_init_abi.
13126 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13127 (amd64obsd_init_abi): Call obsd_init_abi.
13128 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13129 obsd-tdep.c to gdb_target_obs.
13130
13131 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13132
13133 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13134 double float arguments to 16-byte in the argument slots.
13135
13136 2014-02-11 Doug Evans <xdje42@gmail.com>
13137
13138 * configure.ac: Don't crash if pkg-config is not found and guile
13139 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13140 in guile checks.
13141 * configure: Regenerate.
13142
13143 2014-02-11 Yao Qi <yao@codesourcery.com>
13144
13145 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13146 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13147 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13148 * gnu-nat.c (gnu_xfer_memory): Likewise.
13149 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13150 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13151 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13152 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13153
13154 2014-02-11 Yao Qi <yao@codesourcery.com>
13155
13156 * target.h (enum target_xfer_error): Rename to ...
13157 (enum target_xfer_status): ... it. New. All users updated.
13158 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13159 New.
13160 (TARGET_XFER_STATUS_ERROR_P): New macro.
13161 (target_xfer_error_to_string): Remove declaration.
13162 (target_xfer_status_to_string): Declare.
13163 (target_xfer_partial_ftype): Adjust it.
13164 (struct target_ops) <to_xfer_partial>: Return
13165 target_xfer_status. Add argument xfered_len. Update
13166 comments.
13167 * target.c (target_xfer_error_to_string): Rename to ...
13168 (target_xfer_status_to_string): ... it. New. All callers
13169 updated.
13170 (target_read_live_memory): Likewise. Call target_xfer_partial
13171 instead of target_read.
13172 (memory_xfer_live_readonly_partial): Return
13173 target_xfer_status. Add argument xfered_len.
13174 (raw_memory_xfer_partial): Likewise.
13175 (memory_xfer_partial_1): Likewise.
13176 (memory_xfer_partial): Likewise.
13177 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13178 properly. Update debug message.
13179 (default_xfer_partial, current_xfer_partial): Likewise.
13180 (target_write_partial): Likewise.
13181 (target_read_partial): Likewise. All callers updated.
13182 (read_whatever_is_readable): Likewise.
13183 (target_write_with_progress): Likewise.
13184 (target_read_alloc_1): Likewise.
13185
13186 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13187 * auxv.c (procfs_xfer_auxv): Likewise.
13188 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13189 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13190 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13191 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13192 * corefile.c (read_memory): Adjust.
13193 * corelow.c (core_xfer_partial): Likewise.
13194 * ctf.c (ctf_xfer_partial): Likewise.
13195 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13196 updated.
13197 (darwin_xfer_partial): Likewise.
13198 * exec.c (section_table_xfer_memory_partial): Likewise. All
13199 callers updated.
13200 (exec_xfer_partial): Likewise.
13201 * exec.h (section_table_xfer_memory_partial): Update
13202 declaration.
13203 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13204 negative.
13205 (gnu_xfer_partial): Likewise.
13206 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13207 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13208 (ia64_hpux_xfer_solib_got): Likewise.
13209 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13210 type of 'partial_len' to ULONGEST.
13211 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13212 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13213 (linux_nat_xfer_partial): Likewise.
13214 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13215 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13216 * monitor.c (monitor_xfer_memory): Likewise.
13217 (monitor_xfer_partial): Likewise.
13218 * procfs.c (procfs_xfer_partial): Likewise.
13219 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13220 * record-full.c (record_full_xfer_partial): Likewise.
13221 (record_full_core_xfer_partial): Likewise.
13222 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13223 (gdbsim_xfer_partial): Likewise.
13224 * remote.c (remote_write_bytes_aux): Likewise. All callers
13225 updated.
13226 (remote_write_bytes, remote_read_bytes): Likewise. All
13227 callers updated.
13228 (remote_flash_erase): Likewise. All callers updated.
13229 (remote_write_qxfer): Likewise. All callers updated.
13230 (remote_read_qxfer): Likewise. All callers updated.
13231 (remote_xfer_partial): Likewise.
13232 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13233 (rs6000_xfer_shared_libraries): Likewise.
13234 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13235 (sol_thread_xfer_partial): Likewise.
13236 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13237 (sparc_xfer_partial): Likewise.
13238 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13239 updated.
13240 (spu_xfer_partial): Likewise.
13241 * spu-multiarch.c (spu_xfer_partial): Likewise.
13242 * tracepoint.c (tfile_xfer_partial): Likewise.
13243 * windows-nat.c (windows_xfer_memory): Likewise.
13244 (windows_xfer_shared_libraries): Likewise.
13245 (windows_xfer_partial): Likewise.
13246 * valprint.c: Replace 'target_xfer_error' with
13247 'target_xfer_status' in comments.
13248
13249 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13250
13251 Checked in by Joel Brobecker <brobecker@adacore.com>.
13252 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13253
13254 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13255
13256 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13257 function parameters.
13258
13259 2014-02-10 Will Newton <will.newton@linaro.org>
13260
13261 * elfread.c (elf_rel_plt_read): Look for a .got section if
13262 looking up .got.plt fails.
13263 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13264 on address passed to elf_gnu_ifunc_record_cache.
13265 (elf_gnu_ifunc_resolve_addr): Likewise.
13266 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13267
13268 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13269
13270 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13271 (X_RETTURN): New macro.
13272 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13273
13274 * sparc64-tdep.c (sparc64_init_abi): Hook
13275 sparc_in_function_epilogue_p.
13276
13277 2014-02-10 Gary Benson <gbenson@redhat.com>
13278
13279 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13280 Rename name_matcher to symbol_matcher.
13281
13282 2014-02-10 Gary Benson <gbenson@redhat.com>
13283
13284 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13285 Use expand_symtabs_file_matcher_ftype and
13286 expand_symtabs_symbol_matcher_ftype.
13287
13288 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13289
13290 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13291 (struct ada_symbol_cache): New.
13292 (ada_free_symbol_cache): Forward declare.
13293 (struct ada_pspace_data): New.
13294 (ada_pspace_data_handle): New static global.
13295 (get_ada_pspace_data, ada_pspace_data_cleanup)
13296 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13297 (cache_space, cache): Delete, now folded inside struct
13298 ada_pspace_data.
13299 (ada_get_symbol_cache): New function.
13300 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13301 implementation.
13302 (_initialize_ada_language): Remove initialization of cache_space.
13303 Move call to observer_attach_inferior_exit up, grouping it
13304 with the other observer registrations inside this function.
13305 Rename command to be more general. Add call to
13306 register_program_space_data_with_cleanup.
13307
13308 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13309
13310 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13311 ada_new_objfile_observer.
13312 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13313 (_initialize_tasks): Update uses of ada_new_objfile_observer
13314 and ada_tasks_normal_stop_observer.
13315
13316 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13317
13318 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13319 returned by the 'Length attribute to integer.
13320
13321 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13322
13323 * ada-lang.c (_initialize_ada_language): Initialize
13324 cache_space obstack.
13325
13326 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13327
13328 * ada-lang.c (HASH_SIZE): New macro.
13329 (struct cache_entry): New type.
13330 (cache_space, cache): New static globals.
13331 (ada_clear_symbol_cache, find_entry): New functions.
13332 (lookup_cached_symbol, cache_symbol): Implement.
13333 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13334 (_initialize_ada_language): Attach ada_new_objfile_observer
13335 and ada_free_objfile_observer.
13336
13337 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13338
13339 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13340 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13341 struct block * parameter.
13342 (ada_lookup_symbol_list_worker): Constify local variable "block".
13343 Remove cast which is no longer necessary.
13344
13345 2014-02-10 Doug Evans <xdje42@gmail.com>
13346
13347 Add Guile as an extension language.
13348 * NEWS: Mention Guile scripting.
13349 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13350 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13351 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13352 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13353 (CLIBS): Add GUILE_LIBS.
13354 (install-guile): New rule.
13355 (guile.o): New rule.
13356 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13357 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13358 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13359 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13360 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13361 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13362 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13363 * configure.ac: New option --with-guile.
13364 * configure: Regenerate.
13365 * config.in: Regenerate.
13366 * auto-load.c: Remove #include "python/python.h". Add #include
13367 "gdb/section-scripts.h".
13368 (source_section_scripts): Handle Guile scripts.
13369 (_initialize_auto_load): Add name of Guile objfile script to
13370 scripts-directory help text.
13371 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13372 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13373 (struct breakpoint): New member scm_bp_object.
13374 * defs.h (enum command_control_type): New value guile_control.
13375 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13376 "extension.h".
13377 (show_user): Update comment.
13378 (_initialize_cli_cmds): Update help text for "show user". Update help
13379 text for max-user-call-depth.
13380 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13381 "extension.h".
13382 (multi_line_command_p): Add guile_control.
13383 (print_command_lines): Handle guile_control.
13384 (execute_control_command, recurse_read_control_structure): Ditto.
13385 (process_next_line): Recognize "guile" commands.
13386 * disasm.c (gdb_disassemble_info): Make non-static.
13387 * disasm.h: #include "dis-asm.h".
13388 (struct gdbarch): Add forward decl.
13389 (gdb_disassemble_info): Declare.
13390 * extension.c: #include "guile/guile.h".
13391 (extension_languages): Add guile.
13392 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13393 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13394 * gdbtypes.c (get_unsigned_type_max): New function.
13395 (get_signed_type_minmax): New function.
13396 * gdbtypes.h (get_unsigned_type_max): Declare.
13397 (get_signed_type_minmax): Declare.
13398 * guile/README: New file.
13399 * guile/guile-internal.h: New file.
13400 * guile/guile.c: New file.
13401 * guile/guile.h: New file.
13402 * guile/scm-arch.c: New file.
13403 * guile/scm-auto-load.c: New file.
13404 * guile/scm-block.c: New file.
13405 * guile/scm-breakpoint.c: New file.
13406 * guile/scm-disasm.c: New file.
13407 * guile/scm-exception.c: New file.
13408 * guile/scm-frame.c: New file.
13409 * guile/scm-gsmob.c: New file.
13410 * guile/scm-iterator.c: New file.
13411 * guile/scm-lazy-string.c: New file.
13412 * guile/scm-math.c: New file.
13413 * guile/scm-objfile.c: New file.
13414 * guile/scm-ports.c: New file.
13415 * guile/scm-pretty-print.c: New file.
13416 * guile/scm-safe-call.c: New file.
13417 * guile/scm-string.c: New file.
13418 * guile/scm-symbol.c: New file.
13419 * guile/scm-symtab.c: New file.
13420 * guile/scm-type.c: New file.
13421 * guile/scm-utils.c: New file.
13422 * guile/scm-value.c: New file.
13423 * guile/lib/gdb.scm: New file.
13424 * guile/lib/gdb/boot.scm: New file.
13425 * guile/lib/gdb/experimental.scm: New file.
13426 * guile/lib/gdb/init.scm: New file.
13427 * guile/lib/gdb/iterator.scm: New file.
13428 * guile/lib/gdb/printing.scm: New file.
13429 * guile/lib/gdb/types.scm: New file.
13430 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13431 (VPATH): Add $(GUILE_SRCDIR).
13432 (GUILE_DIR): New variable.
13433 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13434 (all): Add stamp-guile dependency.
13435 (stamp-guile): New rule.
13436 (clean-guile, install-guile, uninstall-guile): New rules.
13437 (install-only): Add install-guile dependency.
13438 (uninstall): Add uninstall-guile dependency.
13439 (clean): Add clean-guile dependency.
13440
13441 2014-02-09 Doug Evans <xdje42@gmail.com>
13442
13443 Revert this patch (which I approved, mea culpa).
13444
13445 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13446
13447 * Makefile.in (all-lib): Remove.
13448 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13449
13450 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13451
13452 Fix Python stack corruption.
13453 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13454 gdb_py_longest.
13455
13456 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13457
13458 * Makefile.in (all-lib): Remove.
13459 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13460
13461 2014-02-07 Doug Evans <dje@google.com>
13462
13463 * extension-priv.h (extension_language_script_ops): Add comment.
13464 (extension_language_ops): Add comment.
13465 (active_ext_lang_state): Fix typo in comment.
13466
13467 2014-02-07 Pedro Alves <palves@redhat.com>
13468
13469 PR breakpoints/16292
13470 * infrun.c (handle_signal_stop) <signal arrives while stepping
13471 over a breakpoint>: Switch back to the stepping thread.
13472
13473 2014-02-07 Yao Qi <yao@codesourcery.com>
13474
13475 * target.c (target_xfer_partial): Return zero if LEN is zero.
13476
13477 2014-02-07 Yao Qi <yao@codesourcery.com>
13478
13479 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13480 (ld_so_xfer_auxv): Likewise.
13481 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13482 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13483 * corelow.c (core_xfer_partial): Likewise.
13484 * ctf.c (ctf_xfer_partial): Likewise.
13485 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13486 (darwin_xfer_partial): Likewise.
13487 * exec.c (exec_xfer_partial): Likewise.
13488 * gnu-nat.c (gnu_xfer_partial): Likewise.
13489 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13490 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13491 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13492 * linux-nat.c (linux_xfer_siginfo): Likewise.
13493 (linux_proc_xfer_spu): Likewise.
13494 * procfs.c (procfs_xfer_partial): Likewise.
13495 * record-full.c (record_full_xfer_partial): Likewise.
13496 (record_full_core_xfer_partial): Likewise.
13497 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13498 * remote.c (remote_write_qxfer): Likewise.
13499 (remote_write_qxfer, remote_read_qxfer): Likewise.
13500 (remote_xfer_partial): Likewise.
13501 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13502 (rs6000_xfer_shared_libraries): Likewise.
13503 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13504 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13505 (spu_xfer_partial): Likewise.
13506 * target.c (memory_xfer_partial_1): Likewise.
13507 * tracepoint.c (tfile_xfer_partial): Likewise.
13508 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13509 (windows_xfer_partial): Likewise.
13510
13511 2014-02-07 Yao Qi <yao@codesourcery.com>
13512
13513 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13514 comments.
13515 (core_xfer_shared_libraries_aix): Likewise.
13516 * gdbarch.c, gdbarch.h: Regenerated.
13517 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13518 ULONGEST. Change 'len_avail' type to ULONGEST.
13519 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13520 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13521 declaration.
13522 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13523
13524 2014-02-07 Yao Qi <yao@codesourcery.com>
13525
13526 * corefile.c (memory_error): Get 'exception' from ERR and pass
13527 'exception' to throw_error.
13528
13529 2014-02-06 Doug Evans <xdje42@gmail.com>
13530
13531 * configure.ac (libpython checking): Remove all but python.o from
13532 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13533 * configure: Regenerate.
13534
13535 * Makefile.in (SFILES): Add extension.c.
13536 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13537 (COMMON_OBS): Add extension.o.
13538 * extension.h: New file.
13539 * extension-priv.h: New file.
13540 * extension.c: New file.
13541
13542 * python/python-internal.h: #include "extension.h".
13543 (gdbpy_auto_load_enabled): Declare.
13544 (gdbpy_apply_val_pretty_printer): Declare.
13545 (gdbpy_apply_frame_filter): Declare.
13546 (gdbpy_preserve_values): Declare.
13547 (gdbpy_breakpoint_cond_says_stop): Declare.
13548 (gdbpy_breakpoint_has_cond): Declare.
13549 (void source_python_script_for_objfile): Delete.
13550 * python/python.c: #include "extension-priv.h".
13551 Delete inclusion of "observer.h".
13552 (extension_language_python): Moved here and renamed from
13553 script_language_python in py-auto-load.c.
13554 Redefined to be of type extension_language_defn.
13555 (python_extension_script_ops): New global.
13556 (python_extension_ops): New global.
13557 (struct python_env): New member previous_active.
13558 (restore_python_env): Call restore_active_ext_lang.
13559 (ensure_python_env): Call set_active_ext_lang.
13560 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13561 New arg extlang.
13562 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13563 New arg extlang.
13564 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13565 New arg extlang.
13566 (gdbpy_eval_from_control_command): Renamed from
13567 eval_python_from_control_command, made static. New arg extlang.
13568 (gdbpy_source_script) Renamed from source_python_script, made static.
13569 New arg extlang.
13570 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13571 result to int. New arg extlang.
13572 (gdbpy_source_objfile_script): Renamed from
13573 source_python_script_for_objfile, made static. New arg extlang.
13574 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13575 static. New args extlang, extlang_printers. Change result type to
13576 "void".
13577 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13578 static. New arg extlang. Rename arg printers to extlang_printers
13579 and change type to ext_lang_type_printers *.
13580 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13581 static. Replace argument arg with extlang, extlang_printers.
13582 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13583 (!HAVE_PYTHON, source_python_script): Delete.
13584 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13585 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13586 (!HAVE_PYTHON, start_type_printers): Delete.
13587 (!HAVE_PYTHON, apply_type_printers): Delete.
13588 (!HAVE_PYTHON, free_type_printers): Delete.
13589 (_initialize_python): Delete call to observer_attach_before_prompt.
13590 (finalize_python): Set/restore active extension language.
13591 (gdbpy_finish_initialization) Renamed from
13592 finish_python_initialization, made static. New arg extlang.
13593 (gdbpy_initialized): New function.
13594 * python/python.h: #include "extension.h". Delete #include
13595 "value.h", "mi/mi-cmds.h".
13596 (extension_language_python): Declare.
13597 (GDBPY_AUTO_FILE_NAME): Delete.
13598 (enum py_bt_status): Moved to extension.h and renamed to
13599 ext_lang_bt_status.
13600 (enum frame_filter_flags): Moved to extension.h.
13601 (enum py_frame_args): Moved to extension.h and renamed to
13602 ext_lang_frame_args.
13603 (finish_python_initialization): Delete.
13604 (eval_python_from_control_command): Delete.
13605 (source_python_script): Delete.
13606 (apply_val_pretty_printer): Delete.
13607 (apply_frame_filter): Delete.
13608 (preserve_python_values): Delete.
13609 (gdbpy_script_language_defn): Delete.
13610 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13611 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13612
13613 * auto-load.c: #include "extension.h".
13614 (GDB_AUTO_FILE_NAME): Delete.
13615 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13616 (script_language_gdb): Delete, moved to extension.c and renamed to
13617 extension_language_gdb.
13618 (source_gdb_script_for_objfile): Delete.
13619 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13620 (loaded_script): Change type of language member to
13621 struct extension_language_defn *.
13622 (init_loaded_scripts_info): Initialize
13623 unsupported_script_warning_printed.
13624 (maybe_add_script): Make static. Change type of language arg to
13625 struct extension_language_defn *.
13626 (clear_section_scripts): Reset unsupported_script_warning_printed.
13627 (auto_load_objfile_script_1): Rewrite to use extension language API.
13628 (auto_load_objfile_script): Make public. Remove support-compiled-in
13629 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13630 (source_section_scripts): Rewrite to use extension language API.
13631 (load_auto_scripts_for_objfile): Rewrite to use
13632 auto_load_scripts_for_objfile.
13633 (collect_matching_scripts_data): Change type of language member to
13634 struct extension_language_defn *.
13635 (auto_load_info_scripts): Change type of language arg to
13636 struct extension_language_defn *.
13637 (unsupported_script_warning_print): New function.
13638 (script_not_found_warning_print): Make static.
13639 (_initialize_auto_load): Rewrite construction of scripts-directory
13640 help.
13641 * auto-load.h (struct objfile): Add forward decl.
13642 (struct script_language): Delete.
13643 (struct auto_load_pspace_info): Add forward decl.
13644 (struct extension_language_defn): Add forward decl.
13645 (maybe_add_script): Delete.
13646 (auto_load_objfile_script): Declare.
13647 (script_not_found_warning_print): Delete.
13648 (auto_load_info_scripts): Update prototype.
13649 (auto_load_gdb_scripts_enabled): Declare.
13650 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13651 auto_load_python_scripts_enabled and made public.
13652 (script_language_python): Delete, moved to python.c.
13653 (gdbpy_script_language_defn): Delete.
13654 (info_auto_load_python_scripts): Update to use
13655 extension_language_python.
13656
13657 * breakpoint.c (condition_command): Replace call to
13658 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13659 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13660 with call to breakpoint_ext_lang_cond_says_stop.
13661 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13662 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13663 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13664 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13665 New arg slang.
13666 (local_setattro): Print name of extension language with existing
13667 stop condition.
13668
13669 * valprint.c (val_print, value_print): Update to call
13670 apply_ext_lang_val_pretty_printer.
13671 * cp-valprint.c (cp_print_value): Update call to
13672 apply_ext_lang_val_pretty_printer.
13673 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13674 (gdbpy_apply_val_pretty_printer): Renamed from
13675 apply_val_pretty_printer. New arg extlang.
13676 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13677
13678 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13679 extension language API.
13680 * cli/cli-script.c (execute_control_command): Update to call
13681 eval_ext_lang_from_control_command.
13682
13683 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13684 enum ext_lang_bt_status values. Update call to
13685 apply_ext_lang_frame_filter.
13686 (mi_cmd_stack_list_locals): Ditto.
13687 (mi_cmd_stack_list_args): Ditto.
13688 (mi_cmd_stack_list_variables): Ditto.
13689 * mi/mi-main.c: Delete #include "python/python-internal.h".
13690 Add #include "extension.h".
13691 (mi_cmd_list_features): Replace reference to python internal variable
13692 gdb_python_initialized with call to ext_lang_initialized_p.
13693
13694 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13695 Update to use enum ext_lang_frame_args. Update to call
13696 apply_ext_lang_frame_filter.
13697 * python/py-framefilter.c (extract_sym): Update to use enum
13698 ext_lang_bt_status.
13699 (extract_value, py_print_type, py_print_value): Ditto.
13700 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13701 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13702 (py_print_frame): Ditto.
13703 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13704 New arg extlang. Update to use enum ext_lang_bt_status.
13705
13706 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13707 finish_python_initialization. Replace with call to
13708 finish_ext_lang_initialization.
13709
13710 * typeprint.c (do_free_global_table): Update to call
13711 free_ext_lang_type_printers.
13712 (create_global_typedef_table): Update to call
13713 start_ext_lang_type_printers.
13714 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13715 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13716 (type_print_options): Change type of global_printers from "void *"
13717 to "struct ext_lang_type_printers *".
13718
13719 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13720 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13721 (gdbpy_preserve_values): Renamed from preserve_python_values.
13722 New arg extlang.
13723 (!HAVE_PYTHON, preserve_python_values): Delete.
13724
13725 * utils.c (quit_flag): Delete, moved to extension.c.
13726 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13727 extension.c.
13728
13729 * eval.c: Delete #include "python/python.h".
13730 * main.c: Delete #include "python/python.h".
13731
13732 * defs.h: Update comment.
13733
13734 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13735
13736 GDB 7.7 released.
13737
13738 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13739
13740 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13741 defined.
13742
13743 2014-02-05 Yao Qi <yao@codesourcery.com>
13744
13745 * remote.c (remote_pass_signals): Remove local 'buf' and use
13746 rs->buf.
13747 (remote_program_signals): Likewise.
13748
13749 2014-02-05 Yao Qi <yao@codesourcery.com>
13750
13751 * ctf.c: Include "inferior.h" and "gdbthread.h".
13752 (CTF_PID): A new macro.
13753 (ctf_open): Call inferior_appeared and add_thread_silent.
13754 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13755 (ctf_thread_alive): New function.
13756 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13757
13758 2014-02-05 Yao Qi <yao@codesourcery.com>
13759
13760 Revert this patch:
13761
13762 2013-05-24 Yao Qi <yao@codesourcery.com>
13763
13764 * tracepoint.c (TFILE_PID): Remove.
13765 (tfile_open): Don't add thread and inferior.
13766 (tfile_close): Don't set 'inferior_ptid'. Don't call
13767 exit_inferior_silent.
13768 (tfile_thread_alive): Remove.
13769 (init_tfile_ops): Don't set field 'to_thread_alive' of
13770 tfile_ops.
13771
13772 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13773
13774 * remote.c (remote_start_remote): Call remote_check_symbols even
13775 if only symbol-file (not file) has been given.
13776
13777 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13778
13779 * gdbarch.sh (skip_entrypoint): New callback.
13780 * gdbarch.c, gdbarch.h: Regenerate.
13781 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13782 * infrun.c (fill_in_stop_func): Likewise.
13783 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13784 (ppc_elfv2_elf_make_msymbol_special): New function.
13785 (ppc_elfv2_skip_entrypoint): Likewise.
13786 (ppc_linux_init_abi): Install them for ELFv2.
13787
13788 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13789
13790 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13791 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13792 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13793 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13794 structures returned in GPRs.
13795
13796 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13797
13798 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13799 offset to the stack parameter list for the ELFv2 ABI.
13800
13801 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13802
13803 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13804 set_gdbarch_convert_from_func_ptr_addr and
13805 set_gdbarch_elf_make_msymbol_special for ELFv1.
13806 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13807 function descriptors on ELFv1.
13808 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13809 set up r12 at function entry.
13810
13811 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13812
13813 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13814 (struct gdbarch_tdep): New member elf_abi.
13815
13816 * rs6000-tdep.c: Include "elf/ppc64.h".
13817 (rs6000_gdbarch_init): Detect ELF ABI version.
13818
13819 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13820
13821 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13822 within a register pair holding a DFP 128-bit value on little-endian.
13823 (ppc64_sysv_abi_return_value_base): Likewise.
13824 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13825 (dfp_pseudo_register_write): Likewise.
13826
13827 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13828
13829 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13830 offset on little-endian when passing _Decimal32.
13831 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13832
13833 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13834
13835 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13836 of the overlapped FP register within the VSX register on little-
13837 endian platforms.
13838 (efpr_pseudo_register_write): Likewise.
13839
13840 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13841
13842 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13843 offset on little-endian when passing small structures.
13844
13845 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13846
13847 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13848 (struct ppc64_sysv_argpos): New data structure.
13849 (ppc64_sysv_abi_push_float): Remove.
13850 (ppc64_sysv_abi_push_val): New function.
13851 (ppc64_sysv_abi_push_integer): Likewise.
13852 (ppc64_sysv_abi_push_freg): Likewise.
13853 (ppc64_sysv_abi_push_vreg): Likewise.
13854 (ppc64_sysv_abi_push_param): Likewise.
13855 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13856 (ppc64_sysv_abi_return_value_base): New function.
13857 (ppc64_sysv_abi_return_value): Refactor to use it.
13858
13859 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13860
13861 * NEWS: Document new target powerpc64le-*-linux*.
13862
13863 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13864
13865 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13866 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13867 core dumps.
13868 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13869 register set used in ELF core dumps. Add floating-point register set.
13870
13871 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13872
13873 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13874 dwarf2_to_gdb[] table using symbolic constants. Adjust
13875 penultimate entry from number representing the PC register
13876 to symbolic constant representing the MDR register. Add
13877 constant for the PC register to the end of the table.
13878
13879 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13880
13881 * bsd-kvm.c: Include <sys/param.h>
13882
13883 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13884
13885 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13886
13887 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13888
13889 * ada-lang.h (clear_ada_sym_cache): Delete.
13890
13891 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13892
13893 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13894
13895 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13896
13897 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13898 the sigreturn register save area only if the syscall is
13899 sigreturn.
13900
13901 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13902
13903 * valops.c (value_slice): Minor reformatting.
13904
13905 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13906
13907 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13908
13909 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13910
13911 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13912 New static globals.
13913 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13914 (ada_ignore_descriptive_types_p): New static global.
13915 (find_parallel_type_by_descriptive_type): Return immediately
13916 if ada_ignore_descriptive_types_p is set.
13917 (_initialize_ada_language): Register new commands "maintenance
13918 set ada", "maintenance show ada", "maintenance set ada
13919 ignore-descriptive-types" and "maintenance show ada
13920 ignore-descriptive-types".
13921 * NEWS: Add entry for new "maint ada set/show
13922 ignore-descriptive-types" commands.
13923
13924 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13925
13926 * record-btrace.c (record_btrace_close): Call btrace_teardown
13927 for all threads.
13928
13929 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13930
13931 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13932 "ui-out.h".
13933
13934 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13935
13936 * ada-typeprint (type_is_full_subrange_of_target_type):
13937 New function.
13938 (print_range): Add parameter bounds_prefered_p. If not set,
13939 try printing range types using the name of their base type.
13940 (print_range_type): Add parameter bounds_prefered_p.
13941 Use it in call to print_range.
13942 (print_array_type, ada_print_type): Update calls to print_range
13943 and print_range_type.
13944
13945 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13946
13947 * ada-typeprint.c (print_array_type, print_choices, print_range)
13948 (print_range_bound, print_dynamic_range_bound, print_range_type):
13949 Remove declaration.
13950
13951 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13952
13953 * ada-typeprint.c (print_range): Add missing empty line
13954 after local declaration.
13955
13956 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13957
13958 * ada-valprint.c (print_optional_low_bound): Get index_type's
13959 target type for as long as it is a TYPE_CODE_RANGE.
13960
13961 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13962
13963 * procfs.c (procfs_make_note_section): Remove assertion and
13964 associated comment.
13965
13966 2014-01-24 Yao Qi <yao@codesourcery.com>
13967
13968 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13969 * corelow.c (get_core_siginfo): Likewise.
13970
13971 2014-01-24 Yao Qi <yao@codesourcery.com>
13972
13973 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13974 ULONGEST. Don't check 'len' is negative.
13975 (remote_write_bytes): Change type of 'len' to ULONGEST.
13976
13977 2014-01-23 Tom Tromey <tromey@redhat.com>
13978
13979 PR python/16485:
13980 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13981 Handle exception from frame.block.
13982 (FrameVars.fetch_frame_locals): Likewise.
13983
13984 2014-01-23 Tom Tromey <tromey@redhat.com>
13985
13986 PR python/16487:
13987 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13988 on a NULL pointer. Move "goto error" to correct place.
13989
13990 2014-01-23 Tom Tromey <tromey@redhat.com>
13991
13992 PR python/16491:
13993 * python/py-framefilter.c (apply_frame_filter): Call
13994 ensure_python_env after computing gdbarch.
13995
13996 2014-01-23 Yao Qi <yao@codesourcery.com>
13997
13998 * target.c (raw_memory_xfer_partial): Change argument type
13999 from void * to gdb_byte *.
14000 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14001
14002 2014-01-22 Doug Evans <dje@google.com>
14003
14004 New gdbserver option --debug-format=timestamp.
14005 * NEWS: Mention it.
14006
14007 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14008
14009 * syscalls/s390x-linux.xml: New file.
14010 * syscalls/s390-linux.xml: New file.
14011 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14012 (XML_SYSCALL_FILENAME_S390X): Likewise.
14013 (op_svc): New enum value for SVC opcode.
14014 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14015 (s390_linux_get_syscall_number): New function.
14016 (s390_gdbarch_init): Register '*get_syscall_number' and the
14017 syscall xml file name.
14018 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14019 "s390-linux.xml" and "s390x-linux.xml".
14020 * NEWS: Announce new feature.
14021
14022 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14023
14024 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14025
14026 2014-01-22 Pedro Alves <palves@redhat.com>
14027
14028 * xtensa-config.c: Include defs.h.
14029
14030 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14031
14032 * common/common-utils.h: Add "ARI:" comment beside __func__
14033 reference.
14034
14035 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14036
14037 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14038 documentation a bit.
14039
14040 2014-01-21 Roland McGrath <mcgrathr@google.com>
14041
14042 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14043 * configure: Regenerate.
14044 * aclocal.m4: Regenerate.
14045 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14046 New substituted variables.
14047 (install-strip): New target.
14048 (INSTALL_SCRIPT): New substituted variable.
14049 (FLAGS_TO_PASS): Add it.
14050 (install-only): Use $(INSTALL_SCRIPT) rather than
14051 $(INSTALL_PROGRAM) for gcore.
14052
14053 2014-01-20 Tom Tromey <tromey@redhat.com>
14054
14055 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14056 together.
14057
14058 2014-01-20 Tom Tromey <tromey@redhat.com>
14059
14060 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14061 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14062 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14063 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14064 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14065 (struct cmd_list_element) <flags>: Remove.
14066 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14067 doc_allocated>: New fields.
14068 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14069 bitfields.
14070 * maint.c (maintenance_do_deprecate): Update.
14071 * top.c (execute_command): Update.
14072
14073 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14074
14075 * xtensa-linux-nat.c: Include asm/ptrace.h.
14076
14077 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14078
14079 * Makefile.in (SFILES): Add d-support.c.
14080 (COMMON_OBS): Add d-support.o.
14081 * d-lang.h (d_parse_symbol): Add comment, now defined in
14082 d-support.c.
14083 * d-lang.c (parse_call_convention)
14084 (parse_attributes, parse_function_types)
14085 (parse_function_args, parse_type, parse_identifier)
14086 (call_convention_p, d_parse_symbol): Move functions to ...
14087 * d-support.c: ... New file.
14088
14089 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14090
14091 * d-lang.h (d_parse_symbol): Add declaration.
14092 * d-lang.c (extract_identifiers)
14093 (extract_type_info): Remove functions.
14094 (parse_call_convention, parse_attributes)
14095 (parse_function_types, parse_function_args)
14096 (parse_type, parse_identifier, call_convention_p)
14097 (d_parse_symbol): New functions.
14098 (d_demangle): Use d_parse_symbol to demangle D symbols.
14099
14100 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14101
14102 * d-lang.h (struct builtin_d_type): New data type.
14103 (builtin_d_type): Add declaration.
14104 * d-lang.c (d_language_arch_info, build_d_types)
14105 (builtin_d_type): New functions.
14106 (enum d_primitive_types): New data type.
14107 (d_language_defn): Change c_language_arch_info to
14108 d_language_arch_info.
14109 (d_type_data): New static variable.
14110 (_initialize_d_language): Initialize d_type_data.
14111
14112 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14113
14114 * d-lang.h (d_main_name): Add declaration.
14115 * d-lang.c (d_main_name): New function.
14116 * symtab.c (find_main_name): Add call to d_main_name.
14117
14118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14119
14120 * d-lang.c (d_language_defn): Change macro_expansion_c to
14121 macro_expansion_no.
14122
14123 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14124
14125 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14126
14127 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14128
14129 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14130 gdb_exception" declaration.
14131 * remote.c (getpkt_or_notif_sane): Likewise.
14132
14133 2014-01-17 Doug Evans <dje@google.com>
14134
14135 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14136 function, contents of dirnames_to_char_ptr_vec_append moved here.
14137 (delim_string_to_char_ptr_vec): New function.
14138 (dirnames_to_char_ptr_vec_append): Rewrite.
14139 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14140
14141 2014-01-17 Doug Evans <dje@google.com>
14142
14143 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14144 and moved here ...
14145 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14146 #include "common-utils.h".
14147 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14148 * common/vec.h (VEC_ASSERT_PASS): Update.
14149 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14150 (MACH_CHECK_ERROR): Update.
14151
14152 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14153
14154 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14155 comments.
14156 * gdbarch.h: Regenerate.
14157
14158 2014-01-16 Tom Tromey <tromey@redhat.com>
14159
14160 * value.c (struct value) <regnum>: Move earlier.
14161
14162 2014-01-16 Tom Tromey <tromey@redhat.com>
14163
14164 * remote.c (extended_remote_create_inferior): Rename from
14165 extended_remote_create_inferior_1. Add "ops" argument. Remove
14166 old implementation.
14167
14168 2014-01-16 Pedro Alves <palves@redhat.com>
14169
14170 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14171 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14172 the backchain.
14173
14174 2014-01-16 Doug Evans <dje@google.com>
14175
14176 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14177
14178 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14179
14180 * btrace.h (btrace_thread_flag): New.
14181 (struct btrace_thread_info) <flags>: New.
14182 * record-btrace.c (record_btrace_resume_thread)
14183 (record_btrace_find_thread_to_move, btrace_step_no_history)
14184 (btrace_step_stopped, record_btrace_start_replaying)
14185 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14186 (record_btrace_find_resume_thread): New.
14187 (record_btrace_resume, record_btrace_wait): Extend.
14188 (record_btrace_can_execute_reverse): New.
14189 (record_btrace_open): Fail in non-stop mode.
14190 (record_btrace_set_replay): Split into this, ...
14191 (record_btrace_stop_replaying): ... this, ...
14192 (record_btrace_clear_histories): ... and this.
14193 (init_record_btrace_ops): Init to_can_execute_reverse.
14194 * NEWS: Announce it.
14195
14196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14197
14198 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14199 (forward_target_decr_pc_after_break)
14200 (target_decr_pc_after_break): New.
14201 * target.c (forward_target_decr_pc_after_break)
14202 (target_decr_pc_after_break): New.
14203 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14204 instead of gdbarch_decr_pc_after_break.
14205 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14206 instead of gdbarch_decr_pc_after_break.
14207 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14208 instead of gdbarch_decr_pc_after_break.
14209 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14210 instead of gdbarch_decr_pc_after_break.
14211 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14212 instead of gdbarch_decr_pc_after_break.
14213 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14214 instead of gdbarch_decr_pc_after_break.
14215
14216 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14217
14218 * btrace.c: Include regcache.h.
14219 (btrace_add_pc): New.
14220 (btrace_enable): Call btrace_add_pc.
14221 (btrace_is_empty): New.
14222 * btrace.h (btrace_is_empty): New.
14223 * record-btrace.c (require_btrace, record_btrace_info): Call
14224 btrace_is_empty.
14225
14226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14227
14228 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14229 Support delta reads.
14230 (linux_disable_btrace): Change return type.
14231 * common/linux-btrace.h (linux_read_btrace): Change parameters
14232 and return type to allow error reporting. Update users.
14233 (linux_disable_btrace): Change return type. Update users.
14234 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14235 New.
14236 (btrace_error): New.
14237 (btrace_block) <begin>: Comment on BEGIN == 0.
14238 * btrace.c (btrace_compute_ftrace): Start from the end of
14239 the current trace.
14240 (btrace_stitch_trace, btrace_clear_history): New.
14241 (btrace_fetch): Read delta trace, return if replaying.
14242 (btrace_clear): Move clear history code to btrace_clear_history.
14243 (parse_xml_btrace): Throw an error if parsing failed.
14244 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14245 and return type to allow error reporting.
14246 (target_read_btrace): Change parameters and return type to allow
14247 error reporting.
14248 * target.c (target_read_btrace): Update.
14249 * remote.c (remote_read_btrace): Support delta reads. Pass
14250 errors on.
14251 * NEWS: Announce it.
14252
14253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14254
14255 * record.h (record_btrace_frame_unwind)
14256 (record_btrace_tailcall_frame_unwind): New declarations.
14257 * dwarf2-frame: Include record.h
14258 (dwarf2_frame_cfa): Throw an error for btrace frames.
14259 * record-btrace.c: Include hashtab.h.
14260 (btrace_get_bfun_name): New.
14261 (btrace_call_history): Call btrace_get_bfun_name.
14262 (struct btrace_frame_cache): New.
14263 (bfcache): New.
14264 (bfcache_hash, bfcache_eq, bfcache_new): New.
14265 (btrace_get_frame_function): New.
14266 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14267 (record_btrace_frame_this_id): Compute own id.
14268 (record_btrace_frame_prev_register): Provide PC, throw_error
14269 for all other registers.
14270 (record_btrace_frame_sniffer): Detect btrace frames.
14271 (record_btrace_tailcall_frame_sniffer): New.
14272 (record_btrace_frame_dealloc_cache): New.
14273 (record_btrace_frame_unwind): Add new functions.
14274 (record_btrace_tailcall_frame_unwind): New.
14275 (_initialize_record_btrace): Allocate cache.
14276 * btrace.c (btrace_clear): Call reinit_frame_cache.
14277 * NEWS: Announce it.
14278
14279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14280
14281 * record-btrace.c (record_btrace_set_replay)
14282 (record_btrace_goto_begin, record_btrace_goto_end)
14283 (record_btrace_goto): New.
14284 (init_record_btrace_ops): Initialize them.
14285 * NEWS: Announce it.
14286
14287 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14288
14289 * record-btrace.c (record_btrace_find_new_threads)
14290 (record_btrace_thread_alive): New.
14291 (init_record_btrace_ops): Initialize to_find_new_threads and
14292 to_thread_alive.
14293
14294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14295
14296 * record-btrace.c (record_btrace_resume): New.
14297 (record_btrace_wait): New.
14298 (init_record_btrace_ops): Initialize to_wait and to_resume.
14299
14300 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14301
14302 * record-btrace.c (record_btrace_xfer_partial)
14303 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14304 (record_btrace_allow_memory_access): New.
14305 (init_record_btrace_ops): Initialize new methods.
14306 * target.c (raw_memory_xfer_partial): Bail out if target reports
14307 that this memory is not available.
14308
14309 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14310
14311 * target.h (target_ops) <to_insert_breakpoint>
14312 <to_remove_breakpoint>: Add target_ops parameter.
14313 (forward_target_insert_breakpoint): New.
14314 (forward_target_remove_breakpoint): New.
14315 (memory_remove_breakpoint, memory_insert_breakpoint):
14316 Add target_ops parameter.
14317 * target.c (target_insert_breakpoint): Split into this and ...
14318 (forward_target_insert_breakpoint): ... this.
14319 (target_remove_breakpoint): Split into this and ...
14320 (forward_target_remove_breakpoint): ... this.
14321 (debug_to_insert_breakpoint): Add target_ops parameter.
14322 Call forward_target_insert_breakpoint.
14323 (debug_to_remove_breakpoint): Add target_ops parameter.
14324 Call forward_target_remove_breakpoint.
14325 (update_current_target): Do not inherit or default to_insert_breakpoint
14326 and to_remove_breakpoint.
14327 * corelow.c (ignore): Add target_ops parameter.
14328 * exec.c (ignore): Add target_ops parameter.
14329 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14330 Add target_ops parameter.
14331 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14332 Add target_ops parameter.
14333 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14334 Add target_ops parameter.
14335 * record-full.c (record_full_beneath_to_insert_breakpoint)
14336 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14337 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14338 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14339 (record_full_core_remove_breakpoint): Add target_ops parameter.
14340 Update users.
14341 (record_full_beneath_to_insert_breakpoint_ops)
14342 (record_full_beneath_to_remove_breakpoint_ops)
14343 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14344 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14345 tmp_to_remove_breakpoint_ops,
14346 record_full_beneath_to_insert_breakpoint_ops, and
14347 record_full_beneath_to_remove_breakpoint_ops.
14348 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14349 (m32r_remove_breakpoint): Add target_ops parameter.
14350 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14351 Add target_ops parameter.
14352 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14353 Add target_ops parameter.
14354
14355 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14356 Markus Metzger <markus.t.metzger@intel.com>
14357
14358 * record-btrace.c: Include frame-unwind.h.
14359 (record_btrace_frame_unwind_stop_reason)
14360 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14361 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14362 New.
14363 (init_record_btrace_ops): Install it.
14364
14365 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14366
14367 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14368 get_prev_frame_1.
14369
14370 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14371
14372 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14373 earlier.
14374
14375 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14376
14377 * frame-unwind.c: Include target.h.
14378 (frame_unwind_try_unwinder): New function with code from ...
14379 (frame_unwind_find_by_frame): ... here. New variable
14380 unwinder_from_target, call also target_get_unwinder)
14381 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14382 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14383 * target.h (struct target_ops): New fields to_get_unwinder and
14384 to_get_tailcall_unwinder.
14385 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14386
14387 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14388
14389 * record-btrace.c (record_btrace_fetch_registers)
14390 (record_btrace_store_registers)
14391 (record_btrace_to_prepare_to_store): New.
14392 (init_record_btrace_ops): Add the above.
14393
14394 2014-01-16 Tom Tromey <tromey@redhat.com>
14395
14396 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14397 * target.h (struct target_ops) <to_prepare_to_store>: Add
14398 argument.
14399 (target_prepare_to_store): Add argument.
14400 * target.c (debug_to_prepare_to_store): Add argument.
14401 (update_current_target): Update.
14402 * remote.c (remote_prepare_to_store): Add 'self' argument.
14403 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14404 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14405 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14406 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14407 argument.
14408 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14409 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14410 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14411 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14412 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14413
14414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14415
14416 * btrace.h (replay) <replay>: New.
14417 (btrace_is_replaying): New.
14418 * btrace.c (btrace_clear): Free replay iterator.
14419 (btrace_is_replaying): New.
14420 * record-btrace.c (record_btrace_is_replaying): New.
14421 (record_btrace_info): Print insn number if replaying.
14422 (record_btrace_insn_history): Start at replay position.
14423 (record_btrace_call_history): Start at replay position.
14424 (init_record_btrace_ops): Init to_record_is_replaying.
14425
14426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14427
14428 * record-btrace.c (record_btrace_insn_history_range): Include
14429 end.
14430 (record_btrace_insn_history_from): Adjust range.
14431 (record_btrace_call_history_range): Include
14432 end.
14433 (record_btrace_call_history_from): Adjust range.
14434 * NEWS: Announce changes.
14435
14436 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14437
14438 * record.h (enum record_print_flag)
14439 <record_print_indent_calls>: New.
14440 * record.c (get_call_history_modifiers): Recognize /c modifier.
14441 (_initialize_record): Document /c modifier.
14442 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14443 Reorder fields. Optionally indent the function name. Update
14444 all users.
14445 * NEWS: Announce changes.
14446
14447 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14448
14449 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14450
14451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14452
14453 * btrace.c (ftrace_new_function): Start counting at one.
14454 * record-btrace.c (record_btrace_info): Adjust number of calls
14455 and insns.
14456 * NEWS: Announce it.
14457
14458 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14459
14460 * record-btrace.c (btrace_call_history_insn_range): Print
14461 insn range as [begin, end].
14462
14463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14464
14465 * btrace.h (struct btrace_func_link): New.
14466 (enum btrace_function_flag): New.
14467 (struct btrace_inst): Rename to ...
14468 (struct btrace_insn): ...this. Update all users.
14469 (struct btrace_func) <ibegin, iend>: Remove.
14470 (struct btrace_func_link): New.
14471 (struct btrace_func): Rename to ...
14472 (struct btrace_function): ...this. Update all users.
14473 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14474 (number, level, flags>: New.
14475 (struct btrace_insn_iterator): Rename to ...
14476 (struct btrace_insn_history): ...this.
14477 Update all users.
14478 (struct btrace_insn_iterator, btrace_call_iterator): New.
14479 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14480 (struct btrace_target_info) <begin, end, level>
14481 <insn_history, call_history>: New.
14482 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14483 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14484 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14485 (btrace_call_number, btrace_call_begin, btrace_call_end)
14486 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14487 (btrace_find_function_by_number, btrace_set_insn_history)
14488 (btrace_set_call_history): New.
14489 * btrace.c (btrace_init_insn_iterator)
14490 (btrace_init_func_iterator, compute_itrace): Remove.
14491 (ftrace_print_function_name, ftrace_print_filename)
14492 (ftrace_skip_file): Change
14493 parameter to const.
14494 (ftrace_init_func): Remove.
14495 (ftrace_debug): Use new btrace_function fields.
14496 (ftrace_function_switched): Also consider gaining and
14497 losing symbol information).
14498 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14499 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14500 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14501 New.
14502 (ftrace_new_function): Move. Remove debug print.
14503 (ftrace_update_lines, ftrace_update_insns): New.
14504 (ftrace_update_function): Check for call, ret, and jump.
14505 (compute_ftrace): Renamed to ...
14506 (btrace_compute_ftrace): ...this. Rewritten to compute call
14507 stack.
14508 (btrace_fetch, btrace_clear): Updated.
14509 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14510 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14511 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14512 (btrace_call_number, btrace_call_begin, btrace_call_end)
14513 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14514 (btrace_find_function_by_number, btrace_set_insn_history)
14515 (btrace_set_call_history): New.
14516 * record-btrace.c (require_btrace): Use new btrace thread
14517 info fields.
14518 (record_btrace_info, btrace_insn_history)
14519 (record_btrace_insn_history, record_btrace_insn_history_range):
14520 Use new btrace thread info fields and new iterator.
14521 (btrace_func_history_src_line): Rename to ...
14522 (btrace_call_history_src_line): ...this. Use new btrace
14523 thread info fields.
14524 (btrace_func_history): Rename to ...
14525 (btrace_call_history): ...this. Use new btrace thread info
14526 fields and new iterator.
14527 (record_btrace_call_history, record_btrace_call_history_range):
14528 Use new btrace thread info fields and new iterator.
14529
14530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14531
14532 * frame.h (frame_id_build_unavailable_stack_special): New.
14533 * frame.c (frame_id_build_unavailable_stack_special): New.
14534
14535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14536
14537 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14538 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14539 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14540 to gdbarch.
14541 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14542 (i386_insn_is_jump, i386_jmp_p): New.
14543 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14544 insn_is_jump to gdbarch.
14545 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14546 * gdbarch.h: Regenerated.
14547 * gdbarch.c: Regenerated.
14548 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14549 (default_insn_is_jump): New.
14550 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14551 (default_insn_is_jump): New.
14552
14553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14554
14555 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14556 Change to ...
14557 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14558 (btrace_read_type) <btrace_read_new>: Change to ...
14559 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14560
14561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14562
14563 * common/linux-btrace.c (linux_read_btrace): Free trace from
14564 previous iteration.
14565
14566 2014-01-15 Doug Evans <dje@google.com>
14567
14568 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14569 uint32_t.
14570
14571 2014-01-15 Tom Tromey <tromey@redhat.com>
14572
14573 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14574 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14575 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14576 (set_objfile_main_name): New function.
14577 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14578 language_of_main>: New fields.
14579 (set_objfile_main_name): Declare.
14580 * symtab.c (find_main_name): Loop over objfiles to find the main
14581 name and language.
14582 (set_main_name): Now static.
14583 (get_main_info): Add comment.
14584 * symtab.h (set_main_name): Don't declare.
14585
14586 2014-01-15 Tom Tromey <tromey@redhat.com>
14587
14588 * symtab.c (main_progspace_key): New global.
14589 (struct main_info): New.
14590 (name_of_main, language_of_main): Remove.
14591 (get_main_info, main_info_cleanup): New function.
14592 (set_main_name, main_name, main_language): Use get_main_info.
14593 (_initialize_symtab): Initialize main_progspace_key.
14594
14595 2014-01-15 Tom Tromey <tromey@redhat.com>
14596
14597 * dbxread.c (process_one_symbol): Update.
14598 * dwarf2read.c (read_partial_die): Update.
14599 * symfile.c (set_initial_language): Call main_language.
14600 * symtab.c (language_of_main): Now static.
14601 (set_main_name): Add 'lang' parameter.
14602 (find_main_name): Update.
14603 (main_language): New function.
14604 (symtab_observer_executable_changed): Update.
14605 * symtab.h (set_main_name): Update.
14606 (language_of_main): Remove.
14607 (main_language): Declare.
14608
14609 2014-01-15 Tom Tromey <tromey@redhat.com>
14610
14611 * symfile.c (init_entry_point_info): Use new "initialized" field.
14612 Update.
14613 * objfiles.h (struct entry_point) <initialized>: New field.
14614 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14615 (struct objfile) <ei>: ...here. Remove.
14616 * objfiles.c (entry_point_address_query): Update.
14617
14618 2014-01-15 Tom Tromey <tromey@redhat.com>
14619
14620 * objfiles.c (entry_point_address_query): Relocate entry point
14621 address.
14622 (objfile_relocate1): Do not relocate entry point address.
14623 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14624 <the_bfd_section_index>: New field.
14625 * symfile.c (init_entry_point_info): Find the entry point's
14626 section.
14627
14628 2014-01-15 Tom Tromey <tromey@redhat.com>
14629
14630 * solib-frv.c (enable_break): Use entry_point_address_query.
14631
14632 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14633
14634 * NEWS: Add note on improved process record-replay on
14635 arm*-linux* targets.
14636
14637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14638
14639 * arm-tdep.c (enum arm_record_result): New enum.
14640 (arm_record_unsupported_insn): New function.
14641 (arm_record_coproc_data_proc): Removed.
14642 (thumb2_record_ld_st_multiple): New function.
14643 (thumb2_record_ld_st_dual_ex_tbb): New function.
14644 (thumb2_record_data_proc_sreg_mimm): New function.
14645 (thumb2_record_ps_dest_generic): New function.
14646 (thumb2_record_branch_misc_cntrl): New function.
14647 (thumb2_record_str_single_data): New function.
14648 (thumb2_record_ld_mem_hints): New function.
14649 (thumb2_record_ld_word): New function.
14650 (thumb2_record_lmul_lmla_div): New function.
14651 (thumb2_record_decode_insn_handler): New function.
14652 (decode_insn): Add thumb32 instruction handlers.
14653
14654 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14655
14656 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14657 (struct arm_linux_record_tdep): Declare.
14658 (arm_canonicalize_syscall): New function.
14659 (arm_all_but_pc_registers_record): New function.
14660 (arm_linux_syscall_record): New function.
14661 (arm_linux_init_abi): Add syscall recording constructs.
14662 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14663 decoding. (arm_record_coproc_data_proc): Update arm syscall
14664 decoding.
14665 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14666 <arm_syscall_record>: New field.
14667 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14668 gdb_target_obs.
14669
14670 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14671
14672 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14673 register for push instruction recording.
14674
14675 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14676
14677 * arm-tdep.c (thumb_record_misc): Update to correct logical
14678 error while recording ldm, ldmia and pop instructions.
14679
14680 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14681
14682 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14683
14684 2014-01-15 Pedro Alves <palves@redhat.com>
14685
14686 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14687 (go32_resume, go32_fetch_registers, store_register)
14688 (go32_store_registers, go32_prepare_to_store)
14689 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14690 (go32_create_inferior, go32_can_run, go32_terminal_init)
14691 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14692 declarations.
14693
14694 2014-01-15 Tom Tromey <tromey@redhat.com>
14695
14696 * target.h (async_callback_ftype): New typedef.
14697 (struct target_ops) <to_async>: Use it.
14698
14699 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14700
14701 * python/py-value.c (get_field_type): Remove unnecessary curly
14702 braces for single-statement if block.
14703
14704 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14705
14706 * python/py-type.c (convert_field): Add missing empty line
14707 after declarations.
14708
14709 2014-01-14 Doug Evans <dje@google.com>
14710
14711 * symfile.h (expand_symtabs_matching): Renamed from
14712 expand_partial_symbol_names. Update prototype.
14713 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14714 * symfile.c (expand_symtabs_matching): Renamed from
14715 expand_partial_symbol_names. New args file_matcher, kind.
14716 Rename arg fun to symbol_matcher.
14717 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14718 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14719 ada_expand_partial_symbol_name.
14720 (ada_make_symbol_completion_list): Update to call
14721 expand_symtabs_matching.
14722 (ada_add_global_exceptions): Call expand_symtabs_matching.
14723 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14724 call map_symbol_filenames.
14725 * symtab.c (sources_info): Update to call map_symbol_filenames.
14726 (search_symbols): Call expand_symtabs_matching.
14727 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14728 (default_make_symbol_completion_list_break_on): Update to call
14729 expand_symtabs_matching.
14730 (make_source_files_completion_list): Update to call
14731 map_symbol_filenames.
14732
14733 2014-01-14 Doug Evans <dje@google.com>
14734
14735 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14736 (expand_symtabs_symbol_matcher_ftype): New typedef.
14737 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14738 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14739 * symfile.c (expand_partial_symbol_names): Update to use
14740 expand_symtabs_symbol_matcher_ftype.
14741 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14742 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14743 Arg name_matcher renamed to symbol_matcher.
14744 * psymtab.c (recursively_search_psymtabs): Update to use
14745 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14746 sym_matcher.
14747 (expand_symtabs_matching_via_partial): Update to use
14748 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14749 Arg name_matcher renamed to symbol_matcher.
14750
14751 2014-01-14 Doug Evans <dje@google.com>
14752
14753 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14754 (map_partial_symbol_filenames): Ditto.
14755 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14756 (map_partial_symbol_filenames): Ditto.
14757 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14758 (map_partial_symbol_filenames): Ditto.
14759 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14760 (map_partial_symbol_filenames): Ditto.
14761 * symtab.c: Delete #include "psymtab.h".
14762
14763 2014-01-14 Pedro Alves <palves@redhat.com>
14764 Tom Tromey <tromey@redhat.com>
14765
14766 * infrun.c (use_displaced_stepping): Use find_record_target
14767 instead of RECORD_IS_USED.
14768 (adjust_pc_after_break): Use record_full_is_used instead of
14769 RECORD_IS_USED.
14770 * record-btrace.c (record_btrace_open): Call record_preopen
14771 instead of checking RECORD_IS_USED.
14772 * record-full.c (record_full_shortname)
14773 (record_full_core_shortname): New globals.
14774 (record_full_is_used): New function.
14775 (find_full_open): Call record_preopen instead of checking
14776 RECORD_IS_USED.
14777 (init_record_full_ops): Set the target's shortname to
14778 record_full_shortname.
14779 (init_record_full_core_ops): Set the target's shortname to
14780 record_full_core_shortname.
14781 * record-full.h (record_full_is_used): Declare.
14782 * record.c (find_record_target): Make extern.
14783 (record_preopen): New function.
14784 * record.h (RECORD_IS_USED): Delete macro.
14785 (find_record_target, record_preopen): Declare functions.
14786
14787 2014-01-14 Yao Qi <yao@codesourcery.com>
14788
14789 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14790 'len''s type to ULONGEST.
14791 (core_xfer_shared_libraries_aix): Likewise.
14792 * gdbarch.c, gdbarch.h: Regenerated.
14793 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14794 Change type of 'len' to ULONGEST.
14795 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14796 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14797
14798 2014-01-14 Yao Qi <yao@codesourcery.com>
14799
14800 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14801 type of 'len' to ULONGEST.
14802 (linux_xfer_osdata_processgroups): Likewise.
14803 (linux_xfer_osdata_threads): Likewise.
14804 (linux_xfer_osdata_fds): Likewise.
14805 (linux_xfer_osdata_isockets): Likewise.
14806 (linux_xfer_osdata_shm): Likewise.
14807 (linux_xfer_osdata_sem): Likewise.
14808 (linux_xfer_osdata_msg): Likewise.
14809 (linux_common_xfer_osdata): Likewise.
14810 (struct osdata_type) <getter>: Likewise.
14811 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14812 the declaration.
14813
14814 2014-01-14 Yao Qi <yao@codesourcery.com>
14815
14816 * target.h (target_xfer_partial_ftype): Update.
14817 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14818 ULONGEST.
14819 * aix-thread.c (aix_thread_xfer_partial): Change type of
14820 argument 'len' to ULONGEST.
14821 * auxv.c (procfs_xfer_auxv): Likewise.
14822 (ld_so_xfer_auxv): Likewise.
14823 (memory_xfer_auxv): Likewise.
14824 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14825 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14826 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14827 * corelow.c (core_xfer_partial): Likewise.
14828 * ctf.c (ctf_xfer_partial): Likewise.
14829 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14830 '%u'.
14831 (darwin_read_dyld_info): Likewise.
14832 (darwin_xfer_partial): Likewise.
14833 * exec.c (section_table_xfer_memory_partial): Likewise.
14834 (exec_xfer_partial): Likewise.
14835 * exec.h (section_table_xfer_memory_partial): Update
14836 declaration.
14837 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14838 instead of plongest.
14839 (gnu_xfer_partial): Likewise.
14840 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14841 (ia64_hpux_xfer_solib_got): Likewise.
14842 (ia64_hpux_xfer_partial): Likewise.
14843 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14844 * inf-ptrace.c (inf_ptrace_xfer_partial):
14845 * inf-ttrace.c (inf_ttrace_xfer_partial):
14846 * linux-nat.c (linux_xfer_siginfo): Likewise.
14847 (linux_nat_xfer_partial): Likewise.
14848 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14849 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14850 * monitor.c (monitor_xfer_memory): Likewise.
14851 (monitor_xfer_partial): Likewise.
14852 * procfs.c (procfs_xfer_partial): Likewise.
14853 * record-full.c (record_full_xfer_partial): Likewise.
14854 (record_full_core_xfer_partial): Likewise.
14855 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14856 instead of plongest.
14857 (gdbsim_xfer_partial): Likewise.
14858 * remote.c (remote_xfer_partial): Likewise.
14859 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14860 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14861 declaration.
14862 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14863 (rs6000_xfer_shared_libraries): Likewise.
14864 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14865 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14866 (sparc_xfer_partial): Likewise.
14867 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14868 (spu_xfer_partial): Likewise.
14869 * spu-multiarch.c (spu_xfer_partial): Likewise.
14870 * target.c (target_read_live_memory): Likewise.
14871 (memory_xfer_live_readonly_partial): Likewise.
14872 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14873 (target_xfer_partial, default_xfer_partial): Likewise.
14874 (current_xfer_partial): Likewise.
14875 * tracepoint.c (tfile_xfer_partial): Likewise.
14876 * windows-nat.c (windows_xfer_memory): Likewise. Call
14877 pulongest instead of plongest.
14878 (windows_xfer_partial): Likewise.
14879 (windows_xfer_shared_libraries): Likewise.
14880
14881 2014-01-14 Yao Qi <yao@codesourcery.com>
14882
14883 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14884 target_xfer_partial_ftype.
14885
14886 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14887
14888 PR python/15464
14889 PR python/16113
14890 * valops.c (value_struct_elt_bitpos): New function
14891 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14892 object to 'None' if the field name is an empty string ("").
14893 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14894 attribute to look for a field when 'name' is 'None'.
14895 (get_field_type): New function
14896
14897 2014-01-13 Doug Evans <dje@google.com>
14898
14899 PR symtab/16426
14900 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14901 (try_open_dwop_file): Ditto.
14902 * gdb_bfd.c: #include "vec.h".
14903 (bfdp): New typedef.
14904 (struct gdb_bfd_data): New member included_bfds.
14905 (gdb_bfd_unref): Unref all included bfds.
14906 (gdb_bfd_record_inclusion): New function.
14907 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14908
14909 2014-01-13 Tom Tromey <tromey@redhat.com>
14910
14911 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14912
14913 2014-01-13 Tom Tromey <tromey@redhat.com>
14914
14915 * defs.h (use_windows): Remove.
14916 * gdb.c (main): Update.
14917 * main.c (captured_main, gdb_main): Update.
14918 * main.h (struct captured_main_args) <use_windows>: Remove.
14919 * top.c (use_windows): Remove.
14920
14921 2014-01-13 Tom Tromey <tromey@redhat.com>
14922
14923 * defs.h (deprecated_flush_hook): Remove.
14924
14925 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14926
14927 PR threads/16216
14928 * linux-thread-db.c (try_thread_db_load): Add parameter
14929 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14930 (try_thread_db_load_from_pdir_1): Move it there from here.
14931 (try_thread_db_load_from_sdir): Update caller.
14932 (try_thread_db_load_from_dir): Move it there from here.
14933
14934 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14935
14936 * regformats/regdat.sh: Always rewrite the register file.
14937
14938 2014-01-13 Pedro Alves <palves@redhat.com>
14939
14940 * Makefile.in (CHECK_HEADERS): New variable.
14941 (check-headers:): New rule.
14942
14943 2014-01-13 Tom Tromey <tromey@redhat.com>
14944
14945 * cli/cli-setshow.c (do_set_command): Update.
14946 * defs.h (deprecated_set_hook): Remove.
14947 * top.c (deprecated_set_hook): Remove.
14948
14949 2014-01-13 Pedro Alves <palves@redhat.com>
14950
14951 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14952 the tracepoint if the PC is a pseudo-register.
14953
14954 2014-01-13 Tom Tromey <tromey@redhat.com>
14955
14956 * defs.h (XCALLOC): Remove.
14957 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14958 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14959 * dwarf2loc.c (allocate_piece_closure): Likewise.
14960 * elfread.c (elf_symfile_segments): Likewise.
14961 (elf_symfile_segments): Likewise.
14962 * gdbtypes.c (copy_type_recursive): Likewise.
14963 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14964 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14965 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14966 XCALLOC.
14967 * mt-tdep.c (mt_gdbarch_init): Likewise.
14968 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14969 XCALLOC.
14970 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14971 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14972 * registry.c (registry_alloc_data): Likewise.
14973 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14974 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14975 * serial.c (serial_fdopen_ops): Likewise.
14976 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14977 XCALLOC.
14978 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14979 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14980 not XCALLOC.
14981
14982 2014-01-13 Tom Tromey <tromey@redhat.com>
14983
14984 * defs.h (XMALLOC): Remove.
14985 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14986 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14987 * cli-out.c (struct ui_out *): Likewise.
14988 * cli/cli-dump.c (add_dump_command): Likewise.
14989 (add_dump_command): Likewise.
14990 * complaints.c (get_complaints): Likewise.
14991 (find_complaint): Likewise.
14992 * dwarf2-frame.c (execute_cfa_program): Likewise.
14993 * dwarf2read.c (abbrev_table_read_table): Likewise.
14994 * gdbarch.sh: Likewise.
14995 * gdbarch.c: Rebuild.
14996 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14997 * interps.c (interp_new): Likewise.
14998 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14999 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15000 * mi/mi-console.c (mi_console_file_new): Likewise.
15001 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15002 * mi/mi-out.c (mi_out_new): Likewise.
15003 * mi/mi-parse.c (mi_parse): Likewise.
15004 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15005 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15006 * observer.c (xalloc_observer_list_node): Likewise.
15007 * regcache.c (regcache_xmalloc_1): Likewise.
15008 * reggroups.c (reggroup_new): Likewise.
15009 (_initialize_reggroup): Likewise.
15010 * registry.c (register_data_with_cleanup): Likewise.
15011 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15012 * ser-base.c (serial_ttystate): Likewise.
15013 * ser-mingw.c (make_pipe_state): Likewise.
15014 * ser-pipe.c (pipe_open): Likewise.
15015 * serial.c (serial_open): Likewise.
15016 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15017 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15018 (tui_alloc_win_info): Likewise.
15019 (tui_add_content_elements): Likewise.
15020 * tui/tui-file.c (tui_file_new): Likewise.
15021 * tui/tui-out.c (tui_out_new): Likewise.
15022 * ui-file.c (mem_file_new): Likewise.
15023 * ui-out.c (push_level): Likewise.
15024 (make_cleanup_ui_out_end): Likewise.
15025 (append_header_to_list): Likewise.
15026 (ui_out_new): Likewise.
15027 * user-regs.c (user_reg_add_builtin): Likewise.
15028
15029 2014-01-13 Tom Tromey <tromey@redhat.com>
15030
15031 * defs.h (XZALLOC): Remove.
15032 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15033 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15034 (get_ada_tasks_inferior_data): Likewise.
15035 * auto-load.c (get_auto_load_pspace_data): Likewise.
15036 * auxv.c (get_auxv_inferior_data): Likewise.
15037 * bfd-target.c (target_bfd_reopen): Likewise.
15038 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15039 (deprecated_insert_raw_breakpoint): Likewise.
15040 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15041 * corelow.c (core_open): Likewise.
15042 * darwin-nat.c (darwin_check_new_threads): Likewise.
15043 (darwin_attach_pid): Likewise.
15044 * dummy-frame.c (dummy_frame_push): Likewise.
15045 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15046 * dwarf2loc.c (allocate_piece_closure): Likewise.
15047 * elfread.c (elf_symfile_segments): Likewise.
15048 * eval.c (ptrmath_type_p): Likewise.
15049 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15050 * gdbtypes.c (alloc_type_arch): Likewise.
15051 (alloc_type_instance): Likewise.
15052 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15053 * inf-child.c (inf_child_can_use_agent): Likewise.
15054 * inflow.c (get_inflow_inferior_data): Likewise.
15055 * infrun.c (save_infcall_suspend_state): Likewise.
15056 * jit.c (jit_reader_load): Likewise.
15057 (get_jit_objfile_data): Likewise.
15058 (get_jit_program_space_data): Likewise.
15059 (jit_object_open_impl): Likewise.
15060 (jit_symtab_open_impl): Likewise.
15061 (jit_block_open_impl): Likewise.
15062 (jit_frame_sniffer): Likewise.
15063 * linux-fork.c (add_fork): Likewise.
15064 * maint.c (make_command_stats_cleanup): Likewise.
15065 * objfiles.c (get_objfile_pspace_data): Likewise.
15066 * opencl-lang.c (struct lval_closure): Likewise.
15067 * osdata.c (osdata_start_osdata): Likewise.
15068 * progspace.c (new_address_space): Likewise.
15069 (add_program_space): Likewise.
15070 * remote-sim.c (get_sim_inferior_data): Likewise.
15071 * sh-tdep.c (sh_gdbarch_init): Likewise.
15072 * skip.c (Ignore): Likewise.
15073 (skip_delete_command): Likewise.
15074 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15075 (library_list_start_library): Likewise.
15076 (solib_aix_current_sos): Likewise.
15077 * solib-darwin.c (get_darwin_info): Likewise.
15078 (darwin_current_sos): Likewise.
15079 * solib-dsbt.c (get_dsbt_info): Likewise.
15080 * solib-ia64-hpux.c (new_so_list): Likewise.
15081 (ia64_hpux_get_solib_linkage_addr): Likewise.
15082 * solib-spu.c (append_ocl_sos): Likewise.
15083 (spu_current_sos): Likewise.
15084 * solib-svr4.c (get_svr4_info): Likewise.
15085 (svr4_keep_data_in_core): Likewise.
15086 (library_list_start_library): Likewise.
15087 (svr4_default_sos): Likewise.
15088 (svr4_read_so_list): Likewise.
15089 * solib-target.c (library_list_start_library): Likewise.
15090 (solib_target_current_sos): Likewise.
15091 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15092 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15093 * symfile.c (default_symfile_segments): Likewise.
15094 * target-descriptions.c (tdesc_data_init): Likewise.
15095 (tdesc_create_reg): Likewise.
15096 (struct tdesc_type *): Likewise.
15097 (tdesc_create_vector): Likewise.
15098 (tdesc_set_struct_size): Likewise.
15099 (struct tdesc_type *): Likewise.
15100 (tdesc_free_feature): Likewise.
15101 (tdesc_create_feature): Likewise.
15102 * windows-nat.c (windows_add_thread): Likewise.
15103 (windows_make_so): Likewise.
15104 * xml-support.c (gdb_xml_body_text): Likewise.
15105 (gdb_xml_create_parser_and_cleanup): Likewise.
15106 (xml_process_xincludes): Likewise.
15107 * xml-syscall.c (allocate_syscalls_info): Likewise.
15108 (syscall_create_syscall_desc): Likewise.
15109
15110 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15111
15112 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15113 function, with code from i386_stap_parse_special_token.
15114 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15115 (i386_stap_parse_special_token): Move code to the two functions
15116 above; simplify it.
15117
15118 2014-01-09 Pedro Alves <palves@redhat.com>
15119 Hui Zhu <hui@codesourcery.com>
15120
15121 PR gdb/16101
15122 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15123 bp_err_string. Don't mark the location shlib_disabled if the
15124 error thrown wasn't a generic or memory error. Catch errors
15125 thrown while inserting breakpoints in overlayed code. Output
15126 error message of software breakpoints.
15127 * remote.c (remote_insert_breakpoint): If this breakpoint has
15128 target-side commands but this stub doesn't support Z0 packets,
15129 throw NOT_SUPPORTED_ERROR error.
15130 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15131 * target.h (target_insert_breakpoint): Extend comment.
15132 (target_insert_hw_breakpoint): Add comment.
15133
15134 2014-01-08 Pedro Alves <palves@redhat.com>
15135
15136 * remote.c (remote_add_thread): Add threads silently if starting
15137 up.
15138 (remote_notice_new_inferior): If in all-stop, and starting up,
15139 don't call notice_new_inferior.
15140 (get_current_thread): New function, factored out from ...
15141 (add_current_inferior_and_thread): ... this. Adjust.
15142 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15143 found any thread, then select the remote's current thread as GDB's
15144 current thread too.
15145
15146 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15147
15148 * NEWS: Create a new section for the next release branch.
15149 Rename the section of the current branch, now that it has
15150 been cut.
15151
15152 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15153
15154 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15155 * version.in: Bump version to 7.7.50.DATE-cvs.
15156
15157 2014-01-08 Yao Qi <yao@codesourcery.com>
15158
15159 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15160 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15161 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15162
15163 2014-01-08 Yao Qi <yao@codesourcery.com>
15164
15165 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15166 return value of bfd_get_filename to symbol_file_add_from_bfd.
15167
15168 2014-01-08 Pierre Muller <muller@sourceware.org>
15169
15170 Fix PR16201.
15171 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15172 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15173 to prim_record_mininal_symbol_and_info.
15174 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15175 in call to prim_record_minimal_symbol_and_info.
15176 (read_pe_exported_syms): Set index field of section_data.
15177
15178 2014-01-07 Andrew Pinski <apinski@cavium.com>
15179
15180 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15181 * features/aarch64.c: Regenerate.
15182
15183 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15184
15185 * target.c (return_null): Define.
15186 (update_current_target): Use it instead of return_zero for
15187 functions that return a pointer.
15188
15189 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15190
15191 * source.c (add_path): Fix check for duplicated paths in the previously
15192 included paths.
15193
15194 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15195
15196 * ada-lang.c: Remove duplicated include statements.
15197 * alphabsd-nat.c: Ditto.
15198 * amd64-darwin-tdep.c: Ditto.
15199 * amd64fbsd-nat.c: Ditto.
15200 * auto-load.c: Ditto.
15201 * ax-gdb.c: Ditto.
15202 * breakpoint.c: Ditto.
15203 * dbxread.c: Ditto.
15204 * fork-child.c: Ditto.
15205 * gdb_usleep.c: Ditto.
15206 * i386-darwin-tdep.c: Ditto.
15207 * i386fbsd-nat.c: Ditto.
15208 * infcmd.c: Ditto.
15209 * inferior.c: Ditto.
15210 * jv-lang.c: Ditto.
15211 * linux-nat.c: Ditto.
15212 * linux-tdep.c: Ditto.
15213 * m68kbsd-nat.c: Ditto.
15214 * m68klinux-nat.c: Ditto.
15215 * microblaze-tdep.c: Ditto.
15216 * mips-linux-tdep.c: Ditto.
15217 * mn10300-tdep.c: Ditto.
15218 * nto-tdep.c: Ditto.
15219 * opencl-lang.c: Ditto.
15220 * osdata.c: Ditto.
15221 * printcmd.c: Ditto.
15222 * regcache.c: Ditto.
15223 * remote-m32r-sdi.c: Ditto.
15224 * remote.c: Ditto.
15225 * symfile.c: Ditto.
15226 * symtab.c: Ditto.
15227 * tilegx-linux-nat.c: Ditto.
15228 * tilegx-tdep.c: Ditto.
15229 * tracepoint.c: Ditto.
15230 * valops.c: Ditto.
15231 * vaxbsd-nat.c: Ditto.
15232 * windows-nat.c: Ditto.
15233 * xtensa-tdep.c: Ditto.
15234
15235 2014-01-07 Yao Qi <yao@codesourcery.com>
15236
15237 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15238
15239 2014-01-07 Yao Qi <yao@codesourcery.com>
15240 Joel Brobecker <brobecker@adacore.com>
15241
15242 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15243 (pdc_write_regs): Likewise.
15244 (fetch_regs_kernel_thread): Likewise.
15245 (store_regs_kernel_thread): Likewise.
15246
15247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15248
15249 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15250 tagged type objects to their actual type.
15251
15252 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15253
15254 * ada-valprint.c (print_field_values): Add "language" parameter.
15255 Update calls to print_field_values and print_variant_part.
15256 Pass new parameter "language" in call to val_print instead
15257 of "current_language". Replace call to ada_val_print by call
15258 to val_print.
15259 (print_variant_part): Add "language" parameter.
15260 (ada_val_print_struct_union): Update call to print_field_values.
15261
15262 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15263
15264 * ada-valprint.c (ui_memcpy): Delete.
15265 (ada_print_floating): Update documentation. Add empty line
15266 between between function documentation and implementation.
15267 Delete variable "buffer". Use ui_file_xstrdup in place of
15268 ui_file_put. Minor adjustments following this change.
15269
15270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15271
15272 * ada-valprint.c (ada_val_print_string): New function,
15273 extracted from ada_val_print_array.
15274 (ada_val_print_array): Replace extracted code by call
15275 to ada_val_print_string followed by a return. Move
15276 "else" branch to the function's top block.
15277
15278 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15279
15280 * ada-valprint.c (ada_val_print_array): Move implementation
15281 down. Rename parameter "offset" and "val" into "offset_aligned"
15282 and "original_value" respectively. Add parameter "offset".
15283
15284 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15285
15286 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15287 re-organizing the code. Change the "???" message printed
15288 when target type is a TYPE_CODE_UNDEF into
15289 "<ref to undefined type>".
15290
15291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15292
15293 * ada-valprint.c (print_record): Delete, implementation inlined...
15294 (ada_val_print_struct_union): ... here. Remove call to
15295 ada_check_typedef in inlined implementation.
15296
15297 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15298
15299 * ada-valprint.c (ada_val_print_gnat_array): New function,
15300 extracted from ada_val_print_1;
15301 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15302 (ada_val_print_flt, ada_val_print_struct_union)
15303 (ada_val_print_ref): Likewise.
15304 (ada_val_print_1): Delete variables i and elttype.
15305 Replace extracted-out code by call to corresponding
15306 new functions.
15307
15308 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15309
15310 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15311
15312 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15313
15314 * ada-valprint.c (ada_val_print_1): Replace calls to
15315 ada_val_print_1 by calls to val_print.
15316
15317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15318
15319 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15320 Update calls to self accordingly. Replace calls to c_val_print
15321 by calls to val_print.
15322
15323 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15324
15325 * ada-valprint.c (print_record): Delete declaration.
15326 (adjust_type_signedness, ada_val_print_1): Likewise.
15327 (ada_val_print): Move function implementation down.
15328 (print_variant_part, print_field_values, print_record):
15329 Move function implementation up.
15330
15331 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15332
15333 * python/py-type.c (typy_get_name): New function.
15334 (type_object_getset): Add entry for attribute "name".
15335 * NEWS: Add entry mentioning this new attribute.
15336
15337 2014-01-07 Yao Qi <yao@codesourcery.com>
15338
15339 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15340 statement.
15341
15342 2014-01-07 Yao Qi <yao@codesourcery.com>
15343
15344 * gnu-nat.c (info_port_rights): Add qualifier const to
15345 argument args.
15346
15347 2014-01-07 Yao Qi <yao@codesourcery.com>
15348
15349 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15350
15351 2014-01-07 Yao Qi <yao@codesourcery.com>
15352
15353 * gnu-nat.c (make_inf) Update declaration.
15354 (make_inf): Make it static.
15355 (inf_set_traced): Likewise.
15356 (inf_port_to_thread, inf_task_died_status): Likewise.
15357
15358 2014-01-07 Yao Qi <yao@codesourcery.com>
15359
15360 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15361
15362 2014-01-07 Yao Qi <yao@codesourcery.com>
15363
15364 * gnu-nat.c (_initialize_gnu_nat): Declare.
15365
15366 2014-01-07 Yao Qi <yao@codesourcery.com>
15367
15368 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15369 'enum bfd_endian'.
15370 (struct gdbarch_info) <byte_order>: Change type to
15371 'enum bfd_endian'.
15372 <byte_order_for_code>: Likewise.
15373 * gdbarch.c, gdbarch.h: Regenerated.
15374
15375 2014-01-06 Sasha Smundak <asmundak@google.com>
15376
15377 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15378
15379 2014-01-06 Tom Tromey <tromey@redhat.com>
15380
15381 * doublest.c (convert_doublest_to_floatformat): Use const, not
15382 CONST.
15383 * somread.c (som_symtab_read): Likewise.
15384
15385 2014-01-07 Hui Zhu <hui@codesourcery.com>
15386
15387 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15388 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15389 (gdb_bfd_fopen): Ditto.
15390 (gdb_bfd_openr): Ditto.
15391 (gdb_bfd_openw): Ditto.
15392 (gdb_bfd_openr_iovec): Ditto.
15393 (gdb_bfd_fdopenr): Ditto.
15394 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15395 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15396 with xstrdup.
15397 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15398 with xstrdup.
15399 * symfile-mem.c (symbol_file_add_from_memory): Removed
15400 gdb_bfd_stash_filename.
15401
15402 2014-01-03 Doug Evans <dje@google.com>
15403
15404 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15405 output.
15406
15407 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15408
15409 Update year range in copyright notice of all files.
15410
15411 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15412
15413 * top.c (print_gdb_version): Set copyright year to 2014.
15414
15415 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15416
15417 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15418
15419 For older changes see ChangeLog-2013.
15420 \f
15421 Local Variables:
15422 mode: change-log
15423 left-margin: 8
15424 fill-column: 74
15425 version-control: never
15426 coding: utf-8
15427 End:
This page took 0.329315 seconds and 5 git commands to generate.