Assert size of elf_x86_64_{bnd|legacy}_plt2_entry
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-23 Joel Brobecker <brobecker@adacore.com>
2
3 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
4 to a bp_call_dummy breakpoint type.
5
6 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
7
8 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
9 registering the signal handler.
10
11 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
12
13 * event-top.h (call_stdin_event_handler_again_p): Declare.
14 * event-top.c (call_stdin_event_handler_again_p): Define.
15 (stdin_event_handler): Use it.
16 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
17 handler again if there is pending input following a
18 start sequence.
19
20 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
21
22 Pushed by Joel Brobecker <brobecker@adacore.com>
23 * linux-fork.c (checkpoint_command): Print index of new
24 checkpoint in response message.
25
26 2014-11-23 Yao Qi <yao@codesourcery.com>
27
28 * valprint.c (read_string): Move local variables 'found_nul',
29 'chunksize' and 'limit' to inner scope. Update comments.
30
31 2014-11-22 Doug Evans <xdje42@gmail.com>
32
33 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
34 function comment.
35 (search_symbols): Fix comments and whitespace.
36
37 2014-11-22 Doug Evans <xdje42@gmail.com>
38
39 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
40
41 2014-11-21 Doug Evans <dje@google.com>
42
43 * psymtab.c (psymtab_search_name): Fix whitespace.
44
45 2014-11-21 Yao Qi <yao@codesourcery.com>
46
47 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
48 errno.
49 * gnulib/import/Makefile.am: Re-generated.
50 * gnulib/import/Makefile.in: Likewise.
51 * gnulib/import/m4/gnulib-cache.m4: Likewise.
52
53 2014-11-21 Yao Qi <yao@codesourcery.com>
54
55 * gdb_wchar.h: Include wchar.h and wctype.h.
56 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
57 include wchar.h and wctype.h.
58 Don't check HAVE_WCHAR_H.
59
60 2014-11-21 Yao Qi <yao@codesourcery.com>
61
62 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
63 and wctype-h.
64 * gnulib/import/Makefile.am: Re-generated.
65 * gnulib/import/Makefile.in: Likewise.
66 * gnulib/import/m4/gnulib-cache.m4: Likewise.
67
68 2014-11-21 Yao Qi <yao@codesourcery.com>
69
70 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
71 memchr.
72 * gnulib/import/Makefile.am: Re-generated.
73 * gnulib/import/Makefile.in: Likewise.
74 * gnulib/import/m4/gnulib-cache.m4: Likewise.
75
76 2014-11-21 Yao Qi <yao@codesourcery.com>
77
78 * common/common-defs.h: Include alloca.h
79 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
80 * configure: Re-generated.
81 * defs.h: Remove code handling alloca.
82 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
83 or not.
84
85 2014-11-21 Yao Qi <yao@codesourcery.com>
86
87 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
88 alloca.
89 * gnulib/import/Makefile.am: Re-generated.
90 * gnulib/import/Makefile.in: Likewise..
91 * gnulib/import/m4/gnulib-cache.m4: Likewise.
92
93 2014-11-21 Yao Qi <yao@codesourcery.com>
94
95 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
96 alphabetical order.
97
98 2014-11-21 Joel Brobecker <brobecker@adacore.com>
99
100 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
101 flag_unsigned if HIGH_BOUND is constant and negative.
102
103 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
104
105 PR breakpoints/10737
106 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
107 modifier from "struct gdbarch" when compiling without Expat (XML)
108 support.
109 (get_syscall_by_number): Likewise.
110 (get_syscall_by_name): Likewise.
111 (get_syscall_names): Likewise.
112
113 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
114
115 PR breakpoints/10737
116 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
117 set_xml_syscall_file_name to provide gdbarch.
118 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
119 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
120 * breakpoint.c (print_it_catch_syscall): Adjust call to
121 get_syscall_by_number to provide gdbarch.
122 (print_one_catch_syscall): Likewise.
123 (print_mention_catch_syscall): Likewise.
124 (print_recreate_catch_syscall): Likewise.
125 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
126 and get_syscall_by_name to provide gdbarch.
127 (catch_syscall_completer): Adjust call to get_syscall_names to
128 provide gdbarch.
129 * gdbarch.c: Regenerate.
130 * gdbarch.h: Likewise.
131 * gdbarch.sh: Forward declare "struct syscalls_info".
132 (xml_syscall_file): New variable.
133 (syscalls_info): Likewise.
134 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
135 set_xml_syscall_file_name to provide gdbarch.
136 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
137 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
138 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
139 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
140 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
141 * xml-syscall.c: Include gdbarch.h.
142 (set_xml_syscall_file_name): Accept gdbarch parameter.
143 (get_syscall_by_number): Likewise.
144 (get_syscall_by_name): Likewise.
145 (get_syscall_names): Likewise.
146 (my_gdb_datadir): Delete global variable.
147 (struct syscalls_info) <my_gdb_datadir>: New variable.
148 (struct syscalls_info) <sysinfo>: Rename variable to
149 "syscalls_info".
150 (sysinfo): Delete global variable.
151 (have_initialized_sysinfo): Likewise.
152 (xml_syscall_file): Likewise.
153 (sysinfo_free_syscalls_desc): Rename to...
154 (syscalls_info_free_syscalls_desc): ... this.
155 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
156 code to the new layout of "struct syscalls_info".
157 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
158 "syscalls_info".
159 (syscall_create_syscall_desc): Likewise.
160 (syscall_start_syscall): Likewise.
161 (syscall_parse_xml): Likewise.
162 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
163 (init_sysinfo): Rename to...
164 (init_syscalls_info): ...this. Add gdbarch as a parameter.
165 Adjust function to deal with gdbarch.
166 (xml_get_syscall_number): Delete parameter sysinfo. Accept
167 gdbarch as a parameter. Adjust code.
168 (xml_get_syscall_name): Likewise.
169 (xml_list_of_syscalls): Likewise.
170 (set_xml_syscall_file_name): Accept gdbarch as parameter.
171 (get_syscall_by_number): Likewise.
172 (get_syscall_by_name): Likewise.
173 (get_syscall_names): Likewise.
174 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
175 (get_syscall_by_number): Likewise.
176 (get_syscall_by_name): Likewise.
177 (get_syscall_names): Likewise.
178
179 2014-11-20 Doug Evans <xdje42@gmail.com>
180
181 Split struct symtab into two: struct symtab and compunit_symtab.
182 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
183 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
184 to "struct compunit_symtab *". All callers updated.
185 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
186 "struct symtab *" argument to "struct compunit_symtab *".
187 All callers updated.
188 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
189 result to "struct compunit_symtab *". All callers updated.
190 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
191 Change result to "struct compunit_symtab *". All callers updated.
192 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
193 hange type to "struct compunit_symtab *". All uses updated.
194 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
195 Change type to "struct compunit_symtab *". All uses updated.
196 * buildsym.c (struct buildsym_compunit): New struct.
197 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
198 (buildsym_compunit): New static global.
199 (finish_block_internal): Update to fetch objfile from
200 buildsym_compunit.
201 (make_blockvector): Delete objfile argument.
202 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
203 debugformat, producer.
204 (start_buildsym_compunit): New function.
205 (free_buildsym_compunit): Renamed from free_subfiles_list.
206 All callers updated.
207 (patch_subfile_names): Rewrite to use buildsym_compunit.
208 (get_compunit_symtab): New function.
209 (get_macro_table): Delete argument comp_dir. All callers updated.
210 (start_symtab): Change result to "struct compunit_symtab *".
211 All callers updated. Create the subfile of the main source file.
212 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
213 (reset_symtab_globals): Update.
214 (end_symtab_get_static_block): Update to use buildsym_compunit.
215 (end_symtab_without_blockvector): Rewrite.
216 (end_symtab_with_blockvector): Change result to
217 "struct compunit_symtab *". All callers updated.
218 Update to use buildsym_compunit. Don't set symtab->dirname,
219 instead set it in the compunit.
220 Explicitly make sure main symtab is first in its list.
221 Set debugformat, producer, blockvector, block_line_section, and
222 macrotable in the compunit.
223 (end_symtab_from_static_block): Change result to
224 "struct compunit_symtab *". All callers updated.
225 (end_symtab, end_expandable_symtab): Ditto.
226 (set_missing_symtab): Change symtab argument to
227 "struct compunit_symtab *". All callers updated.
228 (augment_type_symtab): Ditto.
229 (record_debugformat): Update to use buildsym_compunit.
230 (record_producer): Update to use buildsym_compunit.
231 * buildsym.h (struct subfile) <dirname>: Delete.
232 <producer, debugformat>: Delete.
233 <buildsym_compunit>: New member.
234 (get_compunit_symtab): Declare.
235 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
236 from primary_symtab. Change type to "struct compunit_symtab *".
237 All uses updated.
238 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
239 All callers updated.
240 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
241 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
242 symtab. Change type to "struct compunit_symtab *". All uses updated.
243 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
244 All callers updated.
245 (dw2_find_last_source_symtab): Ditto.
246 (dw2_lookup_symbol): Ditto.
247 (recursively_find_pc_sect_compunit_symtab): Renamed from
248 recursively_find_pc_sect_symtab. Change result to
249 "struct compunit_symtab *". All callers updated.
250 (dw2_find_pc_sect_compunit_symtab): Renamed from
251 dw2_find_pc_sect_symtab. Change result to
252 "struct compunit_symtab *". All callers updated.
253 (get_compunit_symtab): Renamed from get_symtab. Change result to
254 "struct compunit_symtab *". All callers updated.
255 (recursively_compute_inclusions): Change type of immediate_parent
256 argument to "struct compunit_symtab *". All callers updated.
257 (compute_compunit_symtab_includes): Renamed from
258 compute_symtab_includes. All callers updated. Rewrite to compute
259 includes of compunit_symtabs and not symtabs.
260 (process_full_comp_unit): Update to work with struct compunit_symtab.
261 (process_full_type_unit): Ditto.
262 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
263 (dwarf_decode_lines): Remove special case handling of main subfile.
264 (macro_start_file): Delete argument comp_dir. All callers updated.
265 (dwarf_decode_macro_bytes): Ditto.
266 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
267 use struct compunit_symtab.
268 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
269 * jit.c (finalize_symtab): Build compunit_symtab.
270 * jv-lang.c (get_java_class_symtab): Change result to
271 "struct compunit_symtab *". All callers updated.
272 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
273 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
274 comp_dir. Change type to "struct compunit_symtab *".
275 All uses updated.
276 (new_macro_table): Change comp_dir argument to cust,
277 "struct compunit_symtab *". All callers updated.
278 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
279 nr_primary_symtabs. All uses updated.
280 (count_symtabs_and_blocks): Update to handle compunits.
281 (report_command_stats): Update output, "primary symtabs" renamed to
282 "compunits".
283 * mdebugread.c (new_symtab): Change result to
284 "struct compunit_symtab *". All callers updated.
285 (parse_procedure): Change type of search_symtab argument to
286 "struct compunit_symtab *". All callers updated.
287 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
288 separate loop.
289 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
290 symtabs. Change type to "struct compunit_symtab *". All uses updated.
291 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
292 All uses updated.
293 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
294 All uses updated.
295 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
296 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
297 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
298 symtab. Change type to "struct compunit_symtab *". All uses updated.
299 * psymtab.c (psymtab_to_symtab): Change result type to
300 "struct compunit_symtab *". All callers updated.
301 (find_pc_sect_compunit_symtab_from_partial): Renamed from
302 find_pc_sect_symtab_from_partial. Change result type to
303 "struct compunit_symtab *". All callers updated.
304 (lookup_symbol_aux_psymtabs): Change result type to
305 "struct compunit_symtab *". All callers updated.
306 (find_last_source_symtab_from_partial): Ditto.
307 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
308 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
309 and macro_table from compunit.
310 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
311 type to "struct compunit_symtab *". All callers updated.
312 (debug_qf_lookup_symbol): Ditto.
313 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
314 debug_qf_find_pc_sect_symtab, change result type to
315 "struct compunit_symtab *". All callers updated.
316 * symfile.c (allocate_symtab): Delete objfile argument.
317 New argument cust.
318 (allocate_compunit_symtab): New function.
319 (add_compunit_symtab_to_objfile): New function.
320 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
321 Change result type to "struct compunit_symtab *". All uses updated.
322 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
323 Change result type to "struct compunit_symtab *". All uses updated.
324 * symmisc.c (print_objfile_statistics): Compute blockvector count in
325 separate loop.
326 (dump_symtab_1): Update test for primary source symtab.
327 (maintenance_info_symtabs): Update to handle compunit symtabs.
328 (maintenance_check_symtabs): Ditto.
329 * symtab.c (set_primary_symtab): Delete.
330 (compunit_primary_filetab): New function.
331 (compunit_language): New function.
332 (iterate_over_some_symtabs): Change type of arguments "first",
333 "after_last" to "struct compunit_symtab *". All callers updated.
334 Update to loop over symtabs in each compunit.
335 (error_in_psymtab_expansion): Rename symtab argument to cust,
336 and change type to "struct compunit_symtab *". All callers updated.
337 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
338 Change result type to "struct compunit_symtab *". All callers updated.
339 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
340 Change result type to "struct compunit_symtab *". All callers updated.
341 (find_pc_sect_line): Only loop over symtabs within selected compunit
342 instead of all symtabs in the objfile.
343 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
344 <compunit_symtab> New member.
345 <block_line_section>: Moved to compunit_symtab.
346 <locations_valid>: Ditto.
347 <epilogue_unwind_valid>: Ditto.
348 <macro_table>: Ditto.
349 <dirname>: Ditto.
350 <debugformat>: Ditto.
351 <producer>: Ditto.
352 <objfile>: Ditto.
353 <call_site_htab>: Ditto.
354 <includes>: Ditto.
355 <user>: Ditto.
356 <primary>: Delete
357 (SYMTAB_COMPUNIT): New macro.
358 (SYMTAB_BLOCKVECTOR): Update definition.
359 (SYMTAB_OBJFILE): Update definition.
360 (SYMTAB_DIRNAME): Update definition.
361 (struct compunit_symtab): New type. Common members among all source
362 symtabs within a compilation unit moved here. All uses updated.
363 (COMPUNIT_OBJFILE): New macro.
364 (COMPUNIT_FILETABS): New macro.
365 (COMPUNIT_DEBUGFORMAT): New macro.
366 (COMPUNIT_PRODUCER): New macro.
367 (COMPUNIT_DIRNAME): New macro.
368 (COMPUNIT_BLOCKVECTOR): New macro.
369 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
370 (COMPUNIT_LOCATIONS_VALID): New macro.
371 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
372 (COMPUNIT_CALL_SITE_HTAB): New macro.
373 (COMPUNIT_MACRO_TABLE): New macro.
374 (ALL_COMPUNIT_FILETABS): New macro.
375 (compunit_symtab_ptr): New typedef.
376 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
377
378 2014-11-20 Joel Brobecker <brobecker@adacore.com>
379
380 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
381 if the TYPE_CODE of range_type's base type does not match
382 the TYPE_CODE of encoding_type's base type.
383
384 2014-11-19 Joel Brobecker <brobecker@adacore.com>
385
386 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
387 it starts with '<'.
388
389 2014-11-19 Joel Brobecker <brobecker@adacore.com>
390
391 * ada-lang.c (ada_is_redundant_range_encoding): New function.
392 (ada_is_redundant_index_type_desc): New function.
393 (to_fixed_array_type): Ignore parallel XA type if redundant.
394
395 2014-11-19 Joel Brobecker <brobecker@adacore.com>
396
397 * ada-lang.c (constrained_packed_array_type): Set the length
398 of the return array as if both bounds where zero if that
399 returned array's index type is dynamic.
400
401 2014-11-19 Yao Qi <yao@codesourcery.com>
402
403 * config/i386/go32.mh (CC): Remove.
404
405 2014-11-18 Doug Evans <xdje42@gmail.com>
406
407 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
408 updated.
409
410 2014-11-18 Doug Evans <xdje42@gmail.com>
411
412 * buildsym.c (buildsym_objfile): New static global.
413 (buildsym_comp_dir): New static global.
414 (finish_block_internal): Delete arg objfile. All callers updated.
415 (finish_block): Delete arg objfile. All callers updated.
416 (start_subfile): Delete arg dirname. All callers updated.
417 (patch_subfile_names): Update buildsym_comp_dir.
418 (get_macro_table): Delete arg objfile. All callers updated.
419 (start_symtab): New arg objfile. All callers updated.
420 Rename arg dirname to comp_dir.
421 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
422 (end_symtab_get_static_block): Delete arg objfile. All callers
423 updated.
424 (end_symtab_without_blockvector): Ditto.
425 (end_symtab_with_blockvector): Ditto.
426 (end_symtab_from_static_block): Ditto.
427 (end_symtab): Ditto.
428 (end_expandable_symtab): Ditto.
429 (augment_type_symtab): Ditto.
430 * coffread.c (coff_start_symtab): New arg objfile. All callers
431 updated.
432
433 2014-11-18 Doug Evans <xdje42@gmail.com>
434
435 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
436 updated.
437
438 2014-11-18 Doug Evans <xdje42@gmail.com>
439
440 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
441 symtab.dirname updated to use it.
442
443 2014-11-18 Doug Evans <xdje42@gmail.com>
444
445 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
446 symtab.objfile updated to use it.
447
448 2014-11-18 Doug Evans <xdje42@gmail.com>
449
450 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
451
452 2014-11-18 Doug Evans <xdje42@gmail.com>
453
454 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
455 SYMBOL_OBJFILE.
456 * findvar.c (default_read_var_value): Ditto.
457 * jv-lang.c (add_class_symtab_symbol): Ditto.
458 * parse.c (operator_check_standard): Ditto.
459 * printcmd.c (address_info): Ditto.
460 * symtab.c (fixup_symbol_section): Ditto.
461 (skip_prologue_sal): Ditto.
462 * tracepoint.c (scope_info): Ditto.
463 * valops.c (find_function_in_inferior): Ditto.
464 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
465 * python/py-symbol.c (set_symbol): Ditto.
466
467 2014-11-18 Doug Evans <xdje42@gmail.com>
468
469 * buildsym.c (main_subfile): New static global.
470 (free_subfiles_list): New function.
471 (start_symtab): Set main_subfile.
472 (restart_symtab): Replace init of subfiles, current_subfile with
473 call to free_subfiles_list.
474 (watch_main_source_file_lossage): Use main_subfile.
475 (reset_symtab_globals): Replace init of current_subfile with call
476 to free_subfiles_list.
477 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
478 functions, split out from ...
479 (end_symtab_from_static_block): ... here. Rewrite to call them.
480
481 2014-11-18 Doug Evans <xdje42@gmail.com>
482
483 The result of symtab expansion is always a primary symtab.
484 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
485 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
486 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
487 (psymtab_to_symtab): Add comment and assert.
488 (map_matching_symbols_psymtab): Remove unnecessary test for
489 non-primary symtab.
490
491 2014-11-15 Doug Evans <xdje42@gmail.com>
492
493 PR symtab/17559
494 * symtab.c (find_pc_line_symtab): New function.
495 * symtab.h (find_pc_line_symtab): Declare.
496 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
497 find_pc_symtab.
498 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
499 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
500 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
501 * tui/tui-win.c (make_visible_with_new_height): Ditto.
502 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
503 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
504
505 2014-11-15 Doug Evans <xdje42@gmail.com>
506
507 * symtab.c (expand_symtab_containing_pc): Renamed from
508 find_pc_sect_symtab_via_partial. All callers updated.
509
510 2014-11-15 Yao Qi <yao@codesourcery.com>
511
512 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
513
514 2014-11-14 Joel Brobecker <brobecker@adacore.com>
515
516 * common/common-defs.h: Move <stdarg.h> #include ahead of
517 <stdio.h> #include.
518
519 2014-11-14 Pedro Alves <palves@redhat.com>
520
521 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
522 [!PHONY_ICONV] (gdb_iconv): New function.
523 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
524
525 2014-11-13 Doug Evans <dje@google.com>
526
527 PR symtab/17591
528 * dwarf2read.c (find_slot_in_mapped_hash): Handle
529 "(anonymous namespace)".
530
531 2014-11-13 Doug Evans <dje@google.com>
532
533 * dwarf2read.c (update_enumeration_type_from_children): Avoid
534 infinite loop.
535
536 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
537
538 * NEWS (maint set target-async): Fix typo.
539
540 2014-11-12 Pedro Alves <palves@redhat.com>
541
542 * infrun.c (enum infwait_states, infwait_state): Delete.
543
544 2014-11-12 Pedro Alves <palves@redhat.com>
545
546 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
547 Rewrite stepping over a permanent breakpoint.
548 (thread_still_needs_step_over, proceed): Don't set
549 stepping_over_breakpoint for permanent breakpoints.
550 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
551 single-step breakpoints out of the target on hardware step
552 targets.
553 (process_event_stop_test): If stepping a permanent breakpoint
554 doesn't hit the step-resume breakpoint, delete the step-resume
555 breakpoint.
556 (switch_back_to_stepped_thread): Also check if the stepped thread
557 has advanced already on hardware step targets.
558 (currently_stepping): Return true if the thread stepped a
559 breakpoint.
560
561 2014-11-12 Pedro Alves <palves@redhat.com>
562
563 Mark locations as permanent, not the whole breakpoint.
564 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
565 (mark_breakpoints_out): Don't mark permanent breakpoints as
566 uninserted.
567 (breakpoint_init_inferior): Use mark_breakpoints_out.
568 (breakpoint_here_p): Adjust.
569 (bpstat_stop_status, describe_other_breakpoints): Remove handling
570 of permanent breakpoints.
571 (make_breakpoint_permanent): Mark each location as permanent,
572 instead of marking the breakpoint.
573 (add_location_to_breakpoint): If the location is permanent, mark
574 it as such, and as inserted.
575 (init_breakpoint_sal): Don't make the breakpoint permanent here.
576 (bp_location_compare, update_global_location_list): Adjust.
577 (update_breakpoint_locations): Don't make the breakpoint permanent
578 here.
579 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
580 breakpoints.
581 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
582 (struct bp_location) <permanent>: New field.
583 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
584 reference to bp_permanent.
585
586 2014-11-12 Pedro Alves <palves@redhat.com>
587
588 * arch-utils.c (default_skip_permanent_breakpoint): New function.
589 * arch-utils.h (default_skip_permanent_breakpoint): New
590 declaration.
591 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
592 Install default_skip_permanent_breakpoint as default method.
593 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
594 (i386_gdbarch_init): Don't install it.
595 * infrun.c (resume): Assume there's always a
596 gdbarch_skip_permanent_breakpoint implementation.
597 * gdbarch.h, gdbarch.c: Regenerate.
598
599 2014-11-11 Daniel Colascione <dancol@dancol.org>
600
601 Warn about cross-PID-namespace debugging.
602 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
603 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
604 * linux-thread-db.c (check_pid_namespace_match): New function.
605 (thread_db_inferior_created): Call it.
606
607 2014-11-10 Doug Evans <xdje42@gmail.com>
608
609 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
610 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
611
612 2014-11-10 Doug Evans <xdje42@gmail.com>
613
614 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
615
616 2014-11-10 Doug Evans <xdje42@gmail.com>
617
618 PR symtab/17564
619 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
620 (lookup_static_symbol): Move definition to new location and rewrite.
621 (lookup_symbol_in_objfile): New function.
622 (lookup_symbol_global_iterator_cb): Call it.
623
624 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
625
626 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
627
628 2014-11-07 Pedro Alves <palves@redhat.com>
629
630 * infrun.c (process_event_stop_test) <subroutine check>: Don't
631 check if we did a "nexti" inside a prologue.
632 * symtab.c (in_prologue): Delete function.
633 * symtab.h (in_prologue): Delete declaration.
634
635 2014-11-06 Doug Evans <xdje42@gmail.com>
636
637 * symtab.h (lookup_global_symbol): Improve function comment.
638
639 2014-11-06 Doug Evans <xdje42@gmail.com>
640
641 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
642 All callers updated.
643 * symtab.h (lookup_global_symbol): Update decl.
644 (lookup_static_symbol): Move decl to better location.
645
646 2014-11-06 Doug Evans <xdje42@gmail.com>
647
648 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
649
650 2014-11-06 Doug Evans <xdje42@gmail.com>
651
652 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
653 All callers updated.
654 (lookup_symbol_in_all_objfiles): Renamed from
655 lookup_symbol_aux_symtabs. All callers updated.
656 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
657 All callers updated.
658 (lookup_symbol_in_objfile_symtabs): Renamed from
659 lookup_symbol_aux_objfile. All callers updated.
660
661 2014-11-06 Doug Evans <xdje42@gmail.com>
662
663 * symtab.c (lookup_symbol_in_block): Renamed from
664 lookup_symbol_aux_block. All callers updated.
665
666 2014-11-06 Doug Evans <xdje42@gmail.com>
667
668 * symtab.c (lookup_static_symbol): Renamed from
669 lookup_static_symbol_aux. All callers updated.
670 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
671 All callers updated.
672
673 2014-11-06 Doug Evans <xdje42@gmail.com>
674
675 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
676 * block.c (block_lookup_symbol): Use it.
677 * cp-support.c (make_symbol_overload_list_block): Use it.
678 * symtab.c (iterate_over_symbols): Use it.
679
680 2014-11-06 Doug Evans <xdje42@gmail.com>
681
682 * symtab.c (lookup_block_symbol): Moved to ...
683 * block.c (block_lookup_symbol): ... here and renamed.
684 All callers updated.
685 * block.h (block_lookup_symbol): Declare.
686 * symtab.h (lookup_block_symbol): Delete.
687
688 2014-11-06 Doug Evans <xdje42@gmail.com>
689
690 * ada-lang.c (ada_make_symbol_completion_list): Use
691 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
692 * symtab.c (lookup_objfile_from_block): Ditto.
693
694 2014-11-06 Doug Evans <xdje42@gmail.com>
695
696 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
697 TYPE_CODE_STRUCT.
698
699 2014-11-06 Doug Evans <xdje42@gmail.com>
700
701 * objfiles.c (get_objfile_arch): Constify.
702 * objfiles.h (get_objfile_arch): Update prototype.
703 * solib.c (solib_global_lookup): Fetch arch from objfile,
704 not target_gdbarch.
705
706 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
707
708 * nios2-tdep.c (wild_insn): Delete.
709 (profiler_insn, irqentry_insn): Delete.
710 (nios2_match_sequence): Delete.
711 (nios2_analyze_prologue): Update comments. Remove matching
712 of obsolete profiler_insn and irqentry_insn sequences.
713
714 2014-11-05 Alan Modra <amodra@gmail.com>
715
716 * charset.c (convert_between_encodings): Shrink obstack using
717 obstack_blank_fast.
718 * minsyms.c (install_minimal_symbols): Likewise.
719 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
720 to char* before doing pointer arithmetic.
721
722 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
723
724 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
725
726 2014-11-04 Pedro Alves <palves@redhat.com>
727
728 * breakpoint.c (breakpoint_thread_match): Delete function.
729 * breakpoint.h (breakpoint_thread_match): Delete declaration.
730
731 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
732
733 PR c++/17494
734 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
735 the method args also under EVAL_SKIP when evaluating method
736 calls under EVAL_SKIP.
737
738 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
739
740 * dwarf2loc.c (read_pieced_value): Do big endian
741 processing only if gdb_regnum is not -1.
742 (write_pieced_value): Ditto.
743
744 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
745
746 * arm-linux-tdep.c (arm_linux_init_abi): Use
747 info.byte_order_for_code to choose endianity of breakpoint
748 instructions snippets.
749
750 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
751
752 * arm-tdep.c (extract_arm_insn): Use
753 gdbarch_byte_order_for_code to read arm instruction.
754
755 2014-11-02 Doug Evans <xdje42@gmail.com>
756
757 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
758
759 2014-11-02 Doug Evans <xdje42@gmail.com>
760
761 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
762 main_subfile before returning.
763
764 2014-10-31 Doug Evans <xdje42@gmail.com>
765
766 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
767 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
768
769 2014-10-31 Doug Evans <xdje42@gmail.com>
770
771 * valops.c (value_cast_pointers): Fix whitespace.
772 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
773 Ditto.
774
775 2014-10-30 Doug Evans <dje@google.com>
776
777 * NEWS: Mention ability add attributes to gdb.Objfile and
778 gdb.Progspace objects.
779 * python/py-objfile.c (objfile_object): New member dict.
780 (objfpy_dealloc): Py_XDECREF dict.
781 (objfpy_initialize): Initialize dict.
782 (objfile_getset): Add __dict__.
783 (objfile_object_type): Set tp_dictoffset member.
784 * python/py-progspace.c (progspace_object): New member dict.
785 (pspy_dealloc): Py_XDECREF dict.
786 (pspy_initialize): Initialize dict.
787 (pspace_getset): Add __dict__.
788 (pspace_object_type): Set tp_dictoffset member.
789
790 2014-10-30 Yao Qi <yao@codesourcery.com>
791
792 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
793 replace '\\' with '\\\\'.
794
795 2014-10-29 Joel Brobecker <brobecker@adacore.com>
796
797 GDB 7.8.1 released.
798
799 2014-10-29 Pedro Alves <palves@redhat.com>
800
801 PR gdb/17408
802 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
803 instead of assuming a thread with a stepping range is always
804 stepping.
805
806 2014-10-29 Pedro Alves <palves@redhat.com>
807
808 PR python/17372
809 * event-top.c (change_line_handler): Call
810 gdb_rl_callback_handler_remove instead of
811 rl_callback_handler_remove.
812 (callback_handler_installed): New global.
813 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
814 (gdb_rl_callback_handler_reinstall): New functions.
815 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
816 gdb_rl_callback_handler_install instead of
817 rl_callback_handler_remove and rl_callback_handler_install.
818 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
819 instead of rl_callback_handler_remove.
820 * event-top.h (gdb_rl_callback_handler_remove)
821 (gdb_rl_callback_handler_install)
822 (gdb_rl_callback_handler_reinstall): New declarations.
823 * infrun.c (reinstall_readline_callback_handler_cleanup): New
824 cleanup function.
825 (fetch_inferior_event): Install it.
826 * top.c (gdb_readline_wrapper_line) Call
827 gdb_rl_callback_handler_remove instead of
828 rl_callback_handler_remove.
829 (gdb_readline_wrapper_cleanup): Don't call
830 rl_callback_handler_install.
831
832 2014-10-29 Pedro Alves <palves@redhat.com>
833
834 * event-top.c (command_line_handler): Clear the first byte of
835 linebuffer, when it is first allocated.
836
837 2014-10-29 Pedro Alves <palves@redhat.com>
838
839 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
840 TRY_CATCH.
841
842 2014-10-29 Pedro Alves <palves@redhat.com>
843
844 PR tui/16138
845 PR tui/17519
846 * tui/tui-interp.c (tui_is_toplevel): Delete global.
847 (tui_allowed_p): Delete function.
848 * tui/tui.c: Include "interps.h".
849 (tui_enable): Don't use tui_allowed_p. Error out here with
850 detailed error messages if the TUI is the top level interpreter,
851 or if output is not a terminal. Use newterm instead of initscr,
852 and error out if initializing the terminal fails. Also error out if
853 the terminal doesn't support cursor addressing.
854 * tui/tui.h (tui_allowed_p): Delete declaration.
855
856 2014-10-29 Joel Brobecker <brobecker@adacore.com>
857
858 * arm-tdep.c (arm_skip_stack_protector): Return early if
859 address loaded by first "ldr" instruction does not have
860 a corresponding minimal symbol. Update comment.
861
862 2014-10-29 Yao Qi <yao@codesourcery.com>
863
864 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
865 loaded address correctly of ldr instruction.
866
867 2014-10-28 Pedro Alves <palves@redhat.com>
868
869 PR gdb/12623
870 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
871 field.
872 * infrun.c (resume) <stepping breakpoint instruction>: Set the
873 thread's stepped_breakpoint field. Skip if reverse debugging.
874 Add comment.
875 (init_thread_stepping_state, handle_signal_stop): Clear the
876 thread's stepped_breakpoint field.
877
878 2014-10-27 Pedro Alves <palves@redhat.com>
879
880 * remote.c (remote_thread_alive): New, factored out from ...
881 (remote_thread_alive): ... this.
882 (remote_update_thread_list): Bail out before deleting threads if
883 the target returned an empty list, and, the current thread has a
884 magic/fake ptid.
885
886 2014-10-27 Pedro Alves <palves@redhat.com>
887
888 * infrun.c (handle_signal_stop): Also skip handlers when a random
889 signal arrives while handling a "stepi" or a "nexti". Set the
890 thread's 'step_after_step_resume_breakpoint' flag.
891
892 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
893
894 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
895 (arm_record_ld_st_imm_offset): Reimplement to cover all
896 load/store cases for ARM opcode 010.
897 (arm_record_ld_st_multiple): Reimplement to cover all
898 load/store cases for ARM opcode 100.
899
900 2014-10-26 Doug Evans <xdje42@gmail.com>
901
902 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
903
904 2014-10-26 Doug Evans <xdje42@gmail.com>
905
906 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
907 parameter "kind" to "block_index".
908 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
909 "block_index".
910 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
911
912 2014-10-26 Doug Evans <xdje42@gmail.com>
913
914 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
915
916 2014-10-26 Doug Evans <xdje42@gmail.com>
917
918 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
919 obstack_alloc.
920
921 2014-10-26 Doug Evans <xdje42@gmail.com>
922
923 * parser-defs.h (block_found): Move decl from here ...
924 * symtab.h (block_found): ... to here.
925
926 2014-10-26 Doug Evans <xdje42@gmail.com>
927
928 * symtab.h (struct field_of_this_result): Fix typo in comment.
929 (lookup_symbol_in_language): Move function comment here.
930 (lookup_symbol): Improve function comment.
931 (basic_lookup_symbol_nonlocal): Ditto.
932 (lookup_symbol_static, lookup_symbol_global): Ditto.
933 (lookup_symbol_aux_block): Ditto.
934 (lookup_language_this): Add function comment.
935 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
936 function comment.
937 (lookup_block_symbol): Improve function comment.
938 (lookup_struct): Fix capitalization in function comment.
939 (lookup_transparent_type): Add function comment.
940 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
941 Improve function comment.
942 (lookup_objfile_from_block): Add function comment.
943 * symtab.c (lookup_symbol_in_language): Update function comment.
944 (lookup_symbol, lookup_language_this): Ditto.
945 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
946 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
947 (basic_lookup_symbol_nonlocal): Ditto.
948 (lookup_symbol_static, lookup_symbol_global): Ditto.
949 (lookup_transparent_type, lookup_block_symbol): Ditto.
950
951 2014-10-25 Doug Evans <xdje42@gmail.com>
952
953 * symtab.c (types_info): Delete forward decl.
954 (functions_info, variables_info, sources_info): Ditto.
955 (_initialize_symtab): Rewrite forward decl to use
956 initialize_file_ftype.
957
958 2014-10-25 Doug Evans <xdje42@gmail.com>
959
960 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
961
962 2014-10-25 Doug Evans <xdje42@gmail.com>
963
964 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
965 of local var child_die.
966
967 2014-10-24 Don Breazeal <donb@codesourcery.com>
968
969 * infrun.c (follow_fork_inferior): Update fork message printing
970 to use target_terminal_ours_for_output instead of
971 target_terminal_ours, to use _() for all format strings, to print
972 "vfork" instead of "fork" for vforks, and to add a detach message.
973 (handle_vfork_child_exec_or_exit): Update message printing to use
974 target_terminal_ours_for_output instead of target_terminal_ours, to
975 use _() for all format strings, and to fix some formatting.
976
977 2014-10-24 Pedro Alves <palves@redhat.com>
978
979 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
980 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
981 * config/vax/vax.mh: Delete.
982 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
983 obsolete configurations section.
984 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
985 * vax-nat.c: Delete file.
986
987 2014-10-24 Pedro Alves <palves@redhat.com>
988
989 * NEWS (Removed targets): Add OS/arch column.
990
991 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
992
993 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
994 on the arg type of a constructor only if it is of reference type.
995
996 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
997
998 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
999 accessors and constants from nios2 opcodes update.
1000 (nios2_get_next_pc): Likewise.
1001
1002 2014-10-19 Doug Evans <xdje42@gmail.com>
1003
1004 * gdbthread.h (set_running): Fix comment.
1005 (set_executing, finish_thread_state): Fix comment.
1006
1007 2014-10-18 Doug Evans <xdje42@gmail.com>
1008
1009 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1010
1011 2014-10-17 Doug Evans <dje@google.com>
1012
1013 * NEWS: Mention new event gdb.clear_objfiles.
1014 * python/py-event.h (emit_clear_objfiles_event): Clear
1015 * python/py-events.h (events_object): New member clear_objfiles.
1016 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1017 event.
1018 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1019 emit clear_objfiles event.
1020 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1021 function.
1022 (emit_clear_objfiles_event): New function.
1023 (clear_objfiles): New event.
1024 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1025 Declare.
1026 * python/python.c (_initialize_python): Call
1027 gdbpy_initialize_clear_objfiles_event.
1028
1029 2014-10-17 Doug Evans <dje@google.com>
1030
1031 * NEWS: Mention new gdb.Objfile.progspace attribute.
1032 * python/py-objfile.c (objfpy_get_progspace): New function.
1033 (objfile_getset): New entry for "progspace".
1034
1035 2014-10-17 Pedro Alves <palves@redhat.com>
1036
1037 PR gdb/17471
1038 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1039 returns a copy of the input.
1040 (run_command_1, continue_command, step_1, jump_command)
1041 (signal_command, until_command, advance_command, finish_command)
1042 (attach_command): Adjust and install a cleanup to free the
1043 stripped args.
1044
1045 2014-10-17 Pedro Alves <palves@redhat.com>
1046
1047 PR gdb/17300
1048 * infcmd.c (continue_1): If continuing all threads in the
1049 foreground, make sure the inferior's terminal settings are put in
1050 effect.
1051
1052 2014-10-17 Pedro Alves <palves@redhat.com>
1053
1054 PR gdb/17472
1055 * annotate.c (annotate_breakpoints_invalid): Use
1056 target_terminal_our_for_output instead of target_terminal_ours.
1057 Give back the terminal to the target.
1058 (annotate_frames_invalid): Likewise.
1059
1060 2014-10-17 Pedro Alves <palves@redhat.com>
1061
1062 * target.c (enum terminal_state): New enum.
1063 (terminal_state): New global.
1064 (target_terminal_init): New function.
1065 (target_terminal_inferior): Skip if inferior already owns the
1066 terminal.
1067 (target_terminal_ours, target_terminal_ours_for_output): New
1068 functions.
1069 * target.h (target_terminal_init): Convert to function prototype.
1070 (target_terminal_ours_for_output): Convert to function prototype
1071 and tweak comment.
1072 (target_terminal_ours): Convert to function prototype and tweak
1073 comment.
1074 * windows-nat.c (do_initial_windows_stuff): Call
1075 target_terminal_init instead of child_terminal_init_with_pgrp.
1076
1077 2014-10-17 Pedro Alves <palves@redhat.com>
1078
1079 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1080 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1081 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1082 solib-osf.c.
1083 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1084 * ada-lang.h [__alpha__ && __osf__]
1085 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1086 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1087 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1088 GDB_OSABI_OSF1.
1089 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1090 files.
1091 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1092 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1093 * configure: Regenerate.
1094 * configure.ac: Remove references to osf.
1095 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1096 section. Remove all other references to osf.
1097 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1098 Remove all other references to osf.
1099 * dec-thread.c: Delete file.
1100 * defs.h (GDB_OSABI_OSF1): Delete.
1101 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1102 defined.
1103 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1104 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1105 Delete code.
1106 (unconditionally_kill_inferior)
1107 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1108 * solib-osf.c: Delete file.
1109
1110 2014-10-17 Pedro Alves <palves@redhat.com>
1111
1112 * remote.c (clear_threads_listing_context): Move higher up, out of
1113 the HAVE_LIBEXPAT guard.
1114
1115 2014-10-16 Tristan Gingold <gingold@adacore.com>
1116
1117 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1118 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1119 on amd64.
1120
1121 2014-10-15 Pedro Alves <palves@redhat.com>
1122
1123 * dec-thread.c (dec_thread_count_gdb_threads)
1124 (dec_thread_add_gdb_thread): Delete.
1125 (dec_thread_update_thread_list): Delete.
1126 (dec_thread_find_new_threads): Rename to ...
1127 (dec_thread_update_thread_list): ... this. Delete GDB-size
1128 threads that are no longer found in dec_thread_list.
1129 (resync_thread_list): Delete.
1130 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1131 resync_thread_list.
1132
1133 2014-10-15 Pedro Alves <palves@redhat.com>
1134
1135 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1136 * remote.c (remote_update_thread_list): Skip calling prune_threads
1137 if any thread listing method is supported, and instead walk over
1138 the set of remote threads listed, deleting those that are not
1139 found in GDB's thread list.
1140
1141 2014-10-15 Pedro Alves <palves@redhat.com>
1142
1143 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1144 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1145 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1146 (bsd_uthread_target): Adjust.
1147 * corelow.c (core_open): Adjust.
1148 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1149 (dec_thread_update_thread_list): New function.
1150 (init_dec_thread_ops): Adjust.
1151 * gdbthread.h (prune_threads): New declaration.
1152 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1153 (thread_db_update_thread_list): ... this. Call prune_threads.
1154 (init_thread_db_ops): Adjust.
1155 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1156 (procfs_update_thread_list): ... this. Call prune_threads.
1157 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1158 Adjust.
1159 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1160 (obsd_update_thread_list): ... this. Call prune_threads.
1161 (obsd_add_target): Adjust.
1162 * procfs.c (procfs_target): Adjust.
1163 (procfs_notice_thread): Update comment.
1164 (procfs_find_new_threads): Rename to ...
1165 (procfs_update_thread_list): ... this. Call prune_threads.
1166 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1167 comment.
1168 (ravenscar_wait): Adjust.
1169 (ravenscar_find_new_threads): Rename to ...
1170 (ravenscar_update_thread_list): ... this. Call prune_threads.
1171 (init_ravenscar_thread_ops): Adjust.
1172 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1173 (record_btrace_update_thread_list): ... this. Adjust comment.
1174 (init_record_btrace_ops): Adjust.
1175 * remote.c (remote_threads_info): Rename to ...
1176 (remote_update_thread_list): ... this. Call prune_threads.
1177 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1178 Adjust.
1179 * sol-thread.c (check_for_thread_db): Adjust.
1180 (sol_find_new_threads_callback): Rename to ...
1181 (sol_update_thread_list_callback): ... this.
1182 (sol_find_new_threads): Rename to ...
1183 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1184 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1185 * target-delegates.c: Regenerate.
1186 * target.c (target_find_new_threads): Rename to ...
1187 (target_update_thread_list): ... this.
1188 * target.h (struct target_ops): Rename to_find_new_threads field
1189 to to_update_thread_list.
1190 (target_find_new_threads): Rename to ...
1191 (target_update_thread_list): ... this.
1192 * thread.c (prune_threads): Make extern.
1193 (update_thread_list): Adjust.
1194
1195 2014-10-15 Pedro Alves <palves@redhat.com>
1196
1197 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1198 Add describing comment. Return -1 if the qL packet is not
1199 supported.
1200 (struct thread_item, thread_item_t): Move higher up in
1201 the file. Add comments.
1202 (struct threads_parsing_context): Move higher up in
1203 the file, add comments, and remote to ...
1204 (struct threads_listing_context): ... this.
1205 (remote_newthread_step): Don't add the thread to GDB's thread
1206 database here. Instead push it to the thread_listing_context
1207 list.
1208 (remote_find_new_threads): Rename to ...
1209 (remote_get_threads_with_ql): ... this. Add target_ops and
1210 targets_listing_context parameters. Pass down context.
1211 (start_thread): Adjust.
1212 (clear_threads_parsing_context): Rename to ...
1213 (clear_threads_listing_context): ... this.
1214 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1215 remote_threads_info.
1216 (remote_get_threads_with_qthreadinfo): Ditto.
1217 (remote_threads_info): Reimplement.
1218
1219 2014-10-15 Pedro Alves <palves@redhat.com>
1220
1221 * infrun.c (resume): Don't force displaced-stepping for all
1222 single-steps on software single-stepping archs.
1223
1224 2014-10-15 Pedro Alves <palves@redhat.com>
1225
1226 * breakpoint.c (single_step_breakpoints): Delete global.
1227 (insert_single_step_breakpoint): Adjust to store the breakpoint
1228 pointer in the current thread.
1229 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1230 (cancel_single_step_breakpoints): Delete functions.
1231 (breakpoint_has_location_inserted_here): Make extern.
1232 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1233 breakpoint list.
1234 * breakpoint.h (breakpoint_has_location_inserted_here): New
1235 declaration.
1236 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1237 (cancel_single_step_breakpoints): Remove declarations.
1238 * gdbthread.h (struct thread_control_state)
1239 <single_step_breakpoints>: New field.
1240 (delete_single_step_breakpoints)
1241 (thread_has_single_step_breakpoints_set)
1242 (thread_has_single_step_breakpoint_here): New declarations.
1243 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1244 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1245 (singlestep_pc): Delete globals.
1246 (infrun_thread_ptid_changed): Remove references to removed
1247 globals.
1248 (resume_cleanups): Delete the current thread's single-step
1249 breakpoints.
1250 (maybe_software_singlestep): Remove references to removed globals.
1251 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1252 delete_single_step_breakpoints.
1253 (init_wait_for_inferior): Remove references to removed globals.
1254 (delete_thread_infrun_breakpoints): Delete the thread's
1255 single-step breakpoints too.
1256 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1257 single-step breakpoints here.
1258 (delete_stopped_threads_single_step_breakpoints): New function.
1259 (adjust_pc_after_break): Adjust to use
1260 thread_has_single_step_breakpoints_set.
1261 (handle_inferior_event): Remove references to removed globals.
1262 Use delete_stopped_threads_single_step_breakpoints.
1263 (handle_signal_stop): Adjust to per-thread single-step
1264 breakpoints. Swap test order to do cheaper tests first.
1265 (switch_back_to_stepped_thread): Extend debug output. Remove
1266 references to removed globals.
1267 * record-full.c (record_full_wait_1): Adjust to per-thread
1268 single-step breakpoints.
1269 * thread.c (delete_single_step_breakpoints)
1270 (thread_has_single_step_breakpoints_set)
1271 (thread_has_single_step_breakpoint_here): New functions.
1272 (clear_thread_inferior_resources): Also delete the thread's
1273 single-step breakpoints.
1274
1275 2014-10-15 Pedro Alves <palves@redhat.com>
1276
1277 * thread.c (delete_thread_breakpoint): New function.
1278 (delete_step_resume_breakpoint)
1279 (delete_exception_resume_breakpoint): Use it.
1280 (delete_at_next_stop): New function.
1281 (clear_thread_inferior_resources): Use delete_at_next_stop.
1282
1283 2014-10-15 Pedro Alves <palves@redhat.com>
1284
1285 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1286 (breakpoint_inserted_here_p): ... here. Remove special case for
1287 software single-step breakpoints.
1288 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1289 (software_breakpoint_inserted_here_p): ... here. Remove special
1290 case for software single-step breakpoints.
1291 (bp_target_info_copy_insertion_state)
1292 (deprecated_insert_raw_breakpoint)
1293 (deprecated_remove_raw_breakpoint): Delete functions.
1294 * breakpoint.h (deprecated_insert_raw_breakpoint)
1295 (deprecated_remove_raw_breakpoint): Remove declarations.
1296
1297 2014-10-15 Pedro Alves <palves@redhat.com>
1298
1299 PR breakpoints/9649
1300 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1301 Delete array globals.
1302 (single_step_breakpoints): New global.
1303 (breakpoint_xfer_memory): Remove special handling for single-step
1304 breakpoints.
1305 (update_breakpoints_after_exec): Delete bp_single_step
1306 breakpoints.
1307 (detach_breakpoints): Remove special handling for single-step
1308 breakpoints.
1309 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1310 (bpstat_stop_status): Add comment.
1311 (bpstat_what, bptype_string, print_one_breakpoint_location)
1312 (adjust_breakpoint_address, init_bp_location): Handle
1313 bp_single_step.
1314 (new_single_step_breakpoint): New function.
1315 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1316 handling for single-step breakpoints.
1317 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1318 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1319 Rewrite.
1320 (detach_single_step_breakpoints, find_single_step_breakpoint):
1321 Delete functions.
1322 (breakpoint_has_location_inserted_here): New function.
1323 (single_step_breakpoint_inserted_here_p): Rewrite.
1324 * breakpoint.h: Remove FIXME.
1325 (enum bptype) <bp_single_step>: New enum value.
1326 (insert_single_step_breakpoint): Update comment.
1327 * infrun.c (resume_cleanups)
1328 (delete_step_thread_step_resume_breakpoint): Remove single-step
1329 breakpoints.
1330 (fetch_inferior_event): Install a cleanup that removes infrun
1331 breakpoints.
1332 (switch_back_to_stepped_thread) <expect thread advanced also>:
1333 Clear step-over info.
1334
1335 2014-10-15 Pedro Alves <palves@redhat.com>
1336
1337 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1338 (delete_thread_infrun_breakpoints): New function, with parts
1339 salvaged from delete_step_resume_breakpoint_callback.
1340 (delete_step_thread_step_resume_breakpoint): Delete.
1341 (for_each_just_stopped_thread_callback_func): New typedef.
1342 (for_each_just_stopped_thread): New function.
1343 (delete_just_stopped_threads_infrun_breakpoints): New function.
1344 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1345 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1346 ... this. Adjust.
1347 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1348
1349 2014-10-15 Pedro Alves <palves@redhat.com>
1350
1351 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1352 trying to step past a non-steppable watchpoint.
1353 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1354 field.
1355 * infrun.c (struct step_over_info): Add new field
1356 'nonsteppable_watchpoint_p' and adjust comments.
1357 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1358 Adjust.
1359 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1360 (stepping_past_nonsteppable_watchpoint): New function.
1361 (step_over_info_valid_p): Also return true if stepping past a
1362 nonsteppable watchpoint.
1363 (proceed): Adjust call to set_step_over_info. Remove reference to
1364 init_infwait_state.
1365 (init_wait_for_inferior): Remove reference to init_infwait_state.
1366 (waiton_ptid): Delete global.
1367 (struct execution_control_state)
1368 <stepped_after_stopped_by_watchpoint>: Delete field.
1369 (wait_for_inferior, fetch_inferior_event): Always pass
1370 minus_one_ptid to target_wait.
1371 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1372 field.
1373 (init_infwait_state): Delete function.
1374 (handle_inferior_event): Remove infwait_state handling.
1375 (handle_signal_stop) <watchpoints handling>: Adjust after
1376 stepped_after_stopped_by_watchpoint removal. Don't remove
1377 breakpoints here nor set infwait_state. Set the thread's
1378 stepping_over_watchpoint flag, and call keep_going instead.
1379 (keep_going): Handle stepping_over_watchpoint. Adjust
1380 set_step_over_info calls.
1381 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1382 function.
1383
1384 2014-10-15 Pedro Alves <palves@redhat.com>
1385
1386 * infrun.c (step_over_info_valid_p): New function.
1387 (resume): Use step_over_info_valid_p instead of checking the
1388 threads's trap_expected flag.
1389
1390 2014-10-15 Doug Evans <dje@google.com>
1391 Walfred Tedeschi <walfred.tedeschi@intel.com>
1392
1393 PR python/17364
1394 * python/lib/gdb/__init__.py (packages): Add "printer".
1395 * python/lib/gdb/command/bound_registers.py: Moved to ...
1396 * python/lib/gdb/printer/bound_registers.py: ... here.
1397 Add printer to global set of builtin printers. Rename printer from
1398 "bound" to "mpx_bound128".
1399 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1400 registered as global "builtin" printer.
1401 (add_builtin_pretty_printer): New function.
1402 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1403 gdb/printer/__init__.py.
1404
1405 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1406
1407 * Makefile.in (SFILES): Remove d-support.c.
1408 (COMMON_OBS): Remove d-support.o.
1409 * d-lang.h (d_parse_symbol): Remove declaration.
1410 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1411 * d-support.c: Remove file.
1412
1413 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1414
1415 * gdb/infrun.c (process_event_stop_test): Apply
1416 gdbarch_addr_bits_remove to longjmp resume address.
1417
1418 2014-10-15 Pedro Alves <palves@redhat.com>
1419
1420 * regformats/microblaze.dat: Delete file.
1421
1422 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1423
1424 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1425 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1426
1427 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1428
1429 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1430 as non-trivial.
1431
1432 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1433
1434 PR c++/13403
1435 PR c++/15154
1436 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1437 with qualified args.
1438
1439 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1440
1441 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1442 of the case where the second operand is a pointer.
1443 <BINOP_SUB>: Likewise.
1444
1445 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1446
1447 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1448 only if it is not NULL.
1449 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1450 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1451 (struct probe_ops) <clear_semaphore>: Likewise.
1452 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1453 not NULL.
1454 (stop_tracing): Likewise, for clear_semaphore.
1455
1456 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
1457
1458 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1459 using language_c, instead of current_language.
1460
1461 2014-10-13 Doug Evans <dje@google.com>
1462
1463 * python/py-objfile.c (objfpy_initialize): New function.
1464 (objfpy_new, objfile_to_objfile_object): Call it.
1465 * python/py-progspace.c (pspy_initialize): New function.
1466 (pspy_new, pspace_to_pspace_object): Call it.
1467
1468 2014-10-13 Miroslav Franc <mfranc@redhat.com>
1469 Jan Kratochvil <jan.kratochvil@redhat.com>
1470
1471 Fix "save breakpoints" for "catch" command.
1472 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1473 newline.
1474
1475 2014-10-12 Miroslav Franc <mfranc@redhat.com>
1476
1477 Fix "save breakpoints" for "disable $bpnum" command.
1478 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1479
1480 2014-10-10 Pedro Alves <palves@redhat.com>
1481
1482 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1483 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1484 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1485 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1486 and been removed.
1487 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1488 * configure.ac: Remove references to IRIX.
1489 * configure.host: Add *-*-irix* to the obsolete hosts section.
1490 Remove all other references to irix.
1491 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1492 Delete files.
1493
1494 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
1495
1496 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1497 isn't valid, release the tdesc arch data and return NULL.
1498
1499 2014-10-10 Pedro Alves <palves@redhat.com>
1500
1501 * linux-tdep.c: Include observer.h.
1502 (linux_inferior_data): New global.
1503 (struct linux_info): New structure.
1504 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1505 (get_linux_inferior_data): New functions.
1506 (linux_vsyscall_range): Rename to ...
1507 (linux_vsyscall_range_raw): ... this.
1508 (linux_vsyscall_range): New function; handles caching.
1509 (_initialize_linux_tdep): Register linux_inferior_data. Install
1510 inferior_exit and inferior_appeared observers.
1511
1512 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1513 Pedro Alves <palves@redhat.com>
1514
1515 PR symtab/14466
1516 * solib-svr4.c (svr4_read_so_list): Rename to ...
1517 (svr4_current_sos_1): ... this and change the function comment.
1518 (svr4_current_sos): New function.
1519
1520 2014-10-10 Pedro Alves <palves@redhat.com>
1521
1522 * arch-utils.c (default_vsyscall_range): New function.
1523 * arch-utils.h (default_vsyscall_range): New declaration.
1524 * gdbarch.sh (vsyscall_range): New hook.
1525 * gdbarch.h, gdbarch.c: Regenerate.
1526 * linux-tdep.c (linux_vsyscall_range): New function.
1527 (linux_init_abi): Install linux_vsyscall_range as
1528 vsyscall_range gdbarch hook.
1529 * memrange.c (address_in_mem_range): New function.
1530 * memrange.h (address_in_mem_range): New declaration.
1531 * symfile-mem.c (find_vdso_size): Delete function.
1532 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1533
1534 2014-10-10 Pedro Alves <palves@redhat.com>
1535
1536 * infrun.c (normal_stop): Fix typo in comment.
1537
1538 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1539
1540 PR tdep/9390
1541 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1542 typo when using logical AND to determine instruction type.
1543
1544 2014-10-09 Yao Qi <yao@codesourcery.com>
1545
1546 * infrun.c (handle_signal_stop): Remove local variable
1547 'printed'.
1548
1549 2014-10-08 Stan Shebs <stan@codesourcery.com>
1550
1551 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1552
1553 2014-10-08 Gary Benson <gbenson@redhat.com>
1554
1555 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1556
1557 2014-10-08 Gary Benson <gbenson@redhat.com>
1558
1559 * common/common-defs.h: Include common-exceptions.h.
1560 * exceptions.h: Do not include common-exceptions.h.
1561
1562 2014-10-08 Gary Benson <gbenson@redhat.com>
1563
1564 * common/common-defs.h: Include cleanups.h.
1565 * common/common-exceptions.c: Do not include cleanups.h.
1566 * utils.h: Likewise.
1567
1568 2014-10-08 Gary Benson <gbenson@redhat.com>
1569
1570 * ada-lang.c: Do not include exceptions.h.
1571 * ada-valprint.c: Likewise.
1572 * amd64-tdep.c: Likewise.
1573 * auto-load.c: Likewise.
1574 * block.c: Likewise.
1575 * break-catch-throw.c: Likewise.
1576 * breakpoint.c: Likewise.
1577 * btrace.c: Likewise.
1578 * c-lang.c: Likewise.
1579 * cli/cli-cmds.c: Likewise.
1580 * cli/cli-interp.c: Likewise.
1581 * cli/cli-script.c: Likewise.
1582 * completer.c: Likewise.
1583 * corefile.c: Likewise.
1584 * corelow.c: Likewise.
1585 * cp-abi.c: Likewise.
1586 * cp-support.c: Likewise.
1587 * cp-valprint.c: Likewise.
1588 * darwin-nat.c: Likewise.
1589 * dwarf2-frame-tailcall.c: Likewise.
1590 * dwarf2-frame.c: Likewise.
1591 * dwarf2loc.c: Likewise.
1592 * dwarf2read.c: Likewise.
1593 * eval.c: Likewise.
1594 * event-loop.c: Likewise.
1595 * event-top.c: Likewise.
1596 * f-valprint.c: Likewise.
1597 * frame-unwind.c: Likewise.
1598 * frame.c: Likewise.
1599 * gdbtypes.c: Likewise.
1600 * gnu-v2-abi.c: Likewise.
1601 * gnu-v3-abi.c: Likewise.
1602 * guile/scm-auto-load.c: Likewise.
1603 * guile/scm-breakpoint.c: Likewise.
1604 * guile/scm-cmd.c: Likewise.
1605 * guile/scm-frame.c: Likewise.
1606 * guile/scm-lazy-string.c: Likewise.
1607 * guile/scm-param.c: Likewise.
1608 * guile/scm-symbol.c: Likewise.
1609 * guile/scm-type.c: Likewise.
1610 * hppa-hpux-tdep.c: Likewise.
1611 * i386-tdep.c: Likewise.
1612 * inf-loop.c: Likewise.
1613 * infcall.c: Likewise.
1614 * infcmd.c: Likewise.
1615 * infrun.c: Likewise.
1616 * interps.c: Likewise.
1617 * interps.h: Likewise.
1618 * jit.c: Likewise.
1619 * linespec.c: Likewise.
1620 * linux-nat.c: Likewise.
1621 * linux-thread-db.c: Likewise.
1622 * m32r-rom.c: Likewise.
1623 * main.c: Likewise.
1624 * memory-map.c: Likewise.
1625 * mi/mi-cmd-break.c: Likewise.
1626 * mi/mi-cmd-stack.c: Likewise.
1627 * mi/mi-interp.c: Likewise.
1628 * mi/mi-main.c: Likewise.
1629 * monitor.c: Likewise.
1630 * nto-procfs.c: Likewise.
1631 * objc-lang.c: Likewise.
1632 * p-valprint.c: Likewise.
1633 * parse.c: Likewise.
1634 * ppc-linux-tdep.c: Likewise.
1635 * printcmd.c: Likewise.
1636 * probe.c: Likewise.
1637 * python/py-auto-load.c: Likewise.
1638 * python/py-breakpoint.c: Likewise.
1639 * python/py-cmd.c: Likewise.
1640 * python/py-finishbreakpoint.c: Likewise.
1641 * python/py-frame.c: Likewise.
1642 * python/py-framefilter.c: Likewise.
1643 * python/py-function.c: Likewise.
1644 * python/py-gdb-readline.c: Likewise.
1645 * python/py-inferior.c: Likewise.
1646 * python/py-infthread.c: Likewise.
1647 * python/py-lazy-string.c: Likewise.
1648 * python/py-linetable.c: Likewise.
1649 * python/py-param.c: Likewise.
1650 * python/py-prettyprint.c: Likewise.
1651 * python/py-symbol.c: Likewise.
1652 * python/py-type.c: Likewise.
1653 * python/py-value.c: Likewise.
1654 * python/python-internal.h: Likewise.
1655 * python/python.c: Likewise.
1656 * record-btrace.c: Likewise.
1657 * record-full.c: Likewise.
1658 * regcache.c: Likewise.
1659 * remote-fileio.c: Likewise.
1660 * remote-mips.c: Likewise.
1661 * remote.c: Likewise.
1662 * rs6000-aix-tdep.c: Likewise.
1663 * rs6000-nat.c: Likewise.
1664 * skip.c: Likewise.
1665 * solib-darwin.c: Likewise.
1666 * solib-dsbt.c: Likewise.
1667 * solib-frv.c: Likewise.
1668 * solib-ia64-hpux.c: Likewise.
1669 * solib-spu.c: Likewise.
1670 * solib-svr4.c: Likewise.
1671 * solib.c: Likewise.
1672 * spu-tdep.c: Likewise.
1673 * stack.c: Likewise.
1674 * stap-probe.c: Likewise.
1675 * symfile-mem.c: Likewise.
1676 * symmisc.c: Likewise.
1677 * target.c: Likewise.
1678 * thread.c: Likewise.
1679 * top.c: Likewise.
1680 * tracepoint.c: Likewise.
1681 * tui/tui-interp.c: Likewise.
1682 * typeprint.c: Likewise.
1683 * utils.c: Likewise.
1684 * valarith.c: Likewise.
1685 * valops.c: Likewise.
1686 * valprint.c: Likewise.
1687 * value.c: Likewise.
1688 * varobj.c: Likewise.
1689 * windows-nat.c: Likewise.
1690 * xml-support.c: Likewise.
1691
1692 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1693
1694 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1695 name implies.
1696 (extended_mips16_next_pc): Update accordingly.
1697
1698 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1699
1700 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1701 function.
1702 (micromips_instruction_is_compact_branch): Likewise.
1703 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1704 or a compact jump, reaching a jump delay slot, or seeing a
1705 second non-prologue instruction.
1706 (micromips_scan_prologue): Also terminate scanning upon seeing a
1707 compact branch or jump, or reaching a branch or jump delay slot.
1708 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1709 or jump delay slot, or seeing a second non-prologue instruction.
1710 (mips32_instruction_has_delay_slot): Retain instruction
1711 examination code only, update arguments accordingly and move
1712 instruction fetch pieces to...
1713 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1714 (micromips_instruction_has_delay_slot): Likewise and to...
1715 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1716 (mips16_instruction_has_delay_slot): Likewise and to...
1717 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1718 (mips_single_step_through_delay): Update accordingly.
1719 (mips_adjust_breakpoint_address): Likewise.
1720
1721 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1722
1723 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1724 !mustbe32 also return 1 for 32-bit instructions.
1725 (mips16_instruction_has_delay_slot): Likewise. Add an
1726 explanatory comment.
1727
1728 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1729
1730 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1731 symbols special.
1732
1733 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1734
1735 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1736 update comments.
1737 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1738 for the breakpoint's address. Don't preinitialize `placed_size'.
1739 (insert_bp_location): Set `reqstd_address' rather than
1740 `placed_address'.
1741 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1742 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1743 address.
1744 (bkpt_remove_location): Likewise.
1745 (deprecated_insert_raw_breakpoint): Likewise.
1746 (deprecated_remove_raw_breakpoint): Likewise.
1747 (find_single_step_breakpoint): Likewise.
1748 * mem-break.c (default_memory_insert_breakpoint): Use
1749 `reqstd_address' for the breakpoint's address. Don't set
1750 `placed_address' or `placed_size' if breakpoint contents couldn't
1751 have been determined.
1752 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1753 the breakpoint's address.
1754 (remote_insert_hw_breakpoint): Likewise. Don't set
1755 `placed_address' or `placed_size' if breakpoint couldn't have been
1756 set.
1757 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1758 `reqstd_address' for the breakpoint's address.
1759 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1760 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1761 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1762 * microblaze-linux-tdep.c
1763 (microblaze_linux_memory_remove_breakpoint): Likewise.
1764 * monitor.c (monitor_insert_breakpoint): Likewise.
1765 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1766 (procfs_insert_hw_breakpoint): Likewise.
1767 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1768 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1769 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1770 * remote-mips.c (mips_insert_breakpoint): Likewise.
1771 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1772
1773 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1774
1775 * valops.c (value_assign): Check for bit field assignments
1776 before calling architecture-specific register value
1777 conversion functions.
1778
1779 2014-10-03 Pierre Muller <muller@sourceware.org>
1780
1781 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1782
1783 2014-10-02 Pedro Alves <palves@redhat.com>
1784
1785 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1786 threads_are_executing.
1787 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1788 describing comment.
1789 * gdbthread.h (threads_are_executing): Declare.
1790 (handle_signal_stop) <random signals>: Don't print about the
1791 signal here if stopping.
1792 (end_stepping_range): Don't notify observers here.
1793 (normal_stop): Update the thread list. If stopped by a random
1794 signal or a stepping range ended, notify observers.
1795 * thread.c (threads_executing): New global.
1796 (init_thread_list): Clear 'threads_executing'.
1797 (set_executing): Set or clear 'threads_executing'.
1798 (threads_are_executing): New function.
1799 (update_threads_executing): New function.
1800 (update_thread_list): Use it.
1801
1802 2014-10-02 Pedro Alves <palves@redhat.com>
1803
1804 PR breakpoints/17431
1805 * breakpoint.c (update_breakpoints_after_exec): Don't create
1806 overlay, longjmp, std terminate nor exception breakpoints here.
1807
1808 2014-10-02 Pedro Alves <palves@redhat.com>
1809
1810 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1811 Adjust comments.
1812 * inferior.c (find_inferior_for_program_space): Give preference to
1813 the current inferior.
1814 * inferior.h (find_inferior_for_program_space): Update comment.
1815 * progspace.c (switch_to_program_space_and_thread): Prefer the
1816 current inferior if it's bound to the program space requested. If
1817 the inferior found doesn't have a PID yet, don't bother looking up
1818 a thread.
1819 * progspace.h (switch_to_program_space_and_thread): Adjust
1820 comment.
1821 * thread.c (any_thread_of_process, any_live_thread_of_process):
1822 Give preference to the current thread.
1823
1824 2014-10-01 Pedro Alves <palves@redhat.com>
1825
1826 * breakpoint.c (insert_bp_location): Error out if inserting a
1827 software breakpoint at a read-only address.
1828 * target.c (memory_xfer_check_region): New function, factored out
1829 from ...
1830 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1831 ULONGEST.
1832 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1833 against the memory region attributes.
1834
1835 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1836
1837 * NEWS: Announce new exit-code field in -list-thread-groups
1838 output.
1839 * inferior.c (exit_inferior_1): Don't clear exit code.
1840 (inferior_appeared): Clear exit code.
1841 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1842 code.
1843
1844 2014-10-01 Pedro Alves <palves@redhat.com>
1845
1846 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1847 GENERATED" along with emacs/vi read-only markers.
1848 * regformats/aarch64.dat: Regenerate.
1849 * regformats/arm-with-iwmmxt.dat: Regenerate.
1850 * regformats/arm-with-neon.dat: Regenerate.
1851 * regformats/arm-with-vfpv2.dat: Regenerate.
1852 * regformats/arm-with-vfpv3.dat: Regenerate.
1853 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1854 * regformats/i386/amd64-avx.dat: Regenerate.
1855 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1856 * regformats/i386/amd64-avx512.dat: Regenerate.
1857 * regformats/i386/amd64-linux.dat: Regenerate.
1858 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1859 * regformats/i386/amd64-mpx.dat: Regenerate.
1860 * regformats/i386/amd64.dat: Regenerate.
1861 * regformats/i386/i386-avx-linux.dat: Regenerate.
1862 * regformats/i386/i386-avx.dat: Regenerate.
1863 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1864 * regformats/i386/i386-avx512.dat: Regenerate.
1865 * regformats/i386/i386-linux.dat: Regenerate.
1866 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1867 * regformats/i386/i386-mmx.dat: Regenerate.
1868 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1869 * regformats/i386/i386-mpx.dat: Regenerate.
1870 * regformats/i386/i386.dat: Regenerate.
1871 * regformats/i386/x32-avx-linux.dat: Regenerate.
1872 * regformats/i386/x32-avx.dat: Regenerate.
1873 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1874 * regformats/i386/x32-avx512.dat: Regenerate.
1875 * regformats/i386/x32-linux.dat: Regenerate.
1876 * regformats/i386/x32.dat: Regenerate.
1877 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1878 * regformats/mips-dsp-linux.dat: Regenerate.
1879 * regformats/mips-linux.dat: Regenerate.
1880 * regformats/mips64-dsp-linux.dat: Regenerate.
1881 * regformats/mips64-linux.dat: Regenerate.
1882 * regformats/nios2-linux.dat: Regenerate.
1883 * regformats/rs6000/powerpc-32.dat: Regenerate.
1884 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1885 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1886 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1887 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1888 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1889 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1890 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1891 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1892 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1893 * regformats/s390-linux32.dat: Regenerate.
1894 * regformats/s390-linux32v1.dat: Regenerate.
1895 * regformats/s390-linux32v2.dat: Regenerate.
1896 * regformats/s390-linux64.dat: Regenerate.
1897 * regformats/s390-linux64v1.dat: Regenerate.
1898 * regformats/s390-linux64v2.dat: Regenerate.
1899 * regformats/s390-te-linux64.dat: Regenerate.
1900 * regformats/s390x-linux64.dat: Regenerate.
1901 * regformats/s390x-linux64v1.dat: Regenerate.
1902 * regformats/s390x-linux64v2.dat: Regenerate.
1903 * regformats/s390x-te-linux64.dat: Regenerate.
1904 * regformats/tic6x-c62x-linux.dat: Regenerate.
1905 * regformats/tic6x-c62x.dat: Regenerate.
1906 * regformats/tic6x-c64x-linux.dat: Regenerate.
1907 * regformats/tic6x-c64x.dat: Regenerate.
1908 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1909 * regformats/tic6x-c64xp.dat: Regenerate.
1910
1911 2014-10-01 Pedro Alves <palves@redhat.com>
1912
1913 * features/Makefile: Update comments.
1914 (XMLTOC): List all xml files we build C files from.
1915 (clean-cfiles): New rule.
1916
1917 2014-10-01 Pedro Alves <palves@redhat.com>
1918
1919 * features/i386/amd64-avx512-linux.c: Regenerate.
1920 * features/i386/amd64-avx512.c: Regenerate.
1921 * features/i386/x32-avx512-linux.c: Regenerate.
1922 * features/i386/x32-avx512.c: Regenerate.
1923
1924 2014-10-01 Pedro Alves <palves@redhat.com>
1925
1926 * features/Makefile (WHICH): Remove arm-with-m,
1927 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1928
1929 2014-10-01 Pedro Alves <palves@redhat.com>
1930
1931 * features/Makefile (clean): New rule.
1932
1933 2014-10-01 Pedro Alves <palves@redhat.com>
1934
1935 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1936 (zmm14h): Add missing end quotes.
1937
1938 2014-10-01 Pedro Alves <palves@redhat.com>
1939
1940 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1941 * features/aarch64.c: Regenerate.
1942
1943 2014-09-30 Don Breazeal <donb@codesourcery.com>
1944
1945 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1946 code so as to work with follow_fork_inferior.
1947 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1948 (inf_ttrace_create_inferior): Remove reference to
1949 inf_ttrace_vfork_ppid.
1950 (inf_ttrace_attach): Ditto.
1951 (inf_ttrace_detach): Ditto.
1952 (inf_ttrace_kill): Use current_inferior instead of
1953 inf_ttrace_vfork_ppid.
1954 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1955 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1956 inferior away from the parent.
1957 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1958 target_follow_fork.
1959 (follow_fork_inferior): New function.
1960 (follow_inferior_reset_breakpoints): Make function static.
1961 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1962 * linux-nat.c (linux_child_follow_fork): Move target-independent
1963 code to infrun.c:follow_fork_inferior.
1964
1965 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1966
1967 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1968 * gdbarch.c: Regenerate.
1969 * gdbarch.h: Likewise.
1970 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1971 gdbarch method 'regset_from_core_section'.
1972 (get_core_register_section): Remove handling for the case that
1973 regset == NULL and regset_from_core_section is defined.
1974 (get_core_registers): Drop check for deleted method.
1975 * procfs.c (procfs_do_thread_registers): Adjust comment.
1976
1977 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1978
1979 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1980 (linux_nat_make_corefile_notes): Remove.
1981 (linux_target_install_ops): Do not set target method
1982 'make_corefile_notes'.
1983 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1984 Remove field.
1985 (linux_corefile_thread_callback): Instead of args->collect, call
1986 linux_collect_thread_registers.
1987 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1988 NULL unless there is a regset iterator.
1989 (linux_make_corefile_notes_1): Remove.
1990 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1991 by linux_make_corefile_notes.
1992 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1993
1994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1995
1996 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1997 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1998 Remove.
1999 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2000
2001 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2002
2003 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2004 (xtensa_iterate_over_regset_sections): New.
2005 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2006
2007 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2008
2009 * vax-tdep.c (vax_regset_from_core_section): Remove.
2010 (vax_iterate_over_regset_sections): New.
2011 (vax_gdbarch_init): Adjust gdbarch initialization.
2012
2013 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2014
2015 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2016 (tilegx_regset_from_core_section): Remove.
2017 (tilegx_iterate_over_regset_sections): New.
2018 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2019
2020 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2021
2022 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2023 (sparc_iterate_over_regset_sections): New.
2024 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2025 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2026 targets.
2027 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2028 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2029 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2030 target method 'make_corefile_notes'.
2031
2032 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033
2034 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2035 'sizeof_gregset' and 'sizeof_fpregset'.
2036 * sh-tdep.c (sh_regset_from_core_section): Remove.
2037 (sh_iterate_over_regset_sections): New.
2038 (sh_gdbarch_init): Adjust gdbarch initialization.
2039 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2040 sizeof_fpregset.
2041 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2042 'sizeof_gregset'.
2043
2044 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2045
2046 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2047 (score7_linux_iterate_over_regset_sections): New.
2048 (score_gdbarch_init): Adjust gdbarch initialization.
2049
2050 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2051
2052 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2053 FreeBSD targets.
2054 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2055 method 'make_corefile_notes'.
2056 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2057 (ppcfbsd_regset_from_core_section): Remove.
2058 (ppcfbsd_iterate_over_regset_sections): New.
2059 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2060 initialization.
2061 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2062 (ppcnbsd_iterate_over_regset_sections): New.
2063 (ppcnbsd_init_abi): Adjust.
2064 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2065 (ppcobsd_iterate_over_regset_sections): New.
2066 (ppcobsd_init_abi): Adjust.
2067 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2068 (rs6000_aix_iterate_over_regset_sections): New.
2069 (rs6000_aix_init_osabi): Adjust.
2070
2071 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072
2073 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2074 (nios2_regset_from_core_section): Remove.
2075 (nios2_iterate_over_regset_sections): New.
2076 (nios2_linux_init_abi): Adjust gdbarch initialization.
2077
2078 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2079
2080 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2081 (am33_iterate_over_regset_sections): New.
2082 (am33_linux_init_osabi): Adjust gdbarch initialization.
2083
2084 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2085
2086 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2087 (mips_linux_iterate_over_regset_sections): New.
2088 (mips_linux_init_abi): Adjust gdbarch initialization.
2089 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2090 (mips64obsd_iterate_over_regset_sections): New.
2091 (mips64obsd_init_abi): Adjust.
2092 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2093 (mipsnbsd_iterate_over_regset_sections): New.
2094 (mipsnbsd_init_abi): Adjust.
2095
2096 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2097
2098 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2099 (m88k_iterate_over_regset_sections): New.
2100 (m88k_gdbarch_init): Adjust gdbarch initialization.
2101
2102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2103
2104 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2105 (ia64_linux_iterate_over_regset_sections): New.
2106 (ia64_linux_init_abi): Adjust gdbarch initialization.
2107
2108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109
2110 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2111 (m68kbsd_iterate_over_regset_sections): New.
2112 (m68kbsd_init_abi): Adjust gdbarch initialization.
2113 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2114 (m68k_linux_iterate_over_regset_sections): New.
2115 (m68k_linux_init_abi): Adjust gdbarch initialization.
2116
2117 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2118
2119 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2120 (m32r_linux_regset_from_core_section): Remove.
2121 (m32r_linux_iterate_over_regset_sections): New.
2122 (m32r_linux_init_abi): Adjust gdbarch initialization.
2123
2124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2125
2126 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2127 (amd64obsd_iterate_over_regset_sections): New.
2128 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2129 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2130 Remove.
2131 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2132 regset_from_core_section initialization.
2133 * i386-tdep.c (i386_regset_from_core_section): Remove.
2134 (i386_iterate_over_regset_sections): New.
2135 (i386_gdbarch_init): Adjust gdbarch initialization.
2136 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2137 (i386_iterate_over_regset_sections): New prototype.
2138 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2139 Remove.
2140 (i386obsd_aout_iterate_over_regset_sections): New.
2141 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2142 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2143 targets.
2144 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2145 (amd64fbsd_init_abi): Call fbsd_init_abi.
2146 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2147 (i386fbsd4_init_abi): Call fbsd_init_abi.
2148 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2149 target method 'make_corefile_notes'.
2150 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2151
2152 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2153
2154 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2155 (hppa_hpux_iterate_over_regset_sections): New.
2156 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2157 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2158 (hppa_linux_iterate_over_regset_sections): New.
2159 (hppa_linux_init_abi): Adjust.
2160 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2161 (hppanbsd_iterate_over_regset_sections): New.
2162 (hppanbsd_init_abi): Adjust.
2163 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2164 (hppaobsd_iterate_over_regset_sections): New.
2165 (hppaobsd_init_abi): Adjust.
2166
2167 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2168
2169 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2170 (frv_linux_iterate_over_regset_sections): New.
2171 (frv_linux_init_abi): Adjust gdbarch initialization.
2172
2173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2174
2175 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2176 (armbsd_iterate_over_regset_sections): New prototype.
2177 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2178 (armbsd_iterate_over_regset_sections): New.
2179 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2180 initialization.
2181
2182 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2183
2184 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2185 (alpha_linux_iterate_over_regset_sections): New.
2186 (alpha_linux_init_abi): Adjust gdbarch initialization.
2187 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2188 prototype.
2189 (alphanbsd_iterate_over_regset_sections): New prototype.
2190
2191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2192
2193 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2194 Remove.
2195 (aarch64_linux_iterate_over_regset_sections): New.
2196 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2197
2198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2199
2200 * fbsd-tdep.c: New file.
2201 * fbsd-tdep.h: New file.
2202 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2203 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2204 (ALLDEPFILES): Add fbsd-tdep.c.
2205
2206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2207
2208 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2209 parameter.
2210 * gdbarch.h: Regenerate.
2211 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2212 iterator.
2213 (get_core_register_section): Add parameter 'regset' and use it, if
2214 set. Add parameter 'min_size' and verify the bfd section size
2215 against it.
2216 (get_core_registers_cb): Add parameter 'regset' and pass it to
2217 get_core_register section. For the "standard" register sections
2218 ".reg" and ".reg2", set an appropriate default for human_name.
2219 (get_core_registers): Don't abort when the gdbarch has an iterator
2220 but no regset_from_core_section. Add NULL/0 for parameters
2221 'regset'/'min_size' in calls to get_core_register_section.
2222 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2223 'regset' and use it instead of calling the
2224 regset_from_core_section gdbarch method.
2225 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2226 * i386-tdep.c (i386_supply_xstateregset)
2227 (i386_collect_xstateregset, i386_xstateregset): Moved to
2228 i386-linux-tdep.c.
2229 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2230 .reg-xstate.
2231 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2232 core file support only if the regset iterator hasn't been set.
2233 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2234 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2235 Moved from i386-tdep.c and renamed to *_linux*.
2236 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2237 each callback invocation. Allow any .reg-xstate size when reading
2238 from a core file.
2239 * amd64-tdep.c (amd64_supply_xstateregset)
2240 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2241 amd64-linux-tdep.c.
2242 (amd64_regset_from_core_section): Remove.
2243 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2244 install an amd64-specific regset_from_core_section gdbarch method.
2245 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2246 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2247 Moved from amd64-tdep.c and renamed to *_linux*.
2248 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2249 to each callback invocation. Allow any .reg-xstate size when
2250 reading from a core file.
2251 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2252 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2253 each callback invocation.
2254 (arm_linux_init_abi): No longer set the regset_from_core_section
2255 gdbarch method.
2256 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2257 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2258 each callback invocation.
2259 (ppc_linux_init_abi): No longer set the regset_from_core_section
2260 gdbarch method.
2261 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2262 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2263 (s390_regset_from_core_section): Remove.
2264 (s390_iterate_over_regset_sections): Add regset parameter to each
2265 callback invocation.
2266 (s390_gdbarch_init): No longer set the regset_from_core_section
2267 gdbarch method. Drop initialization of deleted tdep fields.
2268
2269 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270
2271 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2272 (amd64_linux_iterate_over_regset_sections): New.
2273 (amd64_linux_init_abi_common): Don't install the regset section
2274 list, but the new iterator in gdbarch.
2275 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2276 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2277 (arm_linux_iterate_over_regset_sections): ...here. New function.
2278 (arm_linux_init_abi): Set iterator instead of section list.
2279 * corelow.c (get_core_registers_cb): New function, logic moved
2280 from...
2281 (get_core_registers): ...loop body here. Use new iterator method
2282 instead of walking through the regset section list.
2283 * gdbarch.sh: Remove 'core_regset_sections'. New method
2284 'iterate_over_regset_sections'. New typedef
2285 'iterate_over_regset_sections_cb'.
2286 * gdbarch.c: Regenerate.
2287 * gdbarch.h: Likewise.
2288 * i386-linux-tdep.c (i386_linux_regset_sections)
2289 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2290 Remove.
2291 (i386_linux_iterate_over_regset_sections): New.
2292 (i386_linux_init_abi): Don't choose a regset section list, but
2293 install new iterator in gdbarch.
2294 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2295 (linux_collect_regset_section_cb): New function, logic moved
2296 from...
2297 (linux_collect_thread_registers): ...loop body here. Use iterator
2298 method instead of walking through list.
2299 (linux_make_corefile_notes_1): Check for presence of iterator
2300 method instead of regset section list.
2301 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2302 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2303 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2304 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2305 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2306 (ppc_linux_init_abi): Don't choose from above regset section
2307 lists, but install new iterator in gdbarch.
2308 * regset.h (struct core_regset_section): Remove.
2309 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2310 have_linux_v1, have_linux_v2, and have_tdb.
2311 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2312 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2313 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2314 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2315 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2316 (s390_iterate_over_regset_sections): ...here. New function. Use
2317 new tdep fields.
2318 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2319 regset section lists, but install new iterator.
2320
2321 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2322
2323 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2324
2325 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2326
2327 * progspace.c (print_program_space): Don't prune program spaces
2328 before printing them.
2329
2330 2014-09-25 Pedro Alves <palves@redhat.com>
2331
2332 * infrun.c (user_visible_resume_ptid): Don't check
2333 singlestep_breakpoints_inserted_p.
2334
2335 2014-09-25 Pedro Alves <palves@redhat.com>
2336
2337 * breakpoint.c (should_be_inserted): Add debug output.
2338
2339 2014-09-25 Pedro Alves <palves@redhat.com>
2340
2341 * infrun.c (stepping_past_instruction_at)
2342 (clear_exit_convenience_vars): Point at infrun.h instead of
2343 inferior.h.
2344 (handle_signal_stop): Fix typo.
2345
2346 2014-09-24 Yao Qi <yao@codesourcery.com>
2347
2348 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2349 bitmask.
2350
2351 2014-09-22 Gary Benson <gbenson@redhat.com>
2352
2353 * target.c (target_stop): Updated comment.
2354
2355 2014-09-22 Gary Benson <gbenson@redhat.com>
2356
2357 * target/target.h (target_stop_ptid): Renamed as...
2358 (target_stop_and_wait): New function. Updated comment.
2359 All uses updated.
2360 (target_continue_ptid): Renamed as...
2361 (target_continue_no_signal): New function. Updated comment.
2362 All uses updated.
2363
2364 2014-09-22 Pedro Alves <palves@redhat.com>
2365
2366 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2367 and "auto" merged.
2368 * breakpoint.c (enum ugll_insert_mode): New enum.
2369 (always_inserted_mode): Now a plain boolean.
2370 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2371 (breakpoints_always_inserted_mode): Delete.
2372 (breakpoints_should_be_inserted_now): New function.
2373 (insert_breakpoints): Pass UGLL_INSERT to
2374 update_global_location_list instead of calling
2375 insert_breakpoint_locations manually.
2376 (create_solib_event_breakpoint_1): New, factored out from ...
2377 (create_solib_event_breakpoint): ... this.
2378 (create_and_insert_solib_event_breakpoint): Use
2379 create_solib_event_breakpoint_1 instead of calling
2380 insert_breakpoint_locations manually.
2381 (update_global_location_list): Change parameter type from boolean
2382 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2383 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2384 (update_global_location_list_nothrow): Change parameter type from
2385 boolean to enum ugll_insert_mode.
2386 (_initialize_breakpoint): "breakpoint always-inserted" option is
2387 now a boolean command. Update help text.
2388 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2389 (breakpoints_should_be_inserted_now): New declaration.
2390 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2391 Remove breakpoints_always_inserted_mode check.
2392 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2393 * remote.c (remote_start_remote): Likewise.
2394
2395 2014-09-22 Pedro Alves <palves@redhat.com>
2396
2397 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2398 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2399 Instead, pass UGLL_INSERT to update_global_location_list.
2400 (update_global_location_list): Change parameter type from boolean
2401 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2402 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2403 (create_solib_event_breakpoint_1): New, factored out from ...
2404 (create_solib_event_breakpoint): ... this.
2405 (create_and_insert_solib_event_breakpoint): Use
2406 create_solib_event_breakpoint_1 instead of calling
2407 insert_breakpoint_locations manually.
2408 (update_global_location_list): Handle UGLL_INSERT.
2409
2410 2014-09-22 Pedro Alves <palves@redhat.com>
2411
2412 * breakpoint.c (enum ugll_insert_mode): New enum.
2413 (update_global_location_list)
2414 (update_global_location_list_nothrow): Change parameter type from
2415 boolean to enum ugll_insert_mode. All callers adjusted.
2416
2417 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2418
2419 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2420 SystemTap support in GDB.
2421
2422 2014-09-19 Don Breazeal <donb@codesourcery.com>
2423
2424 * linux-nat.c (linux_handle_extended_wait): Call
2425 linux_ptrace_get_extended_event.
2426 (wait_lwp): Call linux_is_extended_waitstatus.
2427 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2428 and linux_is_extended_waitstatus.
2429 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2430 linux_ptrace_get_extended_event.
2431 (linux_ptrace_get_extended_event): New function.
2432 (linux_is_extended_waitstatus): New function.
2433 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2434 (linux_is_extended_waitstatus): New declarations.
2435
2436 2014-09-19 Yao Qi <yao@codesourcery.com>
2437
2438 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2439 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2440 comments. Callers update.
2441 (dwarf_decode_lines): Likewise.
2442 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2443 comments. Skip the line table if 'lowpc' is greater than
2444 'address'. Don't check
2445 dwarf2_per_objfile->has_section_at_zero.
2446
2447 2014-09-18 Doug Evans <dje@google.com>
2448
2449 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2450 * python/py-symtab.c (stpy_get_producer): New function.
2451 (symtab_object_getset): Add "producer" attribute.
2452
2453 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
2454
2455 PR gdb/17384
2456 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2457 (do_captured_read_memory_integer): Remove.
2458 (safe_read_memory_integer): Use target_read_memory directly instead
2459 of catching errors in do_captured_read_memory_integer.
2460
2461 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
2462
2463 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2464 not gdb/doc.
2465
2466 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2467
2468 * objc-lang.c (find_implementation_from_class): Remove dead code.
2469
2470 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
2471
2472 PR cli/7233
2473 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2474 "fprintf_unfiltered (gdb_stdlog...)".
2475
2476 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
2477
2478 PR breakpoints/12526
2479 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2480 val_bitsize.
2481 * breakpoint.c (watch_command_1): Use these fields to retain
2482 bitfield information.
2483 (extract_bitfield_from_watchpoint_value): New function.
2484 (watchpoint_check): Use it.
2485 (update_watchpoint): Use it. Optimize the address and length of a
2486 HW watchpoint pointing to a bitfield.
2487 * value.h (unpack_value_bitfield): New prototype.
2488 * value.c (unpack_value_bitfield): Make extern.
2489
2490 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2491
2492 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2493 x86-dregs.o.
2494 * gnu-nat.c (inf_threads): New function.
2495 * gnu-nat.h (inf_threads_ftype): New typedef.
2496 (inf_threads): New declaration.
2497 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2498 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2499 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2500 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2501 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2502 (i386_gnu_dr_get_control): New functions.
2503 (reg_addr): New structure.
2504 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2505 i386 debugging register hooks.
2506 * NEWS: Mention this.
2507
2508 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2509
2510 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2511 vector data transfer instructions.
2512 (arm_record_coproc_data_proc): Updated.
2513
2514 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2515
2516 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2517 arm_record_exreg_ld_st_insn.
2518 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2519 load/store insns.
2520
2521 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2522
2523 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2524 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2525 processing instructions.
2526
2527 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2528
2529 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2530 for advance SIMD struct ld/st insn.
2531 (thumb2_record_decode_insn_handler): Replace stub handler with
2532 thumb2_record_asimd_struct_ld_st.
2533
2534 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2535
2536 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2537 for asimd, vfp and coprocessor insns.
2538 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2539 and coprocessor insns.
2540 (thumb2_record_coproc_insn): New function.
2541 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2542 handlers.
2543 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2544 opcode 110 insns.
2545
2546 2014-09-13 Doug Evans <xdje42@gmail.com>
2547
2548 * NEWS: Mention new "queue-signal" command.
2549 * infcmd.c (queue_signal_command): New function.
2550 (_initialize_infcmd): Add new queue-signal command.
2551
2552 2014-09-13 Doug Evans <xdje42@gmail.com>
2553
2554 * linux-nat.c (wait_lwp): Add debugging printf.
2555 (linux_nat_wait_1): Ditto.
2556
2557 2014-09-12 Pedro Alves <palves@redhat.com>
2558
2559 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2560 (create_and_insert_solib_event_breakpoint): New functions.
2561 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2562 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2563 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2564 (remove_dbx_link_breakpoint): Delete function.
2565 (insert_dbx_link_bpt_in_file): Use
2566 create_and_insert_solib_event_breakpoint instead of
2567 deprecated_insert_raw_breakpoint.
2568 (procfs_wait): Don't check whether we hit __dbx_link here.
2569 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2570 here.
2571 * solib-irix.c (base_breakpoint): Delete global.
2572 (disable_break): Delete function.
2573 (enable_break): Use create_solib_event_breakpoint
2574 instead of deprecated_insert_raw_breakpoint.
2575 (irix_solib_handle_event): New function.
2576 (irix_solib_create_inferior_hook): Don't run the target or disable
2577 the mapping-complete breakpoint here.
2578 (_initialize_irix_solib): Install irix_solib_handle_event as
2579 so_ops->handle_event hook.
2580
2581 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2582 Ulrich Weigand  <uweigand@de.ibm.com>
2583
2584 PR tdep/17379
2585 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2586 instead of read_memory_unsigned_integer.
2587
2588 2014-09-12 Gary Benson <gbenson@redhat.com>
2589
2590 * nat/linux-waitpid.c: Include common-defs.h.
2591 [GDBSERVER]: Add FIXME comment.
2592 [!GDBSERVER]: Don't include defs.h or signal.h.
2593 (linux_debug) [!GDBSERVER]: Remove empty block.
2594
2595 2014-09-12 Gary Benson <gbenson@redhat.com>
2596
2597 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2598 Don't include defs.h or server.h.
2599
2600 2014-09-12 Gary Benson <gbenson@redhat.com>
2601
2602 * nat/linux-btrace.c: Include common-defs.h.
2603 Don't include defs.h, server.h or gdbthread.h.
2604 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2605
2606 2014-09-12 Gary Benson <gbenson@redhat.com>
2607
2608 * common/agent.c: Include common-defs.h.
2609 Don't include defs.h or server.h.
2610 * common/buffer.c: Likewise.
2611 * common/common-debug.c: Likewise.
2612 * common/common-utils.c: Likewise.
2613 * common/errors.c: Likewise.
2614 * common/filestuff.c: Likewise.
2615 * common/format.c: Likewise.
2616 * common/gdb_vecs.c: Likewise.
2617 * common/print-utils.c: Likewise.
2618 * common/ptid.c: Likewise.
2619 * common/rsp-low.c: Likewise.
2620 * common/signals.c: Likewise.
2621 * common/vec.c: Likewise.
2622 * common/xml-utils.c: Likewise.
2623 * nat/linux-osdata.c: Likewise.
2624 * nat/linux-procfs.c: Likewise.
2625 * nat/linux-ptrace.c: Likewise.
2626 * nat/mips-linux-watch.c: Likewise.
2627 * target/waitstatus.c: Likewise.
2628
2629 2014-09-12 Tom Tromey <tromey@redhat.com>
2630 Gary Benson <gbenson@redhat.com>
2631
2632 * common/common-regcache.h: New file.
2633 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2634 * regcache.h: Include common-regcache.h.
2635 (regcache_read_pc): Don't declare.
2636 * regcache.c (get_thread_regcache_for_ptid): New function.
2637 * nat/linux-btrace.c: Don't include regcache.h.
2638 Include common-regcache.h.
2639 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2640
2641 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2642
2643 * regcache.h (struct regset): Declare.
2644
2645 2014-09-11 Pedro Alves <palves@redhat.com>
2646
2647 PR gdb/17347
2648 * main.c: Include "infrun.h".
2649 (catch_command_errors, catch_command_errors_const): Wait for the
2650 foreground command to complete.
2651 * top.c (maybe_wait_sync_command_done): New function, factored out
2652 from ...
2653 (maybe_wait_sync_command_done): ... here.
2654 * top.h (maybe_wait_sync_command_done): New declaration.
2655
2656 2014-09-11 Tom Tromey <tromey@redhat.com>
2657 Gary Benson <gbenson@redhat.com>
2658
2659 * common/symbol.h: New file.
2660 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2661 * minsyms.c (find_minimal_symbol_address): New function.
2662 * common/agent.c: Include common/symbol.h.
2663 [!GDBSERVER]: Don't include objfiles.h.
2664 (agent_look_up_symbols): Use find_minimal_symbol_address.
2665
2666 2014-09-11 Gary Benson <gbenson@redhat.com>
2667
2668 * target/target.h (target_stop_ptid, target_continue_ptid):
2669 Declare.
2670 * target.c (target_stop_ptid, target_continue_ptid): New
2671 functions.
2672 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2673 (agent_run_command): Always use target_stop_ptid and
2674 target_continue_ptid.
2675
2676 2014-09-11 Tom Tromey <tromey@redhat.com>
2677 Gary Benson <gbenson@redhat.com>
2678
2679 * target/target.h: New file.
2680 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2681 * target.h: Include target/target.h.
2682 (target_read_memory, target_write_memory): Don't declare.
2683 * target.c (target_read_uint32): New function.
2684 * common/agent.c: Include target/target.h.
2685 [!GDBSERVER]: Don't include target.h.
2686 (helper_thread_id): Type changed to uint32_t.
2687 (agent_get_helper_thread_id): Use target_read_uint32.
2688 (agent_run_command): Always use target_read_memory and
2689 target_write_memory.
2690 (agent_capability): Type changed to uint32_t.
2691 (agent_capability_check): Use target_read_uint32.
2692
2693 2014-09-11 Gary Benson <gbenson@redhat.com>
2694
2695 * common/common-debug.h (show_debug_regs): Declare.
2696 * common/common-debug.c (show_debug_regs): Define.
2697 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2698 all uses with show_debug_regs. Replace all uses that considered
2699 debug_hw_points as a multi-value integer with straight boolean
2700 uses.
2701 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2702 with show_debug_regs.
2703 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2704 all uses with show_debug_regs.
2705 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2706 uses with show_debug_regs.
2707
2708 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2709
2710 * findvar.c (address_from_register): Handle targets requiring
2711 a special conversion routine even for plain pointer types.
2712
2713 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2714
2715 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2716 (store_register): Do not call exec_one_dummy_insn.
2717
2718 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2719
2720 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2721 dereference it first. Use value_enclosing_type instead of
2722 value_type.
2723 (ada_array_length): Likewise.
2724
2725 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2726
2727 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2728 Adjust function implementation and documentation accordingly.
2729 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2730 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2731 Update call to ada_value_ptr_subscript.
2732
2733 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2734
2735 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2736 instead of VAL's type.
2737
2738 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2739
2740 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2741
2742 2014-09-09 Doug Evans <xdje42@gmail.com>
2743
2744 PR guile/17367
2745 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2746 last parameter to pkg-config, not first.
2747 * configure.ac: Pass --with-guile provided pkg-config path to
2748 GDB_GUILE_PROGRAM_NAMES.
2749 * configure: Regenerate.
2750
2751 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2752
2753 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2754 Bertazi".
2755
2756 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2757
2758 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2759 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2760 the list of sections determining GDB_OSABI_IRIX.
2761
2762 2014-09-09 James Hogan <james.hogan@imgtec.com>
2763
2764 * MAINTAINERS (Write After Approval): Add "James Hogan".
2765
2766 2014-09-09 James Hogan <james.hogan@imgtec.com>
2767
2768 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2769
2770 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2771
2772 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2773
2774 2014-09-08 Doug Evans <xdje42@gmail.com>
2775
2776 PR 17247
2777 * guile.c: #include <signal.h>.
2778 (_initialize_guile): Block SIGCHLD while initializing Guile.
2779
2780 Replaces the following, which is reverted.
2781
2782 2014-07-26 Doug Evans <xdje42@gmail.com>
2783
2784 PR 17185
2785 * configure.ac: Add check for header gc/gc.h.
2786 Add check for function setenv.
2787 * configure: Regenerate.
2788 * config.in: Regenerate.
2789 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2790
2791 2014-09-08 Doug Evans <xdje42@gmail.com>
2792
2793 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2794 with named constant. Fix style of pointer comparison.
2795 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2796
2797 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2798
2799 PR gdb/17035
2800 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2801 decide whether we display the command on "show user".
2802 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2803 printing command name.
2804 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2805 * cli/cli-decode.c (cli_user_command_p): Create helper function
2806 to verify whether cmd_list_element is a user-defined command.
2807
2808 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2809
2810 PR python/17355
2811 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2812 Fix goto out of TRY_CATCH.
2813
2814 2014-09-06 Doug Evans <xdje42@gmail.com>
2815 Tom Tromey <tromey@redhat.com>
2816
2817 PR 15276
2818 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2819 $_any_caller_matches.
2820 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2821 * python/lib/gdb/function/caller_is.py: New file.
2822
2823 2014-09-06 Doug Evans <xdje42@gmail.com>
2824
2825 * infcmd.c (program_info): Fix typo.
2826
2827 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2828
2829 PR gdb/17235
2830 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2831 'number'. New variable 'has_digit'. Rewrite code to deal with
2832 subexpressions on SDT probes.
2833
2834 2014-09-04 Pedro Alves <palves@redhat.com>
2835
2836 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2837 the input is only one character long.
2838
2839 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2840
2841 PR fortran/17237
2842 * f-valprint.c (f_val_print): Specify the correct print option to
2843 use when printing integer values.
2844
2845 2014-09-04 Gary Benson <gbenson@redhat.com>
2846
2847 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2848 Remove code to cope with LWPs wrapped as PIDs.
2849 Add assertions to ensure no wrapped LWPs are passed.
2850
2851 2014-09-04 Pedro Alves <palves@redhat.com>
2852
2853 * value.c (value_ranges_copy_adjusted): New function, factored out
2854 from ...
2855 (value_contents_copy_raw): ... here.
2856 (unpack_value_bits_as_long_1): Rename back to ...
2857 (unpack_bits_as_long): ... this. Remove 'original_value' and
2858 'result' parameters. Change return type to LONGEST.
2859 (unpack_value_bits_as_long): Delete.
2860 (unpack_value_field_as_long_1): Delete.
2861 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2862 (unpack_value_bitfield): New function.
2863 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2864 (value_fetch_lazy): Use unpack_value_bitfield.
2865 * value.h (unpack_value_bits_as_long): Delete declaration.
2866
2867 2014-09-03 Sasha Smundak <asmundak@google.com>
2868
2869 * python/py-frame.c (frapy_read_register): New function.
2870
2871 2014-09-03 James Hogan <james.hogan@imgtec.com>
2872
2873 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2874 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2875
2876 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2877
2878 PR python/16699
2879 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2880 function.
2881 (add_cmd): Set "completer_handle_brkchars" to NULL.
2882 * cli/cli-decode.h (struct cmd_list_element)
2883 <completer_handle_brkchars>: New field.
2884 * command.h (completer_ftype_void): New typedef.
2885 (set_cmd_completer_handle_brkchars): New prototype.
2886 * completer.c (set_gdb_completion_word_break_characters): New
2887 function.
2888 (complete_line_internal): Call "completer_handle_brkchars"
2889 callback from command.
2890 * completer.h: Include "command.h".
2891 (set_gdb_completion_word_break_characters): New prototype.
2892 * python/py-cmd.c (cmdpy_completer_helper): New function.
2893 (cmdpy_completer_handle_brkchars): New function.
2894 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2895 (cmdpy_init): Set completer_handle_brkchars to
2896 cmdpy_completer_handle_brkchars.
2897
2898 2014-09-03 Gary Benson <gbenson@redhat.com>
2899
2900 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2901 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2902 Loop conditions changed to equivalent form.
2903 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2904 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2905 ALL_DEBUG_ADDRESS_REGISTERS.
2906
2907 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2908
2909 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2910 description fix.
2911
2912 2014-09-02 Doug Evans <dje@google.com>
2913
2914 * typeprint.c (find_global_typedef): Fix comment.
2915
2916 2014-09-02 Gary Benson <gbenson@redhat.com>
2917
2918 * i386-nat.h: Renamed as...
2919 * x86-nat.h: New file. All type, function and variable name
2920 prefixes changed from "i386_" to "x86_". All references updated.
2921 * i386-nat.c: Renamed as...
2922 * x86-nat.c: New file. All type, function and variable name
2923 prefixes changed from "i386_" to "x86_". All references updated.
2924 * common/i386-xstate.h: Renamed as...
2925 * common/x86-xstate.h: New file. All type, function and variable
2926 name prefixes changed from "i386_" to "x86_". All references
2927 updated.
2928 * nat/i386-cpuid.h: Renamed as...
2929 * nat/x86-cpuid.h: New file. All type, function and variable name
2930 prefixes changed from "i386_" to "x86_". All references updated.
2931 * nat/i386-gcc-cpuid.h: Renamed as...
2932 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2933 name prefixes changed from "i386_" to "x86_". All references
2934 updated.
2935 * nat/i386-dregs.h: Renamed as...
2936 * nat/x86-dregs.h: New file. All type, function and variable name
2937 prefixes changed from "i386_" to "x86_". All references updated.
2938 * nat/i386-dregs.c: Renamed as...
2939 * nat/x86-dregs.c: New file. All type, function and variable name
2940 prefixes changed from "i386_" to "x86_". All references updated.
2941
2942 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2943
2944 * varobj.c (_initialize_varobj): Move to the end of file.
2945
2946 2014-08-29 Gary Benson <gbenson@redhat.com>
2947
2948 * common/common-exceptions.h: New file.
2949 * common/common-exceptions.c: Likewise.
2950 * Makefile.in (SFILES): Add common/common-exceptions.c.
2951 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2952 (COMMON_OBS): Add common-exceptions.o.
2953 (common-exceptions.o): New rule.
2954 * exceptions.h (common-exceptions.h): Include.
2955 (gdb_setjmp.h): Do not include.
2956 (return_reason): Moved to common-exceptions.h.
2957 (enum return_reason): Likewise.
2958 (RETURN_MASK): Likewise.
2959 (typedef return_mask): Likewise.
2960 (enum errors): Likewise.
2961 (struct gdb_exception): Likewise.
2962 (exceptions_state_mc_init): Likewise.
2963 (exceptions_state_mc_action_iter): Likewise.
2964 (exceptions_state_mc_action_iter_1): Likewise.
2965 (TRY_CATCH): Likewise.
2966 (throw_exception): Likewise.
2967 (throw_verror): Likewise.
2968 (throw_vquit): Likewise.
2969 (throw_error): Likewise.
2970 (throw_quit): Likewise.
2971 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2972 (enum catcher_action): Likewise.
2973 (struct catcher): Likewise.
2974 (current_catcher): Likewise.
2975 (catcher_list_size): Likewise.
2976 (exceptions_state_mc_init): Likewise.
2977 (catcher_pop): Likewise.
2978 (exceptions_state_mc): Likewise.
2979 (exceptions_state_mc_action_iter): Likewise.
2980 (exceptions_state_mc_action_iter_1): Likewise.
2981 (throw_exception): Likewise.
2982 (exception_messages): Likewise.
2983 (exception_messages_size): Likewise.
2984 (throw_it): Likewise.
2985 (throw_verror): Likewise.
2986 (throw_vquit): Likewise.
2987 (throw_error): Likewise.
2988 (throw_quit): Likewise.
2989 (prepare_to_throw_exception): New function.
2990
2991 2014-08-29 Gary Benson <gbenson@redhat.com>
2992
2993 * common/gdb_setjmp.h: New file.
2994 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2995 * configure.ac: Move sigsetjmp check...
2996 * common/common.m4: ...here.
2997 * configure: Regenerate.
2998 * cp-support.c (SIGJMP_BUF): Delete.
2999 (SIGSETJMP): Likewise.
3000 (SIGLONGJMP): Likewise.
3001 * exceptions.h (gdb_setjmp.h): Include.
3002 (setjmp.h): Do not include.
3003 (EXCEPTIONS_SIGJMP_BUF): Delete.
3004 (EXCEPTIONS_SIGSETJMP): Likewise.
3005 (EXCEPTIONS_SIGLONGJMP): Likewise.
3006 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3007 from gdb_setjmp.h.
3008 * exceptions.c: Likewise.
3009
3010 2014-08-29 Gary Benson <gbenson@redhat.com>
3011
3012 * cleanups.h: Moved to...
3013 * common/cleanups.h: New file.
3014 * cleanups.c: Moved to...
3015 * common/cleanups.c: New file. Include common-defs.h and
3016 cleanups.h. Do not include defs.h.
3017 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3018 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3019 (cleanups.o): New rule.
3020
3021 2014-08-29 Gary Benson <gbenson@redhat.com>
3022
3023 * common/errors.h (internal_warning): New declaration.
3024 (internal_vwarning): Likewise.
3025 * common/errors.c (internal_warning): New function.
3026 * utils.h (internal_warning): Don't declare.
3027 (internal_vwarning): Likewise.
3028 * utils.c (internal_warning): Removed.
3029
3030 2014-08-29 Gary Benson <gbenson@redhat.com>
3031
3032 * main.c (captured_main): Use warning during startup.
3033 Prefix startup warning messages with command name.
3034
3035 2014-08-29 Gary Benson <gbenson@redhat.com>
3036
3037 * main.c (captured_main): Handle usage errors with error.
3038
3039 2014-08-29 Gary Benson <gbenson@redhat.com>
3040
3041 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3042 exit pair with a call to error. Wrap the message with _().
3043
3044 2014-08-29 Gary Benson <gbenson@redhat.com>
3045
3046 * main.c (captured_main): Replace a fprintf/exit
3047 pair with a call to error. Wrap the message with _().
3048
3049 2014-08-29 Gary Benson <gbenson@redhat.com>
3050
3051 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3052 pairs with calls to error. Wrap the message with _().
3053
3054 2014-08-29 Gary Benson <gbenson@redhat.com>
3055
3056 * utils.c (vwarning): Protect calls to target_terminal_ours
3057 and wrap_here.
3058
3059 2014-08-29 Gary Benson <gbenson@redhat.com>
3060
3061 * exceptions.c (print_flush): Protect calls to
3062 target_terminal_ours and wrap_here.
3063
3064 2014-08-29 Gary Benson <gbenson@redhat.com>
3065
3066 * utils.h (filtered_printing_initialized): New declaration.
3067 * utils.c (abort_with_message): New function.
3068 (internal_vproblem): Use abort_with_message for first level
3069 recursive internal problems, and if gdb_stderr is not set up.
3070 Protect calls to target_terminal_ours, begin_line and query.
3071
3072 2014-08-28 Doug Evans <dje@google.com>
3073
3074 * symtab.c (in_prologue): Move definition to better spot.
3075 (skip_prologue_using_sal): Ditto.
3076
3077 2014-08-28 Doug Evans <dje@google.com>
3078
3079 * symtab.c (find_function_start_sal): Move definition to better spot.
3080
3081 2014-08-28 Yao Qi <yao@codesourcery.com>
3082
3083 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3084 found_stack_adjust in forward scan. Remove condition check
3085 on found_stack_adjust which is always true. Indent the code.
3086
3087 2014-08-28 Yao Qi <yao@codesourcery.com>
3088
3089 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3090 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3091 (dwarf_decode_lines): Remove argument
3092 want_line_info. Remove condition check on want_line_info.
3093 Callers update.
3094
3095 2014-08-27 Doug Evans <dje@google.com>
3096
3097 * dwarf2read.c (dwarf_record_line): Fix typo.
3098
3099 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3100
3101 * target.h (struct target_ops::to_terminal_save_ours): Remove
3102 declaration.
3103 (target_terminal_save_ours): Remove macro.
3104 * target-delegates.c: Regenerate.
3105 * inf-child.c (inf_child_target): Don't set the nonexistent
3106 field to_terminal_save_ours.
3107 * inferior.h (child_terminal_save_ours): Remove declaration.
3108 * terminal.h (gdb_save_tty_state): New declaration.
3109 * inflow.c (child_terminal_save_ours): Rename to ...
3110 (gdb_save_tty_state): ... this.
3111 * tui/tui.c: Include terminal.h.
3112 (tui_enable): Use gdb_save_tty_state instead of
3113 target_terminal_save_ours.
3114 (tui_disable): Likewise.
3115
3116 2014-08-25 Doug Evans <dje@google.com>
3117
3118 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3119 Pass NULL instead of 0 for context pointer.
3120
3121 2014-08-25 Yao Qi <yao@codesourcery.com>
3122
3123 * dwarf2read.c: Fix grammatical error.
3124
3125 2014-08-24 Yao Qi <yao@codesourcery.com>
3126
3127 * dwarf2read.c (scan_partial_symbols): Update comments.
3128 Rename argument 'need_pc' with 'set_addrmap'.
3129 (add_partial_namespace): Rename argument 'need_pc' with
3130 'set_addrmap'.
3131 (add_partial_module): Likewise.
3132 (add_partial_subprogram): Likewise. Update comments.
3133 (dwarf2_name): Fix typo.
3134
3135 2014-08-22 Doug Evans <dje@google.com>
3136
3137 PR 17276
3138 * dwarf2read.c (dwarf_record_line_p): New function.
3139 (dwarf_decode_lines_1): Ignore subsequent line number entries
3140 for the same line if any entry had a non-zero discriminator.
3141
3142 2014-08-22 Doug Evans <dje@google.com>
3143
3144 * buildsym.h (record_line_ftype): New typedef.
3145 (record_line): Use it.
3146 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3147 (dwarf_decode_lines_1): Call them.
3148
3149 2014-08-22 Yao Qi <yao@codesourcery.com>
3150
3151 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3152 (ctf_end): Remove code.
3153
3154 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3157 (linux_make_corefile_notes): call update_thread_list, protected against
3158 exceptions.
3159
3160 2014-08-21 Pedro Alves <palves@redhat.com>
3161
3162 * infcmd.c (attach_command): Remove comment.
3163
3164 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3165
3166 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3167 unsigned LONGEST to ULONGEST.
3168
3169 2014-08-20 Pedro Alves <palves@redhat.com>
3170
3171 * Makefile.in (check-read1): New rule.
3172
3173 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3174
3175 * value.c (value_from_contents_and_address): Strip resolved_type's
3176 typedef layers before checking its TYPE_DATA_LOCATION.
3177
3178 2014-08-20 Pedro Alves <palves@redhat.com>
3179
3180 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3181
3182 2014-08-20 Yao Qi <yao@codesourcery.com>
3183
3184 * amd64-tdep.c (amd64_classify): Add a blank line after the
3185 example. Move "*/" to a new line.
3186 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3187 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3188 * dwarf2read.c (psymtab_include_file_name): Likewise.
3189
3190 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3191 Pedro Alves <palves@redhat.com>
3192
3193 PR symtab/14604
3194 PR symtab/14605
3195 * ada-lang.c (coerce_unspec_val_to_type): Use
3196 value_contents_copy_raw.
3197 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3198 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3199 * cp-valprint.c (cp_print_value_fields): Let the common printing
3200 code handle optimized out values.
3201 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3202 * d-valprint.c (dynamic_array_type): Use
3203 value_bits_any_optimized_out.
3204 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3205 check_any_valid fields.
3206 (check_pieced_value_bits): Delete and inline ...
3207 (check_pieced_synthetic_pointer): ... here.
3208 (check_pieced_value_validity): Delete.
3209 (check_pieced_value_invalid): Delete.
3210 (pieced_value_funcs): Remove check_validity and check_any_valid
3211 fields.
3212 (read_pieced_value): Use mark_value_bits_optimized_out.
3213 (write_pieced_value): Switch to use
3214 mark_value_bytes_optimized_out.
3215 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3216 of assuming the whole value is optimized out.
3217 * findvar.c (read_frame_register_value): Remove special handling
3218 of optimized out registers.
3219 (value_from_register): Use mark_value_bytes_optimized_out.
3220 * frame-unwind.c (frame_unwind_got_optimized): Use
3221 mark_value_bytes_optimized_out.
3222 * jv-valprint.c (java_value_print): Adjust.
3223 (java_print_value_fields): Let the common printing code handle
3224 optimized out values.
3225 * mips-tdep.c (mips_print_register): Remove special handling of
3226 optimized out registers.
3227 * opencl-lang.c (lval_func_check_validity): Delete.
3228 (lval_func_check_any_valid): Delete.
3229 (opencl_value_funcs): Remove check_validity and check_any_valid
3230 fields.
3231 * p-valprint.c (pascal_object_print_value_fields): Let the common
3232 printing code handle optimized out values.
3233 * stack.c (read_frame_arg): Remove special handling of optimized
3234 out values. Fetch both VAL and ENTRYVAL before comparing
3235 contents. Adjust to value_available_contents_eq rename.
3236 * valprint.c (valprint_check_validity)
3237 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3238 (val_print_array_elements): Adjust.
3239 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3240 (value_bits_any_optimized_out): New function.
3241 (value_entirely_covered_by_range_vector): New function, factored
3242 out from value_entirely_unavailable.
3243 (value_entirely_unavailable): Reimplement.
3244 (value_entirely_optimized_out): New function.
3245 (insert_into_bit_range_vector): New function, factored out from
3246 mark_value_bits_unavailable.
3247 (mark_value_bits_unavailable): Reimplement.
3248 (struct ranges_and_idx): New struct.
3249 (find_first_range_overlap_and_match): New function, factored out
3250 from value_available_contents_bits_eq.
3251 (value_available_contents_bits_eq): Rename to ...
3252 (value_contents_bits_eq): ... this. Check both unavailable
3253 contents and optimized out contents.
3254 (value_available_contents_eq): Rename to ...
3255 (value_contents_eq): ... this.
3256 (allocate_value_lazy): Remove reference to the old optimized_out
3257 boolean.
3258 (allocate_optimized_out_value): Use
3259 mark_value_bytes_optimized_out.
3260 (require_not_optimized_out): Adjust to check whether the
3261 optimized_out vec is empty.
3262 (ranges_copy_adjusted): New function, factored out from
3263 value_contents_copy_raw.
3264 (value_contents_copy_raw): Also copy the optimized out ranges.
3265 Assert the destination ranges aren't optimized out.
3266 (value_contents_copy): Update comment, remove call to
3267 require_not_optimized_out.
3268 (value_contents_equal): Adjust to check whether the optimized_out
3269 vec is empty.
3270 (set_value_optimized_out, value_optimized_out_const): Delete.
3271 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3272 New functions.
3273 (value_entirely_optimized_out, value_bits_valid): Delete.
3274 (value_copy): Take a VEC copy of the 'optimized_out' field.
3275 (value_primitive_field): Remove special handling of optimized out.
3276 (value_fetch_lazy): Assert that lazy values have no unavailable
3277 regions. Use value_bits_any_optimized_out. Remove some special
3278 handling for optimized out values.
3279 * value.h: Add intro comment about <optimized out> and
3280 <unavailable>.
3281 (struct lval_funcs): Remove check_validity and check_any_valid
3282 fields.
3283 (set_value_optimized_out, value_optimized_out_const): Remove.
3284 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3285 New declarations.
3286 (value_bits_any_optimized_out): New declaration.
3287 (value_bits_valid): Delete declaration.
3288 (value_available_contents_eq): Rename to ...
3289 (value_contents_eq): ... this, and extend comments.
3290
3291 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3292
3293 Fix -fsanitize=address on unreadable inferior strings.
3294 * valprint.c (val_print_string): Fix access before BUFFER.
3295
3296 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3297
3298 * target.c (target_struct_size): Remove.
3299 (target_struct_allocsize): Remove.
3300 (DEFAULT_ALLOCSIZE): Remove.
3301 (target_ops_p): New typedef.
3302 (DEF_VEC_P (target_ops_p)): New vector type.
3303 (target_structs): Change type to VEC (target_ops_p).
3304 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3305 (find_default_run_target): Rewrite for loop following changes to
3306 target_structs.
3307
3308 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3309
3310 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3311 Adjust code accordingly. Adjust function description comment.
3312
3313 2014-08-19 Yao Qi <yao@codesourcery.com>
3314
3315 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3316 types.
3317
3318 2014-08-19 Alan Modra <amodra@gmail.com>
3319
3320 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3321 * config.in: Regenerate.
3322 * configure: Regenerate.
3323
3324 2014-08-19 Tom Tromey <tromey@redhat.com>
3325 Gary Benson <gbenson@redhat.com>
3326
3327 * common/common-debug.h: New file.
3328 * common/common-debug.c: Likewise.
3329 * debug.c: Likewise.
3330 * Makefile.in (SFILES): Add common/common-debug.c.
3331 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3332 (COMMON_OBS): Add common-debug.o and debug.o.
3333 (common-debug.o): New rule.
3334 * common/common-defs.h: Include common-debug.h.
3335 * common/agent.c (debug_agent_printf): New function.
3336 (DEBUG_AGENT): Redefine.
3337 * nat/i386-dregs.c (debug_printf): Undefine.
3338
3339 2014-08-19 Gary Benson <gbenson@redhat.com>
3340
3341 * common/common-defs.h: Include print-utils.h.
3342 * utils.h: Do not include print-utils.h.
3343
3344 2014-08-19 Tom Tromey <tromey@redhat.com>
3345 Gary Benson <gbenson@redhat.com>
3346
3347 * common/common-types.h: New file.
3348 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3349 * common/common-defs.h: Include common-types.h.
3350 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3351 (ULONGEST): Remove.
3352
3353 2014-08-19 Tom Tromey <tromey@redhat.com>
3354 Gary Benson <gbenson@redhat.com>
3355
3356 * common/errors.h: New file.
3357 * common/errors.c: Likewise.
3358 * Makefile.in (SFILES): Add common/errors.c.
3359 (HFILES_NO_SRCDIR): Add common/errors.h.
3360 (COMMON_OBS): Add errors.o.
3361 (errors.o): New rule.
3362 * common/common-defs.h: Include errors.h.
3363 * utils.h (perror_with_name, error, verror, warning, vwarning):
3364 Don't declare.
3365 * common/common-utils.h: (malloc_failure, internal_error):
3366 Likewise.
3367
3368 2014-08-19 Gary Benson <gbenson@redhat.com>
3369
3370 * utils.c (internal_vproblem): Always print the message.
3371
3372 2014-08-18 Doug Evans <dje@google.com>
3373
3374 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3375
3376 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3377
3378 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3379 Return 0 if TYPE is dynamic.
3380 (print_range): Add handling of dynamic ranges.
3381
3382 2014-08-18 Keven Boell <keven.boell@intel.com>
3383 Joel Brobecker <brobecker@adacore.com>
3384
3385 * gdbtypes.h (struct main_type): Add field "data_location".
3386 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3387 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3388 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3389 a dynamic data location.
3390 (resolve_dynamic_type): Add DW_AT_data_location handling.
3391 (copy_recursive, copy_type): Copy the data_location information
3392 when present.
3393 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3394 * value.c (value_from_contents_and_address): Add
3395 DW_AT_data_location handling.
3396
3397 2014-08-18 Keven Boell <keven.boell@intel.com>
3398 Joel Brobecker <brobecker@adacore.com>
3399
3400 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3401 field "get_object_address".
3402 * dwarf2expr.c (execute_stack_op): Add handling for
3403 DW_OP_push_object_address.
3404 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3405 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3406 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3407 (dwarf_expr_get_obj_addr): New function.
3408 (dwarf_expr_ctx_funcs): Add get_object_address field.
3409 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3410 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3411 (dwarf2_evaluate_property): Add parameter "address". Use it.
3412 (needs_get_obj_addr): New function.
3413 (needs_frame_ctx_funcs): Add get_object_address field.
3414 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3415 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3416 (resolve_dynamic_array): Likewise.
3417
3418 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3419
3420 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3421 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3422 fixed value for records and unions for which some GNAT encodings
3423 are present.
3424
3425 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3426
3427 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3428 rewrite to avoid "else if" and "else" constructs. Should be
3429 a no-op in practice.
3430
3431 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3432
3433 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3434 of lexical block.
3435
3436 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3437
3438 PR c++/17132
3439 * eval.c: Update all calls to find_overload_match.
3440 * valarith.c: Likewise.
3441 (value_user_defined_cpp_op, value_user_defined_op): New
3442 argument NOSIDE. Update all callers.
3443 * valops.c (find_overload_match): New argument NOSIDE.
3444 * value.h (find_overload_match): Update signature.
3445
3446 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3447
3448 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3449 'items' methods instead of 'iteritems' method on dictionaries.
3450
3451 2014-08-15 Doug Evans <dje@google.com>
3452
3453 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3454 closer to use.
3455
3456 2014-08-15 Doug Evans <dje@google.com>
3457
3458 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3459
3460 2014-08-15 Doug Evans <dje@google.com>
3461
3462 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3463
3464 2014-08-15 Doug Evans <dje@google.com>
3465
3466 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3467 unused.
3468
3469 2014-08-15 Eli Zaretskii <eliz@gnu.org>
3470
3471 * dcache.h: Include target.h, to avoid compile time warnings.
3472
3473 2014-08-15 Joel Brobecker <brobecker@adacore.com>
3474
3475 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3476 frame_info" partial declaration.
3477 * gdbarch.h: Regenerate.
3478
3479 2014-08-15 Yao Qi <yao@codesourcery.com>
3480
3481 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3482 Add parameter 'decode_for_pst_p'. Callers update.
3483
3484 2014-08-13 Yao Qi <yao@codesourcery.com>
3485
3486 PR build/17104
3487 * configure.ac: Use local variable 'pos'.
3488 * configure: Regenerated.
3489
3490 2014-08-11 Doug Evans <dje@google.com>
3491
3492 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3493 message, it is redundant with "Reading symbols from ..." message.
3494
3495 2014-08-10 Doug Evans <xdje42@gmail.com>
3496
3497 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3498
3499 2014-08-09 Yao Qi <yao@codesourcery.com>
3500
3501 PR remote/9053
3502 * remote.c (remote_xfer_partial): Remove dead code.
3503
3504 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3505
3506 * ia64-linux-tdep.c: Include "regset.h".
3507 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3508 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3509 (ia64_linux_supply_fpregset): New function.
3510 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3511 (ia64_linux_regset_from_core_section): New function.
3512 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3513 method.
3514
3515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3516
3517 * m68klinux-tdep.c: Include "regset.h".
3518 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3519 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3520 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3521 (m68k_linux_regset_from_core_section): New function.
3522 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3523 method.
3524
3525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3526
3527 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3528 function. Move logic to...
3529 (tilegx_linux_regmap): ... this new register map.
3530 (tilegx_linux_regset): Refer to register map, replace supply
3531 method by regcache_supply_regset, and add collect method.
3532 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3533 TILEGX_FIRST_EASY_REGNUM.
3534
3535 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3536
3537 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3538 that calls regcache_supply_regset and handles the EPC register
3539 separately. Move main logic to...
3540 (score7_linux_gregmap): ... this new register map.
3541 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3542 (score7_linux_gregset): Refer to register map. Add collect method.
3543 (score7_linux_regset_from_core_section): Replace
3544 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3545 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3546 (struct regset): Delete unused forward declaraction.
3547 (struct pt_regs): Delete structure definition.
3548 (elf_gregset_t): Delete typedef.
3549
3550 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3551
3552 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3553 (nios2_core_regset): Add collect method.
3554
3555 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3556
3557 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3558 platform-independent and don't write to read-only input buffer.
3559 (m32r_linux_collect_gregset): New function.
3560 (m32r_linux_gregset): Add collect method.
3561
3562 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3563
3564 * hppa-linux-tdep.c (greg_map): Rename to...
3565 (hppa_linux_gregmap): ... this. Also convert to
3566 regcache_map_entry format.
3567 (hppa_linux_supply_regset): Delete function.
3568 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3569 (hppa_linux_fpregmap): ... this new register map.
3570 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3571 register map, replace supply method by regcache_supply_regset, and
3572 add collect method regcache_collect_regset.
3573
3574 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3575
3576 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3577 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3578 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3579 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3580 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3581 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3582 (frv_linux_supply_gregset): Replace main logic by call to
3583 regcache_supply_regset, but keep clearing gr32-gr63.
3584 (frv_linux_supply_fpregset): Delete function.
3585 (frv_linux_gregset): Refer to appropriate register map and add
3586 regcache_collect_regset as the collect method.
3587 (frv_linux_fpregset): Likewise. Also exchange the supply method
3588 by regcache_supply_regset.
3589
3590 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3591
3592 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3593 by call to alpha_supply_int_regs.
3594 (alpha_linux_collect_gregset): New function.
3595 (alpha_linux_supply_fpregset): Replace logic by call to
3596 alpha_supply_fp_regs.
3597 (alpha_linux_collect_fpregset): New function.
3598 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3599
3600 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3601
3602 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3603 by call to regcache_collect_regset.
3604 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3605 instead of aarch64_linux_supply_gregset/_fpregset.
3606 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3607 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3608 header file instead.
3609 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3610 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3611 functions. Move logic to ...
3612 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3613 register maps.
3614 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3615 refer to new register maps, replace *_regset_from_core by
3616 regcache_supply_regset, and also use regcache_collect_regset.
3617 * aarch64-linux-tdep.h: Include "regset.h".
3618 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3619 Delete prototypes.
3620 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3621 macros, moved from C source file.
3622 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3623 variable declarations.
3624
3625 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3626
3627 * s390-linux-nat.c: Include "regset.h".
3628 (regmap_gregset): Delete macro.
3629 (s390_64_regmap_gregset): New register map for
3630 regcache_supply/_collect_regset.
3631 (s390_64_gregset): New regset.
3632 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3633 (regmap_fpregset): Delete macro.
3634 (s390_native_supply, s390_native_collect): Delete functions.
3635 (supply_gregset, fill_gregset): Replace s390-specific regmap
3636 handling by a call to regcache_supply/_collect_regset.
3637 (supply_fpregset, fill_fpregset): Call regcache_supply/
3638 _collect_regset instead of s390_native_supply/_collect.
3639 (fetch_regset, store_regset): Likewise. Also change the last
3640 parameter to a regset instead of a regmap.
3641 (s390_linux_fetch_inferior_registers)
3642 (390_linux_store_inferior_registers): Adjust last parameter in
3643 calls to fetch_regset and store_regset.
3644 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3645 (s390_gregmap): ... this. Also make static const and convert to
3646 regcache_map_entry format.
3647 (s390x_regmap_gregset): Delete.
3648 (s390_regmap_fpregset): Rename to...
3649 (s390_fpregmap): ... this. Make static const and convert to
3650 regcache_map_entry format.
3651 (s390_regmap_upper, s390_regmap_last_break)
3652 (s390x_regmap_last_break, s390_regmap_system_call)
3653 (s390_regmap_tdb): Likewise.
3654 (s390_supply_regset, s390_collect_regset): Remove functions.
3655 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3656 s390_supply_regset.
3657 (s390_gregset, s390_fpregset, s390_upper_regset)
3658 (s390_last_break_regset, s390x_last_break_regset)
3659 (s390_system_call_regset, s390_tdb_regset): Make global and
3660 replace s390_supply/_collect_regset by regcache_supply/
3661 _collect_regset.
3662 (s390x_gregset): Delete.
3663 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3664 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3665 (s390_regmap_fpregset, s390_regmap_last_break)
3666 (s390x_regmap_last_break, s390_regmap_system_call)
3667 (s390_regmap_tdb): Delete global variable declarations.
3668 (s390_gregset, s390_fpregset, s390_last_break_regset)
3669 (s390x_last_break_regset, s390_system_call_regset)
3670 (s390_tdb_regset): New global variable declarations.
3671
3672 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3673
3674 * regcache.c: Include "regset.h".
3675 (regcache_transfer_regset): New local function.
3676 (regcache_supply_regset, regcache_collect_regset): New functions.
3677 * regcache.h (struct regcache_map_entry): New structure.
3678 (REGCACHE_MAP_SKIP): New enum value.
3679 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3680
3681 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3682
3683 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3684 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3685 (ppc_linux_collect_gregset ): Likewise.
3686 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3687 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3688 (ppc_collect_vrregset): Likewise.
3689 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3690 Likewise.
3691
3692 2014-08-07 Yao Qi <yao@codesourcery.com>
3693
3694 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3695 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3696 * remote.c (remote_read_bytes): Likewise.
3697
3698 2014-08-07 Yao Qi <yao@codesourcery.com>
3699
3700 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3701
3702 2014-08-07 Yao Qi <yao@codesourcery.com>
3703
3704 PR remote/17230
3705 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3706 TARGET_XFER_OK instead of 0.
3707
3708 2014-08-07 Gary Benson <gbenson@redhat.com>
3709
3710 * common/common-defs.h: Include errno.h.
3711 * defs.h: Do not include errno.h.
3712 * ada-typeprint.c: Likewise.
3713 * c-typeprint.c: Likewise.
3714 * core-regset.c: Likewise.
3715 * corefile.c: Likewise.
3716 * corelow.c: Likewise.
3717 * event-loop.c: Likewise.
3718 * f-typeprint.c: Likewise.
3719 * gnu-nat.c: Likewise.
3720 * go32-nat.c: Likewise.
3721 * i386gnu-nat.c: Likewise.
3722 * m2-typeprint.c: Likewise.
3723 * nat/linux-btrace.c: Likewise.
3724 * p-typeprint.c: Likewise.
3725 * procfs.c: Likewise.
3726 * remote-sim.c: Likewise.
3727 * rs6000-nat.c: Likewise.
3728 * target.c: Likewise.
3729 * typeprint.c: Likewise.
3730 * ui-file.c: Likewise.
3731 * valops.c: Likewise.
3732 * valprint.c: Likewise.
3733
3734 2014-08-07 Gary Benson <gbenson@redhat.com>
3735
3736 * common/common-defs.h: Include string.h.
3737 * aarch64-tdep.c: Do not include string.h.
3738 * ada-exp.y: Likewise.
3739 * ada-lang.c: Likewise.
3740 * ada-lex.l: Likewise.
3741 * ada-typeprint.c: Likewise.
3742 * ada-valprint.c: Likewise.
3743 * aix-thread.c: Likewise.
3744 * alpha-linux-tdep.c: Likewise.
3745 * alpha-mdebug-tdep.c: Likewise.
3746 * alpha-nat.c: Likewise.
3747 * alpha-osf1-tdep.c: Likewise.
3748 * alpha-tdep.c: Likewise.
3749 * alphanbsd-tdep.c: Likewise.
3750 * amd64-dicos-tdep.c: Likewise.
3751 * amd64-linux-tdep.c: Likewise.
3752 * amd64-nat.c: Likewise.
3753 * amd64-sol2-tdep.c: Likewise.
3754 * amd64fbsd-tdep.c: Likewise.
3755 * amd64obsd-tdep.c: Likewise.
3756 * arch-utils.c: Likewise.
3757 * arm-linux-nat.c: Likewise.
3758 * arm-linux-tdep.c: Likewise.
3759 * arm-tdep.c: Likewise.
3760 * arm-wince-tdep.c: Likewise.
3761 * armbsd-tdep.c: Likewise.
3762 * armnbsd-nat.c: Likewise.
3763 * armnbsd-tdep.c: Likewise.
3764 * armobsd-tdep.c: Likewise.
3765 * avr-tdep.c: Likewise.
3766 * ax-gdb.c: Likewise.
3767 * ax-general.c: Likewise.
3768 * bcache.c: Likewise.
3769 * bfin-tdep.c: Likewise.
3770 * breakpoint.c: Likewise.
3771 * build-id.c: Likewise.
3772 * buildsym.c: Likewise.
3773 * c-exp.y: Likewise.
3774 * c-lang.c: Likewise.
3775 * c-typeprint.c: Likewise.
3776 * c-valprint.c: Likewise.
3777 * charset.c: Likewise.
3778 * cli-out.c: Likewise.
3779 * cli/cli-cmds.c: Likewise.
3780 * cli/cli-decode.c: Likewise.
3781 * cli/cli-dump.c: Likewise.
3782 * cli/cli-interp.c: Likewise.
3783 * cli/cli-logging.c: Likewise.
3784 * cli/cli-script.c: Likewise.
3785 * cli/cli-setshow.c: Likewise.
3786 * cli/cli-utils.c: Likewise.
3787 * coffread.c: Likewise.
3788 * common/agent.c: Likewise.
3789 * common/buffer.c: Likewise.
3790 * common/buffer.h: Likewise.
3791 * common/common-utils.c: Likewise.
3792 * common/filestuff.c: Likewise.
3793 * common/filestuff.c: Likewise.
3794 * common/format.c: Likewise.
3795 * common/print-utils.c: Likewise.
3796 * common/rsp-low.c: Likewise.
3797 * common/signals.c: Likewise.
3798 * common/vec.h: Likewise.
3799 * common/xml-utils.c: Likewise.
3800 * core-regset.c: Likewise.
3801 * corefile.c: Likewise.
3802 * corelow.c: Likewise.
3803 * cp-abi.c: Likewise.
3804 * cp-name-parser.y: Likewise.
3805 * cp-support.c: Likewise.
3806 * cp-valprint.c: Likewise.
3807 * cris-tdep.c: Likewise.
3808 * d-exp.y: Likewise.
3809 * darwin-nat.c: Likewise.
3810 * dbxread.c: Likewise.
3811 * dcache.c: Likewise.
3812 * demangle.c: Likewise.
3813 * dicos-tdep.c: Likewise.
3814 * disasm.c: Likewise.
3815 * doublest.c: Likewise.
3816 * dsrec.c: Likewise.
3817 * dummy-frame.c: Likewise.
3818 * dwarf2-frame.c: Likewise.
3819 * dwarf2loc.c: Likewise.
3820 * dwarf2read.c: Likewise.
3821 * elfread.c: Likewise.
3822 * environ.c: Likewise.
3823 * eval.c: Likewise.
3824 * event-loop.c: Likewise.
3825 * exceptions.c: Likewise.
3826 * exec.c: Likewise.
3827 * expprint.c: Likewise.
3828 * f-exp.y: Likewise.
3829 * f-lang.c: Likewise.
3830 * f-typeprint.c: Likewise.
3831 * f-valprint.c: Likewise.
3832 * fbsd-nat.c: Likewise.
3833 * findcmd.c: Likewise.
3834 * findvar.c: Likewise.
3835 * fork-child.c: Likewise.
3836 * frame.c: Likewise.
3837 * frv-linux-tdep.c: Likewise.
3838 * frv-tdep.c: Likewise.
3839 * gdb.c: Likewise.
3840 * gdb_bfd.c: Likewise.
3841 * gdbarch.c: Likewise.
3842 * gdbarch.sh: Likewise.
3843 * gdbtypes.c: Likewise.
3844 * gnu-nat.c: Likewise.
3845 * gnu-v2-abi.c: Likewise.
3846 * gnu-v3-abi.c: Likewise.
3847 * go-exp.y: Likewise.
3848 * go-lang.c: Likewise.
3849 * go32-nat.c: Likewise.
3850 * guile/guile.c: Likewise.
3851 * guile/scm-auto-load.c: Likewise.
3852 * hppa-hpux-tdep.c: Likewise.
3853 * hppa-linux-nat.c: Likewise.
3854 * hppanbsd-tdep.c: Likewise.
3855 * hppaobsd-tdep.c: Likewise.
3856 * i386-cygwin-tdep.c: Likewise.
3857 * i386-dicos-tdep.c: Likewise.
3858 * i386-linux-tdep.c: Likewise.
3859 * i386-nto-tdep.c: Likewise.
3860 * i386-sol2-tdep.c: Likewise.
3861 * i386-tdep.c: Likewise.
3862 * i386bsd-tdep.c: Likewise.
3863 * i386gnu-nat.c: Likewise.
3864 * i386nbsd-tdep.c: Likewise.
3865 * i386obsd-tdep.c: Likewise.
3866 * i387-tdep.c: Likewise.
3867 * ia64-libunwind-tdep.c: Likewise.
3868 * ia64-linux-nat.c: Likewise.
3869 * inf-child.c: Likewise.
3870 * inf-ptrace.c: Likewise.
3871 * inf-ttrace.c: Likewise.
3872 * infcall.c: Likewise.
3873 * infcmd.c: Likewise.
3874 * inflow.c: Likewise.
3875 * infrun.c: Likewise.
3876 * interps.c: Likewise.
3877 * iq2000-tdep.c: Likewise.
3878 * irix5-nat.c: Likewise.
3879 * jv-exp.y: Likewise.
3880 * jv-lang.c: Likewise.
3881 * jv-typeprint.c: Likewise.
3882 * jv-valprint.c: Likewise.
3883 * language.c: Likewise.
3884 * linux-fork.c: Likewise.
3885 * linux-nat.c: Likewise.
3886 * lm32-tdep.c: Likewise.
3887 * m2-exp.y: Likewise.
3888 * m2-typeprint.c: Likewise.
3889 * m32c-tdep.c: Likewise.
3890 * m32r-linux-nat.c: Likewise.
3891 * m32r-linux-tdep.c: Likewise.
3892 * m32r-rom.c: Likewise.
3893 * m32r-tdep.c: Likewise.
3894 * m68hc11-tdep.c: Likewise.
3895 * m68k-tdep.c: Likewise.
3896 * m68kbsd-tdep.c: Likewise.
3897 * m68klinux-nat.c: Likewise.
3898 * m68klinux-tdep.c: Likewise.
3899 * m88k-tdep.c: Likewise.
3900 * machoread.c: Likewise.
3901 * macrocmd.c: Likewise.
3902 * main.c: Likewise.
3903 * mdebugread.c: Likewise.
3904 * mem-break.c: Likewise.
3905 * memattr.c: Likewise.
3906 * memory-map.c: Likewise.
3907 * mep-tdep.c: Likewise.
3908 * mi/mi-cmd-break.c: Likewise.
3909 * mi/mi-cmd-disas.c: Likewise.
3910 * mi/mi-cmd-env.c: Likewise.
3911 * mi/mi-cmd-stack.c: Likewise.
3912 * mi/mi-cmd-var.c: Likewise.
3913 * mi/mi-cmds.c: Likewise.
3914 * mi/mi-console.c: Likewise.
3915 * mi/mi-getopt.c: Likewise.
3916 * mi/mi-interp.c: Likewise.
3917 * mi/mi-main.c: Likewise.
3918 * mi/mi-parse.c: Likewise.
3919 * microblaze-rom.c: Likewise.
3920 * microblaze-tdep.c: Likewise.
3921 * mingw-hdep.c: Likewise.
3922 * minidebug.c: Likewise.
3923 * minsyms.c: Likewise.
3924 * mips-irix-tdep.c: Likewise.
3925 * mips-linux-tdep.c: Likewise.
3926 * mips-tdep.c: Likewise.
3927 * mips64obsd-tdep.c: Likewise.
3928 * mipsnbsd-tdep.c: Likewise.
3929 * mipsread.c: Likewise.
3930 * mn10300-linux-tdep.c: Likewise.
3931 * mn10300-tdep.c: Likewise.
3932 * monitor.c: Likewise.
3933 * moxie-tdep.c: Likewise.
3934 * mt-tdep.c: Likewise.
3935 * nat/linux-btrace.c: Likewise.
3936 * nat/linux-osdata.c: Likewise.
3937 * nat/linux-procfs.c: Likewise.
3938 * nat/linux-ptrace.c: Likewise.
3939 * nat/linux-waitpid.c: Likewise.
3940 * nbsd-tdep.c: Likewise.
3941 * nios2-linux-tdep.c: Likewise.
3942 * nto-procfs.c: Likewise.
3943 * nto-tdep.c: Likewise.
3944 * objc-lang.c: Likewise.
3945 * objfiles.c: Likewise.
3946 * opencl-lang.c: Likewise.
3947 * osabi.c: Likewise.
3948 * osdata.c: Likewise.
3949 * p-exp.y: Likewise.
3950 * p-lang.c: Likewise.
3951 * p-typeprint.c: Likewise.
3952 * parse.c: Likewise.
3953 * posix-hdep.c: Likewise.
3954 * ppc-linux-nat.c: Likewise.
3955 * ppc-sysv-tdep.c: Likewise.
3956 * ppcfbsd-tdep.c: Likewise.
3957 * ppcnbsd-tdep.c: Likewise.
3958 * ppcobsd-tdep.c: Likewise.
3959 * printcmd.c: Likewise.
3960 * procfs.c: Likewise.
3961 * prologue-value.c: Likewise.
3962 * python/py-auto-load.c: Likewise.
3963 * python/py-gdb-readline.c: Likewise.
3964 * ravenscar-thread.c: Likewise.
3965 * regcache.c: Likewise.
3966 * registry.c: Likewise.
3967 * remote-fileio.c: Likewise.
3968 * remote-m32r-sdi.c: Likewise.
3969 * remote-mips.c: Likewise.
3970 * remote-notif.c: Likewise.
3971 * remote-sim.c: Likewise.
3972 * remote.c: Likewise.
3973 * reverse.c: Likewise.
3974 * rs6000-aix-tdep.c: Likewise.
3975 * ser-base.c: Likewise.
3976 * ser-go32.c: Likewise.
3977 * ser-mingw.c: Likewise.
3978 * ser-pipe.c: Likewise.
3979 * ser-tcp.c: Likewise.
3980 * ser-unix.c: Likewise.
3981 * serial.c: Likewise.
3982 * sh-tdep.c: Likewise.
3983 * sh64-tdep.c: Likewise.
3984 * shnbsd-tdep.c: Likewise.
3985 * skip.c: Likewise.
3986 * sol-thread.c: Likewise.
3987 * solib-dsbt.c: Likewise.
3988 * solib-frv.c: Likewise.
3989 * solib-osf.c: Likewise.
3990 * solib-som.c: Likewise.
3991 * solib-spu.c: Likewise.
3992 * solib-target.c: Likewise.
3993 * solib.c: Likewise.
3994 * somread.c: Likewise.
3995 * source.c: Likewise.
3996 * sparc-nat.c: Likewise.
3997 * sparc-sol2-tdep.c: Likewise.
3998 * sparc-tdep.c: Likewise.
3999 * sparc64-tdep.c: Likewise.
4000 * sparc64fbsd-tdep.c: Likewise.
4001 * sparc64nbsd-tdep.c: Likewise.
4002 * sparcnbsd-tdep.c: Likewise.
4003 * spu-linux-nat.c: Likewise.
4004 * spu-multiarch.c: Likewise.
4005 * spu-tdep.c: Likewise.
4006 * stabsread.c: Likewise.
4007 * stack.c: Likewise.
4008 * std-regs.c: Likewise.
4009 * symfile.c: Likewise.
4010 * symmisc.c: Likewise.
4011 * symtab.c: Likewise.
4012 * target.c: Likewise.
4013 * thread.c: Likewise.
4014 * tilegx-linux-nat.c: Likewise.
4015 * tilegx-tdep.c: Likewise.
4016 * top.c: Likewise.
4017 * tracepoint.c: Likewise.
4018 * tui/tui-command.c: Likewise.
4019 * tui/tui-data.c: Likewise.
4020 * tui/tui-disasm.c: Likewise.
4021 * tui/tui-file.c: Likewise.
4022 * tui/tui-layout.c: Likewise.
4023 * tui/tui-out.c: Likewise.
4024 * tui/tui-regs.c: Likewise.
4025 * tui/tui-source.c: Likewise.
4026 * tui/tui-stack.c: Likewise.
4027 * tui/tui-win.c: Likewise.
4028 * tui/tui-windata.c: Likewise.
4029 * tui/tui-winsource.c: Likewise.
4030 * typeprint.c: Likewise.
4031 * ui-file.c: Likewise.
4032 * ui-out.c: Likewise.
4033 * user-regs.c: Likewise.
4034 * utils.c: Likewise.
4035 * v850-tdep.c: Likewise.
4036 * valarith.c: Likewise.
4037 * valops.c: Likewise.
4038 * valprint.c: Likewise.
4039 * value.c: Likewise.
4040 * varobj.c: Likewise.
4041 * vax-tdep.c: Likewise.
4042 * vaxnbsd-tdep.c: Likewise.
4043 * vaxobsd-tdep.c: Likewise.
4044 * windows-nat.c: Likewise.
4045 * xcoffread.c: Likewise.
4046 * xml-support.c: Likewise.
4047 * xstormy16-tdep.c: Likewise.
4048 * xtensa-linux-nat.c: Likewise.
4049
4050 2014-08-07 Gary Benson <gbenson@redhat.com>
4051
4052 * common/common-defs.h: Include gdb_assert.h.
4053 * aarch64-tdep.c: Do not include gdb_assert.h.
4054 * addrmap.c: Likewise.
4055 * aix-thread.c: Likewise.
4056 * alpha-linux-tdep.c: Likewise.
4057 * alpha-mdebug-tdep.c: Likewise.
4058 * alphanbsd-tdep.c: Likewise.
4059 * amd64-nat.c: Likewise.
4060 * amd64-tdep.c: Likewise.
4061 * amd64bsd-nat.c: Likewise.
4062 * amd64fbsd-nat.c: Likewise.
4063 * amd64fbsd-tdep.c: Likewise.
4064 * amd64nbsd-nat.c: Likewise.
4065 * amd64nbsd-tdep.c: Likewise.
4066 * amd64obsd-nat.c: Likewise.
4067 * amd64obsd-tdep.c: Likewise.
4068 * arch-utils.c: Likewise.
4069 * arm-tdep.c: Likewise.
4070 * armbsd-tdep.c: Likewise.
4071 * auxv.c: Likewise.
4072 * bcache.c: Likewise.
4073 * bfin-tdep.c: Likewise.
4074 * blockframe.c: Likewise.
4075 * breakpoint.c: Likewise.
4076 * bsd-kvm.c: Likewise.
4077 * bsd-uthread.c: Likewise.
4078 * buildsym.c: Likewise.
4079 * c-exp.y: Likewise.
4080 * c-lang.c: Likewise.
4081 * charset.c: Likewise.
4082 * cleanups.c: Likewise.
4083 * cli-out.c: Likewise.
4084 * cli/cli-decode.c: Likewise.
4085 * cli/cli-dump.c: Likewise.
4086 * cli/cli-logging.c: Likewise.
4087 * cli/cli-script.c: Likewise.
4088 * cli/cli-utils.c: Likewise.
4089 * coffread.c: Likewise.
4090 * common/common-utils.c: Likewise.
4091 * common/queue.h: Likewise.
4092 * common/signals.c: Likewise.
4093 * common/vec.h: Likewise.
4094 * complaints.c: Likewise.
4095 * completer.c: Likewise.
4096 * corelow.c: Likewise.
4097 * cp-abi.c: Likewise.
4098 * cp-name-parser.y: Likewise.
4099 * cp-namespace.c: Likewise.
4100 * cp-support.c: Likewise.
4101 * cris-tdep.c: Likewise.
4102 * dbxread.c: Likewise.
4103 * dictionary.c: Likewise.
4104 * doublest.c: Likewise.
4105 * dsrec.c: Likewise.
4106 * dummy-frame.c: Likewise.
4107 * dwarf2-frame-tailcall.c: Likewise.
4108 * dwarf2-frame.c: Likewise.
4109 * dwarf2expr.c: Likewise.
4110 * dwarf2loc.c: Likewise.
4111 * dwarf2read.c: Likewise.
4112 * eval.c: Likewise.
4113 * event-loop.c: Likewise.
4114 * exceptions.c: Likewise.
4115 * expprint.c: Likewise.
4116 * f-valprint.c: Likewise.
4117 * fbsd-nat.c: Likewise.
4118 * findvar.c: Likewise.
4119 * frame-unwind.c: Likewise.
4120 * frame.c: Likewise.
4121 * frv-tdep.c: Likewise.
4122 * gcore.c: Likewise.
4123 * gdb-dlfcn.c: Likewise.
4124 * gdb_bfd.c: Likewise.
4125 * gdbarch.c: Likewise.
4126 * gdbarch.sh: Likewise.
4127 * gdbtypes.c: Likewise.
4128 * gnu-nat.c: Likewise.
4129 * gnu-v3-abi.c: Likewise.
4130 * go-lang.c: Likewise.
4131 * guile/scm-exception.c: Likewise.
4132 * guile/scm-gsmob.c: Likewise.
4133 * guile/scm-lazy-string.c: Likewise.
4134 * guile/scm-math.c: Likewise.
4135 * guile/scm-pretty-print.c: Likewise.
4136 * guile/scm-safe-call.c: Likewise.
4137 * guile/scm-utils.c: Likewise.
4138 * guile/scm-value.c: Likewise.
4139 * h8300-tdep.c: Likewise.
4140 * hppa-hpux-nat.c: Likewise.
4141 * hppa-tdep.c: Likewise.
4142 * hppanbsd-tdep.c: Likewise.
4143 * hppaobsd-tdep.c: Likewise.
4144 * i386-darwin-nat.c: Likewise.
4145 * i386-darwin-tdep.c: Likewise.
4146 * i386-nto-tdep.c: Likewise.
4147 * i386-tdep.c: Likewise.
4148 * i386bsd-nat.c: Likewise.
4149 * i386fbsd-tdep.c: Likewise.
4150 * i386gnu-nat.c: Likewise.
4151 * i386nbsd-tdep.c: Likewise.
4152 * i386obsd-tdep.c: Likewise.
4153 * i387-tdep.c: Likewise.
4154 * ia64-libunwind-tdep.c: Likewise.
4155 * ia64-tdep.c: Likewise.
4156 * inf-ptrace.c: Likewise.
4157 * inf-ttrace.c: Likewise.
4158 * infcall.c: Likewise.
4159 * infcmd.c: Likewise.
4160 * infrun.c: Likewise.
4161 * inline-frame.c: Likewise.
4162 * interps.c: Likewise.
4163 * jv-lang.c: Likewise.
4164 * jv-typeprint.c: Likewise.
4165 * linux-fork.c: Likewise.
4166 * linux-nat.c: Likewise.
4167 * linux-thread-db.c: Likewise.
4168 * m32c-tdep.c: Likewise.
4169 * m32r-linux-nat.c: Likewise.
4170 * m32r-tdep.c: Likewise.
4171 * m68k-tdep.c: Likewise.
4172 * m68kbsd-nat.c: Likewise.
4173 * m68kbsd-tdep.c: Likewise.
4174 * m88k-tdep.c: Likewise.
4175 * machoread.c: Likewise.
4176 * macroexp.c: Likewise.
4177 * macrotab.c: Likewise.
4178 * maint.c: Likewise.
4179 * mdebugread.c: Likewise.
4180 * memory-map.c: Likewise.
4181 * mep-tdep.c: Likewise.
4182 * mi/mi-common.c: Likewise.
4183 * microblaze-tdep.c: Likewise.
4184 * mingw-hdep.c: Likewise.
4185 * mips-linux-nat.c: Likewise.
4186 * mips-linux-tdep.c: Likewise.
4187 * mips-tdep.c: Likewise.
4188 * mips64obsd-tdep.c: Likewise.
4189 * mipsnbsd-tdep.c: Likewise.
4190 * mn10300-linux-tdep.c: Likewise.
4191 * mn10300-tdep.c: Likewise.
4192 * moxie-tdep.c: Likewise.
4193 * mt-tdep.c: Likewise.
4194 * nat/linux-btrace.c: Likewise.
4195 * nat/linux-osdata.c: Likewise.
4196 * nat/linux-ptrace.c: Likewise.
4197 * nat/mips-linux-watch.c: Likewise.
4198 * nios2-linux-tdep.c: Likewise.
4199 * nios2-tdep.c: Likewise.
4200 * objc-lang.c: Likewise.
4201 * objfiles.c: Likewise.
4202 * obsd-nat.c: Likewise.
4203 * opencl-lang.c: Likewise.
4204 * osabi.c: Likewise.
4205 * parse.c: Likewise.
4206 * ppc-linux-nat.c: Likewise.
4207 * ppc-sysv-tdep.c: Likewise.
4208 * ppcfbsd-nat.c: Likewise.
4209 * ppcfbsd-tdep.c: Likewise.
4210 * ppcnbsd-nat.c: Likewise.
4211 * ppcnbsd-tdep.c: Likewise.
4212 * ppcobsd-nat.c: Likewise.
4213 * ppcobsd-tdep.c: Likewise.
4214 * printcmd.c: Likewise.
4215 * procfs.c: Likewise.
4216 * prologue-value.c: Likewise.
4217 * psymtab.c: Likewise.
4218 * python/py-lazy-string.c: Likewise.
4219 * python/py-value.c: Likewise.
4220 * regcache.c: Likewise.
4221 * reggroups.c: Likewise.
4222 * registry.c: Likewise.
4223 * remote-sim.c: Likewise.
4224 * remote.c: Likewise.
4225 * rs6000-aix-tdep.c: Likewise.
4226 * rs6000-tdep.c: Likewise.
4227 * s390-linux-tdep.c: Likewise.
4228 * score-tdep.c: Likewise.
4229 * ser-base.c: Likewise.
4230 * ser-mingw.c: Likewise.
4231 * sh-tdep.c: Likewise.
4232 * sh64-tdep.c: Likewise.
4233 * solib-darwin.c: Likewise.
4234 * solib-spu.c: Likewise.
4235 * solib-svr4.c: Likewise.
4236 * source.c: Likewise.
4237 * sparc-nat.c: Likewise.
4238 * sparc-sol2-tdep.c: Likewise.
4239 * sparc-tdep.c: Likewise.
4240 * sparc64-sol2-tdep.c: Likewise.
4241 * sparc64-tdep.c: Likewise.
4242 * sparc64fbsd-tdep.c: Likewise.
4243 * sparc64nbsd-tdep.c: Likewise.
4244 * sparc64obsd-tdep.c: Likewise.
4245 * sparcnbsd-tdep.c: Likewise.
4246 * sparcobsd-tdep.c: Likewise.
4247 * spu-multiarch.c: Likewise.
4248 * spu-tdep.c: Likewise.
4249 * stabsread.c: Likewise.
4250 * stack.c: Likewise.
4251 * symfile.c: Likewise.
4252 * symtab.c: Likewise.
4253 * target-descriptions.c: Likewise.
4254 * target-memory.c: Likewise.
4255 * target.c: Likewise.
4256 * tic6x-linux-tdep.c: Likewise.
4257 * tic6x-tdep.c: Likewise.
4258 * tilegx-linux-nat.c: Likewise.
4259 * tilegx-tdep.c: Likewise.
4260 * top.c: Likewise.
4261 * tramp-frame.c: Likewise.
4262 * tui/tui-out.c: Likewise.
4263 * tui/tui-winsource.c: Likewise.
4264 * ui-out.c: Likewise.
4265 * user-regs.c: Likewise.
4266 * utils.c: Likewise.
4267 * v850-tdep.c: Likewise.
4268 * valops.c: Likewise.
4269 * value.c: Likewise.
4270 * varobj.c: Likewise.
4271 * vax-nat.c: Likewise.
4272 * xml-syscall.c: Likewise.
4273 * xml-tdesc.c: Likewise.
4274 * xstormy16-tdep.c: Likewise.
4275 * xtensa-linux-nat.c: Likewise.
4276 * xtensa-tdep.c: Likewise.
4277
4278 2014-08-07 Gary Benson <gbenson@redhat.com>
4279
4280 * common/common-defs.h: Include common-utils.h.
4281 * defs.h: Do not include common-utils.h.
4282 * common/gdb_assert.h: Likewise.
4283 * darwin-nat.h: Likewise.
4284 * nat/linux-btrace.c: Likewise.
4285 * target/waitstatus.h: Likewise.
4286
4287 2014-08-07 Gary Benson <gbenson@redhat.com>
4288
4289 * common/common-defs.h: Include ptid.h.
4290 * defs.h: Do not include ptid.h.
4291 * inferior.h: Likewise.
4292 * infrun.h: Likewise.
4293 * nat/linux-btrace.h: Likewise.
4294 * nat/linux-osdata.h: Likewise.
4295 * target/waitstatus.h: Likewise.
4296
4297 2014-08-07 Gary Benson <gbenson@redhat.com>
4298
4299 * common/common-defs.h: Include gdb_locale.h.
4300 * defs.h: Do not include gdb_locale.h.
4301
4302 2014-08-07 Gary Benson <gbenson@redhat.com>
4303
4304 * common/common-defs.h: Include gdb/signals.h.
4305 * defs.h: Do not include gdb/signals.h.
4306
4307 2014-08-07 Gary Benson <gbenson@redhat.com>
4308
4309 * common/common-defs.h: Include pathmax.h.
4310 * defs.h: Do not include pathmax.h.
4311
4312 2014-08-07 Gary Benson <gbenson@redhat.com>
4313
4314 * common/common-defs.h: Include libiberty.h.
4315 * defs.h: Do not include libiberty.h.
4316 * common/queue.h: Likewise.
4317 * cp-name-parser.y: Likewise.
4318 * mi/mi-cmd-catch.c: Likewise.
4319 * python/python.c: Likewise.
4320
4321 2014-08-07 Gary Benson <gbenson@redhat.com>
4322
4323 * common/common-defs.h: Include ansidecl.h.
4324 * defs.h: Do not include ansidecl.h.
4325 * common/buffer.h: Likewise.
4326 * common/common-utils.h: Likewise.
4327
4328 2014-08-07 Gary Benson <gbenson@redhat.com>
4329
4330 * common/common-defs.h: Include stddef.h.
4331 * defs.h: Do not include stddef.h.
4332 * common/common-utils.h: Likewise.
4333 * amd64fbsd-nat.c: Likewise.
4334 * bcache.c: Likewise.
4335 * charset.c: Likewise.
4336 * common/buffer.h: Likewise.
4337 * common/vec.h: Likewise.
4338 * i386bsd-nat.c: Likewise.
4339 * nat/linux-btrace.h: Likewise.
4340 * ppcfbsd-nat.c: Likewise.
4341 * ppcnbsd-tdep.h: Likewise.
4342 * ppcobsd-nat.c: Likewise.
4343 * ppcobsd-tdep.h: Likewise.
4344 * python/py-gdb-readline.c: Likewise.
4345
4346 2014-08-07 Gary Benson <gbenson@redhat.com>
4347
4348 * common/common-defs.h: Include stdarg.h.
4349 * defs.h: Do not include stdarg.h.
4350 * ada-lang.c: Likewise.
4351 * common/common-utils.h: Likewise.
4352 * guile/scm-string.c: Likewise.
4353 * guile/scm-utils.c: Likewise.
4354 * m32c-tdep.c: Likewise.
4355
4356 2014-08-07 Gary Benson <gbenson@redhat.com>
4357
4358 * common/common-defs.h: Include stdlib.h.
4359 * defs.h: Do not include stdlib.h.
4360 * addrmap.c: Likewise.
4361 * bcache.c: Likewise.
4362 * common/buffer.c: Likewise.
4363 * common/common-utils.c: Likewise.
4364 * cp-name-parser.y: Likewise.
4365 * go32-nat.c: Likewise.
4366 * mn10300-linux-tdep.c: Likewise.
4367 * nat/linux-osdata.c: Likewise.
4368 * tui/tui.c: Likewise.
4369 * windows-nat.c: Likewise.
4370
4371 2014-08-07 Gary Benson <gbenson@redhat.com>
4372
4373 * common/common-defs.h: Include stdio.h.
4374 * defs.h: Do not include stdio.h.
4375 * ada-lang.c: Likewise.
4376 * common/buffer.c: Likewise.
4377 * common/common-utils.c: Likewise.
4378 * cp-name-parser.y: Likewise.
4379 * gnu-nat.c: Likewise.
4380 * go32-nat.c: Likewise.
4381 * i386gnu-nat.c: Likewise.
4382 * proc-api.c: Likewise.
4383 * proc-events.c: Likewise.
4384 * proc-flags.c: Likewise.
4385 * proc-why.c: Likewise.
4386 * python/python-internal.h: Likewise.
4387 * target-memory.c: Likewise.
4388 * tui/tui-io.c: Likewise.
4389 * tui/tui.c: Likewise.
4390
4391 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4392
4393 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4394 (scan_dyntag_auxv): Same.
4395
4396 2014-08-06 Yao Qi <yao@codesourcery.com>
4397
4398 * amd64-linux-nat.c: Remove duplicated include
4399 "x86-linux-nat.h".
4400 * i386-linux-nat.c: Likewise.
4401
4402 2014-08-06 Yao Qi <yao@codesourcery.com>
4403
4404 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4405 operand" with "Special opcode" in comments.
4406
4407 2014-08-05 Gary Benson <gbenson@redhat.com>
4408
4409 * interps.c (initialize_interps): Remove prototype.
4410 (interpreter_initialized): Remove static global.
4411 (interp_add): Do not call initialize_interps.
4412 (initialize_interps): Remove function.
4413
4414 2014-08-05 Gary Benson <gbenson@redhat.com>
4415
4416 * utils.c (vwarning): Remove spurious va_end.
4417
4418 2014-08-05 Alan Modra <amodra@gmail.com>
4419
4420 * charset.c (convert_between_encodings): Cast result of obstack_base.
4421 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4422 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4423 (read_unwind_info): Use size_t for some locals.
4424 * jit.c (finalize_symtab): Likewise.
4425 * utils.c (hashtab_obstack_allocate): Likewise.
4426 * symmisc.c (print_objfile_statistics): Update format strings.
4427
4428 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4429
4430 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4431 (Changes in GDB 7.8): ... here.
4432
4433 2014-08-04 Tom Tromey <tromey@redhat.com>
4434
4435 * target.c (set_targetdebug): New function.
4436 (initialize_targets): Pass set_targetdebug when creating "set
4437 debug target".
4438
4439 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4440
4441 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4442 if detecting a variable-sized field that is not the last field.
4443 Fix struct type length computation.
4444
4445 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4446
4447 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4448 Add debug trace.
4449
4450 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4451
4452 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4453 Remove "+ 8" offset in computation of CHAIN_VMA.
4454
4455 2014-07-31 Doug Evans <dje@google.com>
4456
4457 * inflow.c (child_terminal_inferior): Add comment.
4458 (child_terminal_ours_for_output): Add comment.
4459 (child_terminal_ours): Add comment.
4460 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4461 (linux_nat_terminal_ours): Add comment.
4462
4463 2014-07-31 Gary Benson <gbenson@redhat.com>
4464
4465 * common/btrace-common.h: Do not include defs.h or server.h.
4466 * nat/mips-linux-watch.h: Likewise.
4467 * gdb-dlfcn.h: Do not include defs.h.
4468 * tracefile.h: Likewise.
4469
4470 2014-07-30 Roland McGrath <mcgrathr@google.com>
4471
4472 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4473
4474 2014-07-30 Tom Tromey <tromey@redhat.com>
4475
4476 * bsd-kvm.c (bsd_kvm_open): Constify.
4477 * corelow.c (core_open): Constify.
4478 * ctf.c (ctf_open): Constify.
4479 * dbug-rom.c (dbug_open): Constify.
4480 * exec.c (exec_open): Constify.
4481 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4482 * microblaze-rom.c (picobug_open): Constify.
4483 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4484 Constify.
4485 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4486 * record-btrace.c (record_btrace_open): Constify.
4487 * record-full.c (record_full_core_open_1, record_full_open_1)
4488 (record_full_open): Constify.
4489 * remote-m32r-sdi.c (m32r_open): Constify.
4490 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4491 (rockhopper_open, lsi_open): Constify.
4492 * remote-sim.c (gdbsim_open): Constify.
4493 * remote.c (remote_open, extended_remote_open, remote_open_1):
4494 Constify.
4495 * target.h (struct target_ops) <to_open>: Make "arg" const.
4496 * tracefile-tfile.c (tfile_open): Constify.
4497
4498 2014-07-30 Tom Tromey <tromey@redhat.com>
4499
4500 * breakpoint.c (map_breakpoint_numbers): Update.
4501 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4502 (get_number_const): New function.
4503 (get_number): Rewrite using get_number_const.
4504 (init_number_or_range): Make "string" const.
4505 (number_is_in_list): Make "list" const.
4506 * cli/cli-utils.h (get_number_const): Declare.
4507 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4508 (init_number_or_range, number_is_in_list): Update.
4509 * printcmd.c (map_display_numbers): Update.
4510 * value.c (value_from_history_ref): Constify.
4511 * value.h (value_from_history_ref): Update.
4512
4513 2014-07-30 Tom Tromey <tromey@redhat.com>
4514
4515 * corefile.c (hook_type, call_extra_exec_file_hooks)
4516 (specify_exec_file_hook): Constify.
4517 * exec.c (exec_file_attach): Make "filename" const.
4518 * gdbcore.h (deprecated_exec_file_display_hook)
4519 (specify_exec_file_hook, exec_file_attach): Constify.
4520 * main.c (captured_main): Use catch_command_errors_const.
4521
4522 2014-07-30 Tom Tromey <tromey@redhat.com>
4523
4524 * target.c (open_target): New function.
4525 (add_target_with_completer, add_deprecated_target_alias): Use
4526 set_cmd_sfunc, set_cmd_context.
4527 (debug_to_open): Remove.
4528 (setup_target_debug): Update.
4529
4530 2014-07-30 Yao Qi <yao@codesourcery.com>
4531
4532 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4533 comments.
4534 * parse.c (exp_iterate): Update comments.
4535
4536 2014-07-30 Gary Benson <gbenson@redhat.com>
4537
4538 * common/common-defs.h: New file.
4539 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4540 * defs.h: Include common-defs.h.
4541 Do not include config.h or build-gnulib/config.h.
4542
4543 2014-07-30 Gary Benson <gbenson@redhat.com>
4544
4545 * common/common-utils.h: Do not include config.h.
4546 * nat/linux-btrace.h: Likewise.
4547
4548 2014-07-30 Gary Benson <gbenson@redhat.com>
4549
4550 * btrace.c: Include defs.h.
4551 * common/ptid.c: Include defs.h or server.h as appropriate.
4552 * nat/mips-linux-watch.c: Likewise.
4553
4554 2014-07-29 Tom Tromey <tromey@redhat.com>
4555
4556 * target.c (target_is_pushed): Simplify.
4557
4558 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4559
4560 GDB 7.8 released.
4561
4562 2014-07-29 Yao Qi <yao@codesourcery.com>
4563
4564 PR gdb/17206
4565 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4566
4567 2014-07-28 Doug Evans <xdje42@gmail.com>
4568
4569 PR guile/17203
4570 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4571 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4572 parameters.
4573
4574 2014-07-28 Will Newton <will.newton@linaro.org>
4575
4576 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4577 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4578 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4579 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4580 (THUMB2_EABI_SYSCALL): Likewise.
4581 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4582 struct tramp_frame.
4583 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4584 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4585
4586 2014-07-27 Doug Evans <xdje42@gmail.com>
4587
4588 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4589
4590 2014-07-27 Doug Evans <xdje42@gmail.com>
4591
4592 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4593
4594 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4595 Doug Evans <xdje42@gmail.com>
4596
4597 PR guile/17146
4598 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4599 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4600 * configure.ac: Try to use guild to compile an scm file, if it fails
4601 then disable guile support.
4602 * configure: Regenerate.
4603 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4604 GUILE_FILE_LIST.
4605 (GUILE_COMPILED_FILES): New variable.
4606 (GUILE_FILES) Update.
4607 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4608 (stamp-guile): Compile scm files.
4609 * guile/guile.c (boot_guile_support): New function.
4610 (standard_throw_args_p): New function.
4611 (print_standard_throw_error, print_throw_error): New functions.
4612 (handle_boot_error): New function.
4613 (initialize_scheme_side): Rewrite to call boot_guile_support.
4614 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4615 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4616
4617 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4618 Doug Evans <xdje42@gmail.com>
4619
4620 PR guile/17146
4621 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4622 * guile/lib/gdb/support.scm: New file.
4623 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4624 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4625 All uses updated.
4626 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4627 All uses updated.
4628 (%assert-type): Ditto, and renamed to assert-type.
4629 (%exception-print-style): Delete.
4630
4631 2014-07-26 Doug Evans <xdje42@gmail.com>
4632
4633 PR build/17105
4634 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4635 * configure: Regenerate.
4636 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4637 PYTHON_FILES.
4638 (PYTHON_FILES): New variable.
4639 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4640 (GUILE_FILES): New variable.
4641 (stamp-python, install-python, uninstall-python): Handle empty
4642 file list.
4643 (stamp-guile, install-guile, uninstall-guile): Ditto.
4644
4645 2014-07-26 Doug Evans <xdje42@gmail.com>
4646
4647 PR guile/17177
4648 * guile/lib/gdb.scm (pretty-printers): Export.
4649 (set-pretty-printers!): Export.
4650 * guile/lib/gdb/printing.scm (gdb module): Update.
4651 (prepend-pretty-printer!, append-pretty-printer!): Update.
4652 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4653 (pretty_printer_list_var): Delete.
4654 (pretty_printer_list): New static global.
4655 (gdbscm_pretty_printers): New function.
4656 (gdbscm_set_pretty_printers_x): New function.
4657 (ppscm_find_pretty_printer_from_gdb): Update.
4658 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4659 (gdbscm_initialize_pretty_printers): Update.
4660
4661 2014-07-26 Doug Evans <xdje42@gmail.com>
4662
4663 PR 17185
4664 * configure.ac: Add check for header gc/gc.h.
4665 Add check for function setenv.
4666 * configure: Regenerate.
4667 * config.in: Regenerate.
4668 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4669
4670 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4671
4672 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4673 variation in gdbarch matching.
4674
4675 2014-07-25 Tom Tromey <tromey@redhat.com>
4676
4677 * exec.c (using_exec_ops): Remove.
4678 (exec_close_1): Update. Remove extraneous block, reindent.
4679 (add_target_sections): Use target_is_pushed.
4680
4681 2014-07-25 Pedro Alves <palves@redhat.com>
4682
4683 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4684 * monitor.c (monitor_create_inferior): Likewise.
4685 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4686 * remote-sim.c (gdbsim_create_inferior): Likewise.
4687 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4688 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4689 * windows-nat.c (do_initial_windows_stuff): Likewise.
4690
4691 2014-07-25 Pedro Alves <palves@redhat.com>
4692
4693 * NEWS: Mention signal passing and "signal" command changes.
4694 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4695 comment.
4696 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4697 call.
4698 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4699 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4700 (jump_command): Adjust clear_proceed_status call.
4701 (signal_command): Warn if other thread that are resumed have
4702 signals that will be delivered. Adjust clear_proceed_status call.
4703 (until_next_command, finish_command)
4704 (proceed_after_attach_callback, attach_command_post_wait)
4705 (attach_command): Adjust clear_proceed_status call.
4706 * infrun.c (proceed_after_vfork_done): Likewise.
4707 (proceed_after_attach_callback): Adjust comment.
4708 (clear_proceed_status_thread): Clear stop_signal if not in pass
4709 state.
4710 (clear_proceed_status_callback): Delete.
4711 (clear_proceed_status): New 'step' parameter. Only clear the
4712 proceed status of threads the command being prepared is about to
4713 resume.
4714 (proceed): If passed in an explicit signal, override stop_signal
4715 with it. Don't pass the last stop signal to the thread we're
4716 resuming.
4717 (init_wait_for_inferior): Adjust clear_proceed_status call.
4718 (switch_back_to_stepped_thread): Clear the signal if it should not
4719 be passed.
4720 * infrun.h (clear_proceed_status): New 'step' parameter.
4721 (user_visible_resume_ptid): Add comment.
4722 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4723 signal is in pass state.
4724 * remote.c (append_pending_thread_resumptions): Likewise.
4725 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4726
4727 2014-07-25 Tom Tromey <tromey@redhat.com>
4728
4729 * target.h (target_stopped_data_address)
4730 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4731 parentheses.
4732
4733 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4734
4735 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4736 comments.
4737 (avr_pointer_to_address): Likewise.
4738
4739 2014-07-24 Tom Tromey <tromey@redhat.com>
4740
4741 * monitor.c (compile_pattern): Update.
4742 * target.h (struct target_ops) <to_shortname, to_longname,
4743 to_doc>: Now const.
4744
4745 2014-07-24 Tom Tromey <tromey@redhat.com>
4746
4747 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4748 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4749 (add_info_alias, add_com): Make "doc" const.
4750 (print_doc_line): Make "str" const.
4751 (delete_cmd): Update.
4752 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4753 (print_doc_line): Update.
4754 * cli/cli-script.c (document_command): Update.
4755 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4756 (add_com, add_info, add_info_alias): Update.
4757 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4758 * python/py-cmd.c (cmdpy_destroyer): Update.
4759
4760 2014-07-24 Tom Tromey <tromey@redhat.com>
4761
4762 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4763 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4764 (help_cmd_list): Constify.
4765 (lookup_cmd): Update.
4766 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4767 const.
4768 (help_cmd_list, apropos_cmd): Update.
4769 * cli/cli-script.c (show_user): Update.
4770 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4771 * cli/cli-setshow.h (cmd_show_list): Update.
4772 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4773 (cmd_show_list): Update.
4774 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4775 * python/py-cmd.c (cmdpy_destroyer): Update.
4776
4777 2014-07-24 Tom Tromey <tromey@redhat.com>
4778
4779 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4780 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4781 const.
4782 * command.h (deprecate_cmd): Update.
4783 * maint.c (maintenance_do_deprecate): Add casts.
4784
4785 2014-07-24 Tom Tromey <tromey@redhat.com>
4786
4787 * cli/cli-decode.c (help_cmd): Make parameter "const".
4788 * cli/cli-decode.h (help_cmd): Update.
4789
4790 2014-07-24 Tom Tromey <tromey@redhat.com>
4791
4792 * stack.c (up_silently_base, down_silently_base): Make argument
4793 const.
4794
4795 2014-07-24 Tom Tromey <tromey@redhat.com>
4796
4797 * solib.c (solib_add): Make "pattern" const.
4798 * solib.h (solib_add): Update.
4799
4800 2014-07-24 Tom Tromey <tromey@redhat.com>
4801
4802 * remote.c (remote_serial_open, print_packet, putpkt)
4803 (putpkt_binary): Constify.
4804 * remote.h (putpkt): Update.
4805
4806 2014-07-24 Tom Tromey <tromey@redhat.com>
4807
4808 * monitor.c (monitor_open): Make "args" const.
4809 * monitor.h (monitor_open): Update.
4810
4811 2014-07-24 Tom Tromey <tromey@redhat.com>
4812
4813 * maint.c (match_bfd_flags): Make "string" const.
4814 (print_bfd_section_info): Remove casts.
4815 (print_objfile_section_info): Make "string" const.
4816
4817 2014-07-24 Tom Tromey <tromey@redhat.com>
4818
4819 * inf-child.c (inf_child_open_target): Make "arg" const.
4820 * inf-child.h (inf_child_open_target): Update.
4821
4822 2014-07-24 Tom Tromey <tromey@redhat.com>
4823
4824 * environ.c (unset_in_environ): Make "var" const.
4825 * environ.h (unset_in_environ): Update.
4826
4827 2014-07-24 Tom Tromey <tromey@redhat.com>
4828
4829 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4830 Make "cmd" const.
4831 (scan_filename_with_cleanup): Likewise.
4832 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4833 Make arguments const.
4834 (restore_command): Update.
4835
4836 2014-07-24 Pedro Alves <palves@redhat.com>
4837
4838 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4839
4840 2014-07-24 Tom Tromey <tromey@redhat.com>
4841 Gary Benson <gbenson@redhat.com>
4842
4843 * nat/linux-ptrace.c (additional_flags): New global.
4844 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4845 additional_flags; don't check GDBSERVER.
4846 (linux_ptrace_set_additional_flags): New function.
4847 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4848 Declare.
4849 * linux-nat.c (_initialize_linux_nat): Call
4850 linux_ptrace_set_additional_flags.
4851
4852 2014-07-24 Tom Tromey <tromey@redhat.com>
4853
4854 * make-target-delegates (munge_type, write_debugmethod): New
4855 functions.
4856 (debug_names): New global.
4857 ($TARGET_DEBUG_PRINTER): New global.
4858 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4859 name.
4860 Write debug methods. Generate init_debug_target.
4861 * target-debug.h: New file.
4862 * target-delegates.c: Rebuild.
4863 * target.c: Include target-debug.h.
4864 (debug_target): Hoist definition.
4865 (target_kill, target_get_section_table, target_memory_map)
4866 (target_flash_erase, target_flash_done, target_detach)
4867 (target_disconnect, target_wait, target_resume)
4868 (target_pass_signals, target_program_signals, target_follow_fork)
4869 (target_mourn_inferior, target_search_memory)
4870 (target_thread_address_space, target_close)
4871 (target_find_new_threads, target_core_of_thread)
4872 (target_verify_memory, target_insert_mask_watchpoint)
4873 (target_remove_mask_watchpoint): Remove targetdebug code.
4874 (debug_to_post_attach, debug_to_prepare_to_store)
4875 (debug_to_files_info, debug_to_insert_breakpoint)
4876 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4877 (debug_to_region_ok_for_hw_watchpoint)
4878 (debug_to_can_accel_watchpoint_condition)
4879 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4880 (debug_to_watchpoint_addr_within_range)
4881 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4882 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4883 (debug_to_terminal_init, debug_to_terminal_inferior)
4884 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4885 (debug_to_terminal_save_ours, debug_to_terminal_info)
4886 (debug_to_load, debug_to_post_startup_inferior)
4887 (debug_to_insert_fork_catchpoint)
4888 (debug_to_remove_fork_catchpoint)
4889 (debug_to_insert_vfork_catchpoint)
4890 (debug_to_remove_vfork_catchpoint)
4891 (debug_to_insert_exec_catchpoint)
4892 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4893 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4894 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4895 (setup_target_debug): Call init_debug_target.
4896 * target.h (TARGET_DEBUG_PRINTER): New macro.
4897 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4898 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4899
4900 2014-07-24 Gary Benson <gbenson@redhat.com>
4901
4902 * exceptions.h (throw_vfatal): Renamed to...
4903 (throw_vquit): New declaration.
4904 (throw_quit): Likewise.
4905 * exceptions.c (throw_vfatal): Renamed to...
4906 (throw_vquit): New function.
4907 (throw_quit): Likewise.
4908 (throw_error): Call throw_verror rather than throw_it.
4909 * utils.h (vfatal): Removed.
4910 (fatal): Likewise.
4911 * utils.c (vfatal): Removed.
4912 (fatal): Likewise.
4913 (internal_verror): Replaced call to fatal with call to throw_quit.
4914 (quit): Replaced calls to fatal with calls to throw_quit.
4915
4916 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4917
4918 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4919 target_read_code.
4920
4921 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4922
4923 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4924 less than zero in conditional expression.
4925
4926 2014-07-23 Tom Tromey <tromey@redhat.com>
4927
4928 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4929 ($INTRO_PART): Don't match whitespace.
4930 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4931 argument matching.
4932 ($METHOD): Add $METHOD_TRAILER.
4933 (trim): Rewrite.
4934 (scan_target_h): New sub.
4935 Change main loop not to collect state.
4936 * target-delegates.c: Rebuild.
4937
4938 2014-07-23 Gary Benson <gbenson@redhat.com>
4939
4940 * cp-support.c (gdb_demangle): Fix build on systems without
4941 sigaltstack.
4942
4943 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4946 for reference entry value target data value.
4947
4948 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4949
4950 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4951 value_available_contents_eq.
4952
4953 2014-07-22 Pedro Alves <palves@redhat.com>
4954
4955 * value.c (allocate_optimized_out_value): Don't mark value as
4956 non-lazy.
4957
4958 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4959
4960 * MAINTAINERS (Write After Approval): Update my email address.
4961
4962 2014-07-20 Doug Evans <dje@google.com>
4963
4964 PR server/17147
4965 * remote.c (putpkt_binary): Add text to error message.
4966
4967 2014-07-20 Yao Qi <yao@codesourcery.com>
4968
4969 * eval.c: Remove "Chill" from comments.
4970 * gdbtypes.h: Likewise.
4971 * symtab.h: Likewise.
4972
4973 2014-07-20 Yao Qi <yao@codesourcery.com>
4974
4975 * std-operator.def: Update comments to TERNOP_SLICE.
4976
4977 2014-07-20 Yao Qi <yao@codesourcery.com>
4978
4979 * std-operator.def: Remove BINOP_RANGE.
4980 * breakpoint.c (watchpoint_exp_is_const): Update.
4981 * expprint.c (dump_subexp_body_standard): Likewise.
4982 * eval.c (init_array_element): Remove dead code.
4983 (evaluate_subexp_standard): Likewise.
4984
4985 2014-07-20 Yao Qi <yao@codesourcery.com>
4986
4987 * std-operator.def: Remove BINOP_IN.
4988 * breakpoint.c (watchpoint_exp_is_const): Update.
4989 * eval.c (evaluate_subexp_standard): Likewise.
4990 * expprint.c (dump_subexp_body_standard): Likewise.
4991
4992 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4993
4994 * microblaze-tdep.c (microblaze_register_names): Add
4995 the rshr and rslr register names.
4996 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4997 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4998 Use of tdesc_numbered_register. Use of
4999 microblaze_register_g_packet_guesses. Use of
5000 tdesc_use_registers. Use of set_gdbarch_register_type.
5001 (microblaze_register_g_packet_guesses): New.
5002 * microblaze-tdep.h (microblaze_reg_num): Add
5003 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5004 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5005 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5006 * features/microblaze-core.xml: New file.
5007 * features/microblaze-stack-protect.xml: New file.
5008 * features/microblaze-with-stack-protect.c: New file.
5009 * features/microblaze-with-stack-protect.xml: New file.
5010 * features/microblaze.xml: New file.
5011 * features/microblaze.c: New file.
5012 * features/Makefile (microblaze-with-stack-protect): Add
5013 microblaze-with-stack-protect microblaze and microblaze-expedite.
5014 * regformats/microblaze-with-stack-protect.dat: New file.
5015 * regformats/microblaze.dat: New file.
5016 * doc/gdb.texinfo (MicroBlaze Features): Added.
5017
5018 2014-07-18 Tom Tromey <tromey@redhat.com>
5019
5020 * exec.c (exec_ops): Now static.
5021 * exec.h (exec_ops): Don't declare.
5022
5023 2014-07-18 Tom Tromey <tromey@redhat.com>
5024
5025 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5026 to find_target_beneath.
5027 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5028 find_target_beneath.
5029 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5030
5031 2014-07-18 Tom Tromey <tromey@redhat.com>
5032
5033 PR gdb/17130:
5034 * utils.c (quit): Use target_supports_terminal_ours.
5035 * target.h (target_supports_terminal_ours): Declare.
5036 * target.c (target_supports_delete_record): Don't check
5037 to_delete_record against NULL.
5038 (target_supports_terminal_ours): New function.
5039
5040 2014-07-18 Tom Tromey <tromey@redhat.com>
5041
5042 PR gdb/17130:
5043 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5044 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5045 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5046 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5047 * windows-nat.c (windows_xfer_partial): Always delegate.
5048 * record-btrace.c (record_btrace_xfer_partial): Simplify
5049 delegation.
5050 (record_btrace_fetch_registers, record_btrace_store_registers)
5051 (record_btrace_prepare_to_store, record_btrace_resume)
5052 (record_btrace_wait, record_btrace_find_new_threads)
5053 (record_btrace_thread_alive): Likewise.
5054 * procfs.c (procfs_xfer_partial): Always delegate.
5055 * corelow.c (core_xfer_partial): Always delegate.
5056 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5057
5058 2014-07-18 Tom Tromey <tromey@redhat.com>
5059
5060 * exec.c (exec_make_note_section): Move earlier.
5061
5062 2014-07-17 Doug Evans <dje@google.com>
5063
5064 PR gdb/17170
5065 * maint.c (count_symtabs_and_blocks): Handle NULL
5066 current_program_space.
5067 (report_command_stats): Check global enabled flag in addition to
5068 recorded enabled flag.
5069 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5070
5071 2014-07-16 Pedro Alves <palves@redhat.com>
5072
5073 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5074
5075 2014-07-16 Tom Tromey <tromey@redhat.com>
5076
5077 * target.h (struct target_ops) <to_delete_record>: Reformat
5078 comment.
5079
5080 2014-07-16 Tom Tromey <tromey@redhat.com>
5081
5082 * target-delegates.c: Rebuild.
5083
5084 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5085
5086 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5087 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5088 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5089 (avr_pointer_to_address): Likewise.
5090 (avr_address_class_type_flags): New function.
5091 (avr_address_class_type_flags_to_name): Likewise.
5092 (avr_address_class_name_to_type_flags): Likewise.
5093 (avr_gdbarch_init): Set address_class_type_flags,
5094 address_class_type_flags_to_name and
5095 address_class_name_to_type_flags.
5096
5097 2014-07-15 Pedro Alves <palves@redhat.com>
5098
5099 * linux-nat.c (kill_callback): Save errno and work with saved
5100 copy.
5101
5102 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5103
5104 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5105
5106 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5107
5108 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5109 breakpoint support correctly.
5110
5111 2014-07-14 Pedro Alves <palves@redhat.com>
5112
5113 * utils.c (prompt_for_continue): Call target_terminal_ours.
5114
5115 2014-07-14 Pedro Alves <palves@redhat.com>
5116
5117 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5118 catch_errors. Don't re-enable stdin or notify observers where,
5119 and rethrow error.
5120 (fetch_inferior_event_wrapper): Delete.
5121
5122 2014-07-14 Pedro Alves <palves@redhat.com>
5123
5124 PR gdb/17072
5125 * top.c: Include "inf-loop.h".
5126 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5127 field.
5128 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5129 was async before.
5130 (gdb_readline_wrapper): Store whether the target is async, and
5131 make it sync.
5132
5133 2014-07-14 Pedro Alves <palves@redhat.com>
5134
5135 PR gdb/17072
5136 * top.c (gdb_readline_wrapper_line): Tweak comment.
5137 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5138 the input handler callback.
5139
5140 2014-07-14 Pedro Alves <palves@redhat.com>
5141
5142 PR gdb/17072
5143 * main.c: Include event-top.h.
5144 (handle_command_errors): New function.
5145 (catch_command_errors, catch_command_errors_const): Use it.
5146
5147 2014-07-14 Pedro Alves <palves@redhat.com>
5148
5149 * exceptions.c (catch_command_errors, catch_command_errors_const):
5150 Moved to main.c.
5151 * exceptions.h (catch_command_errors_ftype)
5152 (catch_command_errors_const_ftype): Moved to main.c.
5153 (catch_command_errors, catch_command_errors_const): Delete
5154 declarations.
5155 * main.c (catch_command_errors_ftype)
5156 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5157 (catch_command_errors, catch_command_errors_const)): Moved here
5158 from exceptions.c and make static.
5159
5160 2014-07-14 Pedro Alves <palves@redhat.com>
5161
5162 * exceptions.c (print_any_exception): Delete.
5163 (catch_exceptions_with_msg): Use exception_print instead of
5164 print_any_exception.
5165 (catch_errors): Use exception_fprintf instead of
5166 print_any_exception.
5167 (catch_command_errors, catch_command_errors_const): Use
5168 exception_print instead of print_any_exception.
5169
5170 2014-07-14 Pedro Alves <palves@redhat.com>
5171
5172 * infcall.c (run_inferior_call): Set 'sync_execution' while
5173 running the inferior call.
5174
5175 2014-07-14 Pedro Alves <palves@redhat.com>
5176
5177 * value.c (value_contents_equal): Delete function.
5178 * value.h (value_contents_equal): Delete declaration.
5179
5180 2014-07-14 Tom Tromey <tromey@redhat.com>
5181
5182 PR exp/17106:
5183 * gdbtypes.c (is_dynamic_type_internal): New function, from
5184 is_dynamic_type.
5185 (is_dynamic_type): Rewrite.
5186 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5187 (resolve_dynamic_struct): Likewise.
5188 (resolve_dynamic_type_internal): New function, from
5189 resolve_dynamic_type.
5190 (resolve_dynamic_type): Rewrite.
5191
5192 2014-07-14 Tom Tromey <tromey@redhat.com>
5193
5194 * target.c (target_require_runnable): Also check record_stratum.
5195 Update comment.
5196
5197 2014-07-11 Yao Qi <yao@codesourcery.com>
5198
5199 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5200 thumb_instruction_restores_sp return true.
5201
5202 2014-07-11 Yao Qi <yao@codesourcery.com>
5203
5204 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5205 (thumb_in_function_epilogue_p): Call
5206 thumb_instruction_restores_sp.
5207
5208 2014-07-11 Yao Qi <yao@codesourcery.com>
5209
5210 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5211 'add sp, #imm'.
5212 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5213
5214 2014-07-11 Gary Benson <gbenson@redhat.com>
5215
5216 * amd64-linux-nat.c (gdbcore.h): Remove include.
5217 (regset.h): Likewise.
5218 (nat/linux-btrace.h): Likewise.
5219 (btrace.h): Likewise.
5220 (gdb_assert.h): Likewise.
5221 (string.h): Likewise.
5222 (sys/uio.h): Likewise.
5223 (sys/debugreg.h): Likewise.
5224 (sys/syscall.h): Likewise.
5225 (sys/procfs.h): Likewise.
5226 (sys/user.h): Likewise.
5227 (asm/ptrace.h): Likewise.
5228 (i386-nat.h): Likewise.
5229 * i386-linux-nat.c (i386-nat.h): Likewise.
5230 (regset.h): Likewise.
5231 (target.h): Likewise.
5232 (linux-nat.h): Likewise.
5233 (nat/linux-btrace.h): Likewise.
5234 (btrace.h): Likewise.
5235 (gdb_assert.h): Likewise.
5236 (string.h): Likewise.
5237 (sys/uio.h): Likewise.
5238 (sys/user.h): Likewise.
5239 (sys/procfs.h): Likewise.
5240 (sys/reg.h): Likewise.
5241 (sys/debugreg.h): Likewise.
5242 (ORIG_EAX): Remove definition.
5243
5244 2014-07-11 Gary Benson <gbenson@redhat.com>
5245
5246 * i386-linux-nat.h: New file.
5247 * x86-linux-nat.h: Likewise.
5248 * x86-linux-nat.c: Likewise.
5249 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5250 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5251 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5252 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5253 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5254 (PTRACE_SETREGSET): Likewise.
5255 (arch_lwp_info): Now in x86-linux-nat.c.
5256 (have_ptrace_getregset): Now in x86-linux-nat.h.
5257 (x86_linux_dr_get): Now in x86-linux-nat.c.
5258 (x86_linux_dr_set): Likewise.
5259 (x86_linux_dr_get_addr): Likewise.
5260 (x86_linux_dr_get_control): Likewise.
5261 (x86_linux_dr_get_status): Likewise.
5262 (update_debug_registers_callback): Likewise.
5263 (x86_linux_dr_set_control): Likewise.
5264 (x86_linux_dr_set_addr): Likewise.
5265 (x86_linux_prepare_to_resume): Likewise.
5266 (x86_linux_new_thread): Likewise.
5267 (x86_linux_new_fork): Likewise.
5268 (x86_linux_get_thread_area): Likewise.
5269 (super_post_startup_inferior): Likewise.
5270 (x86_linux_child_post_startup_inferior): Likewise.
5271 (AMD64_LINUX_USER64_CS): Likewise.
5272 (AMD64_LINUX_X32_DS): Likewise.
5273 (x86_linux_read_description): Likewise.
5274 (x86_linux_enable_btrace): Likewise.
5275 (x86_linux_disable_btrace): Likewise.
5276 (x86_linux_teardown_btrace): Likewise.
5277 (x86_linux_read_btrace): Likewise.
5278 (x86_linux_create_target): Likewise.
5279 (x86_linux_add_target): Likewise.
5280 * i386-linux-nat.c (x86-linux-nat.h): New include.
5281 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5282 (PTRACE_SETREGSET): Likewise.
5283 (arch_lwp_info): Now in x86-linux-nat.c.
5284 (have_ptrace_getregset): Now in x86-linux-nat.h.
5285 (x86_linux_dr_get): Now in x86-linux-nat.c.
5286 (x86_linux_dr_set): Likewise.
5287 (x86_linux_dr_get_addr): Likewise.
5288 (x86_linux_dr_get_control): Likewise.
5289 (x86_linux_dr_get_status): Likewise.
5290 (update_debug_registers_callback): Likewise.
5291 (x86_linux_dr_set_control): Likewise.
5292 (x86_linux_dr_set_addr): Likewise.
5293 (x86_linux_prepare_to_resume): Likewise.
5294 (x86_linux_new_thread): Likewise.
5295 (x86_linux_new_fork): Likewise.
5296 (x86_linux_get_thread_area): Likewise.
5297 (super_post_startup_inferior): Likewise.
5298 (x86_linux_child_post_startup_inferior): Likewise.
5299 (AMD64_LINUX_USER64_CS): Likewise.
5300 (AMD64_LINUX_X32_DS): Likewise.
5301 (x86_linux_read_description): Likewise.
5302 (x86_linux_enable_btrace): Likewise.
5303 (x86_linux_disable_btrace): Likewise.
5304 (x86_linux_teardown_btrace): Likewise.
5305 (x86_linux_read_btrace): Likewise.
5306 (x86_linux_create_target): Likewise.
5307 (x86_linux_add_target): Likewise.
5308
5309 2014-07-11 Gary Benson <gbenson@redhat.com>
5310
5311 * amd64-linux-nat.c: Comment and whitespace changes.
5312 * i386-linux-nat.c: Comment and whitespace changes.
5313
5314 2014-07-11 Gary Benson <gbenson@redhat.com>
5315
5316 * amd64-linux-nat.c (x86_linux_create_target): New function.
5317 (x86_linux_add_target): Likewise.
5318 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5319 * i386-linux-nat.c (x86_linux_create_target): New function.
5320 (x86_linux_add_target): Likewise.
5321 (_initialize_i386_linux_nat): Delegate to the above new functions.
5322
5323 2014-07-11 Gary Benson <gbenson@redhat.com>
5324
5325 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5326 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5327 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5328 (ps_get_thread_area): Delegate to the above.
5329
5330 2014-07-11 Gary Benson <gbenson@redhat.com>
5331
5332 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5333 x86_linux_read_description. All uses updated. amd64-specific
5334 code conditionalized. Conditionalized i386-specific code added.
5335 Redundant cast removed.
5336 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5337 x86_linux_read_description. All uses updated. i386-specific
5338 code conditionalized. Conditionalized amd64-specific code added.
5339 One sizeof replaced with the actual type it is describing.
5340
5341 2014-07-11 Gary Benson <gbenson@redhat.com>
5342
5343 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5344 x86_linux_dr_get. All uses updated.
5345 (amd64_linux_dr_set): Renamed to
5346 x86_linux_dr_set. All uses updated.
5347 (amd64_linux_dr_get_addr): Renamed to
5348 x86_linux_dr_get_addr. All uses updated.
5349 (amd64_linux_dr_get_control): Renamed to
5350 x86_linux_dr_get_control. All uses updated.
5351 (amd64_linux_dr_get_status): Renamed to
5352 x86_linux_dr_get_status. All uses updated.
5353 (amd64_linux_dr_set_control): Renamed to
5354 x86_linux_dr_set_control. All uses updated.
5355 (amd64_linux_dr_set_addr): Renamed to
5356 x86_linux_dr_set_addr. All uses updated.
5357 (amd64_linux_prepare_to_resume): Renamed to
5358 x86_linux_prepare_to_resume. All uses updated.
5359 (amd64_linux_new_thread): Renamed to
5360 x86_linux_new_thread. All uses updated.
5361 (amd64_linux_new_fork): Renamed to
5362 x86_linux_new_fork. All uses updated.
5363 (amd64_linux_child_post_startup_inferior): Renamed to
5364 x86_linux_child_post_startup_inferior. All uses updated.
5365 (amd64_linux_enable_btrace): Renamed to
5366 x86_linux_enable_btrace. All uses updated.
5367 (amd64_linux_disable_btrace): Renamed to
5368 x86_linux_disable_btrace. All uses updated.
5369 (amd64_linux_teardown_btrace): Renamed to
5370 x86_linux_teardown_btrace. All uses updated.
5371 (amd64_linux_read_btrace): Renamed to
5372 x86_linux_read_btrace. All uses updated.
5373 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5374 x86_linux_dr_get. All uses updated.
5375 (i386_linux_dr_set): Renamed to
5376 x86_linux_dr_set. All uses updated.
5377 (i386_linux_dr_get_addr): Renamed to
5378 x86_linux_dr_get_addr. All uses updated.
5379 (i386_linux_dr_get_control): Renamed to
5380 x86_linux_dr_get_control. All uses updated.
5381 (i386_linux_dr_get_status): Renamed to
5382 x86_linux_dr_get_status. All uses updated.
5383 (i386_linux_dr_set_control): Renamed to
5384 x86_linux_dr_set_control. All uses updated.
5385 (i386_linux_dr_set_addr): Renamed to
5386 x86_linux_dr_set_addr. All uses updated.
5387 (i386_linux_prepare_to_resume): Renamed to
5388 x86_linux_prepare_to_resume. All uses updated.
5389 (i386_linux_new_thread): Renamed to
5390 x86_linux_new_thread. All uses updated.
5391 (i386_linux_new_fork): Renamed to
5392 x86_linux_new_fork. All uses updated.
5393 (i386_linux_child_post_startup_inferior): Renamed to
5394 x86_linux_child_post_startup_inferior. All uses updated.
5395 (i386_linux_enable_btrace): Renamed to
5396 x86_linux_enable_btrace. All uses updated.
5397 (i386_linux_disable_btrace): Renamed to
5398 x86_linux_disable_btrace. All uses updated.
5399 (i386_linux_teardown_btrace): Renamed to
5400 x86_linux_teardown_btrace. All uses updated.
5401 (i386_linux_read_btrace): Renamed to
5402 x86_linux_read_btrace. All uses updated.
5403
5404 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5405
5406 * remote.c (extended_remote_post_attach): New function.
5407 (init_extended_remote_ops): Install it as to_post_attach method.
5408
5409 2014-07-09 Pedro Alves <palves@redhat.com>
5410
5411 * infcmd.c (attach_command_post_wait): Don't call
5412 target_terminal_inferior here.
5413 (attach_command): Call it here instead.
5414
5415 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5418 field.
5419 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5420 from varobj.c, with additional checks.
5421 (c_varobj_ops): Fill in is_path_expr_parent field.
5422 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5423 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5424 field.
5425 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5426 ops method.
5427 (varobj_default_is_path_expr_parent): New function.
5428 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5429 (varobj_default_is_path_expr_parent): Declare new function.
5430
5431 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5432
5433 * infcmd.c (finish_backward): Turn internal error into normal error.
5434
5435 2014-07-07 Pedro Alves <palves@redhat.com>
5436
5437 PR gdb/17096
5438 * remote.c (async_handle_remote_sigint)
5439 (async_handle_remote_sigint_twice): Call
5440 gdb_call_async_signal_handler instead of
5441 mark_async_signal_handler.
5442
5443 2014-07-07 Tom Tromey <tromey@redhat.com>
5444
5445 * target-delegates.c: Rebuild.
5446 * target.c (target_info_record): Remove.
5447 * record.c (info_record_command): Unconditionally call
5448 to_info_record.
5449 * target.h (struct target_ops) <to_info_record>: Use
5450 TARGET_DEFAULT_IGNORE.
5451 (target_info_record): Remove.
5452
5453 2014-07-07 Tom Tromey <tromey@redhat.com>
5454
5455 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5456 TARGET_DEFAULT_NORETURN.
5457 * target.c (generic_tls_error): New function.
5458 (target_translate_tls_address): Don't search target stack.
5459 * target-delegates.c: Rebuild.
5460 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5461 stack.
5462 * linux-thread-db.c (thread_db_get_thread_local_address):
5463 Unconditionally call beneath target.
5464
5465 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
5466
5467 * cli/cli-logging.c (pop_output_files): Assign targerr to
5468 gdb_stdtargerr.
5469
5470 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
5471
5472 * MAINTAINERS (Write After Approval): Update my email address.
5473
5474 2014-07-02 Gary Benson <gbenson@redhat.com>
5475
5476 * proc-service.c (ps_xfer_memory): Update comment.
5477 (ps_pstop): Remove unused function.
5478 (ps_pcontinue): Likewise.
5479 (ps_lstop): Likewise.
5480 (ps_lcontinue): Likewise.
5481 (ps_lgetxregsize): Likewise.
5482 (ps_lgetxregs): Likewise.
5483 (ps_lsetxregs): Likewise.
5484 (ps_plog): Likewise.
5485 (ps_ptread): Likewise.
5486 (ps_ptwrite): Likewise.
5487
5488 2014-07-01 Mark Wielaard <mjw@redhat.com>
5489
5490 * dwarf2read.c (add_array_cv_type): New function.
5491 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5492 (read_tag_volatile_type): Likewise.
5493
5494 2014-07-01 Tom Tromey <tromey@redhat.com>
5495
5496 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5497 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5498 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5499 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5500 * command.h (cmd_cfunc_ftype): Move earlier.
5501 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5502 (add_com, add_info): Use cmd_cfunc_ftype.
5503
5504 2014-06-30 Tom Tromey <tromey@redhat.com>
5505
5506 * symtab.c (operator_chars): Make parameters and return type
5507 const.
5508 (file_matches): Make "files" const.
5509 (struct search_symbols_data) <files>: Now const.
5510 (search_symbols): Make "regexp" and "files" parameters const.
5511 Update.
5512 (symtab_symbol_info): Remove cast.
5513 (rbreak_command): Update.
5514 * symtab.h (search_symbols): Update.
5515
5516 2014-06-27 Yao Qi <yao@codesourcery.com>
5517
5518 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5519 Change parameter type to 'struct thread_info *'. Caller
5520 updated.
5521 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5522 Update declaration.
5523 * dummy-frame.c (struct dummy_frame_id): New.
5524 (dummy_frame_id_eq): New function.
5525 (struct dummy_frame) <id>: Change its type to 'struct
5526 dummy_frame_id'.
5527 (dummy_frame_push): Add parameter ptid and save it in
5528 dummy_frame_id.
5529 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5530 inferior_ptid.
5531 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5532 to inferior_ptid.
5533 (lookup_dummy_frame): Change parameter type to 'struct
5534 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5535 instead of frame_id_eq.
5536 (dummy_frame_pop): Add parameter ptid. Callers updated.
5537 Update comments. Compose dummy_frame_id and pass it to
5538 lookup_dummy_frame.
5539 (dummy_frame_discard): Add parameter ptid.
5540 (dummy_frame_sniffer): Compose dummy_frame_id and call
5541 dummy_frame_id_eq instead of frame_id_eq.
5542 (fprint_dummy_frames): Print ptid.
5543 * dummy-frame.h: Remove comments.
5544 (dummy_frame_push): Add ptid in declaration.
5545 (dummy_frame_pop, dummy_frame_discard): Likewise.
5546
5547 2014-06-26 Tom Tromey <tromey@redhat.com>
5548
5549 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5550 * command.h (error_no_arg): Update.
5551
5552 2014-06-26 Tom Tromey <tromey@redhat.com>
5553
5554 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5555 (do_show_command): Make "arg" const.
5556 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5557
5558 2014-06-26 Tom Tromey <tromey@redhat.com>
5559
5560 * record-full.c (record_full_get_bookmark): Make "args" const.
5561 (record_full_goto_bookmark): Make "raw_bookmark" const.
5562 * record.c (record_goto): New function.
5563 (cmd_record_goto): Use it. Now static.
5564 * record.h (record_goto): Declare.
5565 (cmd_record_goto): Remove declaration.
5566 * target-delegates.c: Rebuild.
5567 * target.h (struct target_ops) <to_get_bookmark,
5568 to_goto_bookmark>: Make parameter const.
5569
5570 2014-06-26 Tom Tromey <tromey@redhat.com>
5571
5572 * defs.h (generic_load): Update.
5573 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5574 * monitor.c (monitor_load): Make "args" const.
5575 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5576 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5577 const.
5578 (mips_load): Make "file" const.
5579 * remote-sim.c (gdbsim_load): Make "args" const.
5580 * remote.c (remote_load): Make "name" const.
5581 * symfile.c (generic_load): Make "args" const.
5582 * target-delegates.c: Rebuild.
5583 * target.c (target_load): Make "arg" const.
5584 (debug_to_load): Make "args" const.
5585 * target.h (struct target_ops) <to_load>: Make parameter const.
5586 (target_load): Update.
5587
5588 2014-06-26 Tom Tromey <tromey@redhat.com>
5589
5590 PR symtab/16902:
5591 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5592 (dwarf2_physname, read_partial_die)
5593 (guess_partial_die_structure_name, fixup_partial_die)
5594 (guess_full_die_structure_name, anonymous_struct_prefix)
5595 (dwarf2_name): Use per-BFD obstack.
5596
5597 2014-06-26 Yao Qi <yao@codesourcery.com>
5598
5599 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5600 dummyframe and this_id into inner block below.
5601
5602 2014-06-26 Yao Qi <yao@codesourcery.com>
5603
5604 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5605 with "signal_pass[0]" in the initialization of signal_pass.
5606
5607 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5608
5609 * record-btrace.c (record_btrace_generating_corefile)
5610 (record_btrace_prepare_to_generate_core)
5611 (record_btrace_done_generating_core): New.
5612 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5613 (record_btrace_store_registers, record_btrace_prepare_to_store):
5614 Forward request when generating a core file.
5615 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5616 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5617 to_done_generating_core.
5618
5619 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5620
5621 * target.h (target_ops) <to_prepare_to_generate_core>
5622 <to_done_generating_core>: New.
5623 (target_prepare_to_generate_core, target_done_generating_core): New.
5624 * target.c (target_prepare_to_generate_core)
5625 (target_done_generating_core): New.
5626 * target-delegates.c: Regenerate.
5627 * gcore.c: (write_gcore_file): Rename to ...
5628 (write_gcore_file_1): ...this.
5629 (write_gcore_file): Call target_prepare_to_generate_core
5630 and target_done_generating_core.
5631
5632 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5633
5634 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5635 * gcore.c (write_gcore_file): Free memory returned from
5636 make_corefile_notes.
5637 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5638 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5639
5640 2014-06-24 Yao Qi <yao@codesourcery.com>
5641
5642 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5643 (arm_linux_init_abi): Set skip_trampoline_code with
5644 gdbarch_skip_trampoline_code instead of
5645 find_solib_trampoline_target.
5646
5647 2014-06-24 Yao Qi <yao@codesourcery.com>
5648
5649 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5650 arm_skip_bx_reg returns non-zero.
5651
5652 2014-06-24 Yao Qi <yao@codesourcery.com>
5653
5654 * arm-tdep.c (arm_skip_bx_reg): New function.
5655 (arm_skip_stub): Call arm_skip_bx_reg.
5656
5657 2014-06-23 Don Breazeal <donb@codesourcery.com>
5658
5659 * MAINTAINERS: Add myself as write-after-approval maintainer.
5660
5661 2014-06-23 Pedro Alves <palves@redhat.com>
5662
5663 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5664 DR_CONTROL before setting DR0..DR3.
5665 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5666 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5667 bits of DR_CONTROL related to the debug register slot being
5668 disabled. If all slots are vacant, clear local slowdown as well,
5669 and assert DR_CONTROL is 0.
5670
5671 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5672
5673 * python/lib/gdb/command/xmethods.py
5674 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5675 current progspace only if the string "progspace" matches LOCUS_RE.
5676
5677 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5678
5679 Fix --with-system-readline with readline-6.3 patch 5.
5680 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5681 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5682 types.
5683
5684 2014-06-20 Tom Tromey <tromey@redhat.com>
5685
5686 * dwarf2read.c (dw2_get_real_path): Use correct type in
5687 OBSTACK_CALLOC.
5688 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5689
5690 2014-06-20 Gary Benson <gbenson@redhat.com>
5691
5692 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5693 * common/glibc_thread_db.h: Likewise.
5694 * common/i386-cpuid.h: Likewise.
5695 * common/i386-gcc-cpuid.h: Likewise.
5696 * common/linux-btrace.h: Likewise.
5697 * common/linux-osdata.h: Likewise.
5698 * common/linux-procfs.h: Likewise.
5699 * common/linux-ptrace.h: Likewise.
5700 * common/mips-linux-watch.h: Likewise.
5701 * common/linux-btrace.c: Moved to nat.
5702 * common/linux-osdata.c: Likewise.
5703 * common/linux-procfs.c: Likewise.
5704 * common/linux-ptrace.c: Likewise.
5705 * common/mips-linux-watch.c: Likewise.
5706 * nat/gdb_thread_db.h: Moved from common.
5707 * nat/glibc_thread_db.h: Likewise.
5708 * nat/i386-cpuid.h: Likewise.
5709 * nat/i386-gcc-cpuid.h: Likewise.
5710 * nat/linux-btrace.c: Likewise.
5711 * nat/linux-btrace.h: Likewise.
5712 * nat/linux-osdata.c: Likewise.
5713 * nat/linux-osdata.h: Likewise.
5714 * nat/linux-procfs.c: Likewise.
5715 * nat/linux-procfs.h: Likewise.
5716 * nat/linux-ptrace.c: Likewise.
5717 * nat/linux-ptrace.h: Likewise.
5718 * nat/mips-linux-watch.c: Likewise.
5719 * nat/mips-linux-watch.h: Likewise.
5720 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5721 (object file files): Reordered.
5722 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5723 of glibc_thread_db.h.
5724
5725 2014-06-20 Gary Benson <gbenson@redhat.com>
5726
5727 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5728 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5729 (i386_dr_low): Likewise.
5730 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5731 (i386_dr_low_set_addr): Likewise.
5732 (i386_dr_low_get_addr): Likewise.
5733 (i386_dr_low_can_set_control): Likewise.
5734 (i386_dr_low_set_control): Likewise.
5735 (i386_dr_low_get_control): Likewise.
5736 (i386_dr_low_get_status): Likewise.
5737 (i386_get_debug_register_length): Likewise.
5738 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5739 (i386_dr_low): Likewise.
5740 * nat/i386-dregs.c (i386-low.h): Remove include.
5741 (i386-nat.h): Likewise.
5742 (nat/i386-dregs.h): New include.
5743 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5744 (i386_dr_low_set_addr): Likewise.
5745 (i386_dr_low_get_addr): Likewise.
5746 (i386_dr_low_can_set_control): Likewise.
5747 (i386_dr_low_set_control): Likewise.
5748 (i386_dr_low_get_control): Likewise.
5749 (i386_dr_low_get_status): Likewise.
5750 (i386_get_debug_register_length): Likewise.
5751 (debug_hw_points): Likewise.
5752
5753 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5754
5755 * Makefile.in (SFILES): Add d-exp.y.
5756 (YYFILES): Add d-exp.c.
5757 (YYOBJ): Add d-exp.o.
5758 (local-maintainer-clean): Delete d-exp.c.
5759 * d-exp.y: New file.
5760 * d-lang.h (d_parse): New declaration.
5761 (d_error): New declaration.
5762 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5763 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5764 PREC_ORDER operators.
5765 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5766
5767 2014-06-19 Yao Qi <yao@codesourcery.com>
5768
5769 * gdbthread.h (any_running): Remove the declaration.
5770 * thread.c (any_running): Remove.
5771
5772 2014-06-19 Yao Qi <yao@codesourcery.com>
5773
5774 * gdbthread.h (struct thread_info) <state>: Change its type to
5775 'enum thread_state'. Update comments.
5776
5777 2014-06-19 Pedro Alves <palves@redhat.com>
5778
5779 * gdbthread.h (ALL_THREADS): Delete.
5780 (ALL_NON_EXITED_THREADS): New macro.
5781 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5782 instead of ALL_THREADS.
5783 * infrun.c (find_thread_needs_step_over)
5784 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5785 instead of ALL_THREADS.
5786 * record-btrace.c (record_btrace_open)
5787 (record_btrace_stop_recording, record_btrace_close)
5788 (record_btrace_is_replaying, record_btrace_resume)
5789 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5790 * remote.c (append_pending_thread_resumptions): Likewise.
5791 * thread.c (thread_apply_all_command): Likewise.
5792
5793 2014-06-19 Gary Benson <gbenson@redhat.com>
5794
5795 * i386-nat.c (i386_stopped_by_watchpoint):
5796 Use i386_dr_stopped_by_watchpoint.
5797 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5798 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5799
5800 2014-06-19 Gary Benson <gbenson@redhat.com>
5801
5802 * nat/i386-dregs.c: New file.
5803 * Makefile.in (i386-dregs.o): New rule.
5804 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5805 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5806 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5807 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5808 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5809 * config/i386/go32.mh (NATDEPFILES): Likewise.
5810 * config/i386/linux.mh (NATDEPFILES): Likewise.
5811 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5812 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5813 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5814 * i386-nat.h (debug_hw_points): New declaration.
5815 * i386-nat.c (breakpoint.h): Remove include.
5816 (command.h): Likewise.
5817 (target.h): Likewise.
5818 (gdb_assert.h): Likewise.
5819 (debug_hw_points): Made nonstatic.
5820 (debug_printf): Now in i386-dregs.c.
5821 (TARGET_HAS_DR_LEN_8): Likewise.
5822 (DR_CONTROL_SHIFT): Likewise.
5823 (DR_CONTROL_SIZE): Likewise.
5824 (DR_RW_EXECUTE): Likewise.
5825 (DR_RW_WRITE): Likewise.
5826 (DR_RW_READ): Likewise.
5827 (DR_RW_IORW): Likewise.
5828 (DR_LEN_1): Likewise.
5829 (DR_LEN_2): Likewise.
5830 (DR_LEN_4): Likewise.
5831 (DR_LEN_8): Likewise.
5832 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5833 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5834 (DR_ENABLE_SIZE): Likewise.
5835 (DR_LOCAL_SLOWDOWN): Likewise.
5836 (DR_GLOBAL_SLOWDOWN): Likewise.
5837 (DR_CONTROL_RESERVED): Likewise.
5838 (I386_DR_CONTROL_MASK): Likewise.
5839 (I386_DR_VACANT): Likewise.
5840 (I386_DR_LOCAL_ENABLE): Likewise.
5841 (I386_DR_GLOBAL_ENABLE): Likewise.
5842 (I386_DR_DISABLE): Likewise.
5843 (I386_DR_SET_RW_LEN): Likewise.
5844 (I386_DR_GET_RW_LEN): Likewise.
5845 (I386_DR_WATCH_HIT): Likewise.
5846 (i386_wp_op_t): Likewise.
5847 (i386_show_dr): Likewise.
5848 (i386_length_and_rw_bits): Likewise.
5849 (i386_insert_aligned_watchpoint): Likewise.
5850 (i386_remove_aligned_watchpoint): Likewise.
5851 (i386_handle_nonaligned_watchpoint): Likewise.
5852 (i386_update_inferior_debug_regs): Likewise.
5853 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5854 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5855 (i386_region_ok_for_watchpoint):
5856 Use i386_dr_region_ok_for_watchpoint.
5857 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5858
5859 2014-06-19 Gary Benson <gbenson@redhat.com>
5860
5861 * i386-nat.c (i386_insert_hw_breakpoint): Use
5862 i386_insert_watchpoint.
5863 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5864
5865 2014-06-19 Gary Benson <gbenson@redhat.com>
5866
5867 * i386-nat.c (i386_dr_show): Renamed to
5868 i386_show_dr and made static. All uses updated.
5869 (i386_dr_length_and_rw_bits): Renamed to
5870 i386_length_and_rw_bits and made static.
5871 All uses updated.
5872 (i386_dr_insert_aligned_watchpoint): Renamed to
5873 i386_insert_aligned_watchpoint and made static.
5874 All uses updated.
5875 (i386_dr_remove_aligned_watchpoint): Renamed to
5876 i386_remove_aligned_watchpoint and made static.
5877 All uses updated.
5878 (i386_dr_update_inferior_debug_regs): Renamed to
5879 i386_update_inferior_debug_regs and made static.
5880 All uses updated.
5881 * nat/i386-dregs.h (i386_dr_show): Removed.
5882 (i386_dr_length_and_rw_bits): Likewise.
5883 (i386_dr_insert_aligned_watchpoint): Likewise.
5884 (i386_dr_remove_aligned_watchpoint): Likewise.
5885 (i386_dr_update_inferior_debug_regs): Likewise.
5886
5887 2014-06-19 Gary Benson <gbenson@redhat.com>
5888
5889 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5890 * configure: Regenerate.
5891 * config.in: Likewise.
5892 * main.c (signal.h): New include.
5893 (setup_alternate_signal_stack): New function.
5894 (captured_main): Call the above.
5895 * cp-support.c (signal.h): New include.
5896 (catch_demangler_crashes): New flag.
5897 (SIGJMP_BUF): New define.
5898 (SIGSETJMP): Likewise.
5899 (SIGLONGJMP): Likewise.
5900 (gdb_demangle_jmp_buf): New static global.
5901 (gdb_demangle_attempt_core_dump): Likewise.
5902 (gdb_demangle_signal_handler): New function.
5903 (gdb_demangle): If catch_demangler_crashes is set, install the
5904 above signal handler before calling bfd_demangle, and restore
5905 the original signal handler afterwards. Display the offending
5906 symbol and call demangler_warning the first time a segmentation
5907 fault is caught.
5908 (_initialize_cp_support): New maint set/show command.
5909
5910 2014-06-19 Gary Benson <gbenson@redhat.com>
5911
5912 * utils.h (resource_limit_kind): New enum.
5913 (can_dump_core): New declaration.
5914 (warn_cant_dump_core): Likewise.
5915 (dump_core): Likewise.
5916 * utils.c (dump_core): Made nonstatic. Added new
5917 parameter "limit_kind".
5918 (can_dump_core): Made nonstatic. Moved printing code to...
5919 (warn_cant_dump_core): New function.
5920 (can_dump_core_warn): Likewise.
5921 (internal_vproblem): Replace calls to can_dump_core with
5922 calls to can_dump_core_warn. Supply new argument to each.
5923
5924 2014-06-19 Gary Benson <gbenson@redhat.com>
5925
5926 * utils.h (demangler_vwarning): New declaration.
5927 (demangler_warning): Likewise.
5928 * utils.c (struct internal_problem)
5929 <user_settable_should_quit>: New field.
5930 <user_settable_should_dump_core>: Likewise
5931 (internal_error_problem): Add values for above new fields.
5932 (internal_warning_problem): Likewise.
5933 (demangler_warning_problem): New static global.
5934 (demangler_vwarning): New function.
5935 (demangler_warning): Likewise.
5936 (add_internal_problem_command): Selectively add commands.
5937 (_initialize_utils): New internal problem command.
5938 * maint.c (maintenance_demangler_warning): New function.
5939 (_initialize_maint_cmds): New command.
5940
5941 2014-06-18 Tom Tromey <tromey@redhat.com>
5942
5943 * f-valprint.c (info_common_command_for_block): Update.
5944 * symtab.h (struct general_symbol_info) <common_block>: Now
5945 const.
5946
5947 2014-06-18 Tom Tromey <tromey@redhat.com>
5948
5949 * symtab.h (struct symtab) <blockvector>: Now const.
5950 * ada-lang.c (ada_add_global_exceptions): Update.
5951 * buildsym.c (augment_type_symtab): Update.
5952 * dwarf2read.c (dw2_lookup_symbol): Update.
5953 * jit.c (finalize_symtab): Update.
5954 * jv-lang.c (add_class_symtab_symbol): Update.
5955 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5956 Update.
5957 * objfiles.c (objfile_relocate1): Update.
5958 * psymtab.c (lookup_symbol_aux_psymtabs)
5959 (maintenance_check_psymtabs): Update.
5960 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5961 Update.
5962 * spu-tdep.c (spu_catch_start): Update.
5963 * symmisc.c (dump_symtab_1): Update.
5964 * symtab.c (lookup_global_symbol_from_objfile)
5965 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5966 (basic_lookup_transparent_type_quick)
5967 (basic_lookup_transparent_type, find_pc_sect_symtab)
5968 (find_pc_sect_line, search_symbols): Update.
5969 * block.c (find_block_in_blockvector): Make "bl" const.
5970 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5971 const.
5972 (blockvector_contains_pc): Make "bv" const.
5973 (block_for_pc_sect): Update.
5974 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5975 (blockvector_contains_pc): Update.
5976 * breakpoint.c (resolve_sal_pc): Update.
5977 * inline-frame.c (block_starting_point_at): Update.
5978
5979 2014-06-18 Tom Tromey <tromey@redhat.com>
5980
5981 * completer.c (complete_line): Make "line_buffer" const.
5982 * completer.h (complete_line): Update.
5983
5984 2014-06-18 Tom Tromey <tromey@redhat.com>
5985
5986 * symtab.c (add_macro_name): Remove unneeded cast.
5987
5988 2014-06-18 Tom Tromey <tromey@redhat.com>
5989
5990 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5991 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5992
5993 2014-06-18 Tom Tromey <tromey@redhat.com>
5994
5995 * probe.c (info_probes_for_ops): Make "arg" const.
5996 * probe.h (info_probes_for_ops): Update.
5997
5998 2014-06-18 Tom Tromey <tromey@redhat.com>
5999
6000 * varobj.c (varobj_create): Update.
6001 * valops.c (value_of_this): Update.
6002 * tracepoint.c (add_local_symbols, scope_info): Update.
6003 * symtab.h (struct general_symbol_info) <block>: Now const.
6004 * symtab.c (skip_prologue_sal)
6005 (default_make_symbol_completion_list_break_on)
6006 (skip_prologue_using_sal): Update.
6007 * stack.h (iterate_over_block_locals)
6008 (iterate_over_block_local_vars): Update.
6009 * stack.c (print_frame_args): Update.
6010 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6011 parameter const.
6012 (get_selected_block): Make return type const.
6013 * python/py-frame.c (frapy_block): Update.
6014 * python/py-block.c (gdbpy_block_for_pc): Update.
6015 * p-exp.y (%union) <bval>: Now const.
6016 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6017 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6018 * m2-exp.y (%union) <bval>: Now const.
6019 * linespec.c (get_current_search_block): Make return type const.
6020 (create_sals_line_offset, find_label_symbols): Update.
6021 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6022 Update.
6023 (block_starting_point_at): Make "block" const.
6024 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6025 (check_exception_resume): Update.
6026 * guile/scm-frame.c (gdbscm_frame_block): Update.
6027 * guile/scm-block.c (gdbscm_lookup_block): Update.
6028 * frame.h (get_frame_block): Update.
6029 (get_selected_block): Make return type const.
6030 * frame.c (frame_id_inner): Update.
6031 * f-valprint.c (info_common_command_for_block)
6032 (info_common_command): Update.
6033 * dwarf2loc.c (dwarf2_find_location_expression)
6034 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6035 (locexpr_describe_location_piece): Update.
6036 * c-exp.y (%union) <bval>: Now const.
6037 * breakpoint.c (resolve_sal_pc): Update.
6038 * blockframe.c (get_frame_block):Make return type const.
6039 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6040 (block_innermost_frame): Update.
6041 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6042 (block_for_pc, block_for_pc_sect): Update.
6043 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6044 'pblock' const.
6045 (block_for_pc_sect, block_for_pc): Make return type const.
6046 * ax-gdb.c (gen_expr): Update.
6047 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6048 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6049 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6050 (ada_read_var_value): Update.
6051 * ada-exp.y (struct name_info) <block>: Now const.
6052 (%union): Likewise.
6053 (block_lookup): Constify.
6054
6055 2014-06-18 Gary Benson <gbenson@redhat.com>
6056
6057 * nat/i386-dregs.h: New file.
6058 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6059 * i386-nat.h (i386-dregs.h): New include.
6060 (DR_FIRSTADDR): Now in i386-dregs.h.
6061 (DR_LASTADDR): Likewise.
6062 (DR_NADDR): Likewise.
6063 (DR_STATUS): Likewise.
6064 (DR_CONTROL): Likewise.
6065 (i386_debug_reg_state): Likewise.
6066 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6067
6068 2014-06-18 Don Breazeal <donb@codesourcery.com>
6069
6070 * breakpoint.c (set_longjmp_breakpoint): Call
6071 momentary_breakpoint_from_master with additional argument.
6072 (set_longjmp_breakpoint_for_call_dummy): Call
6073 momentary_breakpoint_from_master with additional argument.
6074 (set_std_terminate_breakpoint): Call
6075 momentary_breakpoint_from_master with additional argument.
6076 (momentary_breakpoint_from_master): Add argument to function
6077 definition and use it to initialize structure member flag.
6078 (clone_momentary_breakpoint): Call
6079 momentary_breakpoint_from_master with additional argument.
6080 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6081 member flags set in momentary_breakpoint_from_master.
6082
6083 2014-06-18 Gary Benson <gbenson@redhat.com>
6084
6085 * i386-nat.c (i386_show_dr): Renamed to
6086 i386_dr_show and made nonstatic. All uses updated.
6087 (i386_length_and_rw_bits): Renamed to
6088 i386_dr_length_and_rw_bits and made nonstatic.
6089 All uses updated.
6090 (i386_insert_aligned_watchpoint): Renamed to
6091 i386_dr_insert_aligned_watchpoint and made nonstatic.
6092 All uses updated.
6093 (i386_remove_aligned_watchpoint): Renamed to
6094 i386_dr_remove_aligned_watchpoint and made nonstatic.
6095 All uses updated.
6096 (i386_update_inferior_debug_regs): Renamed to
6097 i386_dr_update_inferior_debug_regs and made nonstatic.
6098 All uses updated.
6099
6100 2014-06-18 Gary Benson <gbenson@redhat.com>
6101
6102 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6103 (i386_dr_low_can_set_control): Likewise.
6104 (i386_dr_low_set_addr): Likewise.
6105 (i386_dr_low_set_control): Likewise.
6106 (i386_dr_low_get_addr): Likewise.
6107 (i386_dr_low_get_status): Likewise.
6108 (i386_dr_low_get_control): Likewise.
6109 (i386_insert_aligned_watchpoint): Use new macros.
6110 (i386_update_inferior_debug_regs): Likewise.
6111 (i386_stopped_data_address): Likewise.
6112
6113 2014-06-18 Gary Benson <gbenson@redhat.com>
6114
6115 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6116 New parameter. All uses updated.
6117
6118 2014-06-18 Gary Benson <gbenson@redhat.com>
6119
6120 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6121 All uses updated.
6122
6123 2014-06-18 Gary Benson <gbenson@redhat.com>
6124
6125 * i386-nat.c (debug_printf): New macro.
6126 (i386_get_debug_register_length): Likewise.
6127 (TARGET_HAS_DR_LEN_8): Use above macro.
6128 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6129 and printf_unfiltered. Use phex to format values.
6130
6131 2014-06-18 Gary Benson <gbenson@redhat.com>
6132
6133 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6134 Make const.
6135
6136 2014-06-18 Gary Benson <gbenson@redhat.com>
6137
6138 * i386-nat.c: Comment changes.
6139
6140 2014-06-18 Gary Benson <gbenson@redhat.com>
6141
6142 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6143
6144 2014-06-18 Gary Benson <gbenson@redhat.com>
6145
6146 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6147 (i386_insert_aligned_watchpoint): Likewise.
6148 (i386_remove_aligned_watchpoint): Likewise.
6149 (i386_handle_nonaligned_watchpoint): Likewise.
6150
6151 2014-06-18 Gary Benson <gbenson@redhat.com>
6152
6153 * i386-nat.c: Whitespace changes.
6154
6155 2014-06-17 Samuel Bronson <naesten@gmail.com>
6156
6157 * MAINTAINERS: Update Roland McGrath's email address.
6158 Thanks to Sergio Durigan Junior for pointing out that he left
6159 Red Hat a while ago, and giving me a current address.
6160
6161 2014-06-17 Tom Tromey <tromey@redhat.com>
6162
6163 * utils.h (savestring): Remove declaration.
6164
6165 2014-06-17 Tom Tromey <tromey@redhat.com>
6166
6167 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6168
6169 2014-06-16 Keith Seitz <keiths@redhat.com>
6170
6171 PR mi/15863
6172 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6173 to update the varobj if inferior_ptid is null_ptid.
6174
6175 2014-06-16 Tom Tromey <tromey@redhat.com>
6176
6177 * target.h (struct target_ops) <to_info_proc>: Make parameter
6178 const.
6179 (target_info_proc): Update.
6180 * target.c (target_info_proc): Make "args" const.
6181 * procfs.c (procfs_info_proc): Update.
6182 * linux-tdep.c (linux_info_proc): Update.
6183 (linux_core_info_proc_mappings): Make "args" const.
6184 (linux_core_info_proc): Update.
6185 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6186 * gdbarch.c: Rebuild.
6187 * gdbarch.h: Rebuild.
6188 * corelow.c (core_info_proc): Update.
6189
6190 2014-06-16 Tom Tromey <tromey@redhat.com>
6191
6192 * target.h (struct target_ops) <to_disconnect>: Make parameter
6193 const.
6194 (target_disconnect): Update.
6195 * target.c (target_disconnect): Make "args" const.
6196 * target-delegates.c: Rebuild.
6197 * remote.c (remote_disconnect): Update.
6198 * record.h (record_disconnect): Update.
6199 * record.c (record_disconnect): Update.
6200 * inf-child.c (inf_child_disconnect): Update.
6201
6202 2014-06-16 Tom Tromey <tromey@redhat.com>
6203
6204 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6205 * target.c (debug_to_rcmd, default_rcmd): Update.
6206 * target-delegates.c: Rebuild.
6207 * remote.c (remote_rcmd): Update.
6208 * monitor.c (monitor_rcmd): Update.
6209
6210 2014-06-16 Pedro Alves <palves@redhat.com>
6211
6212 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6213 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6214 have OBJF_SHARED set.
6215 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6216 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6217 instead of OBJF_USERLOADED.
6218 * objfiles.h (OBJF_SHARED): Update comment.
6219 (userloaded_objfile_contains_address_p): Rename to ...
6220 (shared_objfile_contains_address_p): ... this, and update
6221 comments.
6222 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6223 new objfile.
6224 (remove_symbol_file_command): Skip objfiles that don't have
6225 OBJF_SHARED set.
6226
6227 2014-06-16 Tom Tromey <tromey@redhat.com>
6228
6229 * minsyms.h (prim_record_minimal_symbol)
6230 (prim_record_minimal_symbol_and_info): Update comments.
6231
6232 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6233
6234 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6235 or --without-guile, according to how GDB was built.
6236
6237 2014-06-13 Tom Tromey <tromey@redhat.com>
6238
6239 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6240 to help_list.
6241 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6242 to help_list.
6243 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6244 help_list.
6245 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6246 help_list.Pass all_commands, not -1, to help_list.
6247 * cli/cli-dump.c (dump_command, append_command)
6248 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6249 (binary_dump_command, binary_append_command): Pass all_commands,
6250 not -1, to help_list.
6251 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6252 -1, to help_list.
6253 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6254 -1, to help_list.
6255 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6256 help_list.
6257 * top.c (set_history): Pass all_commands, not -1, to help_list.
6258 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6259 all_commands, not -1, to help_list.
6260 * symfile.c (overlay_command): Pass all_commands, not -1, to
6261 help_list.
6262 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6263 help_list.
6264 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6265 help_list.
6266 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6267 -1, to help_list.
6268 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6269 not -1, to help_list.
6270 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6271 not -1, to help_list.
6272 * maint.c (maintenance_command, maintenance_info_command)
6273 (maintenance_print_command, maintenance_set_cmd): Pass
6274 all_commands, not -1, to help_list.
6275 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6276 help_list.
6277 * language.c (set_check): Pass all_commands, not -1, to help_list.
6278 * infcmd.c (unset_command): Pass all_commands, not -1, to
6279 help_list.
6280 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6281 help_list.
6282 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6283 help_list.
6284 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6285 help_list.
6286 * breakpoint.c (save_command): Pass all_commands, not -1, to
6287 help_list.
6288 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6289 all_commands, not -1, to help_list.
6290
6291 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6292
6293 * regcache.c (struct register_to_invalidate): New structure.
6294 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6295 functions.
6296 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6297
6298 2014-06-12 Yao Qi <yao@codesourcery.com>
6299
6300 * varobj.c (varobj_get_num_children): Call
6301 varobj_is_dynamic_p.
6302 (varobj_list_children): Likewise.
6303 (varobj_update): Likewise. Update comments.
6304
6305 2014-06-12 Yao Qi <yao@codesourcery.com>
6306
6307 * varobj.c (varobj_pretty_printed_p): Rename to ...
6308 (varobj_is_dynamic_p): ... this. New function.
6309 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6310 (varobj_is_dynamic_p): Declare.
6311 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6312 (mi_print_value_p, varobj_update_one): Likewise.
6313
6314 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6315 Yao Qi <yao@codesourcery.com>
6316
6317 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6318 (varobj_get_iterator): Wrap up code for pretty-printer by
6319 "#if HAVE_PYTHON" and "#endif".
6320 (update_dynamic_varobj_children): Likewise.
6321
6322 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6323 Yao Qi <yao@codesourcery.com>
6324
6325 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6326 gdb_python_initialized is false. Move some code from varobj.c.
6327 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6328 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6329 (struct varobj_item): Moved to varobj-iter.h".
6330 (varobj_clear_saved_item): New function.
6331 (update_dynamic_varobj_children): Move python-related code to
6332 py-varobj.c.
6333 (free_variable): Call varobj_clear_saved_item and
6334 varobj_iter_delete.
6335
6336 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6337 Yao Qi <yao@codesourcery.com>
6338
6339 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6340 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6341 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6342 (py-varobj.o): New rule.
6343 * python/py-varobj.c: New file.
6344 * python/python-internal.h (py_varobj_get_iterator): Declare.
6345 * varobj-iter.h: New file.
6346 * varobj.c: Include "varobj-iter.h"
6347 (struct varobj) <child_iter>: Change its type from "PyObject *"
6348 to "struct varobj_iter *".
6349 <saved_item>: Likewise.
6350 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6351 [HAVE_PYTHON] (varobj_get_iterator): New function.
6352 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6353 python-specific code to python/py-varobj.c.
6354 (install_visualizer): Call varobj_iter_delete instead of
6355 Py_XDECREF.
6356 * varobj.h (varobj_ensure_python_env): Declare.
6357
6358 2014-06-12 Yao Qi <yao@codesourcery.com>
6359
6360 * varobj.c (struct varobj_item): New structure.
6361 (create_child_with_value): Update declaration.
6362 (varobj_add_child): Replace arguments 'name' and 'value' with
6363 'item'. All callers updated.
6364 (install_dynamic_child): Likewise.
6365 (update_dynamic_varobj_children): Likewise.
6366 (varobj_add_child): Likewise.
6367 (create_child_with_value): Likewise.
6368
6369 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6370
6371 * NEWS: Create a new section for the next release branch.
6372 Rename the section of the current branch, now that it has
6373 been cut.
6374
6375 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6376
6377 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6378 * version.in: Bump version to 7.8.50.DATE-cvs.
6379
6380 2014-06-11 Pedro Alves <palves@redhat.com>
6381
6382 PR remote/17028
6383 * ser-mingw.c (net_windows_socket_check_pending): New function.
6384 (net_windows_select_thread): Ignore spurious wakeups. Use
6385 net_windows_socket_check_pending.
6386 (net_windows_wait_handle): Check for pending events with
6387 ioctlsocket, through net_windows_socket_check_pending, instead of
6388 checking the socket's event.
6389
6390 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6391
6392 * python/python-internal.h (gdb_PyObject_GetAttrString)
6393 (gdb_PyObject_HasAttrString): New inline function definitions.
6394 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6395 char * of the second argument to PyObject_GetAttrString.
6396
6397 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6398
6399 * serial.c (serial_write): Fix index of character to be printed
6400 in call to serial_logchar when serial debug traces are enabled.
6401
6402 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6403
6404 * gdbtypes (resolve_dynamic_range): Add function description.
6405
6406 2014-06-09 Pedro Alves <palves@redhat.com>
6407
6408 * linux-nat.c (linux_child_follow_fork): Initialize status with
6409 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6410 inner block. Only pass the signal to PTRACE_DETACH if in pass
6411 state.
6412
6413 2014-06-09 Gary Benson <gbenson@redhat.com>
6414
6415 * common/signals.c (gdb_signal_from_host): Reorder to separate
6416 the always-available ANSI-standard signals from the signals that
6417 require checking.
6418 (do_gdb_signal_to_host): Likewise.
6419 * proc-events.c (signal_table): Likewise.
6420
6421 2014-06-08 Hui Zhu <hui@codesourcery.com>
6422
6423 * common/linux-ptrace.c (linux_disable_event_reporting): New
6424 function.
6425 * common/linux-ptrace.h (linux_disable_event_reporting): New
6426 declaration.
6427 * linux-nat.c (linux_child_follow_fork): Do a single step before
6428 detach.
6429
6430 2014-06-07 Keith Seitz <keiths@redhat.com>
6431
6432 Revert:
6433 PR c++/16253
6434 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6435 from symbol_matches_domain in symtab.c. All local callers
6436 of symbol_matches_domain updated.
6437 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6438 search STRUCT_DOMAIN.
6439 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6440 independently. standard_lookup will do that automatically.
6441 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6442 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6443 (cp_lookup_symbol_in_namespace): Likewise.
6444 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6445 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6446 may return a STRUCT_DOMAIN match.
6447 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6448 * cp-support.c: Include language.h.
6449 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6450 VAR_DOMAIN.
6451 * psymtab.c (match_partial_symbol): Compare the requested
6452 domain with the symbol's domain directly.
6453 (lookup_partial_symbol): Likewise.
6454 * symtab.c (lookup_symbol_in_language): Explain when/why
6455 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6456 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6457 appropriate languages.
6458 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6459 and moved to ada-lang.c
6460 (lookup_block_symbol): Explain that this function only returns
6461 symbol matching the requested DOMAIN.
6462 Compare the requested domain with the symbol's domain directly.
6463 (iterate_over_symbols): Compare the requested domain with the
6464 symbol's domain directly.
6465 * symtab.h (symbol_matches_domain): Remove.
6466
6467 2014-06-06 Doug Evans <xdje42@gmail.com>
6468
6469 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6470 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6471 (gdbscm_guile_version_is_at_least): Declare.
6472 (gdbscm_scm_string_to_int): Declare.
6473 * guile/guile.c (gdbscm_guile_major_version): New global.
6474 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6475 (guile_datadir): New static global.
6476 (gdbscm_guile_data_directory): New function.
6477 (initialize_scheme_side): Update.
6478 (misc_guile_functions): Add guile-data-directory.
6479 (initialize_gdb_module): Fetch guile version number.
6480 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6481 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6482 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6483 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6484 comments.
6485 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6486 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6487 * guile/scm-value.c (gdbscm_value_to_string): Only call
6488 scm_port_conversion_strategy if Guile version >= 2.0.6.
6489
6490 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
6491
6492 * main.c (print_gdb_help): Add -q and --silent.
6493
6494 2014-06-06 Gary Benson <gbenson@redhat.com>
6495
6496 * common/signals.c: Remove preprocessor conditionals for
6497 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6498 SIGSEGV and SIGTERM.
6499 * proc-events.c: Likewise.
6500
6501 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
6502
6503 * symfile.c (symfile_free_objfile): Remove restriction to
6504 OBJF_USERLOADED.
6505 * symfile-mem.c (symbol_file_add_from_memory): Call
6506 add_target_sections_of_objfile.
6507
6508 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6509
6510 * guile/scm-value.c (gdbscm_history_append_x): Use
6511 'vlscm_get_value_smob_arg_unsafe' instead of
6512 'vlscm_scm_to_value'.
6513
6514 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6515
6516 PR mi/15806
6517 * utils.c (printchar): Don't escape at all if quoter is NUL.
6518 Update function documentation to clarify effect of parameter
6519 QUOTER.
6520 * remote.c (escape_buffer): Pass '\\' as the quoter to
6521 fputstrn_unfiltered.
6522 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6523 generate the output.
6524 (mi_solib_unloaded): Same.
6525
6526 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6527
6528 * development.sh: Delete.
6529 * Makefile.in (config.status): Adjust dependency on development.sh.
6530 * configure.ac: Adjust development.sh source call.
6531 * configure: Regenerate.
6532
6533 2014-06-04 Doug Evans <xdje42@gmail.com>
6534
6535 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6536 is_scheme_bkpt, spec.
6537 (bpscm_make_breakpoint_smob): Initialize new members.
6538 (gdbscm_create_breakpoint_x): Split into two ...
6539 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6540 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6541 (scheme_function breakpoint_functions): Update.
6542 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6543 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6544 register-breakpoint!.
6545
6546 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6547
6548 PR server/17023
6549 * mem-break.c (z_type_supported): Return zero if
6550 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6551
6552 2014-06-04 Tom Tromey <tromey@redhat.com>
6553
6554 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6555 value_from_contents_and_address_unresolved.
6556 (ada_template_to_fixed_record_type_1): Likewise.
6557 (ada_which_variant_applies): Likewise.
6558 * value.h (value_from_contents_and_address_unresolved): Declare.
6559 * value.c (value_from_contents_and_address_unresolved): New
6560 function.
6561 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6562 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6563 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6564
6565 2014-06-04 Tom Tromey <tromey@redhat.com>
6566
6567 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6568
6569 2014-06-04 Tom Tromey <tromey@redhat.com>
6570
6571 * procfs.c (procfs_attach): Make "args" const.
6572 * windows-nat.c (windows_attach): Make "args" const.
6573 * nto-procfs.c (procfs_attach): Make "args" const.
6574 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6575 * go32-nat.c (go32_attach): Make "args" const.
6576 * gnu-nat.c (gnu_attach): Make "args" const.
6577 * darwin-nat.c (darwin_attach): Make "args" const.
6578 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6579 * linux-nat.c (linux_nat_attach): Make "args" const.
6580 * remote.c (extended_remote_attach_1, extended_remote_attach):
6581 Make "args" const.
6582 * target.h (struct target_ops) <to_attach>: Make "args" const.
6583 (find_default_attach): Likewise.
6584 * utils.c (parse_pid_to_attach): Make "args" const.
6585 * utils.h (parse_pid_to_attach): Update.
6586
6587 2014-06-04 Tom Tromey <tromey@redhat.com>
6588
6589 * target-delegates.c: Rebuild.
6590 * target.c (default_thread_address_space): New function.
6591 (target_thread_address_space): Simplify.
6592 * target.h (struct target_ops) <to_thread_address_space>: Add
6593 TARGET_DEFAULT_FUNC.
6594
6595 2014-06-04 Doug Evans <xdje42@gmail.com>
6596
6597 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6598
6599 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6600
6601 * record-btrace.c: Include event-loop.h and inf-loop.h.
6602 (record_btrace_resume_exec_dir)
6603 (record_btrace_async_inferior_event_handler)
6604 (record_btrace_handle_async_inferior_event): New.
6605 (record_btrace_open): Create async event handler.
6606 (record_btrace_close): Delete async event handler.
6607 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6608 Mark async event handler.
6609 (record_btrace_execution_direction): New.
6610 (init_record_btrace_ops): Initialize to_execution_direction.
6611
6612 2014-06-03 Doug Evans <xdje42@gmail.com>
6613
6614 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6615 (gdbscm_make_parameter): Ditto.
6616
6617 2014-06-03 Doug Evans <dje@google.com>
6618
6619 * exec.c (exec_close_1): Call clear_section_table instead of
6620 resize_section_table.
6621 (clear_section_table): New function.
6622 (resize_section_table): Make static. Rename arg num_added to
6623 adjustment.
6624 * exec.h (clear_section_table): Declare.
6625 (resize_section_table): Delete.
6626 * progspace.c (release_program_space): Call clear_section_table
6627 instead of resize_section_table.
6628
6629 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6630
6631 * NEWS (Python Scripting): Add entry about the new xmethods
6632 feature.
6633
6634 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6635
6636 * python/py-xmethods.c: New file.
6637 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6638 (objfpy_dealloc): XDECREF on the new xmethods field.
6639 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6640 field.
6641 (objfpy_get_xmethods): New function.
6642 (objfile_getset): New entry 'xmethods'.
6643 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6644 (pspy_dealloc): XDECREF on the new xmethods field.
6645 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6646 field.
6647 (pspy_get_xmethods): New function.
6648 (pspace_getset): New entry 'xmethods'.
6649 * python/python-internal.h: Add declarations for new functions.
6650 * python/python.c (_initialize_python): Invoke
6651 gdbpy_initialize_xmethods.
6652 * python/lib/gdb/__init__.py (xmethods): New
6653 attribute.
6654 * python/lib/gdb/xmethod.py: New file.
6655 * python/lib/gdb/command/xmethods.py: New file.
6656
6657 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6658
6659 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6660 best match method returned by find_overload_match is an xmethod.
6661 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6662 the best matching operator returned by find_overload_match is an
6663 xmethod.
6664 * valops.c: #include "extension.h".
6665 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6666 Return void. The list of matching source methods is returned in
6667 "fn_list" and a vector of matching debug method workers is
6668 returned in "xm_worker_vec". Update all callers.
6669 (value_find_oload_method_list): Likewise.
6670 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6671 non-NULL, then the index of the best matching method in this
6672 vector is returned. Update all callers.
6673 (find_overload_match): Include xmethods while performing overload
6674 resolution.
6675
6676 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6677
6678 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6679 * extension-priv.h (struct extension_language_ops): Add the
6680 xmethod interface.
6681 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6682 get_matching_xmethod_workers, get_xmethod_argtypes,
6683 invoke_xmethod, free_xmethod_worker,
6684 free_xmethod_worker_vec): New functions.
6685 * extension.h: #include "common/vec.h".
6686 New function declarations.
6687 (struct xmethod_worker): New struct.
6688 (VEC (xmethod_worker_ptr)): New vector type.
6689 (xmethod_worker_ptr): New typedef.
6690 (xmethod_worker_vec): Likewise.
6691 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6692 builtin_type.
6693 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6694 (struct builtin_type): New field "xmethod".
6695 * valarith.c (value_ptradd): Assert that the value argument is not
6696 lval_xcallable.
6697 * valops.c (value_must_coerce_to_target): Return 0 for
6698 lval_xcallable values.
6699 * value.c (struct value): New field XM_WORKER in the field
6700 LOCATION.
6701 (value_address, value_raw_address): Return 0 for lval_xcallable
6702 values.
6703 (set_value_address): Assert that the value is not an
6704 lval_xcallable.
6705 (value_free): Free the associated xmethod worker when freeing
6706 lval_xcallable values.
6707 (set_value_component_location): Assert that the WHOLE value is not
6708 lval_xcallable.
6709 (value_of_xmethod, call_xmethod): New functions.
6710 * value.h: Declare "struct xmethod_worker".
6711 Declare new functions value_of_xmethod, call_xmethod.
6712
6713 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6714 Pedro Alves <palves@redhat.com>
6715
6716 PR breakpoints/17000
6717 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6718 New function, extracted from software_breakpoint_inserted_here_p.
6719 (software_breakpoint_inserted_here_p): Replace factored out code
6720 by call to find_non_raw_software_breakpoint_inserted_here.
6721 (bp_target_info_copy_insertion_state): New function.
6722 (bkpt_insert_location): Handle the case of a single-step
6723 breakpoint already inserted at the same address.
6724 (bkpt_remove_location): Handle the case of a single-step
6725 breakpoint still inserted at the same address.
6726 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6727 breakpoint already inserted at the same address.
6728 (deprecated_remove_raw_breakpoint): Handle the case of a
6729 non-raw breakpoint still inserted at the same address.
6730 (find_single_step_breakpoint): New function, extracted from
6731 single_step_breakpoint_inserted_here_p.
6732 (find_single_step_breakpoint): New function,
6733 factored out from single_step_breakpoint_inserted_here_p.
6734 (single_step_breakpoint_inserted_here_p): Reimplement.
6735
6736 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6737
6738 Pushed by Joel Brobecker <brobecker@adacore.com>
6739 * source.c (show_substitute_path_command): Fix display of matching
6740 substitution rules.
6741
6742 2014-06-03 Gary Benson <gbenson@redhat.com>
6743
6744 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6745
6746 2014-06-02 Doug Evans <xdje42@gmail.com>
6747
6748 Add parameter support for Guile.
6749 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6750 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6751 (scm-param.o): New rule.
6752 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6753 (gdbscm_misc_error): Declare.
6754 (gdbscm_canonicalize_command_name): Declare.
6755 (gdbscm_scm_to_host_string): Declare.
6756 (gdbscm_scm_from_host_string): Declare.
6757 (gdbscm_initialize_parameters): Declare.
6758 * guile/guile.c (initialize_gdb_module): Call
6759 gdbscm_initialize_parameters.
6760 * guile/lib/gdb.scm: Export parameter symbols.
6761 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6762 cmdscm_canonicalize_name and made public. All callers updated.
6763 * guile/scm-exception.c (gdbscm_misc_error): New function.
6764 * guile/scm-param.c: New file.
6765 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6766 (gdbscm_scm_to_host_string): New function.
6767 (gdbscm_scm_from_host_string): New function.
6768 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6769
6770 2014-06-02 Doug Evans <xdje42@gmail.com>
6771
6772 Add command support for Guile.
6773 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6774 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6775 (scm-cmd.o): New rule.
6776 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6777 (gdbscm_user_error_p): Declare.
6778 (gdbscm_parse_command_name): Declare.
6779 (gdbscm_valid_command_class_p): Declare.
6780 (gdbscm_initialize_commands): Declare.
6781 * guile/guile.c (initialize_gdb_module): Call
6782 gdbscm_initialize_commands.
6783 * guile/lib/gdb.scm: Export command symbols.
6784 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6785 (throw-user-error): New function.
6786 * guile/scm-cmd.c: New file.
6787 * guile/scm-exception.c (user_error_symbol): New static global.
6788 (gdbscm_user_error_p): New function.
6789 (gdbscm_initialize_exceptions): Set user_error_symbol.
6790 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6791
6792 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6793
6794 * top.c (command_loop): Handle comments here...
6795 (command_line_input): ... not here.
6796
6797 2014-06-02 Doug Evans <xdje42@gmail.com>
6798
6799 Add progspace support for Guile.
6800 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6801 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6802 (scm-progspace.o): New rule.
6803 * guile/guile-internal.h (pspace_smob): New typedef.
6804 (psscm_pspace_smob_pretty_printers): Declare.
6805 (psscm_pspace_smob_from_pspace): Declare.
6806 (psscm_scm_from_pspace): Declare.
6807 * guile/guile.c (initialize_gdb_module): Call
6808 gdbscm_initialize_pspaces.
6809 * guile/lib/gdb.scm: Export progspace symbols.
6810 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6811 support.
6812 (append-pretty-printer!): Ditto.
6813 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6814 Implement.
6815 * guile/scm-progspace.c: New file.
6816
6817 2014-06-03 Alan Modra <amodra@gmail.com>
6818
6819 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6820 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6821
6822 2014-06-02 Doug Evans <dje@google.com>
6823
6824 Add support for skeletonless type units.
6825 * dwarf2read.c (struct dwarf2_per_objfile): New member
6826 n_allocated_type_units.
6827 (struct dwarf2_per_objfile) <tu_stats>: New member
6828 nr_all_type_units_reallocs.
6829 (create_signatured_type_table_from_index): Initialize
6830 n_allocated_type_units
6831 (create_all_type_units): Ditto.
6832 (add_type_unit): Move up in file. New arg slot.
6833 All callers updated. Increase space for all_type_units more
6834 efficiently.
6835 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6836 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6837 (lookup_dwp_signatured_type): Ditto.
6838 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6839 All callers updated.
6840 (build_type_psymtabs_1): Leave type_unit_groups as
6841 NULL if no TUs present.
6842 (print_tu_stats): New function.
6843 (process_skeletonless_type_unit): New function.
6844 (process_dwo_file_for_skeletonless_type_units): New
6845 function.
6846 (process_skeletonless_type_units): New function.
6847 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6848 Call print tu_stats if debugging enabled.
6849
6850 2014-06-02 Pedro Alves <palves@redhat.com>
6851
6852 * breakpoint.c (build_target_command_list): Don't build a command
6853 list if we have any duplicate location that isn't a dprintf.
6854
6855 2014-06-02 Pedro Alves <palves@redhat.com>
6856
6857 * breakpoint.c (dprintf_breakpoint_hit): New function.
6858 (initialize_breakpoint_ops): Install it as dprintf's
6859 breakpoint_hit method.
6860
6861 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6862
6863 * source.c (substitute_path_rule_matches): Simplify using
6864 filename_ncmp instead of FILENAME_CMP.
6865
6866 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6867
6868 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6869
6870 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6871
6872 * configure.ac: When Guile is available, check for the
6873 availability of 'scm_new_smob'.
6874 * configure, config.h.in: Regenerate.
6875 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6876 function.
6877
6878 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6879
6880 * frame.c (struct frame_info): Add stop_string field.
6881 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6882 (get_prev_frame_always): Old content moved into
6883 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6884 TRY_CATCH, handle MEMORY_ERROR exceptions.
6885 (frame_stop_reason_string): New function definition.
6886 * frame.h (unwind_stop_reason_to_string): Extend comment to
6887 mention frame_stop_reason_string.
6888 (frame_stop_reason_string): New function declaration.
6889 * stack.c (frame_info): Switch to frame_stop_reason_string.
6890 (backtrace_command_1): Switch to frame_stop_reason_string.
6891 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6892 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6893 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6894
6895 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6896
6897 * frame.c (frame_stop_reason_string): Rename to ...
6898 (unwind_stop_reason_to_string): this.
6899 * frame.h (frame_stop_reason_string): Rename to ...
6900 (unwind_stop_reason_to_string): this.
6901 * stack.c (frame_info): Update call to frame_stop_reason_string.
6902 (backtrace_command_1): Likewise.
6903 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6904 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6905
6906 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6907
6908 * frame.c (remove_prev_frame): New function.
6909 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6910 remove_prev_frame.
6911
6912 2014-05-29 Pedro Alves <palves@redhat.com>
6913
6914 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6915 and make it const. When a single-step decays to a continue,
6916 clear 'step', not 'hw_step'. Pass whether the caller wanted
6917 to step to user_visible_resume_ptid, not what we ask the
6918 target to do.
6919
6920 2014-05-29 Pedro Alves <palves@redhat.com>
6921
6922 * infrun.c (process_event_stop_test, handle_step_into_function)
6923 (handle_step_into_function_backward): Adjust.
6924 Don't set the even thread's stop_step and call stop_waiting before
6925 calling end_stepping_range. Instead do that ...
6926 (end_stepping_range): ... here. Take an ecs pointer parameter.
6927
6928 2014-05-29 Pedro Alves <palves@redhat.com>
6929
6930 * infrun.c (stop_stepping): Rename to ...
6931 (stop_waiting): ... this.
6932 (proceed): Update comment.
6933 (process_event_stop_test, handle_inferior_event)
6934 (handle_signal_stop, handle_step_into_function)
6935 (handle_step_into_function_backward): Update.
6936
6937 2014-05-29 Pedro Alves <palves@redhat.com>
6938
6939 * infcall.c (run_inferior_call): Don't check whether the current
6940 thread is running after the proceed call.
6941
6942 2014-05-29 Pedro Alves <palves@redhat.com>
6943 Tom Tromey <tromey@redhat.com>
6944
6945 * NEWS: Mention "maint set target-async", "set mi-async", and that
6946 background execution commands are now always available.
6947 * target.h (target_async_permitted): Update comment.
6948 * target.c (target_async_permitted, target_async_permitted_1):
6949 Default to 1.
6950 (set_target_async_command): Rename to ...
6951 (maint_set_target_async_command): ... this.
6952 (show_target_async_command): Rename to ...
6953 (maint_show_target_async_command): ... this.
6954 (_initialize_target): Adjust.
6955 * infcmd.c (prepare_execution_command): Make extern.
6956 * inferior.h (prepare_execution_command): Declare.
6957 * infrun.c (set_observer_mode): Leave target async alone.
6958 * mi/mi-interp.c (mi_interpreter_init): Install
6959 mi_on_sync_execution_done as sync_execution_done observer.
6960 (mi_on_sync_execution_done): New function.
6961 (mi_execute_command_input_handler): Don't print the prompt if we
6962 just started a synchronous command with an async target.
6963 (mi_on_resume): Check sync_execution before printing prompt.
6964 * mi/mi-main.h (mi_async_p): Declare.
6965 * mi/mi-main.c: Include gdbcmd.h.
6966 (mi_async_p): New function.
6967 (mi_async, mi_async_1): New globals.
6968 (set_mi_async_command, show_mi_async_command, mi_async): New
6969 functions.
6970 (exec_continue): Call prepare_execution_command.
6971 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6972 (mi_execute_async_cli_command): Use mi_async_p.
6973 (_initialize_mi_main): Install "set mi-async". Make
6974 "target-async" a deprecated alias.
6975
6976 2014-05-29 Pedro Alves <palves@redhat.com>
6977
6978 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6979 (_initialize_cli_interp): Adjust.
6980 * event-loop.c: Include "observer.h".
6981 (start_event_loop): Notify 'command_error' observers instead of
6982 calling display_gdb_prompt. Remove FIXME comment.
6983 * event-top.c (display_gdb_prompt): Remove call into the
6984 interpreters.
6985 * inf-loop.c: Include "observer.h".
6986 (inferior_event_handler): Notify 'command_error' observers instead
6987 of calling display_gdb_prompt.
6988 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6989 observers instead of calling display_gdb_prompt.
6990 * interps.c (interp_set): Don't call display_gdb_prompt.
6991 (current_interp_display_prompt_p): Delete.
6992 * interps.h (interp_prompt_p): Delete declaration.
6993 (interp_prompt_p_ftype): Delete.
6994 (struct interp_procs) <prompt_proc_p>: Delete field.
6995 (current_interp_display_prompt_p): Delete declaration.
6996 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6997 (_initialize_mi_interp): Adjust.
6998 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6999 'command_error' observers.
7000 (tui_on_sync_execution_done, tui_on_command_error): New
7001 functions.
7002 (tui_display_prompt_p): Delete.
7003 (_initialize_tui_interp): Adjust.
7004
7005 2014-05-29 Pedro Alves <palves@redhat.com>
7006
7007 PR gdb/13860
7008 * cli/cli-interp.c: Include infrun.h and observer.h.
7009 (cli_uiout, cli_interp): New globals.
7010 (cli_on_signal_received, cli_on_end_stepping_range)
7011 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7012 functions.
7013 (cli_interpreter_init): Install them as 'end_stepping_range',
7014 'signal_received' 'signal_exited', 'exited' and 'no_history'
7015 observers.
7016 (_initialize_cli_interp): Remove cli_interp local.
7017 * infrun.c (handle_inferior_event): Call the several stop reason
7018 observers instead of printing the stop reason directly.
7019 (end_stepping_range): New function.
7020 (print_end_stepping_range_reason, print_signal_exited_reason)
7021 (print_exited_reason, print_signal_received_reason)
7022 (print_no_history_reason): Make static, and add an uiout
7023 parameter. Print to that instead of to CURRENT_UIOUT.
7024 * infrun.h (print_end_stepping_range_reason)
7025 (print_signal_exited_reason, print_exited_reason)
7026 (print_signal_received_reason print_no_history_reason): New
7027 declarations.
7028 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7029 'mi_uiout'.
7030 <cli_uiout>: New field.
7031 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7032 uiout for CLI output. Install 'signal_received',
7033 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7034 observers.
7035 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7036 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7037 (mi_on_no_history): New functions.
7038 (ui_out_free_cleanup): Delete function.
7039 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7040 instead use the one already stored in the MI interpreter data.
7041 (mi_ui_out): Adjust.
7042 * tui/tui-interp.c: Include infrun.h and observer.h.
7043 (tui_interp): New global.
7044 (tui_on_signal_received, tui_on_end_stepping_range)
7045 (tui_on_signal_exited, tui_on_exited)
7046 (tui_on_no_history): New functions.
7047 (tui_init): Install them as 'end_stepping_range',
7048 'signal_received' 'signal_exited', 'exited' and 'no_history'
7049 observers.
7050 (_initialize_tui_interp): Delete tui_interp local.
7051
7052 2014-05-29 Pedro Alves <palves@redhat.com>
7053
7054 PR gdb/15713
7055 * linux-nat.c (linux_nat_resume_callback): Rename the second
7056 parameter to 'except'. Skip LP if it points to EXCEPT.
7057 (linux_nat_resume): Don't mark the event lwp as not stopped
7058 before resuming sibling lwps. Instead ask
7059 linux_nat_resume_callback to skip the event lwp. Mark it as not
7060 stopped after actually resuming it.
7061 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7062 resuming it.
7063 (wait_lwp): Mark the lwp as stopped here.
7064 (stop_wait_callback): Mark the lwp as not stopped right after
7065 resuming it. Don't mark lwps as stopped here.
7066 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7067 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7068
7069 2014-05-29 Pedro Alves <palves@redhat.com>
7070
7071 PR PR15693
7072 * infrun.c (resume): Determine how much to resume depending on
7073 whether the caller wanted a step, not whether we can hardware step
7074 the target. Mark all threads that we intend to run as running,
7075 unless we're calling an inferior function.
7076 (normal_stop): If the thread is running an infcall, don't finish
7077 thread state.
7078 * target.c (target_resume): Don't mark threads as running here.
7079
7080 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7081
7082 * serial.c (_initialize_serial): Remove support for
7083 the "set remotebaud" and "show remotebaud" commands.
7084 * NEWS: Add entry documenting the removal of that command.
7085
7086 2014-05-28 Yao Qi <yao@codesourcery.com>
7087
7088 * charset.c: Fix typo in comments.
7089
7090 2014-05-27 Gary Benson <gbenson@redhat.com>
7091
7092 * utils.c (internal_vproblem): Prompt for a bug report.
7093
7094 2014-05-26 Andy Wingo <wingo@igalia.com>
7095
7096 * guile/scm-arch.c (arscm_mark_arch_smob):
7097 * guile/scm-block.c (bkscm_mark_block_smob)
7098 (bkscm_mark_block_syms_progress_smob):
7099 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7100 * guile/scm-exception.c (exscm_mark_exception_smob):
7101 * guile/scm-frame.c (frscm_mark_frame_smob):
7102 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7103 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7104 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7105 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7106 (ppscm_mark_pretty_printer_worker_smob):
7107 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7108 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7109 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7110 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7111 mark functions.
7112 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7113 function.
7114
7115 2014-05-26 Andy Wingo <wingo@igalia.com>
7116 Doug Evans <xdje42@gmail.com>
7117
7118 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7119 empty_base_class. All uses updated.
7120 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7121 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7122 Adapt all callers.
7123 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7124 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7125 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7126 (gdbscm_gsmob_has_property_p, add_property_name)
7127 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7128 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7129 (gdb-object-has-property?, gdb-object-properties): Remove.
7130 (gdb-object-kind): Renamed from gsmob-kind.
7131
7132 2014-05-26 Andy Wingo <wingo@igalia.com>
7133
7134 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7135 * configure: Regenerate.
7136
7137 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7138
7139 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7140
7141 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7142
7143 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7144 (replay_memory_access_read_only, replay_memory_access_read_write)
7145 (replay_memory_access_types, replay_memory_access)
7146 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7147 (cmd_set_record_btrace, cmd_show_record_btrace)
7148 (cmd_show_replay_memory_access): New.
7149 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7150 (record_btrace_remove_breakpoint): Replace
7151 record_btrace_allow_memory_access with replay_memory_access.
7152 (_initialize_record_btrace): Add commands.
7153 * NEWS: Announce it.
7154
7155 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7156
7157 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7158
7159 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7160
7161 * MAINTAINERS (Write After Approval): Move self back from
7162 paper trail.
7163
7164 2014-05-22 Pedro Alves <palves@redhat.com>
7165
7166 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7167 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7168 (disable_randomization, enum exec_direction_kind)
7169 (execution_direction, stop_registers, start_remote)
7170 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7171 (wait_for_inferior, normal_stop, get_last_target_status)
7172 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7173 (insert_step_resume_breakpoint_at_sal)
7174 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7175 (set_step_info, print_stop_event, signal_stop_state)
7176 (signal_print_state, signal_pass_state, signal_stop_update)
7177 (signal_print_update, signal_pass_update)
7178 (update_signals_program_target, clear_exit_convenience_vars)
7179 (displaced_step_dump_bytes, update_observer_mode)
7180 (signal_catch_update, gdb_signal_from_command): Move
7181 declarations ...
7182 * infrun.h: ... to this new file.
7183 * amd64-tdep.c: Include infrun.h.
7184 * annotate.c: Include infrun.h.
7185 * arch-utils.c: Include infrun.h.
7186 * arm-linux-tdep.c: Include infrun.h.
7187 * arm-tdep.c: Include infrun.h.
7188 * break-catch-sig.c: Include infrun.h.
7189 * breakpoint.c: Include infrun.h.
7190 * common/agent.c: Include infrun.h instead of inferior.h.
7191 * corelow.c: Include infrun.h.
7192 * event-top.c: Include infrun.h.
7193 * go32-nat.c: Include infrun.h.
7194 * i386-tdep.c: Include infrun.h.
7195 * inf-loop.c: Include infrun.h.
7196 * infcall.c: Include infrun.h.
7197 * infcmd.c: Include infrun.h.
7198 * infrun.c: Include infrun.h.
7199 * linux-fork.c: Include infrun.h.
7200 * linux-nat.c: Include infrun.h.
7201 * linux-thread-db.c: Include infrun.h.
7202 * monitor.c: Include infrun.h.
7203 * nto-tdep.c: Include infrun.h.
7204 * procfs.c: Include infrun.h.
7205 * record-btrace.c: Include infrun.h.
7206 * record-full.c: Include infrun.h.
7207 * remote-m32r-sdi.c: Include infrun.h.
7208 * remote-mips.c: Include infrun.h.
7209 * remote-notif.c: Include infrun.h.
7210 * remote-sim.c: Include infrun.h.
7211 * remote.c: Include infrun.h.
7212 * reverse.c: Include infrun.h.
7213 * rs6000-tdep.c: Include infrun.h.
7214 * s390-linux-tdep.c: Include infrun.h.
7215 * solib-irix.c: Include infrun.h.
7216 * solib-osf.c: Include infrun.h.
7217 * solib-svr4.c: Include infrun.h.
7218 * target.c: Include infrun.h.
7219 * top.c: Include infrun.h.
7220 * windows-nat.c: Include infrun.h.
7221 * mi/mi-interp.c: Include infrun.h.
7222 * mi/mi-main.c: Include infrun.h.
7223 * python/py-threadevent.c: Include infrun.h.
7224
7225 2014-05-22 Pedro Alves <palves@redhat.com>
7226
7227 * infrun.c (handle_inferior_event): Store the exit code for
7228 --return-child-result here, instead of ...
7229 (print_exited_reason): ... here.
7230
7231 2014-05-21 Pedro Alves <palves@redhat.com>
7232
7233 PR gdb/13860
7234 * gdbthread.h (struct thread_control_state): New field
7235 `command_interp'.
7236 * infrun.c (follow_fork): Copy the new thread control field to the
7237 child fork thread.
7238 (clear_proceed_status_thread): Clear the new thread control field.
7239 (proceed): Set the new thread control field.
7240 * interps.h (command_interp): Declare.
7241 * interps.c (command_interpreter): New global.
7242 (command_interp): New function.
7243 (interp_exec): Set `command_interpreter' while here.
7244 * cli-out.c (cli_uiout_dtor): New function.
7245 (cli_ui_out_impl): Install it.
7246 * mi/mi-interp.c: Include cli-out.h.
7247 (mi_cmd_interpreter_exec): Add comment.
7248 (restore_current_uiout_cleanup): New function.
7249 (ui_out_free_cleanup): New function.
7250 (mi_on_normal_stop): If finishing an execution command started by
7251 a CLI command, or any kind of breakpoint-like event triggered,
7252 print the stop event to the output (CLI) stream.
7253 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7254
7255 2014-05-21 Pedro Alves <palves@redhat.com>
7256
7257 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7258 current source line having changed.
7259 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7260 * infrun.c (normal_stop): Adjust call to
7261 set_current_sal_from_frame.
7262 * source.c (clear_lines_listed_range): New function.
7263 (set_current_source_symtab_and_line, identify_source_line): Clear
7264 the lines listed range.
7265 (line_info): Handle the first "info line" after the current source
7266 line having changed.
7267 * stack.c (print_stack_frame): Remove center handling.
7268 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7269 center sal.line.
7270
7271 2014-05-21 Pedro Alves <palves@redhat.com>
7272
7273 * inf-child.c (inf_child_mourn_inferior): New function.
7274 * inf-child.h (inf_child_mourn_inferior): New declaration.
7275 * darwin-nat.c (darwin_mourn_inferior): Use
7276 inf_child_mourn_inferior.
7277 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7278 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7279 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7280 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7281 * windows-nat.c (windows_mourn_inferior): Likewise.
7282
7283 2014-05-21 Doug Evans <xdje42@gmail.com>
7284
7285 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7286
7287 2014-05-21 Doug Evans <xdje42@gmail.com>
7288
7289 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7290 (gdbscm_out_of_range_error): Ditto.
7291 (gdbscm_memory_error): Ditto.
7292 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7293 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7294 (gdbscm_out_of_range_error): Update.
7295 (gdbscm_memory_error): Update.
7296 (gdbscm_scm_to_target_string_unsafe): Delete.
7297
7298 2014-05-21 Pedro Alves <palves@redhat.com>
7299
7300 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7301 globals.
7302 (inf_child_open_target): New function.
7303 (inf_child_open): Use inf_child_open_target to push the target
7304 instead of erroring out.
7305 (inf_child_disconnect, inf_child_close)
7306 (inf_child_maybe_unpush_target): New functions.
7307 (inf_child_target): Install inf_child_disconnect and
7308 inf_child_close. Store a pointer to the returned object.
7309 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7310 declarations.
7311 * target.c (auto_connect_native_target): New global.
7312 (show_default_run_target): New function.
7313 (find_default_run_target): Return NULL if automatically connecting
7314 to the native target is disabled.
7315 (_initialize_target): Install set/show auto-connect-native-target.
7316 * NEWS: Mention "set auto-connect-native-target", and "target
7317 native".
7318 * linux-nat.c (super_close): New global.
7319 (linux_nat_close): Call super_close.
7320 (linux_nat_add_target): Store a pointer to the base class's
7321 to_close method.
7322 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7323 inf_child_maybe_unpush.
7324 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7325 already pushed.
7326 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7327 the inferior. Use inf_child_maybe_unpush_target.
7328 (inf_ttrace_attach): Don't push the target if it is already
7329 pushed.
7330 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7331 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7332 after mourning the inferior. Use inf_child_maybe_unpush_target.
7333 (darwin_attach_pid): Don't push the target if it is already
7334 pushed.
7335 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7336 mourning the inferior. Use inf_child_maybe_unpush_target.
7337 (gnu_detach): Use inf_child_maybe_unpush_target.
7338 * go32-nat.c (go32_create_inferior): Don't push the target if it
7339 is already pushed.
7340 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7341 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7342 (procfs_open): Rename to ...
7343 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7344 comments. Can target_preopen before changing node. Call
7345 inf_child_open_target to push the target explicitly.
7346 (procfs_attach): Don't push the target if it is already pushed.
7347 (procfs_detach): Use inf_child_maybe_unpush_target.
7348 (procfs_create_inferior): Don't push the target if it is already
7349 pushed.
7350 (nto_native_ops): New global.
7351 (procfs_open): Reimplement.
7352 (procfs_native_open): New function.
7353 (init_procfs_targets): Install procfs_native_open as to_open of
7354 "target native". Store a pointer to the "native" target in
7355 nto_native_ops.
7356 * procfs.c (procfs_attach): Don't push the target if it is already
7357 pushed.
7358 (procfs_detach): Use inf_child_maybe_unpush_target.
7359 (procfs_mourn_inferior): Only unpush the target after mourning the
7360 inferior. Use inf_child_maybe_unpush_target.
7361 (procfs_init_inferior): Don't push the target if it is already
7362 pushed.
7363 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7364 if it is already pushed.
7365
7366 2014-05-21 Pedro Alves <palves@redhat.com>
7367
7368 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7369 and "procfs" targets are now called "native" instead.
7370
7371 2014-05-21 Pedro Alves <palves@redhat.com>
7372
7373 * go32-nat.c (go32_open): Delete.
7374 (go32_target): Don't override the to_open method.
7375
7376 2014-05-21 Pedro Alves <palves@redhat.com>
7377
7378 * nto-procfs.c (procfs_can_run): New function.
7379 (nto_procfs_ops): New global.
7380 (init_procfs_targets): New, based on procfs_target. Install
7381 "target native" in addition to "target procfs".
7382 (_initialize_procfs): Call init_procfs_targets instead of adding
7383 the target here.
7384
7385 2014-05-21 Pedro Alves <palves@redhat.com>
7386
7387 * windows-nat.c (windows_target): Don't override to_shortname,
7388 to_longname or to_doc.
7389
7390 2014-05-21 Pedro Alves <palves@redhat.com>
7391
7392 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7393 to_doc.
7394
7395 2014-05-21 Pedro Alves <palves@redhat.com>
7396
7397 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7398 to_shortname, to_longname or to_doc.
7399
7400 2014-05-21 Pedro Alves <palves@redhat.com>
7401
7402 * go32-nat.c (go32_target): Don't override to_shortname,
7403 to_longname or to_doc.
7404
7405 2014-05-21 Pedro Alves <palves@redhat.com>
7406
7407 * inf-child.c (inf_child_open): Remove mention of "child".
7408 (inf_child_target): Rename target to "native" instead of "child".
7409
7410 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7411
7412 * Makefile.in (SFILES): Delete "regset.c".
7413 (COMMON_OBS): Delete "regset.o".
7414 * regset.c: Remove.
7415 * regset.h (regset_alloc): Delete prototype.
7416
7417 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7418
7419 * sparc-linux-tdep.c (sparc32_linux_gregset)
7420 (sparc32_linux_fpregset): New static regset structures.
7421 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7422 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7423 'fpregset' fields.
7424 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7425 (sparc64_linux_fpregset): New static regset structures.
7426 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7427 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7428 New static regset structures.
7429 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7430 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7431 New static regset structures.
7432 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7433 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7434 New static regset structures.
7435 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7436 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7437 New static regset structures.
7438 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7439
7440 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7441
7442 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7443 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7444 register maps ("regmaps") from "*regset" to "*regmap". Do this
7445 for all regmap types and variables.
7446 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7447 (sparc32_linux_supply_core_gregset)
7448 (sparc32_linux_collect_core_gregset)
7449 (sparc32_linux_supply_core_fpregset)
7450 (sparc32_linux_collect_core_fpregset): Likewise.
7451 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7452 (sparc_gregmap, sparc_fpregmap): ... these.
7453 (sparc_supply_gregset, sparc_collect_gregset)
7454 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7455 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7456 (_initialize_sparc_nat): Rename regmaps.
7457 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7458 (sparc_gregmap, sparc_fpregmap): ... these.
7459 (sparc_supply_gregset, sparc_collect_gregset)
7460 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7461 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7462 Rename macros to...
7463 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7464 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7465 Likewise.
7466 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7467 Rename to...
7468 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7469 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7470 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7471 regmaps.
7472 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7473 (sparc32_bsd_fpregset): Rename to...
7474 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7475 (sparc32_bsd_fpregmap): ... these.
7476 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7477 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7478 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7479 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7480 (struct sparc_gregmap, struct sparc_fpregmap)
7481 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7482 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7483 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7484 (sparc32_supply_regset, sparc32_collect_gregset)
7485 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7486 prototypes.
7487 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7488 (sparc64_linux_ptrace_gregmap): ... this.
7489 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7490 (_initialize_sparc64_linux_nat): Rename regmaps.
7491 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7492 (sparc64_linux_core_gregmap): ... this.
7493 (sparc64_linux_supply_core_gregset)
7494 (sparc64_linux_collect_core_gregset)
7495 (sparc64_linux_supply_core_fpregset)
7496 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7497 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7498 (sparc64_sol2_fpregset): Rename to...
7499 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7500 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7501 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7502 regmaps.
7503 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7504 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7505 (sparc64_bsd_fpregset): Rename to...
7506 (struct sparc_gregmap, sparc64_sol2_gregmap)
7507 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7508 (sparc64_bsd_fpregmap): ... these.
7509 (sparc64_supply_gregset, sparc64_collect_gregset)
7510 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7511 prototypes.
7512 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7513 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7514 (sparc64fbsd_gregmap): ... this.
7515 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7516 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7517 Rename regmaps.
7518 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7519 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7520 (sparc64nbsd_collect_fpregset): Likewise.
7521 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7522 (sparc64nbsd_gregmap): ... this.
7523 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7524 regmaps.
7525 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7526 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7527 (sparc64obsd_gregmap): ... this.
7528 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7529 regmaps.
7530 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7531 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7532 (sparc32nbsd_gregmap): ... this.
7533 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7534 regmaps.
7535
7536 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7537
7538 * score-tdep.c (score7_linux_gregset): New static regset
7539 structure.
7540 (score7_linux_regset_from_core_section): Remove dynamic regset
7541 allocation.
7542 (score_gdbarch_init): Drop allocation of tdep structure.
7543 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7544
7545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7546
7547 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7548 regset structures.
7549 (am33_regset_from_core_section): Remove dynamic regset
7550 allocations.
7551
7552 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7553
7554 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7555 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7556 structures.
7557 (mips_linux_regset_from_core_section): Remove dynamic regset
7558 allocations.
7559 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7560 'gregset64', 'fpregset', and 'fpregset64'.
7561 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7562 deleted tdep fields.
7563
7564 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7565
7566 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7567 regset structures.
7568 (amd64_regset_from_core_section): Remove dynamic regset
7569 allocations.
7570 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7571 structure.
7572 (amd64obsd_regset_from_core_section): Remove dynamic regset
7573 allocation.
7574 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7575 Likewise.
7576 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7577 x86-common regset supply function.
7578 * i386-tdep.c (i386_collect_gregset): Make static.
7579 (i386_gregset): New global regset structure.
7580 (i386_fpregset, i386_xstateregset): New static regset structures.
7581 (i386_regset_from_core_section): Remove dynamic regset
7582 allocations.
7583 (i386_gdbarch_init): Remove initialization of tdep fields
7584 'gregset', 'fpregset', and 'xstateregset'.
7585 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7586 'fpregset', and 'xstateregset'.
7587 (i386_collect_gregset): Remove prototype.
7588 (i386_gregset): New declaration.
7589 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7590 structure.
7591 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7592 allocation.
7593
7594 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595
7596 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7597 (arm_linux_vfpregset): New static regset structures.
7598 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7599 regset structures.
7600 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7601 and 'vfpregset' fields.
7602
7603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7604
7605 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7606 (aarch64_linux_fpregset): New static regset structures.
7607 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7608 of regset structures.
7609 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7610 'fpregset' fields.
7611
7612 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7613
7614 * regset.h (struct regset): Remove gdbarch field.
7615 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7616 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7617 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7618 Likewise.
7619 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7620 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7621 (ppc32_linux_vsxregset): Likewise.
7622 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7623 via the regcache instead of the regset.
7624 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7625 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7626 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7627 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7628 Likewise.
7629
7630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7631
7632 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7633 Constify structures.
7634 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7635 (alphanbsd_aout_gregset): Likewise.
7636 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7637 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7638 Likewise.
7639 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7640 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7641 Likewise.
7642 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7643 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7644 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7645 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7646 * m88k-tdep.c (m88k_gregset): Likewise.
7647 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7648 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7649 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7650 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7651 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7652 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7653 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7654 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7655 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7656 Likewise.
7657 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7658 * sh-tdep.h (sh_corefile_gregset): Likewise.
7659 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7660 * vax-tdep.c (vax_gregset): Likewise.
7661
7662 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7663
7664 Fix TLS access for -static -pthread.
7665 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7666 (try_thread_db_load_1): Initialize it.
7667 (thread_db_get_thread_local_address): Call it if LM is zero.
7668 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7669 * target.h (struct target_ops) (to_get_thread_local_address): Add
7670 load_module_addr comment.
7671
7672 2014-05-21 Pedro Alves <palves@redhat.com>
7673
7674 * dcache.c (dcache_read_memory_partial): If reading the cache line
7675 fails, fallback to reading just the memory the caller wanted.
7676
7677 2014-05-20 Doug Evans <dje@google.com>
7678
7679 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7680 instead of get_current_arch.
7681
7682 2014-05-20 Pedro Alves <palves@redhat.com>
7683
7684 * NEWS: Mention that compare-sections now works with all targets.
7685
7686 * remote.c (PACKET_qCRC): New enum value.
7687 (remote_verify_memory): Don't send qCRC if the target has no
7688 execution. Use packet_support/packet_ok. If the target doesn't
7689 support the qCRC packet, fallback to a deep memory copy.
7690 (compare_sections_command): Say "target image" instead of "remote
7691 executable".
7692 (_initialize_remote): Add PACKET_qCRC to the list of config
7693 packets that have no associated command. Extend comment.
7694 * target.c (simple_verify_memory, default_verify_memory): New
7695 function.
7696 * target.h (struct target_ops) <to_verify_memory>: Default to
7697 default_verify_memory.
7698 (simple_verify_memory): New declaration.
7699 * target-delegates.c: Regenerate.
7700
7701 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7702
7703 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7704
7705 2014-05-20 Hui Zhu <hui@codesourcery.com>
7706 Yao Qi <yao@codesourcery.com>
7707
7708 PR backtrace/16558
7709 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7710 and change address of sp and pc.
7711
7712 2014-05-19 Tom Tromey <tromey@redhat.com>
7713
7714 * gdbtypes.c (rank_function): Use XNEWVEC.
7715 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7716
7717 2014-05-19 Doug Evans <dje@google.com>
7718
7719 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7720 build_type_unit_groups and moved closer to only caller. Remove
7721 arguments. All references updated. Remove outdated .gdb_index
7722 comment.
7723 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7724 build_type_psymtabs_1.
7725
7726 2014-05-19 Doug Evans <dje@google.com>
7727
7728 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7729 n_type_unit_groups, all_type_unit_groups. All uses removed.
7730 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7731 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7732 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7733 (add_type_unit_group_to_table): Delete.
7734
7735 2014-05-19 Doug Evans <dje@google.com>
7736
7737 * eval.c (evaluate_subexp_standard): Add some comments.
7738
7739 2014-05-17 Doug Evans <xdje42@gmail.com>
7740
7741 * progspace.c (remove_program_space): Delete, unused.
7742 * progspace.h (remove_program_space): Ditto.
7743
7744 2014-05-17 Doug Evans <xdje42@gmail.com>
7745
7746 * inferior.c (prune_inferiors): Fix comment.
7747 (remove_inferior_command): Call prune_program_spaces.
7748
7749 2014-05-16 Doug Evans <dje@google.com>
7750
7751 New command line option -D.
7752 * NEWS: Mention it.
7753 * main.c (set_gdb_data_directory): New function.
7754 (captured_main): Recognize -D. Flag error for --data-directory "".
7755 Call set_gdb_data_directory.
7756 (print_gdb_help): Print --data-directory, -D.
7757 * main.h (set_gdb_data_directory): Declare.
7758 * top.c (staged_gdb_datadir): New static global.
7759 (set_gdb_datadir): Call set_gdb_data_directory
7760 (show_gdb_datadir): New function.
7761 (init_main): Update init of data-directory parameter.
7762
7763 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7764
7765 Import the "dirfd" gnulib module.
7766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7767 * gnulib/aclocal.m4: Update.
7768 * gnulib/config.in: Update.
7769 * gnulib/configure: Update.
7770 * gnulib/import/Makefile.am: Update.
7771 * gnulib/import/Makefile.in: Update.
7772 * gnulib/import/dirfd.c: New.
7773 * gnulib/import/m4/dirfd.m4: New.
7774 * gnulib/import/m4/gnulib-cache.m4: Update.
7775 * gnulib/import/m4/gnulib-comp.m4: Update.
7776
7777 2014-05-16 Pierre Muller <muller@sourceware.org>
7778 Yao Qi <yao@codesourcery.com>
7779
7780 * valprint.c (print_wchar): Move the code on checking whether
7781 W is a printable wide char to the default branch of switch
7782 statement below. Call wchar_printable instead of gdb_iswprint.
7783
7784 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7785
7786 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7787 ldr.w and ldrd instructions.
7788
7789 2014-05-15 Doug Evans <dje@google.com>
7790
7791 * dwarf2read.c (read_structure_type): Delete outdated comments.
7792
7793 2014-05-14 Tom Tromey <tromey@redhat.com>
7794
7795 * macrocmd.c (print_macro_definition): Reindent.
7796
7797 2014-05-13 Doug Evans <xdje42@gmail.com>
7798
7799 * python/py-cmd.c (cmdpy_completer): Add comment.
7800 (completers): Make const.
7801
7802 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7803
7804 * infrun.c (resume): Remove should_resume (unused). Move up
7805 declaration of resume_ptid.
7806
7807 2014-05-13 Tom Tromey <tromey@redhat.com>
7808
7809 * language.h (unop_type_check): Remove.
7810 (binop_type_check): Don't declare.
7811
7812 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7813
7814 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7815 call to regcache_raw_collect.
7816
7817 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7818
7819 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7820 mi_console->quote as the quoting character.
7821
7822 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7823
7824 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7825
7826 2014-04-29 Tom Tromey <tromey@redhat.com>
7827
7828 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7829 "show debug varobj".
7830
7831 2014-05-07 Kyle McMartin <kyle@redhat.com>
7832
7833 Pushed by Joel Brobecker <brobecker@adacore.com>.
7834 * aarch64-tdep.c (aarch64_software_single_step): New function.
7835 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7836 with aarch64_software_single_step.
7837
7838 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7839
7840 GDB 7.7.1 released.
7841
7842 2014-05-05 Keith Seitz <keiths@redhat.com>
7843
7844 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7845 variable or history value is successfully parsed.
7846
7847 2014-05-05 Yao Qi <yao@codesourcery.com>
7848 Pedro Alves <palves@redhat.com>
7849
7850 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7851 address of blocks that intersects the requested range. Trim
7852 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7853 sections.
7854 * ctf.c (ctf_xfer_partial): Likewise.
7855
7856 2014-05-05 Yao Qi <yao@codesourcery.com>
7857
7858 * printcmd.c (display_command): Remove the check to
7859 target_has_execution.
7860
7861 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7862
7863 * ppcobsd-nat.c: Include "obsd-nat.h".
7864 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7865 add_target.
7866 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7867
7868 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7869
7870 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7871 and 16-bit signed and unsigned arguments. Update comment.
7872 (stap_parse_probe_arguments): Extend code to handle such
7873 arguments. Use warning instead of complaint to notify about
7874 unrecognized bitness.
7875
7876 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7877
7878 PR breakpoints/16889
7879 * stap-probe.c (stap_parse_probe_arguments): Simplify
7880 check for non-prefixed probes (i.e., probes whose
7881 arguments do not start with "N@"). Always set the
7882 argument type to a sane value.
7883
7884 2014-05-01 David Taylor <dtaylor@emc.com>
7885
7886 * remote.c (compare_sections_command): Add -r option to compare
7887 all loadable read-only sections.
7888
7889 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7890
7891 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7892 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7893 Update all callers.
7894 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7895 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7896 Remove unused CORE_ADDR argument. Update all callers.
7897
7898 2014-04-29 Pedro Alves <palves@redhat.com>
7899
7900 * remote.c (struct packet_config) <detect>: Extend comment.
7901 (add_packet_config_cmd): Don't set the config's detect or support
7902 fields here.
7903 (init_all_packet_configs): Also initialize the config's 'detect'
7904 field.
7905 (reset_all_packet_configs_support): New function.
7906 (remote_open_1): Call reset_all_packet_configs_support instead of
7907 init_all_packet_configs.
7908 (_initialize_remote): Initialize all packet configs. Assert that
7909 all packets have an associated command, except a few known
7910 outliers.
7911
7912 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7913
7914 * dwarf2read.c (read_subrange_type): Handle dynamic
7915 DW_AT_lower_bound attributes.
7916
7917 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7918
7919 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7920 dynamic bounds before computing its upper bound.
7921 (ada_discrete_type_low_bound): Same as above with the lower bound.
7922
7923 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7924
7925 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7926 range types. Adjust the array handling implementation to
7927 take advantage of this change.
7928 (resolve_dynamic_range): New function, mostly extracted from
7929 resolve_dynamic_bounds.
7930 (resolve_dynamic_array): New function, mostly extracted from
7931 resolve_dynamic_bounds.
7932 (resolve_dynamic_bounds): Delete.
7933 (resolve_dynamic_type): Reimplement. Add handling of
7934 TYPE_CODE_RANGE types.
7935
7936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7937
7938 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7939 handling of parallel ___XA types.
7940
7941 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7942
7943 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7944 unnecessary second call to static_unwrap_type.
7945
7946 2014-04-27 Hui Zhu <hui@codesourcery.com>
7947
7948 * stack.c (print_frame_info): Call do_gdb_disassembly with
7949 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7950
7951 2014-04-26 Doug Evans <xdje42@gmail.com>
7952
7953 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7954
7955 2014-04-25 Pedro Alves <palves@redhat.com>
7956
7957 PR server/16255
7958 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7959 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7960 and newline from built string.
7961 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7962 (linux_ptrace_attach_fail_reason): ... this.
7963 * linux-nat.c (linux_nat_attach): Adjust to use
7964 linux_ptrace_attach_fail_reason.
7965
7966 2014-04-25 Pedro Alves <palves@redhat.com>
7967
7968 * remote.c (struct remote_state): Remove multi_process_aware,
7969 non_stop_aware, cond_tracepoints, cond_breakpoints,
7970 breakpoint_commands, fast_tracepoints, static_tracepoints,
7971 install_in_trace, disconnected_tracing,
7972 enable_disable_tracepoints, string_tracing, and
7973 augmented_libraries_svr4_read fields.
7974 (remote_multi_process_p): Move further below in the file.
7975 (struct packet_config): Add comments.
7976 (update_packet_config): Delete function.
7977 (show_packet_config_cmd): Use packet_config_support.
7978 (add_packet_config_cmd): Use NULL as set callback.
7979 (packet_ok): "set remote foo-packet"-style commands no longer
7980 change config->supported -- adjust.
7981 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7982 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7983 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7984 (PACKET_QNonStop, PACKET_multiprocess_feature)
7985 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7986 (PACKET_DisconnectedTracing_feature)
7987 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7988 (set_remote_protocol_packet_cmd): Delete function.
7989 (packet_config_support, packet_support): New functions.
7990 (set_remote_protocol_Z_packet_cmd): Don't call
7991 update_packet_config.
7992 (remote_query_attached, remote_pass_signals)
7993 (remote_program_signals, remote_threads_info)
7994 (remote_threads_extra_info, remote_start_remote): Use
7995 packet_support.
7996 (remote_start_remote): Use packet_config_support and
7997 packet_support.
7998 (init_all_packet_configs): Set all packets to unknown support,
7999 instead of calling update_packet_config.
8000 (remote_check_symbols): Use packet_support.
8001 (remote_supported_packet): Unconditionally set the packet config's
8002 support status.
8003 (remote_multi_process_feature, remote_non_stop_feature)
8004 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8005 (remote_breakpoint_commands_feature)
8006 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8007 (remote_install_in_trace_feature)
8008 (remote_disconnected_tracing_feature)
8009 (remote_enable_disable_tracepoint_feature)
8010 (remote_string_tracing_feature)
8011 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8012 (remote_protocol_features): Adjust to use remote_supported_packet
8013 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8014 "ConditionalTracepoints", "ConditionalBreakpoints",
8015 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8016 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8017 "EnableDisableTracepoints", and "tracenz".
8018 (remote_query_supported): Use packet_support.
8019 (remote_open_1): Adjust.
8020 (extended_remote_attach_1): Use packet_support. Switch on the
8021 result of packet_ok instead of checking whether the packet ended
8022 up disabled.
8023 (remote_vcont_resume): Use packet_support.
8024 (remote_resume, remote_stop_ns, fetch_register_using_p)
8025 (remote_prepare_to_store, store_register_using_P)
8026 (check_binary_download, remote_write_bytes): Use packet_support.
8027 (remote_vkill): Use packet_support. Switch on the result of
8028 packet_ok instead of checking whether the packet ended up
8029 disabled.
8030 (extended_remote_supports_disable_randomization): Use
8031 packet_support.
8032 (extended_remote_run): Switch on the result of packet_ok instead
8033 of checking whether the packet ended up disabled.
8034 (remote_insert_breakpoint, remote_remove_breakpoint)
8035 (remote_insert_watchpoint, remote_remove_watchpoint)
8036 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8037 packet_support.
8038 (remote_search_memory): Use packet_config_support.
8039 (remote_get_thread_local_address, remote_get_tib_address)
8040 (remote_hostio_send_command, remote_can_execute_reverse): Use
8041 packet_support.
8042 (remote_supports_cond_tracepoints)
8043 (remote_supports_cond_breakpoints)
8044 (remote_supports_fast_tracepoints)
8045 (remote_supports_static_tracepoints)
8046 (remote_supports_install_in_trace)
8047 (remote_supports_enable_disable_tracepoint)
8048 (remote_supports_string_tracing)
8049 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8050 the packet config says the feature is enabled or disabled.
8051 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8052 (remote_get_trace_status): Use packet_support.
8053 (remote_set_disconnected_tracing): Adjust to check whether the
8054 feature is enabled with packet_support.
8055 (remote_set_trace_buffer_size, remote_use_agent)
8056 (remote_can_use_agent, remote_supports_btrace): Use
8057 packet_support.
8058 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8059 Use packet_config_support.
8060 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8061 the packet config says the feature is enabled or disabled.
8062 (set_range_stepping): Use packet_support.
8063
8064 2014-04-25 Tom Tromey <tromey@redhat.com>
8065
8066 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8067 argument.
8068
8069 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8070
8071 * NEWS: Mention support for C99 variable length arrays.
8072
8073 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8074
8075 * ada-lang.c (standard_exc): Expand introductory comment.
8076
8077 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8078 Walfred Tedeschi <walfred.tedeschi@intel.com>
8079
8080 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8081 AVX512 registers.
8082 (amd64_linux_read_description): Add code to handle AVX512 xstate
8083 mask and return respective tdesc.
8084 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8085 and features/i386/x32-avx512-linux.c.
8086 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8087 (amd64_linux_core_read_description): Add code to handle AVX512
8088 xstate mask and return respective tdesc.
8089 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8090 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8091 calculation.
8092 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8093 (tdesc_amd64_avx512_linux): New prototype.
8094 (tdesc_x32_avx512_linux): Likewise.
8095 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8096 features/i386/x32-avx512.c.
8097 (amd64_ymm_avx512_names): New register names for pseudo
8098 registers YMM16-31.
8099 (amd64_ymmh_avx512_names): New register names for raw registers
8100 YMMH16-31.
8101 (amd64_k_names): New register names for K registers.
8102 (amd64_zmmh_names): New register names for ZMM raw registers.
8103 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8104 (amd64_xmm_avx512_names): New register names for XMM16-31
8105 registers.
8106 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8107 registers.
8108 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8109 if feature is present.
8110 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8111 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8112 (AMD64_NUM_REGS): Adjust to new number of registers.
8113 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8114 registers supplied via XSTATE by AVX512 registers.
8115 (i386_linux_read_description): Add case for AVX512.
8116 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8117 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8118 (i386_linux_core_read_description): Add case for AVX512.
8119 (i386_linux_init_abi): Install supported register note section
8120 for AVX512.
8121 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8122 AVX512.
8123 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8124 registers to be number of zmm7h + 1.
8125 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8126 * i386-tdep.c: Include features/i386/i386-avx512.c.
8127 (i386_zmm_names): Add ZMM pseudo register names array.
8128 (i386_zmmh_names): Add ZMM raw register names array.
8129 (i386_k_names): Add K raw register names array.
8130 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8131 registers. AVX512 has 16 more ZMM registers than there are YMM
8132 registers.
8133 (i386_zmmh_regnum_p): Add function to look up register number of
8134 ZMM raw registers.
8135 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8136 (i386_k_regnum_p): Likewise for K raw registers.
8137 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8138 registers added by AVX512.
8139 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8140 registers added by AVX512.
8141 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8142 added by AVX512.
8143 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8144 (i386_pseudo_register_name): Add ZMM pseudo registers.
8145 (i386_zmm_type): Construct and return vector registers type for ZMM
8146 registers.
8147 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8148 ZMM0-31 pseudo registers and K registers.
8149 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8150 and YMM16-31 registers from register cache.
8151 (i386_pseudo_register_write): Add code to write K, ZMM and
8152 YMM16-31 registers.
8153 (i386_register_reggroup_p): Add code to include/exclude AVX512
8154 registers in/from respective register groups.
8155 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8156 registers if feature is present in xcr0.
8157 (i386_gdbarch_init): Add code to initialize AVX512 feature
8158 variables in tdep structure, wire in pseudo registers and call
8159 initialize_tdesc_i386_avx512.
8160 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8161 variables.
8162 (i386_regnum): Add AVX512 registers.
8163 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8164 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8165 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8166 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8167 512 bits wide.
8168 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8169 (i386_ymm_avx512_regnum_p): Likewise.
8170 (i386_k_regnum_p): Likewise.
8171 (i386_zmm_regnum_p): Likewise.
8172 (i386_zmmh_regnum_p): Likewise.
8173 * i387-tdep.c : Update year in copyright notice.
8174 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8175 XSAVE buffer.
8176 (XSAVE_YMM_AVX512_ADDR): New macro.
8177 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8178 XSAVE buffer.
8179 (XSAVE_XMM_AVX512_ADDR): New macro.
8180 (xsave_avx512_k_offset): New table for K register offsets in
8181 XSAVE buffer.
8182 (XSAVE_AVX512_K_ADDR): New macro.
8183 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8184 in XSAVE buffer.
8185 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8186 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8187 buffer.
8188 (i387_collect_xsave): Add code to collect AVX512 registers from
8189 XSAVE buffer.
8190 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8191 of XMM16-31 registers.
8192 (I387_NUM_K_REGS): New define for number of K registers.
8193 (I387_K0_REGNUM): New define for K0 register number.
8194 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8195 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8196 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8197 registers.
8198 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8199 (I387_XMM16_REGNUM): New define for XMM16 register number.
8200 (I387_YMM0_REGNUM): New define for YMM0 register number.
8201 (I387_KEND_REGNUM): New define for last K register number.
8202 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8203 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8204 number.
8205 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8206 number.
8207 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8208 size.
8209 * features/Makefile: Add AVX512 related files.
8210 * features/i386/32bit-avx512.xml: New file.
8211 * features/i386/64bit-avx512.xml: Likewise.
8212 * features/i386/amd64-avx512-linux.c: Likewise.
8213 * features/i386/amd64-avx512-linux.xml: Likewise.
8214 * features/i386/amd64-avx512.c: Likewise.
8215 * features/i386/amd64-avx512.xml: Likewise.
8216 * features/i386/i386-avx512-linux.c: Likewise.
8217 * features/i386/i386-avx512-linux.xml: Likewise.
8218 * features/i386/i386-avx512.c: Likewise.
8219 * features/i386/i386-avx512.xml: Likewise.
8220 * features/i386/x32-avx512-linux.c: Likewise.
8221 * features/i386/x32-avx512-linux.xml: Likewise.
8222 * features/i386/x32-avx512.c: Likewise.
8223 * features/i386/x32-avx512.xml: Likewise.
8224 * regformats/i386/amd64-avx512-linux.dat: New file.
8225 * regformats/i386/amd64-avx512.dat: Likewise.
8226 * regformats/i386/i386-avx512-linux.dat: Likewise.
8227 * regformats/i386/i386-avx512.dat: Likewise.
8228 * regformats/i386/x32-avx512-linux.dat: Likewise.
8229 * regformats/i386/x32-avx512.dat: Likewise.
8230 * NEWS: Add note about new support for AVX512.
8231
8232
8233 2014-04-23 Pedro Alves <palves@redhat.com>
8234
8235 * breakpoint.c (insert_bp_location): Tolerate errors if the
8236 breakpoint is set in a user-loaded objfile.
8237 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8238 location is marked shlib_disabled. If the breakpoint is set in a
8239 user-loaded objfile is a GDB-side memory breakpoint, validate it
8240 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8241 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8242 flag.
8243 * mem-break.c (memory_validate_breakpoint): New function.
8244 * objfiles.c (userloaded_objfile_contains_address_p): New
8245 function.
8246 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8247 * target.h (memory_validate_breakpoint): New declaration.
8248
8249 2014-04-23 Pedro Alves <palves@redhat.com>
8250
8251 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8252 the breakpoint is set in a shared library, only suppress
8253 errors for software breakpoints, not hardware breakpoints.
8254
8255 2014-04-22 Pedro Alves <palves@redhat.com>
8256
8257 * infrun.c (schedlock_applies): New function, factored out from
8258 find_thread_needs_step_over.
8259 (find_thread_needs_step_over): Use it.
8260 (switch_back_to_stepped_thread): Always clear trap_expected if the
8261 step over is finished. Return early if scheduler locking applies.
8262 Look for the stepping thread and a potential step-over thread with
8263 a single loop.
8264 (currently_stepping_or_nexting_callback): Delete.
8265
8266 2014-04-22 Nick Clifton <nickc@redhat.com>
8267
8268 * NEWS: Mention that ARM sim now supports tracing.
8269
8270 2014-04-22 Yao Qi <yao@codesourcery.com>
8271
8272 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8273 to ...
8274 * tracefile.c (tracefile_fetch_registers): ... it. New
8275 function.
8276 * tracefile.h (tracefile_fetch_registers): Declare.
8277 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8278 tracefile_fetch_registers.
8279
8280 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8281
8282 PR gdb/14018
8283 * windows-nat.c (thread_rec): Don't display a warning when
8284 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8285 fails for any reason, set th->suspended to -1, so that we don't
8286 try to resume such a thread. Also, don't return NULL in these
8287 cases, to avoid completely ruin the session due to "PC register is
8288 not available" error.
8289 (do_windows_fetch_inferior_registers): Check errors in
8290 GetThreadContext call.
8291 (windows_continue): Accept an additional argument KILLED; if not
8292 zero, ignore errors in the SetThreadContext call, since the
8293 inferior was killed and is shutting down.
8294 (windows_resume, get_windows_debug_event)
8295 (windows_create_inferior, windows_mourn_inferior)
8296 (windows_kill_inferior): All callers of windows_continue changed
8297 to adjust to its new calling sequence.
8298
8299 2014-04-19 Yao Qi <yao@codesourcery.com>
8300
8301 * ctf.c (ctf_open): Call post_create_inferior.
8302
8303 2014-04-19 Yao Qi <yao@codesourcery.com>
8304
8305 * ctf.c (handle_id): New static variable.
8306 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8307 value. Get the declaration of event "register" and get length
8308 of field "contents".
8309
8310 2014-04-19 Yao Qi <yao@codesourcery.com>
8311
8312 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8313
8314 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8315
8316 * valops.c (oload_method_static): Remove unnecessary argument
8317 METHOD. Update all callers.
8318
8319 2014-04-18 Pedro alves <palves@redhat.com>
8320 Tom Tromey <tromey@redhat.com>
8321
8322 PR backtrace/15558
8323 * frame.c (get_prev_frame_1): Rename to ...
8324 (get_prev_frame_always): ... this, and make extern. Adjust.
8325 (skip_artificial_frames): Use get_prev_frame_always.
8326 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8327 (get_frame_unwind_stop_reason): Adjust to rename.
8328 * frame.h (get_prev_frame_always): Declare.
8329 * inline-frame.c: Include frame.h.
8330 (inline_frame_this_id): Use get_prev_frame_always.
8331
8332 2014-04-18 Tristan Gingold <gingold@adacore.com>
8333
8334 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8335 code by using bfd_mach_o_get_base_address.
8336
8337 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8338
8339 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8340 (spu_ax_pseudo_register_collect): New function.
8341 (spu_ax_pseudo_register_push_stack): Likewise.
8342 (spu_dwarf_reg_to_regnum): Likewise.
8343 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8344
8345 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8346
8347 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8348 Replace FRAME argument with FRAME_ID.
8349 * gdbarch.c, gdbarch.h: Regenerate.
8350 * findvar.c (default_value_from_register): Add GDBARCH argument;
8351 replace FRAME by FRAME_ID. No longer call get_frame_id.
8352 (value_from_register): Update call to gdbarch_value_from_register.
8353 * value.h (default_value_from_register): Update prototype.
8354 * s390-linux-tdep.c (s390_value_from_register): Update interface
8355 and call to default_value_from_register.
8356 * spu-tdep.c (spu_value_from_register): Likewise.
8357
8358 * findvar.c (address_from_register): Remove TYPE argument.
8359 Do not call value_from_register; use gdbarch_value_from_register
8360 with null_frame_id instead.
8361 * value.h (address_from_register): Update prototype.
8362 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8363 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8364 address_from_register interface change.
8365
8366 2014-04-17 Yao Qi <yao@codesourcery.com>
8367
8368 * gdbtypes.h: Update comments to link to types and macros'
8369 definitions.
8370
8371 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8372
8373 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8374
8375 2014-04-16 Keith Seitz <keiths@redhat.com>
8376
8377 PR gdb/15827
8378 * dwarf2read.c (skip_one_die): Check that all relative-offset
8379 sibling DIEs fall within range of the current reader's buffer.
8380 (read_partial_die): Likewise.
8381
8382 2014-04-16 Keith Seitz <keiths@redhat.com>
8383
8384 PR c++/16597
8385 * cp-namespace.c (lookup_symbol_file): If the type name of
8386 `this' is NULL, return immediately.
8387
8388 2014-04-14 Keith Seitz <keiths@redhat.com>
8389
8390 PR c++/16253
8391 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8392 from symbol_matches_domain in symtab.c. All local callers
8393 of symbol_matches_domain updated.
8394 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8395 search STRUCT_DOMAIN.
8396 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8397 independently. standard_lookup will do that automatically.
8398 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8399 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8400 (cp_lookup_symbol_in_namespace): Likewise.
8401 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8402 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8403 may return a STRUCT_DOMAIN match.
8404 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8405 * cp-support.c: Include language.h.
8406 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8407 VAR_DOMAIN.
8408 * psymtab.c (match_partial_symbol): Compare the requested
8409 domain with the symbol's domain directly.
8410 (lookup_partial_symbol): Likewise.
8411 * symtab.c (lookup_symbol_in_language): Explain when/why
8412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8413 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8414 appropriate languages.
8415 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8416 and moved to ada-lang.c
8417 (lookup_block_symbol): Explain that this function only returns
8418 symbol matching the requested DOMAIN.
8419 Compare the requested domain with the symbol's domain directly.
8420 (iterate_over_symbols): Compare the requested domain with the
8421 symbol's domain directly.
8422 * symtab.h (symbol_matches_domain): Remove.
8423
8424 2014-04-14 Tom Tromey <tromey@redhat.com>
8425
8426 PR c++/15246:
8427 * c-exp.y (type_aggregate_p): New function.
8428 (qualified_name, classify_inner_name): Use it.
8429 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8430 and TYPE_TARGET_TYPE of an enum type.
8431 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8432 an enum type.
8433 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8434 handle TYPE_DECLARED_CLASS.
8435 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8436 types.
8437 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8438 * valops.c (enum_constant_from_type): New function.
8439 (value_aggregate_elt): Use it.
8440 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8441 TYPE_CODE_ENUM.
8442
8443 2014-04-14 Tom Tromey <tromey@redhat.com>
8444
8445 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8446 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8447 const.
8448 * value.h (value_aggregate_elt): Update.
8449
8450 2014-04-14 Tom Tromey <tromey@redhat.com>
8451
8452 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8453
8454 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8455
8456 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8457 (evaluate_subexp_standard): Pass noside argument.
8458 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8459 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8460 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8461 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8462 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8463
8464 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8465
8466 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8467 points to a constant blob.
8468
8469 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8470
8471 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8472 property and store it as the high bound and flag the range accordingly.
8473 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8474 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8475 * gdbtypes.h (enum range_flags): New enum.
8476 (struct range_bounds): Add flags member.
8477
8478 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8479
8480 * c-typeprint.c (c_type_print_varspec_suffix): Added
8481 check for not yet resolved high bound. If unresolved, print
8482 "variable length" string to the console instead of random
8483 length.
8484
8485 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8486
8487 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8488 value.
8489 (ada_template_to_fixed_record_type_1): Likewise.
8490 (ada_to_fixed_type_1): Likewise.
8491 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8492 (cp_print_value): Likewise.
8493 * d-valprint.c (dynamic_array_type): Likewise.
8494 * findvar.c (address_of_variable): Likewise.
8495 * jv-valprint.c (java_value_print): Likewise.
8496 * valops.c (value_ind): Likewise.
8497 * value.c (coerce_ref): Likewise.
8498
8499 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8500
8501 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8502 value and retrieve the dynamic type size.
8503
8504 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8505
8506 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8507 passed to sizeof is dynamic evaluate the argument to compute the length.
8508
8509 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8510 Joel Brobecker <brobecker@adacore.com>
8511
8512 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8513 (dwarf2_evaluate_property): New function.
8514 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8515 * dwarf2read.c (attr_to_dynamic_prop): New function.
8516 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8517 attribute.
8518 * gdbtypes.c: Include dwarf2loc.h.
8519 (is_dynamic_type): New function.
8520 (resolve_dynamic_type): New function.
8521 (resolve_dynamic_bounds): New function.
8522 (get_type_length): New function.
8523 (check_typedef): Use get_type_length to compute type length.
8524 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8525 (TYPE_LOW_BOUND_KIND): New macro.
8526 (is_dynamic_type): New function prototype.
8527 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8528 to resolve dynamic properties of the type. Update comment.
8529 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8530
8531 2014-04-14 Richard Henderson <rth@redhat.com>
8532
8533 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8534
8535 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8536 Doug Evans <xdje42@gmail.com>
8537
8538 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8539 dereference TYPE_CODE_REF values.
8540
8541 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8542
8543 Revert the following changes due to regressions:
8544
8545 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8546 (dwarf2_evaluate_property): New function.
8547 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8548 * dwarf2read.c (attr_to_dynamic_prop): New function.
8549 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8550 attribute.
8551 * gdbtypes.c: Include dwarf2loc.h.
8552 (is_dynamic_type): New function.
8553 (resolve_dynamic_type): New function.
8554 (resolve_dynamic_bounds): New function.
8555 (get_type_length): New function.
8556 (check_typedef): Use get_type_length to compute type length.
8557 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8558 (TYPE_LOW_BOUND_KIND): New macro.
8559 (is_dynamic_type): New function prototype.
8560 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8561 to resolve dynamic properties of the type. Update comment.
8562 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8563
8564 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8565 passed to sizeof is dynamic evaluate the argument to compute the length.
8566
8567 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8568 value and retrieve the dynamic type size.
8569
8570 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8571 (ada_template_to_fixed_record_type_1): Likewise.
8572 (ada_to_fixed_type_1): Likewise.
8573 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8574 (cp_print_value): Likewise.
8575 * d-valprint.c (dynamic_array_type): Likewise.
8576 * eval.c (evaluate_subexp_with_coercion): Likewise.
8577 * findvar.c (address_of_variable): Likewise.
8578 * jv-valprint.c (java_value_print): Likewise.
8579 * valops.c (value_ind): Likewise.
8580 * value.c (coerce_ref): Likewise.
8581
8582 * c-typeprint.c (c_type_print_varspec_suffix): Added
8583 check for not yet resolved high bound. If unresolved, print
8584 "variable length" string to the console instead of random
8585 length.
8586
8587 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8588 property and store it as the high bound and flag the range accordingly.
8589 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8590 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8591 * gdbtypes.h (enum range_flags): New enum.
8592 (struct range_bounds): Add flags member.
8593
8594 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8595 points to a constant blob.
8596
8597 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8598 (evaluate_subexp_standard): Pass noside argument.
8599 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8600 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8601 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8602 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8603 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8604
8605 2014-04-11 Keith Seitz <keiths@redhat.com>
8606
8607 PR c++/16675
8608 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8609 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8610 reference types.
8611
8612 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8613
8614 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8615 (evaluate_subexp_standard): Pass noside argument.
8616 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8617 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8618 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8619 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8620 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8621
8622 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8623
8624 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8625 points to a constant blob.
8626
8627 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8628
8629 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8630 property and store it as the high bound and flag the range accordingly.
8631 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8632 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8633 * gdbtypes.h (enum range_flags): New enum.
8634 (struct range_bounds): Add flags member.
8635
8636 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8637
8638 * c-typeprint.c (c_type_print_varspec_suffix): Added
8639 check for not yet resolved high bound. If unresolved, print
8640 "variable length" string to the console instead of random
8641 length.
8642
8643 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8644
8645 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8646 (ada_template_to_fixed_record_type_1): Likewise.
8647 (ada_to_fixed_type_1): Likewise.
8648 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8649 (cp_print_value): Likewise.
8650 * d-valprint.c (dynamic_array_type): Likewise.
8651 * eval.c (evaluate_subexp_with_coercion): Likewise.
8652 * findvar.c (address_of_variable): Likewise.
8653 * jv-valprint.c (java_value_print): Likewise.
8654 * valops.c (value_ind): Likewise.
8655 * value.c (coerce_ref): Likewise.
8656
8657 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8658
8659 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8660 value and retrieve the dynamic type size.
8661
8662 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8663
8664 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8665 passed to sizeof is dynamic evaluate the argument to compute the length.
8666
8667 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8668
8669 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8670 (dwarf2_evaluate_property): New function.
8671 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8672 * dwarf2read.c (attr_to_dynamic_prop): New function.
8673 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8674 attribute.
8675 * gdbtypes.c: Include dwarf2loc.h.
8676 (is_dynamic_type): New function.
8677 (resolve_dynamic_type): New function.
8678 (resolve_dynamic_bounds): New function.
8679 (get_type_length): New function.
8680 (check_typedef): Use get_type_length to compute type length.
8681 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8682 (TYPE_LOW_BOUND_KIND): New macro.
8683 (is_dynamic_type): New function prototype.
8684 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8685 to resolve dynamic properties of the type. Update comment.
8686 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8687
8688 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8689
8690 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8691 declaring high/low bounds and change uses accordingly. Call
8692 create_range_type instead of create_static_range_type.
8693 * gdbtypes.c (create_range_type): New function.
8694 (create_range_type): Convert bounds into struct bound_prop and pass
8695 them to create_range_type.
8696 * gdbtypes.h (struct bound_prop): New struct.
8697 (create_range_type): New function prototype.
8698 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8699 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8700 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8701 part of the bound.
8702 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8703
8704 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8705
8706 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8707 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8708 * ada-lang.c: All uses of create_range_type updated.
8709 * coffread.c: All uses of create_range_type updated.
8710 * dwarf2read.c: All uses of create_range_type updated.
8711 * f-exp.y: All uses of create_range_type updated.
8712 * m2-valprint.c: All uses of create_range_type updated.
8713 * mdebugread.c: All uses of create_range_type updated.
8714 * stabsread.c: All uses of create_range_type updated.
8715 * valops.c: All uses of create_range_type updated.
8716 * valprint.c: All uses of create_range_type updated.
8717
8718 2014-04-10 Pedro Alves <palves@redhat.com>
8719
8720 * breakpoint.c (single_step_breakpoints)
8721 (single_step_gdbarch): Move up in the file.
8722 (one_breakpoint_xfer_memory): New function, factored out from ...
8723 (breakpoint_xfer_memory): ... here. Also process single-step
8724 breakpoints.
8725
8726 2014-04-09 Tristan Gingold <gingold@adacore.com>
8727
8728 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8729 comments.
8730 (darwin_decode_exception_message): Free port only after use.
8731
8732 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8733
8734 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8735 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8736 when setting the size of call_length.
8737
8738 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8739
8740 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8741 dereference TYPE_CODE_REF values.
8742
8743 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8744
8745 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8746 end of warning message.
8747
8748 2014-04-03 Doug Evans <dje@google.com>
8749
8750 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8751 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8752
8753 2014-04-02 Alan Modra <amodra@gmail.com>
8754
8755 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8756 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8757 (struct symbol_file_add_from_memory_args): Add size field.
8758 (find_vdso_size): New function.
8759 (add_vsyscall_page): Attempt to find vdso size.
8760
8761 2014-04-01 Doug Evans <dje@google.com>
8762
8763 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8764
8765 2014-04-01 Tristan Gingold <gingold@adacore.com>
8766
8767 * darwin-nat.c (darwin_encode_reply): Add prototype.
8768 (darwin_decode_exception_message): Reply to unknown inferiors.
8769 (darwin_decode_message): Handle message by id. Ignore message
8770 to unknown inferior.
8771 (darwin_wait): Discard unknown messages, add debug trace.
8772
8773 2014-03-31 Doug Evans <dje@google.com>
8774
8775 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8776 comp_dir_string.
8777
8778 2014-03-31 Doug Evans <dje@google.com>
8779
8780 New option "set print symbol-loading".
8781 * NEWS: Mention it.
8782 * solib.c (solib_read_symbols): Only print symbol loading messages
8783 if requested.
8784 (solib_add): If symbol loading is in "brief" mode, notify user
8785 symbols are being loaded.
8786 (reload_shared_libraries_1): Ditto.
8787 * symfile.c (print_symbol_loading_off): New static global.
8788 (print_symbol_loading_brief): New static global.
8789 (print_symbol_loading_full): New static global.
8790 (print_symbol_loading_enums): New static global.
8791 (print_symbol_loading): New static global.
8792 (print_symbol_loading_p): New function.
8793 (symbol_file_add_with_addrs): Only print symbol loading messages
8794 if requested.
8795 (_initialize_symfile): Register "print symbol-loading" set/show
8796 command.
8797 * symfile.h (print_symbol_loading_p): Declare.
8798
8799 2014-03-30 Doug Evans <xdje42@gmail.com>
8800
8801 * infrun.c (set_last_target_status): New function.
8802 (handle_inferior_event): Call it.
8803
8804 2014-03-30 Doug Evans <xdje42@gmail.com>
8805
8806 * inferior.h (enum stop_kind): Improve comment.
8807
8808 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8809
8810 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8811 a reference, strip the reference layer before calling
8812 the lang_ops value_has_mutated callback.
8813
8814 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8815
8816 Remove some globals from our parser.
8817 * language.c (unk_lang_parser): Add "struct parser_state"
8818 argument.
8819 * language.h (struct language_defn) <la_parser>: Likewise.
8820 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8821 (initialize_expout): Add "struct parser_state" argument.
8822 Rewrite function to use the parser state.
8823 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8824 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8825 write_exp_elt_longcst, write_exp_elt_dblcst,
8826 write_exp_elt_decfloatcst, write_exp_elt_type,
8827 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8828 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8829 write_dollar_variable): Likewise.
8830 (parse_exp_in_context_1): Use parser state.
8831 (insert_type_address_space): Add "struct parser_state" argument.
8832 Use parser state.
8833 (increase_expout_size): New function.
8834 * parser-defs.h: Forward declare "struct language_defn" and
8835 "struct parser_state".
8836 (expout, expout_size, expout_ptr): Remove extern declarations.
8837 (parse_gdbarch, parse_language): Rewrite macro declarations to
8838 accept the parser state.
8839 (struct parser_state): New struct.
8840 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8841 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8842 write_exp_elt_decfloatcst, write_exp_elt_type,
8843 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8844 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8845 write_exp_msymbol, write_dollar_variable,
8846 mark_struct_expression, insert_type_address_space): Add "struct
8847 parser_state" argument.
8848 (increase_expout_size): New function.
8849 * utils.c (do_clear_parser_state): New function.
8850 (make_cleanup_clear_parser_state): Likewise.
8851 * utils.h (make_cleanup_clear_parser_state): New function
8852 prototype.
8853 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8854 Update calls to write_exp* in order to pass the parser state.
8855 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8856 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8857 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8858 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8859 * stap-probe.c (stap_parse_register_operand): Likewise.
8860 (stap_parse_single_operand): Likewise.
8861 (stap_parse_argument_1): Likewise.
8862 (stap_parse_argument): Use parser state.
8863 * stap-probe.h: Include "parser-defs.h".
8864 (struct stap_parse_info) <pstate>: New field.
8865 * c-exp.y (parse_type): Rewrite to use parser state.
8866 (yyparse): Redefine to c_parse_internal.
8867 (pstate): New global variable.
8868 (parse_number): Add "struct parser_state" argument.
8869 (write_destructor_name): Likewise.
8870 (type_exp): Update calls to write_exp* and similars in order to
8871 use parser state.
8872 (exp1, exp, variable, qualified_name, space_identifier,
8873 typename, typebase): Likewise.
8874 (write_destructor_name, parse_number, lex_one_token,
8875 classify_name, classify_inner_name, c_parse): Add "struct
8876 parser_state" argument. Update function to use parser state.
8877 * c-lang.h: Forward declare "struct parser_state".
8878 (c_parse): Add "struct parser_state" argument.
8879 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8880 (yyparse): Redefine macro to ada_parse_internal.
8881 (pstate): New variable.
8882 (write_int, write_object_renaming, write_var_or_type,
8883 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8884 type_int, type_long, type_long_long, type_float, type_double,
8885 type_long_double, type_char, type_boolean, type_system_address):
8886 Add "struct parser_state" argument.
8887 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8888 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8889 var_or_type, aggregate, aggregate_component_list,
8890 positional_list, others, component_group,
8891 component_associations): Update calls to write_exp* and similar
8892 functions in order to use parser state.
8893 (ada_parse, write_var_from_sym, write_int,
8894 write_exp_op_with_string, write_object_renaming,
8895 find_primitive_type, write_selectors, write_ambiguous_var,
8896 write_var_or_type, write_name_assoc, type_int, type_long,
8897 type_long_long, type_float, type_double, type_long_double,
8898 type_char, type_boolean, type_system_address): Add "struct
8899 parser_state" argument. Adjust function to use parser state.
8900 * ada-lang.c (parse): Likewise.
8901 * ada-lang.h: Forward declare "struct parser_state".
8902 (ada_parse): Add "struct parser_state" argument.
8903 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8904 calls to both functions.
8905 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8906 parser state.
8907 (yyparse): Redefine macro to f_parse_internal.
8908 (pstate): New variable.
8909 (parse_number): Add "struct parser_state" argument.
8910 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8911 and similars in order to use parser state.
8912 (parse_number): Adjust code to use parser state.
8913 (yylex): Likewise.
8914 (f_parse): New function.
8915 * f-lang.h: Forward declare "struct parser_state".
8916 (f_parse): Add "struct parser_state" argument.
8917 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8918 parser state.
8919 (yyparse): Redefine macro for java_parse_internal.
8920 (pstate): New variable.
8921 (push_expression_name, push_expression_name, insert_exp): Add
8922 "struct parser_state" argument.
8923 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8924 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8925 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8926 PostIncrementExpression, PostDecrementExpression,
8927 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8928 UnaryExpressionNotPlusMinus, CastExpression,
8929 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8930 RelationalExpression, EqualityExpression, AndExpression,
8931 ExclusiveOrExpression, InclusiveOrExpression,
8932 ConditionalAndExpression, ConditionalOrExpression,
8933 ConditionalExpression, Assignment, LeftHandSide): Update
8934 calls to write_exp* and similars in order to use parser state.
8935 (parse_number): Ajust code to use parser state.
8936 (yylex): Likewise.
8937 (java_parse): New function.
8938 (push_variable): Add "struct parser_state" argument. Adjust
8939 code to user parser state.
8940 (push_fieldnames, push_qualified_expression_name,
8941 push_expression_name, insert_exp): Likewise.
8942 * jv-lang.h: Forward declare "struct parser_state".
8943 (java_parse): Add "struct parser_state" argument.
8944 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8945 parser state.
8946 (yyparse): Redefine macro to m2_parse_internal.
8947 (pstate): New variable.
8948 (type_exp, exp, fblock, variable, type): Update calls to
8949 write_exp* and similars to use parser state.
8950 (yylex): Likewise.
8951 (m2_parse): New function.
8952 * m2-lang.h: Forward declare "struct parser_state".
8953 (m2_parse): Add "struct parser_state" argument.
8954 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8955 * objc-lang.h: Forward declare "struct parser_state".
8956 (end_msglist): Add "struct parser_state" argument.
8957 * p-exp.y (parse_type): Rewrite macro to use parser state.
8958 (yyparse): Redefine macro to pascal_parse_internal.
8959 (pstate): New variable.
8960 (parse_number): Add "struct parser_state" argument.
8961 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8962 write_exp* and similars in order to use parser state.
8963 (parse_number, yylex): Adjust code to use parser state.
8964 (pascal_parse): New function.
8965 * p-lang.h: Forward declare "struct parser_state".
8966 (pascal_parse): Add "struct parser_state" argument.
8967 * go-exp.y (parse_type): Rewrite macro to use parser state.
8968 (yyparse): Redefine macro to go_parse_internal.
8969 (pstate): New variable.
8970 (parse_number): Add "struct parser_state" argument.
8971 (type_exp, exp1, exp, variable, type): Update calls to
8972 write_exp* and similars in order to use parser state.
8973 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8974 to use parser state.
8975 (go_parse): Likewise.
8976 * go-lang.h: Forward declare "struct parser_state".
8977 (go_parse): Add "struct parser_state" argument.
8978
8979 2014-03-27 Doug Evans <dje@google.com>
8980
8981 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8982
8983 2014-03-27 Doug Evans <dje@google.com>
8984
8985 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8986 Remove argument abbrev_section. All callers updated.
8987
8988 2014-03-27 Doug Evans <dje@google.com>
8989
8990 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8991 addr_base, ranges_base.
8992
8993 2014-03-26 Keith Seitz <keiths@redhat.com>
8994
8995 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8996 types, not VAR_DOMAIN.
8997
8998 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8999
9000 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9001 "ra" registers.
9002 * features/nios2-linux.c: Regenerated.
9003 * features/nios2.c: Regenerated.
9004
9005 2014-03-25 Pedro Alves <palves@redhat.com>
9006
9007 * cli/cli-script.c (script_from_file): Force the interpreter to
9008 sync mode.
9009
9010 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9011
9012 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9013 small stack allocation.
9014
9015 2014-03-24 Tristan Gingold <gingold@adacore.com>
9016
9017 * darwin-nat.c (exc_server): Remove unused prototype.
9018 (darwin_dump_message): Correctly display data on x86_64.
9019 (darwin_encode_reply): Fix style.
9020 Add comments and fix indentation.
9021
9022 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9023
9024 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9025
9026 2014-03-22 Doug Evans <xdje42@gmail.com>
9027
9028 * infcmd.c: Whitespace fixes.
9029 (interrupt_command): Merge two function comments into one.
9030
9031 2014-03-22 Doug Evans <xdje42@gmail.com>
9032
9033 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9034 All uses updated.
9035
9036 2014-03-22 Yao Qi <yao@codesourcery.com>
9037
9038 * remote.c (target_read_live_memory): Remove.
9039 (memory_xfer_live_readonly_partial): Rename it to
9040 remote_xfer_live_readonly_partial. Remove argument 'object'.
9041 All callers updated. Call remote_read_bytes_1
9042 instead of target_read_live_memory.
9043 * tracepoint.c (set_traceframe_number): Remove.
9044 (make_cleanup_restore_traceframe_number): Likewise .
9045 * tracepoint.h (set_traceframe_number): Remove declaration.
9046 (make_cleanup_restore_traceframe_number): Likewise.
9047
9048 2014-03-22 Yao Qi <yao@codesourcery.com>
9049
9050 * remote.c (remote_read_bytes): Move code on reading from the
9051 remote stub to ...
9052 (remote_read_bytes_1): ... here. New function.
9053
9054 2014-03-22 Yao Qi <yao@codesourcery.com>
9055
9056 * ctf.c (ctf_xfer_partial): Check the return value of
9057 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9058 return TARGET_XFER_UNAVAILABLE.
9059 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9060 * target.c (target_read_live_memory): Move it to remote.c.
9061 (memory_xfer_live_readonly_partial): Likewise.
9062 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9063 * remote.c (target_read_live_memory): Moved from target.c.
9064 (memory_xfer_live_readonly_partial): Likewise.
9065 (remote_read_bytes): Factored out from
9066 memory_xfer_partial_1.
9067
9068 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9069
9070 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9071 NULL pointer.
9072
9073 2014-03-21 Pedro Alves <palves@redhat.com>
9074
9075 * infrun.c (normal_stop): Extend comment.
9076
9077 2014-03-21 Hui Zhu <hui@codesourcery.com>
9078 Pedro Alves <palves@redhat.com>
9079
9080 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9081 static buffer.
9082 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9083 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9084 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9085
9086 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9087
9088 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9089 `z' formatted output modifier.
9090
9091 2014-03-20 Tom Tromey <tromey@redhat.com>
9092 Sergio Durigan Junior <sergiodj@redhat.com>
9093
9094 * probe.c (parse_probes): Turn assert into an ordinary error.
9095 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9096 exceptions when parsing probes. Rearrange the code for clarity.
9097
9098 2014-03-20 Tom Tromey <tromey@redhat.com>
9099
9100 PR gdb/14135
9101 * top.c (execute_command): Only dispatch events if the command
9102 started the target.
9103
9104 2014-03-20 Tom Tromey <tromey@redhat.com>
9105
9106 PR cli/15718
9107 * infcall.c: Include event-top.h.
9108 (run_inferior_call): Call async_disable_stdin if needed.
9109
9110 2014-03-20 Pedro Alves <palves@redhat.com>
9111
9112 * infrun.c (prepare_to_proceed): Delete.
9113 (thread_still_needs_step_over): New function.
9114 (find_thread_needs_step_over): New function.
9115 (proceed): If the current thread needs a step-over, set its
9116 steping_over_breakpoint flag. Adjust to use
9117 find_thread_needs_step_over instead of prepare_to_proceed.
9118 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9119 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9120 breakpoint.
9121 (switch_back_to_stepped_thread): Step over breakpoints of all
9122 threads not the stepping thread, before switching back to the
9123 stepping thread.
9124
9125 2014-03-20 Pedro Alves <palves@redhat.com>
9126
9127 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9128 extern.
9129 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9130 * infrun.c (saved_singlestep_ptid)
9131 (stepping_past_singlestep_breakpoint): Delete.
9132 (resume): Remove stepping_past_singlestep_breakpoint handling.
9133 (proceed): Store the prev_pc of the stepping thread too.
9134 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9135 singlestep_pc.
9136 (enum infwait_states): Delete infwait_thread_hop_state.
9137 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9138 field.
9139 (handle_inferior_event): Adjust.
9140 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9141 handling and the thread-hop code. Before removing single-step
9142 breakpoints, check whether the thread hit a single-step breakpoint
9143 of another thread. If it did, the trap is not a random signal.
9144 (switch_back_to_stepped_thread): If the event thread hit a
9145 single-step breakpoint, unblock it before switching to the
9146 stepping thread. Handle the case of the stepped thread having
9147 advanced already.
9148 (keep_going): Handle the case of the current thread moving past a
9149 single-step breakpoint.
9150
9151 2014-03-20 Pedro Alves <palves@redhat.com>
9152
9153 PR breakpoints/7143
9154 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9155 are being stepped over.
9156 (breakpoint_address_match): Make extern.
9157 * breakpoint.h (breakpoint_address_match): New declaration.
9158 * inferior.h (stepping_past_instruction_at): New declaration.
9159 * infrun.c (struct step_over_info): New type.
9160 (step_over_info): New global.
9161 (set_step_over_info, clear_step_over_info)
9162 (stepping_past_instruction_at): New functions.
9163 (handle_inferior_event): Clear the step-over info when
9164 trap_expected is cleared.
9165 (resume): Remove now stale comment.
9166 (clear_proceed_status): Clear step-over info.
9167 (proceed): Adjust step-over handling to set or clear the step-over
9168 info instead of removing all breakpoints.
9169 (handle_signal_stop): When setting up a thread-hop, don't remove
9170 breakpoints here.
9171 (stop_stepping): Clear step-over info.
9172 (keep_going): Adjust step-over handling to set or clear step-over
9173 info and then always inserting breakpoints, instead of removing
9174 all breakpoints when stepping over one.
9175
9176 2014-03-20 Pedro Alves <palves@redhat.com>
9177
9178 * infrun.c (previous_inferior_ptid): Adjust comment.
9179 (deferred_step_ptid): Delete.
9180 (infrun_thread_ptid_changed, prepare_to_proceed)
9181 (init_wait_for_inferior): Adjust.
9182 (handle_signal_stop): Delete deferred_step_ptid handling.
9183
9184 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9185
9186 PR gdb/15358
9187 * defs.h (sync_quit_force_run): New declaration.
9188 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9189 * event-top.c (async_sigterm_handler): New declaration.
9190 (async_sigterm_token): New variable.
9191 (async_init_signals): Create also async_sigterm_token.
9192 (async_sigterm_handler): New function.
9193 (sync_quit_force_run): New variable.
9194 (handle_sigterm): Replace quit_force call by other calls.
9195 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9196
9197 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9198
9199 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9200 offset into SPE pseudo registers.
9201
9202 2014-03-18 Pedro Alves <palves@redhat.com>
9203
9204 PR gdb/13860
9205 * inferior.h (print_stop_event): Declare.
9206 * infrun.c (print_stop_event): New, factored out from ...
9207 (normal_stop): ... this.
9208 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9209 of bpstat_print/print_stack_frame.
9210
9211 2014-03-17 Tom Tromey <tromey@redhat.com>
9212
9213 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9214
9215 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9216
9217 * ada-lang.c (decode_constrained_packed_array): Perform a
9218 minimal coercion for reference with coerce_ref instead of
9219 ada_coerce_ref.
9220
9221 2014-03-17 Tristan Gingold <gingold@adacore.com>
9222
9223 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9224 (darwin_solib_create_inferior_hook): Emit a warning if version
9225 is unhandled.
9226
9227 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9228
9229 * python/py-value.c (get_field_flag): Cast flag_name argument to
9230 PyObject_GetAttrString to support Python 2.4.
9231
9232 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9233
9234 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9235 (Global Maintainers): Remove Jan Kratochvil.
9236
9237 2014-03-14 Pedro Alves <palves@redhat.com>
9238
9239 * inferior.h (terminal_ours_for_output): Rename to ...
9240 (child_terminal_ours_for_output): ... this.
9241 (terminal_save_ours): Rename to ...
9242 (child_terminal_save_ours): ... this.
9243 (terminal_ours): Rename to ...
9244 (child_terminal_ours): ... this.
9245 (terminal_inferior): Rename to ...
9246 (child_terminal_inferior): ... this.
9247 (terminal_init_inferior): Rename to ...
9248 (child_terminal_init_inferior): ... this.
9249 (terminal_init_inferior_with_pgrp): Rename to ...
9250 (child_terminal_init_inferior_with_pgrp): ... this.
9251 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9252 (child_terminal_init_with_pgrp): ... this.
9253 (terminal_save_ours): Rename to ...
9254 (child_terminal_save_ours): ... this.
9255 (terminal_init_inferior): Rename to ...
9256 (child_terminal_init): ... this. Adjust.
9257 (terminal_inferior): Rename to ...
9258 (child_terminal_inferior): ... this.
9259 (terminal_ours_for_output): Rename to ...
9260 (child_terminal_ours_for_output): ... this. Adjust.
9261 (terminal_ours): Rename to ...
9262 (child_terminal_ours): ... this.
9263 (terminal_ours_1): Rename to ...
9264 (child_terminal_ours_1): ... this. Adjust.
9265 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9266 * windows-nat.c (do_initial_windows_stuff): Adjust.
9267 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9268 (gnu_terminal_init): ... this. Adjust.
9269 (gnu_target): Adjust.
9270 * inf-child.c (inf_child_target): Adjust.
9271
9272 2014-03-13 Doug Evans <xdje42@gmail.com>
9273
9274 PR guile/16612
9275 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9276 new eq?-hashtab.
9277
9278 2014-03-13 Doug Evans <xdje42@gmail.com>
9279
9280 * value.c (record_latest_value): Call release_value_or_incref
9281 instead of release_value.
9282
9283 2014-03-13 Pedro Alves <palves@redhat.com>
9284
9285 * procfs.c (procfs_target): Don't override to_shortname,
9286 to_longname or to_doc.
9287
9288 2014-03-13 Pedro Alves <palves@redhat.com>
9289
9290 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9291 Unix in user visible strings.
9292
9293 2014-03-12 Stan Shebs <stan@codesourcery.com>
9294
9295 * gdbtypes.h: Annotate comments for Doxygen, add a page
9296 block comment with some general info.
9297
9298 2014-03-12 Pedro Alves <palves@redhat.com>
9299
9300 * infcmd.c (prepare_execution_command): New function, factored out
9301 from several execution commands.
9302 (run_command_1, continue_command, step_1, jump_command)
9303 (signal_command, until_command, advance_command, finish_command)
9304 (attach_command): Use prepare_execution_command.
9305
9306 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9307
9308 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9309 (MAX_BPTS): Define.
9310 (MAX_WPTS): Define.
9311 (struct arm_linux_thread_points): Removed.
9312 (struct arm_linux_process_info): New.
9313 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9314 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9315 (arm_linux_find_breakpoints_by_tid): Removed.
9316 (struct arch_lwp_info): New.
9317 (arm_linux_find_process_pid): New functions.
9318 (arm_linux_add_process): New functions.
9319 (arm_linux_process_info_get): New functions.
9320 (arm_linux_forget_process): New function.
9321 (arm_linux_get_debug_reg_state): New function.
9322 (struct update_registers_data): New.
9323 (update_registers_callback): New function.
9324 (arm_linux_insert_hw_breakpoint1): Updated.
9325 (arm_linux_remove_hw_breakpoint1): Updated.
9326 (arm_linux_insert_hw_breakpoint): Updated.
9327 (arm_linux_remove_hw_breakpoint): Updated.
9328 (arm_linux_insert_watchpoint): Updated.
9329 (arm_linux_remove_watchpoint): Updated.
9330 (arm_linux_new_thread): Updated.
9331 (arm_linux_prepare_to_resume): New function.
9332 (arm_linux_new_fork): New function.
9333 (_initialize_arm_linux_nat): Updated.
9334
9335 2014-03-12 Pedro Alves <palves@redhat.com>
9336
9337 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9338
9339 2014-03-12 Tom Tromey <tromey@redhat.com>
9340
9341 * inf-child.c (return_zero): New function.
9342 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9343 * aix-thread.c (aix_thread_inferior_created): New function.
9344 (aix_thread_attach): Remove.
9345 (init_aix_thread_ops): Don't set to_attach.
9346 (_initialize_aix_thread): Register inferior_created observer.
9347 * corelow.c (init_core_ops): Don't set to_attach or
9348 to_create_inferior.
9349 * exec.c (init_exec_ops): Don't set to_attach or
9350 to_create_inferior.
9351 * infcmd.c (run_command_1): Use find_run_target. Make direct
9352 target calls.
9353 (attach_command): Use find_attach_target. Make direct target
9354 calls.
9355 * record-btrace.c (init_record_btrace_ops): Don't set
9356 to_create_inferior.
9357 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9358 Remove.
9359 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9360 set to_create_inferior.
9361 * target.c (complete_target_initialization): Add assertion.
9362 (target_create_inferior): Remove.
9363 (find_default_attach, find_default_create_inferior): Remove.
9364 (find_attach_target, find_run_target): New functions.
9365 (find_default_is_async_p, find_default_can_async_p)
9366 (target_supports_non_stop, target_attach): Remove.
9367 (init_dummy_target): Don't set to_create_inferior or
9368 to_supports_non_stop.
9369 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9370 TARGET_DEFAULT_FUNC.
9371 <to_create_inferior>: Add comment.
9372 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9373 TARGET_DEFAULT_RETURN.
9374 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9375 (find_attach_target, find_run_target): Declare.
9376 (target_create_inferior): Remove.
9377 (target_has_execution_1): Update comment.
9378 (target_supports_non_stop): Remove.
9379 * target-delegates.c: Rebuild.
9380
9381 2014-03-12 Pedro Alves <palves@redhat.com>
9382
9383 * inf-child.h: Update comment to not mention Unix.
9384
9385 2014-03-12 Pedro Alves <palves@redhat.com>
9386
9387 * inf-child.c: Update top comment to not mention Unix. Add
9388 generic comment describing how this target is meant to be used.
9389 (inf_child_post_attach, inf_child_post_startup_inferior)
9390 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9391 Unix in comment.
9392
9393 2014-03-12 Pedro Alves <palves@redhat.com>
9394
9395 * nto-procfs.c: Include inf-child.h.
9396 (procfs_ops): Delete global.
9397 (procfs_can_run): Delete method.
9398 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9399 target pointer instead of referencing procfs_ops.
9400 (procfs_prepare_to_store): Delete.
9401 (init_procfs_ops): Delete function.
9402 (procfs_target): New function, based on init_procfs_ops, but
9403 inherit inf_child_target.
9404 (_initialize_procfs): Use procfs_target.
9405
9406 2014-03-12 Pedro Alves <palves@redhat.com>
9407
9408 * windows-nat.c: Include inf-child.h.
9409 (windows_ops): Delete global.
9410 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9411 methods.
9412 (init_windows_ops): Delete function.
9413 (windows_target): New function, based on init_windows_ops, but
9414 inherit inf_child_target.
9415 (_initialize_windows_nat): Use windows_target. Install x86
9416 specific target methods here.
9417
9418 2014-03-10 Doug Evans <xdje42@gmail.com>
9419
9420 * guile/guile.c (call_initialize_gdb_module): New function.
9421 (initialize_guile): Replace call to scm_init_guile with call to
9422 scm_with_guile.
9423
9424 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9425
9426 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9427 in call to TYPE_CODE macro.
9428
9429 2014-03-10 Jerome Guitton <guitton@adacore.com>
9430
9431 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9432 Resolve tagged types to full view.
9433
9434 2014-03-10 Hui Zhu <hui@codesourcery.com>
9435
9436 * target.h (target_insert_breakpoint): Remove "hardware" from its
9437 comments.
9438
9439 2014-03-07 Doug Evans <dje@google.com>
9440
9441 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9442
9443 2014-03-07 Doug Evans <dje@google.com>
9444
9445 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9446 Remove unused local comp_dir_attr. Assert exactly one of
9447 stub_comp_unit_die, stub_comp_dir is non-NULL.
9448
9449 2014-03-07 Joel Brobecker <brobecker@adacore.com>
9450
9451 * target.h (complete_target_initialization, add_target):
9452 Add comment.
9453
9454 2014-03-07 Pedro Alves <palves@redhat.com>
9455
9456 * go32-nat.c: Include inf-child.h.
9457 (go32_ops): Delete global.
9458 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9459 Delete methods.
9460 (go32_create_inferior): Push the passed in target pointer instead
9461 of referencing go32_ops.
9462 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9463 (go32_target): New function, based on init_go32_ops, but inherit
9464 inf_child_target.
9465 (_initialize_go32_nat): Use go32_target. Move parts of
9466 init_go32_ops here.
9467
9468 2014-03-06 Joel Brobecker <brobecker@adacore.com>
9469
9470 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9471 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9472 SYMBOL_VALUE_ADDRESS.
9473 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9474
9475 2014-03-06 Yao Qi <yao@codesourcery.com>
9476
9477 * breakpoint.c (get_tracepoint_by_number): Remove argument
9478 optional_p. All callers updated. Adjust comments. Update
9479 output message.
9480 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9481
9482 2014-03-06 Yao Qi <yao@codesourcery.com>
9483
9484 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9485 early if get_number returns zero. Use 'p' instead of 'args'.
9486
9487 2014-03-06 Yao Qi <yao@codesourcery.com>
9488
9489 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9490 message.
9491
9492 2014-03-06 Yao Qi <yao@codesourcery.com>
9493
9494 PR breakpoints/16508
9495 * tracepoint.c (check_trace_running): New function.
9496 (trace_find_command): Move code to check_trace_running and
9497 call check_trace_running.
9498 (trace_find_pc_command): Likewise.
9499 (trace_find_tracepoint_command): Likewise.
9500 (trace_find_line_command): Likewise.
9501 (trace_find_range_command): Likewise.
9502 * tracepoint.h (check_trace_running): Likewise.
9503 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9504
9505 2014-03-06 Yao Qi <yao@codesourcery.com>
9506
9507 * target.h (struct target_ops) <to_traceframe_info>: Use
9508 TARGET_DEFAULT_NORETURN (tcomplain ()).
9509 * target-delegates.c: Regenerated.
9510
9511 2014-03-05 Pedro Alves <palves@redhat.com>
9512
9513 PR gdb/16575
9514 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9515 void. Update comment.
9516 (dcache_xfer_memory): Delete.
9517 (dcache_read_memory_partial): New, based on the read bits of
9518 dcache_xfer_memory.
9519 (dcache_update): Add status parameter. Use ULONGEST for len, and
9520 adjust. Discard cache lines if the reason for the update was
9521 error.
9522 * dcache.h (dcache_xfer_memory): Delete declaration.
9523 (dcache_read_memory_partial): New declaration.
9524 (dcache_update): Update prototype.
9525 * target.c (raw_memory_xfer_partial): Update the dcache here.
9526 (memory_xfer_partial_1): Don't handle dcache writes here.
9527
9528 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9529
9530 * remote-sim.c (gdbsim_load): Add const to prog.
9531
9532 2014-03-03 Tom Tromey <tromey@redhat.com>
9533
9534 * elfread.c (probe_key): Change to bfd_data.
9535 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9536 now per-BFD, not per-objfile.
9537 * stap-probe.c (stap_probe_destroy): Update comment.
9538 (handle_stap_probe): Allocate on the per-BFD obstack.
9539
9540 2014-03-03 Tom Tromey <tromey@redhat.com>
9541
9542 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9543 * breakpoint.c (create_longjmp_master_breakpoint): Use
9544 get_probe_address.
9545 (add_location_to_breakpoint, bkpt_probe_insert_location)
9546 (bkpt_probe_remove_location): Update.
9547 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9548 * elfread.c (elf_symfile_relocate_probe): Remove.
9549 (elf_probe_fns): Update.
9550 (insert_exception_resume_breakpoint): Change type of "probe"
9551 parameter to bound_probe.
9552 (check_exception_resume): Update.
9553 * objfiles.c (objfile_relocate1): Don't relocate probes.
9554 * probe.c (bound_probe_s): New typedef.
9555 (parse_probes): Use get_probe_address. Set sal's objfile.
9556 (find_probe_by_pc): Return a bound_probe.
9557 (collect_probes): Return a VEC(bound_probe_s).
9558 (compare_probes): Update.
9559 (gen_ui_out_table_header_info): Change type of "probes"
9560 parameter. Update.
9561 (info_probes_for_ops): Update.
9562 (get_probe_address): New function.
9563 (probe_safe_evaluate_at_pc): Update.
9564 * probe.h (struct probe_ops) <get_probe_address>: New field.
9565 <set_semaphore, clear_semaphore>: Add objfile parameter.
9566 (struct probe) <objfile>: Remove field.
9567 <arch>: New field.
9568 <address>: Update comment.
9569 (struct bound_probe): New.
9570 (find_probe_by_pc): Return a bound_probe.
9571 (get_probe_address): Declare.
9572 * solib-svr4.c (struct probe_and_action) <address>: New field.
9573 (hash_probe_and_action, equal_probe_and_action): Update.
9574 (register_solib_event_probe): Add address parameter.
9575 (solib_event_probe_at): Update.
9576 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9577 get_probe_address.
9578 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9579 (stap_get_probe_address): New function.
9580 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9581 (compile_probe_arg): Update.
9582 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9583 address.
9584 (handle_stap_probe): Don't relocate the probe.
9585 (stap_relocate): Remove.
9586 (stap_gen_info_probes_table_values): Update.
9587 (stap_probe_ops): Remove stap_relocate.
9588 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9589 (debug_sym_probe_fns): Update.
9590 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9591 * symtab.c (init_sal): Use memset.
9592 * symtab.h (struct symtab_and_line) <objfile>: New field.
9593 * tracepoint.c (start_tracing, stop_tracing): Update.
9594
9595 2014-03-03 Tom Tromey <tromey@redhat.com>
9596
9597 * probe.h (parse_probes, find_probe_by_pc)
9598 (find_probes_in_objfile): Fix comments.
9599
9600 2014-03-02 Doug Evans <xdje42@gmail.com>
9601
9602 * infrun.c (handle_signal_stop): Replace test for
9603 TARGET_WAITKIND_STOPPED with an assert.
9604
9605 2014-03-02 Doug Evans <xdje42@gmail.com>
9606
9607 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9608
9609 2014-03-02 Doug Evans <xdje42@gmail.com>
9610
9611 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9612
9613 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9614
9615 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9616
9617 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9618
9619 * i386obsd-nat.c: Include "obsd-nat.h".
9620 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9621 add_target.
9622 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9623
9624 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9625
9626 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9627
9628 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9629
9630 * mips64obsd-nat.c: Include "obsd-nath".
9631 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9632 add_target
9633 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9634
9635 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9636
9637 * amd64obsd-nat.c: Include "obsd-nat,h.
9638 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9639 add_target.
9640 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9641
9642 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9643
9644 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9645 (find_overload_match): Update call to find_oload_champ.
9646 (find_oload_champ_namespace_loop): Likewise
9647
9648 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9649
9650 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9651
9652 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9653 * config/sparc/obsd64.mh: New file.
9654 * sparc64obsd-nat.c: New file.
9655
9656 * obsd-nat.h: New file.
9657 * obsd-nat.c: New file.
9658 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9659 (ALLDEPFILES): Add obsd-nat.c.
9660
9661 2014-02-28 Tom Tromey <tromey@redhat.com>
9662
9663 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9664 * cli-out.h (cli_ui_out_impl): Now const.
9665 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9666 * ui-out.c (struct ui_out) <impl>: Now const.
9667 (default_ui_out_impl): Now const.
9668 (ui_out_new): Make 'impl' parameter const.
9669 * ui-out.h (ui_out_new): Update.
9670
9671 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9672
9673 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9674
9675 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9676
9677 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9678
9679 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9680
9681 Additional PR 8882 fix.
9682 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9683
9684 2014-02-27 Pedro Alves <palves@redhat.com>
9685
9686 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9687 isn't set.
9688
9689 2014-02-27 Pedro Alves <palves@redhat.com>
9690
9691 PR 12702
9692 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9693 * nat/linux-waitpid.c: Include string.h.
9694 (status_to_str): Moved here and made extern.
9695 * nat/linux-waitpid.h (status_to_str): New declaration.
9696
9697 2014-02-27 Hui Zhu <hui@codesourcery.com>
9698
9699 PR 12702
9700 * infrun.c (ptid_match): Move ...
9701 * common/ptid.c (ptid_match): ... here.
9702 * inferior.h (ptid_match): Move ...
9703 * common/ptid.h (ptid_match): ... here.
9704
9705 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9706
9707 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9708 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9709 gdb_target_obs.
9710
9711 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9712
9713 * obsd-tdep.c (obsd_auxv_parse): New function.
9714 (obsd_init_abi): Set auxv_parse.
9715
9716 * gdbarch.sh (auxv_parse): New.
9717 * gdbarch.h: Regenerated.
9718 * gdbarch.c: Regenerated.
9719 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9720
9721 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9722
9723 * guile/scm-value.c (gdbscm_history_append_x): New function.
9724 (value_functions): Add it.
9725
9726 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9727
9728 * dwarf2read.c (attr_value_as_address): New function.
9729 (dwarf2_find_base_address, read_call_site_scope): Use
9730 attr_value_as_address in place of DW_ADDR.
9731 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9732 the low and high addresses. Slight rework of the handling
9733 of the high pc being a constant form, and limit it to
9734 DWARF verson 4 or higher.
9735 (dwarf2_record_block_ranges): Likewise.
9736 (read_partial_die): Likewise.
9737 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9738
9739 2014-02-26 Tom Tromey <tromey@redhat.com>
9740
9741 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9742
9743 2014-02-26 Tom Tromey <tromey@redhat.com>
9744
9745 * elfread.c (elf_read_minimal_symbols): Return early if
9746 minimal symbols have already been read. Add "ei" parameter.
9747 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9748 * minsyms.c (prim_record_minimal_symbol_full): Update.
9749 * objfiles.h (struct objstats) <n_minsyms>: Move...
9750 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9751 * symmisc.c (print_objfile_statistics): Update.
9752
9753 2014-02-26 Tom Tromey <tromey@redhat.com>
9754
9755 * elfread.c (elf_read_minimal_symbols): New function, from
9756 elf_symfile_read.
9757 (elf_symfile_read): Call it.
9758
9759 2014-02-26 Tom Tromey <tromey@redhat.com>
9760
9761 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9762 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9763 (lookup_minimal_symbol_solib_trampoline)
9764 (lookup_minimal_symbol_by_pc_section_1)
9765 (lookup_minimal_symbol_and_objfile): Update.
9766 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9767 Don't allocate a minimal symbol if minsyms have already been read.
9768 (build_minimal_symbol_hash_tables): Update.
9769 (install_minimal_symbols): Do nothing if minsyms already read.
9770 Use the per-BFD obstack.
9771 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9772 * objfiles.c (allocate_objfile): Call
9773 terminate_minimal_symbol_table later.
9774 (have_minimal_symbols): Update.
9775 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9776 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9777 Move from struct objfile.
9778 <minsyms_read>: New field.
9779 (struct objfile) <msymbols, minimal_symbol_count,
9780 msymbol_hash, msymbol_demangled_hash>: Move.
9781 (ALL_OBJFILE_MSYMBOLS): Update.
9782 * symfile.c (read_symbols): Set minsyms_read.
9783 (reread_symbols): Update.
9784 * symmisc.c (dump_objfile, dump_msymbols): Update.
9785
9786 2014-02-26 Tom Tromey <tromey@redhat.com>
9787
9788 * minsyms.c (msymbols_sort): Remove.
9789 * minsyms.h (msymbols_sort): Remove.
9790 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9791 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9792 * elfread.c (elf_symtab_read): Don't add section offsets.
9793 * xcoffread.c (record_minimal_symbol): Don't add section offset
9794 to minimal symbol address.
9795 * somread.c (text_offset, data_offset): Remove.
9796 (som_symtab_read): Don't add section offsets to minimal symbol
9797 addresses.
9798 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9799 Don't add section offsets to minimal symbols.
9800 * coffread.c (coff_symtab_read): Don't add section offsets
9801 to minimal symbol addresses.
9802 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9803 to minimal symbol addresses.
9804 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9805 section offset to minimal symbol addresses.
9806 * mdebugread.c (parse_partial_symbols): Don't add section
9807 offset to minimal symbol addresses.
9808 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9809 offset to minimal symbol addresses.
9810
9811 2014-02-26 Tom Tromey <tromey@redhat.com>
9812
9813 * ada-lang.c (ada_main_name): Update.
9814 (ada_add_standard_exceptions): Update.
9815 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9816 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9817 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9818 * auxv.c (ld_so_xfer_auxv): Update.
9819 * avr-tdep.c (avr_scan_prologue): Update.
9820 * ax-gdb.c (gen_var_ref): Update.
9821 * blockframe.c (get_pc_function_start)
9822 (find_pc_partial_function_gnu_ifunc): Update.
9823 * breakpoint.c (create_overlay_event_breakpoint)
9824 (create_longjmp_master_breakpoint)
9825 (create_std_terminate_master_breakpoint)
9826 (create_exception_master_breakpoint): Update.
9827 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9828 * c-valprint.c (c_val_print): Update.
9829 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9830 * common/agent.c (agent_look_up_symbols): Update.
9831 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9832 * dwarf2loc.c (call_site_to_target_addr): Update.
9833 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9834 * elfread.c (elf_gnu_ifunc_record_cache)
9835 (elf_gnu_ifunc_resolve_by_got): Update.
9836 * findvar.c (default_read_var_value): Update.
9837 * frame.c (inside_main_func): Update.
9838 * frv-tdep.c (frv_frame_this_id): Update.
9839 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9840 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9841 Update.
9842 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9843 (hppa_hpux_find_dummy_bpaddr): Update.
9844 * hppa-tdep.c (hppa_symbol_address): Update.
9845 * infcmd.c (until_next_command): Update.
9846 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9847 Update.
9848 * linespec.c (minsym_found, add_minsym): Update.
9849 * linux-nat.c (get_signo): Update.
9850 * linux-thread-db.c (inferior_has_bug): Update.
9851 * m32c-tdep.c (m32c_return_value)
9852 (m32c_m16c_address_to_pointer): Update.
9853 * m32r-tdep.c (m32r_frame_this_id): Update.
9854 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9855 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9856 * maint.c (maintenance_translate_address): Update.
9857 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9858 (frob_address): New function.
9859 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9860 frob_address. Rename parameter to "pc_in".
9861 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9862 addresses.
9863 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9864 Update.
9865 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9866 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9867 * objc-lang.c (find_objc_msgsend): Update.
9868 * objfiles.c (objfile_relocate1): Update.
9869 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9870 * p-valprint.c (pascal_val_print): Update.
9871 * parse.c (write_exp_msymbol): Update.
9872 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9873 (ppc_elfv2_skip_entrypoint): Update.
9874 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9875 * printcmd.c (build_address_symbolic, msym_info)
9876 (address_info): Update.
9877 * proc-service.c (ps_pglobal_lookup): Update.
9878 * psymtab.c (find_pc_sect_psymtab_closer)
9879 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9880 Change msymbol parameter to bound_minimal_symbol.
9881 * ravenscar-thread.c (get_running_thread_id): Update.
9882 * remote.c (remote_check_symbols): Update.
9883 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9884 address.
9885 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9886 * solib-dsbt.c (lm_base): Update.
9887 * solib-frv.c (lm_base, main_got): Update.
9888 * solib-irix.c (locate_base): Update.
9889 * solib-som.c (som_solib_create_inferior_hook)
9890 (link_map_start): Update.
9891 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9892 * solib-svr4.c (elf_locate_base, enable_break): Update.
9893 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9894 (flush_ea_cache): Update.
9895 * stabsread.c (define_symbol, scan_file_globals): Update.
9896 * stack.c (find_frame_funname): Update.
9897 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9898 (debug_qf_find_pc_sect_symtab): Update.
9899 * symfile.c (simple_read_overlay_table)
9900 (simple_overlay_update): Update.
9901 * symfile.h (struct quick_symbol_functions)
9902 <find_pc_sect_symtab>: Change type of msymbol to
9903 bound_minimal_symbol.
9904 * symmisc.c (dump_msymbols): Update.
9905 * symtab.c (find_pc_sect_symtab_via_partial)
9906 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9907 (search_symbols, print_msymbol_info): Update.
9908 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9909 (MSYMBOL_VALUE_ADDRESS): Redefine.
9910 (BMSYMBOL_VALUE_ADDRESS): New macro.
9911 * tracepoint.c (scope_info): Update.
9912 * tui/tui-disasm.c (tui_find_disassembly_address)
9913 (tui_get_begin_asm_address): Update.
9914 * valops.c (find_function_in_inferior): Update.
9915 * value.c (value_static_field, value_fn_field): Update.
9916
9917 2014-02-26 Tom Tromey <tromey@redhat.com>
9918
9919 * ada-lang.c (ada_update_initial_language): Update.
9920 (ada_main_name, ada_has_this_exception_support): Update.
9921 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9922 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9923 * arm-tdep.c (arm_skip_stub): Update.
9924 * auxv.c (ld_so_xfer_auxv): Update.
9925 * avr-tdep.c (avr_scan_prologue): Update.
9926 * ax-gdb.c (gen_var_ref): Update.
9927 * breakpoint.c (struct breakpoint_objfile_data)
9928 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9929 type to bound_minimal_symbol.
9930 (create_overlay_event_breakpoint)
9931 (create_longjmp_master_breakpoint)
9932 (create_std_terminate_master_breakpoint)
9933 (create_exception_master_breakpoint): Update.
9934 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9935 * c-exp.y (classify_name): Update.
9936 * coffread.c (coff_symfile_read): Update.
9937 * common/agent.c (agent_look_up_symbols): Update.
9938 * d-lang.c (d_main_name): Update.
9939 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9940 * dec-thread.c (enable_dec_thread): Update.
9941 * dwarf2loc.c (call_site_to_target_addr): Update.
9942 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9943 * eval.c (evaluate_subexp_standard): Update.
9944 * findvar.c (struct minsym_lookup_data) <result>: Change type
9945 to bound_minimal_symbol.
9946 <objfile>: Remove.
9947 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9948 * frame.c (inside_main_func): Update.
9949 * frv-tdep.c (frv_frame_this_id): Update.
9950 * gcore.c (call_target_sbrk): Update.
9951 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9952 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9953 Update.
9954 * go-lang.c (go_main_name): Update.
9955 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9956 (hppa_hpux_find_import_stub_for_addr): Update.
9957 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9958 Update. Change return type.
9959 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9960 type.
9961 * jit.c (jit_breakpoint_re_set_internal): Update.
9962 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9963 Update.
9964 * linux-nat.c (get_signo): Update.
9965 * linux-thread-db.c (inferior_has_bug): Update
9966 * m32c-tdep.c (m32c_return_value)
9967 (m32c_m16c_address_to_pointer): Update.
9968 * m32r-tdep.c (m32r_frame_this_id): Update.
9969 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9970 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9971 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9972 lookup_minimal_symbol. Change return type.
9973 (lookup_minimal_symbol): Remove.
9974 (lookup_bound_minimal_symbol): Update.
9975 (lookup_minimal_symbol_text): Change return type.
9976 (lookup_minimal_symbol_solib_trampoline): Change return type.
9977 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9978 (lookup_minimal_symbol_solib_trampoline): Change return type.
9979 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9980 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9981 (value_nsstring, find_imps): Update.
9982 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9983 * p-lang.c (pascal_main_name): Update.
9984 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9985 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9986 * proc-service.c (ps_pglobal_lookup): Update.
9987 * ravenscar-thread.c (get_running_thread_msymbol): Change
9988 return type.
9989 (has_ravenscar_runtime, get_running_thread_id): Update.
9990 * remote.c (remote_check_symbols): Update.
9991 * sol-thread.c (ps_pglobal_lookup): Update.
9992 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9993 * solib-dsbt.c (lm_base): Update.
9994 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9995 Update.
9996 * solib-irix.c (locate_base): Update.
9997 * solib-som.c (som_solib_create_inferior_hook)
9998 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9999 Update.
10000 * solib-spu.c (spu_enable_break): Update.
10001 * solib-svr4.c (elf_locate_base, enable_break): Update.
10002 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10003 (flush_ea_cache): Update.
10004 * stabsread.c (define_symbol): Update.
10005 * symfile.c (simple_read_overlay_table): Update.
10006 * symtab.c (find_pc_sect_line): Update.
10007 * tracepoint.c (scope_info): Update.
10008 * tui-disasm.c (tui_get_begin_asm_address): Update.
10009 * value.c (value_static_field): Update.
10010
10011 2014-02-26 Tom Tromey <tromey@redhat.com>
10012
10013 * minsyms.c (prim_record_minimal_symbol_full): Use
10014 SET_MSYMBOL_VALUE_ADDRESS.
10015 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10016 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10017 SET_MSYMBOL_VALUE_ADDRESS.
10018 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10019 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10020
10021 2014-02-26 Tom Tromey <tromey@redhat.com>
10022
10023 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10024 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10025 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10026 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10027 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10028 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10029 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10030 * ada-lang.c (ada_main_name): Update.
10031 (ada_lookup_simple_minsym): Update.
10032 (ada_make_symbol_completion_list): Update.
10033 (ada_add_standard_exceptions): Update.
10034 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10035 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10036 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10037 * arm-tdep.c (skip_prologue_function): Update.
10038 (arm_skip_stack_protector, arm_skip_stub): Update.
10039 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10040 (arm_wince_skip_main_prologue): Update.
10041 * auxv.c (ld_so_xfer_auxv): Update.
10042 * avr-tdep.c (avr_scan_prologue): Update.
10043 * ax-gdb.c (gen_var_ref): Update.
10044 * block.c (call_site_for_pc): Update.
10045 * blockframe.c (get_pc_function_start): Update.
10046 (find_pc_partial_function_gnu_ifunc): Update.
10047 * breakpoint.c (create_overlay_event_breakpoint): Update.
10048 (create_longjmp_master_breakpoint): Update.
10049 (create_std_terminate_master_breakpoint): Update.
10050 (create_exception_master_breakpoint): Update.
10051 (resolve_sal_pc): Update.
10052 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10053 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10054 Update.
10055 * c-valprint.c (c_val_print): Update.
10056 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10057 * coffread.c (coff_symfile_read): Update.
10058 * common/agent.c (agent_look_up_symbols): Update.
10059 * dbxread.c (find_stab_function_addr): Update.
10060 (end_psymtab): Update.
10061 * dwarf2loc.c (call_site_to_target_addr): Update.
10062 (func_verify_no_selftailcall): Update.
10063 (tailcall_dump): Update.
10064 (call_site_find_chain_1): Update.
10065 (dwarf_expr_reg_to_entry_parameter): Update.
10066 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10067 (elf_gnu_ifunc_resolve_by_got): Update.
10068 * f-valprint.c (info_common_command): Update.
10069 * findvar.c (read_var_value): Update.
10070 * frame.c (get_prev_frame_1): Update.
10071 (inside_main_func): Update.
10072 * frv-tdep.c (frv_skip_main_prologue): Update.
10073 (frv_frame_this_id): Update.
10074 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10075 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10076 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10077 (gnuv3_skip_trampoline): Update.
10078 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10079 (hppa64_hpux_in_solib_call_trampoline): Update.
10080 (hppa_hpux_skip_trampoline_code): Update.
10081 (hppa64_hpux_search_dummy_call_sequence): Update.
10082 (hppa_hpux_find_import_stub_for_addr): Update.
10083 (hppa_hpux_find_dummy_bpaddr): Update.
10084 * hppa-tdep.c (hppa_symbol_address)
10085 (hppa_lookup_stub_minimal_symbol): Update.
10086 * i386-tdep.c (i386_skip_main_prologue): Update.
10087 (i386_pe_skip_trampoline_code): Update.
10088 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10089 * infcall.c (get_function_name): Update.
10090 * infcmd.c (until_next_command): Update.
10091 * jit.c (jit_breakpoint_re_set_internal): Update.
10092 (jit_inferior_init): Update.
10093 * linespec.c (minsym_found): Update.
10094 (add_minsym): Update.
10095 * linux-fork.c (info_checkpoints_command): Update.
10096 * linux-nat.c (get_signo): Update.
10097 * linux-thread-db.c (inferior_has_bug): Update.
10098 * m32c-tdep.c (m32c_return_value): Update.
10099 (m32c_m16c_address_to_pointer): Update.
10100 (m32c_m16c_pointer_to_address): Update.
10101 * m32r-tdep.c (m32r_frame_this_id): Update.
10102 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10103 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10104 * maint.c (maintenance_translate_address): Update.
10105 * minsyms.c (add_minsym_to_hash_table): Update.
10106 (add_minsym_to_demangled_hash_table): Update.
10107 (msymbol_objfile): Update.
10108 (lookup_minimal_symbol): Update.
10109 (iterate_over_minimal_symbols): Update.
10110 (lookup_minimal_symbol_text): Update.
10111 (lookup_minimal_symbol_by_pc_name): Update.
10112 (lookup_minimal_symbol_solib_trampoline): Update.
10113 (lookup_minimal_symbol_by_pc_section_1): Update.
10114 (lookup_minimal_symbol_and_objfile): Update.
10115 (prim_record_minimal_symbol_full): Update.
10116 (compare_minimal_symbols): Update.
10117 (compact_minimal_symbols): Update.
10118 (build_minimal_symbol_hash_tables): Update.
10119 (install_minimal_symbols): Update.
10120 (terminate_minimal_symbol_table): Update.
10121 (find_solib_trampoline_target): Update.
10122 (minimal_symbol_upper_bound): Update.
10123 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10124 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10125 (mips_skip_pic_trampoline_code): Update.
10126 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10127 * objc-lang.c (selectors_info): Update.
10128 (classes_info): Update.
10129 (find_methods): Update.
10130 (find_imps): Update.
10131 (find_objc_msgsend): Update.
10132 * objfiles.c (objfile_relocate1): Update.
10133 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10134 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10135 * p-valprint.c (pascal_val_print): Update.
10136 * parse.c (write_exp_msymbol): Update.
10137 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10138 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10139 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10140 * printcmd.c (build_address_symbolic): Update.
10141 (sym_info): Update.
10142 (address_info): Update.
10143 * proc-service.c (ps_pglobal_lookup): Update.
10144 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10145 (find_pc_sect_psymtab): Update.
10146 * python/py-framefilter.c (py_print_frame): Update.
10147 * ravenscar-thread.c (get_running_thread_id): Update.
10148 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10149 Update.
10150 * remote.c (remote_check_symbols): Update.
10151 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10152 (rs6000_skip_trampoline_code): Update.
10153 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10154 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10155 * solib-dsbt.c (lm_base): Update.
10156 * solib-frv.c (lm_base): Update.
10157 (main_got): Update.
10158 * solib-irix.c (locate_base): Update.
10159 * solib-som.c (som_solib_create_inferior_hook): Update.
10160 (som_solib_desire_dynamic_linker_symbols): Update.
10161 (link_map_start): Update.
10162 * solib-spu.c (spu_enable_break): Update.
10163 (ocl_enable_break): Update.
10164 * solib-svr4.c (elf_locate_base): Update.
10165 (enable_break): Update.
10166 * spu-tdep.c (spu_get_overlay_table): Update.
10167 (spu_catch_start): Update.
10168 (flush_ea_cache): Update.
10169 * stabsread.c (define_symbol): Update.
10170 (scan_file_globals): Update.
10171 * stack.c (find_frame_funname): Update.
10172 (frame_info): Update.
10173 * symfile.c (simple_read_overlay_table): Update.
10174 (simple_overlay_update): Update.
10175 * symmisc.c (dump_msymbols): Update.
10176 * symtab.c (fixup_section): Update.
10177 (find_pc_sect_line): Update.
10178 (skip_prologue_sal): Update.
10179 (search_symbols): Update.
10180 (print_msymbol_info): Update.
10181 (rbreak_command): Update.
10182 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10183 (completion_list_objc_symbol): Update.
10184 (default_make_symbol_completion_list_break_on): Update.
10185 * tracepoint.c (scope_info): Update.
10186 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10187 (tui_get_begin_asm_address): Update.
10188 * valops.c (find_function_in_inferior): Update.
10189 * value.c (value_static_field): Update.
10190 (value_fn_field): Update.
10191
10192 2014-02-26 Tom Tromey <tromey@redhat.com>
10193
10194 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10195 bound minimal symbols. Move code that knows about minsym
10196 table layout...
10197 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10198 function.
10199 * minsyms.h (minimal_symbol_upper_bound): Declare.
10200 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10201 minimal_symbol_upper_bound.
10202
10203 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10204
10205 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10206 Use the type's name if its basic type does not have a tag.
10207
10208 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10209
10210 * dwarf2read.c (read_subrange_type): Add comment.
10211
10212 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10213
10214 * dwarf2read.c (update_enumeration_type_from_children): New
10215 function, mostly extracted from process_structure_scope.
10216 (read_enumeration_type): Call update_enumeration_type_from_children.
10217 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10218 and flag_flag_enum fields.
10219
10220 2014-02-26 Pedro Alves <palves@redhat.com>
10221
10222 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10223 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10224 to_xfer_partial method.
10225
10226 2014-02-26 Pedro Alves <palves@redhat.com>
10227
10228 * target.c (complete_target_initialization): Don't install
10229 default_xfer_partial as to_xfer_partial hook.
10230 (nomemory): Delete.
10231 (update_current_target): Don't INHERIT nor de_fault
10232 deprecated_xfer_memory. Delete de_fault macro.
10233 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10234 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10235 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10236 field.
10237
10238 2014-02-26 Pedro Alves <palves@redhat.com>
10239
10240 * go32-nat.c (my_write_child): New function.
10241 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10242 (go32_xfer_partial): New function.
10243 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10244 Instead install a to_xfer_partial hook.
10245
10246 2014-02-26 Pedro Alves <palves@redhat.com>
10247
10248 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10249 to_xfer_partial helper. Rewrite.
10250 (procfs_xfer_partial): New function.
10251 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10252 Install a to_xfer_partial hook.
10253
10254 2014-02-26 Pedro Alves <palves@redhat.com>
10255
10256 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10257 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10258 (m32r_xfer_partial): New function.
10259 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10260 Install a to_xfer_partial hook.
10261
10262 2014-02-26 Pedro Alves <palves@redhat.com>
10263
10264 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10265 helper.
10266 (mips_xfer_partial): New function.
10267 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10268 hook. Install a to_xfer_partial hook.
10269
10270 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10271
10272 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10273 * gdbtypes.c (create_array_type_with_stride): New function,
10274 renaming create_array_type, but with an added parameter
10275 called "bit_stride".
10276 (create_array_type): Re-implement using
10277 create_array_type_with_stride.
10278 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10279 and DW_AT_bit_stride attributes.
10280
10281 2014-02-26 Pedro Alves <palves@redhat.com>
10282
10283 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10284 task-specific breakpoints.
10285
10286 2014-02-25 Pedro Alves <palves@redhat.com>
10287
10288 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10289 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10290
10291 2014-02-25 Stan Shebs <stan@codesourcery.com>
10292
10293 * defs.h: Annotate comments for Doxygen.
10294
10295 2014-02-25 Tom Tromey <tromey@redhat.com>
10296
10297 * target.h (target_ignore): Don't declare.
10298 * target.c (target_ignore): Remove.
10299
10300 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 PR gdb/16626
10303 * auto-load.c (auto_load_objfile_script_1): Change filename to
10304 debugfile.
10305
10306 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10307
10308 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10309 documentation. Adjust prototype to match the target_ops
10310 to_xfer_partial method. Adjust implementation accordingly.
10311
10312 2014-02-25 Hui Zhu <hui@codesourcery.com>
10313
10314 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10315 to_traceframe_info.
10316
10317 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10318
10319 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10320 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10321 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10322 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10323 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10324 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10325 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10326 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10327 New constants.
10328 (rl78_register_type): Use a data pointer type for SP and
10329 new pseudo registers mentioned above. Use a 16 bit integer
10330 type for all other register pairs.
10331 (rl78_register_name, rl78_g10_register_name): Update for
10332 new pseudo registers.
10333 (rl78_pseudo_register_read): Likewise.
10334 (rl78_pseudo_register_write): Likewise.
10335 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10336 to the newly added pseudo registers.
10337
10338 2014-02-24 Doug Evans <dje@google.com>
10339
10340 * value.c (record_latest_value): Fix comment.
10341 * printcmd.c (print_command_1): Remove code to handle -1 return from
10342 record_latest_value.
10343
10344 2014-02-24 Pedro Alves <palves@redhat.com>
10345
10346 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10347 deprecated_xfer_memory hook.
10348 (procfs_xfer_partial): Call procfs_xfer_memory instead
10349 of the deprecated_xfer_memory target hook.
10350 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10351 helper.
10352
10353 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10354
10355 * windows-nat.c (windows_xfer_shared_libraries): Return
10356 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10357 requested object is TARGET_OBJECT_LIBRARIES.
10358
10359 2014-02-24 Yao Qi <yao@codesourcery.com>
10360
10361 * target.h (enum target_xfer_status)
10362 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10363 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10364 explicitly. New.
10365 * corefile.c (memory_error_message): User updated.
10366 * exec.c (section_table_read_available_memory): Likewise.
10367 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10368 * target.c (target_xfer_status_to_string): Likewise.
10369 (raw_memory_xfer_partial): Likewise.
10370 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10371 * valops.c (read_value_memory): Likewise.
10372 * exec.h: Update comments.
10373
10374 2014-02-24 Yao Qi <yao@codesourcery.com>
10375
10376 * target.c (target_xfer_status_to_string): Rename argument err
10377 to status.
10378 * target.h (target_xfer_status_to_string): Update declaration.
10379 Replace target_xfer_error_to_string with
10380 target_xfer_status_to_string in comment.
10381
10382 2014-02-24 Yao Qi <yao@codesourcery.com>
10383
10384 * mips-linux-nat.c (super_close): Update its type.
10385 (mips_linux_close): Pass 'self' to super_close.
10386
10387 2014-02-24 Yao Qi <yao@codesourcery.com>
10388
10389 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10390 * corefile.c (read_memory): Adjusted.
10391 * target.c (target_write_with_progress): Adjusted.
10392
10393 2014-02-23 Yao Qi <yao@codesourcery.com>
10394
10395 Revert two patches:
10396
10397 2013-10-25 Yao Qi <yao@codesourcery.com>
10398
10399 * remote.c (remote_traceframe_info): Return early if
10400 traceframe is not selected.
10401
10402 2013-07-19 Yao Qi <yao@codesourcery.com>
10403
10404 * target.c (update_current_target): Change the default action
10405 of 'to_traceframe_info' from tcomplain to return_zero.
10406 * target.h (struct target_ops) <to_traceframe_info>: Add more
10407 comments.
10408
10409 2014-02-23 Yao Qi <yao@codesourcery.com>
10410
10411 * valops.c (read_value_memory): Rewrite it. Call
10412 target_xfer_partial in a loop.
10413 * exec.h (section_table_available_memory): Remove declaration.
10414 Move comments to ...
10415 * exec.c (section_table_available_memory): ... here. Make it
10416 static.
10417
10418 2014-02-23 Yao Qi <yao@codesourcery.com>
10419
10420 * exec.c (section_table_read_available_memory): New function.
10421 * exec.h (section_table_read_available_memory): Declare.
10422 * ctf.c (ctf_xfer_partial): Call
10423 section_table_read_available_memory.
10424 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10425
10426 2014-02-23 Yao Qi <yao@codesourcery.com>
10427
10428 * ctf.c (ctf_xfer_partial): Move code to ...
10429 * exec.c (exec_read_partial_read_only): ... it. New function.
10430 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10431 * tracefile.c: Include "exec.h".
10432 * exec.h (exec_read_partial_read_only): Declare.
10433
10434 2014-02-23 Yao Qi <yao@codesourcery.com>
10435
10436 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10437 (tfile_has_memory): Remove.
10438 (init_tfile_ops): Don't set fields to_has_all_memory and
10439 to_has_memory of tfile_ops.
10440 * tracefile.c (tracefile_has_all_memory): New function.
10441 (tracefile_has_memory): New function.
10442 (init_tracefile_ops): Initialize fields to_has_all_memory and
10443 to_has_memory of 'ops'.
10444
10445 2014-02-23 Yao Qi <yao@codesourcery.com>
10446
10447 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10448 (ctf_thread_alive, ctf_get_trace_status): Remove.
10449 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10450 init_tracefile_ops.
10451 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10452 (tfile_has_stack, tfile_has_registers): Remove.
10453 (tfile_thread_alive): Remove.
10454 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10455 init_tracefile_ops.
10456 * tracefile.c (tracefile_has_stack): New function.
10457 (tracefile_has_registers): New function.
10458 (tracefile_thread_alive): New function.
10459 (tracefile_get_trace_status): New function.
10460 (init_tracefile_ops): New function.
10461 * tracefile.h (init_tracefile_ops): Declare.
10462
10463 2014-02-23 Yao Qi <yao@codesourcery.com>
10464
10465 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10466 (O_LARGEFILE): Likewise.
10467 (tfile_ops): Likewise.
10468 (TRACE_HEADER_SIZE): Likewise.
10469 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10470 (cur_data_size): Likewise.
10471 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10472 (tfile_close, tfile_files_info): Likewise.
10473 (tfile_get_trace_status): Likewise.
10474 (tfile_get_tracepoint_status): Likewise.
10475 (tfile_get_traceframe_address): Likewise.
10476 (tfile_trace_find, match_blocktype): Likewise.
10477 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10478 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10479 (tfile_get_trace_state_variable_value): Likewise.
10480 (tfile_has_all_memory, tfile_has_memory): Likewise.
10481 (tfile_has_stack, tfile_has_registers): Likewise.
10482 (tfile_thread_alive, build_traceframe_info): Likewise.
10483 (tfile_traceframe_info, init_tfile_ops): Likewise.
10484 (_initialize_tracepoint): Don't call init_tfile_ops
10485 and add_target_with_completer.
10486 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10487 exec.h, completer.h and filenames.h.
10488 (_initialize_tracefile_tfile): New function.
10489
10490 2014-02-23 Yao Qi <yao@codesourcery.com>
10491
10492 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10493 tracefile-tfile.o.
10494 (HFILES_NO_SRCDIR): Add tracefile.h.
10495 * ctf.c: Include "tracefile.h".
10496 * tracefile.h: New file.
10497 * tracefile.c: New file
10498 * tracefile-tfile.c: New file.
10499 * tracepoint.c: Include "tracefile.h".
10500 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10501 (stop_reason_names): Add const.
10502 (trace_file_writer_xfree): Move it to tracefile.c.
10503 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10504 (trace_save_ctf): Likewise.
10505 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10506 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10507 (tfile_write_header, tfile_write_regblock_type): Likewise.
10508 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10509 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10510 (tfile_write_raw_data, tfile_end): Likewise.
10511 (tfile_trace_file_writer_new): Likewise.
10512 (free_uploaded_tp): Make it extern.
10513 (free_uploaded_tsv): Make it extern.
10514 (_initialize_tracepoint): Move code to register command 'tsave'
10515 to tracefile.c.
10516 * tracepoint.h (stop_reason_names): Declare.
10517 (struct trace_frame_write_ops): Move it to tracefile.h.
10518 (struct trace_file_write_ops): Likewise.
10519 (struct trace_file_writer): Likewise.
10520 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10521
10522 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10523
10524 PR gdb/16594
10525 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10526 process name.
10527 (get_cores_used_by_process): New parameter num_cores, use it.
10528 (linux_xfer_osdata_processes): Pass num_cores to it.
10529 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10530 process name.
10531
10532 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10533
10534 * target.c (memory_xfer_partial): Fix length arg in call to
10535 breakpoint_xfer_memory.
10536
10537 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10538
10539 PR tdep/16397
10540 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10541 number comes after the + or - signs. Adjust length of register
10542 name to be extracted.
10543
10544 2014-02-20 Tom Tromey <tromey@redhat.com>
10545
10546 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10547 (ada_varobj_ops): Mark "extern".
10548
10549 2014-02-20 Tom Tromey <tromey@redhat.com>
10550
10551 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10552
10553 2014-02-20 Doug Evans <xdje42@gmail.com>
10554
10555 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10556 All callers updated.
10557 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10558 All callers updated.
10559 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10560 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10561
10562 2014-02-20 lin zuojian <manjian2006@gmail.com>
10563 Joel Brobecker <brobecker@adacore.com>
10564 Doug Evans <xdje42@gmail.com>
10565
10566 PR symtab/16581
10567 * dwarf2read.c (struct die_info): New member in_process.
10568 (reset_die_in_process): New function.
10569 (process_die): Set it at the start, reset when returning.
10570 (inherit_abstract_dies): Only call process_die if origin_child_die
10571 not already being processed.
10572
10573 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10574
10575 * windows-nat.c (handle_unload_dll): Add function documentation.
10576 (do_initial_windows_stuff): Add comment explaining why we wait
10577 until after inferior initialization has finished before
10578 processing all DLLs.
10579
10580 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10581
10582 * windows-nat.c (get_module_name): Delete.
10583 (windows_get_exec_module_filename): New function, mostly
10584 inspired from get_module_name.
10585 (windows_pid_to_exec_file): Replace call to get_module_name
10586 by call to windows_get_exec_module_filename.
10587
10588 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10589
10590 * windows-nat.c (handle_load_dll): Rewrite this function's
10591 introductory comment. Remove code using get_module_name
10592 to get the DLL's name.
10593
10594 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10595
10596 * windows-nat.c (get_windows_debug_event): Ignore
10597 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10598 if windows_initialization_done == 0.
10599 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10600 Adjust implementation to always load all DLLs.
10601 (do_initial_windows_stuff): Replace call to
10602 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10603
10604 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10605
10606 * windows-nat.c (_initialize_windows_nat): Deprecate the
10607 "dll-symbols" command. Turn the "add-shared-symbol-files"
10608 and "assf" aliases into commands, and deprecate them as well.
10609 * NEWS: Add entry explaining that "dll-symbols" and its two
10610 aliases are now deprecated.
10611
10612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10613
10614 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10615 new-line in debug string. Remove trailing spaces.
10616
10617 2014-02-19 Stan Shebs <stan@codesourcery.com>
10618
10619 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10620
10621 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10622
10623 * NEWS: Add entry for the new feature
10624 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10625 and class values.
10626
10627 2014-02-19 Stan Shebs <stan@codesourcery.com>
10628
10629 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10630
10631 2014-02-19 Pedro Alves <palves@redhat.com>
10632
10633 * common/ptid.h (struct ptid): Mention that process_stratum
10634 targets should prefer ptid.lwp.
10635
10636 2014-02-19 Pedro Alves <palves@redhat.com>
10637
10638 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10639 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10640 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10641 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10642 store remote thread ids rather than ptid.tid.
10643 (_initialize_remote): Adjust.
10644
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target.c (target_get_unwinder): Rewrite.
10648 (target_get_tailcall_unwinder): Rewrite.
10649 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10650 (record_btrace_to_get_tailcall_unwinder): New function.
10651 (init_record_btrace_ops): Update.
10652 * target.h (struct target_ops) <to_get_unwinder,
10653 to_get_tailcall_unwinder>: Now function pointers. Use
10654 TARGET_DEFAULT_RETURN.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10659 argument.
10660 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10665 directly.
10666 * target-delegates.c: Rebuild.
10667 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10668 TARGET_DEFAULT_FUNC.
10669 * target.c (default_target_decr_pc_after_break): Rename from
10670 forward_target_decr_pc_after_break. Simplify.
10671 (target_decr_pc_after_break): Rely on delegation.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target.c (update_current_target): Do not INHERIT to_doc or
10676 to_magic. Do not de_fault to_open or to_close.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * gcore.h (objfile_find_memory_regions): Declare.
10681 * gcore.c (objfile_find_memory_regions): No longer static. Add
10682 "self" argument.
10683 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10684 * exec.c: Include gcore.h.
10685 (exec_set_find_memory_regions): Remove.
10686 (exec_find_memory_regions): Remove.
10687 (exec_do_find_memory_regions): Remove.
10688 (init_exec_ops): Update.
10689 * defs.h (exec_set_find_memory_regions): Remove.
10690
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.h (struct target_ops) <to_extra_thread_info,
10695 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10696 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10697 not 0, in TARGET_DEFAULT_RETURN.
10698
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target.c (complete_target_initialization): Remove casts. Use
10702 return_zero_has_execution.
10703 (return_zero): Add "ignore" argument.
10704 (return_zero_has_execution): New function.
10705 (init_dummy_target): Remove casts. Use
10706 return_zero_has_execution.
10707
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target.c (update_current_target): Update comments. Do not
10711 INHERIT to_stratum.
10712
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10716 needed.
10717 * corelow.c (core_read_description): Delegate when needed.
10718 * remote.c (remote_read_description): Delegate when needed.
10719 * target-delegates.c: Rebuild.
10720 * target.c (target_read_description): Rewrite.
10721 * target.h (struct target_ops) <to_read_description>: Update
10722 comment. Use TARGET_DEFAULT_RETURN.
10723
10724 2014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target-delegates.c: Rebuild.
10727 * target.c (update_current_target): Don't inherit or default
10728 to_can_run.
10729 (find_default_run_target): Check against delegate_can_run.
10730 * target.h (struct target_ops) <to_can_run>: Use
10731 TARGET_DEFAULT_RETURN.
10732
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target-delegates.c: Rebuild.
10736 * target.c (target_disconnect): Unconditionally delegate.
10737 * target.h (struct target_ops) <to_disconnect>: Use
10738 TARGET_DEFAULT_NORETURN.
10739
10740 2014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * record.c (record_stop): Unconditionally delegate.
10743 * target-delegates.c: Rebuild.
10744 * target.c (target_stop_recording): Unconditionally delegate.
10745 * target.h (struct target_ops) <to_stop_recording>: Use
10746 TARGET_DEFAULT_IGNORE.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (target_enable_btrace): Unconditionally delegate.
10752 * target.h (struct target_ops) <to_enable_btrace>: Use
10753 TARGET_DEFAULT_NORETURN.
10754
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target-delegates.c: Rebuild.
10758 * target.c (target_read_btrace): Unconditionally delegate.
10759 * target.h (struct target_ops) <to_read_btrace>: Use
10760 TARGET_DEFAULT_NORETURN.
10761
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10763
10764 * target-delegates.c: Rebuild.
10765 * target.c (target_teardown_btrace): Unconditionally delegate.
10766 * target.h (struct target_ops) <to_teardown_btrace>: Use
10767 TARGET_DEFAULT_NORETURN.
10768
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target-delegates.c: Rebuild.
10772 * target.c (target_disable_btrace): Unconditionally delegate.
10773 * target.h (struct target_ops) <to_disable_btrace>: Use
10774 TARGET_DEFAULT_NORETURN.
10775
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target-delegates.c: Rebuild.
10779 * target.c (default_search_memory): New function.
10780 (simple_search_memory): Update comment.
10781 (target_search_memory): Unconditionally delegate.
10782 * target.h (struct target_ops) <to_search_memory>: Use
10783 TARGET_DEFAULT_FUNC.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * auxv.c (default_auxv_parse): No longer static.
10788 (target_auxv_parse): Unconditionally delegate.
10789 * auxv.h (default_auxv_parse): Declare.
10790 * target-delegates.c: Rebuild.
10791 * target.c: Include auxv.h.
10792 * target.h (struct target_ops) <to_auxv_parse>: Use
10793 TARGET_DEFAULT_FUNC.
10794
10795 2014-02-19 Tom Tromey <tromey@redhat.com>
10796
10797 * target-delegates.c: Rebuild.
10798 * target.c (target_memory_map): Unconditionally delegate.
10799 * target.h (struct target_ops) <to_memory_map>: Use
10800 TARGET_DEFAULT_RETURN.
10801
10802 2014-02-19 Tom Tromey <tromey@redhat.com>
10803
10804 * target-delegates.c: Rebuild.
10805 * target.c (target_thread_alive): Unconditionally delegate.
10806 * target.h (struct target_ops) <to_thread_alive>: Use
10807 TARGET_DEFAULT_RETURN.
10808
10809 2014-02-19 Tom Tromey <tromey@redhat.com>
10810
10811 * target-delegates.c: Rebuild.
10812 * target.c (target_save_record): Unconditionally delegate.
10813 * target.h (struct target_ops) <to_save_record>: Use
10814 TARGET_DEFAULT_NORETURN.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (target_delete_record): Unconditionally delegate.
10820 * target.h (struct target_ops) <to_delete_record>: Use
10821 TARGET_DEFAULT_NORETURN.
10822
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target-delegates.c: Rebuild.
10826 * target.c (target_record_is_replaying): Unconditionally
10827 delegate.
10828 * target.h (struct target_ops) <to_record_is_replaying>: Use
10829 TARGET_DEFAULT_RETURN.
10830
10831 2014-02-19 Tom Tromey <tromey@redhat.com>
10832
10833 * target-delegates.c: Rebuild.
10834 * target.c (target_goto_record_begin): Unconditionally delegate.
10835 * target.h (struct target_ops) <to_goto_record_begin>: Use
10836 TARGET_DEFAULT_NORETURN.
10837
10838 2014-02-19 Tom Tromey <tromey@redhat.com>
10839
10840 * target-delegates.c: Rebuild.
10841 * target.c (target_goto_record_end): Unconditionally delegate.
10842 * target.h (struct target_ops) <to_goto_record_end>: Use
10843 TARGET_DEFAULT_NORETURN.
10844
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10846
10847 * target-delegates.c: Rebuild.
10848 * target.c (target_goto_record): Unconditionally delegate.
10849 * target.h (struct target_ops) <to_goto_record>: Use
10850 TARGET_DEFAULT_NORETURN.
10851
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target-delegates.c: Rebuild.
10855 * target.c (target_insn_history): Unconditionally delegate.
10856 * target.h (struct target_ops) <to_insn_history>: Use
10857 TARGET_DEFAULT_NORETURN.
10858
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10860
10861 * target-delegates.c: Rebuild.
10862 * target.c (target_insn_history_from): Unconditionally delegate.
10863 * target.h (struct target_ops) <to_insn_history_from>: Use
10864 TARGET_DEFAULT_NORETURN.
10865
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (target_insn_history_range): Unconditionally delegate.
10870 * target.h (struct target_ops) <to_insn_history_range>: Use
10871 TARGET_DEFAULT_NORETURN.
10872
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * target-delegates.c: Rebuild.
10876 * target.c (target_call_history): Unconditionally delegate.
10877 * target.h (struct target_ops) <to_call_history>: Use
10878 TARGET_DEFAULT_NORETURN.
10879
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target-delegates.c: Rebuild.
10883 * target.c (target_call_history_from): Unconditionally delegate.
10884 * target.h (struct target_ops) <to_call_history_from>: Use
10885 TARGET_DEFAULT_NORETURN.
10886
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10888
10889 * target-delegates.c: Rebuild.
10890 * target.c (target_call_history_range): Unconditionally delegate.
10891 * target.h (struct target_ops) <to_call_history_range>: Use
10892 TARGET_DEFAULT_NORETURN.
10893
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target-delegates.c: Rebuild.
10897 * target.c (target_verify_memory): Unconditionally delegate.
10898 * target.h (struct target_ops) <to_verify_memory>: Use
10899 TARGET_DEFAULT_NORETURN.
10900
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target-delegates.c: Rebuild.
10904 * target.c (target_core_of_thread): Unconditionally delegate.
10905 * target.h (struct target_ops) <to_core_of_thread>: Use
10906 TARGET_DEFAULT_RETURN.
10907
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10909
10910 * target-delegates.c: Rebuild.
10911 * target.c (target_flash_done): Unconditionally delegate.
10912 * target.h (struct target_ops) <to_flash_done>: Use
10913 TARGET_DEFAULT_NORETURN.
10914
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10916
10917 * target-delegates.c: Rebuild.
10918 * target.c (target_flash_erase): Unconditionally delegate.
10919 * target.h (struct target_ops) <to_flash_erase>: Use
10920 TARGET_DEFAULT_NORETURN.
10921
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10923
10924 * target-delegates.c: Rebuild.
10925 * target.c (target_get_section_table): Unconditionally delegate.
10926 * target.h (struct target_ops) <to_get_section_table>: Use
10927 TARGET_DEFAULT_RETURN.
10928
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10930
10931 * target-delegates.c: Rebuild.
10932 * target.c (target_pid_to_str): Unconditionally delegate.
10933 (init_dummy_target): Don't initialize to_pid_to_str.
10934 (default_pid_to_str): Rename from dummy_pid_to_str.
10935 * target.h (struct target_ops) <to_pid_to_str>: Use
10936 TARGET_DEFAULT_FUNC.
10937
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target-delegates.c: Rebuild.
10941 * target.c (target_find_new_threads): Unconditionally delegate.
10942 * target.h (struct target_ops) <to_find_new_threads>: Use
10943 TARGET_DEFAULT_RETURN.
10944
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10946
10947 * target-delegates.c: Rebuild.
10948 * target.c (target_program_signals): Unconditionally delegate.
10949 * target.h (struct target_ops) <to_program_signals>: Use
10950 TARGET_DEFAULT_IGNORE.
10951
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10953
10954 * target-delegates.c: Rebuild.
10955 * target.c (target_pass_signals): Unconditionally delegate.
10956 * target.h (struct target_ops) <to_pass_signals>: Use
10957 TARGET_DEFAULT_IGNORE.
10958
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target-delegates.c: Rebuild.
10962 * target.c (default_mourn_inferior): New function.
10963 (target_mourn_inferior): Unconditionally delegate.
10964 * target.h (struct target_ops) <to_mourn_inferior>: Use
10965 TARGET_DEFAULT_FUNC.
10966
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target-delegates.c: Rebuild.
10970 * target.c (default_follow_fork): New function.
10971 (target_follow_fork): Unconditionally delegate.
10972 * target.h (struct target_ops) <to_follow_fork>: Use
10973 TARGET_DEFAULT_FUNC.
10974
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (target_kill): Unconditionally delegate.
10979 * target.h (struct target_ops) <to_kill>: Use
10980 TARGET_DEFAULT_NORETURN.
10981
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (target_masked_watch_num_registers): Unconditionally
10986 delegate.
10987 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10988 Use TARGET_DEFAULT_RETURN.
10989
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (target_remove_mask_watchpoint): Unconditionally
10994 delegate.
10995 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10996 TARGET_DEFAULT_RETURN.
10997
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target-delegates.c: Rebuild.
11001 * target.c (target_insert_mask_watchpoint): Unconditionally
11002 delegate.
11003 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11004 TARGET_DEFAULT_RETURN.
11005
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11007
11008 * target-delegates.c: Rebuild.
11009 * target.c (target_ranged_break_num_registers): Unconditionally
11010 delegate.
11011 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11012 Use TARGET_DEFAULT_RETURN.
11013
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target-delegates.c: Rebuild.
11017 * target.c (target_fetch_registers): Unconditionally delegate.
11018 * target.h (struct target_ops) <to_fetch_registers>: Use
11019 TARGET_DEFAULT_NORETURN.
11020
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target-delegates.c: Rebuild.
11024 * target.c (update_current_target): Don't inherit or default
11025 to_stop.
11026 * target.h (struct target_ops) <to_stop>: Use
11027 TARGET_DEFAULT_IGNORE.
11028
11029 2014-02-19 Tom Tromey <tromey@redhat.com>
11030
11031 * target-delegates.c: Rebuild.
11032 * target.c (update_current_target): Don't inherit or default
11033 to_can_run_breakpoint_commands.
11034 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11035 Use TARGET_DEFAULT_RETURN.
11036
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11038
11039 * target-delegates.c: Rebuild.
11040 * target.c (update_current_target): Don't inherit or default
11041 to_supports_evaluation_of_breakpoint_conditions.
11042 * target.h (struct target_ops)
11043 <to_supports_evaluation_of_breakpoint_conditions>: Use
11044 TARGET_DEFAULT_RETURN.
11045
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (update_current_target): Don't inherit or default
11050 to_augmented_libraries_svr4_read.
11051 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11052 Use TARGET_DEFAULT_RETURN.
11053
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (update_current_target): Don't inherit or default
11058 to_can_use_agent.
11059 * target.h (struct target_ops) <to_can_use_agent>: Use
11060 TARGET_DEFAULT_RETURN.
11061
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target-delegates.c: Rebuild.
11065 * target.c (update_current_target): Don't inherit or default
11066 to_use_agent.
11067 * target.h (struct target_ops) <to_use_agent>: Use
11068 TARGET_DEFAULT_NORETURN.
11069
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (update_current_target): Don't inherit or default
11074 to_traceframe_info.
11075 (return_null): Remove.
11076 * target.h (struct target_ops) <to_traceframe_info>: Use
11077 TARGET_DEFAULT_RETURN.
11078
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (update_current_target): Don't inherit or default
11083 to_static_tracepoint_markers_by_strid.
11084 * target.h (struct target_ops)
11085 <to_static_tracepoint_markers_by_strid>: Use
11086 TARGET_DEFAULT_NORETURN.
11087
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11089
11090 * target-delegates.c: Rebuild.
11091 * target.c (update_current_target): Don't inherit or default
11092 to_static_tracepoint_marker_at.
11093 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11094 Use TARGET_DEFAULT_RETURN.
11095
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target-delegates.c: Rebuild.
11099 * target.c (update_current_target): Don't inherit or default
11100 to_set_permissions.
11101 * target.h (struct target_ops) <to_set_permissions>: Use
11102 TARGET_DEFAULT_IGNORE.
11103
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11105
11106 * target-delegates.c: Rebuild.
11107 * target.c (update_current_target): Don't inherit or default
11108 to_get_tib_address.
11109 * target.h (struct target_ops) <to_get_tib_address>: Use
11110 TARGET_DEFAULT_NORETURN.
11111
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11113
11114 * target-delegates.c: Rebuild.
11115 * target.c (update_current_target): Don't inherit or default
11116 to_set_trace_notes.
11117 * target.h (struct target_ops) <to_set_trace_notes>: Use
11118 TARGET_DEFAULT_RETURN.
11119
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11121
11122 * target-delegates.c: Rebuild.
11123 * target.c (update_current_target): Don't initialize
11124 to_set_trace_buffer_size.
11125 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11126 TARGET_DEFAULT_IGNORE.
11127
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11129
11130 * target-delegates.c: Rebuild.
11131 * target.c (update_current_target): Don't inherit or default
11132 to_set_circular_trace_buffer.
11133 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11134 TARGET_DEFAULT_IGNORE.
11135
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (update_current_target): Don't inherit or default
11140 to_set_disconnected_tracing.
11141 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11142 TARGET_DEFAULT_IGNORE.
11143
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (update_current_target): Don't inherit or default
11148 to_get_min_fast_tracepoint_insn_len.
11149 (return_minus_one): Remove.
11150 * target.h (struct target_ops)
11151 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11152
11153 2014-02-19 Tom Tromey <tromey@redhat.com>
11154
11155 * target-delegates.c: Rebuild.
11156 * target.c (update_current_target): Don't inherit or default
11157 to_get_raw_trace_data.
11158 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11159 TARGET_DEFAULT_NORETURN.
11160
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target-delegates.c: Rebuild.
11164 * target.c (update_current_target): Don't inherit or default
11165 to_upload_trace_state_variables.
11166 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11167 Use TARGET_DEFAULT_RETURN.
11168
11169 2014-02-19 Tom Tromey <tromey@redhat.com>
11170
11171 * target-delegates.c: Rebuild.
11172 * target.c (update_current_target): Don't inherit or default
11173 to_upload_tracepoints.
11174 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11175 TARGET_DEFAULT_RETURN.
11176
11177 2014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target-delegates.c: Rebuild.
11180 * target.c (update_current_target): Don't inherit or default
11181 to_save_trace_data.
11182 * target.h (struct target_ops) <to_save_trace_data>: Use
11183 TARGET_DEFAULT_NORETURN.
11184
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target-delegates.c: Rebuild.
11188 * target.c (update_current_target): Don't inherit or default
11189 to_get_trace_state_variable_value.
11190 * target.h (struct target_ops)
11191 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11192
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target-delegates.c: Rebuild.
11196 * target.c (update_current_target): Don't inherit or default
11197 to_trace_find.
11198 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11199
11200 2014-02-19 Tom Tromey <tromey@redhat.com>
11201
11202 * target-delegates.c: Rebuild.
11203 * target.c (update_current_target): Don't inherit or default
11204 to_trace_stop.
11205 * target.h (struct target_ops) <to_trace_stop>: Use
11206 TARGET_DEFAULT_NORETURN.
11207
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target-delegates.c: Rebuild.
11211 * target.c (update_current_target): Don't inherit or default
11212 to_get_tracepoint_status.
11213 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11214 TARGET_DEFAULT_NORETURN.
11215
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target-delegates.c: Rebuild.
11219 * target.c (update_current_target): Don't inherit or default
11220 to_get_trace_status.
11221 * target.h (struct target_ops) <to_get_trace_status>: Use
11222 TARGET_DEFAULT_RETURN.
11223
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11225
11226 * target-delegates.c: Rebuild.
11227 * target.c (update_current_target): Don't inherit or default
11228 to_trace_start.
11229 * target.h (struct target_ops) <to_trace_start>: Use
11230 TARGET_DEFAULT_NORETURN.
11231
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target-delegates.c: Rebuild.
11235 * target.c (update_current_target): Don't inherit or default
11236 to_trace_set_readonly_regions.
11237 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11238 Use TARGET_DEFAULT_NORETURN.
11239
11240 2014-02-19 Tom Tromey <tromey@redhat.com>
11241
11242 * target-delegates.c: Rebuild.
11243 * target.c (update_current_target): Don't inherit or default
11244 to_disable_tracepoint.
11245 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11246 TARGET_DEFAULT_NORETURN.
11247
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11249
11250 * target-delegates.c: Rebuild.
11251 * target.c (update_current_target): Don't inherit or default
11252 to_enable_tracepoint.
11253 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11254 TARGET_DEFAULT_NORETURN.
11255
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11257
11258 * target-delegates.c: Rebuild.
11259 * target.c (update_current_target): Don't inherit or default
11260 to_download_trace_state_variable.
11261 * target.h (struct target_ops) <to_download_trace_state_variable>:
11262 Use TARGET_DEFAULT_NORETURN.
11263
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target-delegates.c: Rebuild.
11267 * target.c (update_current_target): Don't inherit or default
11268 to_can_download_tracepoint.
11269 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11270 TARGET_DEFAULT_RETURN.
11271
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11273
11274 * target-delegates.c: Rebuild.
11275 * target.c (update_current_target): Don't inherit or default
11276 to_download_tracepoint.
11277 * target.h (struct target_ops) <to_download_tracepoint>: Use
11278 TARGET_DEFAULT_NORETURN.
11279
11280 2014-02-19 Tom Tromey <tromey@redhat.com>
11281
11282 * target-delegates.c: Rebuild.
11283 * target.c (update_current_target): Don't inherit or default
11284 to_trace_init.
11285 * target.h (struct target_ops) <to_trace_init>: Use
11286 TARGET_DEFAULT_RETURN.
11287
11288 2014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target-delegates.c: Rebuild.
11291 * target.c (update_current_target): Don't inherit or default
11292 to_supports_string_tracing.
11293 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11294 TARGET_DEFAULT_RETURN.
11295
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target-delegates.c: Rebuild.
11299 * target.c (update_current_target): Don't inherit or default
11300 to_supports_enable_disable_tracepoint.
11301 * target.h (struct target_ops)
11302 <to_supports_enable_disable_tracepoint>: Use
11303 TARGET_DEFAULT_RETURN.
11304
11305 2014-02-19 Tom Tromey <tromey@redhat.com>
11306
11307 * target-delegates.c: Rebuild.
11308 * target.c (update_current_target): Don't inherit or default
11309 to_supports_multi_process.
11310 * target.h (struct target_ops) <to_supports_multi_process>: Use
11311 TARGET_DEFAULT_RETURN.
11312
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target-delegates.c: Rebuild.
11316 * target.c (update_current_target): Don't inherit or default
11317 to_get_ada_task_ptid.
11318 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11319 TARGET_DEFAULT_FUNC.
11320
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 * target-delegates.c: Rebuild.
11324 * target.c (update_current_target): Don't inherit or default
11325 to_thread_architecture.
11326 * target.h (struct target_ops) <to_thread_architecture>: Use
11327 TARGET_DEFAULT_FUNC.
11328
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target-delegates.c: Rebuild.
11332 * target.c (update_current_target): Don't inherit or default
11333 to_execution_direction.
11334 * target.h (struct target_ops) <to_execution_direction>: Use
11335 TARGET_DEFAULT_FUNC.
11336
11337 2014-02-19 Tom Tromey <tromey@redhat.com>
11338
11339 * target-delegates.c: Rebuild.
11340 * target.c (update_current_target): Don't inherit or default
11341 to_can_execute_reverse.
11342 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11343 TARGET_DEFAULT_RETURN.
11344 (target_can_execute_reverse): Unconditionally delegate.
11345
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * target-delegates.c: Rebuild.
11349 * target.c (update_current_target): Don't inherit or default
11350 to_goto_bookmark.
11351 (dummy_goto_bookmark): Remove.
11352 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11353 * target.h (struct target_ops) <to_goto_bookmark>: Use
11354 TARGET_DEFAULT_NORETURN.
11355
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 * target-delegates.c: Rebuild.
11359 * target.c (update_current_target): Don't inherit or default
11360 to_get_bookmark.
11361 (dummy_get_bookmark): Remove.
11362 (init_dummy_target): Don't inherit or default to_get_bookmark.
11363 * target.h (struct target_ops) <to_get_bookmark>: Use
11364 TARGET_DEFAULT_NORETURN
11365
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11367
11368 * target-delegates.c: Rebuild.
11369 * target.c (update_current_target): Don't inherit or default
11370 to_make_corefile_notes.
11371 (init_dummy_target): Don't initialize to_make_corefile_notes.
11372 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11373 TARGET_DEFAULT_FUNC.
11374
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11376
11377 * target-delegates.c: Rebuild.
11378 * target.c (update_current_target): Don't inherit or default
11379 to_find_memory_regions.
11380 (init_dummy_target): Don't initialize to_find_memory_regions.
11381 * target.h (struct target_ops) <to_find_memory_regions>: Use
11382 TARGET_DEFAULT_FUNC.
11383
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11385
11386 * target-delegates.c: Rebuild.
11387 * target.c (update_current_target): Don't inherit or default
11388 to_log_command.
11389 * target.h (struct target_ops) <to_log_command>: Use
11390 TARGET_DEFAULT_IGNORE.
11391 (target_log_command): Unconditionally delegate.
11392
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target-delegates.c: Rebuild.
11396 * target.c (update_current_target): Don't inherit or default
11397 to_pid_to_exec_file.
11398 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11399 TARGET_DEFAULT_RETURN.
11400
11401 2014-02-19 Tom Tromey <tromey@redhat.com>
11402
11403 * target-delegates.c: Rebuild.
11404 * target.c (update_current_target): Don't inherit or default
11405 to_thread_name.
11406 (target_thread_name): Unconditionally delegate.
11407 * target.h (struct target_ops) <to_thread_name>: Use
11408 TARGET_DEFAULT_RETURN.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (update_current_target): Don't inherit or default
11414 to_extra_thread_info.
11415 * target.h (struct target_ops) <to_extra_thread_info>: Use
11416 TARGET_DEFAULT_RETURN.
11417
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (update_current_target): Don't inherit or default
11422 to_has_exited.
11423 * target.h (struct target_ops) <to_has_exited>: Use
11424 TARGET_DEFAULT_RETURN..
11425
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11427
11428 * target-delegates.c: Rebuild.
11429 * target.c (update_current_target): Don't inherit or default
11430 to_set_syscall_catchpoint.
11431 (return_one): Remove.
11432 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11433 TARGET_DEFAULT_RETURN.
11434
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11436
11437 * target-delegates.c: Rebuild.
11438 * target.c (update_current_target): Don't inherit or default
11439 to_insert_exec_catchpoint.
11440 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11441 TARGET_DEFAULT_RETURN.
11442
11443 2014-01-08 Tom Tromey <tromey@redhat.com>
11444
11445 * target-delegates.c: Rebuild.
11446 * target.c (update_current_target): Don't inherit or default
11447 to_insert_exec_catchpoint.
11448 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11449 TARGET_DEFAULT_RETURN.
11450
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (update_current_target): Don't inherit or default
11455 to_remove_vfork_catchpoint.
11456 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11457 TARGET_DEFAULT_RETURN.
11458
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (update_current_target): Don't inherit or default
11463 to_insert_vfork_catchpoint.
11464 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11465 TARGET_DEFAULT_RETURN.
11466
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11468
11469 * target-delegates.c: Rebuild.
11470 * target.c (update_current_target): Don't inherit or default
11471 to_remove_fork_catchpoint.
11472 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11473 TARGET_DEFAULT_RETURN.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_insert_fork_catchpoint.
11480 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11481 TARGET_DEFAULT_RETURN.
11482
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11484
11485 * target-delegates.c: Rebuild.
11486 * target.c (update_current_target): Don't inherit or default
11487 to_post_startup_inferior.
11488 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11489 TARGET_DEFAULT_IGNORE.
11490
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * target-delegates.c: Rebuild.
11494 * target.c (update_current_target): Don't inherit or default
11495 to_load.
11496 * target.h (struct target_ops) <to_load>: Use
11497 TARGET_DEFAULT_NORETURN.
11498
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (update_current_target): Don't inherit or default
11503 to_terminal_info.
11504 * target.h (struct target_ops) <to_terminal_info>: Use
11505 TARGET_DEFAULT_FUNC.
11506
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11508
11509 * target-delegates.c: Rebuild.
11510 * target.c (update_current_target): Don't inherit or default
11511 to_terminal_save_ours.
11512 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11513 TARGET_DEFAULT_IGNORE.
11514
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (update_current_target): Don't inherit or default
11519 to_terminal_ours.
11520 * target.h (struct target_ops) <to_terminal_ours>: Use
11521 TARGET_DEFAULT_IGNORE.
11522
11523 2014-02-19 Tom Tromey <tromey@redhat.com>
11524
11525 * target-delegates.c: Rebuild.
11526 * target.c (update_current_target): Don't inherit or default
11527 to_terminal_ours_for_output.
11528 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11529 TARGET_DEFAULT_IGNORE.
11530
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11532
11533 * target-delegates.c: Rebuild.
11534 * target.c (update_current_target): Don't inherit or default
11535 to_terminal_inferior.
11536 * target.h (struct target_ops) <to_terminal_inferior>: Use
11537 TARGET_DEFAULT_IGNORE.
11538
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (update_current_target): Don't inherit or default
11543 to_terminal_init.
11544 * target.h (struct target_ops) <to_terminal_init>: Use
11545 TARGET_DEFAULT_IGNORE.
11546
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11548
11549 * target-delegates.c: Rebuild.
11550 * target.c (update_current_target): Don't inherit or default
11551 to_can_accel_watchpoint_condition.
11552 * target.h (struct target_ops)
11553 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11554
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * target-delegates.c: Rebuild.
11558 * target.c (update_current_target): Don't inherit or default
11559 to_region_ok_for_hw_watchpoint.
11560 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11561 Use TARGET_DEFAULT_FUNC.
11562
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11564
11565 * target-delegates.c: Rebuild.
11566 * target.c (update_current_target): Don't inherit or default
11567 to_watchpoint_addr_within_range.
11568 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11569 Use TARGET_DEFAULT_FUNC.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (update_current_target): Don't inherit or default
11575 to_remove_watchpoint.
11576 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11577 TARGET_DEFAULT_NORETURN.
11578
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_insert_watchpoint.
11584 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11585 TARGET_DEFAULT_RETURN.
11586
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_remove_hw_breakpoint.
11592 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11593 TARGET_DEFAULT_RETURN.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_insert_hw_breakpoint.
11600 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11601 TARGET_DEFAULT_RETURN.
11602
11603 2014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target-delegates.c: Rebuild.
11606 * target.c (update_current_target): Don't inherit or default
11607 to_can_use_hw_breakpoint.
11608 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11609 TARGET_DEFAULT_RETURN.
11610
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (update_current_target): Don't inherit or default
11615 to_files_info.
11616 * target.h (struct target_ops) <to_files_info>: Use
11617 TARGET_DEFAULT_IGNORE.
11618
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11620
11621 * target-delegates.c: Rebuild.
11622 * target.c (update_current_target): Don't inherit or default
11623 to_store.
11624 * target.h (struct target_ops) <to_store>: Use
11625 TARGET_DEFAULT_NORETURN.
11626
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * target-delegates.c: Rebuild.
11630 * target.c (update_current_target): Don't inherit or default
11631 to_post_attach.
11632 * target.h (struct target_ops) <to_post_attach>: Use
11633 TARGET_DEFAULT_IGNORE.
11634
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target-delegates.c: Rebuild.
11638 * target.c (update_current_target): Don't inherit or default
11639 to_rcmd.
11640 (default_rcmd): New function.
11641 (do_monitor_command): Unconditionally delegate.
11642 * target.h (struct target_ops) <to_rmcd>: Use
11643 TARGET_DEFAULT_FUNC.
11644
11645 2014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target-delegates.c: Rebuild.
11648 * target.c (init_dummy_target): Don't initialize to_attach.
11649 (target_attach): Unconditionally delegate.
11650 * target.h (struct target_ops) <to_attach>: Use
11651 TARGET_DEFAULT_FUNC.
11652
11653 2014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target-delegates.c: Rebuild.
11656 * target.c (target_detach): Unconditionally delegate.
11657 (init_dummy_target): Don't initialize to_detach.
11658 * target.h (struct target_ops) <to_detach>: Use
11659 TARGET_DEFAULT_IGNORE.
11660
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11662
11663 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11664 Add argument.
11665 (target_augmented_libraries_svr4_read): Add argument.
11666 * target.c (update_current_target): Update.
11667 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11668 argument.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target.h (struct target_ops) <to_call_history_range>: Add
11673 argument.
11674 * target.c (target_call_history_range): Add argument.
11675 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11676 argument.
11677 (record_btrace_call_history_from): Update.
11678
11679 2014-02-19 Tom Tromey <tromey@redhat.com>
11680
11681 * target.h (struct target_ops) <to_call_history_from>: Add
11682 argument.
11683 * target.c (target_call_history_from): Add argument.
11684 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11685 argument.
11686
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target.h (struct target_ops) <to_call_history>: Add argument.
11690 * target.c (target_call_history): Add argument.
11691 * record-btrace.c (record_btrace_call_history): Add 'self'
11692 argument.
11693
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target.h (struct target_ops) <to_insn_history_range>: Add
11697 argument.
11698 * target.c (target_insn_history_range): Add argument.
11699 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11700 argument.
11701 (record_btrace_insn_history_from): Update.
11702
11703 2014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_insn_history_from>: Add
11706 argument.
11707 * target.c (target_insn_history_from): Add argument.
11708 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11709 argument.
11710
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target.h (struct target_ops) <to_insn_history>: Add argument.
11714 * target.c (target_insn_history): Add argument.
11715 * record-btrace.c (record_btrace_insn_history): Add 'self'
11716 argument.
11717
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target.h (struct target_ops) <to_goto_record>: Add argument.
11721 * target.c (target_goto_record): Add argument.
11722 * record-full.c (record_full_goto): Add 'self' argument.
11723 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11724
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11726
11727 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11728 * target.c (target_goto_record_end): Add argument.
11729 * record-full.c (record_full_goto_end): Add 'self' argument.
11730 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11731
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11733
11734 * target.h (struct target_ops) <to_goto_record_begin>: Add
11735 argument.
11736 * target.c (target_goto_record_begin): Add argument.
11737 * record-full.c (record_full_goto_begin): Add 'self' argument.
11738 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11739 argument.
11740
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target.h (struct target_ops) <to_record_is_replaying>: Add
11744 argument.
11745 * target.c (target_record_is_replaying): Add argument.
11746 * record-full.c (record_full_is_replaying): Add 'self' argument.
11747 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11748 argument.
11749 (record_btrace_xfer_partial, record_btrace_store_registers)
11750 (record_btrace_prepare_to_store, record_btrace_resume)
11751 (record_btrace_wait, record_btrace_decr_pc_after_break)
11752 (record_btrace_find_new_threads, record_btrace_thread_alive):
11753 Update.
11754
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target.h (struct target_ops) <to_delete_record>: Add argument.
11758 * target.c (target_delete_record): Add argument.
11759 * record-full.c (record_full_delete): Add 'self' argument.
11760
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target.h (struct target_ops) <to_save_record>: Add argument.
11764 * target.c (target_save_record): Add argument.
11765 * record-full.c (record_full_save): Add 'self' argument.
11766 (record_full_save): Add 'self' argument.
11767
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target.h (struct target_ops) <to_info_record>: Add argument.
11771 * target.c (target_info_record): Add argument.
11772 * record.c (info_record_command): Add argument.
11773 * record-full.c (record_full_info): Add 'self' argument.
11774 * record-btrace.c (record_btrace_info): Add 'self' argument.
11775
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11779 * target.c (target_stop_recording): Add argument.
11780 * record.c (record_stop): Add argument.
11781 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11782 argument.
11783
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11787 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11788 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11789 argument.
11790 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11791 (_initialize_amd64_linux_nat): Use it.
11792 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11793 (_initialize_i386_linux_nat): Use it.
11794
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11796
11797 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11798 * target.c (target_teardown_btrace): Add argument.
11799 * remote.c (remote_teardown_btrace): Add 'self' argument.
11800 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11801 argument.
11802 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11803 argument.
11804
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11808 * target.c (target_disable_btrace): Add argument.
11809 * remote.c (remote_disable_btrace): Add 'self' argument.
11810 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11811 argument.
11812 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11813 argument.
11814
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11816
11817 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11818 * target.c (target_enable_btrace): Add argument.
11819 * remote.c (remote_enable_btrace): Add 'self' argument.
11820 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11821 argument.
11822 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11823 argument.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11828 (target_can_use_agent): Add argument.
11829 * target.c (update_current_target): Update.
11830 * remote.c (remote_can_use_agent): Add 'self' argument.
11831 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11832
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target.h (struct target_ops) <to_use_agent>: Add argument.
11836 (target_use_agent): Add argument.
11837 * target.c (update_current_target): Update.
11838 * remote.c (remote_use_agent): Add 'self' argument.
11839 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11844 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11845 (target_traceframe_info): Add argument.
11846 * target.c (update_current_target): Update.
11847 * remote.c (remote_traceframe_info): Add 'self' argument.
11848 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11849
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11851
11852 * target.h (target_static_tracepoint_markers_by_strid): Add
11853 argument.
11854 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11855 'self' argument.
11856 * target.c (update_current_target): Update.
11857 * remote.c (struct target_ops)
11858 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11859 * linux-nat.c (struct target_ops)
11860 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11861
11862 2014-02-19 Tom Tromey <tromey@redhat.com>
11863
11864 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11865 Add argument.
11866 (target_static_tracepoint_marker_at): Add argument.
11867 * target.c (update_current_target): Update.
11868 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11869 argument.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11874 (target_set_permissions): Add argument.
11875 * target.c (update_current_target): Update.
11876 * remote.c (remote_set_permissions): Add 'self' argument.
11877 (remote_start_remote): Update.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11882 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11883 (target_get_tib_address): Add argument.
11884 * target.c (update_current_target): Update.
11885 * remote.c (remote_get_tib_address): Add 'self' argument.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11890 (target_set_trace_notes): Add argument.
11891 * target.c (update_current_target): Update.
11892 * remote.c (remote_set_trace_notes): Add 'self' argument.
11893
11894 2014-02-19 Tom Tromey <tromey@redhat.com>
11895
11896 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11897 argument.
11898 (target_set_trace_buffer_size): Add argument.
11899 * target.c (update_current_target): Update.
11900 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11901
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11905 argument.
11906 (target_set_circular_trace_buffer): Add argument.
11907 * target.c (update_current_target): Update.
11908 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11909 argument.
11910
11911 2014-02-19 Tom Tromey <tromey@redhat.com>
11912
11913 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11914 argument.
11915 (target_set_disconnected_tracing): Add argument.
11916 * target.c (update_current_target): Update.
11917 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11918
11919 2014-02-19 Tom Tromey <tromey@redhat.com>
11920
11921 * target.h (struct target_ops)
11922 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11923 (target_get_min_fast_tracepoint_insn_len): Add argument.
11924 * target.c (update_current_target): Update.
11925 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11926 argument.
11927
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11931 argument.
11932 (target_get_raw_trace_data): Add argument.
11933 * target.c (update_current_target): Update.
11934 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11935
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11939 Add argument.
11940 (target_upload_trace_state_variables): Add argument.
11941 * target.c (update_current_target): Update.
11942 * remote.c (remote_upload_trace_state_variables): Add 'self'
11943 argument.
11944 (remote_start_remote): Update.
11945
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11949 argument.
11950 (target_upload_tracepoints): Add argument.
11951 * target.c (update_current_target): Update.
11952 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11953 (remote_start_remote): Update.
11954
11955 2014-02-19 Tom Tromey <tromey@redhat.com>
11956
11957 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11958 (target_save_trace_data): Add argument.
11959 * target.c (update_current_target): Update.
11960 * remote.c (remote_save_trace_data): Add 'self' argument.
11961
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11965 argument.
11966 * target.h (struct target_ops)
11967 <to_get_trace_state_variable_value>: Add argument.
11968 (target_get_trace_state_variable_value): Add argument.
11969 * target.c (update_current_target): Update.
11970 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11971 argument.
11972 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11973
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11975
11976 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11977 * target.h (struct target_ops) <to_trace_find>: Add argument.
11978 (target_trace_find): Add argument.
11979 * target.c (update_current_target): Update.
11980 * remote.c (remote_trace_find): Add 'self' argument.
11981 * ctf.c (ctf_trace_find): Add 'self' argument.
11982
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11986 (target_trace_stop): Add argument.
11987 * target.c (update_current_target): Update.
11988 * remote.c (remote_trace_stop): Add 'self' argument.
11989
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11993 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11994 argument.
11995 (target_get_tracepoint_status): Add argument.
11996 * target.c (update_current_target): Update.
11997 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11998
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12002 * target.h (struct target_ops) <to_get_trace_status>: Add
12003 argument.
12004 (target_get_trace_status): Add argument.
12005 * target.c (update_current_target): Update.
12006 * remote.c (remote_get_trace_status): Add 'self' argument.
12007 (remote_start_remote, remote_can_download_tracepoint): Update.
12008 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12009
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_trace_start>: Add argument.
12013 (target_trace_start): Add argument.
12014 * target.c (update_current_target): Update.
12015 * remote.c (remote_trace_start): Add 'self' argument.
12016
12017 2014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12020 Add argument.
12021 (target_trace_set_readonly_regions): Add argument.
12022 * target.c (update_current_target): Update.
12023 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12024 argument.
12025
12026 2014-02-19 Tom Tromey <tromey@redhat.com>
12027
12028 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12029 argument.
12030 (target_disable_tracepoint): Add argument.
12031 * target.c (update_current_target): Update.
12032 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12033
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12035
12036 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12037 argument.
12038 (target_enable_tracepoint): Add argument.
12039 * target.c (update_current_target): Update.
12040 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12041
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target.h (struct target_ops) <to_download_trace_state_variable>:
12045 Add argument.
12046 (target_download_trace_state_variable): Add argument.
12047 * target.c (update_current_target): Update.
12048 * remote.c (remote_download_trace_state_variable): Add 'self'
12049 argument.
12050
12051 2014-02-19 Tom Tromey <tromey@redhat.com>
12052
12053 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12054 argument.
12055 (target_can_download_tracepoint): Add argument.
12056 * target.c (update_current_target): Update.
12057 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12058
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (struct target_ops) <to_download_tracepoint>: Add
12062 argument.
12063 (target_download_tracepoint): Add argument.
12064 * target.c (update_current_target): Update.
12065 * remote.c (remote_download_tracepoint): Add 'self' argument.
12066
12067 2014-02-19 Tom Tromey <tromey@redhat.com>
12068
12069 * target.h (struct target_ops) <to_trace_init>: Add argument.
12070 (target_trace_init): Add argument.
12071 * target.c (update_current_target): Update.
12072 * remote.c (remote_trace_init): Add 'self' argument.
12073
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12077 * target.c (target_fileio_readlink): Add argument.
12078 * remote.c (remote_hostio_readlink): Add 'self' argument.
12079 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12080
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12084 * target.c (target_fileio_unlink): Add argument.
12085 * remote.c (remote_hostio_unlink): Add 'self' argument.
12086 (remote_file_delete): Update.
12087 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12088
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12092 * target.c (target_fileio_close): Add argument.
12093 * remote.c (remote_hostio_close): Add 'self' argument.
12094 (remote_hostio_close_cleanup): Update.
12095 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12096 Update.
12097 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12098
12099 2014-02-19 Tom Tromey <tromey@redhat.com>
12100
12101 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12102 * target.c (target_fileio_pread): Add argument.
12103 * remote.c (remote_hostio_pread): Add 'self' argument.
12104 (remote_bfd_iovec_pread, remote_file_get): Update.
12105 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12106
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12110 * target.c (target_fileio_pwrite): Add argument.
12111 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12112 (remote_file_put): Update.
12113 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12114
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12118 * target.c (target_fileio_open): Add argument.
12119 * remote.c (remote_hostio_open): Add 'self' argument.
12120 (remote_bfd_iovec_open): Add 'self' argument.
12121 (remote_file_put): Add 'self' argument.
12122 (remote_file_get): Add 'self' argument.
12123 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12124
12125 2014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12128 Add argument.
12129 (target_can_run_breakpoint_commands): Add argument.
12130 * target.c (update_current_target): Update.
12131 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12132 argument.
12133 (remote_insert_breakpoint): Add 'self' argument.
12134 (remote_insert_hw_breakpoint): Add 'self' argument.
12135 (remote_can_run_breakpoint_commands): Add 'self' argument.
12136
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target.h (struct target_ops)
12140 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12141 (target_supports_evaluation_of_breakpoint_conditions): Add
12142 argument.
12143 * target.c (update_current_target): Update.
12144 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12145 argument.
12146 (remote_insert_breakpoint): Add 'self' argument.
12147 (remote_insert_hw_breakpoint): Add 'self' argument.
12148 (remote_supports_cond_breakpoints): Add 'self' argument.
12149
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12153 argument.
12154 (target_supports_string_tracing): Add argument.
12155 * target.c (update_current_target): Update.
12156 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12157
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target.h (struct target_ops)
12161 <to_supports_disable_randomization>: Add argument.
12162 * target.c (find_default_supports_disable_randomization): Add
12163 argument.
12164 (target_supports_disable_randomization): Add argument.
12165 (find_default_supports_disable_randomization): Add 'self'
12166 argument.
12167 * remote.c (extended_remote_supports_disable_randomization): Add
12168 'self' argument.
12169 (remote_supports_disable_randomization): Add 'self' argument.
12170 (extended_remote_create_inferior): Update.
12171 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12172 'self' argument.
12173
12174 2014-02-19 Tom Tromey <tromey@redhat.com>
12175
12176 * target.h (struct target_ops)
12177 <to_supports_enable_disable_tracepoint>: Add argument.
12178 (target_supports_enable_disable_tracepoint): Add argument.
12179 * target.c (update_current_target): Update.
12180 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12181 argument.
12182
12183 2014-02-19 Tom Tromey <tromey@redhat.com>
12184
12185 * target.h (struct target_ops) <to_supports_multi_process>: Add
12186 argument.
12187 (target_supports_multi_process): Add argument.
12188 * target.c (update_current_target): Update.
12189 * remote.c (remote_supports_multi_process): Add 'self' argument.
12190 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12191 argument.
12192 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12193 argument.
12194
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target.h (struct target_ops) <to_execution_direction>: Add
12198 argument.
12199 (target_execution_direction): Add argument.
12200 * target.c (default_execution_direction): Add 'self' argument.
12201 * record-full.c (record_full_execution_direction): Add 'self'
12202 argument.
12203
12204 2014-02-19 Tom Tromey <tromey@redhat.com>
12205
12206 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12207 argument.
12208 (target_can_execute_reverse): Add argument.
12209 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12210 * record-full.c (record_full_can_execute_reverse): Add 'self'
12211 argument.
12212 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12213 argument.
12214
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12216
12217 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12218 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12219 argument.
12220 (target_get_ada_task_ptid): Add argument.
12221 * target.c (update_current_target): Update.
12222 (default_get_ada_task_ptid): Add 'self' argument.
12223 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12224 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12225 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12226 argument.
12227 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12228 argument.
12229 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12230 argument.
12231 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12232 argument.
12233 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12234 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12235 argument.
12236
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12240 (target_goto_bookmark): Add argument.
12241 * target.c (dummy_goto_bookmark): Add 'self' argument.
12242 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12243
12244 2014-02-19 Tom Tromey <tromey@redhat.com>
12245
12246 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12247 (target_get_bookmark): Add argument.
12248 * target.c (dummy_get_bookmark): Add 'self' argument.
12249 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12250
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12252
12253 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12254 argument.
12255 (target_make_corefile_notes): Add argument.
12256 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12257 * procfs.c (procfs_make_note_section): Add 'self' argument.
12258 (procfs_make_note_section): Add 'self' argument.
12259 (procfs_make_note_section): Add 'self' argument.
12260 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12261 argument.
12262 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12263 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12264 * exec.c (exec_make_note_section): Add 'self' argument.
12265 (exec_make_note_section): Add 'self' argument.
12266
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target.h (struct target_ops) <to_find_memory_regions>: Add
12270 argument.
12271 (target_find_memory_regions): Add argument.
12272 * target.c (dummy_find_memory_regions): Add 'self' argument.
12273 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12274 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12275 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12276 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12277 * exec. (exec_do_find_memory_regions): New global.
12278 (exec_set_find_memory_regions): Rewrite.
12279 (exec_find_memory_regions): New function.
12280 (init_exec_ops): Use exec_find_memory_regions.
12281
12282 2014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * target.h (struct target_ops) <to_supports_non_stop>: Add
12285 argument.
12286 * target.c (find_default_supports_non_stop): Add argument.
12287 (target_supports_non_stop): Add argument.
12288 (find_default_supports_non_stop): Add 'self' argument.
12289 * remote.c (remote_supports_non_stop): Add 'self' argument.
12290 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12291
12292 2014-02-19 Tom Tromey <tromey@redhat.com>
12293
12294 * target.h (struct target_ops) <to_log_command>: Add argument.
12295 (target_log_command): Add argument.
12296 * serial.h (serial_log_command): Add 'self' argument.
12297 * serial.c (serial_log_command): Add 'self' argument.
12298
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12302 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12303 argument.
12304 (target_pid_to_exec_file): Add argument.
12305 * target.c (debug_to_pid_to_exec_file): Add argument.
12306 (update_current_target): Update.
12307 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12308 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12309 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12310 (linux_handle_extended_wait): Update.
12311 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12312 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12313 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12314 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12315
12316 2014-02-19 Tom Tromey <tromey@redhat.com>
12317
12318 * target.h (struct target_ops) <to_rcmd>: Add argument.
12319 (target_rcmd): Add argument.
12320 * target.c (debug_to_rcmd): Add argument.
12321 (update_current_target, do_monitor_command): Update.
12322 * remote.c (remote_rcmd): Add 'self' argument.
12323 * monitor.c (monitor_rcmd): Add 'self' argument.
12324
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * windows-nat.c (windows_stop): Add 'self' argument.
12328 * target.h (struct target_ops) <to_stop>: Add argument.
12329 * target.c (target_stop): Add argument.
12330 (debug_to_stop): Add argument.
12331 (update_current_target): Update.
12332 * remote.c (remote_stop): Add 'self' argument.
12333 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12334 (gdbsim_cntrl_c): Update.
12335 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12336 * procfs.c (procfs_stop): Add 'self' argument.
12337 * nto-procfs.c (procfs_stop): Add 'self' argument.
12338 * monitor.c (monitor_stop): Add 'self' argument.
12339 (monitor_open): Update.
12340 * linux-nat.c (linux_nat_stop): Add argument.
12341 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12342 * gnu-nat.c (gnu_stop): Add 'self' argument.
12343 * darwin-nat.c (darwin_stop): Add 'self' argument.
12344
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target.h (struct target_ops) <to_thread_name>: Add argument.
12348 * target.c (target_thread_name): Add argument.
12349 (update_current_target): Update.
12350 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12351
12352 2014-02-19 Tom Tromey <tromey@redhat.com>
12353
12354 * target.h (struct target_ops) <to_extra_thread_info>: Add
12355 argument.
12356 (target_extra_thread_info): Add argument.
12357 * target.c (update_current_target): Update.
12358 * remote.c (remote_threads_extra_info): Add 'self' argument.
12359 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12360 argument.
12361 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12362 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12363 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12364 argument.
12365 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12366 argument.
12367 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12368 argument.
12369 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12370 argument.
12371
12372 2014-02-19 Tom Tromey <tromey@redhat.com>
12373
12374 * target.h (struct target_ops) <to_program_signals>: Add argument.
12375 * target.c (target_program_signals): Add argument.
12376 * remote.c (remote_program_signals): Add 'self' argument.
12377
12378 2014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12381 * target.c (target_pass_signals): Add argument.
12382 * remote.c (remote_pass_signals): Add 'self' argument.
12383 (remote_start_remote): Update.
12384 * procfs.c (procfs_pass_signals): Add 'self' argument.
12385 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12386 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12387 (linux_nat_create_inferior, linux_nat_attach): Update.
12388
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * windows-nat.c (windows_can_run): Add 'self' argument.
12392 * target.h (struct target_ops) <to_can_run>: Add argument.
12393 (target_can_run): Add argument.
12394 * target.c (debug_to_can_run): Add argument.
12395 (update_current_target): Update.
12396 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12397 * inf-child.c (inf_child_can_run): Add 'self' argument.
12398 * go32-nat.c (go32_can_run): Add 'self' argument.
12399
12400 2014-02-19 Tom Tromey <tromey@redhat.com>
12401
12402 * target.h (struct target_ops) <to_has_exited>: Add argument.
12403 (target_has_exited): Add argument.
12404 * target.c (debug_to_has_exited): Add argument.
12405 (update_current_target): Update.
12406
12407 2014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12410 argument.
12411 (target_set_syscall_catchpoint): Add argument.
12412 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12413 argument.
12414 * target.c (update_current_target): Update.
12415
12416 2014-02-19 Tom Tromey <tromey@redhat.com>
12417
12418 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12419 argument.
12420 (target_remove_exec_catchpoint): Add argument.
12421 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12422 (update_current_target): Update.
12423 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12424 argument.
12425
12426 2014-02-19 Tom Tromey <tromey@redhat.com>
12427
12428 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12429 argument.
12430 (target_insert_exec_catchpoint): Add argument.
12431 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12432 (update_current_target): Update.
12433 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12434 argument.
12435
12436 2014-02-19 Tom Tromey <tromey@redhat.com>
12437
12438 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12439 argument.
12440 (target_remove_vfork_catchpoint): Add argument.
12441 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12442 (update_current_target): Update.
12443 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12444 argument.
12445
12446 2014-02-19 Tom Tromey <tromey@redhat.com>
12447
12448 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12449 argument.
12450 (target_insert_vfork_catchpoint): Add argument.
12451 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12452 (update_current_target): Update.
12453 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12454 argument.
12455
12456 2014-02-19 Tom Tromey <tromey@redhat.com>
12457
12458 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12459 argument.
12460 (target_remove_fork_catchpoint): Add argument.
12461 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12462 (update_current_target): Update.
12463 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12464 argument.
12465
12466 2014-02-19 Tom Tromey <tromey@redhat.com>
12467
12468 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12469 argument.
12470 (target_insert_fork_catchpoint): Add argument.
12471 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12472 (update_current_target): Update.
12473 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12474 argument.
12475
12476 2014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12479 argument.
12480 (target_post_startup_inferior): Add argument.
12481 * target.c (debug_to_post_startup_inferior): Add argument.
12482 (update_current_target): Update.
12483 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12484 argument.
12485 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12486 argument.
12487 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12488 argument.
12489 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12490 argument.
12491 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12492 'self' argument.
12493 (super_post_startup_inferior): Likewise.
12494 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12495 'self' argument.
12496 (super_post_startup_inferior): Likewise.
12497 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12498 Add 'self' argument.
12499 (super_post_startup_inferior): Likewise.
12500
12501 2014-02-19 Tom Tromey <tromey@redhat.com>
12502
12503 * target.h (struct target_ops) <to_load>: Add argument.
12504 * target.c (target_load): Add argument.
12505 (debug_to_load): Add argument.
12506 (update_current_target): Update.
12507 * remote.c (remote_load): Add 'self' argument.
12508 * remote-sim.c (gdbsim_load): Add 'self' argument.
12509 * remote-mips.c (mips_load): Add 'self' argument.
12510 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12511 * monitor.c (monitor_load): Add 'self' argument.
12512 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12513
12514 2014-02-19 Tom Tromey <tromey@redhat.com>
12515
12516 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12517 (target_terminal_info): Add argument.
12518 * target.c (debug_to_terminal_info): Add argument.
12519 (default_terminal_info): Likewise.
12520 * inflow.c (child_terminal_info): Add 'self' argument.
12521 * inferior.h (child_terminal_info): Add 'self' argument.
12522 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12523
12524 2014-02-19 Tom Tromey <tromey@redhat.com>
12525
12526 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12527 argument.
12528 (target_terminal_save_ours): Add argument.
12529 * target.c (debug_to_terminal_save_ours): Add argument.
12530 (update_current_target): Update.
12531 * inflow.c (terminal_save_ours): Add 'self' argument.
12532 * inferior.h (terminal_save_ours): Add 'self' argument.
12533
12534 2014-02-19 Tom Tromey <tromey@redhat.com>
12535
12536 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12537 (target_terminal_ours): Add argument.
12538 * target.c (debug_to_terminal_ours): Add argument.
12539 (update_current_target): Update.
12540 * remote.c (remote_terminal_ours): Add 'self' argument.
12541 (remote_close): Update.
12542 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12543 * inflow.c (terminal_ours): Add 'self' argument.
12544 * inferior.h (terminal_ours): Add 'self' argument.
12545 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12546
12547 2014-02-19 Pedro Alves <palves@redhat.com>
12548 Tom Tromey <tromey@redhat.com>
12549
12550 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12551 argument.
12552 (target_terminal_ours_for_output): Add argument.
12553 * target.c (debug_to_terminal_ours_for_output): Add argument.
12554 (update_current_target): Update.
12555 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12556 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12557 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12558
12559 2014-02-19 Tom Tromey <tromey@redhat.com>
12560
12561 * target.h (struct target_ops) <to_terminal_inferior>: Add
12562 argument.
12563 * target.c (target_terminal_inferior): Add argument.
12564 (update_current_target): Update.
12565 * remote.c (remote_terminal_inferior): Add 'self' argument.
12566 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12567 * inflow.c (terminal_inferior): Add 'self' argument.
12568 * inferior.h (terminal_inferior): Add 'self' argument.
12569 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12570 (go32_terminal_inferior): Add 'self' argument.
12571
12572 2014-02-19 Tom Tromey <tromey@redhat.com>
12573
12574 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12575 (target_terminal_init): Add argument.
12576 * target.c (debug_to_terminal_init): Add argument.
12577 (update_current_target): Update.
12578 * inflow.c (terminal_init_inferior): Add 'self' argument.
12579 * inferior.h (terminal_init_inferior): Add 'self' argument.
12580 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12581 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12582
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * target.h (struct target_ops)
12586 <to_can_accel_watchpoint_condition>: Add argument.
12587 (target_can_accel_watchpoint_condition): Add argument.
12588 * target.c (debug_to_can_accel_watchpoint_condition): Add
12589 argument.
12590 (update_current_target): Update.
12591 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12592 'self' argument.
12593
12594 2014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12597 Add argument.
12598 (target_region_ok_for_hw_watchpoint): Add argument.
12599 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12600 (default_region_ok_for_hw_watchpoint): Add argument.
12601 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12602 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12603 argument.
12604 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12605 argument.
12606 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12607 argument.
12608 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12609 'self' argument.
12610 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12611 'self' argument.
12612 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12613 'self' argument.
12614 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12615 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12616 'self' argument.
12617 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12618 Add 'self' argument.
12619
12620 2014-02-19 Tom Tromey <tromey@redhat.com>
12621
12622 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12623 argument.
12624 (target_insert_watchpoint): Add argument.
12625 * target.c (debug_to_insert_watchpoint): Add argument.
12626 (update_current_target): Update.
12627 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12628 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12629 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12630 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12631 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12632 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12633 argument.
12634 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12635 (procfs_insert_hw_watchpoint): Add 'self' argument.
12636 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12637 argument.
12638 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12639 argument.
12640 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12641 argument.
12642 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12643 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12644 argument.
12645 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12646 'self' argument.
12647
12648 2014-02-19 Tom Tromey <tromey@redhat.com>
12649
12650 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12651 argument.
12652 (target_remove_watchpoint): Add argument.
12653 * target.c (debug_to_remove_watchpoint): Add argument.
12654 (update_current_target): Update.
12655 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12656 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12657 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12658 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12659 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12660 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12661 argument.
12662 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12663 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12664 argument.
12665 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12666 argument.
12667 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12668 argument.
12669 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12670 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12671 argument.
12672 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12673 'self' argument.
12674
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12678 argument.
12679 (target_remove_hw_breakpoint): Add argument.
12680 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12681 (update_current_target): Update.
12682 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12683 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12684 argument.
12685 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12686 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12687 argument.
12688 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12689 'self' argument.
12690
12691 2014-02-19 Tom Tromey <tromey@redhat.com>
12692
12693 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12694 argument.
12695 (target_insert_hw_breakpoint): Add argument.
12696 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12697 (update_current_target): Update.
12698 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12699 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12700 argument.
12701 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12702 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12703 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12704 argument.
12705 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12706 'self' argument.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12711 argument.
12712 (target_can_use_hardware_watchpoint): Add argument.
12713 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12714 (update_current_target): Update.
12715 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12716 argument.
12717 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12718 argument.
12719 * remote.c (remote_check_watch_resources): Add 'self' argument.
12720 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12721 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12722 argument.
12723 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12724 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12725 argument.
12726 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12727 argument.
12728 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12729 argument.
12730 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12731 argument.
12732 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12733 argument.
12734 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12735 argument.
12736 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12737 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12738 argument.
12739 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12740 'self' argument.
12741
12742 2014-02-19 Tom Tromey <tromey@redhat.com>
12743
12744 * target.h (struct target_ops) <to_post_attach>: Add argument.
12745 (target_post_attach): Add argument.
12746 * target.c (debug_to_post_attach): Add argument.
12747 (update_current_target): Update.
12748 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12749 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12750 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12751 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12752 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12753
12754 2014-02-19 Tom Tromey <tromey@redhat.com>
12755
12756 * windows-nat.c (windows_close): Add 'self' argument.
12757 * tracepoint.c (tfile_close): Add 'self' argument.
12758 * target.h (struct target_ops) <to_close>: Add argument.
12759 * target.c (target_close): Add argument.
12760 (update_current_target): Update.
12761 * remote.c (remote_close): Add 'self' argument.
12762 * remote-sim.c (gdbsim_close): Add 'self' argument.
12763 * remote-mips.c (mips_close): Add 'self' argument.
12764 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12765 * record-full.c (record_full_close): Add 'self' argument.
12766 * record-btrace.c (record_btrace_close): Add 'self' argument.
12767 * monitor.h (monitor_close): Add 'self' argument.
12768 * monitor.c (monitor_close): Add 'self' argument.
12769 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12770 * linux-nat.c (linux_nat_close): Add argument.
12771 * go32-nat.c (go32_close): Add 'self' argument.
12772 * exec.c (exec_close_1): Add 'self' argument.
12773 * ctf.c (ctf_close): Add 'self' argument.
12774 * corelow.c (core_close): Add 'self' argument.
12775 (core_close_cleanup): Update.
12776 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12777 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12778
12779 2014-02-19 Tom Tromey <tromey@redhat.com>
12780
12781 * remote.c (remote_load): New function.
12782 (init_remote_ops): Use it.
12783
12784 2014-02-19 Tom Tromey <tromey@redhat.com>
12785
12786 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12787 argument.
12788 * common/linux-btrace.h (linux_supports_btrace): Update.
12789 * remote.c (remote_supports_btrace): Add "self" argument.
12790 * target-delegates.c: Rebuild.
12791 * target.c (target_supports_btrace): Remove.
12792 * target.h (struct target_ops) <to_supports_btrace>: Add
12793 target_ops argument.
12794 (target_supports_btrace): New define.
12795
12796 2014-02-19 Tom Tromey <tromey@redhat.com>
12797
12798 * record-full.c (record_full_beneath_to_resume_ops)
12799 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12800 (record_full_beneath_to_wait)
12801 (record_full_beneath_to_store_registers_ops)
12802 (record_full_beneath_to_store_registers)
12803 (record_full_beneath_to_xfer_partial_ops)
12804 (record_full_beneath_to_xfer_partial)
12805 (record_full_beneath_to_insert_breakpoint_ops)
12806 (record_full_beneath_to_insert_breakpoint)
12807 (record_full_beneath_to_remove_breakpoint_ops)
12808 (record_full_beneath_to_remove_breakpoint)
12809 (record_full_beneath_to_stopped_by_watchpoint)
12810 (record_full_beneath_to_stopped_data_address)
12811 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12812 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12813 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12814 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12815 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12816 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12817 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12818 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12819 (record_full_resume, record_full_wait_1)
12820 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12821 (record_full_store_registers, record_full_xfer_partial)
12822 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12823 (record_full_async, record_full_core_xfer_partial): Use target
12824 delegation.
12825 * target-delegates.c: Rebuild.
12826 * target.c (current_xfer_partial): Remove.
12827 (update_current_target): Do not INHERIT or de_fault
12828 to_insert_breakpoint, to_remove_breakpoint,
12829 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12830 to_is_async_p, to_async. Do not set to_xfer_partial field.
12831 (default_xfer_partial): Simplify.
12832 (current_xfer_partial): Remove.
12833 (target_wait, target_resume): Simplify.
12834 (find_default_can_async_p, find_default_is_async_p): Update.
12835 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12836 to_xfer_partial, to_stopped_by_watchpoint,
12837 to_stopped_data_address.
12838 (target_store_registers): Simplify.
12839 (forward_target_remove_breakpoint)
12840 (forward_target_insert_breakpoint): Remove.
12841 (target_remove_breakpoint, target_insert_breakpoint)
12842 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12843 * target.h (struct target_ops) <to_resume, to_wait,
12844 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12845 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12846 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12847 markup.
12848 (forward_target_remove_breakpoint)
12849 (forward_target_insert_breakpoint): Remove.
12850 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12851 directly.
12852 (record_btrace_insert_breakpoint): Delegate directly.
12853
12854 2014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 PR build/7701:
12857 * target-delegates.c: New file.
12858 * target.c: Include target-delegates.c.
12859 (init_dummy_target): Call install_dummy_methods.
12860 (complete_target_initialization): Call install_delegators.
12861 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12862 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12863 * make-target-delegates: New file.
12864
12865 2014-02-19 Tom Tromey <tromey@redhat.com>
12866
12867 * record.c (find_record_target): Use find_target_at.
12868 * target.c (find_target_at): New function.
12869 * target.h (find_target_at): Declare.
12870
12871 2014-02-19 Tom Tromey <tromey@redhat.com>
12872
12873 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12874 Add 'ops' argument.
12875 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12876 'ops' argument.
12877 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12878 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12879 'ops' argument.
12880 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12881 argument.
12882 * linux-nat.c (save_sigtrap): Update.
12883 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12884 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12885 (linux_nat_close): Update.
12886 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12887 argument.
12888 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12889 argument.
12890 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12891 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12892 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12893 (tmp_to_async): Add 'ops' argument.
12894 (record_full_stopped_by_watchpoint, record_full_async)
12895 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12896 argument.
12897 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12898 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12899 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12900 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12901 (remote_is_async_p, remote_async): Add 'ops' argument.
12902 (remote_stopped_data_address): Update.
12903 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12904 * target.c (update_current_target)
12905 (find_default_can_async_p, find_default_is_async_p): Update.
12906 (init_dummy_target): Update.
12907 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12908 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12909 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12910 (target_can_async_p, target_is_async_p, target_async)
12911 (target_stopped_by_watchpoint): Update.
12912
12913 2014-02-19 Yao Qi <yao@codesourcery.com>
12914
12915 PR gdb/16220
12916 * gdbarch.sh: Remove startup_gdbarch.
12917 * gdbarch.c: Regenerated.
12918 * gdbarch.h: Likewise.
12919
12920 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12921
12922 * rl78-tdep.c (rl78_g10_register_name): New function.
12923 (rl78_return_value): Add g10 support.
12924 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12925 g10.
12926
12927 2014-02-17 Doug Evans <xdje42@gmail.com>
12928
12929 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12930 (SUBDIR_GUILE_SRCS): Ditto.
12931 (scm-gsmob.o): Ditto.
12932
12933 2014-02-17 Yao Qi <yao@codesourcery.com>
12934
12935 * gnu-nat.c (ILL_RPC): Declare defined function.
12936
12937 2014-02-17 Yao Qi <yao@codesourcery.com>
12938
12939 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12940 mach_msg_type_number_t.
12941 (gnu_write_inferior): Likewise.
12942
12943 2014-02-17 Yao Qi <yao@codesourcery.com>
12944
12945 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12946 in format string.
12947 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12948 (inf_validate_procs, inf_signal): Likewise.
12949 (S_exception_raise_request): Likewise.
12950 (do_mach_notify_dead_name): Likewise.
12951 (steal_exc_port): Likewise.
12952 (gnu_read_inferior): Change 'copy_count''s type to
12953 mach_msg_type_number_t.
12954 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12955 format string.
12956
12957 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12958
12959 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12960 flag. Adjust all users; in particular...
12961 (gnu_wait): ..., don't decrement its value in here...
12962 (gnu_create_inferior): ..., and instead set the flag in here,
12963 around the startup_inferior call, and call that one with
12964 START_INFERIOR_TRAPS_EXPECTED.
12965
12966 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12967 (ILL_RPC): ... new macro.
12968 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12969 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12970 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12971 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12972 functions with ILL_RPC macro.
12973 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12974 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12975 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12976 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12977 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12978 (S_proc_getlogin_reply, S_proc_getsid_reply)
12979 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12980 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12981 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12982 (S_proc_getnports_reply, S_proc_is_important_reply)
12983 (S_proc_get_code_reply): New stub functions, generated with
12984 ILL_RPC macro.
12985
12986 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12987 collected the type check structures.
12988
12989 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12990
12991 2014-02-14 Doug Evans <dje@google.com>
12992
12993 * target.c (target_write_partial): Fix result type.
12994
12995 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12996
12997 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12998 the proper offsets to access fpregset_t.
12999
13000 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13001
13002 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13003 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13004 * h8300-tdep.c (setmachinelist): Remove global.
13005 * hppa-tdep.c (hppa_sigtramp): Remove global.
13006 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13007 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13008 * ravenscar-thread.c (update_target_observer): Remove global.
13009 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13010
13011 2014-02-12 Tom Tromey <tromey@redhat.com>
13012
13013 * common/rsp-low.c: Update comments.
13014 * common/rsp-low.h: Update comments.
13015
13016 2014-02-12 Tom Tromey <tromey@redhat.com>
13017
13018 * common/rsp-low.c (convert_ascii_to_int): Remove.
13019 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13020
13021 2014-02-12 Tom Tromey <tromey@redhat.com>
13022
13023 * common/rsp-low.h (unhexify): Don't declare.
13024 * common/rsp-low.c (unhexify): Remove.
13025
13026 2014-02-12 Tom Tromey <tromey@redhat.com>
13027
13028 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13029 * common/rsp-low.c (convert_int_to_ascii): Remove.
13030
13031 2014-02-12 Tom Tromey <tromey@redhat.com>
13032
13033 * common/rsp-low.h (hexify): Don't declare.
13034 * common/rsp-low.c (hexify): Remove.
13035
13036 2014-02-12 Tom Tromey <tromey@redhat.com>
13037
13038 * common/rsp-low.c (hexify): Never take strlen of argument.
13039
13040 2014-02-12 Tom Tromey <tromey@redhat.com>
13041
13042 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13043 * remote.c (extended_remote_run, remote_rcmd)
13044 (remote_download_trace_state_variable, remote_save_trace_data)
13045 (remote_set_trace_notes): Update.
13046 * tracepoint.c (encode_source_string, tfile_write_status)
13047 (tfile_write_uploaded_tsv): Update.
13048
13049 2014-02-12 Tom Tromey <tromey@redhat.com>
13050
13051 * tracepoint.c: Include rsp-low.h.
13052 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13053 * remote.c: Include rsp-low.h.
13054 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13055 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13056 (remote_unescape_input): Move to common/rsp-low.c.
13057 * common/rsp-low.h: New file.
13058 * common/rsp-low.c: New file.
13059 * Makefile.in (SFILES): Add common/rsp-low.c.
13060 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13061 (COMMON_OBS): Add rsp-low.o.
13062 (rsp-low.o): New target.
13063
13064 2014-02-12 Tom Tromey <tromey@redhat.com>
13065
13066 * utils.h: Include print-utils.h.
13067 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13068 (int_string, core_addr_to_string, core_addr_to_string_nz)
13069 (hex_string, hex_string_custom): Don't declare.
13070 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13071 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13072 (hex_string_custom, int_string, core_addr_to_string)
13073 (core_addr_to_string_nz, host_address_to_string): Move to
13074 common/print-utils.c.
13075 * common/print-utils.h: New file.
13076 * common/print-utils.c: New file
13077 * Makefile.in (SFILES): Add common/print-utils.c.
13078 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13079 (COMMON_OBS): Add print-utils.o.
13080 (print-utils.o): New target.
13081
13082 2014-02-12 Tom Tromey <tromey@redhat.com>
13083
13084 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13085
13086 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13087
13088 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13089
13090 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13091
13092 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13093 if a PT_IO ptrace request returns sucessfully but indicates that 0
13094 bytes were transferred.
13095
13096 2014-02-12 Pedro Alves <palves@redhat.com>
13097 Kevin Buettner <kevinb@redhat.com>
13098
13099 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13100 TYPE_INSTANCE_FLAG_CODE_SPACE.
13101
13102 2014-02-12 Pedro Alves <palves@redhat.com>
13103
13104 * h8300-tdep.c (pseudo_from_raw_register)
13105 (raw_from_pseudo_register): New functions.
13106 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13107 them.
13108
13109 2014-02-12 Pedro Alves <palves@redhat.com>
13110
13111 * h8300-tdep.c (h8300_register_sim_regno): New function.
13112 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13113 gdbarch_register_sim_regno hook.
13114
13115 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13116
13117 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13118
13119 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13120
13121 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13122
13123 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13124
13125 * obsd-tdep.h (obsd_init_abi): New prototype.
13126 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13127 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13128 (obsd_init_abi): New functions.
13129 * i386obsd-tdep.c: Include "obsd-tdep.h".
13130 (i386obsd_init_abi): Call obsd_init_abi.
13131 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13132 (amd64obsd_init_abi): Call obsd_init_abi.
13133 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13134 obsd-tdep.c to gdb_target_obs.
13135
13136 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13137
13138 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13139 double float arguments to 16-byte in the argument slots.
13140
13141 2014-02-11 Doug Evans <xdje42@gmail.com>
13142
13143 * configure.ac: Don't crash if pkg-config is not found and guile
13144 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13145 in guile checks.
13146 * configure: Regenerate.
13147
13148 2014-02-11 Yao Qi <yao@codesourcery.com>
13149
13150 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13151 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13152 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13153 * gnu-nat.c (gnu_xfer_memory): Likewise.
13154 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13155 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13156 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13157 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13158
13159 2014-02-11 Yao Qi <yao@codesourcery.com>
13160
13161 * target.h (enum target_xfer_error): Rename to ...
13162 (enum target_xfer_status): ... it. New. All users updated.
13163 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13164 New.
13165 (TARGET_XFER_STATUS_ERROR_P): New macro.
13166 (target_xfer_error_to_string): Remove declaration.
13167 (target_xfer_status_to_string): Declare.
13168 (target_xfer_partial_ftype): Adjust it.
13169 (struct target_ops) <to_xfer_partial>: Return
13170 target_xfer_status. Add argument xfered_len. Update
13171 comments.
13172 * target.c (target_xfer_error_to_string): Rename to ...
13173 (target_xfer_status_to_string): ... it. New. All callers
13174 updated.
13175 (target_read_live_memory): Likewise. Call target_xfer_partial
13176 instead of target_read.
13177 (memory_xfer_live_readonly_partial): Return
13178 target_xfer_status. Add argument xfered_len.
13179 (raw_memory_xfer_partial): Likewise.
13180 (memory_xfer_partial_1): Likewise.
13181 (memory_xfer_partial): Likewise.
13182 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13183 properly. Update debug message.
13184 (default_xfer_partial, current_xfer_partial): Likewise.
13185 (target_write_partial): Likewise.
13186 (target_read_partial): Likewise. All callers updated.
13187 (read_whatever_is_readable): Likewise.
13188 (target_write_with_progress): Likewise.
13189 (target_read_alloc_1): Likewise.
13190
13191 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13192 * auxv.c (procfs_xfer_auxv): Likewise.
13193 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13194 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13195 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13196 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13197 * corefile.c (read_memory): Adjust.
13198 * corelow.c (core_xfer_partial): Likewise.
13199 * ctf.c (ctf_xfer_partial): Likewise.
13200 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13201 updated.
13202 (darwin_xfer_partial): Likewise.
13203 * exec.c (section_table_xfer_memory_partial): Likewise. All
13204 callers updated.
13205 (exec_xfer_partial): Likewise.
13206 * exec.h (section_table_xfer_memory_partial): Update
13207 declaration.
13208 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13209 negative.
13210 (gnu_xfer_partial): Likewise.
13211 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13212 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13213 (ia64_hpux_xfer_solib_got): Likewise.
13214 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13215 type of 'partial_len' to ULONGEST.
13216 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13217 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13218 (linux_nat_xfer_partial): Likewise.
13219 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13220 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13221 * monitor.c (monitor_xfer_memory): Likewise.
13222 (monitor_xfer_partial): Likewise.
13223 * procfs.c (procfs_xfer_partial): Likewise.
13224 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13225 * record-full.c (record_full_xfer_partial): Likewise.
13226 (record_full_core_xfer_partial): Likewise.
13227 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13228 (gdbsim_xfer_partial): Likewise.
13229 * remote.c (remote_write_bytes_aux): Likewise. All callers
13230 updated.
13231 (remote_write_bytes, remote_read_bytes): Likewise. All
13232 callers updated.
13233 (remote_flash_erase): Likewise. All callers updated.
13234 (remote_write_qxfer): Likewise. All callers updated.
13235 (remote_read_qxfer): Likewise. All callers updated.
13236 (remote_xfer_partial): Likewise.
13237 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13238 (rs6000_xfer_shared_libraries): Likewise.
13239 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13240 (sol_thread_xfer_partial): Likewise.
13241 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13242 (sparc_xfer_partial): Likewise.
13243 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13244 updated.
13245 (spu_xfer_partial): Likewise.
13246 * spu-multiarch.c (spu_xfer_partial): Likewise.
13247 * tracepoint.c (tfile_xfer_partial): Likewise.
13248 * windows-nat.c (windows_xfer_memory): Likewise.
13249 (windows_xfer_shared_libraries): Likewise.
13250 (windows_xfer_partial): Likewise.
13251 * valprint.c: Replace 'target_xfer_error' with
13252 'target_xfer_status' in comments.
13253
13254 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13255
13256 Checked in by Joel Brobecker <brobecker@adacore.com>.
13257 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13258
13259 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13260
13261 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13262 function parameters.
13263
13264 2014-02-10 Will Newton <will.newton@linaro.org>
13265
13266 * elfread.c (elf_rel_plt_read): Look for a .got section if
13267 looking up .got.plt fails.
13268 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13269 on address passed to elf_gnu_ifunc_record_cache.
13270 (elf_gnu_ifunc_resolve_addr): Likewise.
13271 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13272
13273 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13274
13275 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13276 (X_RETTURN): New macro.
13277 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13278
13279 * sparc64-tdep.c (sparc64_init_abi): Hook
13280 sparc_in_function_epilogue_p.
13281
13282 2014-02-10 Gary Benson <gbenson@redhat.com>
13283
13284 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13285 Rename name_matcher to symbol_matcher.
13286
13287 2014-02-10 Gary Benson <gbenson@redhat.com>
13288
13289 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13290 Use expand_symtabs_file_matcher_ftype and
13291 expand_symtabs_symbol_matcher_ftype.
13292
13293 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13294
13295 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13296 (struct ada_symbol_cache): New.
13297 (ada_free_symbol_cache): Forward declare.
13298 (struct ada_pspace_data): New.
13299 (ada_pspace_data_handle): New static global.
13300 (get_ada_pspace_data, ada_pspace_data_cleanup)
13301 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13302 (cache_space, cache): Delete, now folded inside struct
13303 ada_pspace_data.
13304 (ada_get_symbol_cache): New function.
13305 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13306 implementation.
13307 (_initialize_ada_language): Remove initialization of cache_space.
13308 Move call to observer_attach_inferior_exit up, grouping it
13309 with the other observer registrations inside this function.
13310 Rename command to be more general. Add call to
13311 register_program_space_data_with_cleanup.
13312
13313 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13314
13315 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13316 ada_new_objfile_observer.
13317 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13318 (_initialize_tasks): Update uses of ada_new_objfile_observer
13319 and ada_tasks_normal_stop_observer.
13320
13321 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13322
13323 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13324 returned by the 'Length attribute to integer.
13325
13326 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13327
13328 * ada-lang.c (_initialize_ada_language): Initialize
13329 cache_space obstack.
13330
13331 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13332
13333 * ada-lang.c (HASH_SIZE): New macro.
13334 (struct cache_entry): New type.
13335 (cache_space, cache): New static globals.
13336 (ada_clear_symbol_cache, find_entry): New functions.
13337 (lookup_cached_symbol, cache_symbol): Implement.
13338 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13339 (_initialize_ada_language): Attach ada_new_objfile_observer
13340 and ada_free_objfile_observer.
13341
13342 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13343
13344 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13345 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13346 struct block * parameter.
13347 (ada_lookup_symbol_list_worker): Constify local variable "block".
13348 Remove cast which is no longer necessary.
13349
13350 2014-02-10 Doug Evans <xdje42@gmail.com>
13351
13352 Add Guile as an extension language.
13353 * NEWS: Mention Guile scripting.
13354 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13355 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13356 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13357 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13358 (CLIBS): Add GUILE_LIBS.
13359 (install-guile): New rule.
13360 (guile.o): New rule.
13361 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13362 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13363 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13364 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13365 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13366 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13367 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13368 * configure.ac: New option --with-guile.
13369 * configure: Regenerate.
13370 * config.in: Regenerate.
13371 * auto-load.c: Remove #include "python/python.h". Add #include
13372 "gdb/section-scripts.h".
13373 (source_section_scripts): Handle Guile scripts.
13374 (_initialize_auto_load): Add name of Guile objfile script to
13375 scripts-directory help text.
13376 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13377 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13378 (struct breakpoint): New member scm_bp_object.
13379 * defs.h (enum command_control_type): New value guile_control.
13380 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13381 "extension.h".
13382 (show_user): Update comment.
13383 (_initialize_cli_cmds): Update help text for "show user". Update help
13384 text for max-user-call-depth.
13385 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13386 "extension.h".
13387 (multi_line_command_p): Add guile_control.
13388 (print_command_lines): Handle guile_control.
13389 (execute_control_command, recurse_read_control_structure): Ditto.
13390 (process_next_line): Recognize "guile" commands.
13391 * disasm.c (gdb_disassemble_info): Make non-static.
13392 * disasm.h: #include "dis-asm.h".
13393 (struct gdbarch): Add forward decl.
13394 (gdb_disassemble_info): Declare.
13395 * extension.c: #include "guile/guile.h".
13396 (extension_languages): Add guile.
13397 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13398 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13399 * gdbtypes.c (get_unsigned_type_max): New function.
13400 (get_signed_type_minmax): New function.
13401 * gdbtypes.h (get_unsigned_type_max): Declare.
13402 (get_signed_type_minmax): Declare.
13403 * guile/README: New file.
13404 * guile/guile-internal.h: New file.
13405 * guile/guile.c: New file.
13406 * guile/guile.h: New file.
13407 * guile/scm-arch.c: New file.
13408 * guile/scm-auto-load.c: New file.
13409 * guile/scm-block.c: New file.
13410 * guile/scm-breakpoint.c: New file.
13411 * guile/scm-disasm.c: New file.
13412 * guile/scm-exception.c: New file.
13413 * guile/scm-frame.c: New file.
13414 * guile/scm-gsmob.c: New file.
13415 * guile/scm-iterator.c: New file.
13416 * guile/scm-lazy-string.c: New file.
13417 * guile/scm-math.c: New file.
13418 * guile/scm-objfile.c: New file.
13419 * guile/scm-ports.c: New file.
13420 * guile/scm-pretty-print.c: New file.
13421 * guile/scm-safe-call.c: New file.
13422 * guile/scm-string.c: New file.
13423 * guile/scm-symbol.c: New file.
13424 * guile/scm-symtab.c: New file.
13425 * guile/scm-type.c: New file.
13426 * guile/scm-utils.c: New file.
13427 * guile/scm-value.c: New file.
13428 * guile/lib/gdb.scm: New file.
13429 * guile/lib/gdb/boot.scm: New file.
13430 * guile/lib/gdb/experimental.scm: New file.
13431 * guile/lib/gdb/init.scm: New file.
13432 * guile/lib/gdb/iterator.scm: New file.
13433 * guile/lib/gdb/printing.scm: New file.
13434 * guile/lib/gdb/types.scm: New file.
13435 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13436 (VPATH): Add $(GUILE_SRCDIR).
13437 (GUILE_DIR): New variable.
13438 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13439 (all): Add stamp-guile dependency.
13440 (stamp-guile): New rule.
13441 (clean-guile, install-guile, uninstall-guile): New rules.
13442 (install-only): Add install-guile dependency.
13443 (uninstall): Add uninstall-guile dependency.
13444 (clean): Add clean-guile dependency.
13445
13446 2014-02-09 Doug Evans <xdje42@gmail.com>
13447
13448 Revert this patch (which I approved, mea culpa).
13449
13450 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13451
13452 * Makefile.in (all-lib): Remove.
13453 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13454
13455 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13456
13457 Fix Python stack corruption.
13458 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13459 gdb_py_longest.
13460
13461 2014-02-08 Mark Kettenis <kettenis@gnu.org>
13462
13463 * Makefile.in (all-lib): Remove.
13464 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13465
13466 2014-02-07 Doug Evans <dje@google.com>
13467
13468 * extension-priv.h (extension_language_script_ops): Add comment.
13469 (extension_language_ops): Add comment.
13470 (active_ext_lang_state): Fix typo in comment.
13471
13472 2014-02-07 Pedro Alves <palves@redhat.com>
13473
13474 PR breakpoints/16292
13475 * infrun.c (handle_signal_stop) <signal arrives while stepping
13476 over a breakpoint>: Switch back to the stepping thread.
13477
13478 2014-02-07 Yao Qi <yao@codesourcery.com>
13479
13480 * target.c (target_xfer_partial): Return zero if LEN is zero.
13481
13482 2014-02-07 Yao Qi <yao@codesourcery.com>
13483
13484 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13485 (ld_so_xfer_auxv): Likewise.
13486 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13487 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13488 * corelow.c (core_xfer_partial): Likewise.
13489 * ctf.c (ctf_xfer_partial): Likewise.
13490 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13491 (darwin_xfer_partial): Likewise.
13492 * exec.c (exec_xfer_partial): Likewise.
13493 * gnu-nat.c (gnu_xfer_partial): Likewise.
13494 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13495 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13496 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13497 * linux-nat.c (linux_xfer_siginfo): Likewise.
13498 (linux_proc_xfer_spu): Likewise.
13499 * procfs.c (procfs_xfer_partial): Likewise.
13500 * record-full.c (record_full_xfer_partial): Likewise.
13501 (record_full_core_xfer_partial): Likewise.
13502 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13503 * remote.c (remote_write_qxfer): Likewise.
13504 (remote_write_qxfer, remote_read_qxfer): Likewise.
13505 (remote_xfer_partial): Likewise.
13506 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13507 (rs6000_xfer_shared_libraries): Likewise.
13508 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13509 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13510 (spu_xfer_partial): Likewise.
13511 * target.c (memory_xfer_partial_1): Likewise.
13512 * tracepoint.c (tfile_xfer_partial): Likewise.
13513 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13514 (windows_xfer_partial): Likewise.
13515
13516 2014-02-07 Yao Qi <yao@codesourcery.com>
13517
13518 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13519 comments.
13520 (core_xfer_shared_libraries_aix): Likewise.
13521 * gdbarch.c, gdbarch.h: Regenerated.
13522 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13523 ULONGEST. Change 'len_avail' type to ULONGEST.
13524 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13525 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13526 declaration.
13527 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13528
13529 2014-02-07 Yao Qi <yao@codesourcery.com>
13530
13531 * corefile.c (memory_error): Get 'exception' from ERR and pass
13532 'exception' to throw_error.
13533
13534 2014-02-06 Doug Evans <xdje42@gmail.com>
13535
13536 * configure.ac (libpython checking): Remove all but python.o from
13537 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13538 * configure: Regenerate.
13539
13540 * Makefile.in (SFILES): Add extension.c.
13541 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13542 (COMMON_OBS): Add extension.o.
13543 * extension.h: New file.
13544 * extension-priv.h: New file.
13545 * extension.c: New file.
13546
13547 * python/python-internal.h: #include "extension.h".
13548 (gdbpy_auto_load_enabled): Declare.
13549 (gdbpy_apply_val_pretty_printer): Declare.
13550 (gdbpy_apply_frame_filter): Declare.
13551 (gdbpy_preserve_values): Declare.
13552 (gdbpy_breakpoint_cond_says_stop): Declare.
13553 (gdbpy_breakpoint_has_cond): Declare.
13554 (void source_python_script_for_objfile): Delete.
13555 * python/python.c: #include "extension-priv.h".
13556 Delete inclusion of "observer.h".
13557 (extension_language_python): Moved here and renamed from
13558 script_language_python in py-auto-load.c.
13559 Redefined to be of type extension_language_defn.
13560 (python_extension_script_ops): New global.
13561 (python_extension_ops): New global.
13562 (struct python_env): New member previous_active.
13563 (restore_python_env): Call restore_active_ext_lang.
13564 (ensure_python_env): Call set_active_ext_lang.
13565 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13566 New arg extlang.
13567 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13568 New arg extlang.
13569 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13570 New arg extlang.
13571 (gdbpy_eval_from_control_command): Renamed from
13572 eval_python_from_control_command, made static. New arg extlang.
13573 (gdbpy_source_script) Renamed from source_python_script, made static.
13574 New arg extlang.
13575 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13576 result to int. New arg extlang.
13577 (gdbpy_source_objfile_script): Renamed from
13578 source_python_script_for_objfile, made static. New arg extlang.
13579 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13580 static. New args extlang, extlang_printers. Change result type to
13581 "void".
13582 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13583 static. New arg extlang. Rename arg printers to extlang_printers
13584 and change type to ext_lang_type_printers *.
13585 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13586 static. Replace argument arg with extlang, extlang_printers.
13587 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13588 (!HAVE_PYTHON, source_python_script): Delete.
13589 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13590 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13591 (!HAVE_PYTHON, start_type_printers): Delete.
13592 (!HAVE_PYTHON, apply_type_printers): Delete.
13593 (!HAVE_PYTHON, free_type_printers): Delete.
13594 (_initialize_python): Delete call to observer_attach_before_prompt.
13595 (finalize_python): Set/restore active extension language.
13596 (gdbpy_finish_initialization) Renamed from
13597 finish_python_initialization, made static. New arg extlang.
13598 (gdbpy_initialized): New function.
13599 * python/python.h: #include "extension.h". Delete #include
13600 "value.h", "mi/mi-cmds.h".
13601 (extension_language_python): Declare.
13602 (GDBPY_AUTO_FILE_NAME): Delete.
13603 (enum py_bt_status): Moved to extension.h and renamed to
13604 ext_lang_bt_status.
13605 (enum frame_filter_flags): Moved to extension.h.
13606 (enum py_frame_args): Moved to extension.h and renamed to
13607 ext_lang_frame_args.
13608 (finish_python_initialization): Delete.
13609 (eval_python_from_control_command): Delete.
13610 (source_python_script): Delete.
13611 (apply_val_pretty_printer): Delete.
13612 (apply_frame_filter): Delete.
13613 (preserve_python_values): Delete.
13614 (gdbpy_script_language_defn): Delete.
13615 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13616 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13617
13618 * auto-load.c: #include "extension.h".
13619 (GDB_AUTO_FILE_NAME): Delete.
13620 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13621 (script_language_gdb): Delete, moved to extension.c and renamed to
13622 extension_language_gdb.
13623 (source_gdb_script_for_objfile): Delete.
13624 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13625 (loaded_script): Change type of language member to
13626 struct extension_language_defn *.
13627 (init_loaded_scripts_info): Initialize
13628 unsupported_script_warning_printed.
13629 (maybe_add_script): Make static. Change type of language arg to
13630 struct extension_language_defn *.
13631 (clear_section_scripts): Reset unsupported_script_warning_printed.
13632 (auto_load_objfile_script_1): Rewrite to use extension language API.
13633 (auto_load_objfile_script): Make public. Remove support-compiled-in
13634 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13635 (source_section_scripts): Rewrite to use extension language API.
13636 (load_auto_scripts_for_objfile): Rewrite to use
13637 auto_load_scripts_for_objfile.
13638 (collect_matching_scripts_data): Change type of language member to
13639 struct extension_language_defn *.
13640 (auto_load_info_scripts): Change type of language arg to
13641 struct extension_language_defn *.
13642 (unsupported_script_warning_print): New function.
13643 (script_not_found_warning_print): Make static.
13644 (_initialize_auto_load): Rewrite construction of scripts-directory
13645 help.
13646 * auto-load.h (struct objfile): Add forward decl.
13647 (struct script_language): Delete.
13648 (struct auto_load_pspace_info): Add forward decl.
13649 (struct extension_language_defn): Add forward decl.
13650 (maybe_add_script): Delete.
13651 (auto_load_objfile_script): Declare.
13652 (script_not_found_warning_print): Delete.
13653 (auto_load_info_scripts): Update prototype.
13654 (auto_load_gdb_scripts_enabled): Declare.
13655 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13656 auto_load_python_scripts_enabled and made public.
13657 (script_language_python): Delete, moved to python.c.
13658 (gdbpy_script_language_defn): Delete.
13659 (info_auto_load_python_scripts): Update to use
13660 extension_language_python.
13661
13662 * breakpoint.c (condition_command): Replace call to
13663 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13664 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13665 with call to breakpoint_ext_lang_cond_says_stop.
13666 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13667 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13668 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13669 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13670 New arg slang.
13671 (local_setattro): Print name of extension language with existing
13672 stop condition.
13673
13674 * valprint.c (val_print, value_print): Update to call
13675 apply_ext_lang_val_pretty_printer.
13676 * cp-valprint.c (cp_print_value): Update call to
13677 apply_ext_lang_val_pretty_printer.
13678 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13679 (gdbpy_apply_val_pretty_printer): Renamed from
13680 apply_val_pretty_printer. New arg extlang.
13681 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13682
13683 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13684 extension language API.
13685 * cli/cli-script.c (execute_control_command): Update to call
13686 eval_ext_lang_from_control_command.
13687
13688 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13689 enum ext_lang_bt_status values. Update call to
13690 apply_ext_lang_frame_filter.
13691 (mi_cmd_stack_list_locals): Ditto.
13692 (mi_cmd_stack_list_args): Ditto.
13693 (mi_cmd_stack_list_variables): Ditto.
13694 * mi/mi-main.c: Delete #include "python/python-internal.h".
13695 Add #include "extension.h".
13696 (mi_cmd_list_features): Replace reference to python internal variable
13697 gdb_python_initialized with call to ext_lang_initialized_p.
13698
13699 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13700 Update to use enum ext_lang_frame_args. Update to call
13701 apply_ext_lang_frame_filter.
13702 * python/py-framefilter.c (extract_sym): Update to use enum
13703 ext_lang_bt_status.
13704 (extract_value, py_print_type, py_print_value): Ditto.
13705 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13706 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13707 (py_print_frame): Ditto.
13708 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13709 New arg extlang. Update to use enum ext_lang_bt_status.
13710
13711 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13712 finish_python_initialization. Replace with call to
13713 finish_ext_lang_initialization.
13714
13715 * typeprint.c (do_free_global_table): Update to call
13716 free_ext_lang_type_printers.
13717 (create_global_typedef_table): Update to call
13718 start_ext_lang_type_printers.
13719 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13720 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13721 (type_print_options): Change type of global_printers from "void *"
13722 to "struct ext_lang_type_printers *".
13723
13724 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13725 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13726 (gdbpy_preserve_values): Renamed from preserve_python_values.
13727 New arg extlang.
13728 (!HAVE_PYTHON, preserve_python_values): Delete.
13729
13730 * utils.c (quit_flag): Delete, moved to extension.c.
13731 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13732 extension.c.
13733
13734 * eval.c: Delete #include "python/python.h".
13735 * main.c: Delete #include "python/python.h".
13736
13737 * defs.h: Update comment.
13738
13739 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13740
13741 GDB 7.7 released.
13742
13743 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13744
13745 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13746 defined.
13747
13748 2014-02-05 Yao Qi <yao@codesourcery.com>
13749
13750 * remote.c (remote_pass_signals): Remove local 'buf' and use
13751 rs->buf.
13752 (remote_program_signals): Likewise.
13753
13754 2014-02-05 Yao Qi <yao@codesourcery.com>
13755
13756 * ctf.c: Include "inferior.h" and "gdbthread.h".
13757 (CTF_PID): A new macro.
13758 (ctf_open): Call inferior_appeared and add_thread_silent.
13759 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13760 (ctf_thread_alive): New function.
13761 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13762
13763 2014-02-05 Yao Qi <yao@codesourcery.com>
13764
13765 Revert this patch:
13766
13767 2013-05-24 Yao Qi <yao@codesourcery.com>
13768
13769 * tracepoint.c (TFILE_PID): Remove.
13770 (tfile_open): Don't add thread and inferior.
13771 (tfile_close): Don't set 'inferior_ptid'. Don't call
13772 exit_inferior_silent.
13773 (tfile_thread_alive): Remove.
13774 (init_tfile_ops): Don't set field 'to_thread_alive' of
13775 tfile_ops.
13776
13777 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13778
13779 * remote.c (remote_start_remote): Call remote_check_symbols even
13780 if only symbol-file (not file) has been given.
13781
13782 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13783
13784 * gdbarch.sh (skip_entrypoint): New callback.
13785 * gdbarch.c, gdbarch.h: Regenerate.
13786 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13787 * infrun.c (fill_in_stop_func): Likewise.
13788 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13789 (ppc_elfv2_elf_make_msymbol_special): New function.
13790 (ppc_elfv2_skip_entrypoint): Likewise.
13791 (ppc_linux_init_abi): Install them for ELFv2.
13792
13793 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13794
13795 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13796 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13797 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13798 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13799 structures returned in GPRs.
13800
13801 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13802
13803 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13804 offset to the stack parameter list for the ELFv2 ABI.
13805
13806 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13807
13808 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13809 set_gdbarch_convert_from_func_ptr_addr and
13810 set_gdbarch_elf_make_msymbol_special for ELFv1.
13811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13812 function descriptors on ELFv1.
13813 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13814 set up r12 at function entry.
13815
13816 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13817
13818 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13819 (struct gdbarch_tdep): New member elf_abi.
13820
13821 * rs6000-tdep.c: Include "elf/ppc64.h".
13822 (rs6000_gdbarch_init): Detect ELF ABI version.
13823
13824 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13825
13826 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13827 within a register pair holding a DFP 128-bit value on little-endian.
13828 (ppc64_sysv_abi_return_value_base): Likewise.
13829 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13830 (dfp_pseudo_register_write): Likewise.
13831
13832 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13833
13834 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13835 offset on little-endian when passing _Decimal32.
13836 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13837
13838 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13839
13840 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13841 of the overlapped FP register within the VSX register on little-
13842 endian platforms.
13843 (efpr_pseudo_register_write): Likewise.
13844
13845 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13846
13847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13848 offset on little-endian when passing small structures.
13849
13850 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13851
13852 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13853 (struct ppc64_sysv_argpos): New data structure.
13854 (ppc64_sysv_abi_push_float): Remove.
13855 (ppc64_sysv_abi_push_val): New function.
13856 (ppc64_sysv_abi_push_integer): Likewise.
13857 (ppc64_sysv_abi_push_freg): Likewise.
13858 (ppc64_sysv_abi_push_vreg): Likewise.
13859 (ppc64_sysv_abi_push_param): Likewise.
13860 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13861 (ppc64_sysv_abi_return_value_base): New function.
13862 (ppc64_sysv_abi_return_value): Refactor to use it.
13863
13864 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13865
13866 * NEWS: Document new target powerpc64le-*-linux*.
13867
13868 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13869
13870 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13871 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13872 core dumps.
13873 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13874 register set used in ELF core dumps. Add floating-point register set.
13875
13876 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13877
13878 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13879 dwarf2_to_gdb[] table using symbolic constants. Adjust
13880 penultimate entry from number representing the PC register
13881 to symbolic constant representing the MDR register. Add
13882 constant for the PC register to the end of the table.
13883
13884 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13885
13886 * bsd-kvm.c: Include <sys/param.h>
13887
13888 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13889
13890 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13891
13892 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13893
13894 * ada-lang.h (clear_ada_sym_cache): Delete.
13895
13896 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13897
13898 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13899
13900 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13901
13902 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13903 the sigreturn register save area only if the syscall is
13904 sigreturn.
13905
13906 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13907
13908 * valops.c (value_slice): Minor reformatting.
13909
13910 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13911
13912 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13913
13914 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13915
13916 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13917 New static globals.
13918 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13919 (ada_ignore_descriptive_types_p): New static global.
13920 (find_parallel_type_by_descriptive_type): Return immediately
13921 if ada_ignore_descriptive_types_p is set.
13922 (_initialize_ada_language): Register new commands "maintenance
13923 set ada", "maintenance show ada", "maintenance set ada
13924 ignore-descriptive-types" and "maintenance show ada
13925 ignore-descriptive-types".
13926 * NEWS: Add entry for new "maint ada set/show
13927 ignore-descriptive-types" commands.
13928
13929 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13930
13931 * record-btrace.c (record_btrace_close): Call btrace_teardown
13932 for all threads.
13933
13934 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13935
13936 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13937 "ui-out.h".
13938
13939 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13940
13941 * ada-typeprint (type_is_full_subrange_of_target_type):
13942 New function.
13943 (print_range): Add parameter bounds_prefered_p. If not set,
13944 try printing range types using the name of their base type.
13945 (print_range_type): Add parameter bounds_prefered_p.
13946 Use it in call to print_range.
13947 (print_array_type, ada_print_type): Update calls to print_range
13948 and print_range_type.
13949
13950 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13951
13952 * ada-typeprint.c (print_array_type, print_choices, print_range)
13953 (print_range_bound, print_dynamic_range_bound, print_range_type):
13954 Remove declaration.
13955
13956 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13957
13958 * ada-typeprint.c (print_range): Add missing empty line
13959 after local declaration.
13960
13961 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13962
13963 * ada-valprint.c (print_optional_low_bound): Get index_type's
13964 target type for as long as it is a TYPE_CODE_RANGE.
13965
13966 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13967
13968 * procfs.c (procfs_make_note_section): Remove assertion and
13969 associated comment.
13970
13971 2014-01-24 Yao Qi <yao@codesourcery.com>
13972
13973 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13974 * corelow.c (get_core_siginfo): Likewise.
13975
13976 2014-01-24 Yao Qi <yao@codesourcery.com>
13977
13978 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13979 ULONGEST. Don't check 'len' is negative.
13980 (remote_write_bytes): Change type of 'len' to ULONGEST.
13981
13982 2014-01-23 Tom Tromey <tromey@redhat.com>
13983
13984 PR python/16485:
13985 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13986 Handle exception from frame.block.
13987 (FrameVars.fetch_frame_locals): Likewise.
13988
13989 2014-01-23 Tom Tromey <tromey@redhat.com>
13990
13991 PR python/16487:
13992 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13993 on a NULL pointer. Move "goto error" to correct place.
13994
13995 2014-01-23 Tom Tromey <tromey@redhat.com>
13996
13997 PR python/16491:
13998 * python/py-framefilter.c (apply_frame_filter): Call
13999 ensure_python_env after computing gdbarch.
14000
14001 2014-01-23 Yao Qi <yao@codesourcery.com>
14002
14003 * target.c (raw_memory_xfer_partial): Change argument type
14004 from void * to gdb_byte *.
14005 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14006
14007 2014-01-22 Doug Evans <dje@google.com>
14008
14009 New gdbserver option --debug-format=timestamp.
14010 * NEWS: Mention it.
14011
14012 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14013
14014 * syscalls/s390x-linux.xml: New file.
14015 * syscalls/s390-linux.xml: New file.
14016 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14017 (XML_SYSCALL_FILENAME_S390X): Likewise.
14018 (op_svc): New enum value for SVC opcode.
14019 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14020 (s390_linux_get_syscall_number): New function.
14021 (s390_gdbarch_init): Register '*get_syscall_number' and the
14022 syscall xml file name.
14023 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14024 "s390-linux.xml" and "s390x-linux.xml".
14025 * NEWS: Announce new feature.
14026
14027 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14028
14029 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14030
14031 2014-01-22 Pedro Alves <palves@redhat.com>
14032
14033 * xtensa-config.c: Include defs.h.
14034
14035 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14036
14037 * common/common-utils.h: Add "ARI:" comment beside __func__
14038 reference.
14039
14040 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14041
14042 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14043 documentation a bit.
14044
14045 2014-01-21 Roland McGrath <mcgrathr@google.com>
14046
14047 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14048 * configure: Regenerate.
14049 * aclocal.m4: Regenerate.
14050 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14051 New substituted variables.
14052 (install-strip): New target.
14053 (INSTALL_SCRIPT): New substituted variable.
14054 (FLAGS_TO_PASS): Add it.
14055 (install-only): Use $(INSTALL_SCRIPT) rather than
14056 $(INSTALL_PROGRAM) for gcore.
14057
14058 2014-01-20 Tom Tromey <tromey@redhat.com>
14059
14060 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14061 together.
14062
14063 2014-01-20 Tom Tromey <tromey@redhat.com>
14064
14065 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14066 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14067 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14068 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14069 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14070 (struct cmd_list_element) <flags>: Remove.
14071 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14072 doc_allocated>: New fields.
14073 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14074 bitfields.
14075 * maint.c (maintenance_do_deprecate): Update.
14076 * top.c (execute_command): Update.
14077
14078 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14079
14080 * xtensa-linux-nat.c: Include asm/ptrace.h.
14081
14082 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14083
14084 * Makefile.in (SFILES): Add d-support.c.
14085 (COMMON_OBS): Add d-support.o.
14086 * d-lang.h (d_parse_symbol): Add comment, now defined in
14087 d-support.c.
14088 * d-lang.c (parse_call_convention)
14089 (parse_attributes, parse_function_types)
14090 (parse_function_args, parse_type, parse_identifier)
14091 (call_convention_p, d_parse_symbol): Move functions to ...
14092 * d-support.c: ... New file.
14093
14094 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14095
14096 * d-lang.h (d_parse_symbol): Add declaration.
14097 * d-lang.c (extract_identifiers)
14098 (extract_type_info): Remove functions.
14099 (parse_call_convention, parse_attributes)
14100 (parse_function_types, parse_function_args)
14101 (parse_type, parse_identifier, call_convention_p)
14102 (d_parse_symbol): New functions.
14103 (d_demangle): Use d_parse_symbol to demangle D symbols.
14104
14105 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14106
14107 * d-lang.h (struct builtin_d_type): New data type.
14108 (builtin_d_type): Add declaration.
14109 * d-lang.c (d_language_arch_info, build_d_types)
14110 (builtin_d_type): New functions.
14111 (enum d_primitive_types): New data type.
14112 (d_language_defn): Change c_language_arch_info to
14113 d_language_arch_info.
14114 (d_type_data): New static variable.
14115 (_initialize_d_language): Initialize d_type_data.
14116
14117 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14118
14119 * d-lang.h (d_main_name): Add declaration.
14120 * d-lang.c (d_main_name): New function.
14121 * symtab.c (find_main_name): Add call to d_main_name.
14122
14123 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14124
14125 * d-lang.c (d_language_defn): Change macro_expansion_c to
14126 macro_expansion_no.
14127
14128 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14129
14130 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14131
14132 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14133
14134 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14135 gdb_exception" declaration.
14136 * remote.c (getpkt_or_notif_sane): Likewise.
14137
14138 2014-01-17 Doug Evans <dje@google.com>
14139
14140 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14141 function, contents of dirnames_to_char_ptr_vec_append moved here.
14142 (delim_string_to_char_ptr_vec): New function.
14143 (dirnames_to_char_ptr_vec_append): Rewrite.
14144 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14145
14146 2014-01-17 Doug Evans <dje@google.com>
14147
14148 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14149 and moved here ...
14150 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14151 #include "common-utils.h".
14152 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14153 * common/vec.h (VEC_ASSERT_PASS): Update.
14154 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14155 (MACH_CHECK_ERROR): Update.
14156
14157 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14158
14159 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14160 comments.
14161 * gdbarch.h: Regenerate.
14162
14163 2014-01-16 Tom Tromey <tromey@redhat.com>
14164
14165 * value.c (struct value) <regnum>: Move earlier.
14166
14167 2014-01-16 Tom Tromey <tromey@redhat.com>
14168
14169 * remote.c (extended_remote_create_inferior): Rename from
14170 extended_remote_create_inferior_1. Add "ops" argument. Remove
14171 old implementation.
14172
14173 2014-01-16 Pedro Alves <palves@redhat.com>
14174
14175 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14176 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14177 the backchain.
14178
14179 2014-01-16 Doug Evans <dje@google.com>
14180
14181 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14182
14183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14184
14185 * btrace.h (btrace_thread_flag): New.
14186 (struct btrace_thread_info) <flags>: New.
14187 * record-btrace.c (record_btrace_resume_thread)
14188 (record_btrace_find_thread_to_move, btrace_step_no_history)
14189 (btrace_step_stopped, record_btrace_start_replaying)
14190 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14191 (record_btrace_find_resume_thread): New.
14192 (record_btrace_resume, record_btrace_wait): Extend.
14193 (record_btrace_can_execute_reverse): New.
14194 (record_btrace_open): Fail in non-stop mode.
14195 (record_btrace_set_replay): Split into this, ...
14196 (record_btrace_stop_replaying): ... this, ...
14197 (record_btrace_clear_histories): ... and this.
14198 (init_record_btrace_ops): Init to_can_execute_reverse.
14199 * NEWS: Announce it.
14200
14201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14202
14203 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14204 (forward_target_decr_pc_after_break)
14205 (target_decr_pc_after_break): New.
14206 * target.c (forward_target_decr_pc_after_break)
14207 (target_decr_pc_after_break): New.
14208 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14209 instead of gdbarch_decr_pc_after_break.
14210 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14211 instead of gdbarch_decr_pc_after_break.
14212 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14213 instead of gdbarch_decr_pc_after_break.
14214 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14215 instead of gdbarch_decr_pc_after_break.
14216 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14217 instead of gdbarch_decr_pc_after_break.
14218 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14219 instead of gdbarch_decr_pc_after_break.
14220
14221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14222
14223 * btrace.c: Include regcache.h.
14224 (btrace_add_pc): New.
14225 (btrace_enable): Call btrace_add_pc.
14226 (btrace_is_empty): New.
14227 * btrace.h (btrace_is_empty): New.
14228 * record-btrace.c (require_btrace, record_btrace_info): Call
14229 btrace_is_empty.
14230
14231 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14232
14233 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14234 Support delta reads.
14235 (linux_disable_btrace): Change return type.
14236 * common/linux-btrace.h (linux_read_btrace): Change parameters
14237 and return type to allow error reporting. Update users.
14238 (linux_disable_btrace): Change return type. Update users.
14239 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14240 New.
14241 (btrace_error): New.
14242 (btrace_block) <begin>: Comment on BEGIN == 0.
14243 * btrace.c (btrace_compute_ftrace): Start from the end of
14244 the current trace.
14245 (btrace_stitch_trace, btrace_clear_history): New.
14246 (btrace_fetch): Read delta trace, return if replaying.
14247 (btrace_clear): Move clear history code to btrace_clear_history.
14248 (parse_xml_btrace): Throw an error if parsing failed.
14249 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14250 and return type to allow error reporting.
14251 (target_read_btrace): Change parameters and return type to allow
14252 error reporting.
14253 * target.c (target_read_btrace): Update.
14254 * remote.c (remote_read_btrace): Support delta reads. Pass
14255 errors on.
14256 * NEWS: Announce it.
14257
14258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14259
14260 * record.h (record_btrace_frame_unwind)
14261 (record_btrace_tailcall_frame_unwind): New declarations.
14262 * dwarf2-frame: Include record.h
14263 (dwarf2_frame_cfa): Throw an error for btrace frames.
14264 * record-btrace.c: Include hashtab.h.
14265 (btrace_get_bfun_name): New.
14266 (btrace_call_history): Call btrace_get_bfun_name.
14267 (struct btrace_frame_cache): New.
14268 (bfcache): New.
14269 (bfcache_hash, bfcache_eq, bfcache_new): New.
14270 (btrace_get_frame_function): New.
14271 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14272 (record_btrace_frame_this_id): Compute own id.
14273 (record_btrace_frame_prev_register): Provide PC, throw_error
14274 for all other registers.
14275 (record_btrace_frame_sniffer): Detect btrace frames.
14276 (record_btrace_tailcall_frame_sniffer): New.
14277 (record_btrace_frame_dealloc_cache): New.
14278 (record_btrace_frame_unwind): Add new functions.
14279 (record_btrace_tailcall_frame_unwind): New.
14280 (_initialize_record_btrace): Allocate cache.
14281 * btrace.c (btrace_clear): Call reinit_frame_cache.
14282 * NEWS: Announce it.
14283
14284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14285
14286 * record-btrace.c (record_btrace_set_replay)
14287 (record_btrace_goto_begin, record_btrace_goto_end)
14288 (record_btrace_goto): New.
14289 (init_record_btrace_ops): Initialize them.
14290 * NEWS: Announce it.
14291
14292 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14293
14294 * record-btrace.c (record_btrace_find_new_threads)
14295 (record_btrace_thread_alive): New.
14296 (init_record_btrace_ops): Initialize to_find_new_threads and
14297 to_thread_alive.
14298
14299 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14300
14301 * record-btrace.c (record_btrace_resume): New.
14302 (record_btrace_wait): New.
14303 (init_record_btrace_ops): Initialize to_wait and to_resume.
14304
14305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14306
14307 * record-btrace.c (record_btrace_xfer_partial)
14308 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14309 (record_btrace_allow_memory_access): New.
14310 (init_record_btrace_ops): Initialize new methods.
14311 * target.c (raw_memory_xfer_partial): Bail out if target reports
14312 that this memory is not available.
14313
14314 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14315
14316 * target.h (target_ops) <to_insert_breakpoint>
14317 <to_remove_breakpoint>: Add target_ops parameter.
14318 (forward_target_insert_breakpoint): New.
14319 (forward_target_remove_breakpoint): New.
14320 (memory_remove_breakpoint, memory_insert_breakpoint):
14321 Add target_ops parameter.
14322 * target.c (target_insert_breakpoint): Split into this and ...
14323 (forward_target_insert_breakpoint): ... this.
14324 (target_remove_breakpoint): Split into this and ...
14325 (forward_target_remove_breakpoint): ... this.
14326 (debug_to_insert_breakpoint): Add target_ops parameter.
14327 Call forward_target_insert_breakpoint.
14328 (debug_to_remove_breakpoint): Add target_ops parameter.
14329 Call forward_target_remove_breakpoint.
14330 (update_current_target): Do not inherit or default to_insert_breakpoint
14331 and to_remove_breakpoint.
14332 * corelow.c (ignore): Add target_ops parameter.
14333 * exec.c (ignore): Add target_ops parameter.
14334 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14335 Add target_ops parameter.
14336 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14337 Add target_ops parameter.
14338 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14339 Add target_ops parameter.
14340 * record-full.c (record_full_beneath_to_insert_breakpoint)
14341 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14342 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14343 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14344 (record_full_core_remove_breakpoint): Add target_ops parameter.
14345 Update users.
14346 (record_full_beneath_to_insert_breakpoint_ops)
14347 (record_full_beneath_to_remove_breakpoint_ops)
14348 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14349 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14350 tmp_to_remove_breakpoint_ops,
14351 record_full_beneath_to_insert_breakpoint_ops, and
14352 record_full_beneath_to_remove_breakpoint_ops.
14353 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14354 (m32r_remove_breakpoint): Add target_ops parameter.
14355 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14356 Add target_ops parameter.
14357 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14358 Add target_ops parameter.
14359
14360 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14361 Markus Metzger <markus.t.metzger@intel.com>
14362
14363 * record-btrace.c: Include frame-unwind.h.
14364 (record_btrace_frame_unwind_stop_reason)
14365 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14366 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14367 New.
14368 (init_record_btrace_ops): Install it.
14369
14370 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14371
14372 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14373 get_prev_frame_1.
14374
14375 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14376
14377 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14378 earlier.
14379
14380 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14381
14382 * frame-unwind.c: Include target.h.
14383 (frame_unwind_try_unwinder): New function with code from ...
14384 (frame_unwind_find_by_frame): ... here. New variable
14385 unwinder_from_target, call also target_get_unwinder)
14386 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14387 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14388 * target.h (struct target_ops): New fields to_get_unwinder and
14389 to_get_tailcall_unwinder.
14390 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14391
14392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14393
14394 * record-btrace.c (record_btrace_fetch_registers)
14395 (record_btrace_store_registers)
14396 (record_btrace_to_prepare_to_store): New.
14397 (init_record_btrace_ops): Add the above.
14398
14399 2014-01-16 Tom Tromey <tromey@redhat.com>
14400
14401 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14402 * target.h (struct target_ops) <to_prepare_to_store>: Add
14403 argument.
14404 (target_prepare_to_store): Add argument.
14405 * target.c (debug_to_prepare_to_store): Add argument.
14406 (update_current_target): Update.
14407 * remote.c (remote_prepare_to_store): Add 'self' argument.
14408 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14409 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14410 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14411 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14412 argument.
14413 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14414 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14415 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14416 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14417 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14418
14419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14420
14421 * btrace.h (replay) <replay>: New.
14422 (btrace_is_replaying): New.
14423 * btrace.c (btrace_clear): Free replay iterator.
14424 (btrace_is_replaying): New.
14425 * record-btrace.c (record_btrace_is_replaying): New.
14426 (record_btrace_info): Print insn number if replaying.
14427 (record_btrace_insn_history): Start at replay position.
14428 (record_btrace_call_history): Start at replay position.
14429 (init_record_btrace_ops): Init to_record_is_replaying.
14430
14431 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14432
14433 * record-btrace.c (record_btrace_insn_history_range): Include
14434 end.
14435 (record_btrace_insn_history_from): Adjust range.
14436 (record_btrace_call_history_range): Include
14437 end.
14438 (record_btrace_call_history_from): Adjust range.
14439 * NEWS: Announce changes.
14440
14441 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14442
14443 * record.h (enum record_print_flag)
14444 <record_print_indent_calls>: New.
14445 * record.c (get_call_history_modifiers): Recognize /c modifier.
14446 (_initialize_record): Document /c modifier.
14447 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14448 Reorder fields. Optionally indent the function name. Update
14449 all users.
14450 * NEWS: Announce changes.
14451
14452 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14453
14454 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14455
14456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14457
14458 * btrace.c (ftrace_new_function): Start counting at one.
14459 * record-btrace.c (record_btrace_info): Adjust number of calls
14460 and insns.
14461 * NEWS: Announce it.
14462
14463 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14464
14465 * record-btrace.c (btrace_call_history_insn_range): Print
14466 insn range as [begin, end].
14467
14468 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14469
14470 * btrace.h (struct btrace_func_link): New.
14471 (enum btrace_function_flag): New.
14472 (struct btrace_inst): Rename to ...
14473 (struct btrace_insn): ...this. Update all users.
14474 (struct btrace_func) <ibegin, iend>: Remove.
14475 (struct btrace_func_link): New.
14476 (struct btrace_func): Rename to ...
14477 (struct btrace_function): ...this. Update all users.
14478 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14479 (number, level, flags>: New.
14480 (struct btrace_insn_iterator): Rename to ...
14481 (struct btrace_insn_history): ...this.
14482 Update all users.
14483 (struct btrace_insn_iterator, btrace_call_iterator): New.
14484 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14485 (struct btrace_target_info) <begin, end, level>
14486 <insn_history, call_history>: New.
14487 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14488 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14489 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14490 (btrace_call_number, btrace_call_begin, btrace_call_end)
14491 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14492 (btrace_find_function_by_number, btrace_set_insn_history)
14493 (btrace_set_call_history): New.
14494 * btrace.c (btrace_init_insn_iterator)
14495 (btrace_init_func_iterator, compute_itrace): Remove.
14496 (ftrace_print_function_name, ftrace_print_filename)
14497 (ftrace_skip_file): Change
14498 parameter to const.
14499 (ftrace_init_func): Remove.
14500 (ftrace_debug): Use new btrace_function fields.
14501 (ftrace_function_switched): Also consider gaining and
14502 losing symbol information).
14503 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14504 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14505 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14506 New.
14507 (ftrace_new_function): Move. Remove debug print.
14508 (ftrace_update_lines, ftrace_update_insns): New.
14509 (ftrace_update_function): Check for call, ret, and jump.
14510 (compute_ftrace): Renamed to ...
14511 (btrace_compute_ftrace): ...this. Rewritten to compute call
14512 stack.
14513 (btrace_fetch, btrace_clear): Updated.
14514 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14515 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14516 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14517 (btrace_call_number, btrace_call_begin, btrace_call_end)
14518 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14519 (btrace_find_function_by_number, btrace_set_insn_history)
14520 (btrace_set_call_history): New.
14521 * record-btrace.c (require_btrace): Use new btrace thread
14522 info fields.
14523 (record_btrace_info, btrace_insn_history)
14524 (record_btrace_insn_history, record_btrace_insn_history_range):
14525 Use new btrace thread info fields and new iterator.
14526 (btrace_func_history_src_line): Rename to ...
14527 (btrace_call_history_src_line): ...this. Use new btrace
14528 thread info fields.
14529 (btrace_func_history): Rename to ...
14530 (btrace_call_history): ...this. Use new btrace thread info
14531 fields and new iterator.
14532 (record_btrace_call_history, record_btrace_call_history_range):
14533 Use new btrace thread info fields and new iterator.
14534
14535 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14536
14537 * frame.h (frame_id_build_unavailable_stack_special): New.
14538 * frame.c (frame_id_build_unavailable_stack_special): New.
14539
14540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14541
14542 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14543 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14544 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14545 to gdbarch.
14546 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14547 (i386_insn_is_jump, i386_jmp_p): New.
14548 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14549 insn_is_jump to gdbarch.
14550 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14551 * gdbarch.h: Regenerated.
14552 * gdbarch.c: Regenerated.
14553 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14554 (default_insn_is_jump): New.
14555 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14556 (default_insn_is_jump): New.
14557
14558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14559
14560 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14561 Change to ...
14562 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14563 (btrace_read_type) <btrace_read_new>: Change to ...
14564 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14565
14566 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14567
14568 * common/linux-btrace.c (linux_read_btrace): Free trace from
14569 previous iteration.
14570
14571 2014-01-15 Doug Evans <dje@google.com>
14572
14573 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14574 uint32_t.
14575
14576 2014-01-15 Tom Tromey <tromey@redhat.com>
14577
14578 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14579 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14580 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14581 (set_objfile_main_name): New function.
14582 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14583 language_of_main>: New fields.
14584 (set_objfile_main_name): Declare.
14585 * symtab.c (find_main_name): Loop over objfiles to find the main
14586 name and language.
14587 (set_main_name): Now static.
14588 (get_main_info): Add comment.
14589 * symtab.h (set_main_name): Don't declare.
14590
14591 2014-01-15 Tom Tromey <tromey@redhat.com>
14592
14593 * symtab.c (main_progspace_key): New global.
14594 (struct main_info): New.
14595 (name_of_main, language_of_main): Remove.
14596 (get_main_info, main_info_cleanup): New function.
14597 (set_main_name, main_name, main_language): Use get_main_info.
14598 (_initialize_symtab): Initialize main_progspace_key.
14599
14600 2014-01-15 Tom Tromey <tromey@redhat.com>
14601
14602 * dbxread.c (process_one_symbol): Update.
14603 * dwarf2read.c (read_partial_die): Update.
14604 * symfile.c (set_initial_language): Call main_language.
14605 * symtab.c (language_of_main): Now static.
14606 (set_main_name): Add 'lang' parameter.
14607 (find_main_name): Update.
14608 (main_language): New function.
14609 (symtab_observer_executable_changed): Update.
14610 * symtab.h (set_main_name): Update.
14611 (language_of_main): Remove.
14612 (main_language): Declare.
14613
14614 2014-01-15 Tom Tromey <tromey@redhat.com>
14615
14616 * symfile.c (init_entry_point_info): Use new "initialized" field.
14617 Update.
14618 * objfiles.h (struct entry_point) <initialized>: New field.
14619 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14620 (struct objfile) <ei>: ...here. Remove.
14621 * objfiles.c (entry_point_address_query): Update.
14622
14623 2014-01-15 Tom Tromey <tromey@redhat.com>
14624
14625 * objfiles.c (entry_point_address_query): Relocate entry point
14626 address.
14627 (objfile_relocate1): Do not relocate entry point address.
14628 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14629 <the_bfd_section_index>: New field.
14630 * symfile.c (init_entry_point_info): Find the entry point's
14631 section.
14632
14633 2014-01-15 Tom Tromey <tromey@redhat.com>
14634
14635 * solib-frv.c (enable_break): Use entry_point_address_query.
14636
14637 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14638
14639 * NEWS: Add note on improved process record-replay on
14640 arm*-linux* targets.
14641
14642 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14643
14644 * arm-tdep.c (enum arm_record_result): New enum.
14645 (arm_record_unsupported_insn): New function.
14646 (arm_record_coproc_data_proc): Removed.
14647 (thumb2_record_ld_st_multiple): New function.
14648 (thumb2_record_ld_st_dual_ex_tbb): New function.
14649 (thumb2_record_data_proc_sreg_mimm): New function.
14650 (thumb2_record_ps_dest_generic): New function.
14651 (thumb2_record_branch_misc_cntrl): New function.
14652 (thumb2_record_str_single_data): New function.
14653 (thumb2_record_ld_mem_hints): New function.
14654 (thumb2_record_ld_word): New function.
14655 (thumb2_record_lmul_lmla_div): New function.
14656 (thumb2_record_decode_insn_handler): New function.
14657 (decode_insn): Add thumb32 instruction handlers.
14658
14659 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14660
14661 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14662 (struct arm_linux_record_tdep): Declare.
14663 (arm_canonicalize_syscall): New function.
14664 (arm_all_but_pc_registers_record): New function.
14665 (arm_linux_syscall_record): New function.
14666 (arm_linux_init_abi): Add syscall recording constructs.
14667 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14668 decoding. (arm_record_coproc_data_proc): Update arm syscall
14669 decoding.
14670 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14671 <arm_syscall_record>: New field.
14672 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14673 gdb_target_obs.
14674
14675 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14676
14677 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14678 register for push instruction recording.
14679
14680 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14681
14682 * arm-tdep.c (thumb_record_misc): Update to correct logical
14683 error while recording ldm, ldmia and pop instructions.
14684
14685 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14686
14687 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14688
14689 2014-01-15 Pedro Alves <palves@redhat.com>
14690
14691 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14692 (go32_resume, go32_fetch_registers, store_register)
14693 (go32_store_registers, go32_prepare_to_store)
14694 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14695 (go32_create_inferior, go32_can_run, go32_terminal_init)
14696 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14697 declarations.
14698
14699 2014-01-15 Tom Tromey <tromey@redhat.com>
14700
14701 * target.h (async_callback_ftype): New typedef.
14702 (struct target_ops) <to_async>: Use it.
14703
14704 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14705
14706 * python/py-value.c (get_field_type): Remove unnecessary curly
14707 braces for single-statement if block.
14708
14709 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14710
14711 * python/py-type.c (convert_field): Add missing empty line
14712 after declarations.
14713
14714 2014-01-14 Doug Evans <dje@google.com>
14715
14716 * symfile.h (expand_symtabs_matching): Renamed from
14717 expand_partial_symbol_names. Update prototype.
14718 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14719 * symfile.c (expand_symtabs_matching): Renamed from
14720 expand_partial_symbol_names. New args file_matcher, kind.
14721 Rename arg fun to symbol_matcher.
14722 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14723 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14724 ada_expand_partial_symbol_name.
14725 (ada_make_symbol_completion_list): Update to call
14726 expand_symtabs_matching.
14727 (ada_add_global_exceptions): Call expand_symtabs_matching.
14728 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14729 call map_symbol_filenames.
14730 * symtab.c (sources_info): Update to call map_symbol_filenames.
14731 (search_symbols): Call expand_symtabs_matching.
14732 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14733 (default_make_symbol_completion_list_break_on): Update to call
14734 expand_symtabs_matching.
14735 (make_source_files_completion_list): Update to call
14736 map_symbol_filenames.
14737
14738 2014-01-14 Doug Evans <dje@google.com>
14739
14740 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14741 (expand_symtabs_symbol_matcher_ftype): New typedef.
14742 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14743 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14744 * symfile.c (expand_partial_symbol_names): Update to use
14745 expand_symtabs_symbol_matcher_ftype.
14746 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14747 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14748 Arg name_matcher renamed to symbol_matcher.
14749 * psymtab.c (recursively_search_psymtabs): Update to use
14750 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14751 sym_matcher.
14752 (expand_symtabs_matching_via_partial): Update to use
14753 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14754 Arg name_matcher renamed to symbol_matcher.
14755
14756 2014-01-14 Doug Evans <dje@google.com>
14757
14758 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14759 (map_partial_symbol_filenames): Ditto.
14760 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14761 (map_partial_symbol_filenames): Ditto.
14762 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14763 (map_partial_symbol_filenames): Ditto.
14764 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14765 (map_partial_symbol_filenames): Ditto.
14766 * symtab.c: Delete #include "psymtab.h".
14767
14768 2014-01-14 Pedro Alves <palves@redhat.com>
14769 Tom Tromey <tromey@redhat.com>
14770
14771 * infrun.c (use_displaced_stepping): Use find_record_target
14772 instead of RECORD_IS_USED.
14773 (adjust_pc_after_break): Use record_full_is_used instead of
14774 RECORD_IS_USED.
14775 * record-btrace.c (record_btrace_open): Call record_preopen
14776 instead of checking RECORD_IS_USED.
14777 * record-full.c (record_full_shortname)
14778 (record_full_core_shortname): New globals.
14779 (record_full_is_used): New function.
14780 (find_full_open): Call record_preopen instead of checking
14781 RECORD_IS_USED.
14782 (init_record_full_ops): Set the target's shortname to
14783 record_full_shortname.
14784 (init_record_full_core_ops): Set the target's shortname to
14785 record_full_core_shortname.
14786 * record-full.h (record_full_is_used): Declare.
14787 * record.c (find_record_target): Make extern.
14788 (record_preopen): New function.
14789 * record.h (RECORD_IS_USED): Delete macro.
14790 (find_record_target, record_preopen): Declare functions.
14791
14792 2014-01-14 Yao Qi <yao@codesourcery.com>
14793
14794 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14795 'len''s type to ULONGEST.
14796 (core_xfer_shared_libraries_aix): Likewise.
14797 * gdbarch.c, gdbarch.h: Regenerated.
14798 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14799 Change type of 'len' to ULONGEST.
14800 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14801 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14802
14803 2014-01-14 Yao Qi <yao@codesourcery.com>
14804
14805 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14806 type of 'len' to ULONGEST.
14807 (linux_xfer_osdata_processgroups): Likewise.
14808 (linux_xfer_osdata_threads): Likewise.
14809 (linux_xfer_osdata_fds): Likewise.
14810 (linux_xfer_osdata_isockets): Likewise.
14811 (linux_xfer_osdata_shm): Likewise.
14812 (linux_xfer_osdata_sem): Likewise.
14813 (linux_xfer_osdata_msg): Likewise.
14814 (linux_common_xfer_osdata): Likewise.
14815 (struct osdata_type) <getter>: Likewise.
14816 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14817 the declaration.
14818
14819 2014-01-14 Yao Qi <yao@codesourcery.com>
14820
14821 * target.h (target_xfer_partial_ftype): Update.
14822 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14823 ULONGEST.
14824 * aix-thread.c (aix_thread_xfer_partial): Change type of
14825 argument 'len' to ULONGEST.
14826 * auxv.c (procfs_xfer_auxv): Likewise.
14827 (ld_so_xfer_auxv): Likewise.
14828 (memory_xfer_auxv): Likewise.
14829 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14830 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14831 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14832 * corelow.c (core_xfer_partial): Likewise.
14833 * ctf.c (ctf_xfer_partial): Likewise.
14834 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14835 '%u'.
14836 (darwin_read_dyld_info): Likewise.
14837 (darwin_xfer_partial): Likewise.
14838 * exec.c (section_table_xfer_memory_partial): Likewise.
14839 (exec_xfer_partial): Likewise.
14840 * exec.h (section_table_xfer_memory_partial): Update
14841 declaration.
14842 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14843 instead of plongest.
14844 (gnu_xfer_partial): Likewise.
14845 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14846 (ia64_hpux_xfer_solib_got): Likewise.
14847 (ia64_hpux_xfer_partial): Likewise.
14848 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14849 * inf-ptrace.c (inf_ptrace_xfer_partial):
14850 * inf-ttrace.c (inf_ttrace_xfer_partial):
14851 * linux-nat.c (linux_xfer_siginfo): Likewise.
14852 (linux_nat_xfer_partial): Likewise.
14853 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14854 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14855 * monitor.c (monitor_xfer_memory): Likewise.
14856 (monitor_xfer_partial): Likewise.
14857 * procfs.c (procfs_xfer_partial): Likewise.
14858 * record-full.c (record_full_xfer_partial): Likewise.
14859 (record_full_core_xfer_partial): Likewise.
14860 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14861 instead of plongest.
14862 (gdbsim_xfer_partial): Likewise.
14863 * remote.c (remote_xfer_partial): Likewise.
14864 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14865 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14866 declaration.
14867 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14868 (rs6000_xfer_shared_libraries): Likewise.
14869 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14870 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14871 (sparc_xfer_partial): Likewise.
14872 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14873 (spu_xfer_partial): Likewise.
14874 * spu-multiarch.c (spu_xfer_partial): Likewise.
14875 * target.c (target_read_live_memory): Likewise.
14876 (memory_xfer_live_readonly_partial): Likewise.
14877 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14878 (target_xfer_partial, default_xfer_partial): Likewise.
14879 (current_xfer_partial): Likewise.
14880 * tracepoint.c (tfile_xfer_partial): Likewise.
14881 * windows-nat.c (windows_xfer_memory): Likewise. Call
14882 pulongest instead of plongest.
14883 (windows_xfer_partial): Likewise.
14884 (windows_xfer_shared_libraries): Likewise.
14885
14886 2014-01-14 Yao Qi <yao@codesourcery.com>
14887
14888 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14889 target_xfer_partial_ftype.
14890
14891 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14892
14893 PR python/15464
14894 PR python/16113
14895 * valops.c (value_struct_elt_bitpos): New function
14896 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14897 object to 'None' if the field name is an empty string ("").
14898 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14899 attribute to look for a field when 'name' is 'None'.
14900 (get_field_type): New function
14901
14902 2014-01-13 Doug Evans <dje@google.com>
14903
14904 PR symtab/16426
14905 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14906 (try_open_dwop_file): Ditto.
14907 * gdb_bfd.c: #include "vec.h".
14908 (bfdp): New typedef.
14909 (struct gdb_bfd_data): New member included_bfds.
14910 (gdb_bfd_unref): Unref all included bfds.
14911 (gdb_bfd_record_inclusion): New function.
14912 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14913
14914 2014-01-13 Tom Tromey <tromey@redhat.com>
14915
14916 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14917
14918 2014-01-13 Tom Tromey <tromey@redhat.com>
14919
14920 * defs.h (use_windows): Remove.
14921 * gdb.c (main): Update.
14922 * main.c (captured_main, gdb_main): Update.
14923 * main.h (struct captured_main_args) <use_windows>: Remove.
14924 * top.c (use_windows): Remove.
14925
14926 2014-01-13 Tom Tromey <tromey@redhat.com>
14927
14928 * defs.h (deprecated_flush_hook): Remove.
14929
14930 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14931
14932 PR threads/16216
14933 * linux-thread-db.c (try_thread_db_load): Add parameter
14934 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14935 (try_thread_db_load_from_pdir_1): Move it there from here.
14936 (try_thread_db_load_from_sdir): Update caller.
14937 (try_thread_db_load_from_dir): Move it there from here.
14938
14939 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14940
14941 * regformats/regdat.sh: Always rewrite the register file.
14942
14943 2014-01-13 Pedro Alves <palves@redhat.com>
14944
14945 * Makefile.in (CHECK_HEADERS): New variable.
14946 (check-headers:): New rule.
14947
14948 2014-01-13 Tom Tromey <tromey@redhat.com>
14949
14950 * cli/cli-setshow.c (do_set_command): Update.
14951 * defs.h (deprecated_set_hook): Remove.
14952 * top.c (deprecated_set_hook): Remove.
14953
14954 2014-01-13 Pedro Alves <palves@redhat.com>
14955
14956 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14957 the tracepoint if the PC is a pseudo-register.
14958
14959 2014-01-13 Tom Tromey <tromey@redhat.com>
14960
14961 * defs.h (XCALLOC): Remove.
14962 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14963 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14964 * dwarf2loc.c (allocate_piece_closure): Likewise.
14965 * elfread.c (elf_symfile_segments): Likewise.
14966 (elf_symfile_segments): Likewise.
14967 * gdbtypes.c (copy_type_recursive): Likewise.
14968 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14969 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14970 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14971 XCALLOC.
14972 * mt-tdep.c (mt_gdbarch_init): Likewise.
14973 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14974 XCALLOC.
14975 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14976 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14977 * registry.c (registry_alloc_data): Likewise.
14978 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14979 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14980 * serial.c (serial_fdopen_ops): Likewise.
14981 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14982 XCALLOC.
14983 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14984 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14985 not XCALLOC.
14986
14987 2014-01-13 Tom Tromey <tromey@redhat.com>
14988
14989 * defs.h (XMALLOC): Remove.
14990 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14991 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14992 * cli-out.c (struct ui_out *): Likewise.
14993 * cli/cli-dump.c (add_dump_command): Likewise.
14994 (add_dump_command): Likewise.
14995 * complaints.c (get_complaints): Likewise.
14996 (find_complaint): Likewise.
14997 * dwarf2-frame.c (execute_cfa_program): Likewise.
14998 * dwarf2read.c (abbrev_table_read_table): Likewise.
14999 * gdbarch.sh: Likewise.
15000 * gdbarch.c: Rebuild.
15001 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15002 * interps.c (interp_new): Likewise.
15003 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15004 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15005 * mi/mi-console.c (mi_console_file_new): Likewise.
15006 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15007 * mi/mi-out.c (mi_out_new): Likewise.
15008 * mi/mi-parse.c (mi_parse): Likewise.
15009 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15010 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15011 * observer.c (xalloc_observer_list_node): Likewise.
15012 * regcache.c (regcache_xmalloc_1): Likewise.
15013 * reggroups.c (reggroup_new): Likewise.
15014 (_initialize_reggroup): Likewise.
15015 * registry.c (register_data_with_cleanup): Likewise.
15016 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15017 * ser-base.c (serial_ttystate): Likewise.
15018 * ser-mingw.c (make_pipe_state): Likewise.
15019 * ser-pipe.c (pipe_open): Likewise.
15020 * serial.c (serial_open): Likewise.
15021 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15022 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15023 (tui_alloc_win_info): Likewise.
15024 (tui_add_content_elements): Likewise.
15025 * tui/tui-file.c (tui_file_new): Likewise.
15026 * tui/tui-out.c (tui_out_new): Likewise.
15027 * ui-file.c (mem_file_new): Likewise.
15028 * ui-out.c (push_level): Likewise.
15029 (make_cleanup_ui_out_end): Likewise.
15030 (append_header_to_list): Likewise.
15031 (ui_out_new): Likewise.
15032 * user-regs.c (user_reg_add_builtin): Likewise.
15033
15034 2014-01-13 Tom Tromey <tromey@redhat.com>
15035
15036 * defs.h (XZALLOC): Remove.
15037 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15038 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15039 (get_ada_tasks_inferior_data): Likewise.
15040 * auto-load.c (get_auto_load_pspace_data): Likewise.
15041 * auxv.c (get_auxv_inferior_data): Likewise.
15042 * bfd-target.c (target_bfd_reopen): Likewise.
15043 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15044 (deprecated_insert_raw_breakpoint): Likewise.
15045 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15046 * corelow.c (core_open): Likewise.
15047 * darwin-nat.c (darwin_check_new_threads): Likewise.
15048 (darwin_attach_pid): Likewise.
15049 * dummy-frame.c (dummy_frame_push): Likewise.
15050 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15051 * dwarf2loc.c (allocate_piece_closure): Likewise.
15052 * elfread.c (elf_symfile_segments): Likewise.
15053 * eval.c (ptrmath_type_p): Likewise.
15054 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15055 * gdbtypes.c (alloc_type_arch): Likewise.
15056 (alloc_type_instance): Likewise.
15057 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15058 * inf-child.c (inf_child_can_use_agent): Likewise.
15059 * inflow.c (get_inflow_inferior_data): Likewise.
15060 * infrun.c (save_infcall_suspend_state): Likewise.
15061 * jit.c (jit_reader_load): Likewise.
15062 (get_jit_objfile_data): Likewise.
15063 (get_jit_program_space_data): Likewise.
15064 (jit_object_open_impl): Likewise.
15065 (jit_symtab_open_impl): Likewise.
15066 (jit_block_open_impl): Likewise.
15067 (jit_frame_sniffer): Likewise.
15068 * linux-fork.c (add_fork): Likewise.
15069 * maint.c (make_command_stats_cleanup): Likewise.
15070 * objfiles.c (get_objfile_pspace_data): Likewise.
15071 * opencl-lang.c (struct lval_closure): Likewise.
15072 * osdata.c (osdata_start_osdata): Likewise.
15073 * progspace.c (new_address_space): Likewise.
15074 (add_program_space): Likewise.
15075 * remote-sim.c (get_sim_inferior_data): Likewise.
15076 * sh-tdep.c (sh_gdbarch_init): Likewise.
15077 * skip.c (Ignore): Likewise.
15078 (skip_delete_command): Likewise.
15079 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15080 (library_list_start_library): Likewise.
15081 (solib_aix_current_sos): Likewise.
15082 * solib-darwin.c (get_darwin_info): Likewise.
15083 (darwin_current_sos): Likewise.
15084 * solib-dsbt.c (get_dsbt_info): Likewise.
15085 * solib-ia64-hpux.c (new_so_list): Likewise.
15086 (ia64_hpux_get_solib_linkage_addr): Likewise.
15087 * solib-spu.c (append_ocl_sos): Likewise.
15088 (spu_current_sos): Likewise.
15089 * solib-svr4.c (get_svr4_info): Likewise.
15090 (svr4_keep_data_in_core): Likewise.
15091 (library_list_start_library): Likewise.
15092 (svr4_default_sos): Likewise.
15093 (svr4_read_so_list): Likewise.
15094 * solib-target.c (library_list_start_library): Likewise.
15095 (solib_target_current_sos): Likewise.
15096 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15097 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15098 * symfile.c (default_symfile_segments): Likewise.
15099 * target-descriptions.c (tdesc_data_init): Likewise.
15100 (tdesc_create_reg): Likewise.
15101 (struct tdesc_type *): Likewise.
15102 (tdesc_create_vector): Likewise.
15103 (tdesc_set_struct_size): Likewise.
15104 (struct tdesc_type *): Likewise.
15105 (tdesc_free_feature): Likewise.
15106 (tdesc_create_feature): Likewise.
15107 * windows-nat.c (windows_add_thread): Likewise.
15108 (windows_make_so): Likewise.
15109 * xml-support.c (gdb_xml_body_text): Likewise.
15110 (gdb_xml_create_parser_and_cleanup): Likewise.
15111 (xml_process_xincludes): Likewise.
15112 * xml-syscall.c (allocate_syscalls_info): Likewise.
15113 (syscall_create_syscall_desc): Likewise.
15114
15115 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15116
15117 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15118 function, with code from i386_stap_parse_special_token.
15119 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15120 (i386_stap_parse_special_token): Move code to the two functions
15121 above; simplify it.
15122
15123 2014-01-09 Pedro Alves <palves@redhat.com>
15124 Hui Zhu <hui@codesourcery.com>
15125
15126 PR gdb/16101
15127 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15128 bp_err_string. Don't mark the location shlib_disabled if the
15129 error thrown wasn't a generic or memory error. Catch errors
15130 thrown while inserting breakpoints in overlayed code. Output
15131 error message of software breakpoints.
15132 * remote.c (remote_insert_breakpoint): If this breakpoint has
15133 target-side commands but this stub doesn't support Z0 packets,
15134 throw NOT_SUPPORTED_ERROR error.
15135 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15136 * target.h (target_insert_breakpoint): Extend comment.
15137 (target_insert_hw_breakpoint): Add comment.
15138
15139 2014-01-08 Pedro Alves <palves@redhat.com>
15140
15141 * remote.c (remote_add_thread): Add threads silently if starting
15142 up.
15143 (remote_notice_new_inferior): If in all-stop, and starting up,
15144 don't call notice_new_inferior.
15145 (get_current_thread): New function, factored out from ...
15146 (add_current_inferior_and_thread): ... this. Adjust.
15147 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15148 found any thread, then select the remote's current thread as GDB's
15149 current thread too.
15150
15151 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15152
15153 * NEWS: Create a new section for the next release branch.
15154 Rename the section of the current branch, now that it has
15155 been cut.
15156
15157 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15158
15159 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15160 * version.in: Bump version to 7.7.50.DATE-cvs.
15161
15162 2014-01-08 Yao Qi <yao@codesourcery.com>
15163
15164 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15165 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15166 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15167
15168 2014-01-08 Yao Qi <yao@codesourcery.com>
15169
15170 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15171 return value of bfd_get_filename to symbol_file_add_from_bfd.
15172
15173 2014-01-08 Pierre Muller <muller@sourceware.org>
15174
15175 Fix PR16201.
15176 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15177 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15178 to prim_record_mininal_symbol_and_info.
15179 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15180 in call to prim_record_minimal_symbol_and_info.
15181 (read_pe_exported_syms): Set index field of section_data.
15182
15183 2014-01-07 Andrew Pinski <apinski@cavium.com>
15184
15185 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15186 * features/aarch64.c: Regenerate.
15187
15188 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15189
15190 * target.c (return_null): Define.
15191 (update_current_target): Use it instead of return_zero for
15192 functions that return a pointer.
15193
15194 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15195
15196 * source.c (add_path): Fix check for duplicated paths in the previously
15197 included paths.
15198
15199 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15200
15201 * ada-lang.c: Remove duplicated include statements.
15202 * alphabsd-nat.c: Ditto.
15203 * amd64-darwin-tdep.c: Ditto.
15204 * amd64fbsd-nat.c: Ditto.
15205 * auto-load.c: Ditto.
15206 * ax-gdb.c: Ditto.
15207 * breakpoint.c: Ditto.
15208 * dbxread.c: Ditto.
15209 * fork-child.c: Ditto.
15210 * gdb_usleep.c: Ditto.
15211 * i386-darwin-tdep.c: Ditto.
15212 * i386fbsd-nat.c: Ditto.
15213 * infcmd.c: Ditto.
15214 * inferior.c: Ditto.
15215 * jv-lang.c: Ditto.
15216 * linux-nat.c: Ditto.
15217 * linux-tdep.c: Ditto.
15218 * m68kbsd-nat.c: Ditto.
15219 * m68klinux-nat.c: Ditto.
15220 * microblaze-tdep.c: Ditto.
15221 * mips-linux-tdep.c: Ditto.
15222 * mn10300-tdep.c: Ditto.
15223 * nto-tdep.c: Ditto.
15224 * opencl-lang.c: Ditto.
15225 * osdata.c: Ditto.
15226 * printcmd.c: Ditto.
15227 * regcache.c: Ditto.
15228 * remote-m32r-sdi.c: Ditto.
15229 * remote.c: Ditto.
15230 * symfile.c: Ditto.
15231 * symtab.c: Ditto.
15232 * tilegx-linux-nat.c: Ditto.
15233 * tilegx-tdep.c: Ditto.
15234 * tracepoint.c: Ditto.
15235 * valops.c: Ditto.
15236 * vaxbsd-nat.c: Ditto.
15237 * windows-nat.c: Ditto.
15238 * xtensa-tdep.c: Ditto.
15239
15240 2014-01-07 Yao Qi <yao@codesourcery.com>
15241
15242 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15243
15244 2014-01-07 Yao Qi <yao@codesourcery.com>
15245 Joel Brobecker <brobecker@adacore.com>
15246
15247 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15248 (pdc_write_regs): Likewise.
15249 (fetch_regs_kernel_thread): Likewise.
15250 (store_regs_kernel_thread): Likewise.
15251
15252 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15253
15254 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15255 tagged type objects to their actual type.
15256
15257 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15258
15259 * ada-valprint.c (print_field_values): Add "language" parameter.
15260 Update calls to print_field_values and print_variant_part.
15261 Pass new parameter "language" in call to val_print instead
15262 of "current_language". Replace call to ada_val_print by call
15263 to val_print.
15264 (print_variant_part): Add "language" parameter.
15265 (ada_val_print_struct_union): Update call to print_field_values.
15266
15267 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15268
15269 * ada-valprint.c (ui_memcpy): Delete.
15270 (ada_print_floating): Update documentation. Add empty line
15271 between between function documentation and implementation.
15272 Delete variable "buffer". Use ui_file_xstrdup in place of
15273 ui_file_put. Minor adjustments following this change.
15274
15275 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15276
15277 * ada-valprint.c (ada_val_print_string): New function,
15278 extracted from ada_val_print_array.
15279 (ada_val_print_array): Replace extracted code by call
15280 to ada_val_print_string followed by a return. Move
15281 "else" branch to the function's top block.
15282
15283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15284
15285 * ada-valprint.c (ada_val_print_array): Move implementation
15286 down. Rename parameter "offset" and "val" into "offset_aligned"
15287 and "original_value" respectively. Add parameter "offset".
15288
15289 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15290
15291 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15292 re-organizing the code. Change the "???" message printed
15293 when target type is a TYPE_CODE_UNDEF into
15294 "<ref to undefined type>".
15295
15296 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15297
15298 * ada-valprint.c (print_record): Delete, implementation inlined...
15299 (ada_val_print_struct_union): ... here. Remove call to
15300 ada_check_typedef in inlined implementation.
15301
15302 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15303
15304 * ada-valprint.c (ada_val_print_gnat_array): New function,
15305 extracted from ada_val_print_1;
15306 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15307 (ada_val_print_flt, ada_val_print_struct_union)
15308 (ada_val_print_ref): Likewise.
15309 (ada_val_print_1): Delete variables i and elttype.
15310 Replace extracted-out code by call to corresponding
15311 new functions.
15312
15313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15314
15315 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15316
15317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15318
15319 * ada-valprint.c (ada_val_print_1): Replace calls to
15320 ada_val_print_1 by calls to val_print.
15321
15322 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15323
15324 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15325 Update calls to self accordingly. Replace calls to c_val_print
15326 by calls to val_print.
15327
15328 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15329
15330 * ada-valprint.c (print_record): Delete declaration.
15331 (adjust_type_signedness, ada_val_print_1): Likewise.
15332 (ada_val_print): Move function implementation down.
15333 (print_variant_part, print_field_values, print_record):
15334 Move function implementation up.
15335
15336 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15337
15338 * python/py-type.c (typy_get_name): New function.
15339 (type_object_getset): Add entry for attribute "name".
15340 * NEWS: Add entry mentioning this new attribute.
15341
15342 2014-01-07 Yao Qi <yao@codesourcery.com>
15343
15344 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15345 statement.
15346
15347 2014-01-07 Yao Qi <yao@codesourcery.com>
15348
15349 * gnu-nat.c (info_port_rights): Add qualifier const to
15350 argument args.
15351
15352 2014-01-07 Yao Qi <yao@codesourcery.com>
15353
15354 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15355
15356 2014-01-07 Yao Qi <yao@codesourcery.com>
15357
15358 * gnu-nat.c (make_inf) Update declaration.
15359 (make_inf): Make it static.
15360 (inf_set_traced): Likewise.
15361 (inf_port_to_thread, inf_task_died_status): Likewise.
15362
15363 2014-01-07 Yao Qi <yao@codesourcery.com>
15364
15365 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15366
15367 2014-01-07 Yao Qi <yao@codesourcery.com>
15368
15369 * gnu-nat.c (_initialize_gnu_nat): Declare.
15370
15371 2014-01-07 Yao Qi <yao@codesourcery.com>
15372
15373 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15374 'enum bfd_endian'.
15375 (struct gdbarch_info) <byte_order>: Change type to
15376 'enum bfd_endian'.
15377 <byte_order_for_code>: Likewise.
15378 * gdbarch.c, gdbarch.h: Regenerated.
15379
15380 2014-01-06 Sasha Smundak <asmundak@google.com>
15381
15382 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15383
15384 2014-01-06 Tom Tromey <tromey@redhat.com>
15385
15386 * doublest.c (convert_doublest_to_floatformat): Use const, not
15387 CONST.
15388 * somread.c (som_symtab_read): Likewise.
15389
15390 2014-01-07 Hui Zhu <hui@codesourcery.com>
15391
15392 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15393 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15394 (gdb_bfd_fopen): Ditto.
15395 (gdb_bfd_openr): Ditto.
15396 (gdb_bfd_openw): Ditto.
15397 (gdb_bfd_openr_iovec): Ditto.
15398 (gdb_bfd_fdopenr): Ditto.
15399 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15400 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15401 with xstrdup.
15402 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15403 with xstrdup.
15404 * symfile-mem.c (symbol_file_add_from_memory): Removed
15405 gdb_bfd_stash_filename.
15406
15407 2014-01-03 Doug Evans <dje@google.com>
15408
15409 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15410 output.
15411
15412 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15413
15414 Update year range in copyright notice of all files.
15415
15416 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15417
15418 * top.c (print_gdb_version): Set copyright year to 2014.
15419
15420 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15421
15422 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15423
15424 For older changes see ChangeLog-2013.
15425 \f
15426 Local Variables:
15427 mode: change-log
15428 left-margin: 8
15429 fill-column: 74
15430 version-control: never
15431 coding: utf-8
15432 End:
This page took 0.762685 seconds and 4 git commands to generate.